@signal24/vue-foundation 3.7.4 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGES.md CHANGED
@@ -1,13 +1,2 @@
1
1
  # Release notes
2
2
 
3
- All notable changes to this project will be documented in this file.
4
- This project adheres to [Semantic Versioning](http://semver.org/).
5
-
6
- ## 1.0.1
7
-
8
- - Update dependencies
9
- - Fix $confirmDestroy
10
-
11
- ## 1.0.0
12
-
13
- - Initial public release
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),f=require("jquery"),P=require("moment"),X=require("axios"),nr=require("vue-stash-nested");let St;function ir(e){St=e}const d=o.createApp({data(){return{store:{session:null,globalError:window.gErr||null,rootInjections:[]}}},render(){return o.h(St)}}),ee=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},ar={props:["modelValue","url","params","itemsKey","preprocessor","textKey","nullText","loadingText"],data(){return{options:null,selectedItem:null}},watch:{params(){this.load()},selectedItem(){this.$emit("update:modelValue",this.selectedItem)},modelValue(){this.selectedItem=this.modelValue}},mounted(){this.load()},methods:{async load(){this.options=null;let e=this.params?{params:this.params}:void 0,t=await this.$http.get(this.url,e),r=this.itemsKey?t.data[this.itemsKey]:t.data;this.preprocessor&&this.preprocessor(r),this.options=r,this.selectedItem=this.modelValue}}},sr={key:0,disabled:""},or={key:0,value:null},lr=["value"];function cr(e,t,r,n,i,a){return i.options?o.withDirectives((o.openBlock(),o.createElementBlock("select",{key:1,"onUpdate:modelValue":t[0]||(t[0]=s=>i.selectedItem=s)},[r.nullText?(o.openBlock(),o.createElementBlock("option",or,o.toDisplayString(r.nullText),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.options,s=>(o.openBlock(),o.createElementBlock("option",{key:s.id,value:s},o.toDisplayString(r.textKey?s[r.textKey]:s),9,lr))),128))],512)),[[o.vModelSelect,i.selectedItem]]):(o.openBlock(),o.createElementBlock("select",sr,[o.createElementVNode("option",null,o.toDisplayString(r.loadingText||"Loading..."),1)]))}const ur=ee(ar,[["render",cr]]);var z=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fr(){this.__data__=[],this.size=0}var dr=fr;function hr(e,t){return e===t||e!==e&&t!==t}var be=hr,pr=be;function vr(e,t){for(var r=e.length;r--;)if(pr(e[r][0],t))return r;return-1}var te=vr,gr=te,mr=Array.prototype,yr=mr.splice;function $r(e){var t=this.__data__,r=gr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():yr.call(t,r,1),--this.size,!0}var br=$r,_r=te;function Tr(e){var t=this.__data__,r=_r(t,e);return r<0?void 0:t[r][1]}var Or=Tr,Sr=te;function wr(e){return Sr(this.__data__,e)>-1}var Ar=wr,Cr=te;function Er(e,t){var r=this.__data__,n=Cr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var xr=Er,kr=dr,Ir=br,jr=Or,Pr=Ar,Hr=xr;function K(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}K.prototype.clear=kr;K.prototype.delete=Ir;K.prototype.get=jr;K.prototype.has=Pr;K.prototype.set=Hr;var re=K,Mr=re;function Lr(){this.__data__=new Mr,this.size=0}var Dr=Lr;function Br(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Kr=Br;function Nr(e){return this.__data__.get(e)}var Rr=Nr;function Fr(e){return this.__data__.has(e)}var Vr=Fr,Ur=typeof z=="object"&&z&&z.Object===Object&&z,wt=Ur,Gr=wt,zr=typeof self=="object"&&self&&self.Object===Object&&self,Wr=Gr||zr||Function("return this")(),E=Wr,qr=E,Yr=qr.Symbol,ne=Yr,Ie=ne,At=Object.prototype,Xr=At.hasOwnProperty,Jr=At.toString,U=Ie?Ie.toStringTag:void 0;function Zr(e){var t=Xr.call(e,U),r=e[U];try{e[U]=void 0;var n=!0}catch{}var i=Jr.call(e);return n&&(t?e[U]=r:delete e[U]),i}var Qr=Zr,en=Object.prototype,tn=en.toString;function rn(e){return tn.call(e)}var nn=rn,je=ne,an=Qr,sn=nn,on="[object Null]",ln="[object Undefined]",Pe=je?je.toStringTag:void 0;function cn(e){return e==null?e===void 0?ln:on:Pe&&Pe in Object(e)?an(e):sn(e)}var G=cn;function un(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var H=un,fn=G,dn=H,hn="[object AsyncFunction]",pn="[object Function]",vn="[object GeneratorFunction]",gn="[object Proxy]";function mn(e){if(!dn(e))return!1;var t=fn(e);return t==pn||t==vn||t==hn||t==gn}var Ct=mn,yn=E,$n=yn["__core-js_shared__"],bn=$n,ue=bn,He=function(){var e=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _n(e){return!!He&&He in e}var Tn=_n,On=Function.prototype,Sn=On.toString;function wn(e){if(e!=null){try{return Sn.call(e)}catch{}try{return e+""}catch{}}return""}var Et=wn,An=Ct,Cn=Tn,En=H,xn=Et,kn=/[\\^$.*+?()[\]{}|]/g,In=/^\[object .+?Constructor\]$/,jn=Function.prototype,Pn=Object.prototype,Hn=jn.toString,Mn=Pn.hasOwnProperty,Ln=RegExp("^"+Hn.call(Mn).replace(kn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dn(e){if(!En(e)||Cn(e))return!1;var t=An(e)?Ln:In;return t.test(xn(e))}var Bn=Dn;function Kn(e,t){return e==null?void 0:e[t]}var Nn=Kn,Rn=Bn,Fn=Nn;function Vn(e,t){var r=Fn(e,t);return Rn(r)?r:void 0}var M=Vn,Un=M,Gn=E,zn=Un(Gn,"Map"),_e=zn,Wn=M,qn=Wn(Object,"create"),ie=qn,Me=ie;function Yn(){this.__data__=Me?Me(null):{},this.size=0}var Xn=Yn;function Jn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Zn=Jn,Qn=ie,ei="__lodash_hash_undefined__",ti=Object.prototype,ri=ti.hasOwnProperty;function ni(e){var t=this.__data__;if(Qn){var r=t[e];return r===ei?void 0:r}return ri.call(t,e)?t[e]:void 0}var ii=ni,ai=ie,si=Object.prototype,oi=si.hasOwnProperty;function li(e){var t=this.__data__;return ai?t[e]!==void 0:oi.call(t,e)}var ci=li,ui=ie,fi="__lodash_hash_undefined__";function di(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ui&&t===void 0?fi:t,this}var hi=di,pi=Xn,vi=Zn,gi=ii,mi=ci,yi=hi;function N(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}N.prototype.clear=pi;N.prototype.delete=vi;N.prototype.get=gi;N.prototype.has=mi;N.prototype.set=yi;var $i=N,Le=$i,bi=re,_i=_e;function Ti(){this.size=0,this.__data__={hash:new Le,map:new(_i||bi),string:new Le}}var Oi=Ti;function Si(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var wi=Si,Ai=wi;function Ci(e,t){var r=e.__data__;return Ai(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ae=Ci,Ei=ae;function xi(e){var t=Ei(this,e).delete(e);return this.size-=t?1:0,t}var ki=xi,Ii=ae;function ji(e){return Ii(this,e).get(e)}var Pi=ji,Hi=ae;function Mi(e){return Hi(this,e).has(e)}var Li=Mi,Di=ae;function Bi(e,t){var r=Di(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Ki=Bi,Ni=Oi,Ri=ki,Fi=Pi,Vi=Li,Ui=Ki;function R(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}R.prototype.clear=Ni;R.prototype.delete=Ri;R.prototype.get=Fi;R.prototype.has=Vi;R.prototype.set=Ui;var xt=R,Gi=re,zi=_e,Wi=xt,qi=200;function Yi(e,t){var r=this.__data__;if(r instanceof Gi){var n=r.__data__;if(!zi||n.length<qi-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Wi(n)}return r.set(e,t),this.size=r.size,this}var Xi=Yi,Ji=re,Zi=Dr,Qi=Kr,ea=Rr,ta=Vr,ra=Xi;function F(e){var t=this.__data__=new Ji(e);this.size=t.size}F.prototype.clear=Zi;F.prototype.delete=Qi;F.prototype.get=ea;F.prototype.has=ta;F.prototype.set=ra;var kt=F;function na(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var ia=na,aa=M,sa=function(){try{var e=aa(Object,"defineProperty");return e({},"",{}),e}catch{}}(),oa=sa,De=oa;function la(e,t,r){t=="__proto__"&&De?De(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var It=la,ca=It,ua=be,fa=Object.prototype,da=fa.hasOwnProperty;function ha(e,t,r){var n=e[t];(!(da.call(e,t)&&ua(n,r))||r===void 0&&!(t in e))&&ca(e,t,r)}var jt=ha,pa=jt,va=It;function ga(e,t,r,n){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=n?n(r[l],e[l],l,r,e):void 0;c===void 0&&(c=e[l]),i?va(r,l,c):pa(r,l,c)}return r}var se=ga;function ma(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ya=ma;function $a(e){return e!=null&&typeof e=="object"}var L=$a,ba=G,_a=L,Ta="[object Arguments]";function Oa(e){return _a(e)&&ba(e)==Ta}var Sa=Oa,Be=Sa,wa=L,Pt=Object.prototype,Aa=Pt.hasOwnProperty,Ca=Pt.propertyIsEnumerable,Ea=Be(function(){return arguments}())?Be:function(e){return wa(e)&&Aa.call(e,"callee")&&!Ca.call(e,"callee")},xa=Ea,ka=Array.isArray,oe=ka,D={},Ia={get exports(){return D},set exports(e){D=e}};function ja(){return!1}var Pa=ja;(function(e,t){var r=E,n=Pa,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,l=s?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||n;e.exports=u})(Ia,D);var Ha=9007199254740991,Ma=/^(?:0|[1-9]\d*)$/;function La(e,t){var r=typeof e;return t=t??Ha,!!t&&(r=="number"||r!="symbol"&&Ma.test(e))&&e>-1&&e%1==0&&e<t}var Da=La,Ba=9007199254740991;function Ka(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ba}var Ht=Ka,Na=G,Ra=Ht,Fa=L,Va="[object Arguments]",Ua="[object Array]",Ga="[object Boolean]",za="[object Date]",Wa="[object Error]",qa="[object Function]",Ya="[object Map]",Xa="[object Number]",Ja="[object Object]",Za="[object RegExp]",Qa="[object Set]",es="[object String]",ts="[object WeakMap]",rs="[object ArrayBuffer]",ns="[object DataView]",is="[object Float32Array]",as="[object Float64Array]",ss="[object Int8Array]",os="[object Int16Array]",ls="[object Int32Array]",cs="[object Uint8Array]",us="[object Uint8ClampedArray]",fs="[object Uint16Array]",ds="[object Uint32Array]",b={};b[is]=b[as]=b[ss]=b[os]=b[ls]=b[cs]=b[us]=b[fs]=b[ds]=!0;b[Va]=b[Ua]=b[rs]=b[Ga]=b[ns]=b[za]=b[Wa]=b[qa]=b[Ya]=b[Xa]=b[Ja]=b[Za]=b[Qa]=b[es]=b[ts]=!1;function hs(e){return Fa(e)&&Ra(e.length)&&!!b[Na(e)]}var ps=hs;function vs(e){return function(t){return e(t)}}var Te=vs,B={},gs={get exports(){return B},set exports(e){B=e}};(function(e,t){var r=wt,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,s=a&&r.process,l=function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(gs,B);var ms=ps,ys=Te,Ke=B,Ne=Ke&&Ke.isTypedArray,$s=Ne?ys(Ne):ms,Mt=$s,bs=ya,_s=xa,Ts=oe,Os=D,Ss=Da,ws=Mt,As=Object.prototype,Cs=As.hasOwnProperty;function Es(e,t){var r=Ts(e),n=!r&&_s(e),i=!r&&!n&&Os(e),a=!r&&!n&&!i&&ws(e),s=r||n||i||a,l=s?bs(e.length,String):[],c=l.length;for(var u in e)(t||Cs.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ss(u,c)))&&l.push(u);return l}var Lt=Es,xs=Object.prototype;function ks(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||xs;return e===r}var Oe=ks;function Is(e,t){return function(r){return e(t(r))}}var Dt=Is,js=Dt,Ps=js(Object.keys,Object),Hs=Ps,Ms=Oe,Ls=Hs,Ds=Object.prototype,Bs=Ds.hasOwnProperty;function Ks(e){if(!Ms(e))return Ls(e);var t=[];for(var r in Object(e))Bs.call(e,r)&&r!="constructor"&&t.push(r);return t}var Ns=Ks,Rs=Ct,Fs=Ht;function Vs(e){return e!=null&&Fs(e.length)&&!Rs(e)}var Bt=Vs,Us=Lt,Gs=Ns,zs=Bt;function Ws(e){return zs(e)?Us(e):Gs(e)}var Se=Ws,qs=se,Ys=Se;function Xs(e,t){return e&&qs(t,Ys(t),e)}var Js=Xs;function Zs(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Qs=Zs,eo=H,to=Oe,ro=Qs,no=Object.prototype,io=no.hasOwnProperty;function ao(e){if(!eo(e))return ro(e);var t=to(e),r=[];for(var n in e)n=="constructor"&&(t||!io.call(e,n))||r.push(n);return r}var so=ao,oo=Lt,lo=so,co=Bt;function uo(e){return co(e)?oo(e,!0):lo(e)}var we=uo,fo=se,ho=we;function po(e,t){return e&&fo(t,ho(t),e)}var vo=po,J={},go={get exports(){return J},set exports(e){J=e}};(function(e,t){var r=E,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,s=a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(u,_){if(_)return u.slice();var h=u.length,p=l?l(h):new u.constructor(h);return u.copy(p),p}e.exports=c})(go,J);function mo(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var yo=mo;function $o(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var s=e[r];t(s,r,e)&&(a[i++]=s)}return a}var bo=$o;function _o(){return[]}var Kt=_o,To=bo,Oo=Kt,So=Object.prototype,wo=So.propertyIsEnumerable,Re=Object.getOwnPropertySymbols,Ao=Re?function(e){return e==null?[]:(e=Object(e),To(Re(e),function(t){return wo.call(e,t)}))}:Oo,Ae=Ao,Co=se,Eo=Ae;function xo(e,t){return Co(e,Eo(e),t)}var ko=xo;function Io(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Nt=Io,jo=Dt,Po=jo(Object.getPrototypeOf,Object),Rt=Po,Ho=Nt,Mo=Rt,Lo=Ae,Do=Kt,Bo=Object.getOwnPropertySymbols,Ko=Bo?function(e){for(var t=[];e;)Ho(t,Lo(e)),e=Mo(e);return t}:Do,Ft=Ko,No=se,Ro=Ft;function Fo(e,t){return No(e,Ro(e),t)}var Vo=Fo,Uo=Nt,Go=oe;function zo(e,t,r){var n=t(e);return Go(e)?n:Uo(n,r(e))}var Vt=zo,Wo=Vt,qo=Ae,Yo=Se;function Xo(e){return Wo(e,Yo,qo)}var Ut=Xo,Jo=Vt,Zo=Ft,Qo=we;function el(e){return Jo(e,Qo,Zo)}var tl=el,rl=M,nl=E,il=rl(nl,"DataView"),al=il,sl=M,ol=E,ll=sl(ol,"Promise"),cl=ll,ul=M,fl=E,dl=ul(fl,"Set"),hl=dl,pl=M,vl=E,gl=pl(vl,"WeakMap"),ml=gl,ve=al,ge=_e,me=cl,ye=hl,$e=ml,Gt=G,V=Et,Fe="[object Map]",yl="[object Object]",Ve="[object Promise]",Ue="[object Set]",Ge="[object WeakMap]",ze="[object DataView]",$l=V(ve),bl=V(ge),_l=V(me),Tl=V(ye),Ol=V($e),j=Gt;(ve&&j(new ve(new ArrayBuffer(1)))!=ze||ge&&j(new ge)!=Fe||me&&j(me.resolve())!=Ve||ye&&j(new ye)!=Ue||$e&&j(new $e)!=Ge)&&(j=function(e){var t=Gt(e),r=t==yl?e.constructor:void 0,n=r?V(r):"";if(n)switch(n){case $l:return ze;case bl:return Fe;case _l:return Ve;case Tl:return Ue;case Ol:return Ge}return t});var le=j,Sl=Object.prototype,wl=Sl.hasOwnProperty;function Al(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&wl.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Cl=Al,El=E,xl=El.Uint8Array,zt=xl,We=zt;function kl(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}var Ce=kl,Il=Ce;function jl(e,t){var r=t?Il(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Pl=jl,Hl=/\w*$/;function Ml(e){var t=new e.constructor(e.source,Hl.exec(e));return t.lastIndex=e.lastIndex,t}var Ll=Ml,qe=ne,Ye=qe?qe.prototype:void 0,Xe=Ye?Ye.valueOf:void 0;function Dl(e){return Xe?Object(Xe.call(e)):{}}var Bl=Dl,Kl=Ce;function Nl(e,t){var r=t?Kl(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Rl=Nl,Fl=Ce,Vl=Pl,Ul=Ll,Gl=Bl,zl=Rl,Wl="[object Boolean]",ql="[object Date]",Yl="[object Map]",Xl="[object Number]",Jl="[object RegExp]",Zl="[object Set]",Ql="[object String]",ec="[object Symbol]",tc="[object ArrayBuffer]",rc="[object DataView]",nc="[object Float32Array]",ic="[object Float64Array]",ac="[object Int8Array]",sc="[object Int16Array]",oc="[object Int32Array]",lc="[object Uint8Array]",cc="[object Uint8ClampedArray]",uc="[object Uint16Array]",fc="[object Uint32Array]";function dc(e,t,r){var n=e.constructor;switch(t){case tc:return Fl(e);case Wl:case ql:return new n(+e);case rc:return Vl(e,r);case nc:case ic:case ac:case sc:case oc:case lc:case cc:case uc:case fc:return zl(e,r);case Yl:return new n;case Xl:case Ql:return new n(e);case Jl:return Ul(e);case Zl:return new n;case ec:return Gl(e)}}var hc=dc,pc=H,Je=Object.create,vc=function(){function e(){}return function(t){if(!pc(t))return{};if(Je)return Je(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),gc=vc,mc=gc,yc=Rt,$c=Oe;function bc(e){return typeof e.constructor=="function"&&!$c(e)?mc(yc(e)):{}}var _c=bc,Tc=le,Oc=L,Sc="[object Map]";function wc(e){return Oc(e)&&Tc(e)==Sc}var Ac=wc,Cc=Ac,Ec=Te,Ze=B,Qe=Ze&&Ze.isMap,xc=Qe?Ec(Qe):Cc,kc=xc,Ic=le,jc=L,Pc="[object Set]";function Hc(e){return jc(e)&&Ic(e)==Pc}var Mc=Hc,Lc=Mc,Dc=Te,et=B,tt=et&&et.isSet,Bc=tt?Dc(tt):Lc,Kc=Bc,Nc=kt,Rc=ia,Fc=jt,Vc=Js,Uc=vo,Gc=J,zc=yo,Wc=ko,qc=Vo,Yc=Ut,Xc=tl,Jc=le,Zc=Cl,Qc=hc,eu=_c,tu=oe,ru=D,nu=kc,iu=H,au=Kc,su=Se,ou=we,lu=1,cu=2,uu=4,Wt="[object Arguments]",fu="[object Array]",du="[object Boolean]",hu="[object Date]",pu="[object Error]",qt="[object Function]",vu="[object GeneratorFunction]",gu="[object Map]",mu="[object Number]",Yt="[object Object]",yu="[object RegExp]",$u="[object Set]",bu="[object String]",_u="[object Symbol]",Tu="[object WeakMap]",Ou="[object ArrayBuffer]",Su="[object DataView]",wu="[object Float32Array]",Au="[object Float64Array]",Cu="[object Int8Array]",Eu="[object Int16Array]",xu="[object Int32Array]",ku="[object Uint8Array]",Iu="[object Uint8ClampedArray]",ju="[object Uint16Array]",Pu="[object Uint32Array]",y={};y[Wt]=y[fu]=y[Ou]=y[Su]=y[du]=y[hu]=y[wu]=y[Au]=y[Cu]=y[Eu]=y[xu]=y[gu]=y[mu]=y[Yt]=y[yu]=y[$u]=y[bu]=y[_u]=y[ku]=y[Iu]=y[ju]=y[Pu]=!0;y[pu]=y[qt]=y[Tu]=!1;function q(e,t,r,n,i,a){var s,l=t&lu,c=t&cu,u=t&uu;if(r&&(s=i?r(e,n,i,a):r(e)),s!==void 0)return s;if(!iu(e))return e;var _=tu(e);if(_){if(s=Zc(e),!l)return zc(e,s)}else{var h=Jc(e),p=h==qt||h==vu;if(ru(e))return Gc(e,l);if(h==Yt||h==Wt||p&&!i){if(s=c||p?{}:eu(e),!l)return c?qc(e,Uc(s,e)):Wc(e,Vc(s,e))}else{if(!y[h])return i?e:{};s=Qc(e,h,l)}}a||(a=new Nc);var v=a.get(e);if(v)return v;a.set(e,s),au(e)?e.forEach(function(T){s.add(q(T,t,r,T,e,a))}):nu(e)&&e.forEach(function(T,S){s.set(S,q(T,t,r,S,e,a))});var g=u?c?Xc:Yc:c?ou:su,O=_?void 0:g(e);return Rc(O||e,function(T,S){O&&(S=T,T=e[S]),Fc(s,S,q(T,t,r,S,e,a))}),s}var Hu=q,Mu=Hu,Lu=1,Du=4;function Bu(e){return Mu(e,Lu|Du)}var Ku=Bu;const Nu={props:["id","closeOnMaskClick","scrolls","closeX","class"],emits:["formSubmit"],beforeCreate(){const e=document.getElementById("vf-modal-target")??document.createElement("div");e.id="vf-modal-target",e.removeAttribute("inert"),document.body.appendChild(e)},mounted(){window.addEventListener("keydown",this.handleEscapeKey),document.body.classList.add("vf-modal-open"),this.$isPropTruthy(this.closeOnMaskClick)&&this.$el.addEventListener("click",e=>{e.target==this.$el&&this.$parent.$dismiss()})},unmounted(){window.removeEventListener("keydown",this.handleEscapeKey),document.body.querySelectorAll(".vf-modal").length>0||document.body.classList.remove("vf-modal-open")},methods:{handleEscapeKey(e){if(e.key==="Esc"||e.key==="Escape"){const t=document.querySelectorAll(".vf-modal-wrap");t[t.length-1]===this.$el&&this.$parent.$dismiss()}}}};let Z={};function Ru(e){const t=Z[e];this.$modalOpener=t.opener,this.$modalResult=void 0,this.$options.storeParent=this.$modalOpener;let r=this.$options.data;this.$options.data=function(){const n=t.injectedData||{},i=this.$options.keepOriginal||[];let a=r?r.apply(this):{};for(let s in n)i.includes(s)||(n[s]!==null&&typeof n[s]=="object"&&n[s].constructor===Object?a[s]=Ku(n[s]):a[s]=n[s]);return a},this.$dismiss=(...n)=>new Promise(i=>{setTimeout(()=>{delete Z[e];let a=d.vm.store.rootInjections;const s=a.find(l=>l.__modalId===e);s&&(a.remove(s),this.$nextTick(()=>{t.resolve.apply(this,n[0]!==void 0?n:this.$modalResult),i()}))},0)}),t.instanceCreationCallback&&t.instanceCreationCallback(this)}d.mixin({beforeCreate(){const e=this.$options.__modalId||this.$options.__file;e&&Z[e]&&Ru.call(this,e)}});d.config.globalProperties.$modal=function(e,t,r){return new Promise((n,i)=>{const a=e.__modalId||e.__file||Math.random().toString(36).substring(2,10);e.__modalId=a,Z[a]={opener:this,injectedData:t,instanceCreationCallback:r,resolve:n},this.$nextTick(()=>{d.vm.store.rootInjections.push(o.markRaw(e))})})};const Fu=["id"],Vu={key:0,class:"vf-modal-header"},Uu={class:"vf-modal-content"},Gu={key:1,class:"vf-modal-footer"};function zu(e,t,r,n,i,a){return o.openBlock(),o.createBlock(o.Teleport,{to:"#vf-modal-target"},[o.createElementVNode("div",{id:r.id,class:o.normalizeClass(["vf-overlay vf-modal-wrap",r.class])},[o.createElementVNode("form",{action:".",class:o.normalizeClass(["vf-modal",{scrolls:e.$isPropTruthy(this.scrolls)}]),onSubmit:t[1]||(t[1]=o.withModifiers(s=>e.$emit("formSubmit"),["prevent"]))},[e.$slots.header?(o.openBlock(),o.createElementBlock("div",Vu,[o.renderSlot(e.$slots,"header"),e.$isPropTruthy(this.closeX)?(o.openBlock(),o.createElementBlock("i",{key:0,class:"close",onClick:t[0]||(t[0]=s=>e.$parent.$dismiss())})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",Uu,[o.renderSlot(e.$slots,"default")]),e.$slots.footer?(o.openBlock(),o.createElementBlock("div",Gu,[o.renderSlot(e.$slots,"footer")])):o.createCommentVNode("",!0)],34)],10,Fu)])}const Xt=ee(Nu,[["render",zu]]);const ce={components:{Modal:Xt},data(){return{isBare:!1,isHtml:!1,classes:[],title:null,message:null,shouldConfirm:!1}},created(){if(typeof this.message=="object"){if(this.message.html)this.isHtml=!0,this.message=this.message.html;else if(this.message instanceof Error){let e=this.message;e.handle(),this.message=e.userMessage}}},methods:{ok(){this.$dismiss(!0)}}},Wu=ce;async function Ee(e,t,...r){return t={...t,__modalId:Math.random().toString(36).substring(2,10)},await e.$modal.apply(e,[t,...r])}d.config.globalProperties.$alert=async function(e,t){return await Ee(this,ce,{title:e,message:t})};d.config.globalProperties.$confirm=async function(e,t,r){return r=r||{},!!await Ee(this,ce,{title:e,message:t,shouldConfirm:!0,...r})};d.config.globalProperties.$confirmDestroy=function(e,t,r){return r=r||{},r.classes=r.classes||[],r.classes.push("destructive"),this.$confirm(e,t,r)};d.config.globalProperties.$wait=function(e,t){e&&!t?(t=e,e=void 0):!e&&!t&&(t="Please wait...");let r=null,n=new Promise((i,a)=>{Ee(this,ce,{title:e,message:t,isBare:!0,classes:["wait"]},i)}).then(i=>r=i);return this.$endWait=async()=>{delete this.$endWait,r?await r.$dismiss():await n.then(()=>r.$dismiss())},this.$endWait};const qu=["innerHTML"],Yu={key:1};function Xu(e,t,r,n,i,a){const s=o.resolveComponent("Modal"),l=o.resolveDirective("user-text"),c=o.resolveDirective("autofocus");return o.openBlock(),o.createBlock(s,{class:o.normalizeClass(["vf-alert",e.classes])},o.createSlots({default:o.withCtx(()=>[e.isHtml?(o.openBlock(),o.createElementBlock("div",{key:0,innerHTML:e.message,class:"user-message"},null,8,qu)):o.withDirectives((o.openBlock(),o.createElementBlock("div",Yu,null,512)),[[l,e.message]])]),_:2},[this.isBare?void 0:{name:"header",fn:o.withCtx(()=>[o.createElementVNode("h1",null,o.toDisplayString(e.title),1)]),key:"0"},this.isBare?void 0:{name:"footer",fn:o.withCtx(()=>[e.shouldConfirm?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.withDirectives((o.openBlock(),o.createElementBlock("button",{class:"primary",onClick:t[0]||(t[0]=(...u)=>e.ok&&e.ok(...u))},[o.createTextVNode("Confirm")])),[[c]]),o.createElementVNode("button",{class:"default",onClick:t[1]||(t[1]=u=>e.$dismiss())},"Cancel")],64)):o.withDirectives((o.openBlock(),o.createElementBlock("button",{key:1,class:"default",onClick:t[2]||(t[2]=(...u)=>e.ok&&e.ok(...u))},[o.createTextVNode("OK")])),[[c]])]),key:"1"}]),1032,["class"])}const Ju=ee(Wu,[["render",Xu]]);var Zu=E,Qu=function(){return Zu.Date.now()},ef=Qu,tf=/\s/;function rf(e){for(var t=e.length;t--&&tf.test(e.charAt(t)););return t}var nf=rf,af=nf,sf=/^\s+/;function of(e){return e&&e.slice(0,af(e)+1).replace(sf,"")}var lf=of,cf=G,uf=L,ff="[object Symbol]";function df(e){return typeof e=="symbol"||uf(e)&&cf(e)==ff}var hf=df,pf=lf,rt=H,vf=hf,nt=0/0,gf=/^[-+]0x[0-9a-f]+$/i,mf=/^0b[01]+$/i,yf=/^0o[0-7]+$/i,$f=parseInt;function bf(e){if(typeof e=="number")return e;if(vf(e))return nt;if(rt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=rt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pf(e);var r=mf.test(e);return r||yf.test(e)?$f(e.slice(2),r?2:8):gf.test(e)?nt:+e}var _f=bf,Tf=H,fe=ef,it=_f,Of="Expected a function",Sf=Math.max,wf=Math.min;function Af(e,t,r){var n,i,a,s,l,c,u=0,_=!1,h=!1,p=!0;if(typeof e!="function")throw new TypeError(Of);t=it(t)||0,Tf(r)&&(_=!!r.leading,h="maxWait"in r,a=h?Sf(it(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function v($){var A=n,k=i;return n=i=void 0,u=$,s=e.apply(k,A),s}function g($){return u=$,l=setTimeout(S,t),_?v($):s}function O($){var A=$-c,k=$-u,ke=t-A;return h?wf(ke,a-k):ke}function T($){var A=$-c,k=$-u;return c===void 0||A>=t||A<0||h&&k>=a}function S(){var $=fe();if(T($))return m($);l=setTimeout(S,O($))}function m($){return l=void 0,p&&n?v($):(n=i=void 0,s)}function x(){l!==void 0&&clearTimeout(l),u=0,n=c=i=l=void 0}function C(){return l===void 0?s:m(fe())}function w(){var $=fe(),A=T($);if(n=arguments,i=this,c=$,A){if(l===void 0)return g(c);if(h)return clearTimeout(l),l=setTimeout(S,t),v(c)}return l===void 0&&(l=setTimeout(S,t)),s}return w.cancel=x,w.flush=C,w}var Cf=Af,Ef="__lodash_hash_undefined__";function xf(e){return this.__data__.set(e,Ef),this}var kf=xf;function If(e){return this.__data__.has(e)}var jf=If,Pf=xt,Hf=kf,Mf=jf;function Q(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pf;++t<r;)this.add(e[t])}Q.prototype.add=Q.prototype.push=Hf;Q.prototype.has=Mf;var Lf=Q;function Df(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Bf=Df;function Kf(e,t){return e.has(t)}var Nf=Kf,Rf=Lf,Ff=Bf,Vf=Nf,Uf=1,Gf=2;function zf(e,t,r,n,i,a){var s=r&Uf,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),_=a.get(t);if(u&&_)return u==t&&_==e;var h=-1,p=!0,v=r&Gf?new Rf:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var g=e[h],O=t[h];if(n)var T=s?n(O,g,h,t,e,a):n(g,O,h,e,t,a);if(T!==void 0){if(T)continue;p=!1;break}if(v){if(!Ff(t,function(S,m){if(!Vf(v,m)&&(g===S||i(g,S,r,n,a)))return v.push(m)})){p=!1;break}}else if(!(g===O||i(g,O,r,n,a))){p=!1;break}}return a.delete(e),a.delete(t),p}var Jt=zf;function Wf(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var qf=Wf;function Yf(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Xf=Yf,at=ne,st=zt,Jf=be,Zf=Jt,Qf=qf,ed=Xf,td=1,rd=2,nd="[object Boolean]",id="[object Date]",ad="[object Error]",sd="[object Map]",od="[object Number]",ld="[object RegExp]",cd="[object Set]",ud="[object String]",fd="[object Symbol]",dd="[object ArrayBuffer]",hd="[object DataView]",ot=at?at.prototype:void 0,de=ot?ot.valueOf:void 0;function pd(e,t,r,n,i,a,s){switch(r){case hd:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case dd:return!(e.byteLength!=t.byteLength||!a(new st(e),new st(t)));case nd:case id:case od:return Jf(+e,+t);case ad:return e.name==t.name&&e.message==t.message;case ld:case ud:return e==t+"";case sd:var l=Qf;case cd:var c=n&td;if(l||(l=ed),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;n|=rd,s.set(e,t);var _=Zf(l(e),l(t),n,i,a,s);return s.delete(e),_;case fd:if(de)return de.call(e)==de.call(t)}return!1}var vd=pd,lt=Ut,gd=1,md=Object.prototype,yd=md.hasOwnProperty;function $d(e,t,r,n,i,a){var s=r&gd,l=lt(e),c=l.length,u=lt(t),_=u.length;if(c!=_&&!s)return!1;for(var h=c;h--;){var p=l[h];if(!(s?p in t:yd.call(t,p)))return!1}var v=a.get(e),g=a.get(t);if(v&&g)return v==t&&g==e;var O=!0;a.set(e,t),a.set(t,e);for(var T=s;++h<c;){p=l[h];var S=e[p],m=t[p];if(n)var x=s?n(m,S,p,t,e,a):n(S,m,p,e,t,a);if(!(x===void 0?S===m||i(S,m,r,n,a):x)){O=!1;break}T||(T=p=="constructor")}if(O&&!T){var C=e.constructor,w=t.constructor;C!=w&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof w=="function"&&w instanceof w)&&(O=!1)}return a.delete(e),a.delete(t),O}var bd=$d,he=kt,_d=Jt,Td=vd,Od=bd,ct=le,ut=oe,ft=D,Sd=Mt,wd=1,dt="[object Arguments]",ht="[object Array]",W="[object Object]",Ad=Object.prototype,pt=Ad.hasOwnProperty;function Cd(e,t,r,n,i,a){var s=ut(e),l=ut(t),c=s?ht:ct(e),u=l?ht:ct(t);c=c==dt?W:c,u=u==dt?W:u;var _=c==W,h=u==W,p=c==u;if(p&&ft(e)){if(!ft(t))return!1;s=!0,_=!1}if(p&&!_)return a||(a=new he),s||Sd(e)?_d(e,t,r,n,i,a):Td(e,t,c,r,n,i,a);if(!(r&wd)){var v=_&&pt.call(e,"__wrapped__"),g=h&&pt.call(t,"__wrapped__");if(v||g){var O=v?e.value():e,T=g?t.value():t;return a||(a=new he),i(O,T,r,n,a)}}return p?(a||(a=new he),Od(e,t,r,n,i,a)):!1}var Ed=Cd,xd=Ed,vt=L;function Zt(e,t,r,n,i){return e===t?!0:e==null||t==null||!vt(e)&&!vt(t)?e!==e&&t!==t:xd(e,t,r,n,Zt,i)}var kd=Zt,Id=kd;function jd(e,t){return Id(e,t)}var Pd=jd;const pe=Symbol(null),gt=Symbol("create"),Hd="`1234567890-=[]\\;',./~!@#$%^&*()_+{}|:\"<>?qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM",Md={emits:["optionsLoaded","createItem","update:modelValue"],props:["modelValue","options","prependOptions","appendOptions","preload","url","urlParams","remoteSearch","searchFields","placeholder","valueKey","idKey","titleKey","titleFormatter","subtitleKey","subtitleFormatter","nullTitle","noResultsText","disabled","optionsListId","debug"],data(){return{isLoaded:!1,loadedOptions:[],isSearching:!1,searchText:"",selectedOption:null,selectedOptionTitle:null,shouldDisplayOptions:!1,highlightedOptionKey:null,shouldShowCreateOption:!1}},computed:{effectiveDisabled(){return this.disabled||!this.loadedOptions},effectivePlaceholder(){return!this.isLoaded&&this.$isPropTruthy(this.preload)?"Loading...":this.nullTitle?this.nullTitle:this.placeholder||""},effectiveIdKey(){return this.idKey||"id"},effectiveTitleKey(){return this.titleKey||"name"},effectiveValueKey(){if(this.valueKey)return this.valueKey;if(this.options&&!Array.isArray(this.options))return this.effectiveIdKey},effectiveNoResultsText(){return this.noResultsText||"No options match your search."},effectiveRemoteSearch(){return this.$isPropTruthy(this.remoteSearch)},loadedOptionsArray(){return this.arrayifyOptions(this.loadedOptions)},prependOptionsArray(){return this.prependOptions?this.arrayifyOptions(this.prependOptions):[]},appendOptionsArray(){return this.appendOptions?this.arrayifyOptions(this.appendOptions):[]},fullOptionsArray(){return[...this.prependOptionsArray,...this.loadedOptionsArray,...this.appendOptionsArray]},optionsDescriptors(){return this.fullOptionsArray.map((e,t)=>{const r=this.getOptionTitle(e),n=this.getOptionSubtitle(e),i=r?r.text.trim().toLowerCase():"",a=n?n.text.trim().toLowerCase():"";let s=[];return this.searchFields?this.searchFields.forEach(l=>{e[l]&&s.push(String(e[l]).toLowerCase())}):(s.push(i),a&&s.push(a)),{key:typeof e=="object"?e[this.effectiveIdKey]||t:e,titleHtml:r.html,subtitleHtml:n==null?void 0:n.html,searchContent:s.join(""),ref:e}})},effectiveOptions(){let e=[...this.optionsDescriptors];if(this.isSearching){const t=this.searchText.trim().toLowerCase();if(t.length){e=e.filter(i=>i.searchContent.includes(t));const r=this.searchText.escapeHtml().replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),n=new RegExp(`(${r})`,"ig");e=e.map(i=>(i={...i},i.titleHtml=i.titleHtml.replace(n,"<mark>$1</mark>"),i.subtitleHtml&&(i.subtitleHtml=i.subtitleHtml.replace(n,"<mark>$1</mark>")),i)),this.shouldShowCreateOption&&(e.find(a=>a.searchContent===t)!==void 0||e.push({key:gt,titleHtml:"Create <strong>"+this.searchText.trim()+"</strong>..."}))}}else this.nullTitle&&e.unshift({key:pe,titleHtml:this.nullTitle});return e}},watch:{modelValue(){this.handleValueChanged()},options(){this.loadedOptions=this.options},url(){console.log("url changed"),this.handleSourceUpdate()},urlParams(e,t){Pd(t,e)||this.handleSourceUpdate()},optionsDescriptors(){this.shouldDisplayOptions&&setTimeout(this.highlightInitialOption,0)},searchText(){this.isSearching&&!this.effectiveRemoteSearch&&!this.searchText.trim().length&&(this.isSearching=!1)},shouldDisplayOptions(){this.shouldDisplayOptions?setTimeout(this.handleOptionsDisplayed,0):(this.isSearching=!1,this.searchText=this.selectedOptionTitle||"")},effectiveOptions(){(!this.highlightedOptionKey||!this.effectiveOptions.find(e=>e.key==this.highlightedOptionKey))&&(this.highlightedOptionKey=this.effectiveOptions.length?this.effectiveOptions[0].key:null)}},async mounted(){this.shouldShowCreateOption=this.$attrs.onCreateItem!==void 0,this.options?(this.loadedOptions=this.options,this.isLoaded=!0):this.$isPropTruthy(this.preload)&&await this.loadRemoteOptions(),this.handleValueChanged(),this.$watch("selectedOption",()=>{const e=this.selectedOption&&this.effectiveValueKey?this.selectedOption[this.effectiveValueKey]:this.selectedOption;e!==this.modelValue&&this.$emit("update:modelValue",e)}),this.effectiveRemoteSearch&&this.$watch("searchText",Cf(this.reloadOptionsIfSearching,250))},methods:{async loadRemoteOptions(){await this.reloadOptions(),this.$emit("optionsLoaded",this.loadedOptions)},handleSourceUpdate(){if(console.log("source updated"),this.preload)return this.reloadOptions();this.isLoaded&&(this.isLoaded=!1,this.loadedOptions=[])},async reloadOptions(){let e={};this.urlParams&&Object.assign(e,this.urlParams),this.effectiveRemoteSearch&&this.isSearching&&this.searchText&&(e.q=this.searchText);const t=await this.$http.get(this.url,{params:e});this.loadedOptions=t.data,this.isLoaded=!0},reloadOptionsIfSearching(){this.isSearching&&(this.reloadOptions(),this.isSearching=this.searchText.trim().length>0)},handleKeyDown(e){if(e.key=="Escape"){e.stopPropagation(),e.target.blur();return}if(!(e.key=="ArrowLeft"||e.key=="ArrowRight")&&e.key!="Tab"){if(!this.isLoaded){this.isSearching||e.preventDefault();return}if(e.key=="ArrowUp"||e.key=="ArrowDown")return e.preventDefault(),this.incrementHighlightedOption(e.key=="ArrowUp"?-1:1);if(e.key=="PageUp"||e.key=="PageDown")return e.preventDefault(),this.incrementHighlightedOption(e.key=="PageUp"?-10:10);if(e.key=="Home"||e.key=="End")return e.preventDefault(),this.incrementHighlightedOption(e.key=="Home"?-Number.MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER);if(e.key=="Enter"){e.preventDefault();const t=this.effectiveOptions.find(r=>r.key==this.highlightedOptionKey);if(t)return this.selectOption(t)}if(e.key==="Delete"||e.key==="Backspace"){this.searchText.length>1&&(this.isSearching=!0);return}!e.metaKey&&Hd.includes(e.key)&&(this.isSearching=!0)}},handleInputFocused(){this.selectedOption?this.highlightedOptionKey=typeof this.selectedOption=="object"&&this.selectedOption!==null?this.selectedOption[this.effectiveIdKey]:this.selectedOption:this.nullTitle&&(this.highlightedOptionKey=pe),this.shouldDisplayOptions=!0},handleInputBlurred(){this.$isPropTruthy(this.debug)||(!this.searchText.length&&this.nullTitle&&(this.selectedOption=null,this.selectedOptionTitle=null),this.shouldDisplayOptions=!1)},handleOptionsDisplayed(){this.isLoaded||this.loadRemoteOptions(),this.teleportOptionsContainer(),this.optionsListId&&this.$refs.optionsContainer.setAttribute("id",this.optionsListId)},teleportOptionsContainer(){const e=this.$el.getBoundingClientRect(),t=e.y+e.height+2,r=e.x,n=this.$refs.optionsContainer,i=window.getComputedStyle(this.$el);for(let a in i)/^(font|text)/.test(a)&&(n.style[a]=i[a]);if(n.style.top=t+"px",n.style.left=r+"px",n.style.minWidth=e.width+"px",!i.maxHeight||i.maxHeight=="none"){const a=window.innerHeight-t-12;n.style.maxHeight=a+"px"}document.body.appendChild(n),setTimeout(this.highlightInitialOption,0)},highlightInitialOption(){if(!this.isLoaded||!this.highlightedOptionKey)return;const e=this.effectiveOptions.findIndex(n=>n.key==this.highlightedOptionKey),t=this.$refs.optionsContainer,r=t.querySelectorAll(".option")[e];t.scrollTop=r.offsetTop},handleOptionHover(e){this.highlightedOptionKey=e?e.key:null},incrementHighlightedOption(e){const t=this.effectiveOptions.findIndex(a=>a.key==this.highlightedOptionKey);let r=t+e;if(r<0?r=0:r>=this.effectiveOptions.length&&(r=this.effectiveOptions.length-1),t==r)return;this.highlightedOptionKey=this.effectiveOptions[r].key;const n=this.$refs.optionsContainer,i=n.querySelectorAll(".option")[r];i.offsetTop<n.scrollTop?n.scrollTop=i.offsetTop:i.offsetTop+i.offsetHeight>n.scrollTop+n.clientHeight&&(n.scrollTop=i.offsetTop+i.offsetHeight-n.clientHeight)},selectOption(e){if(this.isSearching=!1,e.key==pe)this.searchText="",this.selectedOption=null,this.selectedOptionTitle=null;else if(e.key===gt){const t=this.searchText.trim();this.searchText="",this.selectedOption=null,this.selectedOptionTitle=null,this.$emit("createItem",t)}else{const r=this.optionsDescriptors.find(n=>n.key==e.key).ref;this.selectedOption=r,this.selectedOptionTitle=this.getOptionTitle(this.selectedOption).text,this.searchText=this.selectedOptionTitle||""}this.$refs.searchField.blur()},handleValueChanged(){this.modelValue?(this.effectiveValueKey?this.selectedOption=this.fullOptionsArray.find(e=>e[this.effectiveValueKey]===this.modelValue):this.selectedOption=this.modelValue,this.selectedOptionTitle=this.getOptionTitle(this.selectedOption).text,this.searchText=this.selectedOptionTitle||""):(this.selectedOption=null,this.selectedOptionTitle=null,this.searchText="")},getOptionTitle(e){if(e===null)return null;if(this.titleFormatter){const r=this.titleFormatter(e);return typeof r=="object"?{text:r.text||r.html.replace(/<[^>]+>/g,""),html:r.html}:{text:r,html:r.escapeHtml()}}const t=String(typeof e!="object"?e:e[this.effectiveTitleKey]);return{text:t,html:t.escapeHtml()}},getOptionSubtitle(e){if(e===null)return null;if(this.subtitleFormatter){const r=this.subtitleFormatter(e);return r?typeof r=="object"?{text:r.text||r.html.replace(/<[^>]+>/g,""),html:r.html}:{text:r,html:r.escapeHtml()}:null}let t=typeof e!="object"?null:e[this.subtitleKey];return t?(t=String(t),{text:t,html:t.escapeHtml()}):null},addRemoteOption(e){this.loadedOptions.push(e)},arrayifyOptions(e){return Array.isArray(e)?e:Object.entries(e).map(t=>({[this.effectiveIdKey]:t[0],[this.effectiveTitleKey]:t[1]}))}}},Ld=["placeholder"],Dd={key:0,ref:"optionsContainer",class:"vf-smart-select-options"},Bd={key:0,class:"no-results"},Kd=["onMousemove","onMousedown"],Nd=["innerHTML"],Rd=["innerHTML"],Fd={key:0,class:"no-results"};function Vd(e,t,r,n,i,a){const s=o.resolveDirective("disabled");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vf-smart-select",{disabled:a.effectiveDisabled,open:i.shouldDisplayOptions}])},[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=l=>i.searchText=l),ref:"searchField",type:"text",class:o.normalizeClass({nullable:!!r.nullTitle}),onKeydown:t[1]||(t[1]=(...l)=>a.handleKeyDown&&a.handleKeyDown(...l)),placeholder:a.effectivePlaceholder,onFocus:t[2]||(t[2]=(...l)=>a.handleInputFocused&&a.handleInputFocused(...l)),onBlur:t[3]||(t[3]=(...l)=>a.handleInputBlurred&&a.handleInputBlurred(...l))},null,42,Ld),[[o.vModelText,i.searchText],[s,a.effectiveDisabled]]),i.shouldDisplayOptions?(o.openBlock(),o.createElementBlock("div",Dd,[i.isLoaded?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.effectiveOptions,l=>(o.openBlock(),o.createElementBlock("div",{key:l.key,class:o.normalizeClass(["option",{highlighted:i.highlightedOptionKey===l.key}]),onMousemove:c=>a.handleOptionHover(l),onMousedown:c=>a.selectOption(l)},[o.createElementVNode("div",{class:"title",innerHTML:l.titleHtml},null,8,Nd),l.subtitleHtml?(o.openBlock(),o.createElementBlock("div",{key:0,class:"subtitle",innerHTML:l.subtitleHtml},null,8,Rd)):o.createCommentVNode("",!0)],42,Kd))),128)),!a.effectiveOptions.length&&i.searchText?(o.openBlock(),o.createElementBlock("div",Fd,o.toDisplayString(a.effectiveNoResultsText),1)):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock("div",Bd,"Loading..."))],512)):o.createCommentVNode("",!0)],2)}const Ud=ee(Md,[["render",Vd]]);d.component("AjaxSelect",ur);d.component("Alert",Ju);d.component("Modal",Xt);d.component("SmartSelect",Ud);d.directive("autofocus",{mounted:mt,updated:mt});function mt(e,t){t.value===void 0&&e.hasAutoFocused||t.value!==void 0&&!t.value||t.oldValue!==void 0&&t.value==t.oldValue||(e.hasAutoFocused=!0,e=["BUTTON","INPUT","TEXTAREA","SELECT"].indexOf(e.tagName)>-1?e:f(e).find("input:first")[0],setTimeout(()=>e.focus(),10))}d.directive("confirm-button",{mounted(e){e.addEventListener("click",t=>{let r=Date.now();if(e._isConfirming){if(r-e._confirmInitTime<300)return;e._resetHandler(),e.dispatchEvent(new Event("confirm"));return}t.preventDefault(),t.stopImmediatePropagation(),e._resetHandler=()=>{e.innerHTML=e._preConfirmHTML,e.blur(),e.removeEventListener("mouseout",e._resetHandler),delete e._isConfirming,delete e._preConfirmHTML,delete e._resetHandler},e._isConfirming=!0,e._confirmInitTime=r,e._preConfirmHTML=e.innerHTML,e.innerHTML="Confirm",e.addEventListener("mouseout",e._resetHandler)})}});d.directive("datetime",{beforeMount:yt,updated:yt});function yt(e,t){t.value==t.oldValue&&e.innerHTML.length||(e.innerText=Gd(e,t))}function Gd(e,t){if(!t.value)return e.attributes.placeholder?e.attributes.placeholder.value:"";let r="",n=e.attributes.local?P(t.value):P.utc(t.value);e.attributes["display-utc"]||n.local();let i=e.attributes.format?e.attributes.format.value:null;if(!i&&e.attributes["relative-date"]){let s=P();s.year()==n.year()&&s.month()==n.month()&&s.date()==n.date()&&(r="at",i="HH:mm")}i||(i="MM/DD/YY HH:mm");let a=n.format(i);return r&&(a=r+" "+a),a}d.directive("date-input",{beforeMount:zd});function zd(e){e.addEventListener("blur",()=>{let t=e.value;/^[0-9]{1,2}\/[0-9]{1,2}$/.test(t)&&(t+="/"+P().format("YY"));let r=Date.parse(t);isNaN(r)?e.value="":e.value=P(r).format("MM/DD/YYYY"),e.dispatchEvent(new Event("input"))})}d.directive("disabled",{beforeMount:$t,updated:$t,unmounted:Wd});function $t(e,t){e.tagName=="LABEL"&&(f(e).toggleClass("disabled",!!t.value),e=f(e).find("input")[0]),t.value?f(e).attr("disabled","disabled"):f(e).removeAttr("disabled")}function Wd(e){e.tagName=="LABEL"&&(f(e).removeClass("disabled"),e=f(e).find("input")[0]),f(e).removeAttr("disabled")}let xe=[];function qd(){xe.forEach(Qt)}setInterval(qd,1e3);d.directive("duration",{beforeMount:bt,updated:bt,unmounted:er});function bt(e,t){if(t.value==t.oldValue)return;if(!t.value)return er(e);e.$includeSeconds=typeof e.attributes["no-seconds"]>"u";let r=e.attributes["base-time"];r?e.$startTs=P(r.value).valueOf()-t.value*1e3:e.$startTs=P(t.value).valueOf(),e.$isConfigured||(e.$isConfigured=!0,xe.push(e)),Qt(e)}function Qt(e){let t=e.$startTs,r=Math.round((Date.now()-t)/1e3);e.innerText=Yd(r,e.$includeSeconds===!1)}function er(e){e.$isConfigured&&(xe.remove(e),e.$isConfigured=!1),e.innerText="-"}function Yd(e,t){let r=[],n=Math.floor(e/86400);n&&r.push(n+"d"),e-=n*86400;let i=Math.floor(e/3600);(n||i)&&r.push(i+"h"),e-=i*3600;let a=Math.floor(e/60);return(n||i||a)&&r.push(a+"m"),t?r.length||r.push("0m"):(e-=a*60,r.push(e+"s")),r.join(" ")}class Y{constructor(t,r){this.el=t,this.handler=r,this.isTripped=!1,this.onScroll=this._onScroll.bind(this)}install(){this.el.addEventListener("scroll",this.onScroll)}uninstall(){this.el.removeEventListener("scroll",this.onScroll)}_onScroll(t){Math.ceil(this.el.scrollTop+this.el.clientHeight+5)>=this.el.scrollHeight?this.isTripped||(this.handler(t),this.isTripped=!0):this.isTripped&&(this.isTripped=!1)}}d.directive("infinite-scroll",{beforeMount(e,t){t.value&&(e._infiniteScrollHook=new Y(e,t.value),e._infiniteScrollHook.install())},unmounted(e){e._infiniteScrollHook&&e._infiniteScrollHook.uninstall()}});d.directive("readonly",{beforeMount:_t,updated:_t});function _t(e,t){e.tagName=="LABEL"&&(e=f(e).find("input")[0]),t.value?f(e).attr("readonly","readonly"):f(e).removeAttr("readonly")}d.directive("tip",{mounted:Tt,updated:Tt,unmounted:Xd});function Tt(e,t){let r=e.attributes.tip?e.attributes.tip.value:t.value;if(t.value===!1&&(r=null),r){let n={};n[t.modifiers.html?"html":"text"]=r,e.attributes["tip-class"]&&(n.class=e.attributes["tip-class"].value),f(e).vfTooltip(n)}else f(e).vfTooltip("destroy")}function Xd(e){f(e).vfTooltip("destroy")}f.fn.vfTooltip=function(e){return this.each(function(t,r){var n=f(r).data("vf-tooltip");if(typeof e=="string"){if(!n)return;n[e]()}else if(n)n.configure(e);else{var i=new Jd(r,e);f(r).data("vf-tooltip",i)}})};function Jd(e,t){this.configure=c,this.destroy=S;var r,n,i,a,s=!1;this.configure(t);var l=f(e);l.on("mouseenter",u),l.on("mouseleave",_),n.now&&u(n.now);function c(m){n=f.extend({delay:0},m)}function u(m){s||(s=!0,setTimeout(function(){s&&(h(),n.static?g():O(m),r.show())},n.delay))}function _(){s=!1,p()}function h(){r?r.remove():n.static||f(window).on("mousemove",O),r=f('<div class="vf-tooltip">').css("position","absolute").css("z-index","1000000").addClass(n.class).appendTo(document.body),n.title&&f('<div class="title">').text(n.title).appendTo(r);var m=f('<div class="content">').appendTo(r);n.callback?n.callback(m[0]):n.text?m.text(n.text).html(m.html().replace(/\n/g,"<br>")):n.html&&m.html(n.html),n.static?r.mouseover(function(){s=!0}).mouseout(function(){s=!1,p()}):a=setInterval(T,250)}function p(){n.static?setTimeout(v,50):v()}function v(){s||r&&(r.remove(),r=null,clearInterval(a),n.static||f(window).off("mousemove",O))}function g(){var m=l.position(),x=r.height(),C=l.outerWidth(!0),w=m.left,$=m.top-x-1;$-2<0&&($=m.top+l.outerHeight(!0)+1),r.css("min-width",C+"px").css("left",w+"px").css("top",$+"px")}function O(m){var x=r.outerWidth(),C=r.outerHeight(),w=window.innerWidth,$=window.innerHeight,A=m.pageX+10,k=m.pageY+20;A+x>w&&(A=m.pageX-5-x),k+C>$&&(k=m.pageY-5-C),r.css("left",A+"px").css("top",k+"px"),i=m}function T(){i&&e!=i.target&&!f.contains(e,i.target)&&_()}function S(){s=!1,v(),l.off("mouseenter",u),l.off("mouseleave",_),l.removeData("vf-tooltip")}}d.directive("user-text",{beforeMount:Ot,updated:Ot});function Ot(e,t){t.value!=t.oldValue&&(e.innerHTML=t.value.escapeHtml().nl2br())}Object.defineProperty(Array.prototype,"diff",{enumerable:!1,value:function(...e){return this.filter(t=>{for(let r=0;r<e.length;r++)if(e[r].includes(t))return!1;return!0})}});Object.defineProperty(Array.prototype,"first",{enumerable:!1,value:function(){return this[0]||void 0}});Object.defineProperty(Array.prototype,"intersect",{enumerable:!1,value:function(...e){return this.filter(t=>{for(let r=0;r<e.length;r++)if(e[r].includes(t))return!0;return!1})}});Object.defineProperty(Array.prototype,"keyBy",{enumerable:!1,value:function(e){let t={};return this.forEach(r=>{t[r[e]]=r}),t}});Object.defineProperty(Array.prototype,"last",{enumerable:!1,value:function(){return this.length?this[this.length-1]:void 0}});Object.defineProperty(Array.prototype,"pluck",{enumerable:!1,value:function(e,t){if(typeof t>"u")return this.map(n=>n[e]);let r={};return this.forEach(n=>{r[n[t]]=n[e]}),r}});Object.defineProperty(Array.prototype,"remove",{enumerable:!1,value:function(e){const t=this.indexOf(e);t>-1&&this.splice(t,1)}});Object.defineProperty(Array.prototype,"replace",{enumerable:!1,value:function(e,t){const r=this.indexOf(e);r>-1&&this.splice(r,1,t)}});Object.defineProperty(Array.prototype,"sortBy",{enumerable:!1,value:function(e){this.sort((t,r)=>String(t[e]).toLowerCase().localeCompare(String(r[e]).toLowerCase()))}});Object.defineProperty(Array.prototype,"unique",{enumerable:!1,value:function(){return[...new Set(this)]}});d.config.globalProperties.$contextMenu=function(e,t){var r=f('<div class="vf-overlay">').click(h).appendTo(document.body),n=f('<div class="vf-context-menu">').css("position","absolute").appendTo(r),i=f(e.currentTarget);i.css("user-select","none"),i.addClass("context-menu-active"),t.targetClass&&i.addClass(t.targetClass),t.class&&n.addClass(t.class),t.items&&t.items.forEach(v=>{if(v=="-")return f('<div class="separator">').appendTo(n);var g=f('<div class="item">').css("user-select","none").text(v.title).appendTo(n);v.class&&g.addClass(v.class),v.shouldConfirm?g.data("handler",v.handler).click(p):v.handler&&g.click(v.handler)});const a=window.innerWidth-e.clientX,s=window.innerHeight-e.clientY,l=n.outerHeight(),c=n.outerWidth(),u=a<c?e.clientX-c-1:e.clientX+1,_=s<l?e.clientY-l-1:e.clientY+1;n.css("left",u+"px"),n.css("top",_+"px"),t.onCreate&&t.onCreate(n[0]),setTimeout(()=>{n.css("width",n.outerWidth()+"px")},50);function h(){t.targetClass&&i.removeClass(t.targetClass),i.removeClass("context-menu-active"),i.css("user-select",""),r.remove()}function p(v){var g=f(v.currentTarget);if(g.hasClass("pending-confirm")){var O=g.data("handler");O&&O()}else{var T=g.html();g.addClass("pending-confirm").text("Confirm"),g.one("mouseleave",function(){g.removeClass("pending-confirm").html(T)}),v.stopPropagation()}}};d.config.globalProperties.$delay=e=>new Promise(t=>setTimeout(t,e));let I={unhandledErrorSupportText:"please contact support"};function Zd(e){Object.assign(I,e)}Object.defineProperty(I,"set",{value:Zd,enumerable:!1});d.config.globalProperties.$reportError=e=>{e instanceof Error||(e=new Error(e)),I.reportErrorHandler?I.reportErrorHandler(e):console.error(e)};d.config.globalProperties.$throwUserError=e=>{let t=new Error(e);throw t.code="USERERR",t};Object.defineProperty(Error.prototype,"userMessage",{get(){return this.code=="USERERR"?this.message:`An application error has occurred:
2
+
3
+ ${this.message}
4
+
5
+ Please refresh the page and try again. If this error persists, ${I.unhandledErrorSupportText}.`}});Error.prototype.handle=function(){return this.code!="USERERR"&&d.config.globalProperties.$reportError(this),this};d.config.globalProperties.$http=X;X.postOrPut=(e,t,...r)=>{const n=t?"put":"post",i=t?`${e}/${t}`:e;return X[n](i,...r)};X.interceptors.response.use(e=>{if(e.data&&typeof e.data!="object")throw new Error("response was not JSON");return e},e=>{if(e.response&&e.response.status==401&&I.unauthorizedHttpResponseHandler&&I.unauthorizedHttpResponseHandler(e.response))return new Promise(()=>{});throw e.response&&e.response.data&&e.response.data.error&&(e.code=e.response.status==422?"USERERR":"APIERR",e.message=e.response.data.error,e.field=e.response.data.errorField),e});d.config.globalProperties.$mask=function(e){let t=f(this.$el);this.$maskEl(t.hasClass("vf-overlay")?t.find(".vf-modal")[0]:this.$el,e)};d.config.globalProperties.$maskEl=function(e,t){this._currentMask||(this._currentMask=f('<div class="mask">').text(t||"Please wait...").appendTo(e))};d.config.globalProperties.$unmask=function(){this._currentMask&&(f(this._currentMask).remove(),delete this._currentMask)};d.config.globalProperties.$maskForm=function(e,t){let r=this.$el;e!==void 0&&e.tagName=="FORM"&&(r=e,e=void 0);let n=r.tagName=="FORM"?f(r):f(r).find("form"),i=n.find("input, select, textarea, button").not("[disabled]");if(n.addClass("masked"),n.data("vf-masked-inputs",i),i.attr("disabled","disabled"),e===void 0&&(e=n.find("button:first")),e){let a=n.find(e);a.disable(t||"Please wait..."),n.data("vf-masked-wait-btn",a)}};d.config.globalProperties.$unmaskForm=function(){let e=this.$el.tagName=="FORM"?f(this.$el):f(this.$el).find("form.masked");if(!e.length)return;e.data("vf-masked-inputs").removeAttr("disabled"),e.removeData("vf-masked-inputs");let r=e.data("vf-masked-wait-btn");r&&(e.removeData("vf-masked-wait-btn"),r.enable()),e.removeClass("masked")};f.fn.disable=function(e){return this.each(function(t,r){var n=f(r),i=r.tagName=="INPUT";e&&n.data("originalValue",i?n.val():n.html())&&n[i?"val":"text"](e),n.attr("disabled","disabled")}),this};f.fn.enable=function(){return this.each(function(e,t){var r=f(t);r.removeAttr("disabled");var n=r.data("originalValue");n!=null&&r[t.tagName=="INPUT"?"val":"html"](n)&&r.removeData("originalValue")}),this};Number.prototype.format=function(){return this.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")};String.prototype.escapeHtml=function(){return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")};String.prototype.nl2br=function(){return this.replace(/\n/g,"<br>")};String.prototype.kebab=function(){return this.replace(/ /g,"-")};String.prototype.lcfirst=function(){return this.substr(0,1).toLowerCase()+this.substr(1)};String.prototype.snake=function(){return this.replace(/ /g,"_")};String.prototype.ucfirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1)};String.prototype.ucwords=function(){return this.replace(/^[a-z]| [a-z]/gi,function(e){return e.toUpperCase()})};String.prototype.unsnake=function(){return this.replace(/_/g," ")};d.config.globalProperties.$isPropTruthy=function(e){return e!==void 0&&(e===""||e)};class Qd{static install(t){const r=["auto","scroll"],n=function(l){if(l=l.parentElement,!l)return null;const c=window.getComputedStyle(l);return r.includes(c.overflow)||r.includes(c.overflowX)||r.includes(c.overflowY)?l:n(l)},i=function(){if(this.$options.windowScrolledToBottom&&(this._windowScrollHook=new Y(window,this.$options.windowScrolledToBottom.bind(this)),this._windowScrollHook.install()),this.$options.elScrolledToBottom&&(this._elScrollHook=new Y(this.$el,this.$options.elScrolledToBottom.bind(this)),this._elScrollHook.install()),this.$options.ancestorScrolledToBottom){const l=n(this.$el);l?(this._ancestorScrollHook=new Y(l,this.$options.ancestorScrolledToBottom.bind(this)),this._ancestorScrollHook.install()):console.warn("no scollable ancestor found for component:",this)}},a=function(){this._windowScrollHandler&&this._windowScrollHandler.install(),this._elScrollHandler&&this._elScrollHandler.install(),this._ancestorScrollHook&&this._ancestorScrollHook.install()},s=function(){this._windowScrollHandler&&this._windowScrollHandler.uninstall(),this._elScrollHandler&&this._elScrollHandler.uninstall(),this._ancestorScrollHook&&this._ancestorScrollHook.uninstall()};t.mixin({mounted(){i.call(this)},activated(){a.call(this)},deactivated(){s.call(this)},beforeUnmount(){s.call(this)}})}}class eh{static install(t){t.mixin({mounted(){this.$options.windowResized&&(this._resizeWatcherHandler=this.$options.windowResized.bind(this),window.addEventListener("resize",this._resizeWatcherHandler))},activated(){this._resizeWatcherHandler&&window.addEventListener("resize",this._resizeWatcherHandler)},deactivated(){this._resizeWatcherHandler&&window.removeEventListener("resize",this._resizeWatcherHandler)},beforeUnmount(){this._resizeWatcherHandler&&window.removeEventListener("resize",this._resizeWatcherHandler)}})}}d.use(nr);d.use(Qd);d.use(eh);const tr={bytes(e){var t=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,t)).toFixed(2)*1+" "+["B","KB","MB","GB","TB"][t]},dash(e){return e!=null&&String(e).length?e:"-"},dashZeros(e){return e||"-"},grammarcase(e){return e?e.grammarcase():null},lowercase(e){return e?e.toLowerCase():null},number(e){return e===null||!/^[0-9]+$/.test(e)?e:e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},phone(e){if(!e)return e;let t=e.replace(/[^0-9]/g,"").replace(/^1/,"");return t.length!=10?e:"("+t.substr(0,3)+") "+t.substr(3,3)+"-"+t.substr(6)},ucfirst(e){return e?e.ucfirst():null},ucwords(e){return e?e.ucwords():null},uppercase(e){return e?e.toUpperCase():null},unsnake(e){return e?e.unsnake():null},usCurrency(e){return"$"+Number(e).toFixed(3).replace(/0$/,"").replace(/\B(?=(\d{3})+(?!\d))/g,",")}};function th(e){for(let t of Object.keys(e))rr(t,e[t])}function rr(e,t){tr[e]=t}d.config.globalProperties.$filter=(e,...t)=>{for(let r of t)e=tr[r](e);return e};const rh={getApp:ah,configure:nh,mount:ih,registerFilter:rr,registerFilters:th};function nh(e){I.set(e)}function ih(e,t){ir(e),d.vm=d.mount(t)}function ah(){return d}exports.default=rh;
@@ -0,0 +1 @@
1
+ .vf-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100}.vf-modal-wrap{background:rgba(0,0,0,.25);display:flex;justify-content:center;align-items:center}.vf-modal{background:white;box-shadow:0 3px 6px #00000026;min-width:200px;max-width:95%;max-height:95%;display:flex;flex-direction:column}.vf-modal-header,.vf-modal-footer{flex-shrink:0;position:relative}.vf-modal.scrolls>.vf-modal-content{overflow:auto;flex-grow:1;flex-shrink:1;flex-basis:0%}.vf-modal-wrap.vf-alert .vf-modal{max-width:800px}.vf-modal-wrap.vf-alert .vf-modal>.vf-modal-content{padding:12px}.vf-modal-wrap.vf-alert.wait .vf-modal-content{text-align:center}.vf-modal-wrap.vf-alert.destructive button.primary{color:red}.vf-smart-select{position:relative}.vf-smart-select input{width:100%;padding-right:24px!important}.vf-smart-select input.nullable::-moz-placeholder{color:#000}.vf-smart-select input.nullable::placeholder{color:#000}.vf-smart-select:after{content:" ";display:block;position:absolute;top:50%;right:8px;margin-top:-3px;width:0;height:0;border-style:solid;border-width:5px 5px 0 5px;border-color:#333333 transparent transparent transparent;pointer-events:none}.vf-smart-select.open:after{margin-top:-4px;border-width:0 5px 5px 5px;border-color:transparent transparent #333333 transparent}.vf-smart-select:not(.disabled) input{cursor:pointer}.vf-smart-select.disabled:after{opacity:.4}.vf-smart-select-options{position:absolute;min-height:20px;border:1px solid #e8e8e8;background:white;overflow:auto;z-index:101}.vf-smart-select-options .option,.vf-smart-select-options .no-results{padding:5px 8px}.vf-smart-select-options .option{cursor:pointer}.vf-smart-select-options .option.highlighted{background-color:#f5f5f5}