Profectus-Demo/assets/vue-next-select.aa58f779.js

4 lines
24 KiB
JavaScript
Raw Normal View History

import{o as b,_ as x,r as B,$ as h,bo as L,bp as w,M as P,aH as he,ao as ie,a8 as Ne,l as je,y as W,Y as y,a$ as S,ad as Ee,q as F,a_ as z,aD as ze,ap as _,aI as J,Z as $,a6 as X,w as ge,c as Le,b4 as $e,bn as Ue,aw as Pe,aB as qe,aj as ye,F as Y,I as K}from"./@vue.861e8bf0.js";function ue(e){return(ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function me(e){return function(t){if(Array.isArray(t))return ne(t)}(e)||function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||be(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function be(e,t){if(e){if(typeof e=="string")return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function N(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=be(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var o=0,g=function(){};return{s:g,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(c){throw c},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,r=!0,v=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return r=c.done,c},e:function(c){v=!0,m=c},f:function(){try{r||n.return==null||n.return()}finally{if(v)throw m}}}}var ae={inheritAttrs:!1,name:"vue-input",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:["update:modelValue","input","change","focus","blur","escape"],setup:function(e,t){var n=F(null);return Pe(function(){e.autofocus&&n.value.focus()}),qe(function(){e.autofocus&&n.value.focus()}),{handleInput:function(o){t.emit("input",o),t.emit("update:modelValue",o.target.value)},handleChange:function(o){t.emit("change",o),t.emit("update:modelValue",o.target.value)},handleFocus:function(o){t.emit("focus",o)},handleBlur:function(o){t.emit("blur",o)},input:n,handleEscape:function(o){n.value.blur(),t.emit("escape",o)}}}},He={class:"vue-input"},_e=["autocomplete","modelValue","placeholder","disabled","tabindex","autofocus","aria-controls","aria-labelledby"];ae.render=function(e,t,n,o,g,m){return b(),x("div",He,[B(e.$slots,"prepend"),h("input",{ref:"input",autocomplete:n.autocomplete,modelValue:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onInput:t[0]||(t[0]=function(){return o.handleInput&&o.handleInput.apply(o,arguments)}),onChange:t[1]||(t[1]=function(){return o.handleChange&&o.handleChange.apply(o,arguments)}),onFocus:t[2]||(t[2]=function(){return o.handleFocus&&o.handleFocus.apply(o,arguments)}),onBlur:t[3]||(t[3]=function(){return o.handleBlur&&o.handleBlur.apply(o,arguments)}),onKeyup:t[4]||(t[4]=L(w(function(){return o.handleEscape&&o.handleEscape.apply(o,arguments)},["exact"]),["esc"])),tabindex:n.tabindex,autofocus:n.autofocus,"aria-autocomplete":"list","aria-controls":"vs".concat(n.comboboxUid,"-listbox"),"aria-labelledby":"vs".concat(n.comboboxUid,"-combobox")},null,40,_e),B(e.$slots,"append")])},ae.__file="src/components/input.vue";var oe={inheritAttrs:!1,name:"vue-tags",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return ue(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},collapseTags:{type:Boolean}},emits:["click"],setup:function(e,t){return{dataAttrs:ye("dataAttrs"),handleClick:function(n){t.emit("click",n)}}}};oe.render=function(e,t,n,o,g,m){return b(),x("ul",ie({class:["vue-tags",{collapsed:n.collapseTags}],onMousedown:t[0]||(t[0]=w(function(){},["prevent"])),tabindex:"-1",onClick:t[1]||(t[1]=function(){return o.handleClick&&o.handleClick.apply(o,arguments)})},o.dataAttrs),[(b(!0),x(P,null,he(n.modelValue,function(r){return b(),x(P,{key:r.key},[r.group?$("v-if",!0):(b(),x("li",{key:0,class:Y(["vue-tag",{selected:r.selected}])},[B(e.$slots,"default",{option:r},function(){return[h("span",null,K(r.label),1)]})],2))],64)}),128))],16)},oe.__file="src/components/tags.vue";var le={inheritAttrs:!1,name:"vue-dropdown",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return ue(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:["click-item","mouseenter"],setup:function(e,t){return{dataAttrs:ye("dataAttrs"),handleClickItem:function(n,o){o.disabled||t.emit("click-item",n,o)},handleMouseenter:function(n,o){t.emit("mouseenter",n,o)}}}},Ze=["id","aria-multiselectable","aria-busy","aria-disabled"],Re=["onClick","onMouseenter","id","aria-selected","aria-disabled"];le.render=function(e,t,n,o,g,m){return b(),x("ul",ie({class:"vue-dropdown",style:{maxHeight:n.maxHeight+"px"},onMousedown:t[0]||(t[0]=w(function(){},["prevent"]))},o.dataAttrs,{role:"listbox",id:"vs".concat(n.comboboxUid,"-listbox"),"aria-multiselectable":o.dataAttrs["data-multiple"],"aria-busy":o.dataAttrs["data-loading"],"aria-disabled":o.da