@fox-js/foxui-pad 3.3.2 → 3.3.4

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/dist/index.cjs.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";/*!
2
- * fox-desktop v3.3.0 Thu Aug 17 2023 14:36:13 GMT+0800 (中国标准时间)
2
+ * fox-desktop v3.3.0 Mon Apr 22 2024 17:22:01 GMT+0800 (中国标准时间)
3
3
  */const S=require("vue"),Fr=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},Er=Fr(S);let Y=t=>t!=null;const Ln=Symbol("$PageView"),Mi=Symbol("$PageHeaderView"),Ri=Symbol("$PageFooterView"),Or=Symbol.for("$DynamicView"),Ai=Symbol("$GroupView"),Me=Symbol("$GroupItemView"),he=typeof window<"u",Ue=function(){return window.document},Fe=t=>t==null?!0:typeof t!="string"?!1:t.length==0;function Z(t){return t==null?!1:typeof t=="boolean"?t:typeof t=="string"?t.toLowerCase()==="true":`${t}`.toLowerCase()==="true"}function ne(t){return Number(t)}function jr(t,e=-1){if(e==-1)return t;t=t.replace(`
4
- `,"").trim();let n=e;return t.length<=n||(t=t.substring(0,n-1),t+="..."),t}function Nn(t,e,n){if(!he)return t.length*e;let i=Ue().createElement("span");t=t.replace(/\\n/g," ").replace(/\\r/g," "),i.innerText=t,i.style.fontSize=e,n.appendChild(i);let r=i.offsetWidth;return n.removeChild(i),r}function Vi(t){return t==null?!1:t.toString().indexOf("Promise")!==-1}function Fi(t,e,n,i){for(let r in t){let l=t[r],s=r;if(n&&n.length>0&&(s=`${n}.${r}`),!!Reflect.has(e,r)&&!(typeof i=="function"&&!Reflect.apply(i,this,[s,t])))if(l!=null&&typeof l=="object"&&!Array.isArray(l)){let o=e[r];if(o==null)continue;typeof o!="object"||o instanceof Date?e[r]=l:Fi(l,o,s,i)}else e[r]=l}}function ht(t,e,n){if(t==null)return;let i=e[n],r=i.indexOf("["),l=i.indexOf("]");if(r>0&&l===i.length-1){let s=i.substring(0,r),o=Number(i.substring(r+1,l)),a=t[s];if(a==null)return;if(n<e.length-1){let u=a[o];return ht(u,e,n+1)}else return a[o]}else if(n<e.length-1){let s=t[i];return s==null||s===void 0?void 0:typeof s=="object"?ht(s,e,n+1):void 0}else return t[i]}function pt(t,e,n,i){if(t==null)return;let r=e[n],l=r.indexOf("["),s=r.indexOf("]");if(l>0&&s===r.length-1){let o=r.substring(0,l),a=Number(r.substring(l+1,s)),u=t[o];if(u==null)return;if(n<e.length-1){let d=u[a];typeof d=="object"&&pt(d,e,n+1,i)}else u[a]=i}else if(n<e.length-1){let o=t[r];if(o==null)return;typeof o=="object"&&pt(o,e,n+1,i)}else t[r]=i}const qr=Symbol.for("$ProxyView");function Ei(t){if(t&&t.$children&&t.$children.length==1){const e=t.$children[0];return e&&e._data&&e._data[Ln]===!0}return!1}function qe(t){let e=t&&t.$vnode&&t.$vnode.context;return!e||he&&e.$el===Ue().body?null:(e.$data&&e.$data[qr]&&(e=e.$vnode.context),e._provided&&e._provided.customRoot!==void 0&&(e=qe(e)),t.pageScope&&!Ei(e)&&(e=qe(e)),e)}var Ie=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oi={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(self,function(){return function(){var n={465:function(s,o){function a(m,p){return function(h){if(Array.isArray(h))return h}(m)||function(h,y){var $=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if($!=null){var _,b,P=[],L=!0,x=!1;try{for($=$.call(h);!(L=(_=$.next()).done)&&(P.push(_.value),!y||P.length!==y);L=!0);}catch(v){x=!0,b=v}finally{try{L||$.return==null||$.return()}finally{if(x)throw b}}return P}}(m,p)||function(h,y){if(h){if(typeof h=="string")return u(h,y);var $=Object.prototype.toString.call(h).slice(8,-1);return $==="Object"&&h.constructor&&($=h.constructor.name),$==="Map"||$==="Set"?Array.from(h):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?u(h,y):void 0}}(m,p)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function u(m,p){(p==null||p>m.length)&&(p=m.length);for(var h=0,y=new Array(p);h<p;h++)y[h]=m[h];return y}function d(m){for(var p="",h=m.length,y=m.split(".")[1],$=y?y.length:0,_=0;_<h;_++)m[_]>="0"&&m[_]<="9"?p+=9-parseInt(m[_]):p+=m[_];return c(p,$>0?"0."+new Array($).join("0")+"1":"1")}function f(m){var p=m.split(".");for(p[0]||(p[0]="0");p[0][0]=="0"&&p[0].length>1;)p[0]=p[0].substring(1);return p[0]+(p[1]?"."+p[1]:"")}function g(m,p){var h=m.split("."),y=p.split("."),$=h[0].length,_=y[0].length;return $>_?y[0]=new Array(Math.abs($-_)+1).join("0")+(y[0]?y[0]:""):h[0]=new Array(Math.abs($-_)+1).join("0")+(h[0]?h[0]:""),$=h[1]?h[1].length:0,_=y[1]?y[1].length:0,($||_)&&($>_?y[1]=(y[1]?y[1]:"")+new Array(Math.abs($-_)+1).join("0"):h[1]=(h[1]?h[1]:"")+new Array(Math.abs($-_)+1).join("0")),[m=h[0]+(h[1]?"."+h[1]:""),p=y[0]+(y[1]?"."+y[1]:"")]}function c(m,p){var h=a(g(m,p),2);m=h[0],p=h[1];for(var y="",$=0,_=m.length-1;_>=0;_--)if(m[_]!=="."){var b=parseInt(m[_])+parseInt(p[_])+$;y=b%10+y,$=Math.floor(b/10)}else y="."+y;return $?$.toString()+y:y}Object.defineProperty(o,"__esModule",{value:!0}),o.pad=o.trim=o.add=void 0,o.add=function(m){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",h=0,y=-1;m[0]=="-"&&(h++,y=1,(m=m.substring(1)).length),p[0]=="-"&&(h++,y=2,(p=p.substring(1)).length),m=f(m),p=f(p);var $=g(f(m),f(p)),_=a($,2);m=_[0],p=_[1],h==1&&(y==1?m=d(m):p=d(p));var b=c(m,p);return h?h==2?"-"+f(b):m.length<b.length?f(b.substring(1)):"-"+f(d(b)):f(b)},o.trim=f,o.pad=g},152:function(s,o,a){function u(f,g){(g==null||g>f.length)&&(g=f.length);for(var c=0,m=new Array(g);c<g;c++)m[c]=f[c];return m}Object.defineProperty(o,"__esModule",{value:!0}),o.compareTo=void 0;var d=a(465);o.compareTo=function(f,g){var c=!1;if(f[0]=="-"&&g[0]!="-")return-1;if(f[0]!="-"&&g[0]=="-")return 1;f[0]=="-"&&g[0]=="-"&&(f=f.substr(1),g=g.substr(1),c=!0);var m=function(h,y){return function($){if(Array.isArray($))return $}(h)||function($,_){var b=$==null?null:typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(b!=null){var P,L,x=[],v=!0,C=!1;try{for(b=b.call($);!(v=(P=b.next()).done)&&(x.push(P.value),!_||x.length!==_);v=!0);}catch(I){C=!0,L=I}finally{try{v||b.return==null||b.return()}finally{if(C)throw L}}return x}}(h,y)||function($,_){if($){if(typeof $=="string")return u($,_);var b=Object.prototype.toString.call($).slice(8,-1);return b==="Object"&&$.constructor&&(b=$.constructor.name),b==="Map"||b==="Set"?Array.from($):b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?u($,_):void 0}}(h,y)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}((0,d.pad)(f,g),2);if(f=m[0],g=m[1],f.localeCompare(g)==0)return 0;for(var p=0;p<f.length;p++)if(f[p]!=g[p])return f[p]>g[p]?c?-1:1:c?1:-1;return 0}},753:function(s,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.divide=void 0;var u=a(465),d=a(698);o.divide=function(f,g){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:8;if(g==0)throw new Error("Cannot divide by 0");if(f=f.toString(),g=g.toString(),f=f.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),g=g.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),f==0)return"0";var m=0;g[0]=="-"&&(g=g.substring(1),m++),f[0]=="-"&&(f=f.substring(1),m++);var p=g.indexOf(".")>0?g.length-g.indexOf(".")-1:-1;if(g=(0,u.trim)(g.replace(".","")),p>=0){var h=f.indexOf(".")>0?f.length-f.indexOf(".")-1:-1;if(h==-1)f=(0,u.trim)(f+new Array(p+1).join("0"));else if(p>h)f=f.replace(".",""),f=(0,u.trim)(f+new Array(p-h+1).join("0"));else if(p<h){var y=(f=f.replace(".","")).length-h+p;f=(0,u.trim)(f.substring(0,y)+"."+f.substring(y))}else p==h&&(f=(0,u.trim)(f.replace(".","")))}var $=0,_=g.length,b="",P=f.indexOf(".")>-1&&f.indexOf(".")<_?f.substring(0,_+1):f.substring(0,_);if(f=f.indexOf(".")>-1&&f.indexOf(".")<_?f.substring(_+1):f.substring(_),P.indexOf(".")>-1){var L=P.length-P.indexOf(".")-1;_>(P=P.replace(".","")).length&&(L+=_-P.length,P+=new Array(_-P.length+1).join("0")),$=L,b="0."+new Array(L).join("0")}for(c+=2;$<=c;){for(var x=0;parseInt(P)>=parseInt(g);)P=(0,u.add)(P,"-"+g),x++;b+=x,f?(f[0]=="."&&(b+=".",$++,f=f.substring(1)),P+=f.substring(0,1),f=f.substring(1)):($||(b+="."),$++,P+="0")}return(m==1?"-":"")+(0,u.trim)((0,d.roundOff)(b,c-2))}},144:function(s,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.modulus=void 0;var u=a(753),d=a(698),f=a(850),g=a(507),c=a(581);function m(p){if(p.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}o.modulus=function(p,h){if(h==0)throw new Error("Cannot divide by 0");p=p.toString(),h=h.toString(),m(p),m(h);var y="";return p[0]=="-"&&(y="-",p=p.substr(1)),h[0]=="-"&&(h=h.substr(1)),y+(0,g.subtract)(p,(0,f.multiply)(h,(0,d.roundOff)((0,u.divide)(p,h),0,c.RoundingModes.FLOOR)))}},850:function(s,o){function a(u){for(;u[0]=="0";)u=u.substr(1);if(u.indexOf(".")!=-1)for(;u[u.length-1]=="0";)u=u.substr(0,u.length-1);return u==""||u=="."?u="0":u[u.length-1]=="."&&(u=u.substr(0,u.length-1)),u[0]=="."&&(u="0"+u),u}Object.defineProperty(o,"__esModule",{value:!0}),o.multiply=void 0,o.multiply=function(u,d){u=u.toString(),d=d.toString();var f=0;u[0]=="-"&&(f++,u=u.substr(1)),d[0]=="-"&&(f++,d=d.substr(1)),u=a(u),d=a(d);var g=0,c=0;u.indexOf(".")!=-1&&(g=u.length-u.indexOf(".")-1),d.indexOf(".")!=-1&&(c=d.length-d.indexOf(".")-1);var m=g+c;if(u=a(u.replace(".","")),d=a(d.replace(".","")),u.length<d.length){var p=u;u=d,d=p}if(d=="0")return"0";for(var h,y,$=d.length,_=0,b=[],P=$-1,L="",x=0;x<$;x++)b[x]=u.length-1;for(var v=0;v<2*u.length;v++){for(var C=0,I=d.length-1;I>=P&&I>=0;I--)b[I]>-1&&b[I]<u.length&&(C+=parseInt(u[b[I]--])*parseInt(d[I]));C+=_,_=Math.floor(C/10),L=C%10+L,P--}return L=a((h=L,(y=m)==0?h:(h=y>=h.length?new Array(y-h.length+1).join("0")+h:h).substr(0,h.length-y)+"."+h.substr(h.length-y,y))),f==1&&(L="-"+L),L}},698:function(s,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.roundOff=void 0;var u=a(581);function d(g,c,m,p){if(!g||g===new Array(g.length+1).join("0")||p===u.RoundingModes.DOWN||!m&&p===u.RoundingModes.FLOOR||m&&p===u.RoundingModes.CEILING)return!1;if(p===u.RoundingModes.UP||m&&p===u.RoundingModes.FLOOR||!m&&p===u.RoundingModes.CEILING)return!0;var h="5"+new Array(g.length).join("0");if(g>h)return!0;if(g<h)return!1;switch(p){case u.RoundingModes.HALF_DOWN:return!1;case u.RoundingModes.HALF_UP:return!0;case u.RoundingModes.HALF_EVEN:default:return parseInt(c[c.length-1])%2==1}}function f(g){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;c||(c=1),typeof g=="number"&&g.toString();for(var m=g.length-1,p="",h=m;h>=0;h--){var y=parseInt(g[h])+c;y==10?(c=1,y=0):c=0,p+=y}return c&&(p+=c),p.split("").reverse().join("")}o.roundOff=function g(c){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.RoundingModes.HALF_EVEN;if(p===u.RoundingModes.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof c=="number"&&(c=c.toString());var h=!1;c[0]==="-"&&(h=!0,c=c.substring(1));var y=c.split("."),$=y[0],_=y[1];if(m<0){if(m=-m,$.length<=m)return"0";var b=$.substr(0,$.length-m);return(h?"-":"")+(b=g(c=b+"."+$.substr($.length-m)+_,0,p))+new Array(m+1).join("0")}if(m==0)return $.length,d(y[1],$,h,p)?(h?"-":"")+f($):(h?"-":"")+$;if(!y[1])return(h?"-":"")+$+"."+new Array(m+1).join("0");if(y[1].length<m)return(h?"-":"")+$+"."+y[1]+new Array(m-y[1].length+1).join("0");_=y[1].substring(0,m);var P=y[1].substring(m);return P&&d(P,_,h,p)&&(_=f(_)).length>m?(h?"-":"")+f($,parseInt(_[0]))+"."+_.substring(1):(h?"-":"")+$+"."+_}},581:function(s,o){var a;Object.defineProperty(o,"__esModule",{value:!0}),o.RoundingModes=void 0,(a=o.RoundingModes||(o.RoundingModes={}))[a.CEILING=0]="CEILING",a[a.DOWN=1]="DOWN",a[a.FLOOR=2]="FLOOR",a[a.HALF_DOWN=3]="HALF_DOWN",a[a.HALF_EVEN=4]="HALF_EVEN",a[a.HALF_UP=5]="HALF_UP",a[a.UNNECESSARY=6]="UNNECESSARY",a[a.UP=7]="UP"},507:function(s,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.negate=o.subtract=void 0;var u=a(465);function d(f){return f[0]=="-"?f.substr(1):"-"+f}o.subtract=function(f,g){return f=f.toString(),g=d(g=g.toString()),(0,u.add)(f,g)},o.negate=d}},i={};function r(s){var o=i[s];if(o!==void 0)return o.exports;var a=i[s]={exports:{}};return n[s](a,a.exports,r),a.exports}var l={};return function(){var s=l;function o(_,b){(b==null||b>_.length)&&(b=_.length);for(var P=0,L=new Array(b);P<b;P++)L[P]=_[P];return L}function a(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function u(_,b){for(var P=0;P<b.length;P++){var L=b[P];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(_,L.key,L)}}Object.defineProperty(s,"__esModule",{value:!0});var d=r(465),f=r(698),g=r(850),c=r(753),m=r(144),p=r(152),h=r(507),y=r(581),$=function(){function _(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"0";a(this,_),this.value=_.validate(x)}var b,P,L;return b=_,P=[{key:"getValue",value:function(){return this.value}},{key:"getPrettyValue",value:function(x,v){return _.getPrettyValue(this.value,x,v)}},{key:"round",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y.RoundingModes.HALF_EVEN;if(isNaN(x))throw Error("Precision is not a number: "+x);return new _((0,f.roundOff)(this.value,x,v))}},{key:"floor",value:function(){return this.value.indexOf(".")===-1?new _(this.value):new _(this.value).round(0,y.RoundingModes.FLOOR)}},{key:"ceil",value:function(){return this.value.indexOf(".")===-1?new _(this.value):new _(this.value).round(0,y.RoundingModes.CEILING)}},{key:"add",value:function(x){return new _((0,d.add)(this.value,x.getValue()))}},{key:"subtract",value:function(x){return new _((0,h.subtract)(this.value,x.getValue()))}},{key:"multiply",value:function(x){return new _((0,g.multiply)(this.value,x.getValue()))}},{key:"divide",value:function(x,v){return new _((0,c.divide)(this.value,x.getValue(),v))}},{key:"modulus",value:function(x){return new _((0,m.modulus)(this.value,x.getValue()))}},{key:"compareTo",value:function(x){return(0,p.compareTo)(this.value,x.getValue())}},{key:"negate",value:function(){return new _((0,h.negate)(this.value))}}],L=[{key:"validate",value:function(x){if(x){if(x=x.toString(),isNaN(x))throw Error("Parameter is not a number: "+x);x[0]=="+"&&(x=x.substring(1))}else x="0";if(x.startsWith(".")?x="0"+x:x.startsWith("-.")&&(x="-0"+x.substr(1)),/e/i.test(x)){var v=(H=x.split(/[eE]/),N=2,function(k){if(Array.isArray(k))return k}(H)||function(k,R){var O=k==null?null:typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(O!=null){var F,w,T=[],V=!0,j=!1;try{for(O=O.call(k);!(V=(F=O.next()).done)&&(T.push(F.value),!R||T.length!==R);V=!0);}catch(q){j=!0,w=q}finally{try{V||O.return==null||O.return()}finally{if(j)throw w}}return T}}(H,N)||function(k,R){if(k){if(typeof k=="string")return o(k,R);var O=Object.prototype.toString.call(k).slice(8,-1);return O==="Object"&&k.constructor&&(O=k.constructor.name),O==="Map"||O==="Set"?Array.from(k):O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O)?o(k,R):void 0}}(H,N)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),C=v[0],I=v[1],E="";(C=(0,d.trim)(C))[0]=="-"&&(E="-",C=C.substring(1)),C.indexOf(".")>=0?(I=parseInt(I)+C.indexOf("."),C=C.replace(".","")):I=parseInt(I)+C.length,x=C.length<I?E+C+new Array(I-C.length+1).join("0"):C.length>=I&&I>0?E+(0,d.trim)(C.substring(0,I))+(C.length>I?"."+C.substring(I):""):E+"0."+new Array(1-I).join("0")+C}var H,N;return x}},{key:"getPrettyValue",value:function(x,v,C){if(v||C){if(!v||!C)throw Error("Illegal Arguments. Should pass both digits and separator or pass none")}else v=3,C=",";var I=(x=_.validate(x)).charAt(0)=="-";I&&(x=x.substring(1));for(var E=x.indexOf("."),H="",N=E=E>0?E:x.length;N>0;)N<v?(v=N,N=0):N-=v,H=x.substring(N,N+v)+(N<E-v&&N>=0?C:"")+H;return(I?"-":"")+H+x.substring(E)}},{key:"round",value:function(x){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y.RoundingModes.HALF_EVEN;if(x=_.validate(x),isNaN(v))throw Error("Precision is not a number: "+v);return(0,f.roundOff)(x,v,C)}},{key:"floor",value:function(x){return(x=_.validate(x)).indexOf(".")===-1?x:_.round(x,0,y.RoundingModes.FLOOR)}},{key:"ceil",value:function(x){return(x=_.validate(x)).indexOf(".")===-1?x:_.round(x,0,y.RoundingModes.CEILING)}},{key:"add",value:function(x,v){return x=_.validate(x),v=_.validate(v),(0,d.add)(x,v)}},{key:"subtract",value:function(x,v){return x=_.validate(x),v=_.validate(v),(0,h.subtract)(x,v)}},{key:"multiply",value:function(x,v){return x=_.validate(x),v=_.validate(v),(0,g.multiply)(x,v)}},{key:"divide",value:function(x,v,C){return x=_.validate(x),v=_.validate(v),(0,c.divide)(x,v,C)}},{key:"modulus",value:function(x,v){return x=_.validate(x),v=_.validate(v),(0,m.modulus)(x,v)}},{key:"compareTo",value:function(x,v){return x=_.validate(x),v=_.validate(v),(0,p.compareTo)(x,v)}},{key:"negate",value:function(x){return x=_.validate(x),(0,h.negate)(x)}}],P&&u(b.prototype,P),L&&u(b,L),Object.defineProperty(b,"prototype",{writable:!1}),_}();$.RoundingModes=y.RoundingModes,s.default=$}(),l}()})})(Oi);const re=Hr(Oi.exports);function ji(){let t=[],e="0123456789abcdef";for(let i=0;i<36;i++)t[i]=e.substr(Math.floor(Math.random()*16),1);return t[14]="4",t[19]=e.substr(t[19]&3|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")}let sn=new Date().getTime();const Wr=["a","b"];function Zt(){let t=++sn;return t==Number.MAX_VALUE&&(sn=0),`${Wr[t%2]}_${sn}`}function z(t){return t==null||typeof t=="string"&&t.length==0}function mt(t){return z(t)?!0:(t.charAt(0)=="-"&&(t=t.substring(1)),z(t)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(t))}function Bn(t,e=0){let n=`${t}`,i=n.indexOf(".");if(i==-1)return n;let r=i;for(let l=n.length-1;l>=i;l--)if(n.charAt(l)!="0"){r=l;break}return r-i<e?r=i+e+1:r!=i&&(r+=1),r>n.length?n=n.padEnd(r,"0"):n=n.substring(0,r),n}function Kn(t,e,n=20){if(typeof e=="string"&&(e=ne(e)),e==1||e==-1)return`${t}`;if(e==0)return"0";if(e>0){let i=re.multiply(`${t}`,`${e}`);return Bn(i)}else{let i=re.divide(`${t}`,re.negate(`${e}`),20);return Bn(i)}}function tt(t,e=-1,n=!1,i=3,r=","){let l=`${t}`;if(l.length==0||l==="-")return"";let s=l.charAt(0);s=="-"?l=l.substring(1):s="";let o=l,a="",u=l.indexOf(".");u!=-1&&(o=l.substring(0,u),a=l.substring(u+1)),e!=-1&&(e<a.length?a=a.substring(0,e):n&&e>a.length&&(a=a.padEnd(e,"0")));let d=o.split("").reverse(),f="";for(let c=0;c<d.length;c++)f+=d[c]+((c+1)%i==0&&c+1!=d.length?r:"");let g;return a.length==0?g=`${s}${f.split("").reverse().join("")}`:g=`${s}${f.split("").reverse().join("")}.${a}`,g}function He(t){let e=`${t}`,n=e.charAt(0);n=="-"?e=e.substring(1):n="";let i=e.replace(/[^\d\.-]/g,"");return`${n}${i}`}function Br(t){if(t==null)return 0;let e=`${t}`;if(e.length==0)return 0;e.charAt(0)=="-"&&(e=e.substring(1)),e=e.replace(/[^\d\.-]/g,"");let n=e.indexOf(".");return n==-1?e.length:n}function Kr(t){if(t==null)return 0;let e=`${t}`;if(e.length==0)return 0;let n=e.indexOf(".");return n==-1?0:e.length-(n+1)}function zn(t,e){let n=`${t}`,i=`${e}`;return re.compareTo(n,i)}function zr(t,e=-1,n=!1,i=3,r=","){return tt(t,e,n,i,r)}function Yr(t){return He(t)}Date.prototype.format=function(t){let e={"M+":this.getMonth()+1,"d+":this.getDate(),"H+":this.getHours(),"h+":this.getUTCHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(let n in e)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,RegExp.$1.length==1?e[n]:("00"+e[n]).substr((""+e[n]).length)));return t};function se(t,e={}){if(t==null||t==null)return 0;if(typeof t=="number")return t;if(t=t.trim(),t.length===0)return 0;let n=t.indexOf("px");if(n!=-1){let i=t.substring(0,n);return Number(i)}if(n=t.indexOf("rem"),n!=-1){let i=t.substring(0,n),r=Number(i);const l=Ue();let{fontSize:s}=window.getComputedStyle(l.documentElement,null),o=s.indexOf("px");return s=s.substring(0,o),s=Number(s),r*=s,r}if(n=t.indexOf("%"),n!=-1){let i=t.substring(0,n),r=Number(i),{el:l}=e;if(l){let s=l.offsetParent;e.x?r=r/100*s.offsetWidth:r=r/100*s.offsetHeight}else e.x?r=r/100*xt():r=r/100*Jt();return r}return t}function Mn(t){const e=Ue();if(e.compatMode=="BackCompat"){let n=0;return t==="clientWidth"?n=e.body.clientWidth:t=="clientHeight"?n=e.body.clientHeight:t=="scrollWidth"?n=e.body.scrollWidth:t==="scrollHeight"?n=e.body.scrollHeight:t==="scrollLeft"?n=e.body.scrollLeft:t==="scrollTop"&&(n=e.body.scrollTop),n}else{let n=0;return t==="clientWidth"?n=e.documentElement.clientWidth:t=="clientHeight"?n=e.documentElement.clientHeight:t=="scrollWidth"?n=e.documentElement.scrollWidth:t==="scrollHeight"?n=e.documentElement.scrollHeight:t==="scrollLeft"?n=e.documentElement.scrollLeft==0?e.body.scrollLeft:e.documentElement.scrollLeft:t==="scrollTop"&&(n=e.documentElement.scrollTop==0?e.body.scrollTop:e.documentElement.scrollTop),n}}function Jt(){let t=Mn("clientHeight");return Number(t)}function xt(){let t=Mn("clientWidth");return Number(t)}function Ur(t){let e=0,n=0,i=t;for(;i!=null;)e+=i.offsetLeft,n+=i.offsetTop,i=i.offsetParent;return{x:e,y:n}}function bn(t){let e=0,n=0,i=t;for(;i!=null;)e+=i.offsetLeft,n+=i.offsetTop,i=i.offsetParent;let r=0,l=0;for(i=t;i!=document;)l+=i.scrollTop,r+=i.scrollLeft,i=i.parentNode;return e-=r,n-=l,{x:e,y:n}}function nt(t){let e=t;for(;e!=null;){let n=e.offsetWidth;if(n!=0)return n;e=e.parentNode}return 0}function Te(t){let e=t;for(;e!=null;){let n=e.offsetHeight;if(n!=0)return n;e=e.parentNode}return 0}function Yn(t,e){let{scrollTop:n}=t,i=t.parentNode;for(;i!=null&&i!=e;)n+=i.scrollTop,i=i.parentNode;return n}function Rn(t){let e=t.offsetTop,{offsetParent:n}=t,i=t.parentNode;for(i!=n&&(e-=Yn(i,n));n!=null;)e+=n.offsetTop,i=n.parentNode,n=n.offsetParent,n!=null&&i!=n&&(e-=Yn(i,n));return e}function An(t){let e=t.offsetLeft,n=t.offsetParent;for(;n!=null;)e+=n.offsetLeft,n=n.offsetParent;return e}const Gr={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function qt(t){let{toString:e}=Object.prototype,n=e.call(t);return t==null?String(t):Gr[n]||"object"}function Ht(t){return t&&typeof t=="object"&&typeof t.length=="number"&&typeof t.splice=="function"&&!t.propertyIsEnumerable("length")}function Xr(t){return qt(t)==="function"}function Zr(t){return t&&typeof t=="object"&&"setInterval"in t}function vn(t){if(!t||qt(t)!=="object"||t.nodeType||Zr(t))return!1;let e=Object.prototype.hasOwnProperty;if(t.constructor&&!e.call(t,"constructor")&&!e.call(t.constructor.prototype,"isPrototypeOf"))return!1;let n;for(n in t);return n===void 0||e.call(t,n)}function Wt(...t){let e=Y(t[0])?t[0]:{},n=1,{length:i}=t,r=!1;for(typeof e=="boolean"&&(r=e,e=t[n]||{},n++),typeof e!="object"&&!Xr(e)&&(e={}),n===i&&(e=this,n--);n<i;n++)if(t[n]!=null&&t[n]!=null){let l=t[n];for(let s in l){let o=e[s],a=l[s];if(e===a)continue;let u=!1;if(r&&a&&(vn(a)||(u=Ht(a)))){let d;u?d=o&&Ht(o)?o:[]:d=o&&vn(o)?o:{},e[s]=Wt(r,d,a)}else a!==void 0&&(e[s]=a)}}return e}function qi(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}function Jr(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}function xn(t,e){if(t==e)return!0;if(t==null||e==null)return!1;let n=qt(t),i=qt(e);if(n!==i)return!1;if(n==="object"){let r=Object.keys(t),l=Object.keys(e);if(r.length!==l.length)return!1;for(let s=0;s<r.length;s++){let o=r[s],a=t[o],u=e[o];if(!xn(a,u))return!1}return!0}else if(n==="array"){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let l=t[r],s=e[r];if(!xn(l,s))return!1}return!0}return!1}function gt(t){return t.offsetParent===null}function Un(t){t.scrollIntoViewIfNeeded()}function Qr(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};let n=window.document.createEvent("Events"),i=!0,r=!0;for(let l in e)l==="bubbles"?i=!!e[l]:l==="cancelable"?r=!!e[l]:n[l]=e[l];return n.initEvent(t,i,r),n}function Hi(t,e,n={}){Object.assign(n,{bubbles:!0,cancelable:!0});let i=Qr(e,n);t.dispatchEvent(i)}function el(t,e){let n=0;return function(...i){const r=Date.now();r-n>e&&(Reflect.apply(t,{},[...i]),n=r)}}function Vn(t,e){let n=null,i=null;return function(...r){i=r,n||(n=setTimeout(()=>{n=null,Reflect.apply(t,{},[...i||[]])},e))}}const tl=(t,e)=>{e?(t.elm.removeAttribute("disabled"),t.elm.classList.remove("is-disabled")):(t.elm.setAttribute("disabled","true"),t.elm.classList.contains("is-disabled")&&t.elm.classList.add("is-disabled"))},nl=(t,e)=>{!t||(t.attrs||(t.attrs={}),e?Reflect.deleteProperty(t.attrs,"disabled"):t.attrs.disabled=!0)},an=Symbol("$authHandler"),on=Symbol("$authRenderHandler"),Gn=Symbol.for("handleNode"),il=Symbol.for("handleRenderData"),rl="fox_auth_scope";class ll{auths=new Map;register=new Map;[an]=tl;[on]=nl;setAuthHandler(e){this[an]=e}setAuthRenderHandler(e){this[on]=e}getAuthScope(e){let n=e.$route;if(!n)return null;let{params:i}=n;return i?i[rl]:null}[Gn](e,n){this[an](e,n)}[il](e,n){this[on](e,n)}getNodeKey(e){return`${e.componentInstance&&e.componentInstance._uid}`}registerNode(e,n,i){let r;this.register.has(e)?r=this.register.get(e):r=new Map;const l=this.getNodeKey(n);r.set(l,{node:n,auth:i}),this.register.set(e,r)}unRegisterNode(e,n){let i=this.register.get(e);if(!i)return;const r=this.getNodeKey(n);i.delete(r),i.size==0&&this.register.delete(e)}addAuths(e,n){this.auths.set(e,n);let i=this.register.get(e);if(i)for(let[r,l]of i){let s=n.indexOf(l.auth)==-1;this[Gn](l.node,s)}}removeAuths(e){this.auths.has(e)&&this.auths.delete(e)}hasAuths(e){return this.auths.has(e)}hasAuth(e,n){return this.auths.has(e)?this.auths.get(e).indexOf(n)!=-1:!1}}let me=new ll;function sl(t,e,n){let i=new Date(new Date(e).setDate(e.getDate()+n));const r=t.getTime(),l=i.getTime(),s=e.getTime();return l>s?r>=s&&r<=l:r>=l&&r<=s}function al(t,e,n){let i=new Date(new Date(e).setMonth(e.getMonth()+n));const r=t.getTime(),l=i.getTime(),s=e.getTime();return l>s?r>=s&&r<=l:r>=l&&r<=s}function ol(){let t=new Date(new Date().toLocaleDateString());return t.setDate(1),t}function ul(){return new Date(new Date().toLocaleDateString())}function cl(t,e){return re.multiply(`${t}`,`${e}`)}function Wi(t,e,n=8){return re.divide(`${t}`,`${e}`,n)}function fl(t,e){return re.add(`${t}`,`${e}`)}function dl(t,e){return re.subtract(`${t}`,`${e}`)}function hl(t){return new re(t).getValue()}function pl(t,e,n){return re.getPrettyValue(t,e,n)}function ml(t,e,n){return re.round(t,e,n)}function gl(t){return re.floor(t)}function yl(t){return re.ceil(t)}function _l(t,e){return re.modulus(t,e)}function Bi(t,e){return re.compareTo(t,e)}function $l(t){return re.negate(t)}let St=!1,Ae=[];class ie{static setLock(e,n){St=e,n&&Array.isArray(n)&&(Ae=[...n])}static setError(e,n,i){if(St&&(Ae.length==0||Ae.indexOf("error")!=-1))return;if(Y(e.innerErrorTip)){e.innerErrorTip=n,Y(i)&&(e.innerInfoIcon=i);return}if(e.$children&&e.$children.length==1){let l=e.$children[0];if(Reflect.has(l,"innerErrorTip")){l.innerErrorTip=n,Y(i)&&(l.innerInfoIcon=i);return}}let r=e.$el;if(r){r.classList.add("is-error");let l=r.querySelector(".el-form-item__content");if(!l)return;e=l.querySelector(".fox-form-item__tip"),e||(e=window.document.createElement("div"),e.classList.add("fox-form-item__tip"),l.appendChild(e)),e.innerText=n}}static resetError(e){if(Y(e.innerErrorTip)){e.innerErrorTip="";return}if(e.$children&&e.$children.length==1){let i=e.$children[0];if(Reflect.has(i,"innerErrorTip")){i.innerErrorTip="";return}}let n=e.$el;n&&(n.classList.remove("is-error"),e=n.querySelector(".fox-form-item__tip"),e&&e.parentNode.removeChild(e))}static setWarn(e,n,i){if(St&&(Ae.length==0||Ae.indexOf("warn")!=-1))return;if(Y(e.innerWarnTip)){e.innerWarnTip=n,Y(i)&&(e.innerWarnIcon=i);return}if(e.$children&&e.$children.length==1){let l=e.$children[0];if(Reflect.has(l,"innerWarnTip")){l.innerWarnTip=n,Y(i)&&(l.innerWranIcon=i);return}}let r=e.$el;if(r){r.classList.add("is-warn");let l=r.querySelector(".el-form-item__content");if(!l)return;e=l.querySelector(".fox-form-item__tip"),e||(e=window.document.createElement("div"),e.classList.add("el-form-item__tip"),l.appendChild(e)),e.innerText=n}}static resetWarn(e){if(Y(e.innerWarnTip)){e.innerWarnTip="";return}if(e.$children&&e.$children.length==1){let i=e.$children[0];if(Reflect.has(i,"innerWarnTip")){i.innerWarnTip="";return}}let n=e.$el;n&&(n.classList.remove("is-warn"),e=n.querySelector(".fox-form-item__tip"),e&&e.parentNode.removeChild(e))}static setInfo(e,n,i){if(St&&(Ae.length==0||Ae.indexOf("info")!=-1))return;if(Y(e.innerInfoTip)){e.innerInfoTip=n,Y(i)&&(e.innerInfoIcon=i);return}if(e.$children&&e.$children.length==1){let l=e.$children[0];if(Reflect.has(l,"innerInfoTip")){l.innerInfoTip=n,Y(i)&&(l.innerInfoIcon=i);return}}let r=e.$el;if(r){r.classList.add("is-info");let l=r.querySelector(".el-form-item__content");if(!l)return;e=l.querySelector(".fox-form-item__tip"),e||(e=window.document.createElement("div"),e.classList.add("fox-form-item__tip"),l.appendChild(e)),e.innerText=n}}static resetInfo(e){if(Y(e.innerInfoTip)){e.innerInfoTip="";return}if(e.$children&&e.$children.length==1){let i=e.$children[0];if(Reflect.has(i,"innerInfoTip")){i.innerInfoTip="";return}}let n=e.$el;n&&(n.classList.remove("is-info"),e=n.querySelector(".fox-form-item__tip"),e&&e.parentNode.removeChild(e))}}let Xn;const ye={get Vue(){return Xn},set Vue(t){Xn=t}},Bt=Symbol.for("$RootDomain"),Se=Symbol.for("$Domain");function bl(t){let e=t.indexOf("-");for(;e!=-1&&e<t.length;){let n=t.substring(0,e),i=t.substring(e+1,e+2),r=t.substring(e+2);t=n+i.toUpperCase()+r,e=t.indexOf("-")}return t}function fe(t){return t!=null}function vl(t){let e=t.value;return Y(e)||(e=t.innerValue),e}function Zn(t,e,n,i){for(let r of t){if(r.listened)continue;let l=function(o){o?ie.setWarn(r.node,o):ie.resetWarn(r.node)},s=()=>{setTimeout(()=>{let o=vl(r.node),a=Reflect.apply(e,{},[o,r.name,r.relate,r.index,r.node]);Vi(a)?a.then(u=>{l(u)},u=>{l(u)}):l(a)},150)};r.node.$on("blur",s),r.node.$on("setValue",s),Y(n)&&ie.setInfo(r.node,n,i),r.listened=!0,r.checkFunc=s}}function Xe(t,e,n){let i=t.$attrs[e];if(fe(i))return i;let r=bl(e);return i=t.$props[r],fe(i)?i:n}const un=Symbol("$modelItem");class xl{node;name;relate;label;index;_props=new Proxy({[un]:this},{set(e,n,i){let r=e[un].node;if(r==null)return console.error("model item > node\u5C5E\u6027\u672A\u5B9A\u4E49"),!1;let l=r._fox_model_options;return l==null?(console.error("model item > node > options\u5C5E\u6027\u672A\u5B9A\u4E49"),!1):(Reflect.has(l,n)?l[n]=i:ye.Vue.util.defineReactive(l,n,i),!0)},get(e,n){let i=e[un].node;if(i==null){console.error("model item > node\u5C5E\u6027\u672A\u5B9A\u4E49");return}let r=i._fox_model_options;if(r==null){console.error("model item > node > options\u5C5E\u6027\u672A\u5B9A\u4E49");return}return Reflect.has(r,n)||ye.Vue.util.defineReactive(r,n,void 0),r[n]}});get props(){return this._props}listened=!1;type="item";constructor(e,n,i,r,l=0){this.node=e,this.name=n,this.relate=i,this.label=r,this.index=l,e._fox_model_options={}}destroy(){this._props=null,this.node._fox_model_options=null,this.node=null}}const Jn=Symbol("_setModel"),Qn=Symbol("_removeModel"),ei=Symbol("toModelItemList"),ti=Symbol("toModelNameList"),ni=Symbol.for("getModels"),ve=Symbol.for("getModelItems"),lt=Symbol("getProperty"),Ki=Symbol("release");function Et(t){let e=t&&t.$vnode&&t.$vnode.context;return e.$data&&e.$data[Or]&&(e=e.$vnode.context),e}class M{name;vm;modelsMap=new Map;parent=null;children={};checkModels=[];checkFunc;checkInfo={};options={};subVmMap=new Map;constructor(e,n,i){this.parent=e,this.name=n,this.vm=i,e&&(e.children[n]=this)}[Ki](){this.parent&&this.parent.children&&Reflect.deleteProperty(this.parent.children,this.name),this.parent=void 0,this.vm=void 0,this.modelsMap.clear(),this.children=void 0,this.checkFunc=void 0,this.checkInfo=void 0,this.options=void 0,this.subVmMap.clear()}setSubVm(e,n){this.subVmMap.set(e,n)}getSubVm(e){return this.subVmMap.get(e)}removeSubVm(e){return this.subVmMap.delete(e)}getAllSubNames(){let e=[];for(let[n,i]of this.subVmMap)e.push(n);return e}getAllSubData(){let e={};for(let[n,i]of this.subVmMap)e[n]=i.$data;return e}getSubData(e){let n=this.getSubVm(e);if(!!n)return n.$data}setSubData(e,n,i){let r=this.getSubData(e);!r||Fi(n,r,void 0,i)}getSubDataValue(e,n){let i=this.getSubData(e);if(!i)return;let r=n.split(".");return ht(i,r,0)}setSubDataValue(e,n,i){let r=this.getSubData(e);if(!r)return;let l=n.split(".");pt(r,l,0,i)}setOption(e,n){Reflect.has(this.options,e)?this.options[e]=n:ye.Vue.util.defineReactive(this.options,e,n)}getOption(e){return Reflect.has(this.options,e)||ye.Vue.util.defineReactive(this.options,e,void 0),this.options[e]}getChildDomain(e){if(!this.children)return;let n=this.children[e];if(n)return n;for(let i in this.children)if(n=this.children[i].getChildDomain(e),n)return n}setCheck(e,n,i,r){for(let l of e){let s=this.modelsMap.get(l);!s||Zn(s,n,i,r)}for(let l in this.children)this.children[l].setCheck(e,n,i,r);this.checkModels=e,this.checkFunc=n,this.checkInfo={msg:i,icon:r}}check(e){if(e)for(let n of e){let i=this.modelsMap.get(n);if(!!i)for(let r of i)!r.node||!r.listened||r.node.$emit("setValue",r.node.value||"")}else for(let[n,i]of this.modelsMap)for(let r of i)!r.node||!r.listened||r.node.$emit("setValue",r.node.value||"");for(let n in this.children)this.children[n].check(e)}clearCheckTip(e){if(e)for(let n of e){let i=this.modelsMap.get(n);if(!!i)for(let r of i)!r.node||!r.listened||ie.resetWarn(r.node)}else for(let[n,i]of this.modelsMap)for(let r of i)!r.node||!r.listened||ie.resetWarn(r.node);for(let n in this.children)this.children[n].clearCheckTip(e)}setLockTip(e,n){ie.setLock(e,n)}setInfo(e,n,i){for(let r of e){let l=this.modelsMap.get(r);!l||l.forEach(s=>{ie.setInfo(s.node,n,i)})}for(let r in this.children)this.children[r].setInfo(e,n,i)}setWarn(e,n,i){for(let r of e){let l=this.modelsMap.get(r);!l||l.forEach(s=>{ie.setWarn(s.node,n,i)})}for(let r in this.children)this.children[r].setWarn(e,n,i)}setError(e,n,i){for(let r of e){let l=this.modelsMap.get(r);!l||l.forEach(s=>{ie.setError(s.node,n,i)})}for(let r in this.children)this.children[r].setError(e,n,i)}getDomainByModelName(e){if(this.modelsMap.has(e))return this;let n;for(let i in this.children)if(n=this.children[i].getDomainByModelName(e),n)break;return n}getName(){return this.name}[lt](e){let n=this.getOption(e);if(fe(n))return n;if(this.vm)return n=Xe(this.vm,e,void 0),n}[Jn](e,n,i,r){let l=new xl(r,e,n,i),s=this.modelsMap.get(e);if(!s)s=[l];else{if(s.find(u=>u.node===r))return;let a=s[s.length-1];a.type="listItem",l.index=a.index+1,l.type="listItem",s.push(l)}this.modelsMap.set(e,s),this.checkFunc&&this.checkModels.indexOf(e)!=-1&&Zn([l],this.checkFunc,this.checkInfo.msg,this.checkInfo.icon)}[Qn](e,n){let i=this.modelsMap.get(e);if(!!i)for(let r=0;r<i.length;r++){let l=i[r];if(l.node===n){l.destroy(),i.splice(r,1),i.length==0&&this.modelsMap.delete(e);return}}}[ei](e){let n=[];for(let i of e.values())n=[...n,...i];return n}[ti](e){let n=[];for(let i of e.keys())n.push(i);return n}[ve](e){let n=this[ei](this.modelsMap);for(let i in this.children){let l=this.children[i][ve](e);n=[...n,...l]}return e!=null&&(n=n.filter(i=>i.name==e)),n}[ni](){let e=this[ti](this.modelsMap);for(let n in this.children){let r=this.children[n][ni]();e=[...e,...r]}return e}setPropertyByModel(e,n,i,r){this[ve](n).forEach(s=>{s.props[i]=r})}setVerifyByModel(e,n,i,r){this[ve](n).forEach(s=>{Qt.setNode(s.node,i,r)})}applyByModel(e,n,i,...r){this[ve](n).forEach(s=>{let o=s.node[i];typeof o=="function"?setTimeout(()=>{Reflect.apply(o,s.node,[...r])},0):console.warn(`can not found the method:${i}`)})}bindEventByModel(e,n,i,r){this[ve](n).forEach(s=>{s.node.$on(i,r)})}unbindEventByModel(e,n,i,r){this[ve](n).forEach(s=>{s.node.$off(i,r)})}static getDomain(e){return e.$data&&e.$data[Se]||M.getParentDomain(e)}static getParentDomain(e){if(!e)return Sn;let n=e.$parent;for(;n&&(!n.$data||!n.$data[Se]);)n=n.$parent;return n&&n.$data&&n.$data[Se]||Sn}static getRootDomain(e){if(!e)return null;if(e.$data&&e.$data[Bt])return e.$data[Se];let n=e.$parent;for(;n&&(!n.$data||!n.$data[Bt]);)n=n.$parent;return n&&n.$data&&n.$data[Se]}static getParentDomainProperty(e,n,i){let r=M.getParentDomain(e);if(!r)return;let l=r[lt](n);for(;!fe(l)&&(r=r.parent,!!r);)l=r[lt](n);return fe(l)?l:i}static getDomainProperty(e,n,i){let r=M.getDomain(e);if(!r)throw new Error("domain not found");for(;r;){let l=r[lt](n);if(fe(l))return l;r=r.parent}return i}static getFitProperty(e,n,i,r=!1){let l=n,s=n;Array.isArray(n)&&n.length==2&&(l=n[0],s=n[1]);let o=Xe(e,l,void 0);if(!e.pageScope)return o||i;let a=!1,u=M.getModelInfo(e);if(u){let g=M.getDomain(e)[ve](u.name);if(g&&g.length>0){for(let c=0;c<g.length;c++)if(g[c].node==e){a=g[c].props[l];break}}if(r==!0&&(M.hasExemption(e,u.relate,"model")||M.hasExemption(e,u.name,"model")))return Dt(a,o)||i}let d=M.getDomainProperty(e,s,void 0);return fe(d)&&Xe(e,"fox-obey",void 0)!==void 0?d:Dt(a,o)||d||i}static getFitPropertyForBoolean(e,n,i,r=!1){let l=n,s=n;Array.isArray(n)&&n.length==2&&(l=n[0],s=n[1]);let o=Xe(e,l,void 0);if(fe(o)&&(typeof o=="string"&&o.length==0?o=!0:o=Z(o)),!e.pageScope)return o||i;let a,u=M.getModelInfo(e);if(u){let g=M.getDomain(e)[ve](u.name);if(g&&g.length>0){for(let c=0;c<g.length;c++)if(g[c].node==e){a=g[c].props[l];break}}if(r==!0&&(M.hasExemption(e,u.relate,"model")||M.hasExemption(e,u.name,"model")))return Dt(a,o)||i}let d=M.getDomainProperty(e,s,void 0);return fe(d)&&(typeof d=="string"&&d.length==0?d=!0:d=Z(d),Xe(e,"fox-obey",void 0)!==void 0)?d:Dt(a,o)||d||i}static getAllProperties(e,n){let i=[],r=Xe(e,n,void 0);fe(r)&&i.push(r);let l=M.getDomain(e);for(;l;)r=l[lt](n),fe(r)&&i.push(r),l=l.parent;return i}static isReadonly(e){return M.getFitPropertyForBoolean(e,"readonly",!1,!0)}static isDisabled(e){return M.getFitPropertyForBoolean(e,"disabled",!1,!0)}static setModel(e,n,i,r){let l=M.getDomain(e);!l||l[Jn](n,i,r,e)}static removeModel(e,n){let i=M.getDomain(e);!i||i[Qn](n)}static hasExemption(e,n,i){if(n==null)return!1;if(i=="model"){let r=M.getAllProperties(e,"filter-models");if(!r||r.length==0)return!1;for(let l=0;l<r.length;l++)if(r[l].indexOf(n)!=-1)return!0;return!1}return!1}static getModelInfo(e){if(e.customScope){let i=e.$parent;for(let r=0;r<5;r++){if(i._provided&&i._provided.customRoot===!0){e=i;break}i=i.$parent}}let n=e.$vnode&&e.$vnode.data&&e.$vnode.data.model;if(n)return{name:n.expression,relate:e.$attrs["fox-model"]}}static getVerifyRules(e,n){return M.getDomainProperty(e,"verify-rules",{})[n]}}function Dt(...t){for(let e of t)if(fe(e))return e}const Sn=new M(null,"_first_",null);function We(){return Sn}function zi(t,e,n){if(!t.$data)return null;let i=t.$data[Se];if(i)return i;const r=M.getParentDomain(t);let l=e||`domain-${Zt()}`;return i=new M(r,l,t),n&&(t.$data[Bt]=!0),t.$data[Se]=i,t.$once("hook:destroyed",()=>{t.$data[Se]=void 0,t.$data[Bt]=void 0,i[Ki]()}),i}function pe(t){return t.$data&&t.$data[Se]||M.getParentDomain(t)}const Sl=Symbol.for("getModelItems");let Dn=["require","required","email","url","date","dateISO","number","digit","creditcard"];class Qt{static install(e){let i=Et(e).$fox_validator;if(!i)return;let r=e,l=r.$vnode.data.model&&r.$vnode.data.model.expression;if(l==null)return;let s=[];for(let g in e.$attrs)if(Dn.indexOf(g)!=-1){if(`${e.$attrs[g]}`==="false")continue;s.push(g)}for(let g in e.$props)if(Dn.indexOf(g)!=-1){if(`${e.$props[g]}`==="false")continue;s.push(g)}let o=M.getVerifyRules(e,l);if(Array.isArray(o)&&(s=[...s,...o]),s.length==0)return;let a=r.$attrs.id||`${l}_${r._uid}`,u=r.$attrs["verify-message"]||r.$attrs.tag;if(r.multiLang&&typeof u=="string")try{u=e.$langTranslator.translateAttr(e,u,u,e.$options.name)}catch{}let d={rule:s,message:u};if(i.settings.decorate!=null&&typeof i.settings.decorate=="function")try{i.settings.decorate(r,s)}catch(g){console.error(g.message,g)}let f=i.add(a,l,d,r);f.destroy=()=>{i.remove(a)},r.$once("hook:destroyed",f.destroy)}static update(e,n,i){if(n==null||n.length==0)return;let l=Et(e).$fox_validator;if(!l)return;let{decorate:s}=l.settings,o={...i};for(let a in n){delete o[a];let u=l.getCheckPointByModel(a);if(u==null||u.length==0){let d=n[a];if(d==null||d.length==0)continue;let g=M.getDomain(e)[Sl](a);for(let c of g){let{node:m}=c,p=m.$attrs.id||`${a}_${m._uid}`,h=m.$attrs["verify-message"]||m.$attrs.tag;if(m.multiLang&&typeof h=="string")try{h=e.$langTranslator.translateAttr(e,h,h,e.$options.name)}catch{}let y={rule:d,message:h};s(m,d);let $=l.add(p,a,y,m);$.destroy=()=>{l.remove(p)},m.$once("hook:destroyed",$.destroy)}}else for(let d=0;d<u.length;d++){let f=u[d];f.checkItem.rule=l.formatRule(n[a]),s(f.node,f.checkItem.rule),l.reset(f.id,f.node)}}for(let a in o){let u=l.getCheckPointByModel(a);if(!(u==null||u.length==0))for(let d=0;d<u.length;d++){let f=u[d];s(f.node,[]),l.reset(f.id,f.node),l.remove(f.id),f&&f.destroy&&f.node.$off("hook:destroyed",f.destroy)}}}static setNode(e,n,i){if(!e)return;let l=Et(e).$fox_validator;if(!l)return;let{decorate:s}=l.settings,o=e.$vnode.data.model&&e.$vnode.data.model.expression,a=e.$attrs.id||`${o}_${e._uid}`,u=l.remove(a);if(u&&(s(e,[]),l.reset(a,e),u.destroy&&(u.node.$off("hook:destroyed",u.destroy),u.destroy=void 0)),!n||n.length==0)return;let d={rule:n,message:i};s(e,n),u=l.add(a,o,d,e),u.destroy=()=>{l.remove(a)},e.$once("hook:destroyed",u.destroy)}}const Yi=new Map,Kt=new Map;function Ui(t,e,n){if(n){let i=Kt.get(n);i||(i=new Map,Kt.set(n,i)),i.set(t,e)}else Yi.set(t,e)}function De(t,e){let n=null;if(e){let i=Kt.get(e);i&&(n=i.get(t))}return n||(n=Yi.get(t)),n}function Dl(t,e){for(let n in t){const i=t[n];Ui(n,i,e)}}function wl(t){Kt.delete(t)}const Ze=Symbol("$navigations"),wt=Symbol("$listeners"),xe=Symbol("$queueMap"),ii="*",Tt=Symbol("$circle"),Ct=Symbol("$headerTabInesx"),It=Symbol("$contentTabIndex"),kt=Symbol("$footerTabIndex"),Tl=Symbol.for("$ProxyView");function Ee(t){let{context:e}=t;return e.$data&&e.$data[Tl]&&(e=e.$vnode.context),e._provided&&e._provided.customRoot===!0&&(e=e.$vnode.context),e}function Pt(t){return t._uid||-1}function Lt(t){if(t.componentInstance)return t.componentInstance._uid;let{id:e}=t.elm;return e||(e=t.key),e}class Cl{[Ze]=new Map;[wt]=new Map;[xe]=new Map;[Tt]=!0;[Ct]=1;[It]=void 0;[kt]=2;setCircleCursor(e){this[Tt]=e}setHeaderTabIndex(e){this[Ct]=e}setContentTabIndex(e){this[It]=e}setFooterTabIndex(e){this[kt]=e}addNavigation(e,n){this[Ze].set(e,n)}focusFirst(e){if(this.isAPISupport())return;let n=e._uid,i=this[xe].get(n);if(i&&i.length>0){let r=0;for(;r<i.length;){let l=i[r],s=this.getNavigation(l.type);if(this.focusable(l.vnode,s,l.type)){this.focus(l.vnode,s,l.type);return}r+=1}}}focusNext(e){this.isAPISupport()&&De("keyTap")("tab")}bind(e,n,i,r=!1,l=!1){let s=Ee(n),o=Pt(s),a=Lt(n);if(!a)return;let u=m=>{setTimeout(()=>{this.navigate(n,i,m)},0)};if(this[wt].set(a,u),e.addEventListener("keydown",u,{passive:!0}),e.addEventListener("keyproxy",u,{passive:!0}),this.isAPISupport()){r===!0&&this[Ct]!==void 0?e.setAttribute("tabindex",`${this[Ct]}`):l===!0&&this[kt]!==void 0?e.setAttribute("tabindex",`${this[kt]}`):this[It]!==void 0&&e.setAttribute("tabindex",`${this[It]}`);return}let d=Ur(e),f=this[xe].get(o);f||(f=[]);let g={contextId:o,id:a,x:d.x,y:d.y,type:i,vnode:n,headerScope:r,footerScope:l},c=f.length-1;for(;c>=0;c--){let m=f[c];if(!(r===!0&&m.headerScope!==!0)){if(r!==!0&&m.headerScope===!0){f.splice(c+1,0,g);break}if(l===!0&&m.footerScope!==!0){f.splice(c+1,0,g);break}if(!(l!==!0&&m.footerScope===!0)){if(d.y>m.y){f.splice(c+1,0,g);break}if(d.y==m.y&&d.x>=m.x){f.splice(c+1,0,g);break}}}}c<0&&f.splice(0,0,g),this[xe].set(o,f)}updated(e,n,i,r=!1,l=!1){this.unbind(e,n,i,r,l),this.bind(e,n,i,r,l)}unbind(e,n,i,r=!1,l=!1){let s=Ee(n),o=Pt(s),a=Lt(n);if(!a)return;let u=this[wt].get(a);if(u&&(e.removeEventListener("keydown",u),e.removeEventListener("keyproxy",u),this[wt].delete(a)),this.isAPISupport())return;let d=this[xe].get(o);if(!!d){for(let f=d.length-1;f>=0;f--){let g=d[f];g.contextId==o&&g.id==a&&d.splice(f,1)}d.length==0&&this[xe].delete(o)}}isAPISupport(){let e=De("isKeyTapSupport");return typeof e=="function"?e():!1}getNavigation(e){let n=this[Ze].get(e);return n||(n=this[Ze].get(ii)),n}focus(e,n,i){n&&typeof n.focus=="function"&&Reflect.apply(n.focus,n,[e,i]);let r=e.componentInstance;if(r&&typeof r.focus=="function"){r.focus(),r.$el&&Un(r.$el);return}let{elm:l}=e;l&&typeof l.focus=="function"&&(l.focus(),Un(l))}focusable(e,n,i){if(n&&typeof n.focusable=="function")return Reflect.apply(n.focusable,n,[e,i]);let r=e.componentInstance;if(r&&r.mDisabled===!0)return!1;let{elm:l}=e;if(gt(l))return!1;let s=l.getAttribute("attainable");if(s===!1||typeof s=="string"&&s.toLowerCase()==="false")return!1;let o=l.getAttribute("disabled");return o==null||o===null||!o}back(e,n){if(this.isAPISupport()){De("keyTap")("tab",["shift"]);return}let i=Ee(e),r=Pt(i),l=Lt(e),s=this.getNavigation(n),o=this.findPreviousNode(r,l,s,n);o&&this.focus(o,s,n)}forward(e,n){if(this.isAPISupport()){De("keyTap")("tab");return}let i=Ee(e),r=Pt(i),l=Lt(e),s=this.getNavigation(n),o=this.findNextNode(r,l,s,n);o&&this.focus(o,s,n)}findNextNode(e,n,i,r){let l=this[xe].get(e);if(!l)return;let s=-1;for(let u=0;u<l.length;u++)if(l[u].id==n){s=u;break}if(s==-1)return;let o,a=s+1;for(;a!=s;){if(a==l.length){if(!this[Tt])return;a=0}if(o=l[a].vnode,a==s)return;if(this.focusable(o,i,r))break;a+=1}return o}findPreviousNode(e,n,i,r){let l=this[xe].get(e);if(!l)return;let s=-1;for(let u=0;u<l.length;u++)if(l[u].id==n){s=u;break}if(s==-1)return;let o,a=s-1;for(;a!=s;){if(a==-1){if(!this[Tt])return;a=l.length-1}if(o=l[a].vnode,a==s)return;if(this.focusable(o,i,r))break;a-=1}return o}paraserKeyNavigation(e,n,i,r){let l;if(e.componentInstance&&typeof e.componentInstance.paraserKeyNavigation=="function"&&(l=e.componentInstance.paraserKeyNavigation(i,r)),!l){let s=this[Ze].get(n);s||(s=this[Ze].get(ii)),s&&(typeof s.forwardKeys=="function"?Reflect.apply(s.forwardKeys,s,[e,n,i,r])===!0&&(l="forward"):Array.isArray(s.forwardKeys)&&s.forwardKeys.indexOf(i)!=-1&&(l="forward"),l||(typeof s.backKeys=="function"?Reflect.apply(s.backKeys,s,[e,n,i,r])===!0&&(l="back"):Array.isArray(s.backKeys)&&s.backKeys.indexOf(i)!=-1&&(l="back")))}return l||"none"}navigate(e,n,i){if(!e)return;let{key:r,shiftKey:l,altKey:s,ctrlKey:o}=i,a=[];l&&a.push("Shift"),s&&a.push("Alt"),o&&a.push("Ctrl"),a.push(r);let u=a.join("+"),d=this.paraserKeyNavigation(e,n,u,i);d=="forward"?this.forward(e,n):d=="back"&&this.back(e,n)}getFocusNode(e,n){if(this.isAPISupport())return null;let i=this[xe].get(e);return i?i.find(l=>l.vnode.componentInstance&&l.vnode.componentInstance===n):null}}let Ne=new Cl;const yt=[];function ri(t){We().setOption("pageLayout",t),yt.forEach(n=>{try{n(t)}catch(i){console.error(i)}})}function Il(){return We().getOption("pageLayout")}function kl(t){yt.indexOf(t)===-1&&yt.push(t)}function Pl(t){const e=yt.indexOf(t);e!==-1&&yt.splice(e,1)}const ge="PageStateKey";function Ce(t){const e={top:null,left:null,bottom:null,right:null};if(!t)return e;e.top=t.top??null,e.left=t.left??null,e.bottom=t.bottom??null,e.right=t.right??null;for(let n in e){const i=e[n];i!==null&&(e[n]=se(i))}return e}function Ll(t,e,n){t.headerHeight=se(n.headerHeight||e.headerHeight),t.headerPadding=Ce(n.headerPadding||e.headerPadding),t.footerHeight=se(n.footerHeight||e.footerHeight),t.footerPadding=Ce(n.footerPadding||e.footerPadding),t.height=se(n.height||e.height),t.width=se(n.width||e.width),t.contentPadding=Ce(n.contentPadding??e.contentPadding)}function Fn(t,e){t.setOption(ge,e)}function Nl(t,e={}){const n={top:null,left:null,bottom:null,right:null},i={width:0,height:0,headerHeight:0,headerPadding:{...n},footerHeight:0,footerPadding:{...n},contentHeight:null,contentPadding:{...n},safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=We(),l=Object.assign(r.getOption("safeAreaInset")||{},e.safeAreaInset||{});l&&(i.safeAreaTop=se(l.top),i.safeAreaBottom=se(l.bottom),i.safeAreaLeft=se(l.left),i.safeAreaRight=se(l.right));const s=r.getOption("pageLayout");if(!s)return null;Ll(i,s,e);const o=M.getParentDomainProperty(t.vm,ge);o&&(i.height=wn(t,o),i.width=Tn(t,o));const a=u=>{o?(i.height=wn(t,o),i.width=Tn(t,o)):(i.height=u.height,i.width=u.width),t.setOption(ge,i)};return kl(a),t.vm.$once("hook:destroyed",()=>{Pl(a)}),t.setOption(ge,i),i}function we(t){return t.getOption(ge)}function En(t,e){return e=e||t.getOption(ge),e&&e.headerMounted?e.headerHeight+e.safeAreaTop:0}function en(t,e){return e=e||t.getOption(ge),e&&e.footerMounted?e.footerHeight+e.safeAreaBottom:0}function wn(t,e){if(e=e||t.getOption(ge),e){const n=En(t,e),i=en(t,e);return e.height-n-i-(e.contentPadding.top??0)-(e.contentPadding.bottom??0)}return 0}function Tn(t,e){return e=e||t.getOption(ge),e?e.width-(e.contentPadding.left??0)-(e.contentPadding.right??0):0}function Ml(t,e){const i=We().getOption("isInnerPage");if(typeof i=="function")return Reflect.apply(i,{},[e,t]);const r=e.$el.parentNode;return!r||!r.classList?!1:!!r.classList.contains("el-dialog__body")}function Rl(t,e){const n=t.getOption(ge);n&&(n.contentHeight=e,t.setOption(ge,n))}var Gi={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){var n=1e3,i=6e4,r=36e5,l="millisecond",s="second",o="minute",a="hour",u="day",d="week",f="month",g="quarter",c="year",m="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},_=function(N,k,R){var O=String(N);return!O||O.length>=k?N:""+Array(k+1-O.length).join(R)+N},b={s:_,z:function(N){var k=-N.utcOffset(),R=Math.abs(k),O=Math.floor(R/60),F=R%60;return(k<=0?"+":"-")+_(O,2,"0")+":"+_(F,2,"0")},m:function N(k,R){if(k.date()<R.date())return-N(R,k);var O=12*(R.year()-k.year())+(R.month()-k.month()),F=k.clone().add(O,f),w=R-F<0,T=k.clone().add(O+(w?-1:1),f);return+(-(O+(R-F)/(w?F-T:T-F))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:c,w:d,d:u,D:m,h:a,m:o,s,ms:l,Q:g}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},P="en",L={};L[P]=$;var x=function(N){return N instanceof E},v=function N(k,R,O){var F;if(!k)return P;if(typeof k=="string"){var w=k.toLowerCase();L[w]&&(F=w),R&&(L[w]=R,F=w);var T=k.split("-");if(!F&&T.length>1)return N(T[0])}else{var V=k.name;L[V]=k,F=V}return!O&&F&&(P=F),F||!O&&P},C=function(N,k){if(x(N))return N.clone();var R=typeof k=="object"?k:{};return R.date=N,R.args=arguments,new E(R)},I=b;I.l=v,I.i=x,I.w=function(N,k){return C(N,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var E=function(){function N(R){this.$L=v(R.locale,null,!0),this.parse(R)}var k=N.prototype;return k.parse=function(R){this.$d=function(O){var F=O.date,w=O.utc;if(F===null)return new Date(NaN);if(I.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var T=F.match(h);if(T){var V=T[2]-1||0,j=(T[7]||"0").substring(0,3);return w?new Date(Date.UTC(T[1],V,T[3]||1,T[4]||0,T[5]||0,T[6]||0,j)):new Date(T[1],V,T[3]||1,T[4]||0,T[5]||0,T[6]||0,j)}}return new Date(F)}(R),this.$x=R.x||{},this.init()},k.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},k.$utils=function(){return I},k.isValid=function(){return this.$d.toString()!==p},k.isSame=function(R,O){var F=C(R);return this.startOf(O)<=F&&F<=this.endOf(O)},k.isAfter=function(R,O){return C(R)<this.startOf(O)},k.isBefore=function(R,O){return this.endOf(O)<C(R)},k.$g=function(R,O,F){return I.u(R)?this[O]:this.set(F,R)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(R,O){var F=this,w=!!I.u(O)||O,T=I.p(R),V=function(oe,U){var te=I.w(F.$u?Date.UTC(F.$y,U,oe):new Date(F.$y,U,oe),F);return w?te:te.endOf(u)},j=function(oe,U){return I.w(F.toDate()[oe].apply(F.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(U)),F)},q=this.$W,K=this.$M,G=this.$D,X="set"+(this.$u?"UTC":"");switch(T){case c:return w?V(1,0):V(31,11);case f:return w?V(1,K):V(0,K+1);case d:var J=this.$locale().weekStart||0,ae=(q<J?q+7:q)-J;return V(w?G-ae:G+(6-ae),K);case u:case m:return j(X+"Hours",0);case a:return j(X+"Minutes",1);case o:return j(X+"Seconds",2);case s:return j(X+"Milliseconds",3);default:return this.clone()}},k.endOf=function(R){return this.startOf(R,!1)},k.$set=function(R,O){var F,w=I.p(R),T="set"+(this.$u?"UTC":""),V=(F={},F[u]=T+"Date",F[m]=T+"Date",F[f]=T+"Month",F[c]=T+"FullYear",F[a]=T+"Hours",F[o]=T+"Minutes",F[s]=T+"Seconds",F[l]=T+"Milliseconds",F)[w],j=w===u?this.$D+(O-this.$W):O;if(w===f||w===c){var q=this.clone().set(m,1);q.$d[V](j),q.init(),this.$d=q.set(m,Math.min(this.$D,q.daysInMonth())).$d}else V&&this.$d[V](j);return this.init(),this},k.set=function(R,O){return this.clone().$set(R,O)},k.get=function(R){return this[I.p(R)]()},k.add=function(R,O){var F,w=this;R=Number(R);var T=I.p(O),V=function(K){var G=C(w);return I.w(G.date(G.date()+Math.round(K*R)),w)};if(T===f)return this.set(f,this.$M+R);if(T===c)return this.set(c,this.$y+R);if(T===u)return V(1);if(T===d)return V(7);var j=(F={},F[o]=i,F[a]=r,F[s]=n,F)[T]||1,q=this.$d.getTime()+R*j;return I.w(q,this)},k.subtract=function(R,O){return this.add(-1*R,O)},k.format=function(R){var O=this,F=this.$locale();if(!this.isValid())return F.invalidDate||p;var w=R||"YYYY-MM-DDTHH:mm:ssZ",T=I.z(this),V=this.$H,j=this.$m,q=this.$M,K=F.weekdays,G=F.months,X=function(U,te,Pe,Le){return U&&(U[te]||U(O,w))||Pe[te].slice(0,Le)},J=function(U){return I.s(V%12||12,U,"0")},ae=F.meridiem||function(U,te,Pe){var Le=U<12?"AM":"PM";return Pe?Le.toLowerCase():Le},oe={YY:String(this.$y).slice(-2),YYYY:this.$y,M:q+1,MM:I.s(q+1,2,"0"),MMM:X(F.monthsShort,q,G,3),MMMM:X(G,q),D:this.$D,DD:I.s(this.$D,2,"0"),d:String(this.$W),dd:X(F.weekdaysMin,this.$W,K,2),ddd:X(F.weekdaysShort,this.$W,K,3),dddd:K[this.$W],H:String(V),HH:I.s(V,2,"0"),h:J(1),hh:J(2),a:ae(V,j,!0),A:ae(V,j,!1),m:String(j),mm:I.s(j,2,"0"),s:String(this.$s),ss:I.s(this.$s,2,"0"),SSS:I.s(this.$ms,3,"0"),Z:T};return w.replace(y,function(U,te){return te||oe[U]||T.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(R,O,F){var w,T=I.p(O),V=C(R),j=(V.utcOffset()-this.utcOffset())*i,q=this-V,K=I.m(this,V);return K=(w={},w[c]=K/12,w[f]=K,w[g]=K/3,w[d]=(q-j)/6048e5,w[u]=(q-j)/864e5,w[a]=q/r,w[o]=q/i,w[s]=q/n,w)[T]||q,F?K:I.a(K)},k.daysInMonth=function(){return this.endOf(f).$D},k.$locale=function(){return L[this.$L]},k.locale=function(R,O){if(!R)return this.$L;var F=this.clone(),w=v(R,O,!0);return w&&(F.$L=w),F},k.clone=function(){return I.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},N}(),H=E.prototype;return C.prototype=H,[["$ms",l],["$s",s],["$m",o],["$H",a],["$W",u],["$M",f],["$y",c],["$D",m]].forEach(function(N){H[N[1]]=function(k){return this.$g(k,N[0],N[1])}}),C.extend=function(N,k){return N.$i||(N(k,E,C),N.$i=!0),C},C.locale=v,C.isDayjs=x,C.unix=function(N){return C(1e3*N)},C.en=L[P],C.Ls=L,C.p={},C})})(Gi);const $e=Gi.exports;var Xi={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,l=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,o={},a=function(p){return(p=+p)+(p>68?1900:2e3)},u=function(p){return function(h){this[p]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var y=h.match(/([+-]|\d\d)/g),$=60*y[1]+(+y[2]||0);return $===0?0:y[0]==="+"?-$:$}(p)}],f=function(p){var h=o[p];return h&&(h.indexOf?h:h.s.concat(h.f))},g=function(p,h){var y,$=o.meridiem;if($){for(var _=1;_<=24;_+=1)if(p.indexOf($(_,0,h))>-1){y=_>12;break}}else y=p===(h?"pm":"PM");return y},c={A:[s,function(p){this.afternoon=g(p,!1)}],a:[s,function(p){this.afternoon=g(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[r,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[l,u("seconds")],ss:[l,u("seconds")],m:[l,u("minutes")],mm:[l,u("minutes")],H:[l,u("hours")],h:[l,u("hours")],HH:[l,u("hours")],hh:[l,u("hours")],D:[l,u("day")],DD:[r,u("day")],Do:[s,function(p){var h=o.ordinal,y=p.match(/\d+/);if(this.day=y[0],h)for(var $=1;$<=31;$+=1)h($).replace(/\[|\]/g,"")===p&&(this.day=$)}],M:[l,u("month")],MM:[r,u("month")],MMM:[s,function(p){var h=f("months"),y=(f("monthsShort")||h.map(function($){return $.slice(0,3)})).indexOf(p)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(p){var h=f("months").indexOf(p)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(p){this.year=a(p)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function m(p){var h,y;h=p,y=o&&o.formats;for(var $=(p=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,I,E){var H=E&&E.toUpperCase();return I||y[E]||n[E]||y[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(N,k,R){return k||R.slice(1)})})).match(i),_=$.length,b=0;b<_;b+=1){var P=$[b],L=c[P],x=L&&L[0],v=L&&L[1];$[b]=v?{regex:x,parser:v}:P.replace(/^\[|\]$/g,"")}return function(C){for(var I={},E=0,H=0;E<_;E+=1){var N=$[E];if(typeof N=="string")H+=N.length;else{var k=N.regex,R=N.parser,O=C.slice(H),F=k.exec(O)[0];R.call(I,F),C=C.replace(F,"")}}return function(w){var T=w.afternoon;if(T!==void 0){var V=w.hours;T?V<12&&(w.hours+=12):V===12&&(w.hours=0),delete w.afternoon}}(I),I}}return function(p,h,y){y.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(a=p.parseTwoDigitYear);var $=h.prototype,_=$.parse;$.parse=function(b){var P=b.date,L=b.utc,x=b.args;this.$u=L;var v=x[1];if(typeof v=="string"){var C=x[2]===!0,I=x[3]===!0,E=C||I,H=x[2];I&&(H=x[2]),o=this.$locale(),!C&&H&&(o=y.Ls[H]),this.$d=function(O,F,w){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*O);var T=m(F)(O),V=T.year,j=T.month,q=T.day,K=T.hours,G=T.minutes,X=T.seconds,J=T.milliseconds,ae=T.zone,oe=new Date,U=q||(V||j?1:oe.getDate()),te=V||oe.getFullYear(),Pe=0;V&&!j||(Pe=j>0?j-1:oe.getMonth());var Le=K||0,nn=G||0,rn=X||0,ln=J||0;return ae?new Date(Date.UTC(te,Pe,U,Le,nn,rn,ln+60*ae.offset*1e3)):w?new Date(Date.UTC(te,Pe,U,Le,nn,rn,ln)):new Date(te,Pe,U,Le,nn,rn,ln)}catch{return new Date("")}}(P,v,L),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),E&&P!=this.format(v)&&(this.$d=new Date("")),o={}}else if(v instanceof Array)for(var N=v.length,k=1;k<=N;k+=1){x[1]=v[k-1];var R=y.apply(this,x);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}k===N&&(this.$d=new Date(""))}else _.call(this,b)}}})})(Xi);const Al=Xi.exports;var Zi={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){return function(n,i,r){var l=i.prototype,s=l.format;r.en.ordinal=function(o){var a=["th","st","nd","rd"],u=o%100;return"["+o+(a[(u-20)%10]||a[u]||a[0])+"]"},l.format=function(o){var a=this,u=this.$locale();if(!this.isValid())return s.bind(this)(o);var d=this.$utils(),f=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return u.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return u.ordinal(a.week(),"W");case"w":case"ww":return d.s(a.week(),g==="w"?1:2,"0");case"W":case"WW":return d.s(a.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return d.s(String(a.$H===0?24:a.$H),g==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return g}});return s.bind(this)(f)}}})})(Zi);const Vl=Zi.exports;var Ji={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){return function(n,i,r){var l=i.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},o=function(f,g,c,m,p){var h=f.name?f:f.$locale(),y=s(h[g]),$=s(h[c]),_=y||$.map(function(P){return P.slice(0,m)});if(!p)return _;var b=h.weekStart;return _.map(function(P,L){return _[(L+(b||0))%7]})},a=function(){return r.Ls[r.locale()]},u=function(f,g){return f.formats[g]||function(c){return c.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,p,h){return p||h.slice(1)})}(f.formats[g.toUpperCase()])},d=function(){var f=this;return{months:function(g){return g?g.format("MMMM"):o(f,"months")},monthsShort:function(g){return g?g.format("MMM"):o(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):o(f,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):o(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):o(f,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return u(f.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return d.bind(this)()},r.localeData=function(){var f=a();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(g){return u(f,g)},meridiem:f.meridiem,ordinal:f.ordinal}},r.months=function(){return o(a(),"months")},r.monthsShort=function(){return o(a(),"monthsShort","months",3)},r.weekdays=function(f){return o(a(),"weekdays",null,null,f)},r.weekdaysShort=function(f){return o(a(),"weekdaysShort","weekdays",3,f)},r.weekdaysMin=function(f){return o(a(),"weekdaysMin","weekdays",2,f)}}})})(Ji);const Fl=Ji.exports;var Qi={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){var n="week",i="year";return function(r,l,s){var o=l.prototype;o.week=function(a){if(a===void 0&&(a=null),a!==null)return this.add(7*(a-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=s(this).startOf(i).add(1,i).date(u),f=s(this).endOf(n);if(d.isBefore(f))return 1}var g=s(this).startOf(i).date(u).startOf(n).subtract(1,"millisecond"),c=this.diff(g,n,!0);return c<0?s(this).startOf("week").week():Math.ceil(c)},o.weeks=function(a){return a===void 0&&(a=null),this.week(a)}}})})(Qi);const El=Qi.exports;var er={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){return function(n,i){i.prototype.weekYear=function(){var r=this.month(),l=this.week(),s=this.year();return l===1&&r===11?s+1:r===0&&l>=52?s-1:s}}})})(er);const Ol=er.exports;var tr={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){return function(n,i,r){i.prototype.dayOfYear=function(l){var s=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return l==null?s:this.add(l-s,"day")}}})})(tr);const jl=tr.exports;var nr={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){return function(n,i){i.prototype.isSameOrAfter=function(r,l){return this.isSame(r,l)||this.isAfter(r,l)}}})})(nr);const ql=nr.exports;var ir={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){return function(n,i){i.prototype.isSameOrBefore=function(r,l){return this.isSame(r,l)||this.isBefore(r,l)}}})})(ir);const Hl=ir.exports;$e.extend(Fl);$e.extend(Vl);$e.extend(Al);$e.extend(El);$e.extend(Ol);$e.extend(jl);$e.extend(ql);$e.extend(Hl);const W={format(t,e){return $e(t).format(e)},parser(t,e){return $e(t,e).toDate()},isLeapYear(t){return t%4==0&&t%100!=0||t%400==0},getWhatDay(t,e,n){const r=new Date(t+"/"+e+"/"+n).getDay();return["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"][r]},getMonthPreDay(t,e){let i=new Date(t+"/"+e+"/01").getDay();return i==0&&(i=7),i},getMonthDays(t,e){return/^0/.test(e)&&(e=e.split("")[1]),[0,31,this.isLeapYear(Number(t))?29:28,31,30,31,30,31,31,30,31,30,31][e]},getNumTwoBit(t){return t=Number(t),(t>9?"":"0")+t},date2Str:function(t,e){e=e||"-";const n=t.getFullYear(),i=this.getNumTwoBit(t.getMonth()+1),r=this.getNumTwoBit(t.getDate());return[n,i,r].join(e)},getDay(t){t=t||0;let e=new Date;const n=t*(1e3*60*60*24);return e=new Date(e.getTime()+n),this.date2Str(e)},compareDate(t,e){let n;typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t;let i;return typeof e=="string"?i=new Date(e.replace("-","/").replace("-","/")):i=e,!(n>=i)},isEqual(t,e){if(t===e)return!0;if(!t||!e)return!1;let n;typeof t=="string"?n=new Date(t).getTime():n=t.getTime();let i;return typeof e=="string"?i=new Date(e).getTime():i=e,n==i},inScope4Day(t,e,n){const i=new Date(new Date(e).setDate(e.getDate()+n)),r=t.getTime(),l=i.getTime(),s=e.getTime();return l>s?r>=s&&r<=l:r>=l&&r<=s},inScope4Month(t,e,n){const i=new Date(new Date(e).setMonth(e.getMonth()+n)),r=t.getTime(),l=i.getTime(),s=e.getTime();return l>s?r>=s&&r<=l:r>=l&&r<=s}};let Wl={getDocumentAttribute:Mn,getClientHeight:Jt,getClientWidth:xt,offsetHeight:Te,offsetLeft:An,offsetWidth:nt,offsetTop:Rn,getUUID:ji,addEventHandler:qi,removeEventHandler:Jr,renderText:jr,isEmptyString:Fe,toBoolean:Z,toNumber:ne,judge:me,moneyFormat:zr,unMoneyFormat:Yr,numberFormat:tt,unNumberFormat:He,isEqual:xn,inScope4Day:sl,inScope4Month:al,getCurrentDay:ul,getCurrentMonth:ol,multiply:cl,divide:Wi,add:fl,subtract:dl,getNumValue:hl,getPrettyNumValue:pl,round:ml,floor:gl,ceil:yl,modulus:_l,compareTo:Bi,debounce:el,throttle:Vn,negate:$l,setValidate:Qt.setNode,setLockTip:ie.setLock,setErrorTip:ie.setError,resetErrorTip:ie.resetError,setWarnTip:ie.setWarn,resetWarnTip:ie.resetWarn,setInfoTip:ie.setInfo,resetInfoTip:ie.resetInfo,cursorNavigation:Ne,Domain:M,getFirstDomain:We,getPageFooterAreaHeight:en,setAPI:Ui,getAPI:De,batchSetAPI:Dl,clearScopeAPI:wl,DateUtils:W};function Bl(t){return M.getDomainProperty(t,"navigateEventTriggerPolicy","none")}function li(t,e){const n=Bl(t);if(n==="inPage"&&e!=="focus"){const i=qe(t);if(!i)return!0;const r=i.$el,{activeElement:l}=document;let s=r.contains(l);if(!s){let o=t.$el;if(!r.contains(o))return!0}return s}else if(n==="ignore")return!1;return!0}function Be(t,e,...n){if(!t.pageScope){Reflect.apply(t.$emit,t,[e,...n]);return}if(e=="blur")setTimeout(()=>{!li(t,e)||Reflect.apply(t.$emit,t,[e,...n])},0);else if(e=="focus"){if(!li(t,e))return;Reflect.apply(t.$emit,t,[e,...n])}else Reflect.apply(t.$emit,t,[e,...n])}function Ke(){return"80px"}function ze(){return"right"}function Kl(){return-1}function zl(){return 32}function tn(){return 16}function B(t,e){t=t.replace(`
8
- `,"").trim();let n=e||tn();return t.length<=n||(t=t.substring(0,n-1),t+="...."),t}let si=["group-header","input-row","button-row"];const Yl=["label","value","span","size"],Ul=["label","value","span","size","require","required",...Dn];function ee(t,e,n,i=[]){for(let r in n)Ul.indexOf(r)==-1&&i.indexOf(r)==-1&&(t.multiLang?e[r]=t.$langTranslator.translateAttr(t,r,n[r],t.$options.name):e[r]=n[r])}function ue(t,e,n,i=[]){for(let r in n)Yl.indexOf(r)==-1&&i.indexOf(r)==-1&&(t.multiLang?e[r]=t.$langTranslator.translateProp(t,r,n[r],t.$options.name):e[r]=n[r])}function Q(t,e,n,i=[]){if(!!n)for(let r in n)i.indexOf(r)==-1&&(e[r]=n[r])}function Ge(t,e,n,i=1,r=32){if(e<=0||i=="stretch"||i=="all"||i==-1)return-1;if(typeof i=="string"){if(!mt(i))return i;i=Number(i)}i<=0&&(i=1),typeof n=="string"&&(n=Number(n)),n=n<=0?1:n;let l=M.getFitProperty(t,"minItemWidth",Kl());typeof l!="number"&&(l=Number(l)),typeof r=="string"&&(r=Number(r));let s=n-1,o=Math.floor((e-s*r)/n);return l>o?n>1?Ge(t,e,n-1,i,r):l:o*i+(i-1)*r}function le(t,e){!(e.key||e.attrs&&e.attrs.key||e.props&&e.props.key)&&t.innerUniqueKey&&(e.key=t.innerUniqueKey)}function ai(t){let e=t.$data;return!!(e&&e[Me]===!0||(e=t.$parent&&t.$parent&&t.$parent.$data,e&&e[Me]===!0))}function oi(t){let e=t.$data;if(e&&e[Me]===!0||t.pageScope===!0)return!0;if(t.customScope===!0)return!1;if(t._provided&&t._provided.customRoot===!0){let n=t&&t.$vnode&&t.$vnode.context;if(Ei(n))return!0}return!1}function ui(t){let e=t.$data;return!!(e&&e[Ai]===!0)}function Gl(t){if(!t)return;if(ui(t))return t;if(ai(t))return;let e=t.$parent;for(let n=0;n<10;n++){if(ui(e))return e;if(ai(t))return;e=e.$parent}}const ce={inject:{multiLang:{default:!1},groupScope:{default:!1},pageScope:{default:!1},customScope:{default:!1},headerScope:{default:!1},footerScope:{default:!1},hintOpen:{default:!1}},props:{label:{type:String,required:!1,default(){return""}},span:{type:[Number,String],required:!1,default(){return 1}},errorTip:{type:String,required:!1},errorIcon:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:String,required:!1,default:"el-icon-warning"},infoTip:{type:String,required:!1},infoIcon:{type:String,required:!1,default:"el-icon-info"},hintText:{type:String,required:!1}},data(){return{isRequired:!1,innerErrorIcon:"",innerErrorTip:"",innerWarnIcon:"",innerWarnTip:"",innerInfoIcon:"",innerInfoTip:""}},methods:{componentData(t,e,n){e.directives||(e.directives=[]),e.directives.push({name:"cursor-navigate",value:{type:n,headerScope:this.headerScope,footerScope:this.footerScope}}),(this.hintOpen||this.hintText)&&e.directives.push({name:"hint",value:{text:this.hintText}})},installTip(t){let e={type:"none"};if(!z(this.errorTip)||!z(this.innerErrorTip)||!z(this.higherErrorTip)?(e.type="error",e.text=this.higherErrorTip||this.errorTip||this.innerErrorTip,e.icon=this.errorIcon||this.innerErrorIcon):!z(this.warnTip)||!z(this.innerWarnTip)?(e.type="warn",e.text=this.warnTip||this.innerWarnTip,e.icon=this.warnIcon||this.innerWarnIcon):(!z(this.infoTip)||!z(this.innerInfoTip))&&(e.type="info",e.text=this.infoTip||this.innerInfoTip,e.icon=this.infoIcon||this.innerInfoIcon),e.type!=="none"){let n=[];if(!z(e.icon)){let i={class:{}};i.class[e.icon]=!0,n.push(t("li",i,[]))}n.push(e.text),e.node=t("div",{class:{"fox-form-item__tip":!0}},n)}return e},hasLabel(){return this.$slots.default||this.label.length>0},onFocus(t){Be(this,"focus",t)},onBlur(t){Be(this,"blur",t)},onClear(t){this.$emit("clear",t)}},computed:{mStyle(){if(this.groupScope){const t=M.getFitProperty(this,"spacing",32),e=M.getParentDomainProperty(this,"column",1),n=M.getParentDomainProperty(this,"groupWidth",-1),i=Ge(this,n,e,this.span,t);return{width:i<=0?"100%":`${i}px`}}else return{}},mLabelStyle(){return this.hasLabel()?M.getFitProperty(this,"labelPosition",ze())==="top"?{}:{width:`${M.getFitProperty(this,"labelWidth",Ke())}`}:{}},mInputStyle(){return this.hasLabel()?M.getFitProperty(this,"labelPosition",ze())==="top"?{}:{"margin-left":`${M.getFitProperty(this,"labelWidth",Ke())}`}:{}},mReadonly(){return M.isReadonly(this)},mDisabled(){return M.isDisabled(this)},mSize(){return M.getFitProperty(this,"size","medium")},mLabelMaxCharCount(){let t=M.getFitProperty(this,"labelMaxCharCount",tn());return Number(t)}},beforeCreate(){},created(){this.$data&&(this.$data[Me]=this.groupScope,this.$data.innerUniqueKey=Zt())},mounted(){},beforeDestroy(){}};let rr={inject:{multiLang:{default:!1},groupScope:{default:!1},pageScope:{default:!1},customScope:{default:!1},headerScope:{default:!1},footerScope:{default:!1},hintOpen:{default:!1}},props:{label:{type:String,required:!1,default(){return""}},span:{type:[Number,String],required:!1,default(){return 1}},errorTip:{type:String,required:!1},errorIcon:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:String,required:!1,default:"el-icon-warning"},infoTip:{type:String,required:!1},infoIcon:{type:String,required:!1,default:"el-icon-info"},hintText:{type:String,required:!1},clearHotkey:{type:[String],required:!1},expandHotkey:{type:[String],required:!1},selectHotkey:{type:[String],required:!1}},data(){return{isRequired:!1,innerErrorIcon:"",innerErrorTip:"",innerWarnIcon:"",innerWarnTip:"",innerInfoIcon:"",innerInfoTip:""}},methods:{componentData(t,e,n){e.directives||(e.directives=[]),e.directives.push({name:"cursor-navigate",value:{type:n,headerScope:this.headerScope,footerScope:this.footerScope}}),(this.hintOpen||this.hintText)&&e.directives.push({name:"hint",value:{text:this.hintText}})},installTip(t){let e={type:"none"};if(!z(this.errorTip)||!z(this.innerErrorTip)||!z(this.higherErrorTip)?(e.type="error",e.text=this.higherErrorTip||this.errorTip||this.innerErrorTip,e.icon=this.errorIcon||this.innerErrorIcon):!z(this.warnTip)||!z(this.innerWarnTip)?(e.type="warn",e.text=this.warnTip||this.innerWarnTip,e.icon=this.warnIcon||this.innerWarnIcon):(!z(this.infoTip)||!z(this.innerInfoTip))&&(e.type="info",e.text=this.infoTip||this.innerInfoTip,e.icon=this.infoIcon||this.innerInfoIcon),e.type!=="none"){let n=[];if(!z(e.icon)){let i={class:{}};i.class[e.icon]=!0,n.push(t("li",i,[]))}n.push(e.text),e.node=t("div",{class:{"fox-form-item__tip":!0}},n)}return e},hasLabel(){return this.$slots.default||this.label.length>0},onFocus(t){this.$emit("focus",t)},onBlur(t){this.$emit("blur",t)},onClear(t){this.$emit("clear",t)}},computed:{mStyle(){if(this.groupScope){const t=M.getFitProperty(this,"spacing",32),e=M.getParentDomainProperty(this,"column",1),n=M.getParentDomainProperty(this,"groupWidth",-1),i=Ge(this,n,e,this.span,t);return{width:i<=0?"100%":`${i}px`}}else return{}},mLabelStyle(){return this.hasLabel()?M.getFitProperty(this,"labelPosition",ze())==="top"?{}:{width:`${M.getFitProperty(this,"labelWidth",Ke())}`}:{}},mInputStyle(){return this.hasLabel()?M.getFitProperty(this,"labelPosition",ze())==="top"?{}:{"margin-left":`${M.getFitProperty(this,"labelWidth",Ke())}`}:{}},mReadonly(){return M.isReadonly(this)},mDisabled(){return M.isDisabled(this)},mSize(){return M.getFitProperty(this,"size","medium")},mLabelMaxCharCount(){let t=M.getFitProperty(this,"labelMaxCharCount",tn());return Number(t)},mClearHotkey(){return M.getFitProperty(this,"clearHotkey","")},mSelectHotkey(){return M.getFitProperty(this,"selectHotkey","Enter")},mExpandHotkey(){return M.getFitProperty(this,"expandHotkey","")}},beforeCreate(){},created(){this.$data&&(this.$data[Me]=this.groupScope,this.$data.innerUniqueKey=Zt())},mounted(){},beforeDestroy(){}};const Xl=["label","placeholder","title","range-separator","start-placeholder","end-placeholder"];function ci(t){let e=t.indexOf("-");for(;e!=-1&&e<t.length;){let n=t.substring(0,e),i=t.substring(e+1,e+2),r=t.substring(e+2);t=n+i.toUpperCase()+r,e=t.indexOf("-")}return t}class Zl{options;constructor(e={}){this.options=e,this.options.filterKeys||(this.options.filterKeys=Xl);let n=[];for(let i of this.options.filterKeys){let r=ci(i);n.push(r)}if(this.options.filterPropKeys=n,this.options.componentFilterKeys){let i={};for(let r of this.options.componentFilterKeys){let l=[],s=this.options.componentFilterKeys[r];for(let o of s){let a=ci(o);l.push(a)}i[r]=l}this.options.componentFilterPropKeys=i}}translateAttr(e,n,i,r){if(r&&this.options.componentFilterKeys){let l=this.options.componentFilterKeys[r];if(l&&l.indexOf(n)!=-1)return e.$t(i)}return this.options.filterKeys.indexOf(n)==-1?i:e.$t(i)}translateProp(e,n,i,r){if(r&&this.options.componentFilterPropKeys){let l=this.options.componentFilterPropKeys[r];if(l&&l.indexOf(n)!=-1)return e.$t(i)}return this.options.filterPropKeys.indexOf(n)==-1?i:e.$t(i)}translate(e,n){return e.$t(n)}}function Jl(t,e,n){let i,r,l=0,s=0,o;t?(o="absolute",l=n.offsetLeft||0,s=n.offsetTop||0,i=`${nt(t)-l}px`,r=`${Te(t)-s}px`):(o="fixed",i="100%",r="100%");let a=`position: ${o}; width:${i}; height:${r}`,u;n.shade?u=`
4
+ `,"").trim();let n=e;return t.length<=n||(t=t.substring(0,n-1),t+="..."),t}function Nn(t,e,n){if(!he)return t.length*e;let i=Ue().createElement("span");t=t.replace(/\\n/g," ").replace(/\\r/g," "),i.innerText=t,i.style.fontSize=e,n.appendChild(i);let r=i.offsetWidth;return n.removeChild(i),r}function Vi(t){return t==null?!1:t.toString().indexOf("Promise")!==-1}function Fi(t,e,n,i){for(let r in t){let s=t[r],l=r;if(n&&n.length>0&&(l=`${n}.${r}`),!!Reflect.has(e,r)&&!(typeof i=="function"&&!Reflect.apply(i,this,[l,t])))if(s!=null&&typeof s=="object"&&!Array.isArray(s)){let o=e[r];if(o==null)continue;typeof o!="object"||o instanceof Date?e[r]=s:Fi(s,o,l,i)}else e[r]=s}}function ht(t,e,n){if(t==null)return;let i=e[n],r=i.indexOf("["),s=i.indexOf("]");if(r>0&&s===i.length-1){let l=i.substring(0,r),o=Number(i.substring(r+1,s)),a=t[l];if(a==null)return;if(n<e.length-1){let u=a[o];return ht(u,e,n+1)}else return a[o]}else if(n<e.length-1){let l=t[i];return l==null||l===void 0?void 0:typeof l=="object"?ht(l,e,n+1):void 0}else return t[i]}function pt(t,e,n,i){if(t==null)return;let r=e[n],s=r.indexOf("["),l=r.indexOf("]");if(s>0&&l===r.length-1){let o=r.substring(0,s),a=Number(r.substring(s+1,l)),u=t[o];if(u==null)return;if(n<e.length-1){let d=u[a];typeof d=="object"&&pt(d,e,n+1,i)}else u[a]=i}else if(n<e.length-1){let o=t[r];if(o==null)return;typeof o=="object"&&pt(o,e,n+1,i)}else t[r]=i}const qr=Symbol.for("$ProxyView");function Ei(t){if(t&&t.$children&&t.$children.length==1){const e=t.$children[0];return e&&e._data&&e._data[Ln]===!0}return!1}function qe(t){let e=t&&t.$vnode&&t.$vnode.context;return!e||he&&e.$el===Ue().body?null:(e.$data&&e.$data[qr]&&(e=e.$vnode.context),e._provided&&e._provided.customRoot!==void 0&&(e=qe(e)),t.pageScope&&!Ei(e)&&(e=qe(e)),e)}var Ie=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oi={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(self,function(){return function(){var n={465:function(l,o){function a(p,h){return function(m){if(Array.isArray(m))return m}(p)||function(m,y){var _=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(_!=null){var $,b,C=[],P=!0,x=!1;try{for(_=_.call(m);!(P=($=_.next()).done)&&(C.push($.value),!y||C.length!==y);P=!0);}catch(v){x=!0,b=v}finally{try{P||_.return==null||_.return()}finally{if(x)throw b}}return C}}(p,h)||function(m,y){if(m){if(typeof m=="string")return u(m,y);var _=Object.prototype.toString.call(m).slice(8,-1);return _==="Object"&&m.constructor&&(_=m.constructor.name),_==="Map"||_==="Set"?Array.from(m):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?u(m,y):void 0}}(p,h)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function u(p,h){(h==null||h>p.length)&&(h=p.length);for(var m=0,y=new Array(h);m<h;m++)y[m]=p[m];return y}function d(p){for(var h="",m=p.length,y=p.split(".")[1],_=y?y.length:0,$=0;$<m;$++)p[$]>="0"&&p[$]<="9"?h+=9-parseInt(p[$]):h+=p[$];return c(h,_>0?"0."+new Array(_).join("0")+"1":"1")}function f(p){var h=p.split(".");for(h[0]||(h[0]="0");h[0][0]=="0"&&h[0].length>1;)h[0]=h[0].substring(1);return h[0]+(h[1]?"."+h[1]:"")}function g(p,h){var m=p.split("."),y=h.split("."),_=m[0].length,$=y[0].length;return _>$?y[0]=new Array(Math.abs(_-$)+1).join("0")+(y[0]?y[0]:""):m[0]=new Array(Math.abs(_-$)+1).join("0")+(m[0]?m[0]:""),_=m[1]?m[1].length:0,$=y[1]?y[1].length:0,(_||$)&&(_>$?y[1]=(y[1]?y[1]:"")+new Array(Math.abs(_-$)+1).join("0"):m[1]=(m[1]?m[1]:"")+new Array(Math.abs(_-$)+1).join("0")),[p=m[0]+(m[1]?"."+m[1]:""),h=y[0]+(y[1]?"."+y[1]:"")]}function c(p,h){var m=a(g(p,h),2);p=m[0],h=m[1];for(var y="",_=0,$=p.length-1;$>=0;$--)if(p[$]!=="."){var b=parseInt(p[$])+parseInt(h[$])+_;y=b%10+y,_=Math.floor(b/10)}else y="."+y;return _?_.toString()+y:y}Object.defineProperty(o,"__esModule",{value:!0}),o.pad=o.trim=o.add=void 0,o.add=function(p){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",m=0,y=-1;p[0]=="-"&&(m++,y=1,(p=p.substring(1)).length),h[0]=="-"&&(m++,y=2,(h=h.substring(1)).length),p=f(p),h=f(h);var _=g(f(p),f(h)),$=a(_,2);p=$[0],h=$[1],m==1&&(y==1?p=d(p):h=d(h));var b=c(p,h);return m?m==2?"-"+f(b):p.length<b.length?f(b.substring(1)):"-"+f(d(b)):f(b)},o.trim=f,o.pad=g},152:function(l,o,a){function u(f,g){(g==null||g>f.length)&&(g=f.length);for(var c=0,p=new Array(g);c<g;c++)p[c]=f[c];return p}Object.defineProperty(o,"__esModule",{value:!0}),o.compareTo=void 0;var d=a(465);o.compareTo=function(f,g){var c=!1;if(f[0]=="-"&&g[0]!="-")return-1;if(f[0]!="-"&&g[0]=="-")return 1;f[0]=="-"&&g[0]=="-"&&(f=f.substr(1),g=g.substr(1),c=!0);var p=function(m,y){return function(_){if(Array.isArray(_))return _}(m)||function(_,$){var b=_==null?null:typeof Symbol<"u"&&_[Symbol.iterator]||_["@@iterator"];if(b!=null){var C,P,x=[],v=!0,I=!1;try{for(b=b.call(_);!(v=(C=b.next()).done)&&(x.push(C.value),!$||x.length!==$);v=!0);}catch(L){I=!0,P=L}finally{try{v||b.return==null||b.return()}finally{if(I)throw P}}return x}}(m,y)||function(_,$){if(_){if(typeof _=="string")return u(_,$);var b=Object.prototype.toString.call(_).slice(8,-1);return b==="Object"&&_.constructor&&(b=_.constructor.name),b==="Map"||b==="Set"?Array.from(_):b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?u(_,$):void 0}}(m,y)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}((0,d.pad)(f,g),2);if(f=p[0],g=p[1],f.localeCompare(g)==0)return 0;for(var h=0;h<f.length;h++)if(f[h]!=g[h])return f[h]>g[h]?c?-1:1:c?1:-1;return 0}},753:function(l,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.divide=void 0;var u=a(465),d=a(698);o.divide=function(f,g){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:8;if(g==0)throw new Error("Cannot divide by 0");if(f=f.toString(),g=g.toString(),f=f.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),g=g.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),f==0)return"0";var p=0;g[0]=="-"&&(g=g.substring(1),p++),f[0]=="-"&&(f=f.substring(1),p++);var h=g.indexOf(".")>0?g.length-g.indexOf(".")-1:-1;if(g=(0,u.trim)(g.replace(".","")),h>=0){var m=f.indexOf(".")>0?f.length-f.indexOf(".")-1:-1;if(m==-1)f=(0,u.trim)(f+new Array(h+1).join("0"));else if(h>m)f=f.replace(".",""),f=(0,u.trim)(f+new Array(h-m+1).join("0"));else if(h<m){var y=(f=f.replace(".","")).length-m+h;f=(0,u.trim)(f.substring(0,y)+"."+f.substring(y))}else h==m&&(f=(0,u.trim)(f.replace(".","")))}var _=0,$=g.length,b="",C=f.indexOf(".")>-1&&f.indexOf(".")<$?f.substring(0,$+1):f.substring(0,$);if(f=f.indexOf(".")>-1&&f.indexOf(".")<$?f.substring($+1):f.substring($),C.indexOf(".")>-1){var P=C.length-C.indexOf(".")-1;$>(C=C.replace(".","")).length&&(P+=$-C.length,C+=new Array($-C.length+1).join("0")),_=P,b="0."+new Array(P).join("0")}for(c+=2;_<=c;){for(var x=0;parseInt(C)>=parseInt(g);)C=(0,u.add)(C,"-"+g),x++;b+=x,f?(f[0]=="."&&(b+=".",_++,f=f.substring(1)),C+=f.substring(0,1),f=f.substring(1)):(_||(b+="."),_++,C+="0")}return(p==1?"-":"")+(0,u.trim)((0,d.roundOff)(b,c-2))}},144:function(l,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.modulus=void 0;var u=a(753),d=a(698),f=a(850),g=a(507),c=a(581);function p(h){if(h.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}o.modulus=function(h,m){if(m==0)throw new Error("Cannot divide by 0");h=h.toString(),m=m.toString(),p(h),p(m);var y="";return h[0]=="-"&&(y="-",h=h.substr(1)),m[0]=="-"&&(m=m.substr(1)),y+(0,g.subtract)(h,(0,f.multiply)(m,(0,d.roundOff)((0,u.divide)(h,m),0,c.RoundingModes.FLOOR)))}},850:function(l,o){function a(u){for(;u[0]=="0";)u=u.substr(1);if(u.indexOf(".")!=-1)for(;u[u.length-1]=="0";)u=u.substr(0,u.length-1);return u==""||u=="."?u="0":u[u.length-1]=="."&&(u=u.substr(0,u.length-1)),u[0]=="."&&(u="0"+u),u}Object.defineProperty(o,"__esModule",{value:!0}),o.multiply=void 0,o.multiply=function(u,d){u=u.toString(),d=d.toString();var f=0;u[0]=="-"&&(f++,u=u.substr(1)),d[0]=="-"&&(f++,d=d.substr(1)),u=a(u),d=a(d);var g=0,c=0;u.indexOf(".")!=-1&&(g=u.length-u.indexOf(".")-1),d.indexOf(".")!=-1&&(c=d.length-d.indexOf(".")-1);var p=g+c;if(u=a(u.replace(".","")),d=a(d.replace(".","")),u.length<d.length){var h=u;u=d,d=h}if(d=="0")return"0";for(var m,y,_=d.length,$=0,b=[],C=_-1,P="",x=0;x<_;x++)b[x]=u.length-1;for(var v=0;v<2*u.length;v++){for(var I=0,L=d.length-1;L>=C&&L>=0;L--)b[L]>-1&&b[L]<u.length&&(I+=parseInt(u[b[L]--])*parseInt(d[L]));I+=$,$=Math.floor(I/10),P=I%10+P,C--}return P=a((m=P,(y=p)==0?m:(m=y>=m.length?new Array(y-m.length+1).join("0")+m:m).substr(0,m.length-y)+"."+m.substr(m.length-y,y))),f==1&&(P="-"+P),P}},698:function(l,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.roundOff=void 0;var u=a(581);function d(g,c,p,h){if(!g||g===new Array(g.length+1).join("0")||h===u.RoundingModes.DOWN||!p&&h===u.RoundingModes.FLOOR||p&&h===u.RoundingModes.CEILING)return!1;if(h===u.RoundingModes.UP||p&&h===u.RoundingModes.FLOOR||!p&&h===u.RoundingModes.CEILING)return!0;var m="5"+new Array(g.length).join("0");if(g>m)return!0;if(g<m)return!1;switch(h){case u.RoundingModes.HALF_DOWN:return!1;case u.RoundingModes.HALF_UP:return!0;case u.RoundingModes.HALF_EVEN:default:return parseInt(c[c.length-1])%2==1}}function f(g){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;c||(c=1),typeof g=="number"&&g.toString();for(var p=g.length-1,h="",m=p;m>=0;m--){var y=parseInt(g[m])+c;y==10?(c=1,y=0):c=0,h+=y}return c&&(h+=c),h.split("").reverse().join("")}o.roundOff=function g(c){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.RoundingModes.HALF_EVEN;if(h===u.RoundingModes.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof c=="number"&&(c=c.toString());var m=!1;c[0]==="-"&&(m=!0,c=c.substring(1));var y=c.split("."),_=y[0],$=y[1];if(p<0){if(p=-p,_.length<=p)return"0";var b=_.substr(0,_.length-p);return(m?"-":"")+(b=g(c=b+"."+_.substr(_.length-p)+$,0,h))+new Array(p+1).join("0")}if(p==0)return _.length,d(y[1],_,m,h)?(m?"-":"")+f(_):(m?"-":"")+_;if(!y[1])return(m?"-":"")+_+"."+new Array(p+1).join("0");if(y[1].length<p)return(m?"-":"")+_+"."+y[1]+new Array(p-y[1].length+1).join("0");$=y[1].substring(0,p);var C=y[1].substring(p);return C&&d(C,$,m,h)&&($=f($)).length>p?(m?"-":"")+f(_,parseInt($[0]))+"."+$.substring(1):(m?"-":"")+_+"."+$}},581:function(l,o){var a;Object.defineProperty(o,"__esModule",{value:!0}),o.RoundingModes=void 0,(a=o.RoundingModes||(o.RoundingModes={}))[a.CEILING=0]="CEILING",a[a.DOWN=1]="DOWN",a[a.FLOOR=2]="FLOOR",a[a.HALF_DOWN=3]="HALF_DOWN",a[a.HALF_EVEN=4]="HALF_EVEN",a[a.HALF_UP=5]="HALF_UP",a[a.UNNECESSARY=6]="UNNECESSARY",a[a.UP=7]="UP"},507:function(l,o,a){Object.defineProperty(o,"__esModule",{value:!0}),o.negate=o.subtract=void 0;var u=a(465);function d(f){return f[0]=="-"?f.substr(1):"-"+f}o.subtract=function(f,g){return f=f.toString(),g=d(g=g.toString()),(0,u.add)(f,g)},o.negate=d}},i={};function r(l){var o=i[l];if(o!==void 0)return o.exports;var a=i[l]={exports:{}};return n[l](a,a.exports,r),a.exports}var s={};return function(){var l=s;function o($,b){(b==null||b>$.length)&&(b=$.length);for(var C=0,P=new Array(b);C<b;C++)P[C]=$[C];return P}function a($,b){if(!($ instanceof b))throw new TypeError("Cannot call a class as a function")}function u($,b){for(var C=0;C<b.length;C++){var P=b[C];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty($,P.key,P)}}Object.defineProperty(l,"__esModule",{value:!0});var d=r(465),f=r(698),g=r(850),c=r(753),p=r(144),h=r(152),m=r(507),y=r(581),_=function(){function $(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"0";a(this,$),this.value=$.validate(x)}var b,C,P;return b=$,C=[{key:"getValue",value:function(){return this.value}},{key:"getPrettyValue",value:function(x,v){return $.getPrettyValue(this.value,x,v)}},{key:"round",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y.RoundingModes.HALF_EVEN;if(isNaN(x))throw Error("Precision is not a number: "+x);return new $((0,f.roundOff)(this.value,x,v))}},{key:"floor",value:function(){return this.value.indexOf(".")===-1?new $(this.value):new $(this.value).round(0,y.RoundingModes.FLOOR)}},{key:"ceil",value:function(){return this.value.indexOf(".")===-1?new $(this.value):new $(this.value).round(0,y.RoundingModes.CEILING)}},{key:"add",value:function(x){return new $((0,d.add)(this.value,x.getValue()))}},{key:"subtract",value:function(x){return new $((0,m.subtract)(this.value,x.getValue()))}},{key:"multiply",value:function(x){return new $((0,g.multiply)(this.value,x.getValue()))}},{key:"divide",value:function(x,v){return new $((0,c.divide)(this.value,x.getValue(),v))}},{key:"modulus",value:function(x){return new $((0,p.modulus)(this.value,x.getValue()))}},{key:"compareTo",value:function(x){return(0,h.compareTo)(this.value,x.getValue())}},{key:"negate",value:function(){return new $((0,m.negate)(this.value))}}],P=[{key:"validate",value:function(x){if(x){if(x=x.toString(),isNaN(x))throw Error("Parameter is not a number: "+x);x[0]=="+"&&(x=x.substring(1))}else x="0";if(x.startsWith(".")?x="0"+x:x.startsWith("-.")&&(x="-0"+x.substr(1)),/e/i.test(x)){var v=(W=x.split(/[eE]/),k=2,function(N){if(Array.isArray(N))return N}(W)||function(N,R){var O=N==null?null:typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(O!=null){var F,w,T=[],V=!0,j=!1;try{for(O=O.call(N);!(V=(F=O.next()).done)&&(T.push(F.value),!R||T.length!==R);V=!0);}catch(q){j=!0,w=q}finally{try{V||O.return==null||O.return()}finally{if(j)throw w}}return T}}(W,k)||function(N,R){if(N){if(typeof N=="string")return o(N,R);var O=Object.prototype.toString.call(N).slice(8,-1);return O==="Object"&&N.constructor&&(O=N.constructor.name),O==="Map"||O==="Set"?Array.from(N):O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O)?o(N,R):void 0}}(W,k)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),I=v[0],L=v[1],E="";(I=(0,d.trim)(I))[0]=="-"&&(E="-",I=I.substring(1)),I.indexOf(".")>=0?(L=parseInt(L)+I.indexOf("."),I=I.replace(".","")):L=parseInt(L)+I.length,x=I.length<L?E+I+new Array(L-I.length+1).join("0"):I.length>=L&&L>0?E+(0,d.trim)(I.substring(0,L))+(I.length>L?"."+I.substring(L):""):E+"0."+new Array(1-L).join("0")+I}var W,k;return x}},{key:"getPrettyValue",value:function(x,v,I){if(v||I){if(!v||!I)throw Error("Illegal Arguments. Should pass both digits and separator or pass none")}else v=3,I=",";var L=(x=$.validate(x)).charAt(0)=="-";L&&(x=x.substring(1));for(var E=x.indexOf("."),W="",k=E=E>0?E:x.length;k>0;)k<v?(v=k,k=0):k-=v,W=x.substring(k,k+v)+(k<E-v&&k>=0?I:"")+W;return(L?"-":"")+W+x.substring(E)}},{key:"round",value:function(x){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y.RoundingModes.HALF_EVEN;if(x=$.validate(x),isNaN(v))throw Error("Precision is not a number: "+v);return(0,f.roundOff)(x,v,I)}},{key:"floor",value:function(x){return(x=$.validate(x)).indexOf(".")===-1?x:$.round(x,0,y.RoundingModes.FLOOR)}},{key:"ceil",value:function(x){return(x=$.validate(x)).indexOf(".")===-1?x:$.round(x,0,y.RoundingModes.CEILING)}},{key:"add",value:function(x,v){return x=$.validate(x),v=$.validate(v),(0,d.add)(x,v)}},{key:"subtract",value:function(x,v){return x=$.validate(x),v=$.validate(v),(0,m.subtract)(x,v)}},{key:"multiply",value:function(x,v){return x=$.validate(x),v=$.validate(v),(0,g.multiply)(x,v)}},{key:"divide",value:function(x,v,I){return x=$.validate(x),v=$.validate(v),(0,c.divide)(x,v,I)}},{key:"modulus",value:function(x,v){return x=$.validate(x),v=$.validate(v),(0,p.modulus)(x,v)}},{key:"compareTo",value:function(x,v){return x=$.validate(x),v=$.validate(v),(0,h.compareTo)(x,v)}},{key:"negate",value:function(x){return x=$.validate(x),(0,m.negate)(x)}}],C&&u(b.prototype,C),P&&u(b,P),Object.defineProperty(b,"prototype",{writable:!1}),$}();_.RoundingModes=y.RoundingModes,l.default=_}(),s}()})})(Oi);const re=Hr(Oi.exports);function ji(){let t=[],e="0123456789abcdef";for(let i=0;i<36;i++)t[i]=e.substr(Math.floor(Math.random()*16),1);return t[14]="4",t[19]=e.substr(t[19]&3|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")}let ln=new Date().getTime();const Wr=["a","b"];function Zt(){let t=++ln;return t==Number.MAX_VALUE&&(ln=0),`${Wr[t%2]}_${ln}`}function z(t){return t==null||typeof t=="string"&&t.length==0}function mt(t){return z(t)?!0:(t.charAt(0)=="-"&&(t=t.substring(1)),z(t)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(t))}function Bn(t,e=0){let n=`${t}`,i=n.indexOf(".");if(i==-1)return n;let r=i;for(let s=n.length-1;s>=i;s--)if(n.charAt(s)!="0"){r=s;break}return r-i<e?r=i+e+1:r!=i&&(r+=1),r>n.length?n=n.padEnd(r,"0"):n=n.substring(0,r),n}function Kn(t,e,n=20){if(typeof e=="string"&&(e=ne(e)),e==1||e==-1)return`${t}`;if(e==0)return"0";if(e>0){let i=re.multiply(`${t}`,`${e}`);return Bn(i)}else{let i=re.divide(`${t}`,re.negate(`${e}`),20);return Bn(i)}}function tt(t,e=-1,n=!1,i=3,r=","){let s=`${t}`;if(s.length==0||s==="-")return"";let l=s.charAt(0);l=="-"?s=s.substring(1):l="";let o=s,a="",u=s.indexOf(".");u!=-1&&(o=s.substring(0,u),a=s.substring(u+1)),e!=-1&&(e<a.length?a=a.substring(0,e):n&&e>a.length&&(a=a.padEnd(e,"0")));let d=o.split("").reverse(),f="";for(let c=0;c<d.length;c++)f+=d[c]+((c+1)%i==0&&c+1!=d.length?r:"");let g;return a.length==0?g=`${l}${f.split("").reverse().join("")}`:g=`${l}${f.split("").reverse().join("")}.${a}`,g}function He(t){let e=`${t}`,n=e.charAt(0);n=="-"?e=e.substring(1):n="";let i=e.replace(/[^\d\.-]/g,"");return`${n}${i}`}function Br(t){if(t==null)return 0;let e=`${t}`;if(e.length==0)return 0;e.charAt(0)=="-"&&(e=e.substring(1)),e=e.replace(/[^\d\.-]/g,"");let n=e.indexOf(".");return n==-1?e.length:n}function Kr(t){if(t==null)return 0;let e=`${t}`;if(e.length==0)return 0;let n=e.indexOf(".");return n==-1?0:e.length-(n+1)}function zn(t,e){let n=`${t}`,i=`${e}`;return re.compareTo(n,i)}function zr(t,e=-1,n=!1,i=3,r=","){return tt(t,e,n,i,r)}function Yr(t){return He(t)}Date.prototype.format=function(t){let e={"M+":this.getMonth()+1,"d+":this.getDate(),"H+":this.getHours(),"h+":this.getUTCHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(let n in e)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,RegExp.$1.length==1?e[n]:("00"+e[n]).substr((""+e[n]).length)));return t};function le(t,e={}){if(t==null||t==null)return 0;if(typeof t=="number")return t;if(t=t.trim(),t.length===0)return 0;let n=t.indexOf("px");if(n!=-1){let i=t.substring(0,n);return Number(i)}if(n=t.indexOf("rem"),n!=-1){let i=t.substring(0,n),r=Number(i);const s=Ue();let{fontSize:l}=window.getComputedStyle(s.documentElement,null),o=l.indexOf("px");return l=l.substring(0,o),l=Number(l),r*=l,r}if(n=t.indexOf("%"),n!=-1){let i=t.substring(0,n),r=Number(i),{el:s}=e;if(s){let l=s.offsetParent;e.x?r=r/100*l.offsetWidth:r=r/100*l.offsetHeight}else e.x?r=r/100*vt():r=r/100*Jt();return r}return t}function Mn(t){const e=Ue();if(e.compatMode=="BackCompat"){let n=0;return t==="clientWidth"?n=e.body.clientWidth:t=="clientHeight"?n=e.body.clientHeight:t=="scrollWidth"?n=e.body.scrollWidth:t==="scrollHeight"?n=e.body.scrollHeight:t==="scrollLeft"?n=e.body.scrollLeft:t==="scrollTop"&&(n=e.body.scrollTop),n}else{let n=0;return t==="clientWidth"?n=e.documentElement.clientWidth:t=="clientHeight"?n=e.documentElement.clientHeight:t=="scrollWidth"?n=e.documentElement.scrollWidth:t==="scrollHeight"?n=e.documentElement.scrollHeight:t==="scrollLeft"?n=e.documentElement.scrollLeft==0?e.body.scrollLeft:e.documentElement.scrollLeft:t==="scrollTop"&&(n=e.documentElement.scrollTop==0?e.body.scrollTop:e.documentElement.scrollTop),n}}function Jt(){let t=Mn("clientHeight");return Number(t)}function vt(){let t=Mn("clientWidth");return Number(t)}function Ur(t){let e=0,n=0,i=t;for(;i!=null;)e+=i.offsetLeft,n+=i.offsetTop,i=i.offsetParent;return{x:e,y:n}}function bn(t){let e=0,n=0,i=t;for(;i!=null;)e+=i.offsetLeft,n+=i.offsetTop,i=i.offsetParent;let r=0,s=0;for(i=t;i!=document;)s+=i.scrollTop,r+=i.scrollLeft,i=i.parentNode;return e-=r,n-=s,{x:e,y:n}}function nt(t){let e=t;for(;e!=null;){let n=e.offsetWidth;if(n!=0)return n;e=e.parentNode}return 0}function Te(t){let e=t;for(;e!=null;){let n=e.offsetHeight;if(n!=0)return n;e=e.parentNode}return 0}function Yn(t,e){let{scrollTop:n}=t,i=t.parentNode;for(;i!=null&&i!=e;)n+=i.scrollTop,i=i.parentNode;return n}function Rn(t){let e=t.offsetTop,{offsetParent:n}=t,i=t.parentNode;for(i!=n&&(e-=Yn(i,n));n!=null;)e+=n.offsetTop,i=n.parentNode,n=n.offsetParent,n!=null&&i!=n&&(e-=Yn(i,n));return e}function An(t){let e=t.offsetLeft,n=t.offsetParent;for(;n!=null;)e+=n.offsetLeft,n=n.offsetParent;return e}const Gr={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function qt(t){let{toString:e}=Object.prototype,n=e.call(t);return t==null?String(t):Gr[n]||"object"}function Ht(t){return t&&typeof t=="object"&&typeof t.length=="number"&&typeof t.splice=="function"&&!t.propertyIsEnumerable("length")}function Xr(t){return qt(t)==="function"}function Zr(t){return t&&typeof t=="object"&&"setInterval"in t}function xn(t){if(!t||qt(t)!=="object"||t.nodeType||Zr(t))return!1;let e=Object.prototype.hasOwnProperty;if(t.constructor&&!e.call(t,"constructor")&&!e.call(t.constructor.prototype,"isPrototypeOf"))return!1;let n;for(n in t);return n===void 0||e.call(t,n)}function Wt(...t){let e=Y(t[0])?t[0]:{},n=1,{length:i}=t,r=!1;for(typeof e=="boolean"&&(r=e,e=t[n]||{},n++),typeof e!="object"&&!Xr(e)&&(e={}),n===i&&(e=this,n--);n<i;n++)if(t[n]!=null&&t[n]!=null){let s=t[n];for(let l in s){let o=e[l],a=s[l];if(e===a)continue;let u=!1;if(r&&a&&(xn(a)||(u=Ht(a)))){let d;u?d=o&&Ht(o)?o:[]:d=o&&xn(o)?o:{},e[l]=Wt(r,d,a)}else a!==void 0&&(e[l]=a)}}return e}function qi(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}function Jr(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}function vn(t,e){if(t==e)return!0;if(t==null||e==null)return!1;let n=qt(t),i=qt(e);if(n!==i)return!1;if(n==="object"){let r=Object.keys(t),s=Object.keys(e);if(r.length!==s.length)return!1;for(let l=0;l<r.length;l++){let o=r[l],a=t[o],u=e[o];if(!vn(a,u))return!1}return!0}else if(n==="array"){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let s=t[r],l=e[r];if(!vn(s,l))return!1}return!0}return!1}function gt(t){return t.offsetParent===null}function Un(t){t.scrollIntoViewIfNeeded()}function Qr(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};let n=window.document.createEvent("Events"),i=!0,r=!0;for(let s in e)s==="bubbles"?i=!!e[s]:s==="cancelable"?r=!!e[s]:n[s]=e[s];return n.initEvent(t,i,r),n}function Hi(t,e,n={}){Object.assign(n,{bubbles:!0,cancelable:!0});let i=Qr(e,n);t.dispatchEvent(i)}function es(t,e){let n=0;return function(...i){const r=Date.now();r-n>e&&(Reflect.apply(t,{},[...i]),n=r)}}function Vn(t,e){let n=null,i=null;return function(...r){i=r,n||(n=setTimeout(()=>{n=null,Reflect.apply(t,{},[...i||[]])},e))}}const ts=(t,e)=>{e?(t.elm.removeAttribute("disabled"),t.elm.classList.remove("is-disabled")):(t.elm.setAttribute("disabled","true"),t.elm.classList.contains("is-disabled")&&t.elm.classList.add("is-disabled"))},ns=(t,e)=>{!t||(t.attrs||(t.attrs={}),e?Reflect.deleteProperty(t.attrs,"disabled"):t.attrs.disabled=!0)},an=Symbol("$authHandler"),on=Symbol("$authRenderHandler"),Gn=Symbol.for("handleNode"),is=Symbol.for("handleRenderData"),rs="fox_auth_scope";class ss{auths=new Map;register=new Map;[an]=ts;[on]=ns;setAuthHandler(e){this[an]=e}setAuthRenderHandler(e){this[on]=e}getAuthScope(e){let n=e.$route;if(!n)return null;let{params:i}=n;return i?i[rs]:null}[Gn](e,n){this[an](e,n)}[is](e,n){this[on](e,n)}getNodeKey(e){return`${e.componentInstance&&e.componentInstance._uid}`}registerNode(e,n,i){let r;this.register.has(e)?r=this.register.get(e):r=new Map;const s=this.getNodeKey(n);r.set(s,{node:n,auth:i}),this.register.set(e,r)}unRegisterNode(e,n){let i=this.register.get(e);if(!i)return;const r=this.getNodeKey(n);i.delete(r),i.size==0&&this.register.delete(e)}addAuths(e,n){this.auths.set(e,n);let i=this.register.get(e);if(i)for(let[r,s]of i){let l=n.indexOf(s.auth)==-1;this[Gn](s.node,l)}}removeAuths(e){this.auths.has(e)&&this.auths.delete(e)}hasAuths(e){return this.auths.has(e)}hasAuth(e,n){return this.auths.has(e)?this.auths.get(e).indexOf(n)!=-1:!1}}let me=new ss;function ls(t,e,n){let i=new Date(new Date(e).setDate(e.getDate()+n));const r=t.getTime(),s=i.getTime(),l=e.getTime();return s>l?r>=l&&r<=s:r>=s&&r<=l}function as(t,e,n){let i=new Date(new Date(e).setMonth(e.getMonth()+n));const r=t.getTime(),s=i.getTime(),l=e.getTime();return s>l?r>=l&&r<=s:r>=s&&r<=l}function os(){let t=new Date(new Date().toLocaleDateString());return t.setDate(1),t}function us(){return new Date(new Date().toLocaleDateString())}function cs(t,e){return re.multiply(`${t}`,`${e}`)}function Wi(t,e,n=8){return re.divide(`${t}`,`${e}`,n)}function fs(t,e){return re.add(`${t}`,`${e}`)}function ds(t,e){return re.subtract(`${t}`,`${e}`)}function hs(t){return new re(t).getValue()}function ps(t,e,n){return re.getPrettyValue(t,e,n)}function ms(t,e,n){return re.round(t,e,n)}function gs(t){return re.floor(t)}function ys(t){return re.ceil(t)}function _s(t,e){return re.modulus(t,e)}function Bi(t,e){return re.compareTo(t,e)}function $s(t){return re.negate(t)}let St=!1,Ae=[];class ie{static setLock(e,n){St=e,n&&Array.isArray(n)&&(Ae=[...n])}static setError(e,n,i){if(St&&(Ae.length==0||Ae.indexOf("error")!=-1))return;if(Y(e.innerErrorTip)){e.innerErrorTip=n,Y(i)&&(e.innerInfoIcon=i);return}if(e.$children&&e.$children.length==1){let s=e.$children[0];if(Reflect.has(s,"innerErrorTip")){s.innerErrorTip=n,Y(i)&&(s.innerInfoIcon=i);return}}let r=e.$el;if(r){r.classList.add("is-error");let s=r.querySelector(".el-form-item__content");if(!s)return;e=s.querySelector(".fox-form-item__tip"),e||(e=window.document.createElement("div"),e.classList.add("fox-form-item__tip"),s.appendChild(e)),e.innerText=n}}static resetError(e){if(Y(e.innerErrorTip)){e.innerErrorTip="";return}if(e.$children&&e.$children.length==1){let i=e.$children[0];if(Reflect.has(i,"innerErrorTip")){i.innerErrorTip="";return}}let n=e.$el;n&&(n.classList.remove("is-error"),e=n.querySelector(".fox-form-item__tip"),e&&e.parentNode.removeChild(e))}static setWarn(e,n,i){if(St&&(Ae.length==0||Ae.indexOf("warn")!=-1))return;if(Y(e.innerWarnTip)){e.innerWarnTip=n,Y(i)&&(e.innerWarnIcon=i);return}if(e.$children&&e.$children.length==1){let s=e.$children[0];if(Reflect.has(s,"innerWarnTip")){s.innerWarnTip=n,Y(i)&&(s.innerWranIcon=i);return}}let r=e.$el;if(r){r.classList.add("is-warn");let s=r.querySelector(".el-form-item__content");if(!s)return;e=s.querySelector(".fox-form-item__tip"),e||(e=window.document.createElement("div"),e.classList.add("el-form-item__tip"),s.appendChild(e)),e.innerText=n}}static resetWarn(e){if(Y(e.innerWarnTip)){e.innerWarnTip="";return}if(e.$children&&e.$children.length==1){let i=e.$children[0];if(Reflect.has(i,"innerWarnTip")){i.innerWarnTip="";return}}let n=e.$el;n&&(n.classList.remove("is-warn"),e=n.querySelector(".fox-form-item__tip"),e&&e.parentNode.removeChild(e))}static setInfo(e,n,i){if(St&&(Ae.length==0||Ae.indexOf("info")!=-1))return;if(Y(e.innerInfoTip)){e.innerInfoTip=n,Y(i)&&(e.innerInfoIcon=i);return}if(e.$children&&e.$children.length==1){let s=e.$children[0];if(Reflect.has(s,"innerInfoTip")){s.innerInfoTip=n,Y(i)&&(s.innerInfoIcon=i);return}}let r=e.$el;if(r){r.classList.add("is-info");let s=r.querySelector(".el-form-item__content");if(!s)return;e=s.querySelector(".fox-form-item__tip"),e||(e=window.document.createElement("div"),e.classList.add("fox-form-item__tip"),s.appendChild(e)),e.innerText=n}}static resetInfo(e){if(Y(e.innerInfoTip)){e.innerInfoTip="";return}if(e.$children&&e.$children.length==1){let i=e.$children[0];if(Reflect.has(i,"innerInfoTip")){i.innerInfoTip="";return}}let n=e.$el;n&&(n.classList.remove("is-info"),e=n.querySelector(".fox-form-item__tip"),e&&e.parentNode.removeChild(e))}}let Xn;const ye={get Vue(){return Xn},set Vue(t){Xn=t}},Bt=Symbol.for("$RootDomain"),Se=Symbol.for("$Domain");function bs(t){let e=t.indexOf("-");for(;e!=-1&&e<t.length;){let n=t.substring(0,e),i=t.substring(e+1,e+2),r=t.substring(e+2);t=n+i.toUpperCase()+r,e=t.indexOf("-")}return t}function fe(t){return t!=null}function xs(t){let e=t.value;return Y(e)||(e=t.innerValue),e}function Zn(t,e,n,i){for(let r of t){if(r.listened)continue;let s=function(o){o?ie.setWarn(r.node,o):ie.resetWarn(r.node)},l=()=>{setTimeout(()=>{let o=xs(r.node),a=Reflect.apply(e,{},[o,r.name,r.relate,r.index,r.node]);Vi(a)?a.then(u=>{s(u)},u=>{s(u)}):s(a)},150)};r.node.$on("blur",l),r.node.$on("setValue",l),Y(n)&&ie.setInfo(r.node,n,i),r.listened=!0,r.checkFunc=l}}function Xe(t,e,n){let i=t.$attrs[e];if(fe(i))return i;let r=bs(e);return i=t.$props[r],fe(i)?i:n}const un=Symbol("$modelItem");class vs{node;name;relate;label;index;_props=new Proxy({[un]:this},{set(e,n,i){let r=e[un].node;if(r==null)return console.error("model item > node\u5C5E\u6027\u672A\u5B9A\u4E49"),!1;let s=r._fox_model_options;return s==null?(console.error("model item > node > options\u5C5E\u6027\u672A\u5B9A\u4E49"),!1):(Reflect.has(s,n)?s[n]=i:ye.Vue.util.defineReactive(s,n,i),!0)},get(e,n){let i=e[un].node;if(i==null){console.error("model item > node\u5C5E\u6027\u672A\u5B9A\u4E49");return}let r=i._fox_model_options;if(r==null){console.error("model item > node > options\u5C5E\u6027\u672A\u5B9A\u4E49");return}return Reflect.has(r,n)||ye.Vue.util.defineReactive(r,n,void 0),r[n]}});get props(){return this._props}listened=!1;type="item";constructor(e,n,i,r,s=0){this.node=e,this.name=n,this.relate=i,this.label=r,this.index=s,e._fox_model_options={}}destroy(){this._props=null,this.node._fox_model_options=null,this.node=null}}const Jn=Symbol("_setModel"),Qn=Symbol("_removeModel"),ei=Symbol("toModelItemList"),ti=Symbol("toModelNameList"),ni=Symbol.for("getModels"),xe=Symbol.for("getModelItems"),st=Symbol("getProperty"),Ki=Symbol("release");function Et(t){let e=t&&t.$vnode&&t.$vnode.context;return e.$data&&e.$data[Or]&&(e=e.$vnode.context),e}class M{name;vm;modelsMap=new Map;parent=null;children={};checkModels=[];checkFunc;checkInfo={};options={};subVmMap=new Map;constructor(e,n,i){this.parent=e,this.name=n,this.vm=i,e&&(e.children[n]=this)}[Ki](){this.parent&&this.parent.children&&Reflect.deleteProperty(this.parent.children,this.name),this.parent=void 0,this.vm=void 0,this.modelsMap.clear(),this.children=void 0,this.checkFunc=void 0,this.checkInfo=void 0,this.options=void 0,this.subVmMap.clear()}setSubVm(e,n){this.subVmMap.set(e,n)}getSubVm(e){return this.subVmMap.get(e)}removeSubVm(e){return this.subVmMap.delete(e)}getAllSubNames(){let e=[];for(let[n,i]of this.subVmMap)e.push(n);return e}getAllSubData(){let e={};for(let[n,i]of this.subVmMap)e[n]=i.$data;return e}getSubData(e){let n=this.getSubVm(e);if(!!n)return n.$data}setSubData(e,n,i){let r=this.getSubData(e);!r||Fi(n,r,void 0,i)}getSubDataValue(e,n){let i=this.getSubData(e);if(!i)return;let r=n.split(".");return ht(i,r,0)}setSubDataValue(e,n,i){let r=this.getSubData(e);if(!r)return;let s=n.split(".");pt(r,s,0,i)}setOption(e,n){Reflect.has(this.options,e)?this.options[e]=n:ye.Vue.util.defineReactive(this.options,e,n)}getOption(e){return Reflect.has(this.options,e)||ye.Vue.util.defineReactive(this.options,e,void 0),this.options[e]}getChildDomain(e){if(!this.children)return;let n=this.children[e];if(n)return n;for(let i in this.children)if(n=this.children[i].getChildDomain(e),n)return n}setCheck(e,n,i,r){for(let s of e){let l=this.modelsMap.get(s);!l||Zn(l,n,i,r)}for(let s in this.children)this.children[s].setCheck(e,n,i,r);this.checkModels=e,this.checkFunc=n,this.checkInfo={msg:i,icon:r}}check(e){if(e)for(let n of e){let i=this.modelsMap.get(n);if(!!i)for(let r of i)!r.node||!r.listened||r.node.$emit("setValue",r.node.value||"")}else for(let[n,i]of this.modelsMap)for(let r of i)!r.node||!r.listened||r.node.$emit("setValue",r.node.value||"");for(let n in this.children)this.children[n].check(e)}clearCheckTip(e){if(e)for(let n of e){let i=this.modelsMap.get(n);if(!!i)for(let r of i)!r.node||!r.listened||ie.resetWarn(r.node)}else for(let[n,i]of this.modelsMap)for(let r of i)!r.node||!r.listened||ie.resetWarn(r.node);for(let n in this.children)this.children[n].clearCheckTip(e)}setLockTip(e,n){ie.setLock(e,n)}setInfo(e,n,i){for(let r of e){let s=this.modelsMap.get(r);!s||s.forEach(l=>{ie.setInfo(l.node,n,i)})}for(let r in this.children)this.children[r].setInfo(e,n,i)}setWarn(e,n,i){for(let r of e){let s=this.modelsMap.get(r);!s||s.forEach(l=>{ie.setWarn(l.node,n,i)})}for(let r in this.children)this.children[r].setWarn(e,n,i)}setError(e,n,i){for(let r of e){let s=this.modelsMap.get(r);!s||s.forEach(l=>{ie.setError(l.node,n,i)})}for(let r in this.children)this.children[r].setError(e,n,i)}getDomainByModelName(e){if(this.modelsMap.has(e))return this;let n;for(let i in this.children)if(n=this.children[i].getDomainByModelName(e),n)break;return n}getName(){return this.name}[st](e){let n=this.getOption(e);if(fe(n))return n;if(this.vm)return n=Xe(this.vm,e,void 0),n}[Jn](e,n,i,r){let s=new vs(r,e,n,i),l=this.modelsMap.get(e);if(!l)l=[s];else{if(l.find(u=>u.node===r))return;let a=l[l.length-1];a.type="listItem",s.index=a.index+1,s.type="listItem",l.push(s)}this.modelsMap.set(e,l),this.checkFunc&&this.checkModels.indexOf(e)!=-1&&Zn([s],this.checkFunc,this.checkInfo.msg,this.checkInfo.icon)}[Qn](e,n){let i=this.modelsMap.get(e);if(!!i)for(let r=0;r<i.length;r++){let s=i[r];if(s.node===n){s.destroy(),i.splice(r,1),i.length==0&&this.modelsMap.delete(e);return}}}[ei](e){let n=[];for(let i of e.values())n=[...n,...i];return n}[ti](e){let n=[];for(let i of e.keys())n.push(i);return n}[xe](e){let n=this[ei](this.modelsMap);for(let i in this.children){let s=this.children[i][xe](e);n=[...n,...s]}return e!=null&&(n=n.filter(i=>i.name==e)),n}[ni](){let e=this[ti](this.modelsMap);for(let n in this.children){let r=this.children[n][ni]();e=[...e,...r]}return e}setPropertyByModel(e,n,i,r){this[xe](n).forEach(l=>{l.props[i]=r})}setVerifyByModel(e,n,i,r){this[xe](n).forEach(l=>{Qt.setNode(l.node,i,r)})}applyByModel(e,n,i,...r){this[xe](n).forEach(l=>{let o=l.node[i];typeof o=="function"?setTimeout(()=>{Reflect.apply(o,l.node,[...r])},0):console.warn(`can not found the method:${i}`)})}bindEventByModel(e,n,i,r){this[xe](n).forEach(l=>{l.node.$on(i,r)})}unbindEventByModel(e,n,i,r){this[xe](n).forEach(l=>{l.node.$off(i,r)})}static getDomain(e){return e.$data&&e.$data[Se]||M.getParentDomain(e)}static getParentDomain(e){if(!e)return Sn;let n=e.$parent;for(;n&&(!n.$data||!n.$data[Se]);)n=n.$parent;return n&&n.$data&&n.$data[Se]||Sn}static getRootDomain(e){if(!e)return null;if(e.$data&&e.$data[Bt])return e.$data[Se];let n=e.$parent;for(;n&&(!n.$data||!n.$data[Bt]);)n=n.$parent;return n&&n.$data&&n.$data[Se]}static getParentDomainProperty(e,n,i){let r=M.getParentDomain(e);if(!r)return;let s=r[st](n);for(;!fe(s)&&(r=r.parent,!!r);)s=r[st](n);return fe(s)?s:i}static getDomainProperty(e,n,i){let r=M.getDomain(e);if(!r)throw new Error("domain not found");for(;r;){let s=r[st](n);if(fe(s))return s;r=r.parent}return i}static getFitProperty(e,n,i,r=!1){let s=n,l=n;Array.isArray(n)&&n.length==2&&(s=n[0],l=n[1]);let o=Xe(e,s,void 0);if(!e.pageScope)return o||i;let a=!1,u=M.getModelInfo(e);if(u){let g=M.getDomain(e)[xe](u.name);if(g&&g.length>0){for(let c=0;c<g.length;c++)if(g[c].node==e){a=g[c].props[s];break}}if(r==!0&&(M.hasExemption(e,u.relate,"model")||M.hasExemption(e,u.name,"model")))return Dt(a,o)||i}let d=M.getDomainProperty(e,l,void 0);return fe(d)&&Xe(e,"fox-obey",void 0)!==void 0?d:Dt(a,o)||d||i}static getFitPropertyForBoolean(e,n,i,r=!1){let s=n,l=n;Array.isArray(n)&&n.length==2&&(s=n[0],l=n[1]);let o=Xe(e,s,void 0);if(fe(o)&&(typeof o=="string"&&o.length==0?o=!0:o=Z(o)),!e.pageScope)return o||i;let a,u=M.getModelInfo(e);if(u){let g=M.getDomain(e)[xe](u.name);if(g&&g.length>0){for(let c=0;c<g.length;c++)if(g[c].node==e){a=g[c].props[s];break}}if(r==!0&&(M.hasExemption(e,u.relate,"model")||M.hasExemption(e,u.name,"model")))return Dt(a,o)||i}let d=M.getDomainProperty(e,l,void 0);return fe(d)&&(typeof d=="string"&&d.length==0?d=!0:d=Z(d),Xe(e,"fox-obey",void 0)!==void 0)?d:Dt(a,o)||d||i}static getAllProperties(e,n){let i=[],r=Xe(e,n,void 0);fe(r)&&i.push(r);let s=M.getDomain(e);for(;s;)r=s[st](n),fe(r)&&i.push(r),s=s.parent;return i}static isReadonly(e){return M.getFitPropertyForBoolean(e,"readonly",!1,!0)}static isDisabled(e){return M.getFitPropertyForBoolean(e,"disabled",!1,!0)}static setModel(e,n,i,r){let s=M.getDomain(e);!s||s[Jn](n,i,r,e)}static removeModel(e,n){let i=M.getDomain(e);!i||i[Qn](n)}static hasExemption(e,n,i){if(n==null)return!1;if(i=="model"){let r=M.getAllProperties(e,"filter-models");if(!r||r.length==0)return!1;for(let s=0;s<r.length;s++)if(r[s].indexOf(n)!=-1)return!0;return!1}return!1}static getModelInfo(e){if(e.customScope){let i=e.$parent;for(let r=0;r<5;r++){if(i._provided&&i._provided.customRoot===!0){e=i;break}i=i.$parent}}let n=e.$vnode&&e.$vnode.data&&e.$vnode.data.model;if(n)return{name:n.expression,relate:e.$attrs["fox-model"]}}static getVerifyRules(e,n){return M.getDomainProperty(e,"verify-rules",{})[n]}}function Dt(...t){for(let e of t)if(fe(e))return e}const Sn=new M(null,"_first_",null);function We(){return Sn}function zi(t,e,n){if(!t.$data)return null;let i=t.$data[Se];if(i)return i;const r=M.getParentDomain(t);let s=e||`domain-${Zt()}`;return i=new M(r,s,t),n&&(t.$data[Bt]=!0),t.$data[Se]=i,t.$once("hook:destroyed",()=>{t.$data[Se]=void 0,t.$data[Bt]=void 0,i[Ki]()}),i}function pe(t){return t.$data&&t.$data[Se]||M.getParentDomain(t)}const Ss=Symbol.for("getModelItems");let Dn=["require","required","email","url","date","dateISO","number","digit","creditcard"];class Qt{static install(e){let i=Et(e).$fox_validator;if(!i)return;let r=e,s=r.$vnode.data.model&&r.$vnode.data.model.expression;if(s==null)return;let l=[];for(let g in e.$attrs)if(Dn.indexOf(g)!=-1){if(`${e.$attrs[g]}`==="false")continue;l.push(g)}for(let g in e.$props)if(Dn.indexOf(g)!=-1){if(`${e.$props[g]}`==="false")continue;l.push(g)}let o=M.getVerifyRules(e,s);if(Array.isArray(o)&&(l=[...l,...o]),l.length==0)return;let a=r.$attrs.id||`${s}_${r._uid}`,u=r.$attrs["verify-message"]||r.$attrs.tag;if(r.multiLang&&typeof u=="string")try{u=e.$langTranslator.translateAttr(e,u,u,e.$options.name)}catch{}let d={rule:l,message:u};if(i.settings.decorate!=null&&typeof i.settings.decorate=="function")try{i.settings.decorate(r,l)}catch(g){console.error(g.message,g)}let f=i.add(a,s,d,r);f.destroy=()=>{i.remove(a)},r.$once("hook:destroyed",f.destroy)}static update(e,n,i){if(n==null||n.length==0)return;let s=Et(e).$fox_validator;if(!s)return;let{decorate:l}=s.settings,o={...i};for(let a in n){delete o[a];let u=s.getCheckPointByModel(a);if(u==null||u.length==0){let d=n[a];if(d==null||d.length==0)continue;let g=M.getDomain(e)[Ss](a);for(let c of g){let{node:p}=c,h=p.$attrs.id||`${a}_${p._uid}`,m=p.$attrs["verify-message"]||p.$attrs.tag;if(p.multiLang&&typeof m=="string")try{m=e.$langTranslator.translateAttr(e,m,m,e.$options.name)}catch{}let y={rule:d,message:m};l(p,d);let _=s.add(h,a,y,p);_.destroy=()=>{s.remove(h)},p.$once("hook:destroyed",_.destroy)}}else for(let d=0;d<u.length;d++){let f=u[d];f.checkItem.rule=s.formatRule(n[a]),l(f.node,f.checkItem.rule),s.reset(f.id,f.node)}}for(let a in o){let u=s.getCheckPointByModel(a);if(!(u==null||u.length==0))for(let d=0;d<u.length;d++){let f=u[d];l(f.node,[]),s.reset(f.id,f.node),s.remove(f.id),f&&f.destroy&&f.node.$off("hook:destroyed",f.destroy)}}}static setNode(e,n,i){if(!e)return;let s=Et(e).$fox_validator;if(!s)return;let{decorate:l}=s.settings,o=e.$vnode.data.model&&e.$vnode.data.model.expression,a=e.$attrs.id||`${o}_${e._uid}`,u=s.remove(a);if(u&&(l(e,[]),s.reset(a,e),u.destroy&&(u.node.$off("hook:destroyed",u.destroy),u.destroy=void 0)),!n||n.length==0)return;let d={rule:n,message:i};l(e,n),u=s.add(a,o,d,e),u.destroy=()=>{s.remove(a)},e.$once("hook:destroyed",u.destroy)}}const Yi=new Map,Kt=new Map;function Ui(t,e,n){if(n){let i=Kt.get(n);i||(i=new Map,Kt.set(n,i)),i.set(t,e)}else Yi.set(t,e)}function De(t,e){let n=null;if(e){let i=Kt.get(e);i&&(n=i.get(t))}return n||(n=Yi.get(t)),n}function Ds(t,e){for(let n in t){const i=t[n];Ui(n,i,e)}}function ws(t){Kt.delete(t)}const Ze=Symbol("$navigations"),wt=Symbol("$listeners"),ve=Symbol("$queueMap"),ii="*",Tt=Symbol("$circle"),Ct=Symbol("$headerTabInesx"),It=Symbol("$contentTabIndex"),kt=Symbol("$footerTabIndex"),Ts=Symbol.for("$ProxyView");function Ee(t){let{context:e}=t;return e.$data&&e.$data[Ts]&&(e=e.$vnode.context),e._provided&&e._provided.customRoot===!0&&(e=e.$vnode.context),e}function Pt(t){return t._uid||-1}function Lt(t){if(t.componentInstance)return t.componentInstance._uid;let{id:e}=t.elm;return e||(e=t.key),e}class Cs{[Ze]=new Map;[wt]=new Map;[ve]=new Map;[Tt]=!0;[Ct]=1;[It]=void 0;[kt]=2;setCircleCursor(e){this[Tt]=e}setHeaderTabIndex(e){this[Ct]=e}setContentTabIndex(e){this[It]=e}setFooterTabIndex(e){this[kt]=e}addNavigation(e,n){this[Ze].set(e,n)}focusFirst(e){if(this.isAPISupport())return;let n=e._uid,i=this[ve].get(n);if(i&&i.length>0){let r=0;for(;r<i.length;){let s=i[r],l=this.getNavigation(s.type);if(this.focusable(s.vnode,l,s.type)){this.focus(s.vnode,l,s.type);return}r+=1}}}focusNext(e){this.isAPISupport()&&De("keyTap")("tab")}bind(e,n,i,r=!1,s=!1){let l=Ee(n),o=Pt(l),a=Lt(n);if(!a)return;let u=p=>{setTimeout(()=>{this.navigate(n,i,p)},0)};if(this[wt].set(a,u),e.addEventListener("keydown",u,{passive:!0}),e.addEventListener("keyproxy",u,{passive:!0}),this.isAPISupport()){r===!0&&this[Ct]!==void 0?e.setAttribute("tabindex",`${this[Ct]}`):s===!0&&this[kt]!==void 0?e.setAttribute("tabindex",`${this[kt]}`):this[It]!==void 0&&e.setAttribute("tabindex",`${this[It]}`);return}let d=Ur(e),f=this[ve].get(o);f||(f=[]);let g={contextId:o,id:a,x:d.x,y:d.y,type:i,vnode:n,headerScope:r,footerScope:s},c=f.length-1;for(;c>=0;c--){let p=f[c];if(!(r===!0&&p.headerScope!==!0)){if(r!==!0&&p.headerScope===!0){f.splice(c+1,0,g);break}if(s===!0&&p.footerScope!==!0){f.splice(c+1,0,g);break}if(!(s!==!0&&p.footerScope===!0)){if(d.y>p.y){f.splice(c+1,0,g);break}if(d.y==p.y&&d.x>=p.x){f.splice(c+1,0,g);break}}}}c<0&&f.splice(0,0,g),this[ve].set(o,f)}updated(e,n,i,r=!1,s=!1){this.unbind(e,n,i,r,s),this.bind(e,n,i,r,s)}unbind(e,n,i,r=!1,s=!1){let l=Ee(n),o=Pt(l),a=Lt(n);if(!a)return;let u=this[wt].get(a);if(u&&(e.removeEventListener("keydown",u),e.removeEventListener("keyproxy",u),this[wt].delete(a)),this.isAPISupport())return;let d=this[ve].get(o);if(!!d){for(let f=d.length-1;f>=0;f--){let g=d[f];g.contextId==o&&g.id==a&&d.splice(f,1)}d.length==0&&this[ve].delete(o)}}isAPISupport(){let e=De("isKeyTapSupport");return typeof e=="function"?e():!1}getNavigation(e){let n=this[Ze].get(e);return n||(n=this[Ze].get(ii)),n}focus(e,n,i){n&&typeof n.focus=="function"&&Reflect.apply(n.focus,n,[e,i]);let r=e.componentInstance;if(r&&typeof r.focus=="function"){r.focus(),r.$el&&Un(r.$el);return}let{elm:s}=e;s&&typeof s.focus=="function"&&(s.focus(),Un(s))}focusable(e,n,i){if(n&&typeof n.focusable=="function")return Reflect.apply(n.focusable,n,[e,i]);let r=e.componentInstance;if(r&&r.mDisabled===!0)return!1;let{elm:s}=e;if(gt(s))return!1;let l=s.getAttribute("attainable");if(l===!1||typeof l=="string"&&l.toLowerCase()==="false")return!1;let o=s.getAttribute("disabled");return o==null||o===null||!o}back(e,n){if(this.isAPISupport()){De("keyTap")("tab",["shift"]);return}let i=Ee(e),r=Pt(i),s=Lt(e),l=this.getNavigation(n),o=this.findPreviousNode(r,s,l,n);o&&this.focus(o,l,n)}forward(e,n){if(this.isAPISupport()){De("keyTap")("tab");return}let i=Ee(e),r=Pt(i),s=Lt(e),l=this.getNavigation(n),o=this.findNextNode(r,s,l,n);o&&this.focus(o,l,n)}findNextNode(e,n,i,r){let s=this[ve].get(e);if(!s)return;let l=-1;for(let u=0;u<s.length;u++)if(s[u].id==n){l=u;break}if(l==-1)return;let o,a=l+1;for(;a!=l;){if(a==s.length){if(!this[Tt])return;a=0}if(o=s[a].vnode,a==l)return;if(this.focusable(o,i,r))break;a+=1}return o}findPreviousNode(e,n,i,r){let s=this[ve].get(e);if(!s)return;let l=-1;for(let u=0;u<s.length;u++)if(s[u].id==n){l=u;break}if(l==-1)return;let o,a=l-1;for(;a!=l;){if(a==-1){if(!this[Tt])return;a=s.length-1}if(o=s[a].vnode,a==l)return;if(this.focusable(o,i,r))break;a-=1}return o}paraserKeyNavigation(e,n,i,r){let s;if(e.componentInstance&&typeof e.componentInstance.paraserKeyNavigation=="function"&&(s=e.componentInstance.paraserKeyNavigation(i,r)),!s){let l=this[Ze].get(n);l||(l=this[Ze].get(ii)),l&&(typeof l.forwardKeys=="function"?Reflect.apply(l.forwardKeys,l,[e,n,i,r])===!0&&(s="forward"):Array.isArray(l.forwardKeys)&&l.forwardKeys.indexOf(i)!=-1&&(s="forward"),s||(typeof l.backKeys=="function"?Reflect.apply(l.backKeys,l,[e,n,i,r])===!0&&(s="back"):Array.isArray(l.backKeys)&&l.backKeys.indexOf(i)!=-1&&(s="back")))}return s||"none"}navigate(e,n,i){if(!e)return;let{key:r,shiftKey:s,altKey:l,ctrlKey:o}=i,a=[];s&&a.push("Shift"),l&&a.push("Alt"),o&&a.push("Ctrl"),a.push(r);let u=a.join("+"),d=this.paraserKeyNavigation(e,n,u,i);d=="forward"?this.forward(e,n):d=="back"&&this.back(e,n)}getFocusNode(e,n){if(this.isAPISupport())return null;let i=this[ve].get(e);return i?i.find(s=>s.vnode.componentInstance&&s.vnode.componentInstance===n):null}}let Ne=new Cs;const yt=[];function ri(t){We().setOption("pageLayout",t),yt.forEach(n=>{try{n(t)}catch(i){console.error(i)}})}function Is(){return We().getOption("pageLayout")}function ks(t){yt.indexOf(t)===-1&&yt.push(t)}function Ps(t){const e=yt.indexOf(t);e!==-1&&yt.splice(e,1)}const ge="PageStateKey";function Ce(t){const e={top:null,left:null,bottom:null,right:null};if(!t)return e;e.top=t.top??null,e.left=t.left??null,e.bottom=t.bottom??null,e.right=t.right??null;for(let n in e){const i=e[n];i!==null&&(e[n]=le(i))}return e}function Ls(t,e,n){t.headerHeight=le(n.headerHeight||e.headerHeight),t.headerPadding=Ce(n.headerPadding||e.headerPadding),t.footerHeight=le(n.footerHeight||e.footerHeight),t.footerPadding=Ce(n.footerPadding||e.footerPadding),t.height=le(n.height||e.height),t.width=le(n.width||e.width),t.contentPadding=Ce(n.contentPadding??e.contentPadding)}function Fn(t,e){t.setOption(ge,e)}function Ns(t,e={}){const n={top:null,left:null,bottom:null,right:null},i={width:0,height:0,headerHeight:0,headerPadding:{...n},footerHeight:0,footerPadding:{...n},contentHeight:null,contentPadding:{...n},safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=We(),s=Object.assign(r.getOption("safeAreaInset")||{},e.safeAreaInset||{});s&&(i.safeAreaTop=le(s.top),i.safeAreaBottom=le(s.bottom),i.safeAreaLeft=le(s.left),i.safeAreaRight=le(s.right));const l=r.getOption("pageLayout");if(!l)return null;Ls(i,l,e);const o=M.getParentDomainProperty(t.vm,ge);o&&(i.height=wn(t,o),i.width=Tn(t,o));const a=u=>{o?(i.height=wn(t,o),i.width=Tn(t,o)):(i.height=u.height,i.width=u.width),t.setOption(ge,i)};return ks(a),t.vm.$once("hook:destroyed",()=>{Ps(a)}),t.setOption(ge,i),i}function we(t){return t.getOption(ge)}function En(t,e){return e=e||t.getOption(ge),e&&e.headerMounted?e.headerHeight+e.safeAreaTop:0}function en(t,e){return e=e||t.getOption(ge),e&&e.footerMounted?e.footerHeight+e.safeAreaBottom:0}function wn(t,e){if(e=e||t.getOption(ge),e){const n=En(t,e),i=en(t,e);return e.height-n-i-(e.contentPadding.top??0)-(e.contentPadding.bottom??0)}return 0}function Tn(t,e){return e=e||t.getOption(ge),e?e.width-(e.contentPadding.left??0)-(e.contentPadding.right??0):0}function Ms(t,e){const i=We().getOption("isInnerPage");if(typeof i=="function")return Reflect.apply(i,{},[e,t]);const r=e.$el.parentNode;return!r||!r.classList?!1:!!r.classList.contains("el-dialog__body")}function Rs(t,e){const n=t.getOption(ge);n&&(n.contentHeight=e,t.setOption(ge,n))}var Gi={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){var n=1e3,i=6e4,r=36e5,s="millisecond",l="second",o="minute",a="hour",u="day",d="week",f="month",g="quarter",c="year",p="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},$=function(k,N,R){var O=String(k);return!O||O.length>=N?k:""+Array(N+1-O.length).join(R)+k},b={s:$,z:function(k){var N=-k.utcOffset(),R=Math.abs(N),O=Math.floor(R/60),F=R%60;return(N<=0?"+":"-")+$(O,2,"0")+":"+$(F,2,"0")},m:function k(N,R){if(N.date()<R.date())return-k(R,N);var O=12*(R.year()-N.year())+(R.month()-N.month()),F=N.clone().add(O,f),w=R-F<0,T=N.clone().add(O+(w?-1:1),f);return+(-(O+(R-F)/(w?F-T:T-F))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:f,y:c,w:d,d:u,D:p,h:a,m:o,s:l,ms:s,Q:g}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},C="en",P={};P[C]=_;var x=function(k){return k instanceof E},v=function k(N,R,O){var F;if(!N)return C;if(typeof N=="string"){var w=N.toLowerCase();P[w]&&(F=w),R&&(P[w]=R,F=w);var T=N.split("-");if(!F&&T.length>1)return k(T[0])}else{var V=N.name;P[V]=N,F=V}return!O&&F&&(C=F),F||!O&&C},I=function(k,N){if(x(k))return k.clone();var R=typeof N=="object"?N:{};return R.date=k,R.args=arguments,new E(R)},L=b;L.l=v,L.i=x,L.w=function(k,N){return I(k,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var E=function(){function k(R){this.$L=v(R.locale,null,!0),this.parse(R)}var N=k.prototype;return N.parse=function(R){this.$d=function(O){var F=O.date,w=O.utc;if(F===null)return new Date(NaN);if(L.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var T=F.match(m);if(T){var V=T[2]-1||0,j=(T[7]||"0").substring(0,3);return w?new Date(Date.UTC(T[1],V,T[3]||1,T[4]||0,T[5]||0,T[6]||0,j)):new Date(T[1],V,T[3]||1,T[4]||0,T[5]||0,T[6]||0,j)}}return new Date(F)}(R),this.$x=R.x||{},this.init()},N.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},N.$utils=function(){return L},N.isValid=function(){return this.$d.toString()!==h},N.isSame=function(R,O){var F=I(R);return this.startOf(O)<=F&&F<=this.endOf(O)},N.isAfter=function(R,O){return I(R)<this.startOf(O)},N.isBefore=function(R,O){return this.endOf(O)<I(R)},N.$g=function(R,O,F){return L.u(R)?this[O]:this.set(F,R)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(R,O){var F=this,w=!!L.u(O)||O,T=L.p(R),V=function(oe,U){var te=L.w(F.$u?Date.UTC(F.$y,U,oe):new Date(F.$y,U,oe),F);return w?te:te.endOf(u)},j=function(oe,U){return L.w(F.toDate()[oe].apply(F.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(U)),F)},q=this.$W,K=this.$M,G=this.$D,X="set"+(this.$u?"UTC":"");switch(T){case c:return w?V(1,0):V(31,11);case f:return w?V(1,K):V(0,K+1);case d:var J=this.$locale().weekStart||0,ae=(q<J?q+7:q)-J;return V(w?G-ae:G+(6-ae),K);case u:case p:return j(X+"Hours",0);case a:return j(X+"Minutes",1);case o:return j(X+"Seconds",2);case l:return j(X+"Milliseconds",3);default:return this.clone()}},N.endOf=function(R){return this.startOf(R,!1)},N.$set=function(R,O){var F,w=L.p(R),T="set"+(this.$u?"UTC":""),V=(F={},F[u]=T+"Date",F[p]=T+"Date",F[f]=T+"Month",F[c]=T+"FullYear",F[a]=T+"Hours",F[o]=T+"Minutes",F[l]=T+"Seconds",F[s]=T+"Milliseconds",F)[w],j=w===u?this.$D+(O-this.$W):O;if(w===f||w===c){var q=this.clone().set(p,1);q.$d[V](j),q.init(),this.$d=q.set(p,Math.min(this.$D,q.daysInMonth())).$d}else V&&this.$d[V](j);return this.init(),this},N.set=function(R,O){return this.clone().$set(R,O)},N.get=function(R){return this[L.p(R)]()},N.add=function(R,O){var F,w=this;R=Number(R);var T=L.p(O),V=function(K){var G=I(w);return L.w(G.date(G.date()+Math.round(K*R)),w)};if(T===f)return this.set(f,this.$M+R);if(T===c)return this.set(c,this.$y+R);if(T===u)return V(1);if(T===d)return V(7);var j=(F={},F[o]=i,F[a]=r,F[l]=n,F)[T]||1,q=this.$d.getTime()+R*j;return L.w(q,this)},N.subtract=function(R,O){return this.add(-1*R,O)},N.format=function(R){var O=this,F=this.$locale();if(!this.isValid())return F.invalidDate||h;var w=R||"YYYY-MM-DDTHH:mm:ssZ",T=L.z(this),V=this.$H,j=this.$m,q=this.$M,K=F.weekdays,G=F.months,X=function(U,te,Pe,Le){return U&&(U[te]||U(O,w))||Pe[te].slice(0,Le)},J=function(U){return L.s(V%12||12,U,"0")},ae=F.meridiem||function(U,te,Pe){var Le=U<12?"AM":"PM";return Pe?Le.toLowerCase():Le},oe={YY:String(this.$y).slice(-2),YYYY:this.$y,M:q+1,MM:L.s(q+1,2,"0"),MMM:X(F.monthsShort,q,G,3),MMMM:X(G,q),D:this.$D,DD:L.s(this.$D,2,"0"),d:String(this.$W),dd:X(F.weekdaysMin,this.$W,K,2),ddd:X(F.weekdaysShort,this.$W,K,3),dddd:K[this.$W],H:String(V),HH:L.s(V,2,"0"),h:J(1),hh:J(2),a:ae(V,j,!0),A:ae(V,j,!1),m:String(j),mm:L.s(j,2,"0"),s:String(this.$s),ss:L.s(this.$s,2,"0"),SSS:L.s(this.$ms,3,"0"),Z:T};return w.replace(y,function(U,te){return te||oe[U]||T.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(R,O,F){var w,T=L.p(O),V=I(R),j=(V.utcOffset()-this.utcOffset())*i,q=this-V,K=L.m(this,V);return K=(w={},w[c]=K/12,w[f]=K,w[g]=K/3,w[d]=(q-j)/6048e5,w[u]=(q-j)/864e5,w[a]=q/r,w[o]=q/i,w[l]=q/n,w)[T]||q,F?K:L.a(K)},N.daysInMonth=function(){return this.endOf(f).$D},N.$locale=function(){return P[this.$L]},N.locale=function(R,O){if(!R)return this.$L;var F=this.clone(),w=v(R,O,!0);return w&&(F.$L=w),F},N.clone=function(){return L.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},k}(),W=E.prototype;return I.prototype=W,[["$ms",s],["$s",l],["$m",o],["$H",a],["$W",u],["$M",f],["$y",c],["$D",p]].forEach(function(k){W[k[1]]=function(N){return this.$g(N,k[0],k[1])}}),I.extend=function(k,N){return k.$i||(k(N,E,I),k.$i=!0),I},I.locale=v,I.isDayjs=x,I.unix=function(k){return I(1e3*k)},I.en=P[C],I.Ls=P,I.p={},I})})(Gi);const $e=Gi.exports;var Xi={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,o={},a=function(h){return(h=+h)+(h>68?1900:2e3)},u=function(h){return function(m){this[h]=+m}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var y=m.match(/([+-]|\d\d)/g),_=60*y[1]+(+y[2]||0);return _===0?0:y[0]==="+"?-_:_}(h)}],f=function(h){var m=o[h];return m&&(m.indexOf?m:m.s.concat(m.f))},g=function(h,m){var y,_=o.meridiem;if(_){for(var $=1;$<=24;$+=1)if(h.indexOf(_($,0,m))>-1){y=$>12;break}}else y=h===(m?"pm":"PM");return y},c={A:[l,function(h){this.afternoon=g(h,!1)}],a:[l,function(h){this.afternoon=g(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[r,u("day")],Do:[l,function(h){var m=o.ordinal,y=h.match(/\d+/);if(this.day=y[0],m)for(var _=1;_<=31;_+=1)m(_).replace(/\[|\]/g,"")===h&&(this.day=_)}],M:[s,u("month")],MM:[r,u("month")],MMM:[l,function(h){var m=f("months"),y=(f("monthsShort")||m.map(function(_){return _.slice(0,3)})).indexOf(h)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[l,function(h){var m=f("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(h){this.year=a(h)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function p(h){var m,y;m=h,y=o&&o.formats;for(var _=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,L,E){var W=E&&E.toUpperCase();return L||y[E]||n[E]||y[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,N,R){return N||R.slice(1)})})).match(i),$=_.length,b=0;b<$;b+=1){var C=_[b],P=c[C],x=P&&P[0],v=P&&P[1];_[b]=v?{regex:x,parser:v}:C.replace(/^\[|\]$/g,"")}return function(I){for(var L={},E=0,W=0;E<$;E+=1){var k=_[E];if(typeof k=="string")W+=k.length;else{var N=k.regex,R=k.parser,O=I.slice(W),F=N.exec(O)[0];R.call(L,F),I=I.replace(F,"")}}return function(w){var T=w.afternoon;if(T!==void 0){var V=w.hours;T?V<12&&(w.hours+=12):V===12&&(w.hours=0),delete w.afternoon}}(L),L}}return function(h,m,y){y.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(a=h.parseTwoDigitYear);var _=m.prototype,$=_.parse;_.parse=function(b){var C=b.date,P=b.utc,x=b.args;this.$u=P;var v=x[1];if(typeof v=="string"){var I=x[2]===!0,L=x[3]===!0,E=I||L,W=x[2];L&&(W=x[2]),o=this.$locale(),!I&&W&&(o=y.Ls[W]),this.$d=function(O,F,w){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*O);var T=p(F)(O),V=T.year,j=T.month,q=T.day,K=T.hours,G=T.minutes,X=T.seconds,J=T.milliseconds,ae=T.zone,oe=new Date,U=q||(V||j?1:oe.getDate()),te=V||oe.getFullYear(),Pe=0;V&&!j||(Pe=j>0?j-1:oe.getMonth());var Le=K||0,nn=G||0,rn=X||0,sn=J||0;return ae?new Date(Date.UTC(te,Pe,U,Le,nn,rn,sn+60*ae.offset*1e3)):w?new Date(Date.UTC(te,Pe,U,Le,nn,rn,sn)):new Date(te,Pe,U,Le,nn,rn,sn)}catch{return new Date("")}}(C,v,P),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),E&&C!=this.format(v)&&(this.$d=new Date("")),o={}}else if(v instanceof Array)for(var k=v.length,N=1;N<=k;N+=1){x[1]=v[N-1];var R=y.apply(this,x);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}N===k&&(this.$d=new Date(""))}else $.call(this,b)}}})})(Xi);const As=Xi.exports;var Zi={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){return function(n,i,r){var s=i.prototype,l=s.format;r.en.ordinal=function(o){var a=["th","st","nd","rd"],u=o%100;return"["+o+(a[(u-20)%10]||a[u]||a[0])+"]"},s.format=function(o){var a=this,u=this.$locale();if(!this.isValid())return l.bind(this)(o);var d=this.$utils(),f=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return u.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return u.ordinal(a.week(),"W");case"w":case"ww":return d.s(a.week(),g==="w"?1:2,"0");case"W":case"WW":return d.s(a.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return d.s(String(a.$H===0?24:a.$H),g==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return g}});return l.bind(this)(f)}}})})(Zi);const Vs=Zi.exports;var Ji={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){return function(n,i,r){var s=i.prototype,l=function(f){return f&&(f.indexOf?f:f.s)},o=function(f,g,c,p,h){var m=f.name?f:f.$locale(),y=l(m[g]),_=l(m[c]),$=y||_.map(function(C){return C.slice(0,p)});if(!h)return $;var b=m.weekStart;return $.map(function(C,P){return $[(P+(b||0))%7]})},a=function(){return r.Ls[r.locale()]},u=function(f,g){return f.formats[g]||function(c){return c.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,h,m){return h||m.slice(1)})}(f.formats[g.toUpperCase()])},d=function(){var f=this;return{months:function(g){return g?g.format("MMMM"):o(f,"months")},monthsShort:function(g){return g?g.format("MMM"):o(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):o(f,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):o(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):o(f,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return u(f.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return d.bind(this)()},r.localeData=function(){var f=a();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(g){return u(f,g)},meridiem:f.meridiem,ordinal:f.ordinal}},r.months=function(){return o(a(),"months")},r.monthsShort=function(){return o(a(),"monthsShort","months",3)},r.weekdays=function(f){return o(a(),"weekdays",null,null,f)},r.weekdaysShort=function(f){return o(a(),"weekdaysShort","weekdays",3,f)},r.weekdaysMin=function(f){return o(a(),"weekdaysMin","weekdays",2,f)}}})})(Ji);const Fs=Ji.exports;var Qi={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){var n="week",i="year";return function(r,s,l){var o=s.prototype;o.week=function(a){if(a===void 0&&(a=null),a!==null)return this.add(7*(a-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=l(this).startOf(i).add(1,i).date(u),f=l(this).endOf(n);if(d.isBefore(f))return 1}var g=l(this).startOf(i).date(u).startOf(n).subtract(1,"millisecond"),c=this.diff(g,n,!0);return c<0?l(this).startOf("week").week():Math.ceil(c)},o.weeks=function(a){return a===void 0&&(a=null),this.week(a)}}})})(Qi);const Es=Qi.exports;var er={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){return function(n,i){i.prototype.weekYear=function(){var r=this.month(),s=this.week(),l=this.year();return s===1&&r===11?l+1:r===0&&s>=52?l-1:l}}})})(er);const Os=er.exports;var tr={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){return function(n,i,r){i.prototype.dayOfYear=function(s){var l=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return s==null?l:this.add(s-l,"day")}}})})(tr);const js=tr.exports;var nr={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){return function(n,i){i.prototype.isSameOrAfter=function(r,s){return this.isSame(r,s)||this.isAfter(r,s)}}})})(nr);const qs=nr.exports;var ir={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Ie,function(){return function(n,i){i.prototype.isSameOrBefore=function(r,s){return this.isSame(r,s)||this.isBefore(r,s)}}})})(ir);const Hs=ir.exports;$e.extend(Fs);$e.extend(Vs);$e.extend(As);$e.extend(Es);$e.extend(Os);$e.extend(js);$e.extend(qs);$e.extend(Hs);const H={format(t,e){return $e(t).format(e)},parser(t,e){return $e(t,e).toDate()},isLeapYear(t){return t%4==0&&t%100!=0||t%400==0},getWhatDay(t,e,n){const r=new Date(t+"/"+e+"/"+n).getDay();return["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"][r]},getMonthPreDay(t,e){let i=new Date(t+"/"+e+"/01").getDay();return i==0&&(i=7),i},getMonthDays(t,e){return/^0/.test(e)&&(e=e.split("")[1]),[0,31,this.isLeapYear(Number(t))?29:28,31,30,31,30,31,31,30,31,30,31][e]},getNumTwoBit(t){return t=Number(t),(t>9?"":"0")+t},date2Str:function(t,e){e=e||"-";const n=t.getFullYear(),i=this.getNumTwoBit(t.getMonth()+1),r=this.getNumTwoBit(t.getDate());return[n,i,r].join(e)},getDay(t){t=t||0;let e=new Date;const n=t*(1e3*60*60*24);return e=new Date(e.getTime()+n),this.date2Str(e)},compareDate(t,e){let n;typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t;let i;return typeof e=="string"?i=new Date(e.replace("-","/").replace("-","/")):i=e,!(n>=i)},isEqual(t,e){if(t===e)return!0;if(!t||!e)return!1;let n;typeof t=="string"?n=new Date(t).getTime():n=t.getTime();let i;return typeof e=="string"?i=new Date(e).getTime():i=e,n==i},inScope4Day(t,e,n){const i=new Date(new Date(e).setDate(e.getDate()+n)),r=t.getTime(),s=i.getTime(),l=e.getTime();return s>l?r>=l&&r<=s:r>=s&&r<=l},inScope4Month(t,e,n){const i=new Date(new Date(e).setMonth(e.getMonth()+n)),r=t.getTime(),s=i.getTime(),l=e.getTime();return s>l?r>=l&&r<=s:r>=s&&r<=l}};let Ws={getDocumentAttribute:Mn,getClientHeight:Jt,getClientWidth:vt,offsetHeight:Te,offsetLeft:An,offsetWidth:nt,offsetTop:Rn,getUUID:ji,addEventHandler:qi,removeEventHandler:Jr,renderText:jr,isEmptyString:Fe,toBoolean:Z,toNumber:ne,judge:me,moneyFormat:zr,unMoneyFormat:Yr,numberFormat:tt,unNumberFormat:He,isEqual:vn,inScope4Day:ls,inScope4Month:as,getCurrentDay:us,getCurrentMonth:os,multiply:cs,divide:Wi,add:fs,subtract:ds,getNumValue:hs,getPrettyNumValue:ps,round:ms,floor:gs,ceil:ys,modulus:_s,compareTo:Bi,debounce:es,throttle:Vn,negate:$s,setValidate:Qt.setNode,setLockTip:ie.setLock,setErrorTip:ie.setError,resetErrorTip:ie.resetError,setWarnTip:ie.setWarn,resetWarnTip:ie.resetWarn,setInfoTip:ie.setInfo,resetInfoTip:ie.resetInfo,cursorNavigation:Ne,Domain:M,getFirstDomain:We,getPageFooterAreaHeight:en,setAPI:Ui,getAPI:De,batchSetAPI:Ds,clearScopeAPI:ws,DateUtils:H};function Bs(t){return M.getDomainProperty(t,"navigateEventTriggerPolicy","none")}function si(t,e){const n=Bs(t);if(n==="inPage"&&e!=="focus"){const i=qe(t);if(!i)return!0;const r=i.$el,{activeElement:s}=document;let l=r.contains(s);if(!l){let o=t.$el;if(!r.contains(o))return!0}return l}else if(n==="ignore")return!1;return!0}function Be(t,e,...n){if(!t.pageScope){Reflect.apply(t.$emit,t,[e,...n]);return}if(e=="blur")setTimeout(()=>{!si(t,e)||Reflect.apply(t.$emit,t,[e,...n])},0);else if(e=="focus"){if(!si(t,e))return;Reflect.apply(t.$emit,t,[e,...n])}else Reflect.apply(t.$emit,t,[e,...n])}function Ke(){return"80px"}function ze(){return"right"}function Ks(){return-1}function zs(){return 32}function tn(){return 16}function B(t,e){t=t.replace(`
8
+ `,"").trim();let n=e||tn();return t.length<=n||(t=t.substring(0,n-1),t+="...."),t}let li=["group-header","input-row","button-row"];const Ys=["label","value","span","size"],Us=["label","value","span","size","require","required",...Dn];function ee(t,e,n,i=[]){for(let r in n)Us.indexOf(r)==-1&&i.indexOf(r)==-1&&(t.multiLang?e[r]=t.$langTranslator.translateAttr(t,r,n[r],t.$options.name):e[r]=n[r])}function ue(t,e,n,i=[]){for(let r in n)Ys.indexOf(r)==-1&&i.indexOf(r)==-1&&(t.multiLang?e[r]=t.$langTranslator.translateProp(t,r,n[r],t.$options.name):e[r]=n[r])}function Q(t,e,n,i=[]){if(!!n)for(let r in n)i.indexOf(r)==-1&&(e[r]=n[r])}function Ge(t,e,n,i=1,r=32){if(e<=0||i=="stretch"||i=="all"||i==-1)return-1;if(typeof i=="string"){if(!mt(i))return i;i=Number(i)}i<=0&&(i=1),typeof n=="string"&&(n=Number(n)),n=n<=0?1:n;let s=M.getFitProperty(t,"minItemWidth",Ks());typeof s!="number"&&(s=Number(s)),typeof r=="string"&&(r=Number(r));let l=n-1,o=Math.floor((e-l*r)/n);return s>o?n>1?Ge(t,e,n-1,i,r):s:o*i+(i-1)*r}function se(t,e){!(e.key||e.attrs&&e.attrs.key||e.props&&e.props.key)&&t.innerUniqueKey&&(e.key=t.innerUniqueKey)}function ai(t){let e=t.$data;return!!(e&&e[Me]===!0||(e=t.$parent&&t.$parent&&t.$parent.$data,e&&e[Me]===!0))}function oi(t){let e=t.$data;if(e&&e[Me]===!0||t.pageScope===!0)return!0;if(t.customScope===!0)return!1;if(t._provided&&t._provided.customRoot===!0){let n=t&&t.$vnode&&t.$vnode.context;if(Ei(n))return!0}return!1}function ui(t){let e=t.$data;return!!(e&&e[Ai]===!0)}function Gs(t){if(!t)return;if(ui(t))return t;if(ai(t))return;let e=t.$parent;for(let n=0;n<10;n++){if(ui(e))return e;if(ai(t))return;e=e.$parent}}const ce={inject:{multiLang:{default:!1},groupScope:{default:!1},pageScope:{default:!1},customScope:{default:!1},headerScope:{default:!1},footerScope:{default:!1},hintOpen:{default:!1}},props:{label:{type:String,required:!1,default(){return""}},span:{type:[Number,String],required:!1,default(){return 1}},errorTip:{type:String,required:!1},errorIcon:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:String,required:!1,default:"el-icon-warning"},infoTip:{type:String,required:!1},infoIcon:{type:String,required:!1,default:"el-icon-info"},hintText:{type:String,required:!1}},data(){return{isRequired:!1,innerErrorIcon:"",innerErrorTip:"",innerWarnIcon:"",innerWarnTip:"",innerInfoIcon:"",innerInfoTip:""}},methods:{componentData(t,e,n){e.directives||(e.directives=[]),e.directives.push({name:"cursor-navigate",value:{type:n,headerScope:this.headerScope,footerScope:this.footerScope}}),(this.hintOpen||this.hintText)&&e.directives.push({name:"hint",value:{text:this.hintText}})},installTip(t){let e={type:"none"};if(!z(this.errorTip)||!z(this.innerErrorTip)||!z(this.higherErrorTip)?(e.type="error",e.text=this.higherErrorTip||this.errorTip||this.innerErrorTip,e.icon=this.errorIcon||this.innerErrorIcon):!z(this.warnTip)||!z(this.innerWarnTip)?(e.type="warn",e.text=this.warnTip||this.innerWarnTip,e.icon=this.warnIcon||this.innerWarnIcon):(!z(this.infoTip)||!z(this.innerInfoTip))&&(e.type="info",e.text=this.infoTip||this.innerInfoTip,e.icon=this.infoIcon||this.innerInfoIcon),e.type!=="none"){let n=[];if(!z(e.icon)){let i={class:{}};i.class[e.icon]=!0,n.push(t("li",i,[]))}n.push(e.text),e.node=t("div",{class:{"fox-form-item__tip":!0}},n)}return e},hasLabel(){return this.$slots.default||this.label.length>0},onFocus(t){Be(this,"focus",t)},onBlur(t){Be(this,"blur",t)},onClear(t){this.$emit("clear",t)}},computed:{mStyle(){if(this.groupScope){const t=M.getFitProperty(this,"spacing",32),e=M.getParentDomainProperty(this,"column",1),n=M.getParentDomainProperty(this,"groupWidth",-1),i=Ge(this,n,e,this.span,t);return{width:i<=0?"100%":`${i}px`}}else return{}},mLabelStyle(){return this.hasLabel()?M.getFitProperty(this,"labelPosition",ze())==="top"?{}:{width:`${M.getFitProperty(this,"labelWidth",Ke())}`}:{}},mInputStyle(){return this.hasLabel()?M.getFitProperty(this,"labelPosition",ze())==="top"?{}:{"margin-left":`${M.getFitProperty(this,"labelWidth",Ke())}`}:{}},mReadonly(){return M.isReadonly(this)},mDisabled(){return M.isDisabled(this)},mSize(){return M.getFitProperty(this,"size","medium")},mLabelMaxCharCount(){let t=M.getFitProperty(this,"labelMaxCharCount",tn());return Number(t)}},beforeCreate(){},created(){this.$data&&(this.$data[Me]=this.groupScope,this.$data.innerUniqueKey=Zt())},mounted(){},beforeDestroy(){}};let rr={inject:{multiLang:{default:!1},groupScope:{default:!1},pageScope:{default:!1},customScope:{default:!1},headerScope:{default:!1},footerScope:{default:!1},hintOpen:{default:!1}},props:{label:{type:String,required:!1,default(){return""}},span:{type:[Number,String],required:!1,default(){return 1}},errorTip:{type:String,required:!1},errorIcon:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:String,required:!1,default:"el-icon-warning"},infoTip:{type:String,required:!1},infoIcon:{type:String,required:!1,default:"el-icon-info"},hintText:{type:String,required:!1},clearHotkey:{type:[String],required:!1},expandHotkey:{type:[String],required:!1},selectHotkey:{type:[String],required:!1}},data(){return{isRequired:!1,innerErrorIcon:"",innerErrorTip:"",innerWarnIcon:"",innerWarnTip:"",innerInfoIcon:"",innerInfoTip:""}},methods:{componentData(t,e,n){e.directives||(e.directives=[]),e.directives.push({name:"cursor-navigate",value:{type:n,headerScope:this.headerScope,footerScope:this.footerScope}}),(this.hintOpen||this.hintText)&&e.directives.push({name:"hint",value:{text:this.hintText}})},installTip(t){let e={type:"none"};if(!z(this.errorTip)||!z(this.innerErrorTip)||!z(this.higherErrorTip)?(e.type="error",e.text=this.higherErrorTip||this.errorTip||this.innerErrorTip,e.icon=this.errorIcon||this.innerErrorIcon):!z(this.warnTip)||!z(this.innerWarnTip)?(e.type="warn",e.text=this.warnTip||this.innerWarnTip,e.icon=this.warnIcon||this.innerWarnIcon):(!z(this.infoTip)||!z(this.innerInfoTip))&&(e.type="info",e.text=this.infoTip||this.innerInfoTip,e.icon=this.infoIcon||this.innerInfoIcon),e.type!=="none"){let n=[];if(!z(e.icon)){let i={class:{}};i.class[e.icon]=!0,n.push(t("li",i,[]))}n.push(e.text),e.node=t("div",{class:{"fox-form-item__tip":!0}},n)}return e},hasLabel(){return this.$slots.default||this.label.length>0},onFocus(t){this.$emit("focus",t)},onBlur(t){this.$emit("blur",t)},onClear(t){this.$emit("clear",t)}},computed:{mStyle(){if(this.groupScope){const t=M.getFitProperty(this,"spacing",32),e=M.getParentDomainProperty(this,"column",1),n=M.getParentDomainProperty(this,"groupWidth",-1),i=Ge(this,n,e,this.span,t);return{width:i<=0?"100%":`${i}px`}}else return{}},mLabelStyle(){return this.hasLabel()?M.getFitProperty(this,"labelPosition",ze())==="top"?{}:{width:`${M.getFitProperty(this,"labelWidth",Ke())}`}:{}},mInputStyle(){return this.hasLabel()?M.getFitProperty(this,"labelPosition",ze())==="top"?{}:{"margin-left":`${M.getFitProperty(this,"labelWidth",Ke())}`}:{}},mReadonly(){return M.isReadonly(this)},mDisabled(){return M.isDisabled(this)},mSize(){return M.getFitProperty(this,"size","medium")},mLabelMaxCharCount(){let t=M.getFitProperty(this,"labelMaxCharCount",tn());return Number(t)},mClearHotkey(){return M.getFitProperty(this,"clearHotkey","")},mSelectHotkey(){return M.getFitProperty(this,"selectHotkey","Enter")},mExpandHotkey(){return M.getFitProperty(this,"expandHotkey","")}},beforeCreate(){},created(){this.$data&&(this.$data[Me]=this.groupScope,this.$data.innerUniqueKey=Zt())},mounted(){},beforeDestroy(){}};const Xs=["label","placeholder","title","range-separator","start-placeholder","end-placeholder"];function ci(t){let e=t.indexOf("-");for(;e!=-1&&e<t.length;){let n=t.substring(0,e),i=t.substring(e+1,e+2),r=t.substring(e+2);t=n+i.toUpperCase()+r,e=t.indexOf("-")}return t}class Zs{options;constructor(e={}){this.options=e,this.options.filterKeys||(this.options.filterKeys=Xs);let n=[];for(let i of this.options.filterKeys){let r=ci(i);n.push(r)}if(this.options.filterPropKeys=n,this.options.componentFilterKeys){let i={};for(let r of this.options.componentFilterKeys){let s=[],l=this.options.componentFilterKeys[r];for(let o of l){let a=ci(o);s.push(a)}i[r]=s}this.options.componentFilterPropKeys=i}}translateAttr(e,n,i,r){if(r&&this.options.componentFilterKeys){let s=this.options.componentFilterKeys[r];if(s&&s.indexOf(n)!=-1)return e.$t(i)}return this.options.filterKeys.indexOf(n)==-1?i:e.$t(i)}translateProp(e,n,i,r){if(r&&this.options.componentFilterPropKeys){let s=this.options.componentFilterPropKeys[r];if(s&&s.indexOf(n)!=-1)return e.$t(i)}return this.options.filterPropKeys.indexOf(n)==-1?i:e.$t(i)}translate(e,n){return e.$t(n)}}function Js(t,e,n){let i,r,s=0,l=0,o;t?(o="absolute",s=n.offsetLeft||0,l=n.offsetTop||0,i=`${nt(t)-s}px`,r=`${Te(t)-l}px`):(o="fixed",i="100%",r="100%");let a=`position: ${o}; width:${i}; height:${r}`,u;n.shade?u=`
9
9
  <div class="tea-m-layer-shade" style="${a}"></div>
10
10
  <div class="tea-m-layer-main" style="${a}">
11
11
  <div class="tea-m-layer-child tea-m-layer-msg tea-m-anim-scale">
@@ -18,4 +18,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
18
18
  <div class="tea-m-layer-content">${e}</div>
19
19
  </div>
20
20
  </div>
21
- `;let d=Ue().createElement("div");return d.classList.add("tea-m-layer"),d.style.position=o,d.style.top=`${s}px`,d.style.left=`${l}px`,d.style.width=i,d.style.height=r,d.innerHTML=u,t?t.appendChild(d):doc.appendChild(d),d}class et{vm;constructor(e){this.vm=e,e.$once("hook:destroyed",()=>{console.info("layer release"),this.vm=void 0})}loading(){return this.vm.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.3)"})}alert(e,n,i){return this.vm.$alert(e,n,i)}message(e,n){return this.vm.$message(e,n)}confirm(e,n,i){return this.vm.$confirm(e,n,i)}prompt(e,n,i){return this.vm.$prompt(e,n,i)}tip(e,n,i={time:3}){n&&n.$el&&(n=n.$el);let r=Jl(n,e,i),l={close(){r.parentNode.removeChild(r)}},s=i.time||-1;return s>0&&setTimeout(()=>{l.close()},s*1e3),l}}et.install=function(t){if(!(!he||!(window&&window.fox))&&!et.installed)if(et.installed=!0,window.fox.layer){let e=new et(t);window.fox.layer.__proto__=e;for(let n in e)window.fox.layer[n]=e[n]}else window.fox.layer=new et(t)};let Ql={install(t,e){t.directive("dialogDrag",{bind(n,i,r,l){const s=n.querySelector(".el-dialog__header"),o=n.querySelector(".el-dialog");s.style.cursor="move";const a=o.currentStyle||window.getComputedStyle(o,null);s.onmousedown=u=>{const d=u.clientX-s.offsetLeft,f=u.clientY-s.offsetTop;let g,c;a.left.includes("%")?(g=+document.body.clientWidth*(+a.left.replace(/\%/g,"")/100),c=+document.body.clientHeight*(+a.top.replace(/\%/g,"")/100)):(g=+a.left.replace(/\px/g,""),c=+a.top.replace(/\px/g,"")),document.onmousemove=function(m){const p=m.clientX-d,h=m.clientY-f;o.style.left=`${p+g}px`,o.style.top=`${h+c}px`},document.onmouseup=function(m){document.onmousemove=null,document.onmouseup=null}}}})}};const es=Symbol.for("handleNode"),lr="fox_auth_scope";function fi(t,e,n){let{value:i}=e,{context:r}=n,l=me.getAuthScope(r);if(!!l){if(!me.hasAuths(l)){n.componentInstance._data[lr]=l,me.registerNode(l,n,i);return}me.hasAuth(l,i)||me[es](n,!1)}}function ts(t,e,n){let i=n.componentInstance._data[lr];return i&&me.unRegisterNode(i,n),!0}let ns={install(t){t.directive("auth",{inserted(e,n,i){fi(e,n,i)},update(e,n,i){fi(e,n,i)},unbind(e,n,i){ts(e,n,i)}})}};function Ot(t,e){let n=t.$parent;if(e._uid===n._uid)return{headerScope:!1,footerScope:!1};if(n.$data){if(n.$data[Ln]===!0)return{headerScope:!1,footerScope:!1};if(n.$data[Mi]===!0)return{headerScope:!0,footerScope:!1};if(n.$data[Ri]===!0)return{headerScope:!1,footerScope:!0}}return Ot(n,e)}let is={install(t,e={}){e.navigation&&Ne.addNagigation("*",e.navigation),t.directive("cursor-navigate",{inserted(n,i,r){let{value:l}=i,s=!1,o=!1,a;if(typeof l=="object")s=l.headerScope,o=l.footerScope,a=l.type;else if(a=l,r.componentInstance){let u=Ee(r),d=Ot(r.componentInstance,u);s=d.headerScope,o=d.footerScope}r.componentInstance?Ne.bind(n,r,a,s,o):Ne.bind(n,r.context.$vnode,a,s,o)},componentUpdated(n,i,r){let{value:l}=i,s=!1,o=!1,a;if(typeof l=="object")s=l.headerScope,o=l.footerScope,a=l.type;else if(a=l,r.componentInstance){let u=Ee(r),d=Ot(r.componentInstance,u);s=d.headerScope,o=d.footerScope}r.componentInstance?Ne.updated(n,r,a,s,o):Ne.updated(n,r.context.$vnode,a,s,o)},unbind(n,i,r){let{value:l}=i,s=!1,o=!1,a;if(typeof l=="object")s=l.headerScope,o=l.footerScope,a=l.type;else if(a=l,r.componentInstance){let u=Ee(r),d=Ot(r.componentInstance,u);s=d.headerScope,o=d.footerScope}r.componentInstance?Ne.unbind(n,r,a,s,o):Ne.unbind(n,r.context.$vnode,a,s,o)}})}};class rs{get doc(){return Ue()}constructor(e,n){this.id=e,this.options=n}getHintBox(e=!0){let n=this.doc.getElementById(this.id);if(e&&!n){let i=this.doc.createElement("div");i.setAttribute("class","fox-hint-text");let r=this.doc.createElement("div");r.setAttribute("class","fox-hint-arrow"),n=this.doc.createElement("div"),n.setAttribute("class","fox-hint"),n.id=this.id,n.appendChild(i),n.appendChild(r),this.doc.body.appendChild(n)}return n}show(e,n,i=!1){if(!he)return;if(n==null||n.length==0){this.hide(e);return}let r=this.getHintBox(),l=r.getAttributeNode("data-fox-hint");l==null?r.setAttribute("data-fox-hint",n):(l.nodeValue=n,r.setAttributeNode(l));let s=this.options.margin?this.options.margin:0,o=46,a=nt(e),{x:u,y:d}=bn(e),f=u,g=d,c=f,m=g-o-s;if(r.style.display="block",r.style.top=`${m}px`,r.querySelector(".fox-hint-text").innerHTML=n,i){let p=a/8;p<20&&(p=20),r.style.minWidth=`${a}px`;let y=xt()-(r.offsetWidth+c);y<0&&(c+=y,p-=y),r.style.left=`${c}px`,r.querySelector(".fox-hint-arrow").style.left=`${p}px`}else{r.style.width=`${a}px`;let p=a/8;p<20&&(p=20),r.style.left=`${c}px`,r.querySelector(".fox-hint-arrow").style.left=`${p}px`}}hide(){if(!he)return;let e=this.getHintBox(!1);e&&(e.style.display="none")}close(){if(!he)return;let e=this.getHintBox(!1);e&&this.doc.body.removeChild(e)}}let ls="_hint_"+ji(),ss={boxMinHeight:40,cellWidth:30},Oe=new rs(ls,ss);const Nt=Symbol("HintFocusListenerKey"),Mt=Symbol("HintBlurListenerKey");let as={install(t){t.directive("hint",{inserted(e,n,i){let r=i.componentInstance||i.context.$vnode;if(!r)return;let{value:l}=n,s=null;typeof l=="object"?s=l.text:typeof l=="string"&&(s=l);let o=null;if(!s&&(o=r.data.model&&r.data.model.expression,!o))return;let a=()=>{if(s)return s;if(!r.componentInstance)return null;let u=M.getDomainProperty(r.componentInstance,"hints");return u?u[o]:null};if(r.componentInstance){let u=e.querySelector("input")||e;const d=()=>{setTimeout(()=>{Oe.show(u,a(),!0)},150)},f=()=>{Oe.hide()};r[Nt]=d,r[Mt]=f,r.componentInstance.$on("focus",d),r.componentInstance.$on("blur",f)}else console.error("hint directives install error")},unbind(e,n,i){let r=i.componentInstance||i.context.$vnode;!r||r.componentInstance&&(Oe.close(),typeof r[Nt]=="function"&&(r.componentInstance.$off("focus",r[Nt]),r[Nt]=void 0),typeof r[Mt]=="function"&&(r.componentInstance.$off("blur",r[Mt]),r[Mt]=void 0))}})}};function sr(t){let e={key:""},n=t.toLocaleLowerCase().split("+");if(n.length==1)return e.key=n[0],e;for(let i=0;i<n.length-1;i++){let r=n[i];r==="alt"?e.altKey=!0:r==="meta"?e.metaKey=!0:r==="ctrl"?e.ctrlKey=!0:r==="shift"&&(e.shiftKey=!0)}return e.key=n[n.length-1],e}const os=["altKey","metaKey","ctrlKey","shiftKey"];function ar(t,e){if((t.key??"").toLocaleLowerCase()!==e.key)return!1;for(let i of os)if(e[i]===!0&&t[i]!==!0)return!1;return!0}function us(t,e,n){let i=sr(t);return l=>{if(ar(l,i)){try{Reflect.apply(e,n,[])}catch(s){console.error(s)}l.preventDefault()}}}class cs{key;callback;listener;constructor(e,n,i){this.key=e,this.callback=n,this.listener=i}}const zt=new WeakMap;function cn(t,e){const n=sr(e);return ar(t,n)}function fs(t,e,n,i={}){let r=us(e,n,i);t.addEventListener("keyup",r,{capture:!0});const l=new cs(e,n,r);let s=zt.get(t);return s||(s=[],zt.set(t,s)),s.push(l),!0}function fn(t,e,n){let i=-1,r=null;const l=zt.get(t);if(!l)return!1;for(let s=0;s<l.length;s++){let o=l[s];if(o.key===e&&o.callback===n){i=s,r=o;break}}return i!==-1?(l.splice(i,1),t.removeEventListener("keyup",r.listener),l.length===0&&zt.delete(t),!0):!1}function A(t,e){if(t.injections.multiLang!=!0)return t.data;let n=t.parent,i=n.$langTranslator;if(i===void 0)return t.data;let{data:r}=t,l={};for(let s in r)if(s==="attrs"){let{attrs:o}=r,a={};for(let u in o){let d=o[u];d=i.translateAttr(n,u,d,s),a[u]=d}l.attrs=a}else if(s==="props"){let{props:o}=r,a={};for(let u in o){let d=o[u];d=i.translateProp(n,u,d,s),a[u]=d}l.props=a}else l[s]=r[s];return l}function or(t,e){let{children:n}=t;if(!n||n.length>1)return n;let i=t.parent;if(t.injections.multiLang!=!0)return n;let r=i.$langTranslator;if(r===void 0)return n;let{text:l}=n[0];return l=r.translate(i,l),[l]}function ur(t,e,n,i){let r;if(n.text)r=n.text;else if(n.tag){let l=n.data||{};i&&(l.slot=i);let s=[];if(n.children)for(let o=0;o<n.children.length;o++){let a=n.children[o],u=ur(t,e,a);s.push(u)}r=t(n.tag,l,s)}return r}function cr(t,e){let{context:n}=e.$vnode,i=[];for(let r in e.$slots){if(r==="default")continue;e.$slots[r].forEach(s=>{let o=ur(t,n,s,r);i.push(o)})}return i}let On={data(){return{}}};function D(t,e,n,i,r,l,s,o){var a=typeof t=="function"?t.options:t;e&&(a.render=e,a.staticRenderFns=n,a._compiled=!0),i&&(a.functional=!0),l&&(a._scopeId="data-v-"+l);var u;if(s?(u=function(g){g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!g&&typeof __VUE_SSR_CONTEXT__<"u"&&(g=__VUE_SSR_CONTEXT__),r&&r.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(s)},a._ssrRegister=u):r&&(u=o?function(){r.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:r),u)if(a.functional){a._injectStyles=u;var d=a.render;a.render=function(c,m){return u.call(m),d(c,m)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:a}}const ds="fox-pagination",hs="el-pagination",ps={name:ds,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(hs,i,e.children)}},ms=null,gs=null;var ys=D(ps,ms,gs,!1,null,null,null,null);const _s=ys.exports,$s="fox-dialog",bs="el-dialog",vs={name:$s,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(bs,i,e.children)}},xs=null,Ss=null;var Ds=D(vs,xs,Ss,!1,null,null,null,null);const ws=Ds.exports,Ts="fox-autocomplete",Cs="el-autocomplete",Is={name:Ts,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Cs,i,e.children)}},ks=null,Ps=null;var Ls=D(Is,ks,Ps,!1,null,null,null,null);const Ns=Ls.exports,Ms="fox-dropdown",Rs="el-dropdown",As={name:Ms,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Rs,i,e.children)}},Vs=null,Fs=null;var Es=D(As,Vs,Fs,!1,null,null,null,null);const Os=Es.exports,js="fox-dropdown-menu",qs="el-dropdown-menu",Hs={name:js,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(qs,i,e.children)}},Ws=null,Bs=null;var Ks=D(Hs,Ws,Bs,!1,null,null,null,null);const zs=Ks.exports,Ys="fox-dropdown-item",Us="el-dropdown-item",Gs={name:Ys,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Us,i,e.children)}},Xs=null,Zs=null;var Js=D(Gs,Xs,Zs,!1,null,null,null,null);const Qs=Js.exports,ea="fox-menu",ta="el-menu",na={name:ea,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(ta,i,e.children)}},ia=null,ra=null;var la=D(na,ia,ra,!1,null,null,null,null);const sa=la.exports,aa="fox-submenu",oa="el-submenu",ua={name:aa,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(oa,i,e.children)}},ca=null,fa=null;var da=D(ua,ca,fa,!1,null,null,null,null);const ha=da.exports,pa="fox-menu-item",ma="el-menu-item",ga={name:pa,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(ma,i,e.children)}},ya=null,_a=null;var $a=D(ga,ya,_a,!1,null,null,null,null);const ba=$a.exports,va="fox-menu-item-group",xa="el-menu-item-group",Sa={name:va,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(xa,i,e.children)}},Da=null,wa=null;var Ta=D(Sa,Da,wa,!1,null,null,null,null);const Ca=Ta.exports;function fr(t){let{model:e}=t;if(e)return{name:e.expression,relate:t.attrs["fox-model"]}}function Yt(t,e){if(e==null)return!1;let n=M.getDomainProperty(t,"filter-models");if(!n||n.length==0)return!1;for(let i=0;i<n.length;i++)if(n[i].indexOf(e)!=-1)return!0;return!1}function it(t,e){let n=t.parent;if(!n.pageScope)return;let i=fr(e);if(i&&(Yt(n,i.relate)||Yt(n,i.name)))return;let r=!1;Reflect.has(e.attrs,"readonly")&&(r=Z(e.attrs.readonly)),e.attrs||(e.attrs={});let l=M.getDomainProperty(n,"readonly");l=Z(l),r||l?e.attrs.readonly=!0:delete e.attrs.readonly}function ke(t,e){let n=t.parent;if(!n.pageScope)return;let i=fr(e);if(i&&(Yt(n,i.relate)||Yt(n,i.name)))return;let r=!1;Reflect.has(e.attrs,"disabled")&&(r=Z(e.attrs.disabled)),e.attrs||(e.attrs={});let l=M.getDomainProperty(n,"disabled");l=Z(l),r||l?e.attrs.disabled=!0:delete e.attrs.disabled}const Ia="fox-input",ka="el-input",Pa={name:Ia,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),it(e,i),n(ka,i,e.children)}},La=null,Na=null;var Ma=D(Pa,La,Na,!1,null,null,null,null);const Ra=Ma.exports,Aa="fox-input-number",Va="el-input-number",Fa={name:Aa,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Va,i,e.children)}},Ea=null,Oa=null;var ja=D(Fa,Ea,Oa,!1,null,null,null,null);const qa=ja.exports,Ha="fox-radio",Wa="el-radio",Ba={name:Ha,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),n(Wa,i,e.children)}},Ka=null,za=null;var Ya=D(Ba,Ka,za,!1,null,null,null,null);const Ua=Ya.exports,Ga="fox-radio-group",Xa="el-radio-group",Za={name:Ga,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Xa,i,e.children)}},Ja=null,Qa=null;var eo=D(Za,Ja,Qa,!1,null,null,null,null);const to=eo.exports,no="fox-radio-button",io="el-radio-button",ro={name:no,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),it(e,i),n(io,i,e.children)}},lo=null,so=null;var ao=D(ro,lo,so,!1,null,null,null,null);const oo=ao.exports,uo="fox-checkbox",co="el-checkbox",fo={name:uo,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),n(co,i,e.children)}},ho=null,po=null;var mo=D(fo,ho,po,!1,null,null,null,null);const go=mo.exports,yo="fox-checkbox-button",_o="el-checkbox-button",$o={name:yo,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),n(_o,i,e.children)}},bo=null,vo=null;var xo=D($o,bo,vo,!1,null,null,null,null);const So=xo.exports,Do="fox-checkbox-group",wo="el-checkbox-group",To={name:Do,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(wo,i,e.children)}},Co=null,Io=null;var ko=D(To,Co,Io,!1,null,null,null,null);const Po=ko.exports,Lo="fox-switch",No="el-switch",Mo={name:Lo,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(No,i,e.children)}},Ro=null,Ao=null;var Vo=D(Mo,Ro,Ao,!1,null,null,null,null);const Fo=Vo.exports,Eo="fox-select",Oo="el-select",jo={name:Eo,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),it(e,i),n(Oo,i,e.children)}},qo=null,Ho=null;var Wo=D(jo,qo,Ho,!1,null,null,null,null);const Bo=Wo.exports,Ko="fox-option",zo="el-option",Yo={name:Ko,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(zo,i,e.children)}},Uo=null,Go=null;var Xo=D(Yo,Uo,Go,!1,null,null,null,null);const Zo=Xo.exports,Jo="fox-option-group",Qo="el-option-group",eu={name:Jo,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Qo,i,e.children)}},tu=null,nu=null;var iu=D(eu,tu,nu,!1,null,null,null,null);const ru=iu.exports,lu="fox-button-group",su="el-button-group",au={name:lu,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(su,i,e.children)}},ou=null,uu=null;var cu=D(au,ou,uu,!1,null,null,null,null);const fu=cu.exports,du="fox-table",hu="el-table",pu={name:du,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(hu,i,e.children)}},mu=null,gu=null;var yu=D(pu,mu,gu,!1,null,null,null,null);const _u=yu.exports,$u="fox-table-column",bu="el-table-column",vu={name:$u,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(bu,i,e.children)}},xu=null,Su=null;var Du=D(vu,xu,Su,!1,null,null,null,null);const wu=Du.exports;function Tu(t){return t===window}const dr=t=>{const e=S.unref(t);if(Tu(e)){const n=e.innerWidth,i=e.innerHeight;return{top:0,left:0,right:n,bottom:i,width:n,height:i}}return e&&e.getBoundingClientRect?e.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};let st=0;const di="fox-overflow-hidden",Cu=t=>[()=>{t()&&(!st&&document.body.classList.add(di),st++)},()=>{t()&&st&&(st--,!st&&document.body.classList.remove(di))}],hr={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},overlayClass:{type:String,default:""},lockScroll:{type:Boolean,default:!1},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function be(t){const e="fox-"+t;return{componentName:e,scope:t.replace("-",""),create(n){return n.baseName=t,n.name=e,n.install=i=>{i.component(n.name,n)},S.defineComponent(n)}}}const{componentName:Iu,create:ku}=be("overlay"),Pu=ku({props:hr,emits:["click","update:visible"],setup(t,{emit:e}){const n=S.computed(()=>({[Iu]:!0,[t.overlayClass]:!0}));S.watch(()=>t.visible,a=>{a?i():r()});const i=()=>{t.lockScroll&&t.visible&&document.body.classList.add("fox-overflow-hidden")},r=()=>{document.body.classList.remove("fox-overflow-hidden")};S.onDeactivated(r),S.onBeforeUnmount(r),S.onMounted(i),S.onActivated(i);const l=S.computed(()=>({animationDuration:`${t.duration}s`,zIndex:t.zIndex,...t.overlayStyle}));return{classes:n,style:l,touchmove:a=>{t.lockScroll&&a.preventDefault()},onClick:a=>{e("click",a),t.closeOnClickOverlay&&e("update:visible",!1)}}}});var Lu=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("Transition",{attrs:{name:"overlay-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:e.classes,style:e.style,on:{touchmove:function(i){return i.stopPropagation(),e.touchmove.apply(null,arguments)},click:e.onClick}},[e._t("default")],2)])},Nu=[],Mu=D(Pu,Lu,Nu,!1,null,null,null,null);const Cn=Mu.exports,Re=t=>t instanceof Date,Ut=t=>t!==null&&typeof t=="object",Ru=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;class In{static seed=new Date().getTime();static get(){let e=++In.seed;return e>=Number.MAX_VALUE&&(In.seed=0),e}}Ru&&Promise.resolve();function de(t){return typeof t=="number"?t:Number(t)}const Au={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function hi(t){let n=Object.prototype.toString.call(t);return t==null?String(t):Au[n]||"object"}function kn(t,e){if(t==e)return!0;if(t===void 0||e===void 0)return!1;let n=hi(t),i=hi(e);if(n!==i)return!1;if(n==="object"){let r=Object.keys(t),l=Object.keys(e);if(r.length!==l.length)return!1;for(let s=0;s<r.length;s++){let o=r[s],a=t[o],u=e[o];if(!kn(a,u))return!1}return!0}else if(n==="array"){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let l=t[r],s=e[r];if(!kn(l,s))return!1}return!0}return!1}const pr=typeof window<"u",Vu=pr&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function mr(t){return t==null||t==null?0:typeof t=="string"?t.length:`${t}`.length}function jn(t,...e){const n={};return e.forEach(i=>{for(const r in i)n[r]=t[r]}),n}function rt(t,...e){const n=[];e.forEach(r=>{Reflect.apply([].push,n,Reflect.ownKeys(r))});const i={};for(const r in t)n.includes(r)||(i[r]=t[r]);return i}const dt=t=>t?`${Fu(t)}px`:"";function Fu(t,e=-1){if(typeof t=="number")return t<1?t*e:t;if(t=t.trim().toLocaleLowerCase(),t.length===0)return 0;let n=t.indexOf("px");if(n!==-1)return Number(t.substring(0,n));if(n=t.indexOf("rem"),n!==-1){let r=Number(t.substring(0,n)),l=1;if(pr){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),o=s.indexOf("px");o>0&&(l=Number(s.substring(0,o)))}return r*=l,r}if(n=t.indexOf("%"),n!==-1)return Number(t.substring(0,n))*e;const i=Number(t);return isNaN(i)?0:i}const{componentName:pi,create:Eu}=be("ext-icon"),Ou=Eu({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(t,{emit:e,slots:n}){const i=l=>{e("click",l)},r=S.computed(()=>t.name?t.name.indexOf("/")!==-1:!1);return()=>{const l=r.value;return S.h(l?"img":t.tag,{class:l?`${pi}__img`:`${t.fontClassName} ${pi} ${t.classPrefix}-${t.name}`,style:{color:t.color,fontSize:dt(t.size),width:dt(t.size),height:dt(t.size)},on:{click:i},attrs:{src:l?t.name:""}},n.default?.())}}}),ju=null,qu=null;var Hu=D(Ou,ju,qu,!1,null,null,null,null);const _t=Hu.exports,qn={...hr,position:{type:String,default:"center"},transition:String,popStyle:{type:Object},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},closeIcon:{type:String,default:"close"},destroyOnClose:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1}},{componentName:Wu,create:Bu}=be("popup");let mi=2e3;const Ku=Bu({components:{[Cn.name]:Cn,[_t.name]:_t},props:{...qn},emits:["click","click-close-icon","open","close","opened","closed","update:visible","click-overlay"],setup(t,{emit:e}){const n=S.ref(),i=S.reactive({zIndex:t.zIndex,showSlot:!0,transitionName:`popup-fade-${t.position}`,overLayCount:1,keepAlive:!1,closed:t.closeable}),[r,l]=Cu(()=>t.lockScroll),s=S.computed(()=>({[Wu]:!0,round:t.round,[`popup-${t.position}`]:!0,[`popup-${t.position}--safebottom`]:t.position==="bottom"&&t.safeAreaInsetBottom,[t.popClass]:!0})),o=S.computed(()=>({zIndex:i.zIndex,animationDuration:t.duration?`${t.duration}s`:"initial",...t.popStyle})),a=()=>{t.zIndex!=2e3&&(mi=Number(t.zIndex)),e("update:visible",!0),r(),i.zIndex=++mi,t.destroyOnClose&&(i.showSlot=!0),e("open")},u=()=>{l(),e("update:visible",!1),t.destroyOnClose&&setTimeout(()=>{i.showSlot=!1,e("close")},+t.duration*1e3)},d=p=>{e("click",p)},f=p=>{e("click-close-icon",p),u()},g=p=>{t.closeOnClickOverlay&&(e("click-overlay",p),u())},c=p=>{e("opened",p)},m=p=>{e("closed",p)};return S.onMounted(()=>{t.transition?i.transitionName=t.transition:i.transitionName=`popup-slide-${t.position}`,t.visible&&a()}),S.onBeforeUnmount(()=>{t.visible&&u()}),S.onBeforeMount(()=>{t.visible&&l()}),S.onActivated(()=>{i.keepAlive&&(e("update:visible",!0),i.keepAlive=!1)}),S.onDeactivated(()=>{t.visible&&(u(),i.keepAlive=!0)}),S.watch(()=>t.visible,p=>{p?a():u()}),S.watch(()=>t.position,p=>{p==="center"?i.transitionName="popup-fade":i.transitionName=`popup-slide-${p}`}),S.watch(()=>t.closeable,p=>{i.closed=p}),{...S.toRefs(i),popStyle:o,classes:s,onClick:d,onClickCloseIcon:f,onClickOverlay:g,onOpened:c,onClosed:m,popupRef:n}}});var zu=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",[e.overlay?n("fox-overlay",{class:e.overlayClass,style:e.overlayStyle,attrs:{visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration},on:{click:e.onClickOverlay}}):e._e(),n("transition",{attrs:{name:e.transitionName},on:{"after-enter":e.onOpened,"after-leave":e.onClosed}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:e.classes,style:e.popStyle,on:{click:e.onClick}},[e.showSlot?e._t("default"):e._e(),e.closed?n("div",{staticClass:"foxui-popup__close-icon",class:"foxui-popup__close-icon--"+e.closeIconPosition,on:{click:e.onClickCloseIcon}},[n("fox-ext-icon",{attrs:{name:e.closeIcon,size:"12px"}})],1):e._e()],2)])],1)},Yu=[],Uu=D(Ku,zu,Yu,!1,null,null,null,null);const Gt=Uu.exports,gi=10;function Gu(t,e){return t>e&&t>gi?"horizontal":e>t&&e>gi?"vertical":""}function Xu(){const t=S.ref(0),e=S.ref(0),n=S.ref(0),i=S.ref(0),r=S.ref(0),l=S.ref(0),s=S.ref(0),o=S.ref(0),a=S.ref(0),u=S.ref(0),d=S.ref(""),f=()=>d.value==="vertical",g=()=>d.value==="horizontal",c=()=>{s.value=0,o.value=0,a.value=0,u.value=0,d.value="",n.value=0};return{move:h=>{const y=h.touches[0];s.value=y.clientX-t.value,o.value=y.clientY-e.value,r.value=y.clientX,l.value=y.clientY,a.value=Math.abs(s.value),u.value=Math.abs(o.value),i.value=Date.now()-n.value,d.value||(d.value=Gu(a.value,u.value))},start:h=>{c(),t.value=h.touches[0].clientX,e.value=h.touches[0].clientY,n.value=Date.now()},reset:c,startX:t,startY:e,startTime:n,duration:i,moveX:r,moveY:l,deltaX:s,deltaY:o,offsetX:a,offsetY:u,direction:d,isVertical:f,isHorizontal:g}}const gr={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},yr={...qn,...gr,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default(){return[]}},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:"\u53D6\u6D88"},clearText:{type:String,default:"\u6E05\u9664"},confirmText:{type:String,default:"\u786E\u8BA4"}};function Hn(t){return t.$route&&t.$route.params&&t.$route.params.microAppName}function _r(t,e){const n=Hn(t);return De(e,n)}let $r=36;function Zu(){return $r}function Ju(t){$r=t}function _e(t,e){return typeof t.textKey=="string"&&t.textKey.length>0?e[t.textKey]:e.text}function Ye(t,e){return typeof t.valueKey=="string"&&t.valueKey.length>0?e[t.valueKey]:e.value}function Pn(t,e){return typeof t.childrenKey=="string"&&t.childrenKey.length>0?e[t.childrenKey]:e.children??null}function Qu(t,e,n){typeof t.childrenKey=="string"&&t.childrenKey.length>0&&(e[t.childrenKey]=n),e.children=n}function yi(t,e){return typeof t.columnOptions=="function"?t.columnOptions(e):t.columnOptions}class ec{proxy;constructor(e){this.proxy=e}async load(e,n,i){if(Array.isArray(n))return n;if(typeof n=="function")return await n(i);const r=_r(this.proxy,e);return r===null?(console.error(`${e} component not found api function`),[]):(Ut(i)&&S.isReactive(i)&&(i=S.toRaw(i)),await r(n,i))}}function tc(){const t=S.getCurrentInstance();return new ec(t.proxy)}function _i(t,e,n){const i=_e(t,e),r=_e(t,n);if(i!==r)return!1;const l=Ye(t,e),s=Ye(t,n);return l===s}function nc(t,e,n,i){if(n.length==0)return[];Array.isArray(e)||(e=[e]);const r=[],l=t.valueType??"value";if(i==="singleColumn"||i==="multipleColumn")for(let s=0;s<e.length&&s<n.length;s++){const o=e[s];let u=n[s].findIndex(d=>{if(l==="text")return _e(t,d)===o;if(l==="value"){let f=Ye(t,d);return f==null&&(f=_e(t,d)),f===o}else if(l==="item")return _i(t,d,o);return!1});if(u==-1)break;r.push(u)}else{let s=n[0];for(let o=0;o<e.length;o++){const a=e[o];let u=s.findIndex(f=>{if(l==="text")return _e(t,f)===a;if(l==="value"){let g=Ye(t,f);return g==null&&(g=_e(t,f)),g===a}else if(l==="item")return _i(t,f,a);return!1});if(u==-1)break;r.push(u);const d=Pn(t,s[u]);if(!Array.isArray(d))break;s=d}}return r}function $i(t,e,n,i){if(n.length==0)return null;const r={texts:[],values:[]},l=t.valueType??"value";if(i==="singleColumn"||i==="multipleColumn")for(let s=0;s<e.length&&s<n.length;s++){const o=n[s];let a=e[s];a<0&&a>=o.length&&(a=0);const u=o[a],d=_e(t,u);if(r.texts.push(d),l==="text")r.values.push(d);else if(l==="value"){let f=Ye(t,u);f==null&&(f=d),r.values.push(f)}else r.values.push(u)}else{let s=n[0];for(let o=0;o<e.length;o++){let a=e[o];a<0&&a>=s.length&&(a=0);const u=s[a],d=_e(t,u);if(r.texts.push(d),l==="text")r.values.push(d);else if(l==="value"){let f=Ye(t,u);f==null&&(f=d),r.values.push(f)}else{const f=Object.assign({},u);f.children=null,r.values.push(f)}if(!Array.isArray(u.children))break;s=u.children}}return r}function bi(t){return{text:t,value:t}}const ic=15,rc=300,lc=200,{create:sc}=be("picker-column");function ac(t){t.stopPropagation()}function oc(t,e){(typeof t.cancelable!="boolean"||t.cancelable)&&t.preventDefault(),e&&ac(t)}const uc=sc({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:36},...gr},model:{prop:"modelValue",event:"update:modelValue"},emits:["click","change","update:modelValue"],setup(t,{emit:e}){const n=S.computed(()=>({"fox-picker__list":!0})),i=S.computed(()=>({height:`${de(t.visibleItemCount)*+t.itemHeight}px`})),r=S.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!t.threeDimensional,"fox-picker__content-roller":t.threeDimensional})),l=S.computed(()=>t.itemHeight*Math.floor(+t.visibleItemCount/2)),s=v=>v>=f.currIndex+8||v<=f.currIndex-8,o=S.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${l.value}px`})),a=v=>`transform: rotate3d(1, 0, 0, ${-f.rotation*v}deg) translate3d(0px, 0px, 104px)`,u=S.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+l.value}px, 0)`})),d=S.ref(null),f=S.reactive({currIndex:t.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=S.toRef(t,"source"),c=v=>_e(t,v),m=v=>Ye(t,v),p=Xu(),h=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},y=(v,C=!1,I=!1)=>{if(f.currIndex=v,C){const E=()=>{f.moving=!1,e("update:modelValue",v),e("change",v)};I?f.transitionEndTrigger=E:E()}},$=(v,C,I)=>{let E=v+f.startDistance;if(C==="end"){const H=-(g.value.length-1)*t.itemHeight;E<H&&(E=H,(!I||I<=0)&&(I=t.swipeDuration)),E>0&&(E=0,(!I||I<=0)&&(I=t.swipeDuration));let N=Math.abs(Math.round(-E/t.itemHeight));const k=-N*t.itemHeight,R=`${(N+1)*f.rotation}deg`,O=I?I>0:!1;y(N,!0,O),_(k,C,I,R)}else{let H=(-E/t.itemHeight+1)*f.rotation;const N=(g.value.length+1)*f.rotation,k=0;if(H=Math.min(Math.max(H,k),N),t.threeDimensional&&(H<k||H>N))return;_(E,null,void 0,`${H}deg`)}},_=(v=0,C,I=lc,E)=>{C==="end"?f.scrollTime=I:f.scrollTime=0,f.deg=E,f.scrollDistance=v},b=(v,C)=>(v=Math.abs(v/C)/.003*(v<0?-1:1),v),P=v=>{if(!t.readonly){if(f.moving){const C=d.value,{transform:I}=window.getComputedStyle(C);f.scrollDistance=+I.slice(7,I.length-1).split(", ")[5]}f.startDistance=f.scrollDistance,p.start(v),f.transitionEndTrigger=null}},L=v=>{t.readonly||(f.moving=!0,p.move(v),p.isVertical()&&(f.moving=!0,oc(v,!0)),$(p.deltaY.value,"",0))},x=()=>{if(t.readonly)return;const v=p.deltaY.value,C=p.duration.value;if(C<rc&&Math.abs(v)>ic){const E=b(v,C);$(E,"end",t.swipeDuration)}else $(v,"end",0)};return S.watch(()=>t.modelValue,v=>{if(f.currIndex!==v){f.currIndex=v;const C=-v*t.itemHeight;$(C)}}),S.onMounted(()=>{const v=-t.modelValue*t.itemHeight;$(v)}),{classes:n,styles:i,contentClasses:r,source:g,itemText:c,itemValue:m,...S.toRefs(f),roller:d,getItemText:_e,onTouchStart:P,onTouchMove:L,onTouchEnd:x,isHidden:s,setRollerStyle:a,touchRollerStyle:o,touchTileStyle:u,stopMomentum:h}}});var cc=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{class:e.classes,style:e.styles,on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd,touchcancel:e.onTouchEnd,transitionend:e.stopMomentum}},[n("div",{ref:"roller",class:e.contentClasses,style:e.threeDimensional?e.touchRollerStyle:e.touchTileStyle},[e._l(e.source,function(i,r){return[e.threeDimensional?[n("div",{key:`${e.columnIndex}_${r}`,staticClass:"fox-picker__item",class:{"fox-picker__item-hidden":e.isHidden(r+1)},style:e.setRollerStyle(r+1)},[e._v(" "+e._s(e.itemText(i))+" ")])]:[n("div",{key:`${e.columnIndex}_${r}`,staticClass:"fox-picker__item-tile"},[e._v(e._s(e.itemText(i)))])]]})],2)])},fc=[],dc=D(uc,cc,fc,!1,null,null,null,null);const vi=dc.exports,{create:hc,componentName:pc}=be("picker"),mc=hc({components:{[vi.name]:vi,[Gt.name]:Gt},props:{...yr},model:{prop:"modelValue",event:"update:modelValue"},emits:["close","change","confirm","clear","update:visible","update:text","update:modelValue"],setup(t,{emit:e}){const n=S.ref(null),i=S.ref(Zu());S.watch(()=>t.visible,v=>{v&&i.value<=0&&setTimeout(()=>{if(n.value){const C=dr(n.value);i.value=C.height,Ju(i.value)}},50)});const r=S.computed(()=>({[pc]:!0})),l=tc(),s=S.ref("singleColumn");let o=S.ref([]);S.watchEffect(async()=>{if(t.source){let v=await l.load("picker",t.source,t.params);if(v.length>0){let C=v[0];if(Array.isArray(C)){if(typeof C[0]=="string"){let I=v,E=[];I.forEach(H=>{let N=H.map(k=>bi(k));E.push(N)}),o.value=E}else o.value=v;s.value="multipleColumn"}else if(typeof C=="string"){let I=v,E=[],H=I.map(N=>bi(N));E.push(H),o.value=E,s.value="singleColumn"}else{const I=Pn(t,C);Array.isArray(I)?(s.value="cascade",o.value=[v]):(s.value="singleColumn",o.value=[v])}}}});const a=S.ref([]),u=S.ref(t.modelValue),d=S.ref([]);S.watch([()=>t.modelValue,()=>o.value],([v,C])=>{let I=nc(t,v,C,s.value);if(!kn(I,d.value)){d.value=I;let E=$i(t,I,C,s.value);E&&(a.value=E.texts,e("update:text",a.value))}});const f=S.ref(t.visible);S.watch(()=>t.visible,v=>{f.value=v});const g=v=>{let C=yi(t,v);return Ut(C)?C.getDefaultIndex??0:0},c=v=>{if(t.readonly===!0)return!0;let C=yi(t,v);return Ut(C)?C.readonly??!1:!1},m=(v,C,I=!1)=>{let E=[...d.value];E[v]=C;for(let N=0;N<v;N++)E[N]==null&&(E[N]=g(N));if(s.value==="cascade")for(let N=v+1;N<h.value.length;N++){let k=g(N);N<E.length?E[N]=k:E.push(k)}else for(let N=E.length;N<h.value.length;N++){let k=g(N);E.push(k)}d.value=E;let H=$i(t,E,o.value,s.value);if(H&&(a.value=H.texts,u.value=H.values),I)if(s.value==="singleColumn"){let N=H&&H.values.length>0?H.values[0]:"";e("change",N)}else e("change",H?.values)},p=v=>v<d.value.length?d.value[v]:g(v),h=S.computed(()=>{if(o.value.length==0)return[];if(s.value=="singleColumn"||s.value=="multipleColumn")return o.value;let v=[],C=0,I=o.value[0],E=0;for(;;){let H=I.map(R=>{let O=Object.assign({},R);return Qu(t,O,null),O});v.push(H),C>=d.value.length?E=0:E=d.value[C],(E<0||E>=I.length)&&(E=0);let N=I[E];const k=Pn(t,N);if(!Array.isArray(k))break;I=k,C++}return v}),y=S.computed(()=>de(+t.visibleItemCount-1)/2*i.value),$=S.computed(()=>de(t.visibleItemCount)*i.value),_=S.computed(()=>({height:`${$.value+56}px`}));return{pickerLineRef:n,classes:r,popupStyles:_,columns:h,dataType:s,show:f,itemHeight:i,top:y,height:$,isReadonly:c,getIndex:p,change:(v,C)=>{m(v,C,!0)},close:()=>{e("close"),e("update:visible",!1)},confirm:()=>{if(t.readonly===!0){e("update:visible",!1);return}let v=o.value.length-1;for(;v>=0&&!(d.value[v]===null||d.value[v]===void 0);v--);if(v>=0&&m(v,0,!1),s.value==="singleColumn"){let C=u.value.length>0?u.value[0]:"";t.readonly||(e("update:modelValue",C),e("update:text",a.value)),e("confirm",C)}else t.readonly||(e("update:modelValue",u.value),e("update:text",a.value)),e("confirm",u.value);e("update:visible",!1)},clear:()=>{if(t.readonly===!0){e("update:visible",!1);return}s.value==="singleColumn"?(e("update:modelValue",""),e("change","")):(e("update:modelValue",[]),e("change",[])),e("update:visible",!1),e("clear")}}}});var gc=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{class:e.classes},[n("fox-popup",{attrs:{position:"bottom","pop-style":e.popStyle,"pop-class":e.popClass,visible:e.visible,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,round:!0},on:{close:e.close}},[n("div",{staticClass:"fox-picker__bar"},[n("div",{staticClass:"fox-picker__title"},[e._v(" "+e._s(e.title))]),n("div",{staticClass:"fox-picker__bar__action"},[n("div",{staticClass:"fox-picker__left fox-picker__cancel fox-picker__button",on:{click:e.close}},[e._v(e._s(e.cancelText))]),n("div",{staticClass:"fox-picker__right fox-picker__confirm fox-picker__button",on:{click:e.confirm}},[e._v(e._s(e.confirmText))]),e.clearText?n("div",{staticClass:"fox-picker__right fox-picker__clear fox-picker__button",on:{click:e.clear}},[e._v(e._s(e.clearText))]):e._e()])]),e._t("top"),n("div",{staticClass:"fox-picker__column"},[n("div",{staticClass:"fox-picker__mask",style:{backgroundSize:`100% ${e.top}px`}}),n("div",{ref:"pickerLineRef",staticClass:"fox-picker__hairline",style:{top:` ${e.top}px`}}),e._l(e.columns,function(i,r){return n("div",{key:r,staticClass:"fox-picker__columnitem"},[n("fox-picker-column",{attrs:{source:i,readonly:e.isReadonly(r),"column-index":r,modelValue:e.getIndex(r),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},on:{"update:modelValue":function(l){return e.change(r,l)}}})],1)})],2),e._t("default")],2)],1)},yc=[],_c=D(mc,gc,yc,!1,null,null,null,null);const Xt=_c.exports,xi=new Date().getFullYear(),br={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",["month-day"]:"MM-DD",datehour:"YYYY-MM-DD HH"},Si=(t,e,n)=>{let i;if(Re(e)?i=e:typeof e=="string"&&mr(e)>0?i=W.parser(e,n):i=new Date,i.toString()==="Invalid Date")return null;let r=Math.max(i.getTime(),t.minDate.getTime());return r=Math.min(r,t.maxDate.getTime()),new Date(r)},vr=(t,e,n)=>{Re(e)||(e=t.minDate);let i=Math.max(e.getTime(),t.minDate.getTime());return i=Math.min(i,t.maxDate.getTime()),W.format(new Date(i),n)};let xr={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(xi-10,0,1),validator:Re},maxDate:{type:Date,default:()=>new Date(xi+10,11,31),validator:Re},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},isWrapTeleport:{type:Boolean,default:!0}};const{create:$c}=be("date-picker"),bc=$c({components:{[Xt.name]:Xt},props:{...xr},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],model:{prop:"modelValue",event:"update:modelValue"},setup(t,{emit:e}){const n={year:"\u5E74",month:"\u6708",day:"\u65E5",hour:"\u65F6",minute:"\u5206",seconds:"\u79D2"},i=S.ref(!1);S.watch(()=>t.visible,h=>{i.value=h});function r(h,y){return new Date(h,y,0).getDate()}const l=(h,y)=>{const $=t[`${h}Date`],_=$.getFullYear();let b=1,P=1,L=0,x=0;h==="max"&&(b=12,P=r(y.getFullYear(),y.getMonth()+1),L=23,x=59);const v=x;return y.getFullYear()===_&&(b=$.getMonth()+1,y.getMonth()+1===b&&(P=$.getDate(),y.getDate()===P&&(L=$.getHours(),y.getHours()===L&&(x=$.getMinutes())))),{[`${h}Year`]:_,[`${h}Month`]:b,[`${h}Date`]:P,[`${h}Hour`]:L,[`${h}Minute`]:x,[`${h}Seconds`]:v}},s=S.computed(()=>{if(!f.value)return[];const{maxYear:h,maxDate:y,maxMonth:$,maxHour:_,maxMinute:b,maxSeconds:P}=l("max",f.value),{minYear:L,minDate:x,minMonth:v,minHour:C,minMinute:I,minSeconds:E}=l("min",f.value);let H=[{type:"year",range:[L,h]},{type:"month",range:[v,$]},{type:"day",range:[x,y]},{type:"hour",range:[C,_]},{type:"minute",range:[I,b]},{type:"seconds",range:[E,P]}];switch(t.type){case"date":H=H.slice(0,3);break;case"datetime":H=H.slice(0,5);break;case"time":H=H.slice(3,6);break;case"month-day":H=H.slice(1,3);break;case"datehour":H=H.slice(0,4);break}return H}),o=(h,y,$)=>{if(!(y>h))return null;const _=[];for(;h<=y;)t.isShowChinese?_.push({text:h+n[$],value:h}):_.push({text:`${h}`,value:h}),$==="minute"?h+=t.minuteStep:h++;return _},a=S.computed(()=>{let h=[];return s.value.forEach(y=>{let $=o(y.range[0],y.range[1],y.type);$&&h.push($)}),h}),u=(h,y)=>h==="year"?y.getFullYear():h==="month"?y.getMonth()+1:h==="day"?y.getDate():h==="hour"?y.getHours():h==="minute"?y.getMinutes():h==="seconds"?y.getSeconds():0,d=S.ref(),f=S.ref();S.watchEffect(()=>{let h,y=t.modelValue;if(typeof y=="string"?y.length==0?h=new Date:t.valueFormat?h=Si(t,t.modelValue,t.valueFormat):h=Si(t,y,br[t.type]):Re(y)?h=y:h=new Date,h!=null&&(!f.value||h.getTime()!==f.value.getTime())){f.value=h;let $=[];s.value.forEach(_=>{let b=u(_.type,h);$.push(b)}),d.value=$}});const g=h=>{if(t.type==="date"){let y=h;f.value=new Date(y[0],y[1]-1,Math.min(y[2],r(y[0],y[1])))}else if(t.type==="datetime"){let y=h;f.value=new Date(y[0],y[1]-1,Math.min(y[2],r(y[0],y[1])),y[3],y[4])}else if(t.type==="datehour"){let y=h;f.value=new Date(y[0],y[1]-1,Math.min(y[2],r(y[0],y[1])),y[3])}else if(t.type==="time"){let y=h,$=f.value??new Date,_=new Date($.getFullYear(),$.getMonth(),$.getDate(),y[0],y[1],y[2]);f.value=_}else if(t.type==="month-day"){let y=h,$=f.value??new Date,_=new Date($.getFullYear(),y[0]-1,y[1]);f.value=_}d.value=h};return{columns:a,dateIndexs:d,show:i,onClose:()=>{i.value=!1,e("update:visible",!1),e("update:close",!1)},onConfirm:h=>{console.info("----------->onConfirm ",h,f.value),g(h),i.value=!1;let y=f.value??new Date;if(t.valueFormat){let $=vr(t,y,t.valueFormat);e("update:modelValue",$)}else e("update:modelValue",y);e("update:visible",!1),e("confirm",h)},onClear:()=>{i.value=!1,e("update:modelValue",""),e("update:visible",!1),e("clear")}}}});var vc=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("fox-picker",{attrs:{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,isWrapTeleport:e.isWrapTeleport},on:{confirm:e.onConfirm,close:e.onClose,clear:e.onClear},scopedSlots:e._u([{key:"top",fn:function(){return[e._t("top")]},proxy:!0},{key:"default",fn:function(){return[e._t("default")]},proxy:!0}],null,!0)})},xc=[],Sc=D(bc,vc,xc,!1,null,null,null,null);const Sr=Sc.exports,Dc="fox-time-select",wc="el-time-select",Tc={name:Dc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),it(e,i),n(wc,i,e.children)}},Cc=null,Ic=null;var kc=D(Tc,Cc,Ic,!1,null,null,null,null);const Pc=kc.exports,Lc="fox-time-picker",Nc="el-time-picker",Mc={name:Lc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),it(e,i),n(Nc,i,e.children)}},Rc=null,Ac=null;var Vc=D(Mc,Rc,Ac,!1,null,null,null,null);const Fc=Vc.exports,Ec="fox-popover",Oc="el-popover",jc={name:Ec,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Oc,i,e.children)}},qc=null,Hc=null;var Wc=D(jc,qc,Hc,!1,null,null,null,null);const Bc=Wc.exports,Kc="fox-tooltip",zc="el-tooltip",Yc={name:Kc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(zc,i,e.children)}},Uc=null,Gc=null;var Xc=D(Yc,Uc,Gc,!1,null,null,null,null);const Zc=Xc.exports,Jc="fox-message-box",Qc="el-message-box",ef={name:Jc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Qc,i,e.children)}},tf=null,nf=null;var rf=D(ef,tf,nf,!1,null,null,null,null);const lf=rf.exports,sf="fox-breadcrumb",af="el-breadcrumb",of={name:sf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(af,i,e.children)}},uf=null,cf=null;var ff=D(of,uf,cf,!1,null,null,null,null);const df=ff.exports,hf="fox-breadcrumb-item",pf="el-breadcrumb-item",mf={name:hf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(pf,i,e.children)}},gf=null,yf=null;var _f=D(mf,gf,yf,!1,null,null,null,null);const $f=_f.exports,bf="fox-form",vf="el-form",xf={name:bf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(vf,i,e.children)}},Sf=null,Df=null;var wf=D(xf,Sf,Df,!1,null,null,null,null);const Tf=wf.exports,Cf="fox-form-item",If="el-form-item",kf={name:Cf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(If,i,e.children)}},Pf=null,Lf=null;var Nf=D(kf,Pf,Lf,!1,null,null,null,null);const Mf=Nf.exports,Rf="fox-tabs",Af="el-tabs",Vf={name:Rf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Af,i,e.children)}},Ff=null,Ef=null;var Of=D(Vf,Ff,Ef,!1,null,null,null,null);const jf=Of.exports,qf="fox-tab-pane",Hf="el-tab-pane",Wf={name:qf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Hf,i,e.children)}},Bf=null,Kf=null;var zf=D(Wf,Bf,Kf,!1,null,null,null,null);const Yf=zf.exports,Uf="fox-tag",Gf="el-tag",Xf={name:Uf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Gf,i,e.children)}},Zf=null,Jf=null;var Qf=D(Xf,Zf,Jf,!1,null,null,null,null);const ed=Qf.exports,td="fox-tree",nd="el-tree",id={name:td,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(nd,i,e.children)}},rd=null,ld=null;var sd=D(id,rd,ld,!1,null,null,null,null);const ad=sd.exports,od="fox-alert",ud="el-alert",cd={name:od,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(ud,i,e.children)}},fd=null,dd=null;var hd=D(cd,fd,dd,!1,null,null,null,null);const pd=hd.exports,md="fox-notification",gd="el-notification",yd={name:md,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(gd,i,e.children)}},_d=null,$d=null;var bd=D(yd,_d,$d,!1,null,null,null,null);const vd=bd.exports,xd="fox-slider",Sd="el-slider",Dd={name:xd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Sd,i,e.children)}},wd=null,Td=null;var Cd=D(Dd,wd,Td,!1,null,null,null,null);const Id=Cd.exports,kd="fox-loading",Pd="el-loading",Ld={name:kd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Pd,i,e.children)}},Nd=null,Md=null;var Rd=D(Ld,Nd,Md,!1,null,null,null,null);const Ad=Rd.exports,Vd="fox-icon",Fd="el-icon",Ed={name:Vd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Fd,i,e.children)}},Od=null,jd=null;var qd=D(Ed,Od,jd,!1,null,null,null,null);const Hd=qd.exports,Wd="fox-row",Bd="el-row",Kd={name:Wd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Bd,i,e.children)}},zd=null,Yd=null;var Ud=D(Kd,zd,Yd,!1,null,null,null,null);const Gd=Ud.exports,Xd="fox-col",Zd="el-col",Jd={name:Xd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Zd,i,e.children)}},Qd=null,eh=null;var th=D(Jd,Qd,eh,!1,null,null,null,null);const nh=th.exports,ih="fox-upload",rh="el-upload",lh={name:ih,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(rh,i,e.children)}},sh=null,ah=null;var oh=D(lh,sh,ah,!1,null,null,null,null);const uh=oh.exports,ch="fox-progress",fh="el-progress",dh={name:ch,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(fh,i,e.children)}},hh=null,ph=null;var mh=D(dh,hh,ph,!1,null,null,null,null);const gh=mh.exports,yh="fox-spinner",_h="el-spinner",$h={name:yh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(_h,i,e.children)}},bh=null,vh=null;var xh=D($h,bh,vh,!1,null,null,null,null);const Sh=xh.exports,Dh="fox-message",wh="el-message",Th={name:Dh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(wh,i,e.children)}},Ch=null,Ih=null;var kh=D(Th,Ch,Ih,!1,null,null,null,null);const Ph=kh.exports,Lh="fox-badge",Nh="el-badge",Mh={name:Lh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Nh,i,e.children)}},Rh=null,Ah=null;var Vh=D(Mh,Rh,Ah,!1,null,null,null,null);const Fh=Vh.exports,Eh="fox-card",Oh="el-card",jh={name:Eh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Oh,i,e.children)}},qh=null,Hh=null;var Wh=D(jh,qh,Hh,!1,null,null,null,null);const Bh=Wh.exports,Kh="fox-rate",zh="el-rate",Yh={name:Kh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(zh,i,e.children)}},Uh=null,Gh=null;var Xh=D(Yh,Uh,Gh,!1,null,null,null,null);const Zh=Xh.exports,Jh="fox-steps",Qh="el-steps",ep={name:Jh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Qh,i,e.children)}},tp=null,np=null;var ip=D(ep,tp,np,!1,null,null,null,null);const rp=ip.exports,lp="fox-step",sp="el-step",ap={name:lp,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(sp,i,e.children)}},op=null,up=null;var cp=D(ap,op,up,!1,null,null,null,null);const fp=cp.exports,dp="fox-carousel",hp="el-carousel",pp={name:dp,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(hp,i,e.children)}},mp=null,gp=null;var yp=D(pp,mp,gp,!1,null,null,null,null);const _p=yp.exports,$p="fox-scrollbar",bp="el-scrollbar",vp={name:$p,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(bp,i,e.children)}},xp=null,Sp=null;var Dp=D(vp,xp,Sp,!1,null,null,null,null);const wp=Dp.exports,Tp="fox-carousel-item",Cp="el-carousel-item",Ip={name:Tp,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Cp,i,e.children)}},kp=null,Pp=null;var Lp=D(Ip,kp,Pp,!1,null,null,null,null);const Np=Lp.exports,Mp="fox-collapse",Rp="el-collapse",Ap={name:Mp,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Rp,i,e.children)}},Vp=null,Fp=null;var Ep=D(Ap,Vp,Fp,!1,null,null,null,null);const Op=Ep.exports,jp="fox-collapse-item",qp="el-collapse-item",Hp={name:jp,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(qp,i,e.children)}},Wp=null,Bp=null;var Kp=D(Hp,Wp,Bp,!1,null,null,null,null);const zp=Kp.exports,Yp="fox-cascader",Up="el-cascader",Gp={name:Yp,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),it(e,i),n(Up,i,e.children)}},Xp=null,Zp=null;var Jp=D(Gp,Xp,Zp,!1,null,null,null,null);const Qp=Jp.exports,em="fox-color-picker",tm="el-color-picker",nm={name:em,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(tm,i,e.children)}},im=null,rm=null;var lm=D(nm,im,rm,!1,null,null,null,null);const sm=lm.exports,am="fox-transfer",om="el-transfer",um={name:am,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(om,i,e.children)}},cm=null,fm=null;var dm=D(um,cm,fm,!1,null,null,null,null);const hm=dm.exports,pm="fox-container",mm="el-container",gm={name:pm,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(mm,i,e.children)}},ym=null,_m=null;var $m=D(gm,ym,_m,!1,null,null,null,null);const bm=$m.exports,vm="fox-header",xm="el-header",Sm={name:vm,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(xm,i,e.children)}},Dm=null,wm=null;var Tm=D(Sm,Dm,wm,!1,null,null,null,null);const Cm=Tm.exports,Im="fox-aside",km="el-aside",Pm={name:Im,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(km,i,e.children)}},Lm=null,Nm=null;var Mm=D(Pm,Lm,Nm,!1,null,null,null,null);const Rm=Mm.exports,Am="fox-main",Vm="el-main",Fm={name:Am,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Vm,i,e.children)}},Em=null,Om=null;var jm=D(Fm,Em,Om,!1,null,null,null,null);const qm=jm.exports,Hm="fox-footer",Wm="el-footer",Bm={name:Hm,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Wm,i,e.children)}},Km=null,zm=null;var Ym=D(Bm,Km,zm,!1,null,null,null,null);const Um=Ym.exports,Gm="fox-timeline",Xm="el-timeline",Zm={name:Gm,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Xm,i,e.children)}},Jm=null,Qm=null;var eg=D(Zm,Jm,Qm,!1,null,null,null,null);const tg=eg.exports,ng="fox-timeline-item",ig="el-timeline-item",rg={name:ng,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(ig,i,e.children)}},lg=null,sg=null;var ag=D(rg,lg,sg,!1,null,null,null,null);const og=ag.exports,ug="fox-link",cg="el-link",fg={name:ug,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(cg,i,e.children)}},dg=null,hg=null;var pg=D(fg,dg,hg,!1,null,null,null,null);const mg=pg.exports,gg="fox-divider",yg="el-divider",_g={name:gg,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(yg,i,e.children)}},$g=null,bg=null;var vg=D(_g,$g,bg,!1,null,null,null,null);const xg=vg.exports,Sg="fox-image",Dg="el-image",wg={name:Sg,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Dg,i,e.children)}},Tg=null,Cg=null;var Ig=D(wg,Tg,Cg,!1,null,null,null,null);const kg=Ig.exports,Pg="fox-calendar",Lg="el-calendar",Ng={name:Pg,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Lg,i,e.children)}},Mg=null,Rg=null;var Ag=D(Ng,Mg,Rg,!1,null,null,null,null);const Vg=Ag.exports,Fg="fox-backtop",Eg="el-backtop",Og={name:Fg,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Eg,i,e.children)}},jg=null,qg=null;var Hg=D(Og,jg,qg,!1,null,null,null,null);const Wg=Hg.exports,Bg="fox-infinite-scroll",Kg="el-infinite-scroll",zg={name:Bg,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Kg,i,e.children)}},Yg=null,Ug=null;var Gg=D(zg,Yg,Ug,!1,null,null,null,null);const Xg=Gg.exports,Zg="fox-page-header",Jg="el-page-header",Qg={name:Zg,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Jg,i,e.children)}},ey=null,ty=null;var ny=D(Qg,ey,ty,!1,null,null,null,null);const iy=ny.exports,ry="fox-cascader-panel",ly="el-cascader-panel",sy={name:ry,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(ly,i,e.children)}},ay=null,oy=null;var uy=D(sy,ay,oy,!1,null,null,null,null);const cy=uy.exports,fy="fox-avatar",dy="el-avatar",hy={name:fy,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(dy,i,e.children)}},py=null,my=null;var gy=D(hy,py,my,!1,null,null,null,null);const yy=gy.exports,_y="fox-drawer",$y="el-drawer",by={name:_y,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n($y,i,e.children)}},vy=null,xy=null;var Sy=D(by,vy,xy,!1,null,null,null,null);const Dy=Sy.exports,wy="fox-popconfirm",Ty="el-popconfirm",Cy={name:wy,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Ty,i,e.children)}},Iy=null,ky=null;var Py=D(Cy,Iy,ky,!1,null,null,null,null);const Ly=Py.exports,Ny="fox-skeleton",My="el-skeleton",Ry={name:Ny,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(My,i,e.children)}},Ay=null,Vy=null;var Fy=D(Ry,Ay,Vy,!1,null,null,null,null);const Ey=Fy.exports,Oy="fox-skeleton-item",jy="el-skeleton-item",qy={name:Oy,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(jy,i,e.children)}},Hy=null,Wy=null;var By=D(qy,Hy,Wy,!1,null,null,null,null);const Ky=By.exports,zy="fox-empty",Yy="el-empty",Uy={name:zy,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Yy,i,e.children)}},Gy=null,Xy=null;var Zy=D(Uy,Gy,Xy,!1,null,null,null,null);const Jy=Zy.exports,Qy="fox-descriptions",e_="el-descriptions",t_={name:Qy,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(e_,i,e.children)}},n_=null,i_=null;var r_=D(t_,n_,i_,!1,null,null,null,null);const l_=r_.exports,s_="fox-descriptions-item",a_="el-descriptions-item",o_={name:s_,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(a_,i,e.children)}},u_=null,c_=null;var f_=D(o_,u_,c_,!1,null,null,null,null);const d_=f_.exports,h_="fox-result",p_="el-result",m_={name:h_,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(p_,i,e.children)}},g_=null,y_=null;var __=D(m_,g_,y_,!1,null,null,null,null);const $_=__.exports;const b_={name:"fox-page",mixins:[On],provide(){return{pageScope:!0,pageReadonly:!1}},props:{name:{type:[String],required:!1},disabled:{type:[Boolean,String],required:!1,default:void 0},readonly:{type:[Boolean,String],required:!1,default:void 0},filterModels:{type:[Array],required:!1,default(){return[]}},headerHeight:{type:[String,Number],required:!1},footerHeight:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},contentPadding:{type:[Object],required:!1},verifyRules:{type:Object,required:!1,default(){return{}}},titleWidth:{type:[String],required:!1},titleColor:{type:[String],required:!1},column:{type:[Number,String],required:!1},spacing:{type:[Number,String],required:!1,default(){return 32}},labelWidth:{type:[String],required:!1},labelPosition:{type:[String],required:!1},labelMaxCharCount:{type:[String,Number],required:!1},hints:{type:Object,required:!1,default(){return{}}}},data(){return{}},created(){this.$data[Ln]=!0;const t=zi(this,this.name,!0);if(t){const e={};this.headerHeight&&(e.headerHeight=this.headerHeight),this.footerHeight&&(e.footerHeight=this.footerHeight),this.height&&(e.height=this.height),this.contentPadding&&(e.contentPadding=this.contentPadding),Nl(t,e)}},watch:{verifyRules:{handler(t,e){Qt.update(this,t,e)},deep:!0}},methods:{getPageContentHeight(){const t=pe(this),e=we(t);return wn(t,e)},getPageContentWidth(){const t=pe(this),e=we(t);return Tn(t,e)},getPageHeaderHeight(){const t=pe(this),e=we(t);return En(t,e)},getPageFooterHeight(){const t=pe(this),e=we(t);return en(t,e)}},mounted(){const t=pe(this);t&&Ml(t,this)&&Rl(t,"100%")},beforeDestroy(){}};var v_=function(){var e=this,n=e._self._c;return n("div",{ref:"page",staticClass:"fox-page",attrs:{tabindex:"-1",title:""}},[e._t("default")],2)},x_=[],S_=D(b_,v_,x_,!1,null,"88a615dd",null,null);const D_=S_.exports;const w_={name:"fox-sub-page",props:{name:{type:String,required:!0}},created(){if(this.name){let t=this.$parent,e=M.getRootDomain(this);e&&e.setSubVm(this.name,t)}},beforeDestroy(){if(this.name){let t=M.getRootDomain(this);t&&t.removeSubVm(this.name)}}};var T_=function(){var e=this,n=e._self._c;return n("div",{staticClass:"fox-sub-page"},[e._t("default")],2)},C_=[],I_=D(w_,T_,C_,!1,null,"1acdfeb6",null,null);const k_=I_.exports;const P_={name:"fox-header-bar",provide(){return{headerScope:!0}},computed:{classes(){return{"fox-header-bar":!0}},styles(){const t=pe(this);if(t){const n=we(t);if(n){const i={},r=Ce(this.padding??n.headerPadding),l=(n.headerHeight??0)+(n.safeAreaTop??0);return l>0&&(i.height=`${l}px`),r.top!==null&&(i.paddingTop=`${r.top}px`),r.left!==null&&(i.paddingLeft=`${r.left}px`),(n.safeAreaBottom>0||r.bottom!==null)&&(i.paddingBottom=`${(n.safeAreaBottom??0)+(r.bottom??0)}px`),r.right!==null&&(i.paddingRight=`${r.right}px`),i}}const e={};if(this.padding){const n=Ce(this.padding);n.left!==null&&(e.paddingLeft=`${n.left}px`),n.top!==null&&(e.paddingTop=`${n.top}px`),n.right!==null&&(e.paddingRight=`${n.right}px`),n.bottom!==null&&(e.paddingBottom=`${n.bottom}px`)}return e}},created(){this.$data[Mi]=!0;const t=pe(this);if(t){const e=we(t);e&&(e.headerMounted=!0,Fn(t,e))}}};var L_=function(){var e=this,n=e._self._c;return n("div",{class:e.classes,style:e.styles},[e._t("default")],2)},N_=[],M_=D(P_,L_,N_,!1,null,"b6fc5b9d",null,null);const R_=M_.exports;const A_={name:"fox-content",props:{align:{type:[String],required:!1,default:"left"},padding:{type:[Object],required:!1}},computed:{classes(){let t={"fox-content":!0};return this.align==="center"?t["fox-content-center"]=!0:this.align==="right"&&(t["fox-content-right"]=!0),t},styles(){const t=pe(this),e={};if(t){const n=we(t);if(n){let i={left:null,top:null,right:null,bottom:null};this.padding?(i=Ce(this.padding),Object.assign(n.contentPadding,i),Fn(t,n)):Object.assign(i,n.contentPadding);const r=En(t,n),l=en(t,n);return e.height=n.contentHeight?`${n.contentHeight}`:`${n.height}px`,(r>0||i.top!==null)&&(e.paddingTop=`${r+(i.top??0)}px`),(l>0||i.bottom!==null)&&(e.paddingBottom=`${l+(i.bottom??0)}px`),i.left!==null&&(e.paddingLeft=`${i.left}px`),i.right!==null&&(e.paddingRight=`${i.right}px`),e}}if(this.padding){const n=Ce(this.padding);n.left!==null&&(e.paddingLeft=`${n.left}px`),n.top!==null&&(e.paddingTop=`${n.top}px`),n.right!==null&&(e.paddingRight=`${n.right}px`),n.bottom!==null&&(e.paddingBottom=`${n.bottom}px`)}return e}}};var V_=function(){var e=this,n=e._self._c;return n("div",{class:e.classes,style:e.styles},[e._t("default")],2)},F_=[],E_=D(A_,V_,F_,!1,null,"c37252ba",null,null);const O_=E_.exports;const j_={name:"fox-footer-bar",provide(){return{footerScope:!0}},props:{align:{type:String,required:!1,default:"right"},padding:{type:Object,required:!1}},computed:{classes(){let t={"fox-footer-bar":!0};return this.align=="left"?t["fox-left"]=!0:this.align=="center"?t["fox-center"]=!0:t["fox-right"]=!0,t},styles(){const t=pe(this);if(t){const n=we(t);if(n){const i={},r=Ce(this.padding??n.footerPadding),l=n.footerHeight+n.safeAreaBottom;return l>0&&(i.height=`${l}px`),r.top!==null&&(i.paddingTop=`${r.top}px`),r.left!==null&&(i.paddingLeft=`${r.left}px`),(n.safeAreaBottom>0||r.bottom!==null)&&(i.paddingBottom=`${(n.safeAreaBottom??0)+(r.bottom??0)}px`),r.right!==null&&(i.paddingRight=`${r.right}px`),i}}const e={};if(this.padding){const n=Ce(this.padding);n.left!==null&&(e.paddingLeft=`${n.left}px`),n.top!==null&&(e.paddingTop=`${n.top}px`),n.right!==null&&(e.paddingRight=`${n.right}px`),n.bottom!==null&&(e.paddingBottom=`${n.bottom}px`)}return e}},created(){this.$data[Ri]=!0;const t=pe(this);if(t){const e=we(t);e&&(e.footerMounted=!0,Fn(t,e))}}};var q_=function(){var e=this,n=e._self._c;return n("div",{class:e.classes,style:e.styles},[n("div",{staticClass:"fox-footer-bar-inner"},[e._t("default")],2)])},H_=[],W_=D(j_,q_,H_,!1,null,"e97687f4",null,null);const B_=W_.exports;const K_={name:"fox-group-header",props:{no:{type:String},title:{type:String},titleWidth:{type:String,default:"200px"},color:{type:String,required:!1}},computed:{mMarkStyle(){return this.color?{color:this.color}:{}},mTitleStyle(){return{width:this.titleWidth}}}};var z_=function(){var e=this,n=e._self._c;return n("div",{staticClass:"fox-group-row fox-group-header"},[n("div",{staticClass:"fox-group-header-mark",style:e.mMarkStyle}),n("div",{staticClass:"fox-group-header-title",style:e.mTitleStyle},[e._v(e._s(e.title))]),n("div",{staticClass:"fox-group-header-ext"},[e._t("tools")],2)])},Y_=[],U_=D(K_,z_,Y_,!1,null,"8d2901ee",null,null);const G_=U_.exports;function X_(t){for(let e=0;e<si.length;e++){let n=si[e];if(t.indexOf(n)!=-1)return!0}return!1}function Di(t){return t<=0?1:t>5?5:Number(`${t}`)}function Z_(t){return`fox-group-col-${t}`}const J_={name:"fox-group",mixins:[On],provide(){return{groupScope:!0}},inject:{multiLang:{default:!1},pageScope:{default:!1}},props:{disabled:{type:[Boolean,String],required:!1,default:void 0},readonly:{type:[Boolean,String],required:!1,default:void 0},filterModels:{type:[Array],required:!1,default(){return[]}},column:{type:[Number,String],required:!1},spacing:{type:[Number,String],required:!1},name:{type:[String],required:!1},no:{type:[String],required:!1},title:{type:[String],required:!1},titleWidth:{type:[String],required:!1},color:{type:[String],required:!1},labelWidth:{type:[String],required:!1},labelPosition:{type:[String],required:!1},labelMaxCharCount:{type:[String,Number],required:!1},span:{type:[Number,String],required:!1,default:1},sub:{type:[Boolean,String],required:!1,default(){return!1}},autoAdjustLayout:{type:[Boolean,String],required:!1,default:!0}},created(){this.$data[Ai]=!0,zi(this,this.name)},data(){return{groupScope:!0,groupRef:null}},computed:{mSubgroupWidth(){const t=M.getFitProperty(this,"spacing",32),e=M.getParentDomainProperty(this,"column",1),n=M.getParentDomainProperty(this,"groupWidth",-1);return Ge(this,n,e,this.span,t)},mStyle(){if(this.sub==="true"||this.sub===!0){const t=pe(this);return t&&t.setOption("groupWidth",this.mSubgroupWidth),{width:this.mSubgroupWidth<=0?"100%":`${this.mSubgroupWidth}px`}}else return{}},mGroupClass(){let t={"el-form":!0,"fox-group":!0},e=M.getFitProperty(this,"labelPosition",ze());e==="left"?t["el-form--label-left"]=!0:e==="right"?t["el-form--label-right"]=!0:e==="top"&&(t["el-form--label-top"]=!0);let n=M.getFitProperty(this,"column",1);if(n!=-1){n=Di(n);let i=Z_(n);t[i]=!0}return t}},mounted(){const t=pe(this);if(!this.sub&&this.$refs.group){let e=-1,n=this.$refs.group;if(this.autoAdjustLayout&&window.ResizeObserver){const r=Vn(()=>{if(n&&!gt(n)){const l=nt(n);if(e===l)return;e=l,t.setOption("groupWidth",l)}},150);this.$data.observer=new window.ResizeObserver(r),this.$data.observer.observe(n)}let i=nt(n);e=i,t.setOption("groupWidth",i)}},beforeDestroy(){this.$data.observer&&(this.$data.observer.disconnect(),this.$data.observer=null)},render(t){let e=[];if(Y(this.title)){let{title:i}=this;this.multiLang&&(i=this.$langTranslator.translate(this,i));let r={title:i,no:this.no},l=M.getFitProperty(this,"titleWidth",void 0);Y(l)&&(r.titleWidth=l);let s=M.getFitProperty(this,["color","titleColor"],void 0);Y(s)&&(r.color=s);let o={props:r},a;this.$scopedSlots.tools&&(o.scopedSlots={tools:this.$scopedSlots.tools}),a=t("fox-group-header",o),e.push(a)}if(Y(this.$slots.default)){let i=M.getFitProperty(this,"column",-1);if(i===-1)e=[...e,...this.$slots.default];else{i=Di(i);let r=0;for(let l=0;l<this.$slots.default.length;l++){let s=this.$slots.default[l],{tag:o}=s;if(!!Y(o)){if(X_(o)){if(r>0){let a=i-r%i;for(let u=0;u<a;u++){let d=t("fox-empty-item");e.push(d)}r=0}e.push(s);continue}r++,e.push(s)}}if(r>0){let l=i-r%i;for(let s=0;s<l;s++){let o=t("fox-empty-item");e.push(o)}}}}let n={ref:"group",attrs:this.$attrs,props:this.$props,class:this.mGroupClass,style:this.mStyle};return t("div",n,e)}},Q_=null,e$=null;var t$=D(J_,Q_,e$,!1,null,null,null,null);const n$=t$.exports,i$="fox-sub-group",r$="fox-group",l$={name:i$,functional:!0,render(t,e){const n=e.parent.$createElement;let{data:i}=e;return i.attrs||(i.attrs={}),i.attrs.sub=!0,n(r$,i,e.children)}},s$=null,a$=null;var o$=D(l$,s$,a$,!1,null,null,null,null);const u$=o$.exports;const c$={name:"fox-input-row",provide(){return{groupScope:!1}}};var f$=function(){var e=this,n=e._self._c;return n("div",{staticClass:"fox-group-row"},[e._t("default")],2)},d$=[],h$=D(c$,f$,d$,!1,null,"3483209d",null,null);const p$=h$.exports;const m$={name:"fox-button-row",provide(){return{groupScope:!1}},props:{align:{type:String,required:!1,default:"right"}},computed:{mCls(){let t={"fox-group-row":!0,"fox-button-row":!0};return this.align=="left"?t["fox-left"]=!0:this.align=="center"?t["fox-center"]=!0:t["fox-right"]=!0,t},mStyle(){return{position:"relative"}}}};var g$=function(){var e=this,n=e._self._c;return n("div",{class:e.mCls,style:e.mStyle},[n("div",{staticClass:"fox-button-row-start"},[e._t("start")],2),n("div",{staticClass:"fox-button-row-inner"},[e._t("default")],2),n("div",{staticClass:"fox-button-row-end"},[e._t("end")],2)])},y$=[],_$=D(m$,g$,y$,!1,null,"af5e61ac",null,null);const $$=_$.exports,wi={text:"fox-text-item",money:"fox-money-item",time:"fox-time-item",date:"fox-date-item"},b$={name:"fox-item",mixins:[On],inject:{pageScope:{default:!1},multiLang:{default:!1}},provide(){return{groupScope:!1}},props:{ctype:{type:String,required:!1},label:{type:String,required:!1,default(){return""}},span:{type:[Number,String],required:!1,default(){return 1}},errorTip:{type:String,required:!1},errorIcon:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:String,required:!1,default:"el-icon-warning"},infoTip:{type:String,required:!1},infoIcon:{type:String,required:!1,default:"el-icon-info"}},data(){return{[Me]:this.$parent.groupScope,isRequired:!1,innerErrorIcon:"",innerErrorTip:"",innerWarnIcon:"",innerWarnTip:"",innerInfoIcon:"",innerInfoTip:"",innerUniqueKey:Zt()}},watch:{},computed:{mStyle(){if(this.$parent.groupScope){const t=M.getFitProperty(this,"spacing",32),e=M.getParentDomainProperty(this,"column",1),n=M.getParentDomainProperty(this,"groupWidth",-1),i=Ge(this,n,e,this.span,t);return{width:i<=0?"100%":`${i}px`}}else return{}},mLabelStyle(){return this.hasLabel()?M.getFitProperty(this,"labelPosition",ze())==="top"?{}:{width:`${M.getFitProperty(this,"labelWidth",Ke())}`}:{}},mInputStyle(){return this.hasLabel()?M.getFitProperty(this,"labelPosition",ze())==="top"?{}:{"margin-left":`${M.getFitProperty(this,"labelWidth",Ke())}`}:{}},mReadonly(){return M.isReadonly(this)},mDisabled(){return M.isDisabled(this)},mLabelMaxCharCount(){let t=M.getFitProperty(this,"labelMaxCharCount",tn());return Number(t)}},methods:{installTip(t){let e={type:"none"};if(!z(this.errorTip)||!z(this.innerErrorTip)?(e.type="error",e.text=this.errorTip||this.innerErrorTip,e.icon=this.errorIcon||this.innerErrorIcon):!z(this.warnTip)||!z(this.innerWarnTip)?(e.type="warn",e.text=this.warnTip||this.innerWarnTip,e.icon=this.warnIcon||this.innerWarnIcon):(!z(this.infoTip)||!z(this.innerInfoTip))&&(e.type="info",e.text=this.infoTip||this.innerInfoTip,e.icon=this.infoIcon||this.innerInfoIcon),e.type!=="none"){let n=[];if(!z(e.icon)){let i={class:{}};i.class[e.icon]=!0,n.push(t("li",i,[]))}n.push(e.text),e.node=t("div",{class:{"fox-form-item__tip":!0}},n)}return e},hasLabel(){return this.$slots.label||this.label.length>0}},render(t){if(this.ctype&&wi[this.ctype]){let u=wi[this.ctype],d={attrs:this.$attrs,props:this.$props};return t(u,d,this.children)}let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n,i=this.label;i&&(i=i.trim()).length>0&&(this.multiLang&&(i=this.$langTranslator.translate(this,i)),e.domProps={innerHTML:B(i,this.mLabelMaxCharCount)},n=t("div",e));let r;this.$scopedSlots.default?r=[this.$scopedSlots.default()]:r=[];let l=this.installTip(t);l.type!=="node"&&r.push(l.node);let s={class:{"el-form-item__content":!0},style:this.mInputStyle},o=t("div",s,r),a={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return l.type==="error"?a.class["is-error"]=!0:l.type==="warn"?a.class["is-warn"]=!0:l.type==="info"&&(a.class["is-info"]=!0),le(this,a),n?t("div",a,[n,o]):t("div",a,[o])},mounted(){},beforeDestroy(){}},v$=null,x$=null;var S$=D(b$,v$,x$,!1,null,null,null,null);const D$=S$.exports;const w$={name:"fox-empty-item",inject:{pageScope:{default:!1},groupScope:{default:!1}},props:{span:{type:[Number,String],required:!1,default(){return 1}}},data(){return{[Me]:this.groupScope}},computed:{mStyle(){if(this.groupScope){let t,e=Gl(this.$parent);e&&(t=M.getFitProperty(e,"spacing",zl()));let n=M.getFitProperty(this,"column",1);const i=M.getParentDomainProperty(this,"groupWidth",-1);let r=Ge(this,i,n,this.span,t);return{width:r<=0?"100%":`${r}px`}}else return{}}},mounted(){},beforeDestroy(){}};var T$=function(){var e=this,n=e._self._c;return n("div",{staticClass:"fox-group-item",style:e.mStyle})},C$=[],I$=D(w$,T$,C$,!1,null,"27f55b90",null,null);const k$=I$.exports,P$={name:"fox-text-item",mixins:[ce],props:{value:{required:!1},min:{type:[Number,String],required:!1},max:{type:[Number,String],required:!1},clearable:{type:Boolean,default:!0}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value,numberType:!1}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t,e){this.numberType&&t.length>0&&!mt(t)||(this.innerValue=t,this.$emit("change",t))},onInput(t,e){if(this.numberType){if(t.length>0&&!mt(t))return;let n=ne(t);if(this.min!==void 0){if(this.min>=0&&t=="-")return;let i=ne(this.min);if(n<i){let r="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";this.multiLang&&(r=this.$t("\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C")),this.innerErrorTip=r.replace("{0}",i)}else this.innerErrorTip=""}if(this.max!=null){let i=ne(this.max);if(n>i)return}}this.innerValue=t,this.$emit("change",t)},focus(){this.$refs.input&&this.$refs.input.focus&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&this.$refs.input.blur&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let y=this.$slots.default[0];if(this.multiLang){let{text:$}=y;$&&($=$.trim()).length>0&&($=this.$langTranslator.translate(this,$),e.attrs.title=$,$=B($,this.mLabelMaxCharCount),n=t("div",e,[$]))}if(!n){let{text:$}=y;$&&($=$.trim()).length>0?(e.attrs.title=$,$=B($,this.mLabelMaxCharCount),n=t("div",e,[$])):y.tag&&(n=t("div",e,this.$slots.default))}}else{let y=this.label;y&&(y=y.trim()).length>0&&(this.multiLang&&(y=this.$langTranslator.translate(this,y)),e.domProps={innerHTML:B(y,this.mLabelMaxCharCount)},n=t("div",e))}let i=[],{type:r}=this.$attrs;r=="number"&&(this.numberType=!0,i.push("type"));let l={};ee(this,l,this.$attrs,i),r!="password"&&!Reflect.has(l,"show-password")&&(l.title=this.innerValue),l.clearable=this.clearable;let s={};ue(this,s,this.$props),s.value=this.innerValue,s.disabled=this.mDisabled,s.readonly=this.mReadonly,s.size=this.mSize;let o={};Q(this,o,this.$listeners,["blur","focus","change","input"]),o.blur=this.onBlur,o.focus=this.onFocus,o.change=this.onInput,o.input=this.onInput,o.clear=this.onClear;let a={attrs:l,props:s,on:o,ref:"input"},u=cr(t,this),f=[t("el-input",a,u)],g=this.installTip(t);g.type!=="node"&&f.push(g.node);let c={class:{"el-form-item__content":!0},style:this.mInputStyle},m=t("div",c,f),p={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};g.type==="error"?p.class["is-error"]=!0:g.type==="warn"?p.class["is-warn"]=!0:g.type==="info"&&(p.class["is-info"]=!0),le(this,p);let h="text";return r=="textarea"&&(h="textarea"),this.componentData(this,p,h),n?t("div",p,[n,m]):t("div",p,[m])}},L$=null,N$=null;var M$=D(P$,L$,N$,!1,null,null,null,null);const R$=M$.exports;function Rt(t,e,n,i,r=!0){if(t=="")return"";if(t=He(t),e=ne(e),e==1)return t;if(i)t=Kn(t,e),n&&(t=="0"&&r?t=`${t}.`.padEnd(ne(n)+2,"0"):t=Wi(t,1,ne(n)));else{let l=-1*e;t=Kn(t,l)}return t}const A$={name:"fox-money-item",mixins:[ce],props:{value:{required:!1},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""}},model:{prop:"value",event:"change"},data(){let t=this.value===void 0?"":`${this.value}`;t=Rt(t,this.rates,this.precision,!1),this.inValidScope(t)?t=tt(t,Number(this.decimalLength),this.autoPadding,Number(this.digits),this.separator):(console.error("value\u8D85\u51FA\u5408\u6CD5\u8303\u56F4"),t="");let e="right";return Fe(t)&&this.placeholder&&(e="left"),{innerValue:t,mEditing:!1,mFocused:!1,inputNoe:void 0,inputTextAlign:e,higherErrorTip:""}},watch:{value(t,e){if(this.mEditing)return;if(t==null){this.innerValue="";return}let n=`${t}`;if(Fe(n)){this.innerValue="";return}if(n=Rt(n,this.rates,this.precision,!1),!this.inValidScope(n)){console.error("value\u8D85\u51FA\u5408\u6CD5\u8303\u56F4");return}n=tt(n,Number(this.decimalLength),this.autoPadding,Number(this.digits),this.separator),n!=this.innerValue&&(this.innerValue=n,this.$emit("setValue",this.innerValue))},mEditing(t,e){t!=e&&this.changeInputStyle()}},computed:{mShowTip(){return Z(this.showTip)},mInputStyle:function(){let t={"fox-input-clear":!(this.mReadonly||this.mDisabled),"fox-input-money":!0,"fox-input-money-placeholder":this.innerValue&&this.innerValue.length>0};if(!this.hasLabel()||M.getFitProperty(this,"labelPosition","left")==="top")return t;let n=M.getFitProperty(this,"labelWidth",Ke());return t["margin-left"]=`${n}`,t},mValue(){return this.mFocused?this.innerValue:""},mPlaceholder(){if(this.innerValue===void 0)return this.placeholder;let t=`${this.innerValue}`;return!this.mFocused&&t.length>0?t:this.placeholder}},methods:{inValidScope(t){if(this.min!==void 0){let e=Z(this.minInclude),n=zn(t,this.min);if(e&&n==-1||!e&&(n==0||n==-1)){let i="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";this.multiLang&&(i=this.$t("\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C")),this.higherErrorTip=i.replace("{0}",this.min)}else this.higherErrorTip=""}if(this.max!=null){let e=Z(this.maxInclude),n=zn(t,this.max);if(e&&n==1||!e&&(n==0||n==1))return!1}return!0},getInputElm(){if(!!this.inputNode)return this.inputNode.componentInstance.$refs.input},onFocus(t){this.mEditing=!0;let e=this.getInputElm();this.inputTextAlign="left",e.style.textAlign=this.inputTextAlign;let n=`${this.innerValue}`;if(!Fe(n)){let i=He(n);this.innerValue=i,setTimeout(()=>{this.mFocused&&e.select()},10)}this.mFocused=!0,Be(this,"focus",t)},onBlur(t){this.mFocused=!1,this.mEditing=!1;let e=`${this.innerValue}`,n=Fe(e);if(!n){let r=tt(e,Number(this.decimalLength),this.autoPadding,Number(this.digits),this.separator);this.innerValue=r;let l=Rt(r,this.rates,this.precision,!0);this.$emit("change",l)}let i=this.getInputElm();if(i){let r="right";n&&this.placeholder&&(r="left"),this.inputTextAlign=r,i.style.textAlign=this.inputTextAlign}Fe(this.higherErrorTip)||(this.innerValue="",this.$emit("change",this.innerValue)),this.mShowTip&&i&&Oe.hide(),Be(this,"blur",t)},onInput(t){if(this.mEditing=!0,Fe(t)){this.innerValue="",this.$emit("change",this.innerValue);let i=this.getInputElm();this.mShowTip&&i&&Oe.hide();return}if(typeof t=="string"&&(t=He(t)),t.length>=2){let i=t;if(i.charAt(0)=="-"&&(i=i.substring(1)),i.length>=2&&i.charAt(0)=="0"&&i.charAt(1)!=".")return}if(t!="-"){if(!mt(t)||!this.inValidScope(t)||this.integerLength!=-1&&Br(t)>Number(this.integerLength)||this.decimalLength!=-1&&Kr(t)>Number(this.decimalLength))return}else if(this.min!=null&&ne(this.min)>=0)return;let e=this.getInputElm();if(e)if(t&&t.length>0){let i=tt(t,Number(this.decimalLength),!1,Number(this.digits),this.separator);this.unit&&(i+=this.unit),this.mShowTip&&Oe.show(e,i)}else this.mShowTip&&Oe.hide();this.innerValue=t;let n=Rt(t,this.rates,this.precision,!0);this.$emit("change",n)},changeInputStyle(){},adjustInputStyle(){if(!this.$refs.unitRef||!this.$refs.inputRef)return;let t=this.$refs.inputRef.$el.querySelector("input");if(t){let e=this.$refs.unitRef.offsetWidth;e==0&&(e=Nn(this.unit||"",this.$refs.unitRef.style.fontSize||"14px",document.body)),t.style.paddingRight=`${e+14}px`,t.style.textAlign=this.inputTextAlign}},focus(){this.$refs.inputRef&&this.$refs.inputRef.focus&&typeof this.$refs.inputRef.focus=="function"&&this.$refs.inputRef.focus()},blur(){this.$refs.inputRef&&this.$refs.inputRef.blur&&typeof this.$refs.inputRef.blur=="function"&&this.$refs.inputRef.blur()}},updated(){this.adjustInputStyle()},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let c=this.$slots.default[0];if(this.multiLang){let{text:m}=c;m&&(m=m.trim()).length>0&&(m=this.$langTranslator.translate(this,m),e.attrs.title=m,m=B(m,this.mLabelMaxCharCount),n=t("div",e,[m]))}if(!n){let{text:m}=c;m&&(m=m.trim()).length>0?(e.attrs.title=m,m=B(m,this.mLabelMaxCharCount),n=t("div",e,[m])):c.tag&&(n=t("div",e,this.$slots.default))}}else{let c=this.label;c&&(c=c.trim()).length>0&&(this.multiLang&&(c=this.$langTranslator.translate(this,c)),e.domProps={innerHTML:B(c,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs),i.placeholder=this.mPlaceholder,i.title=this.innerValue;let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled,r.readonly=this.mReadonly,r.size=this.mSize;let l={};Q(this,l,this.$listeners,["blur","focus","change","input"]),l.blur=this.onBlur,l.focus=this.onFocus,l.input=this.onInput;let s={attrs:i,props:r,on:l,class:{"fox-input-money":!0,"fox-input-money-placeholder":this.innerValue&&this.innerValue.length>0},ref:"inputRef"},o=cr(t,this);this.inputNode=t("el-input",s,o);let a=[this.inputNode];if(this.unit&&this.unit.length>0){let m=t("span",{class:{"fox-input-money-unit":!0},ref:"unitRef"},[this.unit]);a.push(m)}let u=this.installTip(t);u.type!=="node"&&a.push(u.node);let d={class:{"el-form-item__content":!0},style:this.mInputStyle},f=t("div",d,a),g={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return u.type==="error"?g.class["is-error"]=!0:u.type==="warn"?g.class["is-warn"]=!0:u.type==="info"&&(g.class["is-info"]=!0),le(this,g),this.componentData(this,g,"money"),n?t("div",g,[n,f]):t("div",g,[f])}},V$=null,F$=null;var E$=D(A$,V$,F$,!1,null,null,null,null);const O$=E$.exports,j$="el-input-number",q$={name:"fox-counter-item",mixins:[ce],props:{value:{required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t){this.innerValue=t,this.$emit("change",t)}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let m=this.$slots.default[0];if(this.multiLang){let{text:p}=m;p&&(p=p.trim()).length>0&&(p=this.$langTranslator.translate(this,p),e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p]))}if(!n){let{text:p}=m;p&&(p=p.trim()).length>0?(e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p])):m.tag&&(n=t("div",e,this.$slots.default))}}else{let m=this.label;m&&(m=m.trim()).length>0&&(this.multiLang&&(m=this.$langTranslator.translate(this,m)),e.domProps={innerHTML:B(m)},n=t("div",e))}let i={};ee(this,i,this.$attrs);let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled,r.readonly=this.mReadonly,r.size=this.mSize;let l={};Q(this,l,this.$listeners,["blur","focus","change","input"]),l.blur=this.onBlur,l.focus=this.onFocus,l.change=this.onChange,l.input=this.onChange;let s={attrs:i,props:r,on:l},o=`${j$}`,u=[t(o,s)],d=this.installTip(t);d.type!=="node"&&u.push(d.node);let f={class:{"el-form-item__content":!0},style:this.mInputStyle},g=t("div",f,u),c={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return d.type==="error"?c.class["is-error"]=!0:d.type==="warn"?c.class["is-warn"]=!0:d.type==="info"&&(c.class["is-info"]=!0),le(this,c),n?t("div",c,[n,g]):t("div",c,[g])}},H$=null,W$=null;var B$=D(q$,H$,W$,!1,null,null,null,null);const K$=B$.exports,z$="el-time-",Y$={name:"fox-time-item",mixins:[rr],props:{value:{required:!1},ctype:{type:String,required:!1,default(){return"picker"}},startTime:{required:!1},endTime:{required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value}},watch:{value(t,e){if(Array.isArray(t)&&t.length==2){let n=t[0],i=t[1];this.$emit("update:startTime",n),this.$emit("update:endTime",i)}else this.$emit("update:startTime",""),this.$emit("update:endTime","");t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t){this.innerValue=t,this.$emit("change",t),this.$nextTick(()=>{this.$emit("setValue",t)})},focus(){this.$refs.input&&this.$refs.input.focus&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&this.$refs.input.blur&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let p=this.$slots.default[0];if(this.multiLang){let{text:h}=p;h&&(h=h.trim()).length>0&&(h=this.$langTranslator.translate(this,h),e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h]))}if(!n){let{text:h}=p;h&&(h=h.trim()).length>0?(e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h])):p.tag&&(n=t("div",e,this.$slots.default))}}else{let p=this.label;p&&(p=p.trim()).length>0&&(this.multiLang&&(p=this.$langTranslator.translate(this,p)),e.domProps={innerHTML:B(p,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs),Reflect.has(i,"clearable")||(i.clearable=!0),Reflect.has(i,"popper-append-to-body")||(i["popper-append-to-body"]=!1);let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled||this.mReadonly,r.size=this.mSize;let l={};Q(this,l,this.$listeners,["blur","focus","change","input"]),l.blur=this.onBlur,l.focus=this.onFocus,l.change=this.onChange,l.input=this.onChange,l.clear=this.onClear;let s={};Q(this,s,this.$nativeListeners,[]),s.keydown=p=>{if(this.$refs.inputWrap){if(this.mSelectHotkey&&cn(p,this.mSelectHotkey)){setTimeout(()=>{this.$refs.input&&this.$refs.input.pickerVisible&&this.$refs.input.hidePicker()},5),Hi(this.$refs.inputWrap,"keyproxy",{detail:"keyproxy",key:p.key,shiftKey:p.shiftKey,altKey:p.altKey,ctrlKey:p.ctrlKey});return}if(this.mClearHotkey&&cn(p,this.mClearHotkey)){this.$refs.input.handleClickIcon(p);return}if(this.mExpandHotkey&&cn(p,this.mExpandHotkey)){this.$refs.input.pickerVisible||this.$refs.input.showPicker();return}}};let o={attrs:i,props:r,on:l,nativeOn:s,ref:"input"},a=`${z$}${this.ctype}`,d=[t(a,o)],f=this.installTip(t);f.type!=="node"&&d.push(f.node);let g={class:{"el-form-item__content":!0},style:this.mInputStyle},c=t("div",g,d),m={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle,ref:"inputWrap"};return f.type==="error"?m.class["is-error"]=!0:f.type==="warn"?m.class["is-warn"]=!0:f.type==="info"&&(m.class["is-info"]=!0),le(this,m),this.componentData(this,m,"time"),n?t("div",m,[n,c]):t("div",m,[c])}},U$=null,G$=null;var X$=D(Y$,U$,G$,!1,null,null,null,null);const Z$=X$.exports;function J$(t){let e=t.format;if(!e){let n=t.type??"date";e=br[n]}return e}const dn=rt(xr,{visible:!0,modelValue:""}),Q$={name:"fox-date-item",mixins:[ce],props:{...dn,title:{type:[String],required:!1,default:"\u65E5\u671F\u9009\u62E9"},value:{type:[String,Date],required:!0},editable:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value,visible:!1}},computed:{formatText(){if(!this.innerValue)return"";if(typeof this.innerValue=="string")return this.innerValue;const t=J$(this.$props);return vr(this.$props,this.innerValue,t)}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t,e){this.innerValue=t,this.$emit("change",t)},onInput(t){},onFocus(t){this.visible=!0,this.$emit("focus",t)},onBlur(t){this.$emit("blur",t)},onClick(){this.visible=!this.visible},showPicker(){this.visible=!0},hidePicker(){this.visible=!1},focus(){this.$refs.input&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()},renderPicker(t){const e=jn(this.$props,dn);e.modelValue=this.innerValue,e.readonly=this.mReadonly||this.mDisabled,e.visible=this.visible;const n={"update:modelValue":this.onChange,"update:visible":l=>{this.visible=l}},i={props:e,on:n},r={};return this.$scopedSlots.top&&(r.top=()=>this.$scopedSlots.top()),this.$scopedSlots.bottom&&(r.default=()=>this.$scopedSlots.bottom()),i.scopedSlots=r,t(Sr,i)}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let _=this.$slots.default[0];if(this.multiLang){let{text:b}=_;b&&(b=b.trim()).length>0&&(b=this.$langTranslator.translate(this,b),e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b]))}if(!n){let{text:b}=_;b&&(b=b.trim()).length>0?(e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b])):_.tag&&(n=t("div",e,this.$slots.default))}}else{let _=this.label;_&&(_=_.trim()).length>0&&(this.multiLang&&(_=this.$langTranslator.translate(this,_)),e.domProps={innerHTML:B(_,this.mLabelMaxCharCount)},n=t("div",e))}let i=[],r={};ee(this,r,this.$attrs,i),r.title=this.innerValue,r.clearable=this.clearable;let l=rt(this.$props,dn,{separator:"",editable:!1});l.value=this.formatText,l.disabled=this.mDisabled,l.readonly=this.editable,l.size=this.mSize;let s={};Q(this,s,this.$listeners,["blur","focus","change","input"]),s.blur=this.onBlur,s.focus=this.onFocus,s.clear=this.onClear,s.input=this.onInput;const o={click:this.onClick},a={attrs:r,props:l,on:s,nativeOn:o,ref:"input"},u={slot:"suffix",class:{"el-icon-date":!0,"el-input__icon":!0,"fox-select-item__suffix":!0,active:this.visible}},d=t("li",u),g=[t("el-input",a,[d])];let c=this.installTip(t);c.type!=="node"&&g.push(c.node);let m={class:{"el-form-item__content":!0},style:this.mInputStyle},p=t("div",m,g),h={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};c.type==="error"?h.class["is-error"]=!0:c.type==="warn"?h.class["is-warn"]=!0:c.type==="info"&&(h.class["is-info"]=!0),le(this,h);let y="text";this.componentData(this,h,y);const $=this.renderPicker(t);return n?t("div",h,[n,p,$]):t("div",h,[p,$])}},eb=null,tb=null;var nb=D(Q$,eb,tb,!1,null,null,null,null);const ib=nb.exports,rb="el-date-picker",lb={name:"fox-datetime-item",mixins:[rr],props:{value:{required:!1},startDate:{required:!1},endDate:{required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value}},watch:{value(t,e){if(Array.isArray(t)&&t.length==2){let n=t[0],i=t[1];this.$emit("update:startDate",n),this.$emit("update:endDate",i)}else this.$emit("update:startDate",""),this.$emit("update:endDate","");t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t){this.innerValue=t,this.$emit("change",t),this.$nextTick(()=>{this.$emit("setValue",t)})},focus(){this.$refs.input&&this.$refs.input.focus&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&this.$refs.input.blur&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let m=this.$slots.default[0];if(this.multiLang){let{text:p}=m;p&&(p=p.trim()).length>0&&(p=this.$langTranslator.translate(this,p),e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p]))}if(!n){let{text:p}=m;p&&(p=p.trim()).length>0?(e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p])):m.tag&&(n=t("div",e,this.$slots.default))}}else{let m=this.label;m&&(m=m.trim()).length>0&&(this.multiLang&&(m=this.$langTranslator.translate(this,m)),e.domProps={innerHTML:B(m,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs),Reflect.has(i,"clearable")||(i.clearable=!0),Reflect.has(i,"popper-append-to-body")||(i["popper-append-to-body"]=!1);let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled||this.mReadonly,r.size=this.mSize;let l={};Q(this,l,this.$listeners,["blur","focus","change","input"]),l.blur=this.onBlur,l.focus=this.onFocus,l.change=this.onChange,l.input=this.onChange,l.clear=this.onClear;let s={};Q(this,s,this.$nativeListeners,[]),s.keydown=m=>{if(this.$refs.inputWrap){if(this.mSelectHotkey&&matchKey(m,this.mSelectHotkey)){setTimeout(()=>{this.$refs.input&&this.$refs.input.pickerVisible&&this.$refs.input.hidePicker()},5),Hi(this.$refs.inputWrap,"keyproxy",{detail:"keyproxy",key:m.key,shiftKey:m.shiftKey,altKey:m.altKey,ctrlKey:m.ctrlKey});return}if(this.mClearHotkey&&matchKey(m,this.mClearHotkey)){this.$refs.input.handleClickIcon(m);return}if(this.mExpandHotkey&&matchKey(m,this.mExpandHotkey)){this.$refs.input.pickerVisible||this.$refs.input.showPicker();return}}};let u=[t(rb,{attrs:i,props:r,on:l,nativeOn:s,ref:"input"})],d=this.installTip(t);d.type!=="node"&&u.push(d.node);let f={class:{"el-form-item__content":!0},style:this.mInputStyle},g=t("div",f,u),c={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle,ref:"inputWrap"};return d.type==="error"?c.class["is-error"]=!0:d.type==="warn"?c.class["is-warn"]=!0:d.type==="info"&&(c.class["is-info"]=!0),le(this,c),this.componentData(this,c,"datetime"),n?t("div",c,[n,g]):t("div",c,[g])}},sb=null,ab=null;var ob=D(lb,sb,ab,!1,null,null,null,null);const ub=ob.exports,Ve={Data:"Data",File:"File",Function:"Function",Remote:"Remote"};class At{constructor(e,n,i){this.src=e,this.lang=n,this.first=!0,this.scope=Hn(i),Ht(e)?(this.cache=e,this.type=Ve.Data):typeof e=="function"?(this.cache=void 0,this.type=Ve.Function):e.indexOf("@")==0?(this.cache=void 0,this.type=Ve.File,this.lang?this.src=`custom/data-source/${this.lang}/${e.substring(1)}`:this.src=`custom/data-source/${e.substring(1)}`):(this.cache=void 0,this.type=Ve.Remote)}getPageData(e,n,i,r){if(typeof e=="string"&&(e=Number(e)),typeof n=="string"&&(n=Number(n)),this.type===Ve.Data){let l=(e-1)*n,s=l+n;if(l>=this.cache.length){let u={totalSize:0,page:[]};return Promise.resolve(u)}s=s<=this.cache.length?s:this.cache.length;let o=this.cache.slice(l,s),a={totalSize:this.cache.length,page:o};return Promise.resolve(a)}else if(this.type===Ve.Function){if(Y(this.cache)){let a=(e-1)*n,u=a+n;if(a>=this.cache.length)return Promise.resolve([]);u=u<=this.cache.length?u:this.cache.length;let d=this.cache.slice(a,u),f={totalSize:this.cache.length,page:d};return Promise.resolve(f)}let l=qe(r),s={type:"getPageData",lang:this.lang,node:r,context:l};return new Promise((a,u)=>{Reflect.apply(this.src,this,[s]).then(f=>{this.cache=f;let g=(e-1)*n,c=g+n;if(g>=this.cache.length)return Promise.resolve([]);c=c<=this.cache.length?c:this.cache.length;let m=this.cache.slice(g,c),p={totalSize:this.cache.length,page:m};return Promise.resolve(p)},f=>{u(f)})})}else if(this.type===Ve.File){if(Y(this.cache)){let o=(e-1)*n,a=o+n;if(o>=this.cache.length)return Promise.resolve([]);a=a<=this.cache.length?a:this.cache.length;let u=this.cache.slice(o,a),d={totalSize:this.cache.length,page:u};return Promise.resolve(d)}let l=this;return new Promise((o,a)=>{fox.ajax({url:this.src,async:!1,type:"GET",dataType:"json",cache:!1,data:{},success:(u,d,f)=>{l.cahce=u;let g=(e-1)*n,c=g+n;if(g>=l.cache.length){let h={totalSize:0,page:[]};return Promise.resolve(h)}c=c<=l.cache.length?c:l.cache.length;let m=l.cache.slice(g,c),p={totalSize:this.cache.length,page:m};return Promise.resolve(p)},error:(u,d)=>{a(d)}})})}else{let l=this.getAPI();if(l){let s=qe(r),o=this.first;return this.first=!1,Reflect.apply(l,this,[this.src,e,n,i,this.lang,o,s,r])}else{let s=(e-1)*n,o={type:"getPageData",params:i,index:s,size:n,lang:this.lang},a=this.src;return this.lang?a=`${a}.do?lang=${this.lang}`:a=`${a}.do`,new Promise((d,f)=>{fox.service.request({path:a,dataType:"json",async:!0,cover:!0,data:o,callback(g,c,m){if(g==0){typeof m=="string"&&(m=JSON.parse(m));let p={totalSize:m.total,page:m.page};d(p)}else d(c)}})})}}}getAPI(){return De("getTablePageData",this.scope)}}function Wn(){return De("uiSetting")}function cb(t,e,n){const i=Wn();if(i)return i.loadUISetting(t,e,n)}function fb(t,e,n,i){const r=Wn();if(r)return r.saveUISetting(t,e,n,i)}function db(t,e,n){const i=Wn();i&&i.removeUISetting(t,e,n)}const hb={name:"fox-table-setting-suggestion",inject:{multiLang:{default:!1}},props:{visible:{type:Boolean,required:!1,default:!1},top:{type:Number,required:!0},left:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0},items:{type:Array,required:!0,default(){return[]}},hiddenColumns:{type:Array,required:!1,default(){return[]}}},data(){return{mCurTarget:void 0,isAllVisible:!1,innerItems:this.cloneItems(this.items),wrapClass:"",extendHeight:0}},watch:{visible(t){t?this.show():this.hide()}},computed:{mHeaderTitle(){let t="\u9009\u62E9\u5217";return this.multiLang&&(t=this.$langTranslator.translate(this,t)),t},mAllSelectTip(){let t="\u5168\u9009";return this.multiLang&&(t=this.$langTranslator.translate(this,t)),t},mSelectTip(){let t="\u81F3\u5C11\u9009\u4E09\u5217";return this.multiLang&&(t=this.$langTranslator.translate(this,t)),t},mClass(){return this.visible?{"fox-table-setting-suggestion":!0,"fox-table-setting-suggestion-show":!0}:{"fox-table-setting-suggestion":!0,"fox-table-setting-suggestion-hide":!0}},mStyle(){return{left:`${this.left}px`,top:`${this.top-this.extendHeight}px`,width:`${this.width}px`,height:`${this.height+this.extendHeight}px`}},mContentStyle(){let t=this.fixedItems.length,e=48;return{height:`${this.height-2*e-t*e+this.extendHeight}px`}},fixedItems(){return this.innerItems?this.innerItems.filter(t=>!!t.fixed):[]},isIndeterminate(){if(this.innerItems.length<=0)return!1;let t=this.innerItems[0].visible;for(let e=1;e<this.innerItems.length;e++)if(t!=this.innerItems[e].visible)return!0;return!1}},methods:{show(){let{suggestion:t,header:e}=this.$refs;t&&(document.body.appendChild(t),e&&setTimeout(()=>{if(gt(e))return;let n=Te(e);n>=this.height?this.extendHeight=n-this.height+96:this.height-n<96&&(this.extendHeight=96-(this.height-n))},100))},hide(){let{wrap:t,suggestion:e}=this.$refs;t&&(e.classList.add("fox-table-setting-suggestion-hide"),setTimeout(()=>{t.appendChild(e),e.classList.remove("fox-table-setting-suggestion-hide")},800))},isHiddenColumn(t){return this.hiddenColumns.indexOf(t.prop)>=0},cloneItems(t){let e=[],n=[];for(let i=0;i<t.length;i++){let r={prop:t[i].prop,label:t[i].label,fixed:t[i].fixed,visible:t[i].visible};r.fixed?e.push(r):n.push(r)}return[...e,...n]},getTarget(t){let e=t.parentElement;return e.classList.contains("fox-table-setting-row")?e:e.tagName.toLowerCase()!="body"?this.getTarget(e):void 0},onDragStart(t){let n=t.target.getAttribute("my-index");t.dataTransfer.setData("index",n)},onDragOver(t){t.preventDefault();let{target:e}=t;e.getAttribute("role")||(e=this.getTarget(e)),this.mCurTarget&&this.mCurTarget!=e&&(this.mCurTarget.style.borderTop="0px"),e.style.borderTop="1px solid #e4a542",this.mCurTarget=e},onDragLeave(t){t.preventDefault(),this.mCurTarget&&(this.mCurTarget.style.borderTop="0px",this.mCurTarget=void 0)},onDrop(t){let e,{target:n}=t;n.getAttribute("my-index")?e=Number(n.getAttribute("my-index")):n.getAttribute("role")=="container"?e=n.childNodes.length:(n=this.getTarget(n),e=Number(n.getAttribute("my-index")));let i=Number(t.dataTransfer.getData("index")),r=this.innerItems[i];i<e?(this.innerItems.splice(e,0,r),this.innerItems.splice(i,1)):(this.innerItems.splice(i,1),this.innerItems.splice(e,0,r)),this.mCurTarget&&(this.mCurTarget.style.borderTop="0px",this.mCurTarget=void 0)},onSave(){let t=0;for(let n=0;n<this.innerItems.length&&!(this.innerItems[n].visible&&(t++,t>=3));n++);if(t<3){this.$message.error("\u81F3\u5C11\u9009\u4E09\u5217");return}let e=this.cloneItems(this.innerItems);this.$emit("save",e),this.$emit("update:visible",!1)},onCancel(){this.$emit("update:visible",!1)},onSelectAll(t){this.innerItems.forEach(e=>{e.fixed||(e.visible=t)}),t?this.isAllVisible=!0:this.isAllVisible=!1},onSelectItem(t,e){t.visible=e,this.onUpdateAllState()},onUpdateAllState(){let t=!0;for(let e=0;e<this.innerItems.length;e++)if(this.innerItems[e].visible==!1){t=!1;break}this.isAllVisible=t}},created(){this.isAllVisible=!0;for(let t=0;t<this.innerItems.length;t++)if(this.innerItems[t].visible==!1){this.isAllVisible=!1;break}},beforeDestroy(){this.visible&&this.$refs.suggestion&&document.body.removeChild(this.$refs.suggestion)}};var pb=function(){var e=this,n=e._self._c;return n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"wrap"},[n("div",{ref:"suggestion",staticClass:"fox-table-setting-suggestion fox-table-setting-suggestion-show",style:e.mStyle},[n("div",{ref:"header",staticClass:"table-suggestion-header"},[n("div",{staticClass:"fox-table-setting-row"},[n("span",{staticClass:"row-header-title"},[e._v(e._s(e.mHeaderTitle))]),n("div",[n("fox-button",{staticClass:"row-header-button",attrs:{type:"primary",size:"small"},on:{click:e.onSave}},[e._v("\u4FDD\u5B58")]),n("fox-button",{staticClass:"row-header-button",attrs:{size:"small"},on:{click:e.onCancel}},[e._v("\u53D6\u6D88")])],1)]),n("div",{staticClass:"fox-table-setting-row"},[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:function(i){return e.onSelectAll(i)}},model:{value:e.isAllVisible,callback:function(i){e.isAllVisible=i},expression:"isAllVisible"}},[e._v(e._s(e.mAllSelectTip))]),n("span",{staticClass:"row-all-desc"},[e._v(e._s(e.mSelectTip))])],1),e._l(e.fixedItems,function(i,r){return[n("div",{key:`lock_row_${r}`,staticClass:"fox-table-setting-row row-lock-row"},[n("div",[n("span",{staticClass:"iconfont iconsuoding row-lock-icon"}),n("span",{staticClass:"row-lock-text"},[e._v(e._s(i.label))])])])]})],2),n("div",{staticClass:"table-suggestion-content",style:e.mContentStyle,attrs:{role:"container"},on:{drop:function(i){return e.onDrop(i)},dragover:function(i){return e.onDragOver(i)},dragleave:function(i){return e.onDragLeave(i)}}},[e._l(e.innerItems,function(i,r){return[!i.fixed&&!e.isHiddenColumn(i)?n("div",{key:i.prop,staticClass:"fox-table-setting-row",attrs:{"my-name":i.prop,"my-index":r,role:"item",draggable:"true"},on:{dragstart:function(l){return e.onDragStart(l)}}},[n("el-checkbox",{on:{change:function(l){return e.onSelectItem(i,l)}},model:{value:i.visible,callback:function(l){e.$set(i,"visible",l)},expression:"item.visible"}},[e._v(e._s(i.label))]),n("span",{staticClass:"row-normal-icon iconfont icontuozhuai"})],1):e._e()]})],2)])])},mb=[],gb=D(hb,pb,mb,!1,null,null,null,null);const yb=gb.exports;const _b={name:"fox-table-empty-tip",props:{text:{type:String,required:!1,default:"\u6682\u65E0\u6570\u636E"},icon:{type:String,required:!1,default:"iconfont iconzanwushuju"}},computed:{mIconClass(){return["fox-table-empty-icon",this.icon]}}};var $b=function(){var e=this,n=e._self._c;return n("div",{staticClass:"fox-table-empty-wrap"},[n("span",{class:e.mIconClass}),n("span",{staticClass:"fox-table-empty-text"},[e._v(e._s(e.text))])])},bb=[],vb=D(_b,$b,bb,!1,null,"9cf29f02",null,null);const xb=vb.exports;function Sb(){return ye.minTableHeight||266}function Db(){return ye.tableToolBarHeight||44}function wb(){return ye.tableMarginBottom||25}function Tb(){return typeof ye.tableHeightAdjustHandler=="function"?ye.tableHeightAdjustHandler:function(e,n,i=!0){if(e.offsetParent==null)return;let r,l=n.$parent;for(;l;){if(l.$el.classList.contains("fox-page")){r=l;break}l=l.$parent}if(!r)return;let s=0,o=0,a=0,u;if(r.$children)for(let c of r.$children)c.$el.classList.contains("fox-content")?(u=bn(c.$el),a=Te(c.$el)):c.$el.classList.contains("fox-header-bar")?s=Te(c.$el):c.$el.classList.contains("fox-footer-bar")&&(o=Te(c.$el));if(!u)return;let d=bn(e),f=a-s-o-(d.y-u.y);i&&(f-=Db()),f-=wb();let g=Sb();return f<g&&(f=g),f}}function hn(t,e,n=!0){let i=Tb();return Reflect.apply(i,{},[t,e,n])}const Cb=["header","content","page-index","page-size","page-sizes","tool-layout","base-params","params","auto-refresh"],Ib=["header","content","pageIndex","pageSize","pageSizes","toolLayout","baseParams","params","autoRefresh"],kb=/<(.*)>.*</;function Dr(t){return kb.test(t)}function Pb(t,e){if(t.length==0)return-1;let n=t[0].innerHTML;if(Dr(n))return t[0].offsetWidth;let i=t[0].style.fontSize||"14px",r="";for(let l=0;l<t.length;l++){let s=t[l].innerText;t[l].setAttribute("title",s),r.length<s.length&&(r=s)}return Nn(r,i,e)+20}const Lb={name:"fox-table-item",inject:{multiLang:{default:!1}},provide(){return{groupScope:!1}},components:{"fox-table-setting-suggestion":yb,"fox-table-empty-tip":xb},props:{id:{type:String,required:!1},header:{type:[Array],required:!1},content:{type:[Array,String],required:!0,default(){return[]}},pageIndex:{type:[Number,String],required:!1,default(){return 1}},pageSize:{type:[Number,String],required:!1},pageSizes:{type:[Array],required:!1,default(){return[10,20,30,50,100,150,200]}},pageCount:{type:[Number,String],required:!1,default:6},pagerCount:{type:[Number,String],required:!1,default:7},ignoreEmptyColumn:{type:[Boolean,String],required:!1,default:!1},hiddenColumns:{type:Array,required:!1,default(){return[]}},showTool:{type:[Boolean,String],required:!1,default:!0},toolLayout:{type:[String],required:!1,default(){return"total, sizes, prev, pager, next, jumper"}},baseParams:{type:[Object],required:!1,default(){return{}}},params:{type:[Object],required:!1,default(){return{}}},autoRefresh:{type:[Boolean,String],required:!1,default(){return!1}},autoResetTop:{type:[Boolean,String],required:!1,default(){return!0}},autoResetLeft:{type:[Boolean,String],required:!1,default(){return!1}},autoSelectedIndex:{type:[Number,String],required:!1,default(){return-1}},monitorResize:{type:[Boolean],required:!1,default(){return!0}},span:{type:[Number,String],required:!1,default(){return"all"}},minSuggestionHeight:{type:[Number],required:!1,default(){return 250}},maxColumnWidth:{type:[Number,String],required:!1,default(){return 350}},minColumnWidth:{type:[Number,String],required:!1,default(){return 90}},rowClickSelect:{type:[Boolean,String],required:!1,default:!0},formatter:{type:[Function],required:!1}},data(){let t=this.$i18n?this.$i18n.locale:void 0;return{[Me]:this.$parent.groupScope,tableModel:new At(this.content,t,this),tableData:[],currentPageIndex:this.pageIndex,currentPageSize:this.pageSize||this.pageSizes[0],size:0,refreshParams:{},sortedColumns:[],columnsSizeMap:new Map,settingVisible:!1,settingOptions:{top:0,left:0,height:0,width:0},currentRow:void 0,width:0,scrollLeft:0,scrollListener:e=>{let n=e.currentTarget;n&&(this.width=n.offsetWidth,this.scrollLeft=n.scrollLeft);let{scrollTop:i,scrollHeight:r,clientHeight:l}=n,s=this.$refs.tableWrap.querySelector(".el-table__fixed-body-wrapper");!s||(r==i+l?setTimeout(()=>{if(s.scrollTop==i)return;let o=i-s.scrollTop;o>0&&o<20?s.style.marginTop=`${-o}px`:o<0&&o>-20&&(s.style.marginTop=`${o}px`)},50):s.style.marginTop&&(s.style.marginTop=""))},observer:void 0,contentChanged:!1,tableHeight:void 0,autoAdjustTableHeight:!1,emptyTableFlag:!1}},computed:{mStyle(){if(this.$parent.groupScope){const t=M.getFitProperty(this,"spacing",32),e=M.getParentDomainProperty(this,"column",1),n=M.getParentDomainProperty(this,"groupWidth",-1),i=Ge(this,n,e,this.span,t);return{width:i<=0?"100%":`${i}px`}}else return{}},mEmptyTipStyle(){if(this.width<=0)return{};const t=100;return{width:`${t}px`,"margin-left":`${(this.width-t)/2+this.scrollLeft}px`}},queryParams(){let t={};if(this.baseParams)for(let e in this.baseParams)t[e]=this.baseParams[e];if(this.params)for(let e in this.params)t[e]=this.params[e];if(this.refreshParams)for(let e in this.refreshParams)t[e]=this.refreshParams[e];return t},mTableHeight(){return this.tableHeight}},watch:{pageIndex(t){this.currentPageIndex=t},queryParams(t){this.autoRefresh==!0&&this.load()},"$i18n.locale"(){let t=this.$i18n?this.$i18n.locale:void 0;this.tableModel=new At(this.content,t,this),this.load()},content(t){let e=this.$i18n?this.$i18n.locale:void 0;this.tableModel=new At(this.content,e,this),this.contentChanged=!0,typeof t!="string"&&this.load(!1,"loading",!1)}},methods:{handleSizeChange(t){this.currentPageSize=t,this.load(),this.$emit("page-size-change",t)},handleCurrentChange(t){this.currentPageIndex=t,this.foxData.reserveSelection||(this.currentRow=void 0),this.load(),this.$emit("page-index-change",t)},load(t=!1,e="loading",n=!0){let i;t&&(i=this.$loading({target:this.$refs.tableWrap,text:e}));const r=(l,s,o,a)=>{if(this.tableData=l,this.size=o,s)this.currentPageIndex=s;else if(this.contentChanged&&this.currentPageIndex>0)try{let u=ne(this.size);if(u==0)this.currentPageIndex=1;else{let d=Math.ceil(u*1/ne(this.pageSize));this.currentPageIndex>d&&(this.currentPageIndex=d)}}catch(u){console.error(u.message,u)}if(this.contentChanged=!1,a(this.tableData),this.autoSelectedIndex!=-1&&this.tableData&&this.tableData.length>0){let u=ne(this.autoSelectedIndex),d=this.tableData[u];setTimeout(()=>{this.setCurrentRow(d)},30)}setTimeout(()=>{!he||(n&&this.resetWrapScroll(),this.adjustColumnWidth(),this.adjustTableLayout(),this.setCellTitle())},50),setTimeout(()=>{Et(this).$forceUpdate()},250)};return new Promise(l=>{this.tableModel.getPageData(this.currentPageIndex,this.currentPageSize,this.queryParams,this).then(s=>{i&&i.close();let o=s.page;typeof this.formatter=="function"&&(o=this.formatter(s.page)),Vi(o)?o.then(a=>r(a,s.index,s.totalSize,l)):r(o,s.index,s.totalSize,l)})})},getRowData(t){if(!(t<0&&t>=this.tableData.length))return this.tableData[t]},getData(){return this.tableData},reloadTable(t="adjusting",e){let{tableWrap:n}=this.$refs,i=e;(!n.style.height||n.style.height.length=="")&&(i||(i=Te(n)),n.style.height=`${i}px`);let r=this.$loading({target:this.$refs.tableWrap,text:t});this.unRegisterListeners(),this.emptyTableFlag=!0,this.$forceUpdate(),setTimeout(()=>{i!==void 0&&(n.style.height=null),this.emptyTableFlag=!1,this.$forceUpdate(),setTimeout(()=>{this.adjustTableLayout(),this.registerListeners()},100),setTimeout(()=>{r.close()},200)},300)},refresh(t,e=!1,n="loading"){return t&&(this.refreshParams={},Wt(!0,this.refreshParams,t)),this.load(e,n)},reset(){this.currentRow=void 0,this.tableData=[],this.currentPageIndex=1,this.size=0,this.contentChanged=!1,setTimeout(()=>{this.resetWrapScroll(),this.adjustColumnWidth()},50)},resetWrapScroll(){if(!he)return;let t=this.$refs.tableWrap.querySelector(".el-table__body-wrapper");t&&(Z(this.autoResetTop)&&(t.scrollTop=0),Z(this.autoResetLeft)&&(t.scrollLeft=0));let e=this.$refs.tableWrap.querySelector(".el-table__fixed-body-wrapper");e&&(e.style.marginTop="")},clearSelection(){this.currentRow=void 0,this.$refs.table.clearSelection()},toggleRowSelection(t,e){this.$refs.table.toggleRowSelection(t,e)},toggleAllSelection(){this.$refs.table.toggleAllSelection()},toggleRowExpansion(t,e){this.$refs.table.toggleRowExpansion(t,e)},setCurrentRowByTerm(t){let e=[];Array.isArray(t)?e=t:e.push(t);for(let n of e)for(let i of this.tableData){let r=!0;for(let l in n)if(i[l]!=n[l]){r=!1;break}r&&this.setCurrentRow(i)}},setCurrentRowByIndex(t){if(t<0&&t>=this.tableData.length)return;let e=this.tableData[t];this.setCurrentRow(e)},setCurrentRow(t){if(this.$refs.table.setCurrentRow(t),this.foxData.multiSelection){if(typeof this.foxData.selectable=="function"&&!Reflect.apply(this.foxData.selectable,this,[t]))return;this.$refs.table.toggleRowSelection(t)}else this.currentRow=t},getCurrentRow(){return this.currentRow},clearSort(){this.$refs.table.clearSort()},clearFilter(t){this.$refs.table.clearFilter(t)},doLayout(){this.autoAdjustTableHeight?(this.tableHeight=hn(this.$refs.tableWrap,this.$refs.table,this.showTool),this.adjustColumnWidth(),this.adjustTableLayout(),this.reloadTable("adjusting",this.tableHeight)):(this.adjustColumnWidth(),this.adjustTableLayout(),this.reloadTable("adjusting"))},sort(t,e){this.$refs.table.sort(t,e)},handleSetting(){const t=this.$refs.tableWrap;let e=Rn(t);const n=An(t);let i=Te(t);if(e<0&&(i+=e,e=0),i<this.minSuggestionHeight){let s=this.minSuggestionHeight;e=e+i-s,i=s}else e+=48,i-=48+44;const r=nt(t);let l=333;this.settingOptions={top:e,left:n+r-l,height:i,width:l},this.settingVisible=!this.settingVisible},getDataKeys(){if(this.tableData&&this.tableData.length>=1){let t=this.tableData[0],e=[];for(let n in t)e.push(n);return e}},normalSort(t,e){t==null&&(t=""),e==null&&(e="");let n;return t<e?n=-1:t>e?n=1:n=0,n},numberSort(t,e){return t==null&&(t=""),e==null&&(e=""),t=He(`${t}`),e=He(`${e}`),Bi(t,e)},installSorter(t,e,n){n.toLowerCase()=="number"?t.sortMethod=(i,r)=>this.numberSort(i[e],r[e]):t.sortMethod=(i,r)=>this.normalSort(i[e],r[e])},pretreatColumn(t){this.foxData.map=[];let e="",n=!this.foxData.adjustColumns,i=[];t=t.filter(a=>{if(!a.componentOptions)return!1;let u=a.componentOptions.propsData,d=u.prop||"";if(e+=d,u.type=="selection")Reflect.has(a.data,"key")||(a.data.key="selection"),Z(u.reserveSelection)&&(this.foxData.reserveSelection=!0),this.foxData.multiSelection=!0,this.foxData.selectable=u.selectable,this.foxData.map[d]={column:a,width:u.width||48};else{Reflect.has(a.data,"key")||(a.data.key=d),Reflect.has(u,"sortable")||(u.sortable=!0),u.sortable===!0&&(typeof u.sortMethod=="string"?this.installSorter(u,d,"number"):u.sortMethod===void 0&&this.installSorter(u,d,"normal"));let{className:f}=u;if(f){let g=`fox-col-name-${d}`;f.indexOf(g)==-1&&(f+=` ${g}`)}else f=`fox-col-name-${d}`;u.className=f,Reflect.has(u,"width")?this.foxData.map[d]={column:a,width:u.width}:(this.foxData.map[d]={column:a},n&&i.push(d))}if(this.foxData.forceUpdate&&this.columnsSizeMap.has(d)){let f=this.columnsSizeMap.get(d);u.width=f||0}return!0}),n&&(this.foxData.adjustColumns=i),this.foxData.columnNames!=e&&(this.foxData.columns=[],t.forEach(a=>{let u=a.componentOptions.propsData,d=u.prop||"",f=!(u.fixed===void 0||u.fixed===!1||u.fixed==="false"),{label:g}=u;u.type=="selection"&&(g="selection",f=!0),this.foxData.columns.push({prop:d,label:g,fixed:f,type:u.type,visible:!0})}),this.foxData.columnNames=e,this.foxData.columnsSet=!1);let r;this.ignoreEmptyColumn&&(r=this.getDataKeys());let l=r&&r.length>0,s=this.hiddenColumns&&this.hiddenColumns.length>0;if(!this.foxData.columnsSet)return(l||s)&&(t=t.filter(a=>{const u=a.componentOptions.propsData.prop;return!(l&&r.indexOf(u)==-1||s&&this.hiddenColumns.indexOf(u)!=-1)})),t;let o=[];for(let a=0;a<this.sortedColumns.length;a++){let{prop:u,visible:d}=this.sortedColumns[a];if(l&&r.indexOf(u)==-1||s&&this.hiddenColumns.indexOf(u)!=-1)continue;let f=this.foxData.map[u];!f||!f.column||d&&o.push(f.column)}return o},saveSetting(t){this.foxData.columnsSet=!0,this.foxData.columns=t,this.sortedColumns=[...t];let e={columnNames:this.foxData.columnNames,columns:this.foxData.columns};fb("table","uiData",this.id,e),this.adjustColumnWidth(),this.reloadTable()},resetSetting(){!this.id||(db("table","uiData",this.id),this.sortedColumns=[],this.foxData={map:{},columnAdjusted:!0,columnNames:"",columns:[],columnsSet:!1,selectable:void 0,forceUpdate:!1,multiSelection:!1,reserveSelection:!1,width:-1,fixedWidth:-1,fixedHeight:void 0,adjustColumns:void 0,dragendColumnMap:{}},setTimeout(()=>{this.adjustColumnWidth(),this.reloadTable()},50))},adjustColumnWidth(){if(!he)return;let{tableWrap:t}=this.$refs;if(!t)return;this.foxData.columnAdjusted=!0;let e=ne(this.maxColumnWidth),n=ne(this.minColumnWidth),i=this.$refs.tableWrap.offsetWidth-4,r;this.ignoreEmptyColumn&&(r=this.getDataKeys());let l=r&&r.length>0,s=this.hiddenColumns&&this.hiddenColumns.length>0,o=new Map,a=new Map,u=0,d=[],f=0,g=0;if(this.foxData.columns.forEach(c=>{if(!c.visible)return;let m=c.prop;if(l&&r.indexOf(m)==-1||s&&this.hiddenColumns.indexOf(m)!=-1)return;let p=this.foxData.map[m];if(!p)return;if(!(this.foxData.adjustColumns&&this.foxData.adjustColumns.indexOf(m)!=-1)){const v=ne(p.width);c.fixed&&(u+=v),f+=v,a.set(m,v);return}if(this.foxData.dragendColumnMap[m]!==void 0){const v=ne(this.foxData.dragendColumnMap[m]);o.set(m,v),c.fixed&&d.push(m),f+=v,g+=1;return}let{label:y,sortable:$}=p.column.componentOptions.propsData,_=0;$&&(_=24);let b=`td.fox-col-name-${m} > .cell`,P=t.querySelectorAll(b),L=Pb(P,t),x=Nn(y||"",t.style.fontSize,t);if(L<=0&&x<=0){this.foxData.columnAdjusted=!1;return}L+=12*2,x+=_+12*2,L<x&&(L=x),L<n?L=n:L>e&&(L=e),o.set(m,L),c.fixed&&d.push(m),f+=L,g+=1}),this.foxData.width=i,this.foxData.wrapWidth=i,g>0){let c=i-f;if(c>0){let m=Math.ceil(c*1/g);f=0;for(let[p,h]of o.entries()){let y=h+m;if(f+=m,f>=c){y-=f-c,y>h&&o.set(p,y);break}o.set(p,y)}}else this.foxData.width=f;if(o.size>0){this.foxData.forceUpdate=!0,this.columnsSizeMap=o;for(let[m,p]of a)this.columnsSizeMap.set(m,p)}}for(let c of d)u+=o.get(c);this.foxData.fixedWidth=u},adjustTableLayout(){if(!!he){for(let[t,e]of this.columnsSizeMap)this.updateColumnWidth(t,e);this.updateWrapWidth()}},updateWrapWidth(){let{tableWrap:t}=this.$refs;if(!t||this.foxData.width==-1)return;let e=t.querySelector(".el-table__header");e&&(e.style.width=`${this.foxData.width}px`);let n=t.querySelector(".el-table__body");n&&(n.style.width=`${this.foxData.width}px`);let i=t.querySelector(".el-table__empty-block");if(i&&(i.style.width=`${this.foxData.width}px`),this.foxData.width>this.foxData.wrapWidth){let r=t.querySelector(".el-table__body-wrapper.is-scrolling-none");r&&(r.classList.remove("is-scrolling-none"),r.classList.add("is-scrolling-left"));let l=t.querySelector(".el-table.el-table--enable-row-transition");l&&l.classList.add("el-table--scrollable-x")}if(this.foxData.fixedWidth>0){let r=t.querySelector(".el-table__fixed");if(r){r.style.width=`${this.foxData.fixedWidth}px`;let l=t.querySelector(".el-table.el-table--scrollable-x");if(l){let s=Te(l);this.foxData.fixedHeight=s;let o=s-11;setTimeout(()=>{r.style.height=`${o}px`},250)}}}},updateColumnWidth(t,e){if(!he)return;let{tableWrap:n}=this.$refs;if(!n)return;let i,r=n.querySelector(`.fox-col-name-${t}`);if(!!r&&(r.classList.forEach(l=>{l.indexOf("el-table")==0&&l.indexOf("column")!=-1&&(i=l)}),i)){let l=n.querySelectorAll(`colgroup>col[name=${i}]`);l&&l.forEach(s=>{s.setAttribute("width",e)})}},setCellTitle(){this.foxData.columns.forEach(t=>{if(!t.visible)return;let n=`td.fox-col-name-${t.prop} > .cell`,i=this.$refs.tableWrap.querySelectorAll(n);if(!i||i.length==0)return;let r=i[0].innerHTML;if(!Dr(r))for(let l=0;l<i.length;l++){let s=i[l].innerText;i[l].setAttribute("title",s)}})},adjustTableHeight(){this.tableHeight=hn(this.$refs.tableWrap,this.$refs.table,this.showTool)},registerListeners(){if(this.$refs.tableWrap){let t=this.$refs.tableWrap.querySelector(".el-table__body-wrapper");t&&this.monitorResize&&setTimeout(()=>{if(this.width=t.offsetWidth,t.addEventListener("scroll",this.scrollListener),window.ResizeObserver){let e=null;this.observer=new window.ResizeObserver(()=>{if(!this.emptyTableFlag&&t){if(gt(t)||t.offsetWidth===this.width)return;this.width=t.offsetWidth,e&&clearTimeout(e),e=setTimeout(()=>{e=null,this.adjustColumnWidth(),this.adjustTableLayout()},250)}}),this.observer.observe(t)}},50)}},unRegisterListeners(){if(this.$refs.tableWrap){let t=this.$refs.tableWrap.querySelector(".el-table__body-wrapper");t&&t.removeEventListener("scroll",this.scrollListener)}this.observer&&(this.observer.disconnect(),this.observer=null)}},beforeCreate(){this.foxData={map:{},columnAdjusted:!0,columnNames:"",columns:[],columnsSet:!1,selectable:void 0,forceUpdate:!1,multiSelection:!1,reserveSelection:!1,wrapWidth:-1,width:-1,fixedWidth:-1,fixedHeight:void 0,adjustColumns:void 0,dragendColumnMap:{}}},created(){let t=this.$i18n?this.$i18n.locale:void 0;if(this.tableModel=new At(this.content,t,this),(this.autoRefresh==!0||Array.isArray(this.content))&&this.load(),this.id){let e=cb("table","uiData",this.id);e&&e.columns&&(this.foxData.columnNames=e.columnNames,this.foxData.columns=e.columns,this.foxData.columnsSet=!0,this.sortedColumns=[...e.columns])}},mounted(){let t=Z(this.autoRefresh);this.autoAdjustTableHeight?setTimeout(()=>{this.tableHeight=hn(this.$refs.tableWrap,this.$refs.table,this.showTool),t||(this.adjustColumnWidth(),this.adjustTableLayout(),this.registerListeners())},50):t?this.registerListeners():setTimeout(()=>{this.adjustColumnWidth(),this.adjustTableLayout(),this.registerListeners()},50)},beforeDestroy(){this.unRegisterListeners(),this.foxData=null},updated(){this.$refs.tableWrap&&gt(this.$refs.tableWrap)&&(this.settingVisible=!1),this.foxData.columnAdjusted===!1&&setTimeout(()=>{this.adjustColumnWidth(),this.adjustTableLayout()},50)},render(t){if(this.emptyTableFlag)return t("div",{ref:"tableWrap",class:{"fox-table-wrap":!0},style:this.mStyle},[]);let e={};ee(this,e,this.$attrs,Cb);let n={};if(ue(this,n,this.$props,Ib),n.data=this.tableData,n.size=this.mSize,!Reflect.has(e,"border")&&!n.border){let b=!1;if(e["header-cell-class-name"]){let P=e["header-cell-class-name"];e["header-cell-class-name"]=`${P} fox-table-header-cell`,b=!0}if(!b&&n["header-cell-class-name"]){let P=n["header-cell-class-name"];typeof P=="object"?P["fox-table-header-cell"]=!0:n["header-cell-class-name"]=`${P} fox-table-header-cell`,b=!0}b||(e["header-cell-class-name"]="fox-table-header-cell")}let i={};Q(this,i,this.$listeners,["row-click","selection-change","header-dragend","sort-change","current-change"]);let r=this.$listeners["selection-change"];i["selection-change"]=b=>{this.foxData.multiSelection&&(this.currentRow=b),typeof r=="function"&&r(b)};let l=this.$listeners["row-click"];i["row-click"]=b=>{Z(this.rowClickSelect)&&this.setCurrentRow(b),typeof l=="function"&&l(b)};let s=this.$listeners["current-change"];i["current-change"]=(b,P)=>{this.currentRow=b,typeof s=="function"&&s(b,P)};let o=this.$listeners["sort-change"];i["sort-change"]=b=>{typeof o=="function"&&o(b),this.$nextTick(()=>{this.adjustTableLayout(),this.setCellTitle()})};let a=this.$listeners["header-dragend"];i["header-dragend"]=(b,P,L,x)=>{typeof a=="function"&&a(b,P,L,x),L.property&&(this.foxData.dragendColumnMap[L.property]=b,setTimeout(()=>{this.adjustColumnWidth(),this.adjustTableLayout()},100))};let u=n.height||e.height;u&&u==="stretch"&&(delete e.height,n.height=this.mTableHeight,this.autoAdjustTableHeight=!0);let d={attrs:e,props:n,on:i,ref:"table",style:{width:"100%"}};if(this.$scopedSlots.empty)d.scopedSlots={empty:this.$scopedSlots.empty};else{let b=e["empty-text"]||n.emptyText;b||(b="\u6682\u65E0\u6570\u636E",this.multiLang&&(b=this.$langTranslator.translate(this,b))),d.scopedSlots={empty:()=>t("fox-table-empty-tip",{style:this.mEmptyTipStyle,props:{text:b}})}}let f;if(this.$slots.default){let b=this.pretreatColumn(this.$slots.default);d.scopedSlots||(d.scopedSlots={}),d.scopedSlots.default=()=>b,f=t("el-table",d)}else if(this.header){let b=[];for(let L of this.header){let x={attrs:{prop:L.key,label:L.text}};Y(L.width)&&(x.attrs.width=L.width),b.push(t("el-table-column",x))}let P=this.pretreatColumn(b);f=t("el-table",d,P)}let g={props:{"current-page":Number(this.currentPageIndex),"page-sizes":this.pageSizes,"page-size":Number(this.currentPageSize),"page-count":Number(`${this.pageCount}`),"pager-count":Number(`${this.pagerCount}`),layout:this.toolLayout,total:Number(this.size)},on:{"size-change":this.handleSizeChange,"current-change":this.handleCurrentChange}},m=[t("el-pagination",g)];if(this.id){let b={class:{"fox-table-tool-setting":!0}};b.on={click:this.handleSetting};let P=t("span",{class:{"el-icon-setting":!0,"fox-table-tool-icon":!0}}),L="\u8868\u683C\u8BBE\u7F6E";this.multiLang&&(L=this.$langTranslator.translate(this,L));let x=t("span",{class:{"fox-table-tool-text":!0}},[L]),v=t("div",b,[P,x]);m.push(v)}let h=t("div",{class:{"fox-table-tools":!0}},m),y={class:{"fox-table-tools-wrap":!0}};Z(this.showTool)||(y.style={display:"none"});let $=t("div",y,[h]),_=[f,$];if(this.id){let b={props:{visible:this.settingVisible,top:this.settingOptions.top,left:this.settingOptions.left,width:this.settingOptions.width,height:this.settingOptions.height,items:this.foxData.columns,hiddenColumns:this.hiddenColumns},on:{"update:visible":L=>{this.settingVisible=L},save:this.saveSetting}},P=t("fox-table-setting-suggestion",b);_.push(P)}return t("div",{ref:"tableWrap",class:{"fox-table-wrap":!0},style:this.mStyle},_)}},Nb=null,Mb=null;var Rb=D(Lb,Nb,Mb,!1,null,null,null,null);const Ab=Rb.exports;class wr{constructor(e,n){this.src=e,this.scope=Hn(n)}getAPI(){return De("getSelectItems",this.scope)}load(e,n,i){let{src:r}=this;if(Ht(r))return Promise.resolve(r);if(typeof r=="function"){const l=qe(i);return Reflect.apply(r,this,[e,n,l,i])}if(r.indexOf("@")==0){let l;return n?l=`static/data-source/${n}/${r.substring(1)}`:l=`static/data-source/${r.substring(1)}`,new Promise((o,a)=>{fox.ajax({url:l,async:!0,type:"GET",dataType:"json",cache:!1,data:{},success:function(u,d,f){o(u)},error:function(u,d){a(d)}})})}else{if(r.indexOf("http://")==0||r.indexOf("https://")==0)return new Promise((s,o)=>{fox.ajax({url:r,async:!0,type:"GET",dataType:"json",cache:!1,data:{lang:n,params:e},success:function(a,u,d){s(a)},error:function(a,u){o(u)}})});{let l=this.getAPI();if(l){const s=qe(i);return Reflect.apply(l,this,[r,e,n,s,i])}else{let s=r;return n?s=`${s}.do?lang=${n}`:s=`${s}.do`,new Promise((a,u)=>{fox.service.request({path:s,dataType:"json",async:!0,cover:!1,data:{lang:n,params:e},callback(d,f,g){d==0?(typeof g=="string"&&(g=JSON.parse(g)),a(g.items)):a(f)}})})}}}}}const Vb="el-radio-group",Fb={name:"fox-radio-item",mixins:[ce],props:{value:{required:!1},source:{type:[Array,String,Function],required:!1},valueType:{type:String,required:!1,default(){return"value"}},textName:{type:[String],required:!1,default(){return"text"}},valueName:{type:[String],required:!1,default(){return"value"}},ctype:{type:[String],required:!1,default(){return"normal"}},itemOptions:{type:[Object,Function],required:!1},params:{type:[String,Object],required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value,items:[]}},created(){this.source||(this.innerLoading=!1),this.loadDataSource(this.source)},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t)},source(t,e){this.loadDataSource(t)},"$i18n.locale"(){this.loadDataSource(this.source)}},computed:{mItems(){return this.items===void 0?[]:this.formatDataSource(this.items)},mValue(){if(this.innerValue===void 0)return"";if(this.valueType==="json")if(this.multiple){let t=[];for(let e of this.innerValue)t.push(e.value);return t.length==0?"":t}else return typeof this.innerValue=="string"?this.innerValue:this.innerValue.value;else if(this.valueType=="text")if(this.multiple){let t;typeof this.innerValue=="string"?t=this.innerValue.split(","):t=this.innerValue;let e=[];for(let n of t){let i=this.searchItemByText(n,this.mItems);i&&e.push(i.value)}return e.length==0?"":e}else{let t=this.searchItemByText(this.innerValue,this.mItems);return t?t.value:""}else{if(typeof this.innerValue=="string")if(this.multiple&&this.innerValue.length>0){let t=this.innerValue.split(",");return t.length===0?"":t}else return this.innerValue;return this.innerValue}}},methods:{onChange(t){if(this.valueType==="value"){this.innerValue=t,this.$emit("change",t),this.$nextTick(()=>{this.$emit("setValue",t)});return}let e=this.searchItemByValue(t,this.mItems);if(e)if(this.valueType==="text")this.innerValue=e[this.textName],this.$emit("change",this.innerValue);else{let n={};for(let i in e)n[i]=e[i];this.innerValue=n,this.$emit("change",n)}else this.$emit("change","");this.$nextTick(()=>{this.$emit("setValue",this.innerValue)})},getItemText(t){return t[this.textName]},getItemValue(t){return t[this.valueName]},loadDataSource(t){if(!t)return;let e=new wr(t,this),n=this.$i18n?this.$i18n.locale:void 0,i;this.params&&(typeof this.params=="object"?i={...this.params}:i=this.params),e.load(i,n,this).then(r=>{this.items=r},r=>{console.error("radio\u6570\u636E\u6E90\u52A0\u8F7D\u5931\u8D25")})},formatDataSource(t){let e=[];for(let n=0;n<t.length;n++){let i=t[n];if(typeof i=="object"){if(i[this.textName]!==void 0&&i[this.valueName]!=null)e.push(i);else if(i[this.textName]!=null){let r={};r[this.textName]=i[this.textName],r[this.valueName]=i[this.valueName],e.push(r)}}else{let r={};r[this.textName]=i,r[this.valueName]=i,e.push(r)}}return e},searchItemByValue(t,e){let n;for(let i of e)if(i[this.valueName]===t&&(n=i),n)break;return n},searchItemByText(t,e){let n;for(let i of e)if(i[this.textName]===t&&(n=i),n)break;return n},createChildren(t){let e=[];for(let n=0;n<this.mItems.length;n++){let i=this.mItems[n],r={props:{},attrs:{},class:{},on:{},nativeOn:{}},l={};typeof this.itemOptions=="function"?l=Reflect.apply(this.itemOptions,null,[i,n]):typeof this.itemOptions=="object"&&Object.assign(l,this.itemOptions??{}),typeof l.className=="string"&&(r.class[l.className]=!0);const s=l.disabled===!0?l.disabled:this.mDisabled;r.props.disabled=s;let o=this.getItemValue(i);r.props.label=o,r.props.size=this.mSize;let a=this.getItemText(i),u;this.ctype=="button"?(r.nativeOn.click=()=>{this.onChange(o)},u=t("el-radio-button",r,a)):this.ctype=="border-button"?(r.attrs.border="",r.on.change=()=>{this.onChange(o)},u=t("el-radio",r,a)):(r.on.change=()=>{this.onChange(o)},u=t("el-radio",r,a)),e.push(u)}return e}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let c=this.$slots.default[0];if(this.multiLang){let{text:m}=c;m&&(m=m.trim()).length>0&&(m=this.$langTranslator.translate(this,m),e.attrs.title=m,m=B(m,this.mLabelMaxCharCount),n=t("div",e,[m]))}if(!n){let{text:m}=c;m&&(m=m.trim()).length>0?(e.attrs.title=m,m=B(m,this.mLabelMaxCharCount),n=t("div",e,[m])):c.tag&&(n=t("div",e,this.$slots.default))}}else{let c=this.label;c&&(c=c.trim()).length>0&&(this.multiLang&&(c=this.$langTranslator.translate(this,c)),e.domProps={innerHTML:B(c,this.mLabelMaxCharCount)},n=t("div",e))}let i=this.createChildren(t),r={};ee(this,r,this.$attrs);let l={};ue(this,l,this.$props),l.value=this.mValue,l.disabled=this.mDisabled||this.mReadonly,l.size=this.mSize;let a=[t(Vb,{attrs:r,props:l,class:{"fox-radio-group":!0}},i)],u=this.installTip(t);u.type!=="node"&&a.push(u.node);let d={class:{"el-form-item__content":!0},style:this.mInputStyle},f=t("div",d,a),g={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return u.type==="error"?g.class["is-error"]=!0:u.type==="warn"?g.class["is-warn"]=!0:u.type==="info"&&(g.class["is-info"]=!0),le(this,g),this.componentData(this,g,"radio"),n?t("div",g,[n,f]):t("div",g,[f])}},Eb=null,Ob=null;var jb=D(Fb,Eb,Ob,!1,null,"8a7a4679",null,null);const qb=jb.exports;const Hb={name:"fox-checkboxs",props:{value:{required:!1,type:Array},source:{type:[Array,String,Function],required:!1},textName:{type:[String],required:!1,default(){return"text"}},valueName:{type:[String],required:!1,default(){return"value"}},valueType:{type:String,required:!1,default(){return"value"}},ctype:{type:[String],required:!1,default(){return"normal"}},min:{type:[Number],required:!1},max:{type:[Number],required:!1},textColor:{type:String,required:!1,default:"#ffffff"},fill:{type:String,required:!1,default:"#409EFF"},itemOptions:{type:[Function,Object],required:!1},disabled:{type:[Boolean],required:!1},params:{type:[String,Object],required:!1}},model:{prop:"value",event:"change"},created(){this.source||(this.innerLoading=!1),this.loadDataSource(this.source)},data(){return{innerLoading:!0,innerValue:this.toInputValue(this.value),items:[]}},watch:{value(t,e){let n=this.toInputValue(t);this.isSame(n,this.innerValue)||(this.innerValue=n)},innerValue(t,e){this.toResValue(t)},source(t,e){this.loadDataSource(t)},"$i18n.locale"(){this.loadDataSource(this.source)},mItems(t){this.innerValue=this.toInputValue(this.value)}},computed:{mItems(){return this.innerLoading||this.items===void 0?[]:this.formatDataSource(this.items)}},methods:{getItemOptions(t,e){let n={};return typeof this.itemOptions=="function"?n=Reflect.apply(this.itemOptions,null,[t,e]):typeof this.itemOptions=="object"&&Object.assign(n,this.itemOptions??{}),n},getItemClasses(t,e){return this.getItemOptions(t,e).className},getItemDisabled(t,e){let n=this.getItemOptions(t,e);return n.disabled===!0?n.disabled:this.disabled},isSame(t,e){if(t===e)return!0;if(!Array.isArray(t)||!Array.isArray(e)||t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0},onFocus(t){Be(this,"focus",t)},onBlur(t){Be(this,"blur",t)},toInputValue(t){if(this.innerLoading||this.innerLoading==null)return[];if(this.valueType==="json"){let e=[];for(let n of t)e.push(n.value);return e}else if(this.valueType=="text"){let e=t,n=[];for(let i of e){let r=this.searchItemByText(i,this.mItems);r&&n.push(r.value)}return n}else return t},toResValue(t){if(this.valueType==="value"){this.$emit("change",t);return}let e=[],n=t;for(let i of n){let r=this.searchItemByValue(i,this.mItems);if(r)if(this.valueType==="text")e.push(r[this.textName]);else{let l={};for(let s in r)l[s]=r[s];e.push(l)}}this.$emit("change",e)},getItemText(t){return t[this.textName]},getItemValue(t){return t[this.valueName]},loadDataSource(t){if(!t)return;let e=new wr(t,this),n=this.$i18n?this.$i18n.locale:void 0,i;this.params&&(typeof this.params=="object"?i={...this.params}:i=this.params),e.load(i,n,this).then(r=>{this.innerLoading=!1,this.items=r},r=>{console.error("checkbox\u6570\u636E\u6E90\u52A0\u8F7D\u5931\u8D25")})},formatDataSource(t){let e=[];for(let n=0;n<t.length;n++){let i=t[n];if(typeof i=="object"){if(i[this.textName]!==void 0&&i[this.valueName]!=null)e.push(i);else if(i[this.textName]!=null){let r={};r[this.textName]=i[this.textName],r[this.valueName]=i[this.valueName],e.push(r)}}else{let r={};r[this.textName]=i,r[this.valueName]=i,e.push(r)}}return e},searchItemByValue(t,e){let n;for(let i of e)if(i[this.valueName]===t&&(n=i),n)break;return n},searchItemByText(t,e){let n;for(let i of e)if(i[this.textName]===t&&(n=i),n)break;return n}}};var Wb=function(){var e=this,n=e._self._c;return n("fox-checkbox-group",{attrs:{max:e.max,min:e.min,"text-color":e.textColor,fill:e.fill},model:{value:e.innerValue,callback:function(i){e.innerValue=i},expression:"innerValue"}},[e._l(e.mItems,function(i,r){return[e.ctype=="button"?[n("fox-checkbox-button",{key:`ck_btn_${r}`,class:e.itemClass,attrs:{disabled:e.disabled,label:e.getItemValue(i)}},[e._v(e._s(e.getItemText(i)))])]:e.ctype=="border-button"?[n("fox-checkbox",{key:`ck_bb_${r}`,class:e.getItemClasses(i,r),attrs:{disabled:e.getItemDisabled(i,r),label:e.getItemValue(i),border:""}},[e._v(e._s(e.getItemText(i)))])]:[n("fox-checkbox",{key:`ck_${r}`,class:e.getItemClasses(i,r),attrs:{disabled:e.getItemDisabled(i,r),label:e.getItemValue(i)}},[e._v(e._s(e.getItemText(i)))])]]})],2)},Bb=[],Kb=D(Hb,Wb,Bb,!1,null,"93292c5e",null,null);const zb=Kb.exports;const Yb="fox-checkboxs",Ub={name:"fox-checkbox-item",mixins:[ce],props:{value:{required:!1,type:Array},source:{type:[Array,String,Function],required:!1},valueType:{type:String,required:!1,default(){return"value"}},textName:{type:[String],required:!1,default(){return"text"}},valueName:{type:[String],required:!1,default(){return"value"}},ctype:{type:[String],required:!1,default(){return"normal"}},itemOptions:{type:[Object,Function],required:!1}},model:{prop:"value",event:"change"},data(){return{}},methods:{onChange(t){this.$emit("change",t),this.$nextTick(()=>{this.$emit("setValue",t)})}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let c=this.$slots.default[0];if(this.multiLang){let{text:m}=c;m&&(m=m.trim()).length>0&&(m=this.$langTranslator.translate(this,m),e.attrs.title=m,m=B(m,this.mLabelMaxCharCount),n=t("div",e,[m]))}if(!n){let{text:m}=c;m&&(m=m.trim()).length>0?(e.attrs.title=m,m=B(m,this.mLabelMaxCharCount),n=t("div",e,[m])):c.tag&&(n=t("div",e,this.$slots.default))}}else{let c=this.label;c&&(c=c.trim()).length>0&&(this.multiLang&&(c=this.$langTranslator.translate(this,c)),e.domProps={innerHTML:B(c,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs);let r={};ue(this,r,this.$props),r.value=this.value,r.disabled=this.mDisabled||this.mReadonly,r.size=this.mSize;let l={};Q(this,l,this.$listeners,["blur","focus","change","input"]),l.blur=this.onBlur,l.focus=this.onFocus,l.change=this.onChange;let s={attrs:i,props:r,on:l,class:{"fox-checkbox-group":!0}};this.itemOptions&&(s.props["item-options"]=this.itemOptions);let a=[t(Yb,s)],u=this.installTip(t);u.type!=="node"&&a.push(u.node);let d={class:{"el-form-item__content":!0},style:this.mInputStyle},f=t("div",d,a),g={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return u.type==="error"?g.class["is-error"]=!0:u.type==="warn"?g.class["is-warn"]=!0:u.type==="info"&&(g.class["is-info"]=!0),le(this,g),this.componentData(this,g,"checkbox"),n?t("div",g,[n,f]):t("div",g,[f])}},Gb=null,Xb=null;var Zb=D(Ub,Gb,Xb,!1,null,"64415ea7",null,null);const Jb=Zb.exports,Qb="fox-number-item",ev="fox-text-item",tv={name:Qb,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let{data:i}=e;return!i.attrs&&(i.attrs={}),i.attrs.type="number",n(ev,i,e.children)}},nv=null,iv=null;var rv=D(tv,nv,iv,!1,null,null,null,null);const lv=rv.exports,sv="el-switch",av={name:"fox-switch-item",mixins:[ce],props:{value:{required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t)}},methods:{onChange(t){this.innerValue=t,this.$emit("change",t)}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let m=this.$slots.default[0];if(this.multiLang){let{text:p}=m;p&&(p=p.trim()).length>0&&(p=this.$langTranslator.translate(this,p),e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p]))}if(!n){let{text:p}=m;p&&(p=p.trim()).length>0?(e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p])):m.tag&&(n=t("div",e,this.$slots.default))}}else{let m=this.label;m&&(m=m.trim()).length>0&&(this.multiLang&&(m=this.$langTranslator.translate(this,m)),e.domProps={innerHTML:B(m,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs);let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled||this.mReadonly,r.size=this.mSize;let l={};Q(this,l,this.$listeners,["blur","focus","change","input"]),l.blur=this.onBlur,l.focus=this.onFocus,l.change=this.onChange,l.input=this.onChange;let s={attrs:i,props:r,on:l},o=`${sv}`,u=[t(o,s)],d=this.installTip(t);d.type!=="node"&&u.push(d.node);let f={class:{"el-form-item__content":!0,"fox-switch-form-item_content":!0},style:this.mInputStyle},g=t("div",f,u),c={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return d.type==="error"?c.class["is-error"]=!0:d.type==="warn"?c.class["is-warn"]=!0:d.type==="info"&&(c.class["is-info"]=!0),le(this,c),this.componentData(this,c,"switch"),n?t("div",c,[n,g]):t("div",c,[g])}},ov=null,uv=null;var cv=D(av,ov,uv,!1,null,null,null,null);const fv=cv.exports,dv="el-slider",hv={name:"fox-slider-item",mixins:[ce],props:{value:{required:!1}},model:{prop:"value",event:"change"},data:function(){return{innerValue:this.value}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t)}},methods:{onChange(t){this.innerValue=t,this.$emit("change",t)}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let m=this.$slots.default[0];if(this.multiLang){let{text:p}=m;p&&(p=p.trim()).length>0&&(p=this.$langTranslator.translate(this,p),e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p]))}if(!n){let{text:p}=m;p&&(p=p.trim()).length>0?(e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p])):m.tag&&(n=t("div",e,this.$slots.default))}}else{let m=this.label;m&&(m=m.trim()).length>0&&(this.multiLang&&(m=this.$langTranslator.translate(this,m)),e.domProps={innerHTML:B(m,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs);let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled||this.mReadonly,r.size=this.mSize;let l={};Q(this,l,this.$listeners,["blur","focus","change","input"]),l.blur=this.onBlur,l.focus=this.onFocus,l.change=this.onChange,l.input=this.onChange;let s={attrs:i,props:r,on:l,class:{"fox-match-parent":!0}},o=`${dv}`,u=[t(o,s)],d=this.installTip(t);d.type!=="node"&&u.push(d.node);let f={class:{"el-form-item__content":!0},style:this.mInputStyle},g=t("div",f,u),c={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return d.type==="error"?c.class["is-error"]=!0:d.type==="warn"?c.class["is-warn"]=!0:d.type==="info"&&(c.class["is-info"]=!0),le(this,c),this.componentData(this,c,"slider"),n?t("div",c,[n,g]):t("div",c,[g])}},pv=null,mv=null;var gv=D(hv,pv,mv,!1,null,null,null,null);const yv=gv.exports,_v="el-rate",$v={name:"fox-rate-item",mixins:[ce],props:{value:{required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t){this.innerValue=t,this.$emit("change",t)}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let m=this.$slots.default[0];if(this.multiLang){let{text:p}=m;p&&(p=p.trim()).length>0&&(p=this.$langTranslator.translate(this,p),e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p]))}if(!n){let{text:p}=m;p&&(p=p.trim()).length>0?(e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p])):m.tag&&(n=t("div",e,this.$slots.default))}}else{let m=this.label;m&&(m=m.trim()).length>0&&(this.multiLang&&(m=this.$langTranslator.translate(this,m)),e.domProps={innerHTML:B(m,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs);let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled,r.readonly=this.mReadonly,r.size=this.mSize;let l={};Q(this,l,this.$listeners,["blur","focus","change","input"]),l.blur=this.onBlur,l.focus=this.onFocus,l.change=this.onChange,l.input=this.onChange;let s={attrs:i,props:r,on:l,class:{"fox-match-parent":!0}},o=`${_v}`,u=[t(o,s)],d=this.installTip(t);d.type!=="node"&&u.push(d.node);let f={class:{"el-form-item__content":!0},style:this.mInputStyle},g=t("div",f,u),c={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return d.type==="error"?c.class["is-error"]=!0:d.type==="warn"?c.class["is-warn"]=!0:d.type==="info"&&(c.class["is-info"]=!0),le(this,c),this.componentData(this,c,"rate"),n?t("div",c,[n,g]):t("div",c,[g])}},bv=null,vv=null;var xv=D($v,bv,vv,!1,null,null,null,null);const Sv=xv.exports;let Dv={...qn,modelValue:[Array,String],visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object};const jt=(t,e,n)=>t.map(i=>{const{value:r="value",text:l="text",children:s="children"}=n??{},{[r]:o,[l]:a,[s]:u,...d}=i,f={loading:!1,...d,level:e?(e&&e.level||0)+1:0,value:o,text:a,children:u,_parent:e};return f.children&&f.children.length&&(f.children=jt(f.children,f,n)),f}),Tr=(t,e)=>{let n=0,i;for(;(i=t[n++])&&e(i)!==!0;)i.children&&i.children.length&&Tr(i.children,e)},wv={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Tv=(t,e)=>{const n={...wv,...e||{}},{topId:i,idKey:r,pidKey:l,sortKey:s}=n;let o=[],a={};return t.forEach(u=>{u={...u};const{[r]:d,[l]:f}=u,g=a[f]=a[f]||[];!o.length&&f===i&&(o=g),g.push(u),u.children=a[d]||(a[d]=[])}),s&&Object.keys(a).forEach(u=>{a[u].length>1&&a[u].sort((d,f)=>d[s]-f[s])}),a=null,o};class Ti{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=jt(e,null,this.config)}updateChildren(e,n){n?n.children=jt(e,n,this.config):this.nodes=jt(e,null,this.config)}getNodeByValue(e){let n;return Tr(this.nodes,i=>i.value===e?(n=i,!0):!1),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let i=this.nodes;for(;i&&i.length;){const r=i.find(l=>l.value===e[l.level]);if(!r)break;n.push(r),i=r.children}return n}isLeaf(e,n){const{leaf:i,children:r}=e,l=Array.isArray(r)&&Boolean(r.length);return i||!l&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:r}=e;return Array.isArray(r)&&Boolean(r.length)}}const Cv=S.defineComponent({name:"tab-pane",props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){const n=S.getCurrentInstance(),i=S.inject("tabsState");return i.addTabPane(n?.proxy,t.title,t.paneKey,t.disabled),S.onUnmounted(()=>{i.removeTabPane(n?.proxy)}),S.watch([()=>t.title,()=>t.paneKey,()=>t.disabled],([r,l,s])=>{i.updateTabPane(n?.proxy,r,l,s)}),{activeKey:i.activeKey,autoHeight:i.autoHeight}}});var Iv=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{staticClass:"fox-tabpane",class:{inactive:e.paneKey!=e.activeKey&&e.autoHeight}},[e._t("default")],2)},kv=[],Pv=D(Cv,Iv,kv,!1,null,null,null,null);const Lv=Pv.exports,Nv={props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],model:{prop:"modelValue",event:"update:modelValue"},setup(t,{emit:e,slots:n}){const i=S.ref(null);let r;const l=S.shallowRef([]),s={activeKey:S.computed(()=>t.modelValue),autoHeight:S.computed(()=>t.autoHeight),addTabPane:(y,$,_,b)=>{const P=[...l.value];P.push({proxy:y,title:$,paneKey:_,disabled:b}),l.value=P},updateTabPane:(y,$,_,b)=>{const P=[...l.value],L=P.findIndex(x=>x.proxy===y);if(L!==-1){const x=P[L];x.title=$??x.title,x.paneKey=_===void 0||_===""?x.paneKey:_,x.disabled=b??x.disabled,l.value=P}},removeTabPane:y=>{const $=[...l.value],_=$.findIndex(b=>b.proxy===y);_!==-1&&$.splice(_,1),l.value=$}};S.provide("tabsState",s);const o=S.ref(t.modelValue||0),a=y=>{let $=l.value.findIndex(_=>_.paneKey==y);$!==-1?o.value=$:o.value=0},u=(y=l.value)=>{a(t.modelValue)},d=y=>{r=y.fixed};S.watch(l,y=>{u(y)});const f=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;S.watch(()=>t.modelValue,y=>{if(a(y),r){let $=dr(i.value).top+f(),_=Math.ceil($-t.top);window.scrollTo({top:_,behavior:"smooth"})}}),S.onMounted(u),S.onActivated(u);const g=S.computed(()=>({transform:t.direction=="horizontal"?`translate3d(-${o.value*100}%, 0, 0)`:`translate3d( 0,-${o.value*100}%, 0)`,transitionDuration:`${t.animatedTime}ms`})),c=S.computed(()=>({background:t.background})),m=S.computed(()=>({color:t.type=="smile"?t.color:"",background:t.type=="line"?t.color:""})),p=S.computed(()=>({marginLeft:dt(t.titleGutter),marginRight:dt(t.titleGutter)}));return{tabPaneList:l,contentStyle:g,tabsNavStyle:c,titleStyle:p,tabsActiveStyle:m,container:i,onStickyScroll:d,...{tabChange:(y,$)=>{e("click",y),!y.disabled&&(o.value=$,e("update:modelValue",y.paneKey),e("change",y))}}}}},Mv=S.defineComponent(Nv);var Rv=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{ref:"container",staticClass:"fox-tabs",class:[e.direction],attrs:{id:"container"}},[n("div",{staticClass:"fox-tabs__titles",class:{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size},style:e.tabsNavStyle},[e.$slots.titles?e._t("titles"):e._l(e.tabPaneList,function(i,r){return n("div",{key:i.paneKey,staticClass:"fox-tabs__titles-item",class:{active:i.paneKey==e.modelValue,disabled:i.disabled},style:e.titleStyle,on:{click:function(l){return e.tabChange(i,r)}}},[e.type=="line"?n("div",{staticClass:"fox-tabs__titles-item__line",style:e.tabsActiveStyle}):e._e(),e.type=="smile"?n("div",{staticClass:"fox-tabs__titles-item__smile",style:e.tabsActiveStyle},[n("fox-ext-icon",{attrs:{color:e.color,name:"joy-smile"}})],1):e._e(),n("div",{staticClass:"fox-tabs__titles-item__text",class:{ellipsis:e.ellipsis}},[e._v(e._s(i.title)+" ")])])})],2),n("div",{staticClass:"fox-tabs__content",style:e.contentStyle},[e._t("default")],2)])},Av=[],Vv=D(Mv,Rv,Av,!1,null,null,null,null);const Fv=Vv.exports,Ev=S.defineComponent({components:{TabPane:Lv,Tabs:Fv},props:{visible:Boolean,modelValue:[Array,String],options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:Object},emits:["update:modelValue","change","pathChange"],model:{prop:"modelValue",event:"update:modelValue"},setup(t,{emit:e}){const n=S.computed(()=>({lazy:t.lazy,lazyLoad:t.lazyLoad,valueKey:t.valueKey,textKey:t.textKey,childrenKey:t.childrenKey,convertConfig:t.convertConfig})),i=S.ref(0),r=S.ref(!1),l=S.ref(t.modelValue),s=S.ref(new Ti([],{})),o=S.ref([]),a=S.computed(()=>n.value.lazy&&Boolean(n.value.lazyLoad)),u=new Map;let d;const f=async()=>{u.clear(),o.value=[],i.value=0,r.value=!1,d=null;let{options:h}=t;n.value.convertConfig&&(h=Tv(h,n.value.convertConfig)),s.value=new Ti(h,{value:n.value.valueKey,text:n.value.textKey,children:n.value.childrenKey}),a.value&&!s.value.nodes.length&&await c({root:!0,loading:!0,text:"",value:""}),o.value=[{nodes:s.value.nodes,selectedNode:null}],g()},g=async()=>{const h=l.value;if(h===void 0||!s.value.nodes.length)return;if(h.length===0){i.value=0,o.value=[{nodes:s.value.nodes,selectedNode:null}];return}let y=h;if(a.value&&Array.isArray(h)&&h.length){y=[];let $=s.value.nodes.find(_=>_.value===h[0]);if($){y=[$.value],r.value=!0;const _=await h.slice(1).reduce(async(b,P)=>{const L=await b;await c(L);const x=L?.children?.find(v=>v.value===P);return x&&y.push(P),Promise.resolve(x)},Promise.resolve($));await c(_),r.value=!1}}y.length&&h===t.modelValue&&s.value.getPathNodesByValue(y).map((_,b)=>{i.value=b,p.handleNode(_,!0)})},c=async h=>{if(!h)return;if(!n.value.lazyLoad){h.leaf=!0;return}if(s.value.isLeaf(h,a.value)||s.value.hasChildren(h,a.value))return;h.loading=!0;const y=h.root?null:h;let $=u.get(h);$||($=new Promise(b=>{n.value.lazyLoad?.(h,b)}),u.set(h,$));const _=await $;Array.isArray(_)&&_.length>0?s.value.updateChildren(_,y):h.leaf=!0,h.loading=!1,u.delete(h)},m=h=>{const y=h.map($=>$.value);l.value=y,e("change",y,h),e("update:modelValue",y,h)},p={async handleNode(h,y){const{disabled:$,loading:_}=h;if(!(!y&&$||!o.value[i.value])){if(s.value.isLeaf(h,a.value)){if(h.leaf=!0,o.value[i.value].selectedNode=h,o.value=o.value.slice(0,h.level+1),!y){const b=o.value.map(P=>P.selectedNode);m(b),e("pathChange",b)}return}if(s.value.hasChildren(h,a.value)){const b=h.level+1;if(o.value[i.value].selectedNode=h,o.value=o.value.slice(0,b),o.value.push({nodes:h.children||[],selectedNode:null}),setTimeout(()=>{i.value=b},0),!y){const P=o.value.map(L=>L.selectedNode);e("pathChange",P)}return}d=h,!_&&(await c(h),d===h&&(o.value[i.value].selectedNode=h,p.handleNode(h,y)))}},handleTabClick(h){d=null,i.value=Number(h.paneKey)},formatTabTitle(h){return h.selectedNode?h.selectedNode.text:"\u9009\u62E9"},isSelected(h,y){return h.selectedNode&&h.selectedNode.value===y.value}};return S.watch([n,()=>t.options],()=>{f()},{deep:!0,immediate:!0}),S.watch(()=>t.modelValue,h=>{h!==l.value&&(l.value=h,g())}),S.watch(()=>t.visible,h=>{h&&Array.isArray(l.value)&&l.value.length>0&&g()}),{panes:o,initLoading:r,tabsCursor:i,...p}}});var Ov=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("Tabs",{staticClass:"fox-cascader",attrs:{"title-scroll":""},on:{click:e.handleTabClick},model:{value:e.tabsCursor,callback:function(i){e.tabsCursor=i},expression:"tabsCursor"}},[!e.initLoading&&e.panes.length?e._l(e.panes,function(i,r){return n("TabPane",{key:r,attrs:{title:e.formatTabTitle(i),"pane-key":r}},[n("div",{staticClass:"fox-cascader-pane",attrs:{role:"menu"}},[e._l(i.nodes,function(l){return[n("div",{key:l.value,staticClass:"fox-cascader-item",class:{active:e.isSelected(i,l),disabled:l.disabled},attrs:{"aria-checked":e.isSelected(i,l)||void 0,"aria-disabled":l.disabled||void 0,role:"menuitemradio"},on:{click:function(s){return e.handleNode(l,!1)}}},[n("div",{staticClass:"fox-cascader-item__title"},[e._v(e._s(l.text))]),l.loading?n("fox-ext-icon",{staticClass:"fox-cascader-item__icon-loading",attrs:{name:"loading"}}):n("fox-ext-icon",{staticClass:"fox-cascader-item__icon-check",attrs:{name:"checklist"}})],1)]})],2)])}):[n("TabPane",{attrs:{title:"Loading...","pane-key":"loading"}},[n("div",{staticClass:"fox-cascader-pane"})])]],2)},jv=[],qv=D(Ev,Ov,jv,!1,null,null,null,null);const Hv=qv.exports,{create:Wv}=be("cascader-picker"),Bv=Wv({components:{Popup:Gt,CascaderPane:Hv},props:{...Dv},emits:["update:modelValue","change","pathChange","update:visible"],model:{prop:"modelValue",event:"update:modelValue"},setup(t,{emit:e}){const n=S.ref(t.modelValue),i=S.computed({get(){return t.visible},set(s){e("update:visible",s)}}),r=(s,o)=>{n.value=s,i.value=!1,e("change",s,o),e("update:modelValue",s)},l=s=>{e("pathChange",s)};return S.watch(()=>t.modelValue,s=>{s!==n.value&&(n.value=s)}),{onChange:r,onPathChange:l,innerValue:n,innerVisible:i}}});var Kv=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("Popup",{attrs:{visible:e.innerVisible,position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:!e.closeable,"close-icon":e.closeIcon,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},on:{"update:visible":function(i){e.innerVisible=i}}},[e.title?[n("div",{staticClass:"fox-cascader__bar",domProps:{innerHTML:e._s(e.title)}})]:e._e(),n("CascaderPane",{attrs:{modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},on:{change:e.onChange,"path-change":e.onPathChange}})],2)},zv=[],Yv=D(Bv,Kv,zv,!1,null,null,null,null);const Cr=Yv.exports;function $t(t,e){const n=t.textKey??"text";return e[n]??""}function bt(t,e){const n=t.valueKey??"value";return e[n]}function Ir(t,e){const n=t.childrenKey??"children";return e[n]}function Vt(t,e=[]){const n={texts:[],values:[]};for(let i=0;i<e.length;i++){const r=e[i],l=$t(t,r),s=bt(t,r);n.texts.push(l),n.values.push(s??"")}return n}function kr(t,e,n,i,r=[]){const l=n[i];for(let s=0;s<e.length;s++)if($t(t,e[s])===l){const a=bt(t,e[s])??"",u={[t.textKey]:l,[t.valueKey]:a};r.push(u);const d=Ir(t,e[s]);Array.isArray(d)&&kr(t,d,n,i+1,r);return}}function Pr(t,e,n,i,r=[]){const l=n[i];for(let s=0;s<e.length;s++)if(bt(t,e[s])===l){const a=$t(t,e[s])??"",u={[t.textKey]:a,[t.valueKey]:l};r.push(u);const d=Ir(t,e[s]);Array.isArray(d)&&Pr(t,d,n,i+1,r);return}}function pn(t,e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){const r=$t(t,e[i]),l=$t(t,n[i]);if(r!==l)return!1;const s=bt(t,e[i]),o=bt(t,n[i]);if(s!==o)return!1}return!0}class Uv{proxy;constructor(e){this.proxy=e}async load(e,n){const i="cascader";if(Array.isArray(e))return e;if(typeof e=="function")return await e(n);const r=_r(this.proxy,i);return r===null?(console.error(`${i} component not found api function`),[]):(Ut(n)&&S.isReactive(n)&&(n=S.toRaw(n)),await r(e,n))}}function Gv(){const t=S.getCurrentInstance();return new Uv(t.proxy)}const Xv={name:"fox-cascader-item",mixins:[ce],props:{value:[Array,String],title:String,placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default(){return[]}},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:Object},model:{prop:"value",event:"change"},data(){return{model:null,sourceOptions:[],innerText:[],innerValue:this.value,visible:!1,selectedPathOptions:[]}},async created(){this.model=Gv(),this.sourceOptions=await this.model.load(this.source,this.params),await this.updateSelectedPathOptions()},computed:{formatText(){return Array.isArray(this.innerText)?this.innerText.join(" "):this.innerText}},watch:{source:{handler:async t=>{globalThis.sourceOptions=await globalThis.model.load(globalThis.source,globalThis.params)},deep:!0},value(t,e){t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))},selectedPathOptions(){this.updateSelectedPathOptions()}},methods:{async updateSelectedPathOptions(){if(this.lazy===!0){this.selectedPathOptions.length==0&&(this.innerText=this.innerValue??[],this.innerValue=this.innerValue??[]);return}if(this.valueType==="item"){let t=this.innerValue??[];if(!pn(this.$props,t,this.selectedPathOptions)){this.selectedPathOptions=t;let e=Vt(this.$props,t);this.innerText=e.texts,this.innerValue=e.values}}else if(this.valueType==="text"){let t=this.innerValue??[],e=[];if(kr(this.$props,this.sourceOptions,t,0,e),!pn(this.$props,e,this.selectedPathOptions)){this.selectedPathOptions=e;let n=Vt(props,e);this.innerText=n.texts,this.innerValue=n.values}}else{let t=this.innerValue??[],e=[];if(Pr(this.$props,this.sourceOptions,t,0,e),!pn(this.$props,e,this.selectedPathOptions)){this.selectedPathOptions=e;let n=Vt(this.$props,e);this.innerText=n.texts,this.innerValue=n.values}}},updateVisible(t){this.visible=t},onChange(t,e){let n=e.map(r=>{if(r==null)return r;let l={...r};return Reflect.deleteProperty(l,"text"),l[this.textKey]=r.text??"",Reflect.deleteProperty(l,"value"),l[this.valueKey]=r.value??"",l});this.selectedPathOptions=n;let i=Vt(this.$props,n);this.innerText=i.texts,this.innerValue=i.values,this.valueType==="text"?this.$emit("change",this.innerText):this.valueType==="item"?this.$emit("change",n):this.$emit("change",this.innerValue)},onPathChange(t){let e=t.map(n=>{if(n==null)return n;let i={...n};return Reflect.deleteProperty(i,"text"),i[this.textKey]=n.text??"",Reflect.deleteProperty(i,"value"),i[this.valueKey]=n.value??"",i});this.$emit("pathChange",e)},onInput(t){},onFocus(t){!this.mReadonly&&!this.mDisabled&&(this.visible=!0),this.$emit("focus",t)},onBlur(t){this.visible||this.$emit("blur",t)},onClick(){this.mReadonly||this.mDisabled||(this.visible=!this.visible)},showPicker(){this.mReadonly||this.mDisabled||(this.visible=!0)},hidePicker(){this.visible=!1},focus(){this.$refs.input&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()},renderPicker(t){let e={};e.visible=this.visible,e.modelValue=this.innerValue,e.options=this.sourceOptions,e.title=this.title,e.lazy=this.lazy,e.lazyLoad=this.lazyLoad,e.valueKey=this.valueKey,e.textKey=this.textKey,e.childrenKey=this.childrenKey,e.convertConfig=this.convertConfig;const n={"update:visible":this.updateVisible,change:this.onChange,pathChange:this.onPathChange};return t(Cr,{props:e,on:n})}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let _=this.$slots.default[0];if(this.multiLang){let{text:b}=_;b&&(b=b.trim()).length>0&&(b=this.$langTranslator.translate(this,b),e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b]))}if(!n){let{text:b}=_;b&&(b=b.trim()).length>0?(e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b])):_.tag&&(n=t("div",e,this.$slots.default))}}else{let _=this.label;_&&(_=_.trim()).length>0&&(this.multiLang&&(_=this.$langTranslator.translate(this,_)),e.domProps={innerHTML:B(_,this.mLabelMaxCharCount)},n=t("div",e))}let i=[],r={};ee(this,r,this.$attrs,i),r.title=this.innerValue,r.clearable=this.clearable;let l={};l.value=this.formatText,l.disabled=this.mDisabled,l.readonly=this.editable,l.size=this.mSize;let s={};Q(this,s,this.$listeners,["blur","focus","change","input"]),s.blur=this.onBlur,s.focus=this.onFocus,s.clear=this.onClear,s.input=this.onInput;const o={click:this.onClick},a={attrs:r,props:l,on:s,nativeOn:o,ref:"input"},u={slot:"suffix",class:{"el-icon-arrow-down":!0,"el-input__icon":!0,"fox-select-item__suffix":!0,active:this.visible}},d=t("li",u),g=[t("el-input",a,[d])];let c=this.installTip(t);c.type!=="node"&&g.push(c.node);let m={class:{"el-form-item__content":!0},style:this.mInputStyle},p=t("div",m,g),h={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};c.type==="error"?h.class["is-error"]=!0:c.type==="warn"?h.class["is-warn"]=!0:c.type==="info"&&(h.class["is-info"]=!0),le(this,h);let y="text";this.componentData(this,h,y);const $=this.renderPicker(t);return n?t("div",h,[n,p,$]):t("div",h,[p,$])}},Zv=null,Jv=null;var Qv=D(Xv,Zv,Jv,!1,null,null,null,null);const ex=Qv.exports,tx=Symbol.for("handleRenderData");function nx(t,e,n){let i=me.getAuthScope(t);!i||!me.hasAuths(i)||me.hasAuth(i,n)||me[tx](e,!1)}const ix="fox-button",rx="el-button",lx={name:ix,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);i.directives||(i.directives=[]),i.directives.push({name:"cursor-navigate",value:"button"});let r=i&&i.attrs&&i.attrs.auth;r&&(i.directives.push({name:"auth",value:r}),nx(e.parent,i,r));let l=or(e);return n(rx,i,l)}},sx=null,ax=null;var ox=D(lx,sx,ax,!1,null,null,null,null);const ux=ox.exports;function cx(t){return t.$children&&t.$children[0]&&t.$children[0].$children&&t.$children[0].$children[0]}const fx="el-dialog",dx={name:"fox-dialog-item",inject:{multiLang:{default:!1}},props:{visible:{type:Boolean,required:!1,default:!0}},data:function(){return{dialogVisible:this.visible,hijackMethodName:void 0}},methods:{onBeforeClose(t){let e=cx(this);if(e&&(e.$emit("closeDialog"),this.hijackMethodName)){let n=e[this.hijackMethodName];typeof n=="function"&&n()}},onClose(){this.dialogVisible=!1},onClosed(){this.$router&&this.$router.remove()}},render(t){let e={};ee(this,e,this.$attrs);let n={};ue(this,n,this.$props),n.visible=this.dialogVisible,(e.hijack||n.hijack)&&(this.hijackMethodName=e["hijack-method-name"]||n["hijack-method-name"],n.beforeClose=this.onBeforeClose);let r={};Q(this,r,this.$listeners,[]),r.close=this.onClose,r.closed=this.onClosed;let l={attrs:e,props:n,on:r,directives:[{name:"dialogDrag"}]},s;return this.$scopedSlots.default?s=[this.$scopedSlots.default()]:s=[],t(fx,l,s)}},hx=null,px=null;var mx=D(dx,hx,px,!1,null,null,null,null);const gx=mx.exports;const yx={name:"fox-autocomplete-item",mixins:[ce],props:{value:{required:!1},textName:{type:[String],required:!1,default(){return"text"}},valueName:{type:[String],required:!1,default(){return"value"}},itemType:{type:[Boolean,String],required:!1,default:"text"},valueOptionClass:{type:String,required:!1,default:"fox-auto-complete-options-value"},textOptionClass:{type:String,required:!1,default:"fox-auto-complete-options-text"},fetchSuggestions:{type:Function,required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value,numberType:!1}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t)}},methods:{onInput(t){this.numberType&&t.length>0&&!mt(t)||(this.innerValue=t,this.$emit("change",t))},adjustSuggestions(){if(!he)return;let t=Ue.querySelectorAll(".el-autocomplete-suggestion.el-popper");t&&t.forEach(e=>{e.style.display!="none"&&(e.style.width="auto")})},onFetchSuggestions(t,e){if(!this.fetchSuggestions){e([]);return}let{context:n}=this.$vnode,i=r=>{e(r),this.itemType=="item"&&setTimeout(()=>{this.adjustSuggestions()},20)};Reflect.apply(this.fetchSuggestions,n,[t,i])},focus(){this.$refs.input&&this.$refs.input.focus&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&this.$refs.input.blur&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let p=this.$slots.default[0];if(this.multiLang){let{text:h}=p;h&&(h=h.trim()).length>0&&(h=this.$langTranslator.translate(this,h),e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h]))}if(!n){let{text:h}=p;h&&(h=h.trim()).length>0?(e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h])):p.tag&&(n=t("div",e,this.$slots.default))}}else{let p=this.label;p&&(p=p.trim()).length>0&&(this.multiLang&&(p=this.$langTranslator.translate(this,p)),e.domProps={innerHTML:B(p,this.mLabelMaxCharCount)},n=t("div",e))}let i=[],{type:r}=this.$attrs;r=="number"&&(this.numberType=!0,i.push("type"));let l={};ee(this,l,this.$attrs,i),l.title=this.innerValue,Reflect.has(l,"clearable")||(l.clearable=!0),Reflect.has(l,"popper-append-to-body")||(l["popper-append-to-body"]=!1);let s={};ue(this,s,this.$props),s.value=this.innerValue,s.disabled=this.mDisabled,s.readonly=this.mReadonly,s.size=this.mSize,s.fetchSuggestions&&(s.fetchSuggestions=this.onFetchSuggestions);let o={};Q(this,o,this.$listeners,["blur","focus","change","input"]),o.blur=this.onBlur,o.focus=this.onFocus,o.input=this.onInput,o.clear=this.onClear;let d=[t("el-autocomplete",{attrs:l,props:s,on:o,scopedSlots:{default:p=>{if(this.itemType==="item"){let h={class:{}};h.class[this.valueOptionClass]=!0;let y=t("span",h,[p.item[this.valueName]]),$={class:{}};$.class[this.textOptionClass]=!0;let _=t("span",$,[p.item[this.textName]]);return t("div",{},[y,_])}else return this.itemType==="value"?t("div",{},[p.item[this.valueName]]):t("div",{},[p.item[this.textName]])}},ref:"input"})],f=this.installTip(t);f.type!=="node"&&d.push(f.node);let g={class:{"el-form-item__content":!0},style:this.mInputStyle},c=t("div",g,d),m={class:{"fox-auto-complete-item":!0,"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return f.type==="error"?m.class["is-error"]=!0:f.type==="warn"?m.class["is-warn"]=!0:f.type==="info"&&(m.class["is-info"]=!0),le(this,m),this.componentData(this,m,"autocomplete"),n?t("div",m,[n,c]):t("div",m,[c])}},_x=null,$x=null;var bx=D(yx,_x,$x,!1,null,null,null,null);const vx=bx.exports,mn=rt(yr,{visible:!0,modelValue:""}),xx={name:"fox-select-item",mixins:[ce],props:{...mn,value:{type:[String,Number,Boolean,Object,Array],required:!0},separator:{type:[String],default:","},editable:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0}},model:{prop:"value",event:"change"},data(){return{innerTexts:[],innerValue:this.value,visible:!1}},computed:{formatText(){return this.innerTexts.length==0?"":this.innerTexts.length==1?this.innerTexts[0]:this.innerTexts.join(",")}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t,e){this.innerValue=t,this.$emit("change",t)},onInput(t){},onFocus(t){this.visible=!0,this.$emit("focus",t)},onBlur(t){this.$emit("blur",t)},onClick(){this.visible=!this.visible},showPicker(){this.visible=!0},hidePicker(){this.visible=!1},focus(){this.$refs.input&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()},renderPicker(t){const e=jn(this.$props,mn);e.modelValue=this.innerValue,e.readonly=this.mReadonly||this.mDisabled,e.visible=this.visible;const n={"update:modelValue":this.onChange,"update:text":r=>{this.innerTexts=r},"update:visible":r=>{this.visible=r}};return t(Xt,{props:e,on:n})}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let _=this.$slots.default[0];if(this.multiLang){let{text:b}=_;b&&(b=b.trim()).length>0&&(b=this.$langTranslator.translate(this,b),e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b]))}if(!n){let{text:b}=_;b&&(b=b.trim()).length>0?(e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b])):_.tag&&(n=t("div",e,this.$slots.default))}}else{let _=this.label;_&&(_=_.trim()).length>0&&(this.multiLang&&(_=this.$langTranslator.translate(this,_)),e.domProps={innerHTML:B(_,this.mLabelMaxCharCount)},n=t("div",e))}let i=[],r={};ee(this,r,this.$attrs,i),r.title=this.innerValue,r.clearable=this.clearable;let l=rt(this.$props,mn,{separator:"",editable:!1});l.value=this.formatText,l.disabled=this.mDisabled,l.readonly=this.editable,l.size=this.mSize;let s={};Q(this,s,this.$listeners,["blur","focus","change","input"]),s.blur=this.onBlur,s.focus=this.onFocus,s.clear=this.onClear,s.input=this.onInput;const o={click:this.onClick},a={attrs:r,props:l,on:s,nativeOn:o,ref:"input"},u={slot:"suffix",class:{"el-icon-arrow-down":!0,"el-input__icon":!0,"fox-select-item__suffix":!0,active:this.visible}},d=t("li",u),g=[t("el-input",a,[d])];let c=this.installTip(t);c.type!=="node"&&g.push(c.node);let m={class:{"el-form-item__content":!0},style:this.mInputStyle},p=t("div",m,g),h={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};c.type==="error"?h.class["is-error"]=!0:c.type==="warn"?h.class["is-warn"]=!0:c.type==="info"&&(h.class["is-info"]=!0),le(this,h);let y="text";this.componentData(this,h,y);const $=this.renderPicker(t);return n?t("div",h,[n,p,$]):t("div",h,[p,$])}},Sx=null,Dx=null;var wx=D(xx,Sx,Dx,!1,null,null,null,null);const Tx=wx.exports;const Cx={name:"fox-table-search-popover",inject:{multiLang:{default:!1}},props:{placeholder:{type:String,required:!1,default:"\u8F93\u5165\u5173\u952E\u5B57"},searchText:{type:String,required:!1,default:"\u641C\u7D22"},restText:{type:String,required:!1,default:"\u91CD\u7F6E"}},data(){return{visible:!1,query:"",hideListener:()=>{this.visible=!1}}},watch:{},computed:{mPlaceholder(){let t=this.placeholder;return this.multiLang&&(t=this.$langTranslator.translate(this,t)),t},mSearchText(){let t=this.searchText;return this.multiLang&&(t=this.$langTranslator.translate(this,t)),t},mResetText(){let t=this.restText;return this.multiLang&&(t=this.$langTranslator.translate(this,t)),t}},methods:{onSearch(t){this.$emit("search",this.query),this.visible=!1},onReset(){this.query=""}},mounted(){document.body.addEventListener("click",this.hideListener)},beforeDestroy(){document.body.removeEventListener("click",this.hideListener)}};var Ix=function(){var e=this,n=e._self._c;return n("el-popover",{attrs:{"popper-class":"fox-table-search-popover",placement:"bottom-end",trigger:"manual"},model:{value:e.visible,callback:function(i){e.visible=i},expression:"visible"}},[n("div",{staticClass:"fox-table-search-box"},[e._t("default",function(){return[n("el-input",{staticClass:"fox-table-search-box-input",attrs:{placeholder:e.mPlaceholder},model:{value:e.query,callback:function(i){e.query=i},expression:"query"}}),n("div",{staticClass:"fox-table-search-box-btn-row"},[n("el-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v(e._s(e.mSearchText))]),n("el-button",{on:{click:e.onReset}},[e._v(e._s(e.mResetText))])],1)]})],2),n("span",{staticClass:"el-icon-search fox-search-icon-right",attrs:{slot:"reference"},on:{click:function(i){i.stopPropagation(),e.visible=!e.visible}},slot:"reference"})])},kx=[],Px=D(Cx,Ix,kx,!1,null,null,null,null);const Lx=Px.exports;const Nx="fox-table-search-column",Mx="el-table-column",Rx={name:Nx,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e),r=or(e),l=i.attrs&&i.attrs.label||i.props&&i.props.label||"",s=n("span",{class:{"fox-table-column-text-left":!0}},[l]),o=i.attrs&&i.attrs.search||i.props&&i.props.search,a={attrs:{placeholder:i.attrs.placeholder,"search-text":i.attrs["search-text"],"reset-text":i.attrs["reset-text"]}};typeof o=="function"&&(a.on={search:d=>{Reflect.apply(o,e,[d])}}),i.scopedSlots&&i.scopedSlots.search&&(a.scopedSlots={default:i.scopedSlots.search});let u=n("fox-table-search-popover",a);if(!i.scopedSlots)i.scopedSlots={};else{let d={};for(let f in i.scopedSlots)f!=="search"&&(d[f]=i.scopedSlots[f]);i.scopedSlots=d}return i.scopedSlots.header=()=>[s,u],n(Mx,i,r)}},Ax=null,Vx=null;var Fx=D(Rx,Ax,Vx,!1,null,null,null,null);const Ex=Fx.exports;const Ox={name:"fox-corner-label",props:{size:{type:[Number,String],required:!1,default(){return 56}},placement:{type:[String],required:!1,default(){return"top-end"}},fontSize:{type:[String],required:!1,default(){return"12px"}},color:{type:[String],required:!1,default(){return"#FFFFFF"}},backgroundColor:{type:[String],required:!1,default(){return"#d3656b"}}},computed:{mClass(){let t={"fox-mark-wrap":!0};return this.placement=="top-start"?t["fox-mark-wrap-top-start"]=!0:this.placement=="top-end"?t["fox-mark-wrap-top-end"]=!0:this.placement=="bottom-start"?t["fox-mark-wrap-bottom-start"]=!0:this.placement=="bottom-end"?t["fox-mark-wrap-bottom-end"]=!0:t["fox-mark-wrap-top-end"]=!0,t},mStyle(){let t=se(this.size),e={width:`${t}px`,height:`${t}px`,color:this.color,"background-color":this.backgroundColor};return this.placement=="top-start"?(e.top=`${-t/2}px`,e.left=`${-t/2}px`):this.placement=="top-end"?(e.top=`${-t/2}px`,e.right=`${-t/2}px`):this.placement=="bottom-start"?(e.bottom=`${-t/2}px`,e.left=`${-t/2}px`):this.placement=="bottom-end"?(e.bottom=`${-t/2}px`,e.right=`${-t/2}px`):(e.top=`${-t/2}px`,e.right=`${-t/2}px`),e},mInnerStyle(){let t=se(this.size);return{"font-size":this.fontSize,width:`${t}px`}}}};var jx=function(){var e=this,n=e._self._c;return n("div",{class:e.mClass,style:e.mStyle},[n("span",{style:e.mInnerStyle},[e._t("default")],2)])},qx=[],Hx=D(Ox,jx,qx,!1,null,"2c82508c",null,null);const Wx=Hx.exports;const Ci=/^("|').*("|')$/,gn=/^\d+$/,yn=/^(true)|(false)$/;function at(t,e,n,i,r){if(i){let o=`${i}.`;if(e.indexOf(o)==0){e=e.substring(o.length);let u=e.split(".");return ht(n,u,0)}}let l=e.split("."),s=ht(t,l,0);return typeof s=="function"&&n&&r!==void 0?(...a)=>Reflect.apply(s,t,[n,r,...a]):s}function Ii(t,e,n,i,r){if(r){let s=`${r}.`;if(e.indexOf(s)==0){e=e.substring(s.length);let a=e.split(".");pt(i,a,0,n);return}}let l=e.split(".");pt(t,l,0,n)}function ft(t,e,n,i,r,l){if(Reflect.has(n,"name")){let s={scopedSlots:{$stable:!0}};if(n.directives&&Array.isArray(n.directives)){s.directives=[];for(let a of n.directives){let{name:u,value:d,param:f}=a;if(!u)continue;if(d==null){s.directives.push({name:u,value:d});continue}let g=d;if(Ci.test(d)?d=d.replace(/"|'/g,""):gn.test(d)?d=d:yn.test(d)?d=Z(d):(d=at(e,d,i,r,l),typeof d=="function"&&(d=d(f))),u==="if"){if(!d)return;continue}s.directives.push({name:u,value:d,expression:g})}}let o=[];if(n.children&&n.children.length>0)for(let a of n.children)if(a.loop){let u=at(e,a.items,i,r,l);if(!Array.isArray(u)){console.error("\u5FAA\u73AF\u8282\u70B9\u6570\u636E\u683C\u5F0F\u9519\u8BEF, items\u4E0D\u4E3A\u6570\u7EC4");continue}if(!Array.isArray(a.children)||a.children.length==0){console.error("\u5FAA\u73AF\u8282\u70B9\u6570\u636E\u683C\u5F0F\u9519\u8BEF, children\u4E0D\u4E3A\u6570\u7EC4\u6216\u957F\u5EA6\u4E3A0");continue}for(let d=0;d<u.length;d++)for(let f of a.children){let g=ft(t,e,f,u[d],f.slotScope,d);g&&o.push(g)}}else if(a.slotScope){let u=a.slot||"default";s.scopedSlots[u]=d=>ft(t,e,a,d,a.slotScope)||t(),s.scopedSlots[u].proxy=!0}else if(!a.slot||a.slot=="default"){let u=ft(t,e,a,i,r,l);u&&o.push(u)}else s.scopedSlots[a.slot]=()=>ft(t,e,a)||t(),s.scopedSlots[a.slot].proxy=!0;if(s.attrs={},s.props={},s.on={},n.attrs&&typeof n.attrs=="object")for(let a in n.attrs){let u=n.attrs[a];gn.test(u)?s.attrs[a]=u:yn.test(u)?s.attrs[a]=Z(u):s.attrs[a]=u}if(n.props&&typeof n.props=="object")for(let a in n.props){if(a.indexOf("method_param_")==0)continue;let u=n.props[a],d=!1,f=!1,g=!1,c=a.lastIndexOf(".");if(c!=-1){let m=a.substring(c);d=m==".sync",f=m==".exec",a=a.substring(0,c)}if(u==null){s.attrs[a]=u;continue}if(Ci.test(u)||gn.test(u)?s.attrs[a]=u:yn.test(u)?s.attrs[a]=Z(u):(s.attrs[a]=at(e,u,i,r,l),g=!0),g){if(d)s.on[`update:${a}`]=m=>{Ii(e,u,m,i,r)};else if(f){let m=n.props[`method_param_${a}`];s.attrs[a]=s.attrs[a](m)}}}if(n.on&&typeof n.on=="object")for(let a in n.on){let u=n.on[a];if(!u||u.indexOf("method_param_")==0)continue;let d=n.on[`method_param_${a}`];i&&l!==void 0?s.on[a]=(...f)=>{d?Reflect.apply(e[u],e,[i,l,d,...f]):Reflect.apply(e[u],e,[i,l,...f])}:s.on[a]=(...f)=>{d?Reflect.apply(e[u],e,[d,...f]):Reflect.apply(e[u],e,f)}}if(n.ref&&(s.ref=n.ref,s.refInFor=l!==void 0),n.style&&typeof n.style=="object"){s.style={};for(let a in n.style)s.style[a]=n.style[a]}if(n.model){let a=at(e.$data,n.model,i,r);s.model={expression:n.model,value:a,callback:u=>{Ii(e.$data,n.model,u,i,r)}}}if(n.key){let a=n.key;l!==void 0&&(a=`${a}_${l}`),s.key=a}return t(n.name,s,o)}else{if(Reflect.has(n,"text"))return n.text;if(Reflect.has(n,"variable")){let s=at(e,n.variable,i,r,l);return typeof s=="function"?s(n.param):s}}return t()}const Bx={name:"fox-dynamic",functional:!0,props:{source:{type:Object,required:!0,default(){return{}}}},render(t,e){let{parent:n}=e;const i=n.$createElement;return ft(i,n,e.props.source)}},Kx=null,zx=null;var Yx=D(Bx,Kx,zx,!1,null,"83844b55",null,null);const Ux=Yx.exports;const Gx={name:"fox-float-navigator",props:{top:{type:[String],required:!1},bottom:{type:[String],required:!1},left:{type:[String],required:!1},right:{type:[String],required:!1},width:{type:[String],required:!1},height:{type:[String],required:!1},customClass:{type:[String],required:!1},visible:{type:Boolean,required:!1,default:!1}},data(){return{}},watch:{visible(t){t?this.show():this.hide()}},computed:{mStyle(){return{left:this.left,right:this.right,top:this.top,bottom:this.bottom,width:this.width,height:this.height}},mClass(){let t={"fox-float-navigator":!0,"fox-float-navigator-show":!0};return this.customClass&&(t[this.customClass]=!0),t}},methods:{show(){let{navigator:t}=this.$refs;t&&document.body.appendChild(t)},hide(){let{wrap:t,navigator:e}=this.$refs;t&&(e.classList.add("fox-float-navigator-hide"),setTimeout(()=>{t.appendChild(e),e.classList.remove("fox-float-navigator-hide")},800))}},mounted(){this.visible&&this.show()},beforeDestroy(){this.visible&&this.hide()}};var Xx=function(){var e=this,n=e._self._c;return n("div",{ref:"wrap",staticClass:"fox-float-navigator-wrap"},[n("div",{ref:"navigator",class:e.mClass,style:e.mStyle},[e._t("default")],2)])},Zx=[],Jx=D(Gx,Xx,Zx,!1,null,null,null,null);const Qx=Jx.exports,ot=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,get(){return n},set(i){console.warn(`tried to set frozen property ${e} with ${i}`)}})},e0={abstract:!0,name:"fox-fragment",inject:{pageScope:{default:!1},multiLang:{default:!1}},props:{name:{type:String,default:()=>Math.floor(Date.now()*Math.random()).toString(16)},html:{type:String,default:null}},mounted(){const t=this.$el,e=t.parentNode;t.__isFragment=!0,t.__isMounted=!1;const n=document.createComment(`fragment#${this.name}#head`),i=document.createComment(`fragment#${this.name}#tail`);t.__head=n,t.__tail=i;let r=document.createDocumentFragment();if(r.appendChild(n),Array.from(t.childNodes).forEach(s=>{let o=!s.hasOwnProperty("__isFragmentChild__");r.appendChild(s),o&&(ot(s,"parentNode",t),ot(s,"__isFragmentChild__",!0))}),r.appendChild(i),this.html){let s=document.createElement("template");s.innerHTML=this.html,Array.from(s.content.childNodes).forEach(o=>{r.appendChild(o)})}let l=t.nextSibling;e.insertBefore(r,t,!0),e.removeChild(t),ot(t,"parentNode",e),ot(t,"nextSibling",l),l&&ot(l,"previousSibling",t),t.__isMounted=!0},render(t){const e=this.$slots.default;return e&&e.length&&e.forEach(n=>n.data={...n.data,attrs:{fragment:this.name,...(n.data||{}).attrs}}),t("div",{attrs:{fragment:this.name}},e)}},t0=null,n0=null;var i0=D(e0,t0,n0,!1,null,null,null,null);const r0=i0.exports,{create:l0}=be("toast"),s0=l0({components:{[_t.name]:_t},data(){return{visible:!1,id:"",msg:"",duration:2e3,center:!0,type:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:"",textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",title:"",closeOnClickOverlay:!1}},emits:["close"],setup(t,{emit:e,expose:n}){const i=S.getCurrentInstance();let r;const l=S.reactive({mounted:!1}),s=()=>{r&&(clearTimeout(r),r=null)},o=()=>{l.mounted=!1};n({hide:o,show:()=>{l.mounted=!0,s(),i.proxy.duration&&(r=setTimeout(()=>{o()},i.proxy.duration))}});const u=()=>{i.proxy.closeOnClickOverlay&&(o(),e("close"))},d=S.computed(()=>i.proxy.type!=="text"?!0:!!i.proxy.icon),f=S.computed(()=>["fox-toast",{"fox-toast-center":i.proxy.center},{"fox-toast-has-icon":d.value},{"fox-toast-cover":i.proxy.cover},{"fox-toast-loading":i.proxy.type==="loading"},i.proxy.customClass,"fox-toast-"+i.proxy.size]),g=S.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!i.proxy.loadingRotate}]);return{state:l,hide:o,clickCover:u,hasIcon:d,toastBodyClass:f,toastIconWrapperClass:g,onAfterLeave:()=>{s(),i.proxy.unmount(i.proxy.id),i.proxy.onClose&&i.proxy.onClose()}}}});var a0=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("Transition",{attrs:{name:"toast-fade"},on:{"after-leave":e.onAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.state.mounted,expression:"state.mounted"}],class:e.toastBodyClass,style:{bottom:e.center?"auto":e.bottom,"background-color":e.coverColor},on:{click:e.clickCover}},[n("div",{staticClass:"fox-toast-inner",style:{"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor}},[e.hasIcon?n("div",{class:e.toastIconWrapperClass},[n("fox-ext-icon",{attrs:{size:e.iconSize,color:"#ffffff",name:e.icon}})],1):e._e(),e.title?n("div",{staticClass:"fox-toast-title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),n("div",{staticClass:"fox-toast-text",domProps:{innerHTML:e._s(e.msg)}})])])])},o0=[],u0=D(s0,a0,o0,!1,null,null,null,null);const Lr=u0.exports,c0=Er.default.extend(Lr),f0={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},je=new Map,Nr=t=>{if(t&&je.has(t)){const e=je.get(t);document.body.removeChild(e.instance.$el),e.instance.$destroy()}else je.forEach(e=>{document.body.removeChild(e.instance.$el),e.instance.$destroy()})},d0=t=>{const e=t.id;if(e&&je.has(e)){const n=je.get(e),r={...n.options,...t};for(let l of r)n.instance[l]=r[l]}},ut=t=>{let e;if(t.id){if(e=t.id,je.has(e))return d0(t)}else e=`${new Date().getTime()}`;t={...f0,...t},t.id=e,t.unmount=Nr;const n=new c0({data:t});return je.set(e,{id:e,options:t,instance:n}),n.$mount(),document.body.appendChild(n.$el),n.show(),n},Ft=t=>{if(!t){console.warn("[FoxUI Toast]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},Mr={text(t,e={}){return Ft(t),ut({...e,type:"text",msg:t})},success(t,e={}){return Ft(t),ut({icon:"success",...e,msg:t,type:"success"})},fail(t,e={}){return Ft(t),ut({icon:"failure",...e,msg:t,type:"fail"})},warn(t,e={}){return Ft(t),ut({icon:"tips",...e,msg:t,type:"warn"})},loading(t,e={}){return ut({icon:"loading",...e,msg:t,type:"loading"})},hide(t){Nr(t)},install(t){t.use(Lr),t.prototype.$toast=Mr}},{create:h0}=be("calendar-pane"),p0=h0({props:{type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:null},startDate:{type:String,default:W.getDay(0)},endDate:{type:String,default:W.getDay(365)}},emits:["choose","update","close","select"],setup(t,{emit:e,slots:n}){const i=["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],r=S.ref(null),l=S.ref(null),s=S.ref(null),o=S.ref(null),a=S.ref(0),u=S.computed(()=>c.monthsData.slice(c.defaultRange[0],c.defaultRange[1])),d=S.computed(()=>n.btn),f=S.computed(()=>n.topInfo),g=S.computed(()=>n.bottomInfo),c=S.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"calendar-month-day",startData:"",endData:"",isRange:t.type==="range",timer:0,currentIndex:0,avgHeight:0,monthsNum:0}),m=w=>w.split("-"),p=w=>W.isEqual(c.currDate[0],w),h=w=>W.isEqual(c.currDate[1],w),y=(w,T,V)=>T.curData[0]+"-"+T.curData[1]+"-"+W.getNumTwoBit(+w.day),$=(w,T,V)=>{const j=y(w,T);return w.type=="curr"?!c.isRange&&W.isEqual(c.currDate,j)||c.isRange&&(p(j)||h(j))?`${c.dayPrefix}-active`:c.propStartDate&&W.compareDate(j,c.propStartDate)||c.propEndDate&&W.compareDate(c.propEndDate,j)?`${c.dayPrefix}-disabled`:c.isRange&&Array.isArray(c.currDate)&&Object.values(c.currDate).length==2&&W.compareDate(c.currDate[0],j)&&W.compareDate(j,c.currDate[1])?`${c.dayPrefix}-choose`:null:`${c.dayPrefix}-disabled`},_=()=>{(c.isRange&&c.chooseData.length==2||!c.isRange)&&(e("choose",c.chooseData),t.poppable&&e("update"))},b=(w,T,V,j)=>{if($(w,T)!=`${c.dayPrefix}-disabled`){let q=[...T.curData];q[2]=typeof w.day=="number"?W.getNumTwoBit(w.day):w.day,q[3]=`${q[0]}-${q[1]}-${q[2]}`,q[4]=W.getWhatDay(+q[0],+q[1],+q[2]),c.isRange?(Object.values(c.currDate).length==2?c.currDate=[q[3]]:W.compareDate(c.currDate[0],q[3])?Array.isArray(c.currDate)&&c.currDate.push(q[3]):Array.isArray(c.currDate)&&c.currDate.unshift(q[3]),c.chooseData.length==2||!c.chooseData.length?c.chooseData=[...q]:W.compareDate(c.chooseData[3],q[3])?c.chooseData=[[...c.chooseData],[...q]]:c.chooseData=[[...q],[...c.chooseData]]):(c.currDate=q[3],c.chooseData=[...q]),V||(e("select",c.chooseData),t.isAutoBackFill&&_())}},P=w=>{const T=w=="prev"?c.monthsData[0]:c.monthsData[c.monthsData.length-1];let V=parseInt(T.curData[0]),j=parseInt(T.curData[1].toString().replace(/^0/,""));switch(w){case"prev":j==1&&(V-=1),j=j==1?12:--j;break;case"next":j==12&&(V+=1),j=j==12?1:++j;break}return[V,W.getNumTwoBit(j),W.getMonthDays(String(V),String(j))]},L=(w,T,V)=>{let{year:j,month:q}=V;return T=="prev"&&w>=7&&(w-=7),Array.from(Array(w),(K,G)=>({day:G+1,type:T,year:j,month:q}))},x=(w,T,V,j)=>{let{year:q,month:K}=V;return T=="prev"&&w>=7&&(w-=7),Array.from(Array(j),(X,J)=>({day:J+1,type:T,year:q,month:K})).slice(j-w)},v=(w,T)=>{const V=W.getMonthPreDay(+w[0],+w[1]);let j=w[1]-1,q=w[0];j<=0&&(j=12,q+=1);const K=W.getMonthDays(w[0],w[1]),G=W.getMonthDays(q+"",j+""),X={year:w[0],month:w[1]},J={curData:w,title:`${X.year}/${X.month}`,monthData:[...x(V,"prev",{month:j,year:q},G),...L(K,"curr",X)]};J.cssHeight=39+(J.monthData.length>35?384:320);let ae=0;c.monthsData.length>0&&(ae=c.monthsData[c.monthsData.length-1].cssScrollHeight+c.monthsData[c.monthsData.length-1].cssHeight),J.cssScrollHeight=ae,T=="next"?(!c.endData||!W.compareDate(`${c.endData[0]}-${c.endData[1]}-${W.getMonthDays(c.endData[0],c.endData[1])}`,`${w[0]}-${w[1]}-${w[2]}`))&&c.monthsData.push(J):!c.startData||!W.compareDate(`${w[0]}-${w[1]}-${w[2]}`,`${c.startData[0]}-${c.startData[1]}-01`)?c.monthsData.unshift(J):c.unLoadPrev=!0},C=()=>{let w=t.startDate?t.startDate:W.getDay(0),T=t.endDate?t.endDate:W.getDay(365);c.propStartDate=w,c.propEndDate=T,c.startData=m(w),c.endData=m(T),!t.defaultValue||Array.isArray(t.defaultValue)&&t.defaultValue.length<=0?c.currDate=c.isRange?[W.date2Str(new Date),W.getDay(1)]:W.date2Str(new Date):c.currDate=c.isRange?[...t.defaultValue]:t.defaultValue;const V={year:Number(c.startData[0]),month:Number(c.startData[1])},j={year:Number(c.endData[0]),month:Number(c.endData[1])};let q=j.month-V.month;j.year-V.year>0&&(q=q+12*(j.year-V.year)),v(c.startData,"next");let K=1;do v(P("next"),"next");while(K++<q);c.monthsNum=q,c.isRange&&Array.isArray(c.currDate)?(w&&W.compareDate(c.currDate[0],w)&&c.currDate.splice(0,1,w),T&&W.compareDate(T,c.currDate[1])&&c.currDate.splice(1,1,T),c.defaultData=[...m(c.currDate[0]),...m(c.currDate[1])]):(w&&W.compareDate(c.currDate,w)?c.currDate=w:T&&!W.compareDate(c.currDate,T)&&(c.currDate=T),c.defaultData=[...m(c.currDate)]);let G=0,X=0;c.monthsData.forEach((oe,U)=>{let te=`${c.defaultData[0]}/${c.defaultData[1]}`;oe.title==te&&(G=U),c.isRange&&(te=`${c.defaultData[3]}/${c.defaultData[4]}`,oe.title==te&&(X=U))}),I(q,G),c.currentIndex=G,c.yearMonthTitle=c.monthsData[c.currentIndex].title,c.isRange?(b({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0),b({day:c.defaultData[5],type:"curr"},c.monthsData[X],!0)):b({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0);let J=c.monthsData[c.monthsData.length-1],ae=J.cssHeight+J.cssScrollHeight;Vu(()=>{r?.value&&l?.value&&o?.value&&(a.value=r.value.clientHeight,l.value.style.height=`${ae}px`,r.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)}),c.avgHeight=Math.floor(ae/(q+1))},I=(w,T)=>{w>=3?T>0&&T<w?c.defaultRange=[T-1,T+3]:T==0?c.defaultRange=[T,T+4]:T==w&&(c.defaultRange=[T-2,T+2]):c.defaultRange=[0,w+2];let V=c.monthsData[c.defaultRange[0]].cssScrollHeight;c.translateY=V},E=(w,T)=>c.isRange&&w.type=="curr"&&$(w,T)=="calendar-month-day-active",H=(w,T)=>E(w,T)&&p(y(w,T)),N=(w,T)=>c.currDate.length>=2&&h(y(w,T))?E(w,T):!1,k=(w,T)=>c.currDate.length>=2?W.isEqual(c.currDate[0],c.currDate[1]):!1,R=w=>{const T=`${w.year}-${w.month}-${w.day<10?"0"+w.day:w.day}`;return W.isEqual(T,W.date2Str(new Date))},O=w=>{const T=w.target.scrollTop;let V=Math.floor(T/c.avgHeight);if(V==0)T>=c.monthsData[V+1].cssScrollHeight&&(V+=1);else if(V>0&&V<c.monthsNum-1)T>=c.monthsData[V+1].cssScrollHeight&&(V+=1),T<c.monthsData[V].cssScrollHeight&&(V-=1);else{const j=Math.round(T+a.value);j<c.monthsData[V].cssScrollHeight+c.monthsData[V].cssHeight&&T>c.monthsData[V-1].cssScrollHeight&&(V-=1),V+1<=c.monthsNum&&j>=c.monthsData[V+1].cssScrollHeight+c.monthsData[V+1].cssHeight&&(V+=1),T<c.monthsData[V-1].cssScrollHeight&&(V-=1)}c.currentIndex!==V&&(c.currentIndex=V,I(c.monthsNum,V)),c.yearMonthTitle=c.monthsData[V].title},F=()=>{c.chooseData.splice(0),c.monthsData.splice(0),C()};return C(),S.watch(()=>t.defaultValue,w=>{w&&t.poppable&&F()}),{weeks:i,compConthsData:u,showTopBtn:d,topInfo:f,bottomInfo:g,rangeTip:k,mothsdivScroll:O,getClass:$,isStartTip:H,isEndTip:N,chooseDay:b,isCurrDay:R,confirm:_,monthsPanel:l,months:r,weeksPanel:s,divArea:o,...S.toRefs(c),...S.toRefs(t)}}});var m0=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{staticClass:"fox-calendar fox-calendar-taro",class:{"fox-calendar-tile":!e.poppable,"fox-calendar-nofooter":e.isAutoBackFill}},[n("div",{staticClass:"fox-calendar-header",class:{"fox-calendar-header-tile":!e.poppable}},[e.showTitle?n("div",{staticClass:"calendar-title"},[e._v(e._s(e.title))]):e._e(),e.showTopBtn?n("div",{staticClass:"calendar-top-slot"},[e._t("btn")],2):e._e(),e.showSubTitle?n("div",{staticClass:"calendar-curr-month"},[e._v(e._s(e.yearMonthTitle))]):e._e(),n("div",{ref:"weeksPanel",staticClass:"calendar-weeks"},e._l(e.weeks,function(i,r){return n("div",{key:r,staticClass:"calendar-week-item"},[e._v(e._s(i))])}),0)]),n("div",{ref:"months",staticClass:"fox-calendar-content",on:{scroll:e.mothsdivScroll}},[n("div",{ref:"monthsPanel",staticClass:"calendar-months-panel"},[n("div",{ref:"divArea",staticClass:"divArea",style:{transform:`translateY(${e.translateY}px)`}},e._l(e.compConthsData,function(i,r){return n("div",{key:r,staticClass:"calendar-month"},[n("div",{staticClass:"calendar-month-title"},[e._v(e._s(i.title))]),n("div",{staticClass:"calendar-month-con"},[n("div",{staticClass:"calendar-month-item",class:e.type==="range"?"month-item-range":""},[e._l(i.monthData,function(l,s){return[n("div",{key:`item_${s}`,staticClass:"calendar-month-day",class:e.getClass(l,i),on:{click:function(o){return e.chooseDay(l,i)}}},[n("div",{staticClass:"calendar-day"},[e._t("day",function(){return[e._v(" "+e._s(l.type=="curr"?l.day:"")+" ")]},{date:l.type=="curr"?l:""})],2),e.topInfo?n("div",{staticClass:"calendar-curr-tips calendar-curr-tips-top"},[e._t("topInfo",null,{date:l.type=="curr"?l:""})],2):e._e(),e.bottomInfo?n("div",{staticClass:"calendar-curr-tips calendar-curr-tips-bottom"},[e._t("bottomInfo",null,{date:l.type=="curr"?l:""})],2):e._e(),!e.bottomInfo&&e.showToday&&e.isCurrDay(l)?n("div",{staticClass:"calendar-curr-tip-curr"},[e._v(" \u4ECA\u5929 ")]):e._e(),e.isStartTip(l,i)?n("div",{staticClass:"calendar-day-tip",class:{"calendar-curr-tips-top":e.rangeTip(l,i)}},[e._v(" "+e._s(e.startText)+" ")]):e._e(),e.isEndTip(l,i)?n("div",{staticClass:"calendar-day-tip"},[e._v(e._s(e.endText))]):e._e()])]})],2)])])}),0)])]),e.poppable&&!e.isAutoBackFill?n("div",{staticClass:"fox-calendar-footer"},[n("div",{staticClass:"calendar-confirm-btn",on:{click:e.confirm}},[e._v(e._s(e.confirmText))])]):e._e()])},g0=[],y0=D(p0,m0,g0,!1,null,null,null,null);const ki=y0.exports,ct=t=>typeof t=="string"?t:Re(t)?W.date2Str(t):"",Rr=t=>!!(!t||typeof t=="string"&&t.length==0||Array.isArray(t)&&t.length==0),Ar={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:"\u65E5\u5386\u9009\u62E9"},confirmText:{type:String,default:"\u786E\u8BA4"},startText:{type:String,default:"\u5F00\u59CB"},endText:{type:String,default:"\u7ED3\u675F"},defaultValue:{type:[String,Date,Array],default:null},startDate:{type:[String,Date],default:W.getDay(0)},endDate:{type:[String,Date],default:W.getDay(365)}},{create:_0}=be("calendar-picker"),$0=_0({components:{[ki.name]:ki},props:{...Ar},emits:["choose","close","update:visible","select"],setup(t,{emit:e,slots:n}){const i=S.computed(()=>t.type==="range"),r=S.computed(()=>{let $;if(Rr(t.defaultValue))$=i.value?[W.date2Str(new Date),W.getDay(1)]:W.date2Str(new Date);else if(i.value)if(Array.isArray(t.defaultValue)&&t.defaultValue.length==2){let _=ct(t.defaultValue[0]),b=ct(t.defaultValue[1]);$=[_,b]}else $=[W.date2Str(new Date),W.getDay(1)];else{let _=Array.isArray(t.defaultValue)?t.defaultValue[0]:t.defaultValue;$=ct(_??new Date)}return $}),l=S.computed(()=>ct(t.startDate)),s=S.computed(()=>ct(t.endDate)),o=S.computed(()=>n.btn),a=S.computed(()=>n.topInfo),u=S.computed(()=>n.day),d=S.computed(()=>n.bottomInfo);let f=S.ref(t.visible);const g=S.ref(null),c=()=>{f.value=!1,e("update:visible",!1)},m=()=>{f.value=!1,e("close"),e("update:visible",!1)},p=$=>{m(),e("choose",$)},h=()=>{m()},y=$=>{e("select",$)};return S.watch(()=>t.visible,$=>{f.value=$}),{defaultValue:r,startDateStr:l,endDateStr:s,closePopup:h,update:c,close:m,choose:p,select:y,calendarRef:g,showTopBtn:o,topInfo:a,dayInfo:u,bottomInfo:d}}});var b0=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("fox-popup",{attrs:{visible:e.visible,position:"bottom",round:"",closeable:!0,"destroy-on-close":!0,"pop-style":{height:"80%",width:"40%",left:"30%"}},on:{"click-overlay":e.closePopup,"click-close-icon":e.closePopup}},[e.visible?n("fox-calendar-pane",{ref:"calendarRef",attrs:{type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"show-today":e.showToday,"start-date":e.startDateStr,"end-date":e.endDateStr,"show-title":e.showTitle,"show-sub-title":e.showSubTitle},on:{update:e.update,close:e.close,choose:e.choose,select:e.select},scopedSlots:e._u([e.showTopBtn?{key:"btn",fn:function(){return[e._t("btn")]},proxy:!0}:null,e.dayInfo?{key:"day",fn:function(i){return[e._t("day",null,{date:i.date})]}}:null,e.topInfo?{key:"topInfo",fn:function(i){return[e._t("topInfo",null,{date:i.date})]}}:null,e.bottomInfo?{key:"bottomInfo",fn:function(i){return[e._t("bottomInfo",null,{date:i.date})]}}:null],null,!0)}):e._e()],1)},v0=[],x0=D($0,b0,v0,!1,null,null,null,null);const Vr=x0.exports,_n=(t,e)=>{let n;return Re(t)?n=t:typeof t=="string"&&mr(t)>0?n=W.parser(t,e):n=new Date,n},Je=(t,e,n)=>(Re(e)||(e=new Date),W.format(e,n)),Qe=t=>{let e=`${t.getFullYear()}`,n=`${t.getMonth()+1}`,i=`${t.getDate()}`,r=W.date2Str(t),l=W.getWhatDay(t.getFullYear(),t.getMonth()+1,t.getDate());return[e,n,i,r,l]},$n=rt(Ar,{visible:!0,modelValue:""}),Pi={rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1}},S0={name:"fox-calendar-item",mixins:[ce],props:{...$n,...Pi,value:{type:[String,Date,Array],required:!0},textAlign:{type:String},clearable:{type:Boolean,default:!0}},model:{prop:"value",event:"change"},data(){return{visible:!1,currentData:{startDate:null,endDate:null,startArray:[],endArray:[]}}},created(){this.updateData(this.value,this.type,this.valueFormat)},computed:{isRange(){return this.type==="range"},currentValue(){if(this.currentData.startDate===null)return null;if(this.isRange){let t=W.date2Str(this.currentData.startDate),e=W.date2Str(this.currentData.endDate??new Date);return[t,e]}else return W.date2Str(this.currentData.startDate)},currentText(){if(this.currentData.startDate===null)return"";if(this.isRange){let t=Je(this.$props,this.currentData.startDate,this.$props.format),e=Je(this.$props,this.currentData.endDate,this.$props.format);return`${t} ${this.$props.rangeSeparator} ${e}`}else{let t=Je(this.$props,this.currentData.startDate,this.$props.format);return this.$props.showWeek&&(t=`${t} ${this.currentData.startArray[4]}`),t}}},watch:{value:{handler(t,e){this.updateData(t,this.type,this.valueFormat)},deep:!0},valueFormat(t,e){this.updateData(t,this.type,this.valueFormat)}},methods:{resetData(){this.currentData.startDate!==null&&(this.currentData.startDate=null,this.currentData.endDate=null,this.currentData.startArray=[],this.currentData.endArray=[])},updateData(t,e="one",n="YYYY-MM-DD"){if(Rr(t)){this.resetData();return}if(this.isRange&&Array.isArray(t)&&t.length==2){let i,r;typeof t[0]=="string"?(i=_n(t[0],n),r=_n(t[1],n)):(i=t[0],r=t[1]);let l=Qe(i),s=Qe(r);(this.currentData.startDate===null||this.currentData.startDate.getTime()!==i.getTime()||this.currentData.endDate?.getTime()!==r.getTime())&&(this.currentData.startDate=i,this.currentData.startArray=l,this.currentData.endDate=r,this.currentData.endArray=s)}else{let i;typeof t=="string"?i=_n(t,n):i=t;let r=Qe(i);(this.currentData.startDate===null||this.currentData.startDate.getTime()!==i.getTime())&&(this.currentData.startDate=i,this.currentData.startArray=r)}},onChoose(t){if(!!t)if(this.isRange&&Array.isArray(t)){let e=t[0],n=de(e[0]),i=de(e[1]),r=de(e[2]),l=new Date(n,i-1,r),s=t[1];n=de(s[0]),i=de(s[1]),r=de(s[2]);let o=new Date(n,i-1,r);if(this.currentData.startDate=l,this.currentData.startArray=Qe(l),this.currentData.endDate=o,this.currentData.endArray=Qe(o),this.$props.valueFormat){let a=Je(this.$props,l,this.$props.valueFormat),u=Je(this.$props,o,this.$props.valueFormat);this.$emit("change",[a,u],{})}else this.$emit("change",[l,o],{})}else{let e=t,n=de(e[0]),i=de(e[1]),r=de(e[2]),l=new Date(n,i-1,r);if(this.currentData.startDate=l,this.currentData.startArray=Qe(l),this.$props.valueFormat){let s=Je(this.$props,l,this.$props.valueFormat);this.$emit("change",s,{})}else this.$emit("change",l,{})}},onInput(t){},onFocus(t){!this.mReadonly&&!this.mDisabled&&(this.visible=!0),this.$emit("focus",t)},onBlur(t){this.visible||this.$emit("blur",t)},onClick(){this.mReadonly||this.mDisabled||(this.visible=!this.visible)},showPicker(){this.visible=!0},hidePicker(){this.visible=!1},focus(){this.$refs.input&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()},renderPicker(t){const e=jn(this.$props,$n);e["default-value"]=this.currentValue,e.disabled=this.mDisabled,e.readonly=this.mReadonly,e.visible=this.visible;const n={choose:this.onChoose,"update:visible":l=>{this.visible=l}},i={props:e,on:n},r={};return this.$scopedSlots.btn&&(r.btn=l=>this.$scopedSlots.btn(l)),this.$scopedSlots.day&&(r.day=l=>this.$scopedSlots.day(l)),this.$scopedSlots.topInfo&&(r.topInfo=l=>this.$scopedSlots.topInfo(l)),this.$scopedSlots.bottomInfo&&(r.bottomInfo=l=>this.$scopedSlots.bottomInfo(l)),i.scopedSlots=r,t(Vr,i)}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let _=this.$slots.default[0];if(this.multiLang){let{text:b}=_;b&&(b=b.trim()).length>0&&(b=this.$langTranslator.translate(this,b),e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b]))}if(!n){let{text:b}=_;b&&(b=b.trim()).length>0?(e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b])):_.tag&&(n=t("div",e,this.$slots.default))}}else{let _=this.label;_&&(_=_.trim()).length>0&&(this.multiLang&&(_=this.$langTranslator.translate(this,_)),e.domProps={innerHTML:B(_,this.mLabelMaxCharCount)},n=t("div",e))}let i=["type"],r={};ee(this,r,this.$attrs,i),r.title=this.innerValue,r.clearable=this.clearable;let l=rt(this.$props,$n,Pi,{type:""});l.value=this.currentText,l.disabled=this.mDisabled,l.readonly=this.editable,l.size=this.mSize;let s={};Q(this,s,this.$listeners,["blur","focus","change","input"]),s.blur=this.onBlur,s.focus=this.onFocus,s.clear=this.onClear,s.input=this.onInput;const o={click:this.onClick},a={attrs:r,props:l,on:s,nativeOn:o,ref:"input"},u={slot:"suffix",class:{"el-icon-date":!0,"el-input__icon":!0,"fox-date-item__suffix":!0,active:this.visible}},d=t("li",u),g=[t("el-input",a,[d])];let c=this.installTip(t);c.type!=="node"&&g.push(c.node);let m={class:{"el-form-item__content":!0},style:this.mInputStyle},p=t("div",m,g),h={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};c.type==="error"?h.class["is-error"]=!0:c.type==="warn"?h.class["is-warn"]=!0:c.type==="info"&&(h.class["is-info"]=!0),le(this,h);let y="text";this.componentData(this,h,y);const $=this.renderPicker(t);return n?t("div",h,[n,p,$]):t("div",h,[p,$])}},D0=null,w0=null;var T0=D(S0,D0,w0,!1,null,null,null,null);const C0=T0.exports;const Li=Object.freeze(Object.defineProperty({__proto__:null,Pagination:_s,Dialog:ws,Autocomplete:Ns,Dropdown:Os,DropdownMenu:zs,DropdownItem:Qs,Menu:sa,Submenu:ha,MenuItem:ba,MenuItemGroup:Ca,Input:Ra,InputNumber:qa,Radio:Ua,RadioGroup:to,RadioButton:oo,Checkbox:go,CheckboxButton:So,CheckboxGroup:Po,Switch:Fo,Select:Bo,Option:Zo,OptionGroup:ru,ButtonGroup:fu,Table:_u,TableColumn:wu,DatePicker:Sr,TimeSelect:Pc,TimePicker:Fc,Popover:Bc,Tooltip:Zc,MessageBox:lf,Breadcrumb:df,BreadcrumbItem:$f,Form:Tf,FormItem:Mf,Tabs:jf,TabPane:Yf,Tag:ed,Tree:ad,Alert:pd,Notification:vd,Slider:Id,Loading:Ad,Icon:Hd,Row:Gd,Col:nh,Upload:uh,Progress:gh,Spinner:Sh,Message:Ph,Badge:Fh,Card:Bh,Rate:Zh,Steps:rp,Step:fp,Carousel:_p,Scrollbar:wp,CarouselItem:Np,Collapse:Op,CollapseItem:zp,Cascader:Qp,ColorPicker:sm,Transfer:hm,Container:bm,Header:Cm,Aside:Rm,Main:qm,Footer:Um,Timeline:tg,TimelineItem:og,Link:mg,Divider:xg,Image:kg,Calendar:Vg,Backtop:Wg,InfiniteScroll:Xg,PageHeader:iy,CascaderPanel:cy,Avatar:yy,Drawer:Dy,Popconfirm:Ly,Skeleton:Ey,SkeletonItem:Ky,Empty:Jy,Descriptions:l_,DescriptionsItem:d_,Result:$_,Page:D_,SubPage:k_,HeaderBar:R_,Content:O_,FooterBar:B_,GroupHeader:G_,Group:n$,SubGroup:u$,InputRow:p$,ButtonRow:$$,Item:D$,EmptyItem:k$,TextItem:R$,MoneyItem:O$,CounterItem:K$,TimeItem:Z$,DateItem:ib,DateTimeItem:ub,TableItem:Ab,RadioItem:qb,Checkboxs:zb,CheckboxItem:Jb,NumberItem:lv,SwitchItem:fv,SliderItem:yv,RateItem:Sv,CascaderItem:ex,Button:ux,DialogItem:gx,AutocompleteItem:vx,SelectItem:Tx,TableSearchPopover:Lx,TableSearchColumn:Ex,CornerLabel:Wx,Dynamic:Ux,FloatNavigator:Qx,Fragment:r0,Overlay:Cn,Popup:Gt,Toast:Mr,ExtIcon:_t,Picker:Xt,CalendarPicker:Vr,CascaderPicker:Cr,CalendarItem:C0},Symbol.toStringTag,{value:"Module"}));function I0(t){let e=t.$attrs["fox-desc"];return e||(e=t.$slots&&t.$slots.default&&t.$slots.default[0]&&t.$slots.default[0].text),e||(e=t.$props.label),e}function k0(t,e){let n=t.$attrs["fox-model"];return n||(n=e),n}function Ni(t){let e=t;if(t.customScope){let n=t.$parent;for(let i=0;i<5;i++){if(n._provided&&n._provided.customRoot===!0){e=n;break}n=n.$parent}}return e}function P0(t){let{parentNode:e}=t;if(!(!e||!e.classList)&&!!e.classList.contains("el-dialog__body"))return e.parentNode}function L0(){return{top:0,left:0,bottom:0,right:0}}function N0(t=0,e=0){const n=xt(),i=Jt()-e-t;return{width:n,height:i}}const vt={install(t,e={}){if(ye.Vue)return;ye.Vue=t;let n={};e.filterKeys&&(n.filterKeys=e.filterKeys,delete e.filterKeys),e.componentFilterPropKeys&&(n.componentFilterPropKeys=e.componentFilterPropKeys,delete e.componentFilterPropKeys);let i=new Zl(n);const r=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=We();if(vt.initPageLayout(e,l),e.autoAdjustPageLayout!==!1){const s=se(e.headerBarHeight||e.headBarHeight||0),o=se(e.footerBarHeight||e.footBarHeight||0),a=Vn(()=>{const u=xt(),d=Jt(),f=Il();f.width=u,f.height=d-s-o,ri(f)},150);qi(window,"resize",a)}if(e)for(let s in e)r.indexOf(s)===-1&&l.setOption(s,e[s]);for(let s in Li){let o=Li[s];typeof o.install=="function"?t.use(o):t.component(o.name,o)}t.mixin({created(){if(et.install(this),oi(this)){let s=Ni(this),o=s.$vnode&&s.$vnode.data&&s.$vnode.data.model;if(o){let a=k0(s,o.expression),u=I0(this);M.setModel(s,o.expression,a,u),Qt.install(s)}}},beforeDestroy(){if(oi(this)){let s=Ni(this),o=s.$vnode&&s.$vnode.data&&s.$vnode.data.model;if(o){let{expression:a}=o;M.removeModel(s,a)}}this.$clearHotKey()},methods:{$tip(s,o,a){if(o)vn(o)&&(a=o,o=this.$el);else{a||(a={time:3}),o=document.body;let u=P0(this.$el)||this.$el;a.offsetTop==null&&(a.offsetTop=Rn(u)),a.offsetLeft==null&&(a.offsetLeft=An(u))}fox.layer.tip(s,o,a)},$setHotkey(s,o,a){this.$foxHotkeyCallbacks||(this.$foxHotkeyCallbacks=new Map),this.$foxHotkeyCallbacks.has(s)&&fn(s),a||(a=this.$el,this.$foxHotkeyCallbacks.set(s,o)),fs(a,s,o,this)},$removeHotKey(s,o){if(!this.$foxHotkeyCallbacks)return;o||(o=this.$el);let a=this.$foxHotkeyCallbacks.get(s);a&&(fn(o,a),this.$foxHotkeyCallbacks.remove(s))},$clearHotKey(){if(!this.$foxHotkeyCallbacks)return;const s=this.$el;this.$foxHotkeyCallbacks.forEach(function(o,a){fn(s,a,o)}),this.$foxHotkeyCallbacks=void 0},$emitEvent(s,...o){Reflect.apply(Be,this,[this,s,...o])}}}),Object.defineProperty(t.prototype,"$foxUI",{get(){return vt}}),Object.defineProperty(t.prototype,"$langTranslator",{get(){return i}}),Ql.install(t),ns.install(t),is.install(t,e.cursorOptions),as.install(t)},initPageLayout(t={},e){const n=se(t.headerBarHeight||t.headBarHeight||0),i=se(t.footerBarHeight||t.footBarHeight||0),r=Wt({},L0(),t.safeAreaInset),l=Wt({},N0(n,i),t.pageLayout);e=e??We(),e.setOption("safeAreaInset",r),e.setOption("headerBarHeight",n),e.setOption("footerBarHeight",i),ri(l)}};Object.assign(vt,Wl);window.Vue&&window.Vue.use(vt);module.exports=vt;
21
+ `;let d=Ue().createElement("div");return d.classList.add("tea-m-layer"),d.style.position=o,d.style.top=`${l}px`,d.style.left=`${s}px`,d.style.width=i,d.style.height=r,d.innerHTML=u,t?t.appendChild(d):doc.appendChild(d),d}class et{vm;constructor(e){this.vm=e,e.$once("hook:destroyed",()=>{console.info("layer release"),this.vm=void 0})}loading(){return this.vm.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.3)"})}alert(e,n,i){return this.vm.$alert(e,n,i)}message(e,n){return this.vm.$message(e,n)}confirm(e,n,i){return this.vm.$confirm(e,n,i)}prompt(e,n,i){return this.vm.$prompt(e,n,i)}tip(e,n,i={time:3}){n&&n.$el&&(n=n.$el);let r=Js(n,e,i),s={close(){r.parentNode.removeChild(r)}},l=i.time||-1;return l>0&&setTimeout(()=>{s.close()},l*1e3),s}}et.install=function(t){if(!(!he||!(window&&window.fox))&&!et.installed)if(et.installed=!0,window.fox.layer){let e=new et(t);window.fox.layer.__proto__=e;for(let n in e)window.fox.layer[n]=e[n]}else window.fox.layer=new et(t)};let Qs={install(t,e){t.directive("dialogDrag",{bind(n,i,r,s){const l=n.querySelector(".el-dialog__header"),o=n.querySelector(".el-dialog");l.style.cursor="move";const a=o.currentStyle||window.getComputedStyle(o,null);l.onmousedown=u=>{const d=u.clientX-l.offsetLeft,f=u.clientY-l.offsetTop;let g,c;a.left.includes("%")?(g=+document.body.clientWidth*(+a.left.replace(/\%/g,"")/100),c=+document.body.clientHeight*(+a.top.replace(/\%/g,"")/100)):(g=+a.left.replace(/\px/g,""),c=+a.top.replace(/\px/g,"")),document.onmousemove=function(p){const h=p.clientX-d,m=p.clientY-f;o.style.left=`${h+g}px`,o.style.top=`${m+c}px`},document.onmouseup=function(p){document.onmousemove=null,document.onmouseup=null}}}})}};const el=Symbol.for("handleNode"),sr="fox_auth_scope";function fi(t,e,n){let{value:i}=e,{context:r}=n,s=me.getAuthScope(r);if(!!s){if(!me.hasAuths(s)){n.componentInstance._data[sr]=s,me.registerNode(s,n,i);return}me.hasAuth(s,i)||me[el](n,!1)}}function tl(t,e,n){let i=n.componentInstance._data[sr];return i&&me.unRegisterNode(i,n),!0}let nl={install(t){t.directive("auth",{inserted(e,n,i){fi(e,n,i)},update(e,n,i){fi(e,n,i)},unbind(e,n,i){tl(e,n,i)}})}};function Ot(t,e){let n=t.$parent;if(e._uid===n._uid)return{headerScope:!1,footerScope:!1};if(n.$data){if(n.$data[Ln]===!0)return{headerScope:!1,footerScope:!1};if(n.$data[Mi]===!0)return{headerScope:!0,footerScope:!1};if(n.$data[Ri]===!0)return{headerScope:!1,footerScope:!0}}return Ot(n,e)}let il={install(t,e={}){e.navigation&&Ne.addNagigation("*",e.navigation),t.directive("cursor-navigate",{inserted(n,i,r){let{value:s}=i,l=!1,o=!1,a;if(typeof s=="object")l=s.headerScope,o=s.footerScope,a=s.type;else if(a=s,r.componentInstance){let u=Ee(r),d=Ot(r.componentInstance,u);l=d.headerScope,o=d.footerScope}r.componentInstance?Ne.bind(n,r,a,l,o):Ne.bind(n,r.context.$vnode,a,l,o)},componentUpdated(n,i,r){let{value:s}=i,l=!1,o=!1,a;if(typeof s=="object")l=s.headerScope,o=s.footerScope,a=s.type;else if(a=s,r.componentInstance){let u=Ee(r),d=Ot(r.componentInstance,u);l=d.headerScope,o=d.footerScope}r.componentInstance?Ne.updated(n,r,a,l,o):Ne.updated(n,r.context.$vnode,a,l,o)},unbind(n,i,r){let{value:s}=i,l=!1,o=!1,a;if(typeof s=="object")l=s.headerScope,o=s.footerScope,a=s.type;else if(a=s,r.componentInstance){let u=Ee(r),d=Ot(r.componentInstance,u);l=d.headerScope,o=d.footerScope}r.componentInstance?Ne.unbind(n,r,a,l,o):Ne.unbind(n,r.context.$vnode,a,l,o)}})}};class rl{get doc(){return Ue()}constructor(e,n){this.id=e,this.options=n}getHintBox(e=!0){let n=this.doc.getElementById(this.id);if(e&&!n){let i=this.doc.createElement("div");i.setAttribute("class","fox-hint-text");let r=this.doc.createElement("div");r.setAttribute("class","fox-hint-arrow"),n=this.doc.createElement("div"),n.setAttribute("class","fox-hint"),n.id=this.id,n.appendChild(i),n.appendChild(r),this.doc.body.appendChild(n)}return n}show(e,n,i=!1){if(!he)return;if(n==null||n.length==0){this.hide(e);return}let r=this.getHintBox(),s=r.getAttributeNode("data-fox-hint");s==null?r.setAttribute("data-fox-hint",n):(s.nodeValue=n,r.setAttributeNode(s));let l=this.options.margin?this.options.margin:0,o=46,a=nt(e),{x:u,y:d}=bn(e),f=u,g=d,c=f,p=g-o-l;if(r.style.display="block",r.style.top=`${p}px`,r.querySelector(".fox-hint-text").innerHTML=n,i){let h=a/8;h<20&&(h=20),r.style.minWidth=`${a}px`;let y=vt()-(r.offsetWidth+c);y<0&&(c+=y,h-=y),r.style.left=`${c}px`,r.querySelector(".fox-hint-arrow").style.left=`${h}px`}else{r.style.width=`${a}px`;let h=a/8;h<20&&(h=20),r.style.left=`${c}px`,r.querySelector(".fox-hint-arrow").style.left=`${h}px`}}hide(){if(!he)return;let e=this.getHintBox(!1);e&&(e.style.display="none")}close(){if(!he)return;let e=this.getHintBox(!1);e&&this.doc.body.removeChild(e)}}let sl="_hint_"+ji(),ll={boxMinHeight:40,cellWidth:30},Oe=new rl(sl,ll);const Nt=Symbol("HintFocusListenerKey"),Mt=Symbol("HintBlurListenerKey");let al={install(t){t.directive("hint",{inserted(e,n,i){let r=i.componentInstance||i.context.$vnode;if(!r)return;let{value:s}=n,l=null;typeof s=="object"?l=s.text:typeof s=="string"&&(l=s);let o=null;if(!l&&(o=r.data.model&&r.data.model.expression,!o))return;let a=()=>{if(l)return l;if(!r.componentInstance)return null;let u=M.getDomainProperty(r.componentInstance,"hints");return u?u[o]:null};if(r.componentInstance){let u=e.querySelector("input")||e;const d=()=>{setTimeout(()=>{Oe.show(u,a(),!0)},150)},f=()=>{Oe.hide()};r[Nt]=d,r[Mt]=f,r.componentInstance.$on("focus",d),r.componentInstance.$on("blur",f)}else console.error("hint directives install error")},unbind(e,n,i){let r=i.componentInstance||i.context.$vnode;!r||r.componentInstance&&(Oe.close(),typeof r[Nt]=="function"&&(r.componentInstance.$off("focus",r[Nt]),r[Nt]=void 0),typeof r[Mt]=="function"&&(r.componentInstance.$off("blur",r[Mt]),r[Mt]=void 0))}})}};function lr(t){let e={key:""},n=t.toLocaleLowerCase().split("+");if(n.length==1)return e.key=n[0],e;for(let i=0;i<n.length-1;i++){let r=n[i];r==="alt"?e.altKey=!0:r==="meta"?e.metaKey=!0:r==="ctrl"?e.ctrlKey=!0:r==="shift"&&(e.shiftKey=!0)}return e.key=n[n.length-1],e}const ol=["altKey","metaKey","ctrlKey","shiftKey"];function ar(t,e){if((t.key??"").toLocaleLowerCase()!==e.key)return!1;for(let i of ol)if(e[i]===!0&&t[i]!==!0)return!1;return!0}function ul(t,e,n){let i=lr(t);return s=>{if(ar(s,i)){try{Reflect.apply(e,n,[])}catch(l){console.error(l)}s.preventDefault()}}}class cl{key;callback;listener;constructor(e,n,i){this.key=e,this.callback=n,this.listener=i}}const zt=new WeakMap;function cn(t,e){const n=lr(e);return ar(t,n)}function fl(t,e,n,i={}){let r=ul(e,n,i);t.addEventListener("keyup",r,{capture:!0});const s=new cl(e,n,r);let l=zt.get(t);return l||(l=[],zt.set(t,l)),l.push(s),!0}function fn(t,e,n){let i=-1,r=null;const s=zt.get(t);if(!s)return!1;for(let l=0;l<s.length;l++){let o=s[l];if(o.key===e&&o.callback===n){i=l,r=o;break}}return i!==-1?(s.splice(i,1),t.removeEventListener("keyup",r.listener),s.length===0&&zt.delete(t),!0):!1}function A(t,e){if(t.injections.multiLang!=!0)return t.data;let n=t.parent,i=n.$langTranslator;if(i===void 0)return t.data;let{data:r}=t,s={};for(let l in r)if(l==="attrs"){let{attrs:o}=r,a={};for(let u in o){let d=o[u];d=i.translateAttr(n,u,d,l),a[u]=d}s.attrs=a}else if(l==="props"){let{props:o}=r,a={};for(let u in o){let d=o[u];d=i.translateProp(n,u,d,l),a[u]=d}s.props=a}else s[l]=r[l];return s}function or(t,e){let{children:n}=t;if(!n||n.length>1)return n;let i=t.parent;if(t.injections.multiLang!=!0)return n;let r=i.$langTranslator;if(r===void 0)return n;let{text:s}=n[0];return s=r.translate(i,s),[s]}function ur(t,e,n,i){let r;if(n.text)r=n.text;else if(n.tag){let s=n.data||{};i&&(s.slot=i);let l=[];if(n.children)for(let o=0;o<n.children.length;o++){let a=n.children[o],u=ur(t,e,a);l.push(u)}r=t(n.tag,s,l)}return r}function cr(t,e){let{context:n}=e.$vnode,i=[];for(let r in e.$slots){if(r==="default")continue;e.$slots[r].forEach(l=>{let o=ur(t,n,l,r);i.push(o)})}return i}let On={data(){return{}}};function D(t,e,n,i,r,s,l,o){var a=typeof t=="function"?t.options:t;e&&(a.render=e,a.staticRenderFns=n,a._compiled=!0),i&&(a.functional=!0),s&&(a._scopeId="data-v-"+s);var u;if(l?(u=function(g){g=g||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!g&&typeof __VUE_SSR_CONTEXT__<"u"&&(g=__VUE_SSR_CONTEXT__),r&&r.call(this,g),g&&g._registeredComponents&&g._registeredComponents.add(l)},a._ssrRegister=u):r&&(u=o?function(){r.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:r),u)if(a.functional){a._injectStyles=u;var d=a.render;a.render=function(c,p){return u.call(p),d(c,p)}}else{var f=a.beforeCreate;a.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:a}}const dl="fox-pagination",hl="el-pagination",pl={name:dl,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(hl,i,e.children)}},ml=null,gl=null;var yl=D(pl,ml,gl,!1,null,null,null,null);const _l=yl.exports,$l="fox-dialog",bl="el-dialog",xl={name:$l,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(bl,i,e.children)}},vl=null,Sl=null;var Dl=D(xl,vl,Sl,!1,null,null,null,null);const wl=Dl.exports,Tl="fox-autocomplete",Cl="el-autocomplete",Il={name:Tl,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Cl,i,e.children)}},kl=null,Pl=null;var Ll=D(Il,kl,Pl,!1,null,null,null,null);const Nl=Ll.exports,Ml="fox-dropdown",Rl="el-dropdown",Al={name:Ml,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Rl,i,e.children)}},Vl=null,Fl=null;var El=D(Al,Vl,Fl,!1,null,null,null,null);const Ol=El.exports,jl="fox-dropdown-menu",ql="el-dropdown-menu",Hl={name:jl,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(ql,i,e.children)}},Wl=null,Bl=null;var Kl=D(Hl,Wl,Bl,!1,null,null,null,null);const zl=Kl.exports,Yl="fox-dropdown-item",Ul="el-dropdown-item",Gl={name:Yl,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Ul,i,e.children)}},Xl=null,Zl=null;var Jl=D(Gl,Xl,Zl,!1,null,null,null,null);const Ql=Jl.exports,ea="fox-menu",ta="el-menu",na={name:ea,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(ta,i,e.children)}},ia=null,ra=null;var sa=D(na,ia,ra,!1,null,null,null,null);const la=sa.exports,aa="fox-submenu",oa="el-submenu",ua={name:aa,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(oa,i,e.children)}},ca=null,fa=null;var da=D(ua,ca,fa,!1,null,null,null,null);const ha=da.exports,pa="fox-menu-item",ma="el-menu-item",ga={name:pa,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(ma,i,e.children)}},ya=null,_a=null;var $a=D(ga,ya,_a,!1,null,null,null,null);const ba=$a.exports,xa="fox-menu-item-group",va="el-menu-item-group",Sa={name:xa,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(va,i,e.children)}},Da=null,wa=null;var Ta=D(Sa,Da,wa,!1,null,null,null,null);const Ca=Ta.exports;function fr(t){let{model:e}=t;if(e)return{name:e.expression,relate:t.attrs["fox-model"]}}function Yt(t,e){if(e==null)return!1;let n=M.getDomainProperty(t,"filter-models");if(!n||n.length==0)return!1;for(let i=0;i<n.length;i++)if(n[i].indexOf(e)!=-1)return!0;return!1}function it(t,e){let n=t.parent;if(!n.pageScope)return;let i=fr(e);if(i&&(Yt(n,i.relate)||Yt(n,i.name)))return;let r=!1;Reflect.has(e.attrs,"readonly")&&(r=Z(e.attrs.readonly)),e.attrs||(e.attrs={});let s=M.getDomainProperty(n,"readonly");s=Z(s),r||s?e.attrs.readonly=!0:delete e.attrs.readonly}function ke(t,e){let n=t.parent;if(!n.pageScope)return;let i=fr(e);if(i&&(Yt(n,i.relate)||Yt(n,i.name)))return;let r=!1;Reflect.has(e.attrs,"disabled")&&(r=Z(e.attrs.disabled)),e.attrs||(e.attrs={});let s=M.getDomainProperty(n,"disabled");s=Z(s),r||s?e.attrs.disabled=!0:delete e.attrs.disabled}const Ia="fox-input",ka="el-input",Pa={name:Ia,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),it(e,i),n(ka,i,e.children)}},La=null,Na=null;var Ma=D(Pa,La,Na,!1,null,null,null,null);const Ra=Ma.exports,Aa="fox-input-number",Va="el-input-number",Fa={name:Aa,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Va,i,e.children)}},Ea=null,Oa=null;var ja=D(Fa,Ea,Oa,!1,null,null,null,null);const qa=ja.exports,Ha="fox-radio",Wa="el-radio",Ba={name:Ha,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),n(Wa,i,e.children)}},Ka=null,za=null;var Ya=D(Ba,Ka,za,!1,null,null,null,null);const Ua=Ya.exports,Ga="fox-radio-group",Xa="el-radio-group",Za={name:Ga,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Xa,i,e.children)}},Ja=null,Qa=null;var eo=D(Za,Ja,Qa,!1,null,null,null,null);const to=eo.exports,no="fox-radio-button",io="el-radio-button",ro={name:no,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),it(e,i),n(io,i,e.children)}},so=null,lo=null;var ao=D(ro,so,lo,!1,null,null,null,null);const oo=ao.exports,uo="fox-checkbox",co="el-checkbox",fo={name:uo,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),n(co,i,e.children)}},ho=null,po=null;var mo=D(fo,ho,po,!1,null,null,null,null);const go=mo.exports,yo="fox-checkbox-button",_o="el-checkbox-button",$o={name:yo,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),n(_o,i,e.children)}},bo=null,xo=null;var vo=D($o,bo,xo,!1,null,null,null,null);const So=vo.exports,Do="fox-checkbox-group",wo="el-checkbox-group",To={name:Do,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(wo,i,e.children)}},Co=null,Io=null;var ko=D(To,Co,Io,!1,null,null,null,null);const Po=ko.exports,Lo="fox-switch",No="el-switch",Mo={name:Lo,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(No,i,e.children)}},Ro=null,Ao=null;var Vo=D(Mo,Ro,Ao,!1,null,null,null,null);const Fo=Vo.exports,Eo="fox-select",Oo="el-select",jo={name:Eo,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),it(e,i),n(Oo,i,e.children)}},qo=null,Ho=null;var Wo=D(jo,qo,Ho,!1,null,null,null,null);const Bo=Wo.exports,Ko="fox-option",zo="el-option",Yo={name:Ko,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(zo,i,e.children)}},Uo=null,Go=null;var Xo=D(Yo,Uo,Go,!1,null,null,null,null);const Zo=Xo.exports,Jo="fox-option-group",Qo="el-option-group",eu={name:Jo,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Qo,i,e.children)}},tu=null,nu=null;var iu=D(eu,tu,nu,!1,null,null,null,null);const ru=iu.exports,su="fox-button-group",lu="el-button-group",au={name:su,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(lu,i,e.children)}},ou=null,uu=null;var cu=D(au,ou,uu,!1,null,null,null,null);const fu=cu.exports,du="fox-table",hu="el-table",pu={name:du,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(hu,i,e.children)}},mu=null,gu=null;var yu=D(pu,mu,gu,!1,null,null,null,null);const _u=yu.exports,$u="fox-table-column",bu="el-table-column",xu={name:$u,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(bu,i,e.children)}},vu=null,Su=null;var Du=D(xu,vu,Su,!1,null,null,null,null);const wu=Du.exports;function Tu(t){return t===window}const dr=t=>{const e=S.unref(t);if(Tu(e)){const n=e.innerWidth,i=e.innerHeight;return{top:0,left:0,right:n,bottom:i,width:n,height:i}}return e&&e.getBoundingClientRect?e.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};let lt=0;const di="fox-overflow-hidden",Cu=t=>[()=>{t()&&(!lt&&document.body.classList.add(di),lt++)},()=>{t()&&lt&&(lt--,!lt&&document.body.classList.remove(di))}],hr={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},overlayClass:{type:String,default:""},lockScroll:{type:Boolean,default:!1},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function be(t){const e="fox-"+t;return{componentName:e,scope:t.replace("-",""),create(n){return n.baseName=t,n.name=e,n.install=i=>{i.component(n.name,n)},S.defineComponent(n)}}}const{componentName:Iu,create:ku}=be("overlay"),Pu=ku({props:hr,emits:["click","update:visible"],setup(t,{emit:e}){const n=S.computed(()=>({[Iu]:!0,[t.overlayClass]:!0}));S.watch(()=>t.visible,a=>{a?i():r()});const i=()=>{t.lockScroll&&t.visible&&document.body.classList.add("fox-overflow-hidden")},r=()=>{document.body.classList.remove("fox-overflow-hidden")};S.onDeactivated(r),S.onBeforeUnmount(r),S.onMounted(i),S.onActivated(i);const s=S.computed(()=>({animationDuration:`${t.duration}s`,zIndex:t.zIndex,...t.overlayStyle}));return{classes:n,style:s,touchmove:a=>{t.lockScroll&&a.preventDefault()},onClick:a=>{e("click",a),t.closeOnClickOverlay&&e("update:visible",!1)}}}});var Lu=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("Transition",{attrs:{name:"overlay-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:e.classes,style:e.style,on:{touchmove:function(i){return i.stopPropagation(),e.touchmove.apply(null,arguments)},click:e.onClick}},[e._t("default")],2)])},Nu=[],Mu=D(Pu,Lu,Nu,!1,null,null,null,null);const Cn=Mu.exports,Re=t=>t instanceof Date,Ut=t=>t!==null&&typeof t=="object",Ru=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;class In{static seed=new Date().getTime();static get(){let e=++In.seed;return e>=Number.MAX_VALUE&&(In.seed=0),e}}Ru&&Promise.resolve();function de(t){return typeof t=="number"?t:Number(t)}const Au={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function hi(t){let n=Object.prototype.toString.call(t);return t==null?String(t):Au[n]||"object"}function kn(t,e){if(t==e)return!0;if(t===void 0||e===void 0)return!1;let n=hi(t),i=hi(e);if(n!==i)return!1;if(n==="object"){let r=Object.keys(t),s=Object.keys(e);if(r.length!==s.length)return!1;for(let l=0;l<r.length;l++){let o=r[l],a=t[o],u=e[o];if(!kn(a,u))return!1}return!0}else if(n==="array"){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let s=t[r],l=e[r];if(!kn(s,l))return!1}return!0}return!1}const pr=typeof window<"u",Vu=pr&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function mr(t){return t==null||t==null?0:typeof t=="string"?t.length:`${t}`.length}function jn(t,...e){const n={};return e.forEach(i=>{for(const r in i)n[r]=t[r]}),n}function rt(t,...e){const n=[];e.forEach(r=>{Reflect.apply([].push,n,Reflect.ownKeys(r))});const i={};for(const r in t)n.includes(r)||(i[r]=t[r]);return i}const dt=t=>t?`${Fu(t)}px`:"";function Fu(t,e=-1){if(typeof t=="number")return t<1?t*e:t;if(t=t.trim().toLocaleLowerCase(),t.length===0)return 0;let n=t.indexOf("px");if(n!==-1)return Number(t.substring(0,n));if(n=t.indexOf("rem"),n!==-1){let r=Number(t.substring(0,n)),s=1;if(pr){const{fontSize:l}=window.getComputedStyle(document.documentElement,null),o=l.indexOf("px");o>0&&(s=Number(l.substring(0,o)))}return r*=s,r}if(n=t.indexOf("%"),n!==-1)return Number(t.substring(0,n))*e;const i=Number(t);return isNaN(i)?0:i}const{componentName:pi,create:Eu}=be("ext-icon"),Ou=Eu({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(t,{emit:e,slots:n}){const i=s=>{e("click",s)},r=S.computed(()=>t.name?t.name.indexOf("/")!==-1:!1);return()=>{const s=r.value;return S.h(s?"img":t.tag,{class:s?`${pi}__img`:`${t.fontClassName} ${pi} ${t.classPrefix}-${t.name}`,style:{color:t.color,fontSize:dt(t.size),width:dt(t.size),height:dt(t.size)},on:{click:i},attrs:{src:s?t.name:""}},n.default?.())}}}),ju=null,qu=null;var Hu=D(Ou,ju,qu,!1,null,null,null,null);const _t=Hu.exports,qn={...hr,position:{type:String,default:"center"},transition:String,popStyle:{type:Object},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},closeIcon:{type:String,default:"close"},destroyOnClose:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1}},{componentName:Wu,create:Bu}=be("popup");let mi=2e3;const Ku=Bu({components:{[Cn.name]:Cn,[_t.name]:_t},props:{...qn},emits:["click","click-close-icon","open","close","opened","closed","update:visible","click-overlay"],setup(t,{emit:e}){const n=S.ref(),i=S.reactive({zIndex:t.zIndex,showSlot:!0,transitionName:`popup-fade-${t.position}`,overLayCount:1,keepAlive:!1,closed:t.closeable}),[r,s]=Cu(()=>t.lockScroll),l=S.computed(()=>({[Wu]:!0,round:t.round,[`popup-${t.position}`]:!0,[`popup-${t.position}--safebottom`]:t.position==="bottom"&&t.safeAreaInsetBottom,[t.popClass]:!0})),o=S.computed(()=>({zIndex:i.zIndex,animationDuration:t.duration?`${t.duration}s`:"initial",...t.popStyle})),a=()=>{t.zIndex!=2e3&&(mi=Number(t.zIndex)),e("update:visible",!0),r(),i.zIndex=++mi,t.destroyOnClose&&(i.showSlot=!0),e("open")},u=()=>{s(),e("update:visible",!1),t.destroyOnClose&&setTimeout(()=>{i.showSlot=!1,e("close")},+t.duration*1e3)},d=h=>{e("click",h)},f=h=>{e("click-close-icon",h),u()},g=h=>{t.closeOnClickOverlay&&(e("click-overlay",h),u())},c=h=>{e("opened",h)},p=h=>{e("closed",h)};return S.onMounted(()=>{t.transition?i.transitionName=t.transition:i.transitionName=`popup-slide-${t.position}`,t.visible&&a()}),S.onBeforeUnmount(()=>{t.visible&&u()}),S.onBeforeMount(()=>{t.visible&&s()}),S.onActivated(()=>{i.keepAlive&&(e("update:visible",!0),i.keepAlive=!1)}),S.onDeactivated(()=>{t.visible&&(u(),i.keepAlive=!0)}),S.watch(()=>t.visible,h=>{h?a():u()}),S.watch(()=>t.position,h=>{h==="center"?i.transitionName="popup-fade":i.transitionName=`popup-slide-${h}`}),S.watch(()=>t.closeable,h=>{i.closed=h}),{...S.toRefs(i),popStyle:o,classes:l,onClick:d,onClickCloseIcon:f,onClickOverlay:g,onOpened:c,onClosed:p,popupRef:n}}});var zu=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",[e.overlay?n("fox-overlay",{class:e.overlayClass,style:e.overlayStyle,attrs:{visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration},on:{click:e.onClickOverlay}}):e._e(),n("transition",{attrs:{name:e.transitionName},on:{"after-enter":e.onOpened,"after-leave":e.onClosed}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:e.classes,style:e.popStyle,on:{click:e.onClick}},[e.showSlot?e._t("default"):e._e(),e.closed?n("div",{staticClass:"foxui-popup__close-icon",class:"foxui-popup__close-icon--"+e.closeIconPosition,on:{click:e.onClickCloseIcon}},[n("fox-ext-icon",{attrs:{name:e.closeIcon,size:"12px"}})],1):e._e()],2)])],1)},Yu=[],Uu=D(Ku,zu,Yu,!1,null,null,null,null);const Gt=Uu.exports,gi=10;function Gu(t,e){return t>e&&t>gi?"horizontal":e>t&&e>gi?"vertical":""}function Xu(){const t=S.ref(0),e=S.ref(0),n=S.ref(0),i=S.ref(0),r=S.ref(0),s=S.ref(0),l=S.ref(0),o=S.ref(0),a=S.ref(0),u=S.ref(0),d=S.ref(""),f=()=>d.value==="vertical",g=()=>d.value==="horizontal",c=()=>{l.value=0,o.value=0,a.value=0,u.value=0,d.value="",n.value=0};return{move:m=>{const y=m.touches[0];l.value=y.clientX-t.value,o.value=y.clientY-e.value,r.value=y.clientX,s.value=y.clientY,a.value=Math.abs(l.value),u.value=Math.abs(o.value),i.value=Date.now()-n.value,d.value||(d.value=Gu(a.value,u.value))},start:m=>{c(),t.value=m.touches[0].clientX,e.value=m.touches[0].clientY,n.value=Date.now()},reset:c,startX:t,startY:e,startTime:n,duration:i,moveX:r,moveY:s,deltaX:l,deltaY:o,offsetX:a,offsetY:u,direction:d,isVertical:f,isHorizontal:g}}const gr={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},yr={...qn,...gr,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default(){return[]}},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:"\u53D6\u6D88"},clearText:{type:String,default:"\u6E05\u9664"},confirmText:{type:String,default:"\u786E\u8BA4"}};function Hn(t){return t.$route&&t.$route.params&&t.$route.params.microAppName}function _r(t,e){const n=Hn(t);return De(e,n)}let $r=36;function Zu(){return $r}function Ju(t){$r=t}function _e(t,e){return typeof t.textKey=="string"&&t.textKey.length>0?e[t.textKey]:e.text}function Ye(t,e){return typeof t.valueKey=="string"&&t.valueKey.length>0?e[t.valueKey]:e.value}function Pn(t,e){return typeof t.childrenKey=="string"&&t.childrenKey.length>0?e[t.childrenKey]:e.children??null}function Qu(t,e,n){typeof t.childrenKey=="string"&&t.childrenKey.length>0&&(e[t.childrenKey]=n),e.children=n}function yi(t,e){return typeof t.columnOptions=="function"?t.columnOptions(e):t.columnOptions}class ec{proxy;constructor(e){this.proxy=e}async load(e,n,i){if(Array.isArray(n))return n;if(typeof n=="function")return await n(i);const r=_r(this.proxy,e);return r===null?(console.error(`${e} component not found api function`),[]):(Ut(i)&&S.isReactive(i)&&(i=S.toRaw(i)),await r(n,i))}}function tc(){const t=S.getCurrentInstance();return new ec(t.proxy)}function _i(t,e,n){const i=_e(t,e),r=_e(t,n);if(i!==r)return!1;const s=Ye(t,e),l=Ye(t,n);return s===l}function nc(t,e,n,i){if(n.length==0)return[];Array.isArray(e)||(e=[e]);const r=[],s=t.valueType??"value";if(i==="singleColumn"||i==="multipleColumn")for(let l=0;l<e.length&&l<n.length;l++){const o=e[l];let u=n[l].findIndex(d=>{if(s==="text")return _e(t,d)===o;if(s==="value"){let f=Ye(t,d);return f==null&&(f=_e(t,d)),f===o}else if(s==="item")return _i(t,d,o);return!1});if(u==-1)break;r.push(u)}else{let l=n[0];for(let o=0;o<e.length;o++){const a=e[o];let u=l.findIndex(f=>{if(s==="text")return _e(t,f)===a;if(s==="value"){let g=Ye(t,f);return g==null&&(g=_e(t,f)),g===a}else if(s==="item")return _i(t,f,a);return!1});if(u==-1)break;r.push(u);const d=Pn(t,l[u]);if(!Array.isArray(d))break;l=d}}return r}function $i(t,e,n,i){if(n.length==0)return null;const r={texts:[],values:[]},s=t.valueType??"value";if(i==="singleColumn"||i==="multipleColumn")for(let l=0;l<e.length&&l<n.length;l++){const o=n[l];let a=e[l];a<0&&a>=o.length&&(a=0);const u=o[a],d=_e(t,u);if(r.texts.push(d),s==="text")r.values.push(d);else if(s==="value"){let f=Ye(t,u);f==null&&(f=d),r.values.push(f)}else r.values.push(u)}else{let l=n[0];for(let o=0;o<e.length;o++){let a=e[o];a<0&&a>=l.length&&(a=0);const u=l[a],d=_e(t,u);if(r.texts.push(d),s==="text")r.values.push(d);else if(s==="value"){let f=Ye(t,u);f==null&&(f=d),r.values.push(f)}else{const f=Object.assign({},u);f.children=null,r.values.push(f)}if(!Array.isArray(u.children))break;l=u.children}}return r}function bi(t){return{text:t,value:t}}const ic=15,rc=300,sc=200,{create:lc}=be("picker-column");function ac(t){t.stopPropagation()}function oc(t,e){(typeof t.cancelable!="boolean"||t.cancelable)&&t.preventDefault(),e&&ac(t)}const uc=lc({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:36},visible:{type:Boolean,default:!1},...gr},model:{prop:"modelValue",event:"update:modelValue"},emits:["click","change","update:modelValue"],setup(t,{emit:e}){const n=S.computed(()=>({"fox-picker__list":!0})),i=S.computed(()=>({height:`${de(t.visibleItemCount)*+t.itemHeight}px`})),r=S.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!t.threeDimensional,"fox-picker__content-roller":t.threeDimensional})),s=S.computed(()=>t.itemHeight*Math.floor(+t.visibleItemCount/2)),l=x=>x>=f.currIndex+8||x<=f.currIndex-8,o=S.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${s.value}px`})),a=x=>`transform: rotate3d(1, 0, 0, ${-f.rotation*x}deg) translate3d(0px, 0px, 104px)`,u=S.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+s.value}px, 0)`})),d=S.ref(null),f=S.reactive({currIndex:t.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=x=>_e(t,x),c=x=>Ye(t,x),p=Xu(),h=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},m=(x,v=!1,I=!1)=>{if(f.currIndex=x,v){const L=()=>{t.visible!==!1&&(f.moving=!1,e("update:modelValue",x),e("change",x))};I?f.transitionEndTrigger=L:L()}},y=(x,v,I)=>{let L=x+f.startDistance;if(v==="end"){const E=-(t.source.length-1)*t.itemHeight;L<E&&(L=E),L>0&&(L=0),I=I??t.swipeDuration;let W=Math.abs(Math.round(-L/t.itemHeight));const k=-W*t.itemHeight,N=`${(W+1)*f.rotation}deg`,R=I?I>0:!1;m(W,!0,R),_(k,v,I,N)}else{let E=(-L/t.itemHeight+1)*f.rotation;const W=(t.source.length+1)*f.rotation,k=0;if(E=Math.min(Math.max(E,k),W),t.threeDimensional&&(E<k||E>W))return;_(L,null,void 0,`${E}deg`)}},_=(x=0,v,I=sc,L)=>{v==="end"?f.scrollTime=I:f.scrollTime=0,f.deg=L,f.scrollDistance=x},$=(x,v)=>(x=Math.abs(x/v)/.003*(x<0?-1:1),x),b=x=>{t.readonly||(f.startDistance=f.scrollDistance,p.start(x),f.transitionEndTrigger=null)},C=x=>{t.readonly||(f.moving=!0,p.move(x),p.isVertical()&&(f.moving=!0,oc(x,!0)),y(p.deltaY.value,"",0))},P=()=>{if(t.readonly)return;const x=p.deltaY.value,v=p.duration.value;if(v<rc&&Math.abs(x)>ic){const L=$(x,v);y(L,"end",t.swipeDuration)}else y(x,"end",0)};return S.watch(()=>t.modelValue,x=>{const v=f.currIndex-x;if(v!==0){f.currIndex=x,f.startDistance=f.scrollDistance;const I=v*t.itemHeight;y(I,"",0)}}),S.watch(()=>t.source,x=>{if(f.currIndex>=x.length){const L=(x.length-1-f.currIndex)*t.itemHeight;f.startDistance=f.scrollDistance,y(L,"end",0)}}),S.onMounted(()=>{const x=-t.modelValue*t.itemHeight;y(x)}),{classes:n,styles:i,contentClasses:r,itemText:g,itemValue:c,...S.toRefs(f),roller:d,getItemText:_e,onTouchStart:b,onTouchMove:C,onTouchEnd:P,isHidden:l,setRollerStyle:a,touchRollerStyle:o,touchTileStyle:u,stopMomentum:h}}});var cc=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{class:e.classes,style:e.styles,on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd,touchcancel:e.onTouchEnd,transitionend:e.stopMomentum}},[n("div",{ref:"roller",class:e.contentClasses,style:e.threeDimensional?e.touchRollerStyle:e.touchTileStyle},[e._l(e.source,function(i,r){return[e.threeDimensional?[n("div",{key:`${e.columnIndex}_${r}`,staticClass:"fox-picker__item",class:{"fox-picker__item-hidden":e.isHidden(r+1)},style:e.setRollerStyle(r+1)},[e._v(" "+e._s(e.itemText(i))+" ")])]:[n("div",{key:`${e.columnIndex}_${r}`,staticClass:"fox-picker__item-tile"},[e._v(e._s(e.itemText(i)))])]]})],2)])},fc=[],dc=D(uc,cc,fc,!1,null,null,null,null);const xi=dc.exports,{create:hc,componentName:pc}=be("picker"),mc=hc({components:{[xi.name]:xi,[Gt.name]:Gt},props:{...yr},model:{prop:"modelValue",event:"update:modelValue"},emits:["close","change","confirm","clear","update:visible","update:text","update:modelValue"],setup(t,{emit:e}){const n=S.ref(null),i=S.ref(Zu());S.watch(()=>t.visible,v=>{v&&i.value<=0&&setTimeout(()=>{if(n.value){const I=dr(n.value);i.value=I.height,Ju(i.value)}},50)});const r=S.computed(()=>({[pc]:!0})),s=tc(),l=S.ref("singleColumn");let o=S.ref([]);S.watchEffect(async()=>{if(t.source){let v=await s.load("picker",t.source,t.params);if(v.length>0){let I=v[0];if(Array.isArray(I)){if(typeof I[0]=="string"){let L=v,E=[];L.forEach(W=>{let k=W.map(N=>bi(N));E.push(k)}),o.value=E}else o.value=v;l.value="multipleColumn"}else if(typeof I=="string"){let L=v,E=[],W=L.map(k=>bi(k));E.push(W),o.value=E,l.value="singleColumn"}else{const L=Pn(t,I);Array.isArray(L)?(l.value="cascade",o.value=[v]):(l.value="singleColumn",o.value=[v])}}}});const a=S.ref([]),u=S.ref(t.modelValue),d=S.ref([]);S.watch([()=>t.modelValue,()=>o.value],([v,I])=>{let L=nc(t,v,I,l.value);if(!kn(L,d.value)){d.value=L;let E=$i(t,L,I,l.value);E&&(a.value=E.texts,e("update:text",a.value))}});const f=S.ref(t.visible);S.watch(()=>t.visible,v=>{f.value=v});const g=v=>{let I=yi(t,v);return Ut(I)?I.getDefaultIndex??0:0},c=v=>{if(t.readonly===!0)return!0;let I=yi(t,v);return Ut(I)?I.readonly??!1:!1},p=(v,I,L=!1)=>{let E=[...d.value];E[v]=I;for(let k=0;k<v;k++)E[k]==null&&(E[k]=g(k));if(l.value==="cascade")for(let k=v+1;k<m.value.length;k++){let N=g(k);k<E.length?E[k]=N:E.push(N)}else for(let k=E.length;k<m.value.length;k++){let N=g(k);E.push(N)}d.value=E;let W=$i(t,E,o.value,l.value);if(W&&(a.value=W.texts,u.value=W.values),L)if(l.value==="singleColumn"){let k=W&&W.values.length>0?W.values[0]:"";e("change",k)}else e("change",W?.values)},h=v=>v<d.value.length?d.value[v]:g(v),m=S.computed(()=>{if(o.value.length==0)return[];if(l.value=="singleColumn"||l.value=="multipleColumn")return o.value;let v=[],I=0,L=o.value[0],E=0;for(;;){let W=L.map(R=>{let O=Object.assign({},R);return Qu(t,O,null),O});v.push(W),I>=d.value.length?E=0:E=d.value[I],(E<0||E>=L.length)&&(E=0);let k=L[E];const N=Pn(t,k);if(!Array.isArray(N))break;L=N,I++}return v}),y=S.computed(()=>de(+t.visibleItemCount-1)/2*i.value),_=S.computed(()=>de(t.visibleItemCount)*i.value),$=S.computed(()=>({height:`${_.value+56}px`}));return{pickerLineRef:n,classes:r,popupStyles:$,columns:m,dataType:l,show:f,itemHeight:i,top:y,height:_,isReadonly:c,getIndex:h,change:(v,I)=>{console.info("------------- change -----------",v,I),p(v,I,!0)},close:()=>{e("close"),e("update:visible",!1)},confirm:()=>{if(t.readonly===!0){e("update:visible",!1);return}let v=o.value.length-1;for(;v>=0&&!(d.value[v]===null||d.value[v]===void 0);v--);if(v>=0&&p(v,0,!1),l.value==="singleColumn"){let I=u.value.length>0?u.value[0]:"";t.readonly||(e("update:modelValue",I),e("update:text",a.value)),e("confirm",I)}else t.readonly||(e("update:modelValue",u.value),e("update:text",a.value)),e("confirm",u.value);e("update:visible",!1)},clear:()=>{if(t.readonly===!0){e("update:visible",!1);return}l.value==="singleColumn"?(e("update:modelValue",""),e("change","")):(e("update:modelValue",[]),e("change",[])),e("update:visible",!1),e("clear")}}}});var gc=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{class:e.classes},[n("fox-popup",{attrs:{position:"bottom","pop-style":e.popStyle,"pop-class":e.popClass,visible:e.visible,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,round:!0},on:{close:e.close}},[n("div",{staticClass:"fox-picker__bar"},[n("div",{staticClass:"fox-picker__title"},[e._v(" "+e._s(e.title))]),n("div",{staticClass:"fox-picker__bar__action"},[n("div",{staticClass:"fox-picker__left fox-picker__cancel fox-picker__button",on:{click:e.close}},[e._v(e._s(e.cancelText))]),n("div",{staticClass:"fox-picker__right fox-picker__confirm fox-picker__button",on:{click:e.confirm}},[e._v(e._s(e.confirmText))]),e.clearText?n("div",{staticClass:"fox-picker__right fox-picker__clear fox-picker__button",on:{click:e.clear}},[e._v(e._s(e.clearText))]):e._e()])]),e._t("top"),n("div",{staticClass:"fox-picker__column"},[n("div",{staticClass:"fox-picker__mask",style:{backgroundSize:`100% ${e.top}px`}}),n("div",{ref:"pickerLineRef",staticClass:"fox-picker__hairline",style:{top:` ${e.top}px`}}),e._l(e.columns,function(i,r){return n("div",{key:r,staticClass:"fox-picker__columnitem"},[n("fox-picker-column",{attrs:{visible:e.visible,source:i,readonly:e.isReadonly(r),"column-index":r,modelValue:e.getIndex(r),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},on:{"update:modelValue":function(s){return e.change(r,s)}}})],1)})],2),e._t("default")],2)],1)},yc=[],_c=D(mc,gc,yc,!1,null,null,null,null);const Xt=_c.exports,vi=new Date().getFullYear(),br={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",["month-day"]:"MM-DD",datehour:"YYYY-MM-DD HH"},Si=(t,e,n)=>{let i;if(Re(e)?i=e:typeof e=="string"&&mr(e)>0?i=H.parser(e,n):i=new Date,i.toString()==="Invalid Date")return null;let r=Math.max(i.getTime(),t.minDate.getTime());return r=Math.min(r,t.maxDate.getTime()),new Date(r)},xr=(t,e,n)=>{Re(e)||(e=t.minDate);let i=Math.max(e.getTime(),t.minDate.getTime());return i=Math.min(i,t.maxDate.getTime()),H.format(new Date(i),n)};let vr={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(vi-10,0,1),validator:Re},maxDate:{type:Date,default:()=>new Date(vi+10,11,31),validator:Re},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},isWrapTeleport:{type:Boolean,default:!0}};const{create:$c}=be("date-picker"),bc=$c({components:{[Xt.name]:Xt},props:{...vr},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],model:{prop:"modelValue",event:"update:modelValue"},setup(t,{emit:e}){const n={year:"\u5E74",month:"\u6708",day:"\u65E5",hour:"\u65F6",minute:"\u5206",seconds:"\u79D2"},i=S.ref(!1);S.watch(()=>t.visible,y=>{i.value=y});function r(y,_){return new Date(y,_,0).getDate()}const s=(y,_)=>{const $=t[`${y}Date`],b=$.getFullYear();let C=1,P=1,x=0,v=0;y==="max"&&(C=12,P=r(_.getFullYear(),_.getMonth()+1),x=23,v=59);const I=v;return _.getFullYear()===b&&(C=$.getMonth()+1,_.getMonth()+1===C&&(P=$.getDate(),_.getDate()===P&&(x=$.getHours(),_.getHours()===x&&(v=$.getMinutes())))),{[`${y}Year`]:b,[`${y}Month`]:C,[`${y}Date`]:P,[`${y}Hour`]:x,[`${y}Minute`]:v,[`${y}Seconds`]:I}},l=S.computed(()=>{if(!f.value)return[];const{maxYear:y,maxDate:_,maxMonth:$,maxHour:b,maxMinute:C,maxSeconds:P}=s("max",f.value),{minYear:x,minDate:v,minMonth:I,minHour:L,minMinute:E,minSeconds:W}=s("min",f.value);let k=[{type:"year",range:[x,y]},{type:"month",range:[I,$]},{type:"day",range:[v,_]},{type:"hour",range:[L,b]},{type:"minute",range:[E,C]},{type:"seconds",range:[W,P]}];switch(t.type){case"date":k=k.slice(0,3);break;case"datetime":k=k.slice(0,5);break;case"time":k=k.slice(3,6);break;case"month-day":k=k.slice(1,3);break;case"datehour":k=k.slice(0,4);break}return k}),o=(y,_,$)=>{if(!(_>y))return null;const b=[];for(;y<=_;)t.isShowChinese?b.push({text:y+n[$],value:y}):b.push({text:`${y}`,value:y}),$==="minute"?y+=t.minuteStep:y++;return b},a=S.computed(()=>{let y=[];return l.value.forEach(_=>{let $=o(_.range[0],_.range[1],_.type);$&&y.push($)}),y}),u=(y,_)=>y==="year"?_.getFullYear():y==="month"?_.getMonth()+1:y==="day"?_.getDate():y==="hour"?_.getHours():y==="minute"?_.getMinutes():y==="seconds"?_.getSeconds():0,d=S.ref(),f=S.ref();S.watch(()=>t.modelValue,y=>{let _;if(typeof y=="string"?y.length==0?_=new Date:t.valueFormat?_=Si(t,t.modelValue,t.valueFormat):_=Si(t,y,br[t.type]):Re(y)?_=y:_=new Date,_!=null&&(!f.value||_.getTime()!==f.value.getTime())){f.value=_;let $=[];l.value.forEach(b=>{let C=u(b.type,_);$.push(C)}),d.value=$}},{immediate:!0});const g=y=>{if(t.type==="date"){const _=y[0],$=y[1]-1,b=Math.min(y[2],r(_,$+1));b!==y[2]&&(y[2]=b),f.value=new Date(_,$,b)}else if(t.type==="datetime"){const _=y[0],$=y[1]-1,b=Math.min(y[2],r(_,$+1)),C=y[3],P=y[4];b!==y[2]&&(y[2]=b),f.value=new Date(_,$,b,C,P)}else if(t.type==="time"){const _=y[0],$=y[1],b=y[2],C=f.value??new Date,P=new Date(C.getFullYear(),C.getMonth(),C.getDate(),_,$,b);f.value=P}else if(t.type==="year-month"){const _=y[0],$=y[1]-1;f.value=new Date(_,$)}else if(t.type==="month-day"){const $=(f.value??new Date).getFullYear(),b=y[0]-1,C=Math.min(y[1],r($,b+1));C!==y[1]&&(y[1]=C);const P=new Date($,b,C);f.value=P}else if(t.type==="datehour"){const _=y[0],$=y[1]-1,b=Math.min(y[2],r(_,$+1)),C=y[3];b!==y[2]&&(y[2]=b),f.value=new Date(_,$,b,C)}else if(t.type==="hour-minute"){const _=y[0],$=y[1],b=f.value??new Date,C=new Date(b.getFullYear(),b.getMonth(),b.getDate(),_,$);f.value=C}d.value=y};return{columns:a,dateIndexs:d,show:i,onChange:y=>{g(y)},onClose:()=>{i.value=!1,e("update:visible",!1),e("update:close",!1)},onConfirm:y=>{g(y),i.value=!1;let _=f.value??new Date;if(t.valueFormat){let $=xr(t,_,t.valueFormat);e("update:modelValue",$)}else e("update:modelValue",_);e("update:visible",!1),e("confirm",y)},onClear:()=>{i.value=!1,e("update:modelValue",""),e("update:visible",!1),e("clear")}}}});var xc=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("fox-picker",{attrs:{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,isWrapTeleport:e.isWrapTeleport},on:{change:e.onChange,confirm:e.onConfirm,close:e.onClose,clear:e.onClear},scopedSlots:e._u([{key:"top",fn:function(){return[e._t("top")]},proxy:!0},{key:"default",fn:function(){return[e._t("default")]},proxy:!0}],null,!0)})},vc=[],Sc=D(bc,xc,vc,!1,null,null,null,null);const Sr=Sc.exports,Dc="fox-time-select",wc="el-time-select",Tc={name:Dc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),it(e,i),n(wc,i,e.children)}},Cc=null,Ic=null;var kc=D(Tc,Cc,Ic,!1,null,null,null,null);const Pc=kc.exports,Lc="fox-time-picker",Nc="el-time-picker",Mc={name:Lc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),it(e,i),n(Nc,i,e.children)}},Rc=null,Ac=null;var Vc=D(Mc,Rc,Ac,!1,null,null,null,null);const Fc=Vc.exports,Ec="fox-popover",Oc="el-popover",jc={name:Ec,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Oc,i,e.children)}},qc=null,Hc=null;var Wc=D(jc,qc,Hc,!1,null,null,null,null);const Bc=Wc.exports,Kc="fox-tooltip",zc="el-tooltip",Yc={name:Kc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(zc,i,e.children)}},Uc=null,Gc=null;var Xc=D(Yc,Uc,Gc,!1,null,null,null,null);const Zc=Xc.exports,Jc="fox-message-box",Qc="el-message-box",ef={name:Jc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Qc,i,e.children)}},tf=null,nf=null;var rf=D(ef,tf,nf,!1,null,null,null,null);const sf=rf.exports,lf="fox-breadcrumb",af="el-breadcrumb",of={name:lf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(af,i,e.children)}},uf=null,cf=null;var ff=D(of,uf,cf,!1,null,null,null,null);const df=ff.exports,hf="fox-breadcrumb-item",pf="el-breadcrumb-item",mf={name:hf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(pf,i,e.children)}},gf=null,yf=null;var _f=D(mf,gf,yf,!1,null,null,null,null);const $f=_f.exports,bf="fox-form",xf="el-form",vf={name:bf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(xf,i,e.children)}},Sf=null,Df=null;var wf=D(vf,Sf,Df,!1,null,null,null,null);const Tf=wf.exports,Cf="fox-form-item",If="el-form-item",kf={name:Cf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(If,i,e.children)}},Pf=null,Lf=null;var Nf=D(kf,Pf,Lf,!1,null,null,null,null);const Mf=Nf.exports,Rf="fox-tabs",Af="el-tabs",Vf={name:Rf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Af,i,e.children)}},Ff=null,Ef=null;var Of=D(Vf,Ff,Ef,!1,null,null,null,null);const jf=Of.exports,qf="fox-tab-pane",Hf="el-tab-pane",Wf={name:qf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Hf,i,e.children)}},Bf=null,Kf=null;var zf=D(Wf,Bf,Kf,!1,null,null,null,null);const Yf=zf.exports,Uf="fox-tag",Gf="el-tag",Xf={name:Uf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Gf,i,e.children)}},Zf=null,Jf=null;var Qf=D(Xf,Zf,Jf,!1,null,null,null,null);const ed=Qf.exports,td="fox-tree",nd="el-tree",id={name:td,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(nd,i,e.children)}},rd=null,sd=null;var ld=D(id,rd,sd,!1,null,null,null,null);const ad=ld.exports,od="fox-alert",ud="el-alert",cd={name:od,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(ud,i,e.children)}},fd=null,dd=null;var hd=D(cd,fd,dd,!1,null,null,null,null);const pd=hd.exports,md="fox-notification",gd="el-notification",yd={name:md,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(gd,i,e.children)}},_d=null,$d=null;var bd=D(yd,_d,$d,!1,null,null,null,null);const xd=bd.exports,vd="fox-slider",Sd="el-slider",Dd={name:vd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Sd,i,e.children)}},wd=null,Td=null;var Cd=D(Dd,wd,Td,!1,null,null,null,null);const Id=Cd.exports,kd="fox-loading",Pd="el-loading",Ld={name:kd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Pd,i,e.children)}},Nd=null,Md=null;var Rd=D(Ld,Nd,Md,!1,null,null,null,null);const Ad=Rd.exports,Vd="fox-icon",Fd="el-icon",Ed={name:Vd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Fd,i,e.children)}},Od=null,jd=null;var qd=D(Ed,Od,jd,!1,null,null,null,null);const Hd=qd.exports,Wd="fox-row",Bd="el-row",Kd={name:Wd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Bd,i,e.children)}},zd=null,Yd=null;var Ud=D(Kd,zd,Yd,!1,null,null,null,null);const Gd=Ud.exports,Xd="fox-col",Zd="el-col",Jd={name:Xd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Zd,i,e.children)}},Qd=null,eh=null;var th=D(Jd,Qd,eh,!1,null,null,null,null);const nh=th.exports,ih="fox-upload",rh="el-upload",sh={name:ih,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(rh,i,e.children)}},lh=null,ah=null;var oh=D(sh,lh,ah,!1,null,null,null,null);const uh=oh.exports,ch="fox-progress",fh="el-progress",dh={name:ch,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(fh,i,e.children)}},hh=null,ph=null;var mh=D(dh,hh,ph,!1,null,null,null,null);const gh=mh.exports,yh="fox-spinner",_h="el-spinner",$h={name:yh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(_h,i,e.children)}},bh=null,xh=null;var vh=D($h,bh,xh,!1,null,null,null,null);const Sh=vh.exports,Dh="fox-message",wh="el-message",Th={name:Dh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(wh,i,e.children)}},Ch=null,Ih=null;var kh=D(Th,Ch,Ih,!1,null,null,null,null);const Ph=kh.exports,Lh="fox-badge",Nh="el-badge",Mh={name:Lh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Nh,i,e.children)}},Rh=null,Ah=null;var Vh=D(Mh,Rh,Ah,!1,null,null,null,null);const Fh=Vh.exports,Eh="fox-card",Oh="el-card",jh={name:Eh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Oh,i,e.children)}},qh=null,Hh=null;var Wh=D(jh,qh,Hh,!1,null,null,null,null);const Bh=Wh.exports,Kh="fox-rate",zh="el-rate",Yh={name:Kh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(zh,i,e.children)}},Uh=null,Gh=null;var Xh=D(Yh,Uh,Gh,!1,null,null,null,null);const Zh=Xh.exports,Jh="fox-steps",Qh="el-steps",ep={name:Jh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Qh,i,e.children)}},tp=null,np=null;var ip=D(ep,tp,np,!1,null,null,null,null);const rp=ip.exports,sp="fox-step",lp="el-step",ap={name:sp,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(lp,i,e.children)}},op=null,up=null;var cp=D(ap,op,up,!1,null,null,null,null);const fp=cp.exports,dp="fox-carousel",hp="el-carousel",pp={name:dp,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(hp,i,e.children)}},mp=null,gp=null;var yp=D(pp,mp,gp,!1,null,null,null,null);const _p=yp.exports,$p="fox-scrollbar",bp="el-scrollbar",xp={name:$p,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(bp,i,e.children)}},vp=null,Sp=null;var Dp=D(xp,vp,Sp,!1,null,null,null,null);const wp=Dp.exports,Tp="fox-carousel-item",Cp="el-carousel-item",Ip={name:Tp,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Cp,i,e.children)}},kp=null,Pp=null;var Lp=D(Ip,kp,Pp,!1,null,null,null,null);const Np=Lp.exports,Mp="fox-collapse",Rp="el-collapse",Ap={name:Mp,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Rp,i,e.children)}},Vp=null,Fp=null;var Ep=D(Ap,Vp,Fp,!1,null,null,null,null);const Op=Ep.exports,jp="fox-collapse-item",qp="el-collapse-item",Hp={name:jp,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(qp,i,e.children)}},Wp=null,Bp=null;var Kp=D(Hp,Wp,Bp,!1,null,null,null,null);const zp=Kp.exports,Yp="fox-cascader",Up="el-cascader",Gp={name:Yp,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return ke(e,i),it(e,i),n(Up,i,e.children)}},Xp=null,Zp=null;var Jp=D(Gp,Xp,Zp,!1,null,null,null,null);const Qp=Jp.exports,em="fox-color-picker",tm="el-color-picker",nm={name:em,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(tm,i,e.children)}},im=null,rm=null;var sm=D(nm,im,rm,!1,null,null,null,null);const lm=sm.exports,am="fox-transfer",om="el-transfer",um={name:am,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(om,i,e.children)}},cm=null,fm=null;var dm=D(um,cm,fm,!1,null,null,null,null);const hm=dm.exports,pm="fox-container",mm="el-container",gm={name:pm,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(mm,i,e.children)}},ym=null,_m=null;var $m=D(gm,ym,_m,!1,null,null,null,null);const bm=$m.exports,xm="fox-header",vm="el-header",Sm={name:xm,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(vm,i,e.children)}},Dm=null,wm=null;var Tm=D(Sm,Dm,wm,!1,null,null,null,null);const Cm=Tm.exports,Im="fox-aside",km="el-aside",Pm={name:Im,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(km,i,e.children)}},Lm=null,Nm=null;var Mm=D(Pm,Lm,Nm,!1,null,null,null,null);const Rm=Mm.exports,Am="fox-main",Vm="el-main",Fm={name:Am,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Vm,i,e.children)}},Em=null,Om=null;var jm=D(Fm,Em,Om,!1,null,null,null,null);const qm=jm.exports,Hm="fox-footer",Wm="el-footer",Bm={name:Hm,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Wm,i,e.children)}},Km=null,zm=null;var Ym=D(Bm,Km,zm,!1,null,null,null,null);const Um=Ym.exports,Gm="fox-timeline",Xm="el-timeline",Zm={name:Gm,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Xm,i,e.children)}},Jm=null,Qm=null;var eg=D(Zm,Jm,Qm,!1,null,null,null,null);const tg=eg.exports,ng="fox-timeline-item",ig="el-timeline-item",rg={name:ng,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(ig,i,e.children)}},sg=null,lg=null;var ag=D(rg,sg,lg,!1,null,null,null,null);const og=ag.exports,ug="fox-link",cg="el-link",fg={name:ug,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(cg,i,e.children)}},dg=null,hg=null;var pg=D(fg,dg,hg,!1,null,null,null,null);const mg=pg.exports,gg="fox-divider",yg="el-divider",_g={name:gg,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(yg,i,e.children)}},$g=null,bg=null;var xg=D(_g,$g,bg,!1,null,null,null,null);const vg=xg.exports,Sg="fox-image",Dg="el-image",wg={name:Sg,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Dg,i,e.children)}},Tg=null,Cg=null;var Ig=D(wg,Tg,Cg,!1,null,null,null,null);const kg=Ig.exports,Pg="fox-calendar",Lg="el-calendar",Ng={name:Pg,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Lg,i,e.children)}},Mg=null,Rg=null;var Ag=D(Ng,Mg,Rg,!1,null,null,null,null);const Vg=Ag.exports,Fg="fox-backtop",Eg="el-backtop",Og={name:Fg,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Eg,i,e.children)}},jg=null,qg=null;var Hg=D(Og,jg,qg,!1,null,null,null,null);const Wg=Hg.exports,Bg="fox-infinite-scroll",Kg="el-infinite-scroll",zg={name:Bg,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Kg,i,e.children)}},Yg=null,Ug=null;var Gg=D(zg,Yg,Ug,!1,null,null,null,null);const Xg=Gg.exports,Zg="fox-page-header",Jg="el-page-header",Qg={name:Zg,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Jg,i,e.children)}},ey=null,ty=null;var ny=D(Qg,ey,ty,!1,null,null,null,null);const iy=ny.exports,ry="fox-cascader-panel",sy="el-cascader-panel",ly={name:ry,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(sy,i,e.children)}},ay=null,oy=null;var uy=D(ly,ay,oy,!1,null,null,null,null);const cy=uy.exports,fy="fox-avatar",dy="el-avatar",hy={name:fy,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(dy,i,e.children)}},py=null,my=null;var gy=D(hy,py,my,!1,null,null,null,null);const yy=gy.exports,_y="fox-drawer",$y="el-drawer",by={name:_y,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n($y,i,e.children)}},xy=null,vy=null;var Sy=D(by,xy,vy,!1,null,null,null,null);const Dy=Sy.exports,wy="fox-popconfirm",Ty="el-popconfirm",Cy={name:wy,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Ty,i,e.children)}},Iy=null,ky=null;var Py=D(Cy,Iy,ky,!1,null,null,null,null);const Ly=Py.exports,Ny="fox-skeleton",My="el-skeleton",Ry={name:Ny,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(My,i,e.children)}},Ay=null,Vy=null;var Fy=D(Ry,Ay,Vy,!1,null,null,null,null);const Ey=Fy.exports,Oy="fox-skeleton-item",jy="el-skeleton-item",qy={name:Oy,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(jy,i,e.children)}},Hy=null,Wy=null;var By=D(qy,Hy,Wy,!1,null,null,null,null);const Ky=By.exports,zy="fox-empty",Yy="el-empty",Uy={name:zy,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(Yy,i,e.children)}},Gy=null,Xy=null;var Zy=D(Uy,Gy,Xy,!1,null,null,null,null);const Jy=Zy.exports,Qy="fox-descriptions",e_="el-descriptions",t_={name:Qy,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(e_,i,e.children)}},n_=null,i_=null;var r_=D(t_,n_,i_,!1,null,null,null,null);const s_=r_.exports,l_="fox-descriptions-item",a_="el-descriptions-item",o_={name:l_,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(a_,i,e.children)}},u_=null,c_=null;var f_=D(o_,u_,c_,!1,null,null,null,null);const d_=f_.exports,h_="fox-result",p_="el-result",m_={name:h_,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);return n(p_,i,e.children)}},g_=null,y_=null;var __=D(m_,g_,y_,!1,null,null,null,null);const $_=__.exports;const b_={name:"fox-page",mixins:[On],provide(){return{pageScope:!0,pageReadonly:!1}},props:{name:{type:[String],required:!1},disabled:{type:[Boolean,String],required:!1,default:void 0},readonly:{type:[Boolean,String],required:!1,default:void 0},filterModels:{type:[Array],required:!1,default(){return[]}},headerHeight:{type:[String,Number],required:!1},footerHeight:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},contentPadding:{type:[Object],required:!1},verifyRules:{type:Object,required:!1,default(){return{}}},titleWidth:{type:[String],required:!1},titleColor:{type:[String],required:!1},column:{type:[Number,String],required:!1},spacing:{type:[Number,String],required:!1,default(){return 32}},labelWidth:{type:[String],required:!1},labelPosition:{type:[String],required:!1},labelMaxCharCount:{type:[String,Number],required:!1},hints:{type:Object,required:!1,default(){return{}}}},data(){return{}},created(){this.$data[Ln]=!0;const t=zi(this,this.name,!0);if(t){const e={};this.headerHeight&&(e.headerHeight=this.headerHeight),this.footerHeight&&(e.footerHeight=this.footerHeight),this.height&&(e.height=this.height),this.contentPadding&&(e.contentPadding=this.contentPadding),Ns(t,e)}},watch:{verifyRules:{handler(t,e){Qt.update(this,t,e)},deep:!0}},methods:{getPageContentHeight(){const t=pe(this),e=we(t);return wn(t,e)},getPageContentWidth(){const t=pe(this),e=we(t);return Tn(t,e)},getPageHeaderHeight(){const t=pe(this),e=we(t);return En(t,e)},getPageFooterHeight(){const t=pe(this),e=we(t);return en(t,e)}},mounted(){const t=pe(this);t&&Ms(t,this)&&Rs(t,"100%")},beforeDestroy(){}};var x_=function(){var e=this,n=e._self._c;return n("div",{ref:"page",staticClass:"fox-page",attrs:{tabindex:"-1",title:""}},[e._t("default")],2)},v_=[],S_=D(b_,x_,v_,!1,null,"88a615dd",null,null);const D_=S_.exports;const w_={name:"fox-sub-page",props:{name:{type:String,required:!0}},created(){if(this.name){let t=this.$parent,e=M.getRootDomain(this);e&&e.setSubVm(this.name,t)}},beforeDestroy(){if(this.name){let t=M.getRootDomain(this);t&&t.removeSubVm(this.name)}}};var T_=function(){var e=this,n=e._self._c;return n("div",{staticClass:"fox-sub-page"},[e._t("default")],2)},C_=[],I_=D(w_,T_,C_,!1,null,"1acdfeb6",null,null);const k_=I_.exports;const P_={name:"fox-header-bar",provide(){return{headerScope:!0}},computed:{classes(){return{"fox-header-bar":!0}},styles(){const t=pe(this);if(t){const n=we(t);if(n){const i={},r=Ce(this.padding??n.headerPadding),s=(n.headerHeight??0)+(n.safeAreaTop??0);return s>0&&(i.height=`${s}px`),r.top!==null&&(i.paddingTop=`${r.top}px`),r.left!==null&&(i.paddingLeft=`${r.left}px`),(n.safeAreaBottom>0||r.bottom!==null)&&(i.paddingBottom=`${(n.safeAreaBottom??0)+(r.bottom??0)}px`),r.right!==null&&(i.paddingRight=`${r.right}px`),i}}const e={};if(this.padding){const n=Ce(this.padding);n.left!==null&&(e.paddingLeft=`${n.left}px`),n.top!==null&&(e.paddingTop=`${n.top}px`),n.right!==null&&(e.paddingRight=`${n.right}px`),n.bottom!==null&&(e.paddingBottom=`${n.bottom}px`)}return e}},created(){this.$data[Mi]=!0;const t=pe(this);if(t){const e=we(t);e&&(e.headerMounted=!0,Fn(t,e))}}};var L_=function(){var e=this,n=e._self._c;return n("div",{class:e.classes,style:e.styles},[e._t("default")],2)},N_=[],M_=D(P_,L_,N_,!1,null,"b6fc5b9d",null,null);const R_=M_.exports;const A_={name:"fox-content",props:{align:{type:[String],required:!1,default:"left"},padding:{type:[Object],required:!1}},computed:{classes(){let t={"fox-content":!0};return this.align==="center"?t["fox-content-center"]=!0:this.align==="right"&&(t["fox-content-right"]=!0),t},styles(){const t=pe(this),e={};if(t){const n=we(t);if(n){let i={left:null,top:null,right:null,bottom:null};this.padding?(i=Ce(this.padding),Object.assign(n.contentPadding,i),Fn(t,n)):Object.assign(i,n.contentPadding);const r=En(t,n),s=en(t,n);return e.height=n.contentHeight?`${n.contentHeight}`:`${n.height}px`,(r>0||i.top!==null)&&(e.paddingTop=`${r+(i.top??0)}px`),(s>0||i.bottom!==null)&&(e.paddingBottom=`${s+(i.bottom??0)}px`),i.left!==null&&(e.paddingLeft=`${i.left}px`),i.right!==null&&(e.paddingRight=`${i.right}px`),e}}if(this.padding){const n=Ce(this.padding);n.left!==null&&(e.paddingLeft=`${n.left}px`),n.top!==null&&(e.paddingTop=`${n.top}px`),n.right!==null&&(e.paddingRight=`${n.right}px`),n.bottom!==null&&(e.paddingBottom=`${n.bottom}px`)}return e}}};var V_=function(){var e=this,n=e._self._c;return n("div",{class:e.classes,style:e.styles},[e._t("default")],2)},F_=[],E_=D(A_,V_,F_,!1,null,"c37252ba",null,null);const O_=E_.exports;const j_={name:"fox-footer-bar",provide(){return{footerScope:!0}},props:{align:{type:String,required:!1,default:"right"},padding:{type:Object,required:!1}},computed:{classes(){let t={"fox-footer-bar":!0};return this.align=="left"?t["fox-left"]=!0:this.align=="center"?t["fox-center"]=!0:t["fox-right"]=!0,t},styles(){const t=pe(this);if(t){const n=we(t);if(n){const i={},r=Ce(this.padding??n.footerPadding),s=n.footerHeight+n.safeAreaBottom;return s>0&&(i.height=`${s}px`),r.top!==null&&(i.paddingTop=`${r.top}px`),r.left!==null&&(i.paddingLeft=`${r.left}px`),(n.safeAreaBottom>0||r.bottom!==null)&&(i.paddingBottom=`${(n.safeAreaBottom??0)+(r.bottom??0)}px`),r.right!==null&&(i.paddingRight=`${r.right}px`),i}}const e={};if(this.padding){const n=Ce(this.padding);n.left!==null&&(e.paddingLeft=`${n.left}px`),n.top!==null&&(e.paddingTop=`${n.top}px`),n.right!==null&&(e.paddingRight=`${n.right}px`),n.bottom!==null&&(e.paddingBottom=`${n.bottom}px`)}return e}},created(){this.$data[Ri]=!0;const t=pe(this);if(t){const e=we(t);e&&(e.footerMounted=!0,Fn(t,e))}}};var q_=function(){var e=this,n=e._self._c;return n("div",{class:e.classes,style:e.styles},[n("div",{staticClass:"fox-footer-bar-inner"},[e._t("default")],2)])},H_=[],W_=D(j_,q_,H_,!1,null,"e97687f4",null,null);const B_=W_.exports;const K_={name:"fox-group-header",props:{no:{type:String},title:{type:String},titleWidth:{type:String,default:"200px"},color:{type:String,required:!1}},computed:{mMarkStyle(){return this.color?{color:this.color}:{}},mTitleStyle(){return{width:this.titleWidth}}}};var z_=function(){var e=this,n=e._self._c;return n("div",{staticClass:"fox-group-row fox-group-header"},[n("div",{staticClass:"fox-group-header-mark",style:e.mMarkStyle}),n("div",{staticClass:"fox-group-header-title",style:e.mTitleStyle},[e._v(e._s(e.title))]),n("div",{staticClass:"fox-group-header-ext"},[e._t("tools")],2)])},Y_=[],U_=D(K_,z_,Y_,!1,null,"8d2901ee",null,null);const G_=U_.exports;function X_(t){for(let e=0;e<li.length;e++){let n=li[e];if(t.indexOf(n)!=-1)return!0}return!1}function Di(t){return t<=0?1:t>5?5:Number(`${t}`)}function Z_(t){return`fox-group-col-${t}`}const J_={name:"fox-group",mixins:[On],provide(){return{groupScope:!0}},inject:{multiLang:{default:!1},pageScope:{default:!1}},props:{disabled:{type:[Boolean,String],required:!1,default:void 0},readonly:{type:[Boolean,String],required:!1,default:void 0},filterModels:{type:[Array],required:!1,default(){return[]}},column:{type:[Number,String],required:!1},spacing:{type:[Number,String],required:!1},name:{type:[String],required:!1},no:{type:[String],required:!1},title:{type:[String],required:!1},titleWidth:{type:[String],required:!1},color:{type:[String],required:!1},labelWidth:{type:[String],required:!1},labelPosition:{type:[String],required:!1},labelMaxCharCount:{type:[String,Number],required:!1},span:{type:[Number,String],required:!1,default:1},sub:{type:[Boolean,String],required:!1,default(){return!1}},autoAdjustLayout:{type:[Boolean,String],required:!1,default:!0}},created(){this.$data[Ai]=!0,zi(this,this.name)},data(){return{groupScope:!0,groupRef:null}},computed:{mSubgroupWidth(){const t=M.getFitProperty(this,"spacing",32),e=M.getParentDomainProperty(this,"column",1),n=M.getParentDomainProperty(this,"groupWidth",-1);return Ge(this,n,e,this.span,t)},mStyle(){if(this.sub==="true"||this.sub===!0){const t=pe(this);return t&&t.setOption("groupWidth",this.mSubgroupWidth),{width:this.mSubgroupWidth<=0?"100%":`${this.mSubgroupWidth}px`}}else return{}},mGroupClass(){let t={"el-form":!0,"fox-group":!0},e=M.getFitProperty(this,"labelPosition",ze());e==="left"?t["el-form--label-left"]=!0:e==="right"?t["el-form--label-right"]=!0:e==="top"&&(t["el-form--label-top"]=!0);let n=M.getFitProperty(this,"column",1);if(n!=-1){n=Di(n);let i=Z_(n);t[i]=!0}return t}},mounted(){const t=pe(this);if(!this.sub&&this.$refs.group){let e=-1,n=this.$refs.group;if(this.autoAdjustLayout&&window.ResizeObserver){const r=Vn(()=>{if(n&&!gt(n)){const s=nt(n);if(e===s)return;e=s,t.setOption("groupWidth",s)}},150);this.$data.observer=new window.ResizeObserver(r),this.$data.observer.observe(n)}let i=nt(n);e=i,t.setOption("groupWidth",i)}},beforeDestroy(){this.$data.observer&&(this.$data.observer.disconnect(),this.$data.observer=null)},render(t){let e=[];if(Y(this.title)){let{title:i}=this;this.multiLang&&(i=this.$langTranslator.translate(this,i));let r={title:i,no:this.no},s=M.getFitProperty(this,"titleWidth",void 0);Y(s)&&(r.titleWidth=s);let l=M.getFitProperty(this,["color","titleColor"],void 0);Y(l)&&(r.color=l);let o={props:r},a;this.$scopedSlots.tools&&(o.scopedSlots={tools:this.$scopedSlots.tools}),a=t("fox-group-header",o),e.push(a)}if(Y(this.$slots.default)){let i=M.getFitProperty(this,"column",-1);if(i===-1)e=[...e,...this.$slots.default];else{i=Di(i);let r=0;for(let s=0;s<this.$slots.default.length;s++){let l=this.$slots.default[s],{tag:o}=l;if(!!Y(o)){if(X_(o)){if(r>0){let a=i-r%i;for(let u=0;u<a;u++){let d=t("fox-empty-item");e.push(d)}r=0}e.push(l);continue}r++,e.push(l)}}if(r>0){let s=i-r%i;for(let l=0;l<s;l++){let o=t("fox-empty-item");e.push(o)}}}}let n={ref:"group",attrs:this.$attrs,props:this.$props,class:this.mGroupClass,style:this.mStyle};return t("div",n,e)}},Q_=null,e$=null;var t$=D(J_,Q_,e$,!1,null,null,null,null);const n$=t$.exports,i$="fox-sub-group",r$="fox-group",s$={name:i$,functional:!0,render(t,e){const n=e.parent.$createElement;let{data:i}=e;return i.attrs||(i.attrs={}),i.attrs.sub=!0,n(r$,i,e.children)}},l$=null,a$=null;var o$=D(s$,l$,a$,!1,null,null,null,null);const u$=o$.exports;const c$={name:"fox-input-row",provide(){return{groupScope:!1}}};var f$=function(){var e=this,n=e._self._c;return n("div",{staticClass:"fox-group-row"},[e._t("default")],2)},d$=[],h$=D(c$,f$,d$,!1,null,"3483209d",null,null);const p$=h$.exports;const m$={name:"fox-button-row",provide(){return{groupScope:!1}},props:{align:{type:String,required:!1,default:"right"}},computed:{mCls(){let t={"fox-group-row":!0,"fox-button-row":!0};return this.align=="left"?t["fox-left"]=!0:this.align=="center"?t["fox-center"]=!0:t["fox-right"]=!0,t},mStyle(){return{position:"relative"}}}};var g$=function(){var e=this,n=e._self._c;return n("div",{class:e.mCls,style:e.mStyle},[n("div",{staticClass:"fox-button-row-start"},[e._t("start")],2),n("div",{staticClass:"fox-button-row-inner"},[e._t("default")],2),n("div",{staticClass:"fox-button-row-end"},[e._t("end")],2)])},y$=[],_$=D(m$,g$,y$,!1,null,"af5e61ac",null,null);const $$=_$.exports,wi={text:"fox-text-item",money:"fox-money-item",time:"fox-time-item",date:"fox-date-item"},b$={name:"fox-item",mixins:[On],inject:{pageScope:{default:!1},multiLang:{default:!1}},provide(){return{groupScope:!1}},props:{ctype:{type:String,required:!1},label:{type:String,required:!1,default(){return""}},span:{type:[Number,String],required:!1,default(){return 1}},errorTip:{type:String,required:!1},errorIcon:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:String,required:!1,default:"el-icon-warning"},infoTip:{type:String,required:!1},infoIcon:{type:String,required:!1,default:"el-icon-info"}},data(){return{[Me]:this.$parent.groupScope,isRequired:!1,innerErrorIcon:"",innerErrorTip:"",innerWarnIcon:"",innerWarnTip:"",innerInfoIcon:"",innerInfoTip:"",innerUniqueKey:Zt()}},watch:{},computed:{mStyle(){if(this.$parent.groupScope){const t=M.getFitProperty(this,"spacing",32),e=M.getParentDomainProperty(this,"column",1),n=M.getParentDomainProperty(this,"groupWidth",-1),i=Ge(this,n,e,this.span,t);return{width:i<=0?"100%":`${i}px`}}else return{}},mLabelStyle(){return this.hasLabel()?M.getFitProperty(this,"labelPosition",ze())==="top"?{}:{width:`${M.getFitProperty(this,"labelWidth",Ke())}`}:{}},mInputStyle(){return this.hasLabel()?M.getFitProperty(this,"labelPosition",ze())==="top"?{}:{"margin-left":`${M.getFitProperty(this,"labelWidth",Ke())}`}:{}},mReadonly(){return M.isReadonly(this)},mDisabled(){return M.isDisabled(this)},mLabelMaxCharCount(){let t=M.getFitProperty(this,"labelMaxCharCount",tn());return Number(t)}},methods:{installTip(t){let e={type:"none"};if(!z(this.errorTip)||!z(this.innerErrorTip)?(e.type="error",e.text=this.errorTip||this.innerErrorTip,e.icon=this.errorIcon||this.innerErrorIcon):!z(this.warnTip)||!z(this.innerWarnTip)?(e.type="warn",e.text=this.warnTip||this.innerWarnTip,e.icon=this.warnIcon||this.innerWarnIcon):(!z(this.infoTip)||!z(this.innerInfoTip))&&(e.type="info",e.text=this.infoTip||this.innerInfoTip,e.icon=this.infoIcon||this.innerInfoIcon),e.type!=="none"){let n=[];if(!z(e.icon)){let i={class:{}};i.class[e.icon]=!0,n.push(t("li",i,[]))}n.push(e.text),e.node=t("div",{class:{"fox-form-item__tip":!0}},n)}return e},hasLabel(){return this.$slots.label||this.label.length>0}},render(t){if(this.ctype&&wi[this.ctype]){let u=wi[this.ctype],d={attrs:this.$attrs,props:this.$props};return t(u,d,this.children)}let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n,i=this.label;i&&(i=i.trim()).length>0&&(this.multiLang&&(i=this.$langTranslator.translate(this,i)),e.domProps={innerHTML:B(i,this.mLabelMaxCharCount)},n=t("div",e));let r;this.$scopedSlots.default?r=[this.$scopedSlots.default()]:r=[];let s=this.installTip(t);s.type!=="node"&&r.push(s.node);let l={class:{"el-form-item__content":!0},style:this.mInputStyle},o=t("div",l,r),a={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return s.type==="error"?a.class["is-error"]=!0:s.type==="warn"?a.class["is-warn"]=!0:s.type==="info"&&(a.class["is-info"]=!0),se(this,a),n?t("div",a,[n,o]):t("div",a,[o])},mounted(){},beforeDestroy(){}},x$=null,v$=null;var S$=D(b$,x$,v$,!1,null,null,null,null);const D$=S$.exports;const w$={name:"fox-empty-item",inject:{pageScope:{default:!1},groupScope:{default:!1}},props:{span:{type:[Number,String],required:!1,default(){return 1}}},data(){return{[Me]:this.groupScope}},computed:{mStyle(){if(this.groupScope){let t,e=Gs(this.$parent);e&&(t=M.getFitProperty(e,"spacing",zs()));let n=M.getFitProperty(this,"column",1);const i=M.getParentDomainProperty(this,"groupWidth",-1);let r=Ge(this,i,n,this.span,t);return{width:r<=0?"100%":`${r}px`}}else return{}}},mounted(){},beforeDestroy(){}};var T$=function(){var e=this,n=e._self._c;return n("div",{staticClass:"fox-group-item",style:e.mStyle})},C$=[],I$=D(w$,T$,C$,!1,null,"27f55b90",null,null);const k$=I$.exports,P$={name:"fox-text-item",mixins:[ce],props:{value:{required:!1},min:{type:[Number,String],required:!1},max:{type:[Number,String],required:!1},clearable:{type:Boolean,default:!0}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value,numberType:!1}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t,e){this.numberType&&t.length>0&&!mt(t)||(this.innerValue=t,this.$emit("change",t))},onInput(t,e){if(this.numberType){if(t.length>0&&!mt(t))return;let n=ne(t);if(this.min!==void 0){if(this.min>=0&&t=="-")return;let i=ne(this.min);if(n<i){let r="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";this.multiLang&&(r=this.$t("\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C")),this.innerErrorTip=r.replace("{0}",i)}else this.innerErrorTip=""}if(this.max!=null){let i=ne(this.max);if(n>i)return}}this.innerValue=t,this.$emit("change",t)},focus(){this.$refs.input&&this.$refs.input.focus&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&this.$refs.input.blur&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let y=this.$slots.default[0];if(this.multiLang){let{text:_}=y;_&&(_=_.trim()).length>0&&(_=this.$langTranslator.translate(this,_),e.attrs.title=_,_=B(_,this.mLabelMaxCharCount),n=t("div",e,[_]))}if(!n){let{text:_}=y;_&&(_=_.trim()).length>0?(e.attrs.title=_,_=B(_,this.mLabelMaxCharCount),n=t("div",e,[_])):y.tag&&(n=t("div",e,this.$slots.default))}}else{let y=this.label;y&&(y=y.trim()).length>0&&(this.multiLang&&(y=this.$langTranslator.translate(this,y)),e.domProps={innerHTML:B(y,this.mLabelMaxCharCount)},n=t("div",e))}let i=[],{type:r}=this.$attrs;r=="number"&&(this.numberType=!0,i.push("type"));let s={};ee(this,s,this.$attrs,i),r!="password"&&!Reflect.has(s,"show-password")&&(s.title=this.innerValue),s.clearable=this.clearable;let l={};ue(this,l,this.$props),l.value=this.innerValue,l.disabled=this.mDisabled,l.readonly=this.mReadonly,l.size=this.mSize;let o={};Q(this,o,this.$listeners,["blur","focus","change","input"]),o.blur=this.onBlur,o.focus=this.onFocus,o.change=this.onInput,o.input=this.onInput,o.clear=this.onClear;let a={attrs:s,props:l,on:o,ref:"input"},u=cr(t,this),f=[t("el-input",a,u)],g=this.installTip(t);g.type!=="node"&&f.push(g.node);let c={class:{"el-form-item__content":!0},style:this.mInputStyle},p=t("div",c,f),h={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};g.type==="error"?h.class["is-error"]=!0:g.type==="warn"?h.class["is-warn"]=!0:g.type==="info"&&(h.class["is-info"]=!0),se(this,h);let m="text";return r=="textarea"&&(m="textarea"),this.componentData(this,h,m),n?t("div",h,[n,p]):t("div",h,[p])}},L$=null,N$=null;var M$=D(P$,L$,N$,!1,null,null,null,null);const R$=M$.exports;function Rt(t,e,n,i,r=!0){if(t=="")return"";if(t=He(t),e=ne(e),e==1)return t;if(i)t=Kn(t,e),n&&(t=="0"&&r?t=`${t}.`.padEnd(ne(n)+2,"0"):t=Wi(t,1,ne(n)));else{let s=-1*e;t=Kn(t,s)}return t}const A$={name:"fox-money-item",mixins:[ce],props:{value:{required:!1},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""}},model:{prop:"value",event:"change"},data(){let t=this.value===void 0?"":`${this.value}`;t=Rt(t,this.rates,this.precision,!1),this.inValidScope(t)?t=tt(t,Number(this.decimalLength),this.autoPadding,Number(this.digits),this.separator):(console.error("value\u8D85\u51FA\u5408\u6CD5\u8303\u56F4"),t="");let e="right";return Fe(t)&&this.placeholder&&(e="left"),{innerValue:t,mEditing:!1,mFocused:!1,inputNoe:void 0,inputTextAlign:e,higherErrorTip:""}},watch:{value(t,e){if(this.mEditing)return;if(t==null){this.innerValue="";return}let n=`${t}`;if(Fe(n)){this.innerValue="";return}if(n=Rt(n,this.rates,this.precision,!1),!this.inValidScope(n)){console.error("value\u8D85\u51FA\u5408\u6CD5\u8303\u56F4");return}n=tt(n,Number(this.decimalLength),this.autoPadding,Number(this.digits),this.separator),n!=this.innerValue&&(this.innerValue=n,this.$emit("setValue",this.innerValue))},mEditing(t,e){t!=e&&this.changeInputStyle()}},computed:{mShowTip(){return Z(this.showTip)},mInputStyle:function(){let t={"fox-input-clear":!(this.mReadonly||this.mDisabled),"fox-input-money":!0,"fox-input-money-placeholder":this.innerValue&&this.innerValue.length>0};if(!this.hasLabel()||M.getFitProperty(this,"labelPosition","left")==="top")return t;let n=M.getFitProperty(this,"labelWidth",Ke());return t["margin-left"]=`${n}`,t},mValue(){return this.mFocused?this.innerValue:""},mPlaceholder(){if(this.innerValue===void 0)return this.placeholder;let t=`${this.innerValue}`;return!this.mFocused&&t.length>0?t:this.placeholder}},methods:{inValidScope(t){if(this.min!==void 0){let e=Z(this.minInclude),n=zn(t,this.min);if(e&&n==-1||!e&&(n==0||n==-1)){let i="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";this.multiLang&&(i=this.$t("\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C")),this.higherErrorTip=i.replace("{0}",this.min)}else this.higherErrorTip=""}if(this.max!=null){let e=Z(this.maxInclude),n=zn(t,this.max);if(e&&n==1||!e&&(n==0||n==1))return!1}return!0},getInputElm(){if(!!this.inputNode)return this.inputNode.componentInstance.$refs.input},onFocus(t){this.mEditing=!0;let e=this.getInputElm();this.inputTextAlign="left",e.style.textAlign=this.inputTextAlign;let n=`${this.innerValue}`;if(!Fe(n)){let i=He(n);this.innerValue=i,setTimeout(()=>{this.mFocused&&e.select()},10)}this.mFocused=!0,Be(this,"focus",t)},onBlur(t){this.mFocused=!1,this.mEditing=!1;let e=`${this.innerValue}`,n=Fe(e);if(!n){let r=tt(e,Number(this.decimalLength),this.autoPadding,Number(this.digits),this.separator);this.innerValue=r;let s=Rt(r,this.rates,this.precision,!0);this.$emit("change",s)}let i=this.getInputElm();if(i){let r="right";n&&this.placeholder&&(r="left"),this.inputTextAlign=r,i.style.textAlign=this.inputTextAlign}Fe(this.higherErrorTip)||(this.innerValue="",this.$emit("change",this.innerValue)),this.mShowTip&&i&&Oe.hide(),Be(this,"blur",t)},onInput(t){if(this.mEditing=!0,Fe(t)){this.innerValue="",this.$emit("change",this.innerValue);let i=this.getInputElm();this.mShowTip&&i&&Oe.hide();return}if(typeof t=="string"&&(t=He(t)),t.length>=2){let i=t;if(i.charAt(0)=="-"&&(i=i.substring(1)),i.length>=2&&i.charAt(0)=="0"&&i.charAt(1)!=".")return}if(t!="-"){if(!mt(t)||!this.inValidScope(t)||this.integerLength!=-1&&Br(t)>Number(this.integerLength)||this.decimalLength!=-1&&Kr(t)>Number(this.decimalLength))return}else if(this.min!=null&&ne(this.min)>=0)return;let e=this.getInputElm();if(e)if(t&&t.length>0){let i=tt(t,Number(this.decimalLength),!1,Number(this.digits),this.separator);this.unit&&(i+=this.unit),this.mShowTip&&Oe.show(e,i)}else this.mShowTip&&Oe.hide();this.innerValue=t;let n=Rt(t,this.rates,this.precision,!0);this.$emit("change",n)},changeInputStyle(){},adjustInputStyle(){if(!this.$refs.unitRef||!this.$refs.inputRef)return;let t=this.$refs.inputRef.$el.querySelector("input");if(t){let e=this.$refs.unitRef.offsetWidth;e==0&&(e=Nn(this.unit||"",this.$refs.unitRef.style.fontSize||"14px",document.body)),t.style.paddingRight=`${e+14}px`,t.style.textAlign=this.inputTextAlign}},focus(){this.$refs.inputRef&&this.$refs.inputRef.focus&&typeof this.$refs.inputRef.focus=="function"&&this.$refs.inputRef.focus()},blur(){this.$refs.inputRef&&this.$refs.inputRef.blur&&typeof this.$refs.inputRef.blur=="function"&&this.$refs.inputRef.blur()}},updated(){this.adjustInputStyle()},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let c=this.$slots.default[0];if(this.multiLang){let{text:p}=c;p&&(p=p.trim()).length>0&&(p=this.$langTranslator.translate(this,p),e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p]))}if(!n){let{text:p}=c;p&&(p=p.trim()).length>0?(e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p])):c.tag&&(n=t("div",e,this.$slots.default))}}else{let c=this.label;c&&(c=c.trim()).length>0&&(this.multiLang&&(c=this.$langTranslator.translate(this,c)),e.domProps={innerHTML:B(c,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs),i.placeholder=this.mPlaceholder,i.title=this.innerValue;let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled,r.readonly=this.mReadonly,r.size=this.mSize;let s={};Q(this,s,this.$listeners,["blur","focus","change","input"]),s.blur=this.onBlur,s.focus=this.onFocus,s.input=this.onInput;let l={attrs:i,props:r,on:s,class:{"fox-input-money":!0,"fox-input-money-placeholder":this.innerValue&&this.innerValue.length>0},ref:"inputRef"},o=cr(t,this);this.inputNode=t("el-input",l,o);let a=[this.inputNode];if(this.unit&&this.unit.length>0){let p=t("span",{class:{"fox-input-money-unit":!0},ref:"unitRef"},[this.unit]);a.push(p)}let u=this.installTip(t);u.type!=="node"&&a.push(u.node);let d={class:{"el-form-item__content":!0},style:this.mInputStyle},f=t("div",d,a),g={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return u.type==="error"?g.class["is-error"]=!0:u.type==="warn"?g.class["is-warn"]=!0:u.type==="info"&&(g.class["is-info"]=!0),se(this,g),this.componentData(this,g,"money"),n?t("div",g,[n,f]):t("div",g,[f])}},V$=null,F$=null;var E$=D(A$,V$,F$,!1,null,null,null,null);const O$=E$.exports,j$="el-input-number",q$={name:"fox-counter-item",mixins:[ce],props:{value:{required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t){this.innerValue=t,this.$emit("change",t)}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let p=this.$slots.default[0];if(this.multiLang){let{text:h}=p;h&&(h=h.trim()).length>0&&(h=this.$langTranslator.translate(this,h),e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h]))}if(!n){let{text:h}=p;h&&(h=h.trim()).length>0?(e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h])):p.tag&&(n=t("div",e,this.$slots.default))}}else{let p=this.label;p&&(p=p.trim()).length>0&&(this.multiLang&&(p=this.$langTranslator.translate(this,p)),e.domProps={innerHTML:B(p)},n=t("div",e))}let i={};ee(this,i,this.$attrs);let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled,r.readonly=this.mReadonly,r.size=this.mSize;let s={};Q(this,s,this.$listeners,["blur","focus","change","input"]),s.blur=this.onBlur,s.focus=this.onFocus,s.change=this.onChange,s.input=this.onChange;let l={attrs:i,props:r,on:s},o=`${j$}`,u=[t(o,l)],d=this.installTip(t);d.type!=="node"&&u.push(d.node);let f={class:{"el-form-item__content":!0},style:this.mInputStyle},g=t("div",f,u),c={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return d.type==="error"?c.class["is-error"]=!0:d.type==="warn"?c.class["is-warn"]=!0:d.type==="info"&&(c.class["is-info"]=!0),se(this,c),n?t("div",c,[n,g]):t("div",c,[g])}},H$=null,W$=null;var B$=D(q$,H$,W$,!1,null,null,null,null);const K$=B$.exports,z$="el-time-",Y$={name:"fox-time-item",mixins:[rr],props:{value:{required:!1},ctype:{type:String,required:!1,default(){return"picker"}},startTime:{required:!1},endTime:{required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value}},watch:{value(t,e){if(Array.isArray(t)&&t.length==2){let n=t[0],i=t[1];this.$emit("update:startTime",n),this.$emit("update:endTime",i)}else this.$emit("update:startTime",""),this.$emit("update:endTime","");t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t){this.innerValue=t,this.$emit("change",t),this.$nextTick(()=>{this.$emit("setValue",t)})},focus(){this.$refs.input&&this.$refs.input.focus&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&this.$refs.input.blur&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let h=this.$slots.default[0];if(this.multiLang){let{text:m}=h;m&&(m=m.trim()).length>0&&(m=this.$langTranslator.translate(this,m),e.attrs.title=m,m=B(m,this.mLabelMaxCharCount),n=t("div",e,[m]))}if(!n){let{text:m}=h;m&&(m=m.trim()).length>0?(e.attrs.title=m,m=B(m,this.mLabelMaxCharCount),n=t("div",e,[m])):h.tag&&(n=t("div",e,this.$slots.default))}}else{let h=this.label;h&&(h=h.trim()).length>0&&(this.multiLang&&(h=this.$langTranslator.translate(this,h)),e.domProps={innerHTML:B(h,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs),Reflect.has(i,"clearable")||(i.clearable=!0),Reflect.has(i,"popper-append-to-body")||(i["popper-append-to-body"]=!1);let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled||this.mReadonly,r.size=this.mSize;let s={};Q(this,s,this.$listeners,["blur","focus","change","input"]),s.blur=this.onBlur,s.focus=this.onFocus,s.change=this.onChange,s.input=this.onChange,s.clear=this.onClear;let l={};Q(this,l,this.$nativeListeners,[]),l.keydown=h=>{if(this.$refs.inputWrap){if(this.mSelectHotkey&&cn(h,this.mSelectHotkey)){setTimeout(()=>{this.$refs.input&&this.$refs.input.pickerVisible&&this.$refs.input.hidePicker()},5),Hi(this.$refs.inputWrap,"keyproxy",{detail:"keyproxy",key:h.key,shiftKey:h.shiftKey,altKey:h.altKey,ctrlKey:h.ctrlKey});return}if(this.mClearHotkey&&cn(h,this.mClearHotkey)){this.$refs.input.handleClickIcon(h);return}if(this.mExpandHotkey&&cn(h,this.mExpandHotkey)){this.$refs.input.pickerVisible||this.$refs.input.showPicker();return}}};let o={attrs:i,props:r,on:s,nativeOn:l,ref:"input"},a=`${z$}${this.ctype}`,d=[t(a,o)],f=this.installTip(t);f.type!=="node"&&d.push(f.node);let g={class:{"el-form-item__content":!0},style:this.mInputStyle},c=t("div",g,d),p={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle,ref:"inputWrap"};return f.type==="error"?p.class["is-error"]=!0:f.type==="warn"?p.class["is-warn"]=!0:f.type==="info"&&(p.class["is-info"]=!0),se(this,p),this.componentData(this,p,"time"),n?t("div",p,[n,c]):t("div",p,[c])}},U$=null,G$=null;var X$=D(Y$,U$,G$,!1,null,null,null,null);const Z$=X$.exports;function J$(t){let e=t.format;if(!e){let n=t.type??"date";e=br[n]}return e}const dn=rt(vr,{visible:!0,modelValue:""}),Q$={name:"fox-date-item",mixins:[ce],props:{...dn,title:{type:[String],required:!1,default:"\u65E5\u671F\u9009\u62E9"},value:{type:[String,Date],required:!0},editable:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value,visible:!1}},computed:{formatText(){if(!this.innerValue)return"";if(typeof this.innerValue=="string")return this.innerValue;const t=J$(this.$props);return xr(this.$props,this.innerValue,t)}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t,e){this.innerValue=t,this.$emit("change",t)},onInput(t){},onFocus(t){this.visible=!0,this.$emit("focus",t)},onBlur(t){this.$emit("blur",t)},onClick(){this.visible=!this.visible},showPicker(){this.visible=!0},hidePicker(){this.visible=!1},focus(){this.$refs.input&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()},renderPicker(t){const e=jn(this.$props,dn);e.modelValue=this.innerValue,e.readonly=this.mReadonly||this.mDisabled,e.visible=this.visible;const n={"update:modelValue":this.onChange,"update:visible":s=>{this.visible=s}},i={props:e,on:n},r={};return this.$scopedSlots.top&&(r.top=()=>this.$scopedSlots.top()),this.$scopedSlots.bottom&&(r.default=()=>this.$scopedSlots.bottom()),i.scopedSlots=r,t(Sr,i)}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let $=this.$slots.default[0];if(this.multiLang){let{text:b}=$;b&&(b=b.trim()).length>0&&(b=this.$langTranslator.translate(this,b),e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b]))}if(!n){let{text:b}=$;b&&(b=b.trim()).length>0?(e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b])):$.tag&&(n=t("div",e,this.$slots.default))}}else{let $=this.label;$&&($=$.trim()).length>0&&(this.multiLang&&($=this.$langTranslator.translate(this,$)),e.domProps={innerHTML:B($,this.mLabelMaxCharCount)},n=t("div",e))}let i=[],r={};ee(this,r,this.$attrs,i),r.title=this.innerValue,r.clearable=this.clearable;let s=rt(this.$props,dn,{separator:"",editable:!1});s.value=this.formatText,s.disabled=this.mDisabled,s.readonly=this.editable,s.size=this.mSize;let l={};Q(this,l,this.$listeners,["blur","focus","change","input"]),l.blur=this.onBlur,l.focus=this.onFocus,l.clear=this.onClear,l.input=this.onInput;const o={click:this.onClick},a={attrs:r,props:s,on:l,nativeOn:o,ref:"input"},u={slot:"suffix",class:{"el-icon-date":!0,"el-input__icon":!0,"fox-select-item__suffix":!0,active:this.visible}},d=t("li",u),g=[t("el-input",a,[d])];let c=this.installTip(t);c.type!=="node"&&g.push(c.node);let p={class:{"el-form-item__content":!0},style:this.mInputStyle},h=t("div",p,g),m={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};c.type==="error"?m.class["is-error"]=!0:c.type==="warn"?m.class["is-warn"]=!0:c.type==="info"&&(m.class["is-info"]=!0),se(this,m);let y="text";this.componentData(this,m,y);const _=this.renderPicker(t);return n?t("div",m,[n,h,_]):t("div",m,[h,_])}},eb=null,tb=null;var nb=D(Q$,eb,tb,!1,null,null,null,null);const ib=nb.exports,rb="el-date-picker",sb={name:"fox-datetime-item",mixins:[rr],props:{value:{required:!1},startDate:{required:!1},endDate:{required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value}},watch:{value(t,e){if(Array.isArray(t)&&t.length==2){let n=t[0],i=t[1];this.$emit("update:startDate",n),this.$emit("update:endDate",i)}else this.$emit("update:startDate",""),this.$emit("update:endDate","");t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t){this.innerValue=t,this.$emit("change",t),this.$nextTick(()=>{this.$emit("setValue",t)})},focus(){this.$refs.input&&this.$refs.input.focus&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&this.$refs.input.blur&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let p=this.$slots.default[0];if(this.multiLang){let{text:h}=p;h&&(h=h.trim()).length>0&&(h=this.$langTranslator.translate(this,h),e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h]))}if(!n){let{text:h}=p;h&&(h=h.trim()).length>0?(e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h])):p.tag&&(n=t("div",e,this.$slots.default))}}else{let p=this.label;p&&(p=p.trim()).length>0&&(this.multiLang&&(p=this.$langTranslator.translate(this,p)),e.domProps={innerHTML:B(p,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs),Reflect.has(i,"clearable")||(i.clearable=!0),Reflect.has(i,"popper-append-to-body")||(i["popper-append-to-body"]=!1);let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled||this.mReadonly,r.size=this.mSize;let s={};Q(this,s,this.$listeners,["blur","focus","change","input"]),s.blur=this.onBlur,s.focus=this.onFocus,s.change=this.onChange,s.input=this.onChange,s.clear=this.onClear;let l={};Q(this,l,this.$nativeListeners,[]),l.keydown=p=>{if(this.$refs.inputWrap){if(this.mSelectHotkey&&matchKey(p,this.mSelectHotkey)){setTimeout(()=>{this.$refs.input&&this.$refs.input.pickerVisible&&this.$refs.input.hidePicker()},5),Hi(this.$refs.inputWrap,"keyproxy",{detail:"keyproxy",key:p.key,shiftKey:p.shiftKey,altKey:p.altKey,ctrlKey:p.ctrlKey});return}if(this.mClearHotkey&&matchKey(p,this.mClearHotkey)){this.$refs.input.handleClickIcon(p);return}if(this.mExpandHotkey&&matchKey(p,this.mExpandHotkey)){this.$refs.input.pickerVisible||this.$refs.input.showPicker();return}}};let u=[t(rb,{attrs:i,props:r,on:s,nativeOn:l,ref:"input"})],d=this.installTip(t);d.type!=="node"&&u.push(d.node);let f={class:{"el-form-item__content":!0},style:this.mInputStyle},g=t("div",f,u),c={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle,ref:"inputWrap"};return d.type==="error"?c.class["is-error"]=!0:d.type==="warn"?c.class["is-warn"]=!0:d.type==="info"&&(c.class["is-info"]=!0),se(this,c),this.componentData(this,c,"datetime"),n?t("div",c,[n,g]):t("div",c,[g])}},lb=null,ab=null;var ob=D(sb,lb,ab,!1,null,null,null,null);const ub=ob.exports,Ve={Data:"Data",File:"File",Function:"Function",Remote:"Remote"};class At{constructor(e,n,i){this.src=e,this.lang=n,this.first=!0,this.scope=Hn(i),Ht(e)?(this.cache=e,this.type=Ve.Data):typeof e=="function"?(this.cache=void 0,this.type=Ve.Function):e.indexOf("@")==0?(this.cache=void 0,this.type=Ve.File,this.lang?this.src=`custom/data-source/${this.lang}/${e.substring(1)}`:this.src=`custom/data-source/${e.substring(1)}`):(this.cache=void 0,this.type=Ve.Remote)}getPageData(e,n,i,r){if(typeof e=="string"&&(e=Number(e)),typeof n=="string"&&(n=Number(n)),this.type===Ve.Data){let s=(e-1)*n,l=s+n;if(s>=this.cache.length){let u={totalSize:0,page:[]};return Promise.resolve(u)}l=l<=this.cache.length?l:this.cache.length;let o=this.cache.slice(s,l),a={totalSize:this.cache.length,page:o};return Promise.resolve(a)}else if(this.type===Ve.Function){if(Y(this.cache)){let a=(e-1)*n,u=a+n;if(a>=this.cache.length)return Promise.resolve([]);u=u<=this.cache.length?u:this.cache.length;let d=this.cache.slice(a,u),f={totalSize:this.cache.length,page:d};return Promise.resolve(f)}let s=qe(r),l={type:"getPageData",lang:this.lang,node:r,context:s};return new Promise((a,u)=>{Reflect.apply(this.src,this,[l]).then(f=>{this.cache=f;let g=(e-1)*n,c=g+n;if(g>=this.cache.length)return Promise.resolve([]);c=c<=this.cache.length?c:this.cache.length;let p=this.cache.slice(g,c),h={totalSize:this.cache.length,page:p};return Promise.resolve(h)},f=>{u(f)})})}else if(this.type===Ve.File){if(Y(this.cache)){let o=(e-1)*n,a=o+n;if(o>=this.cache.length)return Promise.resolve([]);a=a<=this.cache.length?a:this.cache.length;let u=this.cache.slice(o,a),d={totalSize:this.cache.length,page:u};return Promise.resolve(d)}let s=this;return new Promise((o,a)=>{fox.ajax({url:this.src,async:!1,type:"GET",dataType:"json",cache:!1,data:{},success:(u,d,f)=>{s.cahce=u;let g=(e-1)*n,c=g+n;if(g>=s.cache.length){let m={totalSize:0,page:[]};return Promise.resolve(m)}c=c<=s.cache.length?c:s.cache.length;let p=s.cache.slice(g,c),h={totalSize:this.cache.length,page:p};return Promise.resolve(h)},error:(u,d)=>{a(d)}})})}else{let s=this.getAPI();if(s){let l=qe(r),o=this.first;return this.first=!1,Reflect.apply(s,this,[this.src,e,n,i,this.lang,o,l,r])}else{let l=(e-1)*n,o={type:"getPageData",params:i,index:l,size:n,lang:this.lang},a=this.src;return this.lang?a=`${a}.do?lang=${this.lang}`:a=`${a}.do`,new Promise((d,f)=>{fox.service.request({path:a,dataType:"json",async:!0,cover:!0,data:o,callback(g,c,p){if(g==0){typeof p=="string"&&(p=JSON.parse(p));let h={totalSize:p.total,page:p.page};d(h)}else d(c)}})})}}}getAPI(){return De("getTablePageData",this.scope)}}function Wn(){return De("uiSetting")}function cb(t,e,n){const i=Wn();if(i)return i.loadUISetting(t,e,n)}function fb(t,e,n,i){const r=Wn();if(r)return r.saveUISetting(t,e,n,i)}function db(t,e,n){const i=Wn();i&&i.removeUISetting(t,e,n)}const hb={name:"fox-table-setting-suggestion",inject:{multiLang:{default:!1}},props:{visible:{type:Boolean,required:!1,default:!1},top:{type:Number,required:!0},left:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0},items:{type:Array,required:!0,default(){return[]}},hiddenColumns:{type:Array,required:!1,default(){return[]}}},data(){return{mCurTarget:void 0,isAllVisible:!1,innerItems:this.cloneItems(this.items),wrapClass:"",extendHeight:0}},watch:{visible(t){t?this.show():this.hide()}},computed:{mHeaderTitle(){let t="\u9009\u62E9\u5217";return this.multiLang&&(t=this.$langTranslator.translate(this,t)),t},mAllSelectTip(){let t="\u5168\u9009";return this.multiLang&&(t=this.$langTranslator.translate(this,t)),t},mSelectTip(){let t="\u81F3\u5C11\u9009\u4E09\u5217";return this.multiLang&&(t=this.$langTranslator.translate(this,t)),t},mClass(){return this.visible?{"fox-table-setting-suggestion":!0,"fox-table-setting-suggestion-show":!0}:{"fox-table-setting-suggestion":!0,"fox-table-setting-suggestion-hide":!0}},mStyle(){return{left:`${this.left}px`,top:`${this.top-this.extendHeight}px`,width:`${this.width}px`,height:`${this.height+this.extendHeight}px`}},mContentStyle(){let t=this.fixedItems.length,e=48;return{height:`${this.height-2*e-t*e+this.extendHeight}px`}},fixedItems(){return this.innerItems?this.innerItems.filter(t=>!!t.fixed):[]},isIndeterminate(){if(this.innerItems.length<=0)return!1;let t=this.innerItems[0].visible;for(let e=1;e<this.innerItems.length;e++)if(t!=this.innerItems[e].visible)return!0;return!1}},methods:{show(){let{suggestion:t,header:e}=this.$refs;t&&(document.body.appendChild(t),e&&setTimeout(()=>{if(gt(e))return;let n=Te(e);n>=this.height?this.extendHeight=n-this.height+96:this.height-n<96&&(this.extendHeight=96-(this.height-n))},100))},hide(){let{wrap:t,suggestion:e}=this.$refs;t&&(e.classList.add("fox-table-setting-suggestion-hide"),setTimeout(()=>{t.appendChild(e),e.classList.remove("fox-table-setting-suggestion-hide")},800))},isHiddenColumn(t){return this.hiddenColumns.indexOf(t.prop)>=0},cloneItems(t){let e=[],n=[];for(let i=0;i<t.length;i++){let r={prop:t[i].prop,label:t[i].label,fixed:t[i].fixed,visible:t[i].visible};r.fixed?e.push(r):n.push(r)}return[...e,...n]},getTarget(t){let e=t.parentElement;return e.classList.contains("fox-table-setting-row")?e:e.tagName.toLowerCase()!="body"?this.getTarget(e):void 0},onDragStart(t){let n=t.target.getAttribute("my-index");t.dataTransfer.setData("index",n)},onDragOver(t){t.preventDefault();let{target:e}=t;e.getAttribute("role")||(e=this.getTarget(e)),this.mCurTarget&&this.mCurTarget!=e&&(this.mCurTarget.style.borderTop="0px"),e.style.borderTop="1px solid #e4a542",this.mCurTarget=e},onDragLeave(t){t.preventDefault(),this.mCurTarget&&(this.mCurTarget.style.borderTop="0px",this.mCurTarget=void 0)},onDrop(t){let e,{target:n}=t;n.getAttribute("my-index")?e=Number(n.getAttribute("my-index")):n.getAttribute("role")=="container"?e=n.childNodes.length:(n=this.getTarget(n),e=Number(n.getAttribute("my-index")));let i=Number(t.dataTransfer.getData("index")),r=this.innerItems[i];i<e?(this.innerItems.splice(e,0,r),this.innerItems.splice(i,1)):(this.innerItems.splice(i,1),this.innerItems.splice(e,0,r)),this.mCurTarget&&(this.mCurTarget.style.borderTop="0px",this.mCurTarget=void 0)},onSave(){let t=0;for(let n=0;n<this.innerItems.length&&!(this.innerItems[n].visible&&(t++,t>=3));n++);if(t<3){this.$message.error("\u81F3\u5C11\u9009\u4E09\u5217");return}let e=this.cloneItems(this.innerItems);this.$emit("save",e),this.$emit("update:visible",!1)},onCancel(){this.$emit("update:visible",!1)},onSelectAll(t){this.innerItems.forEach(e=>{e.fixed||(e.visible=t)}),t?this.isAllVisible=!0:this.isAllVisible=!1},onSelectItem(t,e){t.visible=e,this.onUpdateAllState()},onUpdateAllState(){let t=!0;for(let e=0;e<this.innerItems.length;e++)if(this.innerItems[e].visible==!1){t=!1;break}this.isAllVisible=t}},created(){this.isAllVisible=!0;for(let t=0;t<this.innerItems.length;t++)if(this.innerItems[t].visible==!1){this.isAllVisible=!1;break}},beforeDestroy(){this.visible&&this.$refs.suggestion&&document.body.removeChild(this.$refs.suggestion)}};var pb=function(){var e=this,n=e._self._c;return n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"wrap"},[n("div",{ref:"suggestion",staticClass:"fox-table-setting-suggestion fox-table-setting-suggestion-show",style:e.mStyle},[n("div",{ref:"header",staticClass:"table-suggestion-header"},[n("div",{staticClass:"fox-table-setting-row"},[n("span",{staticClass:"row-header-title"},[e._v(e._s(e.mHeaderTitle))]),n("div",[n("fox-button",{staticClass:"row-header-button",attrs:{type:"primary",size:"small"},on:{click:e.onSave}},[e._v("\u4FDD\u5B58")]),n("fox-button",{staticClass:"row-header-button",attrs:{size:"small"},on:{click:e.onCancel}},[e._v("\u53D6\u6D88")])],1)]),n("div",{staticClass:"fox-table-setting-row"},[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:function(i){return e.onSelectAll(i)}},model:{value:e.isAllVisible,callback:function(i){e.isAllVisible=i},expression:"isAllVisible"}},[e._v(e._s(e.mAllSelectTip))]),n("span",{staticClass:"row-all-desc"},[e._v(e._s(e.mSelectTip))])],1),e._l(e.fixedItems,function(i,r){return[n("div",{key:`lock_row_${r}`,staticClass:"fox-table-setting-row row-lock-row"},[n("div",[n("span",{staticClass:"iconfont iconsuoding row-lock-icon"}),n("span",{staticClass:"row-lock-text"},[e._v(e._s(i.label))])])])]})],2),n("div",{staticClass:"table-suggestion-content",style:e.mContentStyle,attrs:{role:"container"},on:{drop:function(i){return e.onDrop(i)},dragover:function(i){return e.onDragOver(i)},dragleave:function(i){return e.onDragLeave(i)}}},[e._l(e.innerItems,function(i,r){return[!i.fixed&&!e.isHiddenColumn(i)?n("div",{key:i.prop,staticClass:"fox-table-setting-row",attrs:{"my-name":i.prop,"my-index":r,role:"item",draggable:"true"},on:{dragstart:function(s){return e.onDragStart(s)}}},[n("el-checkbox",{on:{change:function(s){return e.onSelectItem(i,s)}},model:{value:i.visible,callback:function(s){e.$set(i,"visible",s)},expression:"item.visible"}},[e._v(e._s(i.label))]),n("span",{staticClass:"row-normal-icon iconfont icontuozhuai"})],1):e._e()]})],2)])])},mb=[],gb=D(hb,pb,mb,!1,null,null,null,null);const yb=gb.exports;const _b={name:"fox-table-empty-tip",props:{text:{type:String,required:!1,default:"\u6682\u65E0\u6570\u636E"},icon:{type:String,required:!1,default:"iconfont iconzanwushuju"}},computed:{mIconClass(){return["fox-table-empty-icon",this.icon]}}};var $b=function(){var e=this,n=e._self._c;return n("div",{staticClass:"fox-table-empty-wrap"},[n("span",{class:e.mIconClass}),n("span",{staticClass:"fox-table-empty-text"},[e._v(e._s(e.text))])])},bb=[],xb=D(_b,$b,bb,!1,null,"9cf29f02",null,null);const vb=xb.exports;function Sb(){return ye.minTableHeight||266}function Db(){return ye.tableToolBarHeight||44}function wb(){return ye.tableMarginBottom||25}function Tb(){return typeof ye.tableHeightAdjustHandler=="function"?ye.tableHeightAdjustHandler:function(e,n,i=!0){if(e.offsetParent==null)return;let r,s=n.$parent;for(;s;){if(s.$el.classList.contains("fox-page")){r=s;break}s=s.$parent}if(!r)return;let l=0,o=0,a=0,u;if(r.$children)for(let c of r.$children)c.$el.classList.contains("fox-content")?(u=bn(c.$el),a=Te(c.$el)):c.$el.classList.contains("fox-header-bar")?l=Te(c.$el):c.$el.classList.contains("fox-footer-bar")&&(o=Te(c.$el));if(!u)return;let d=bn(e),f=a-l-o-(d.y-u.y);i&&(f-=Db()),f-=wb();let g=Sb();return f<g&&(f=g),f}}function hn(t,e,n=!0){let i=Tb();return Reflect.apply(i,{},[t,e,n])}const Cb=["header","content","page-index","page-size","page-sizes","tool-layout","base-params","params","auto-refresh"],Ib=["header","content","pageIndex","pageSize","pageSizes","toolLayout","baseParams","params","autoRefresh"],kb=/<(.*)>.*</;function Dr(t){return kb.test(t)}function Pb(t,e){if(t.length==0)return-1;let n=t[0].innerHTML;if(Dr(n))return t[0].offsetWidth;let i=t[0].style.fontSize||"14px",r="";for(let s=0;s<t.length;s++){let l=t[s].innerText;t[s].setAttribute("title",l),r.length<l.length&&(r=l)}return Nn(r,i,e)+20}const Lb={name:"fox-table-item",inject:{multiLang:{default:!1}},provide(){return{groupScope:!1}},components:{"fox-table-setting-suggestion":yb,"fox-table-empty-tip":vb},props:{id:{type:String,required:!1},header:{type:[Array],required:!1},content:{type:[Array,String],required:!0,default(){return[]}},pageIndex:{type:[Number,String],required:!1,default(){return 1}},pageSize:{type:[Number,String],required:!1},pageSizes:{type:[Array],required:!1,default(){return[10,20,30,50,100,150,200]}},pageCount:{type:[Number,String],required:!1,default:6},pagerCount:{type:[Number,String],required:!1,default:7},ignoreEmptyColumn:{type:[Boolean,String],required:!1,default:!1},hiddenColumns:{type:Array,required:!1,default(){return[]}},showTool:{type:[Boolean,String],required:!1,default:!0},toolLayout:{type:[String],required:!1,default(){return"total, sizes, prev, pager, next, jumper"}},baseParams:{type:[Object],required:!1,default(){return{}}},params:{type:[Object],required:!1,default(){return{}}},autoRefresh:{type:[Boolean,String],required:!1,default(){return!1}},autoResetTop:{type:[Boolean,String],required:!1,default(){return!0}},autoResetLeft:{type:[Boolean,String],required:!1,default(){return!1}},autoSelectedIndex:{type:[Number,String],required:!1,default(){return-1}},monitorResize:{type:[Boolean],required:!1,default(){return!0}},span:{type:[Number,String],required:!1,default(){return"all"}},minSuggestionHeight:{type:[Number],required:!1,default(){return 250}},maxColumnWidth:{type:[Number,String],required:!1,default(){return 350}},minColumnWidth:{type:[Number,String],required:!1,default(){return 90}},rowClickSelect:{type:[Boolean,String],required:!1,default:!0},formatter:{type:[Function],required:!1}},data(){let t=this.$i18n?this.$i18n.locale:void 0;return{[Me]:this.$parent.groupScope,tableModel:new At(this.content,t,this),tableData:[],currentPageIndex:this.pageIndex,currentPageSize:this.pageSize||this.pageSizes[0],size:0,refreshParams:{},sortedColumns:[],columnsSizeMap:new Map,settingVisible:!1,settingOptions:{top:0,left:0,height:0,width:0},currentRow:void 0,width:0,scrollLeft:0,scrollListener:e=>{let n=e.currentTarget;n&&(this.width=n.offsetWidth,this.scrollLeft=n.scrollLeft);let{scrollTop:i,scrollHeight:r,clientHeight:s}=n,l=this.$refs.tableWrap.querySelector(".el-table__fixed-body-wrapper");!l||(r==i+s?setTimeout(()=>{if(l.scrollTop==i)return;let o=i-l.scrollTop;o>0&&o<20?l.style.marginTop=`${-o}px`:o<0&&o>-20&&(l.style.marginTop=`${o}px`)},50):l.style.marginTop&&(l.style.marginTop=""))},observer:void 0,contentChanged:!1,tableHeight:void 0,autoAdjustTableHeight:!1,emptyTableFlag:!1}},computed:{mStyle(){if(this.$parent.groupScope){const t=M.getFitProperty(this,"spacing",32),e=M.getParentDomainProperty(this,"column",1),n=M.getParentDomainProperty(this,"groupWidth",-1),i=Ge(this,n,e,this.span,t);return{width:i<=0?"100%":`${i}px`}}else return{}},mEmptyTipStyle(){if(this.width<=0)return{};const t=100;return{width:`${t}px`,"margin-left":`${(this.width-t)/2+this.scrollLeft}px`}},queryParams(){let t={};if(this.baseParams)for(let e in this.baseParams)t[e]=this.baseParams[e];if(this.params)for(let e in this.params)t[e]=this.params[e];if(this.refreshParams)for(let e in this.refreshParams)t[e]=this.refreshParams[e];return t},mTableHeight(){return this.tableHeight}},watch:{pageIndex(t){this.currentPageIndex=t},queryParams(t){this.autoRefresh==!0&&this.load()},"$i18n.locale"(){let t=this.$i18n?this.$i18n.locale:void 0;this.tableModel=new At(this.content,t,this),this.load()},content(t){let e=this.$i18n?this.$i18n.locale:void 0;this.tableModel=new At(this.content,e,this),this.contentChanged=!0,typeof t!="string"&&this.load(!1,"loading",!1)}},methods:{handleSizeChange(t){this.currentPageSize=t,this.load(),this.$emit("page-size-change",t)},handleCurrentChange(t){this.currentPageIndex=t,this.foxData.reserveSelection||(this.currentRow=void 0),this.load(),this.$emit("page-index-change",t)},load(t=!1,e="loading",n=!0){let i;t&&(i=this.$loading({target:this.$refs.tableWrap,text:e}));const r=(s,l,o,a)=>{if(this.tableData=s,this.size=o,l)this.currentPageIndex=l;else if(this.contentChanged&&this.currentPageIndex>0)try{let u=ne(this.size);if(u==0)this.currentPageIndex=1;else{let d=Math.ceil(u*1/ne(this.pageSize));this.currentPageIndex>d&&(this.currentPageIndex=d)}}catch(u){console.error(u.message,u)}if(this.contentChanged=!1,a(this.tableData),this.autoSelectedIndex!=-1&&this.tableData&&this.tableData.length>0){let u=ne(this.autoSelectedIndex),d=this.tableData[u];setTimeout(()=>{this.setCurrentRow(d)},30)}setTimeout(()=>{!he||(n&&this.resetWrapScroll(),this.adjustColumnWidth(),this.adjustTableLayout(),this.setCellTitle())},50),setTimeout(()=>{Et(this).$forceUpdate()},250)};return new Promise(s=>{this.tableModel.getPageData(this.currentPageIndex,this.currentPageSize,this.queryParams,this).then(l=>{i&&i.close();let o=l.page;typeof this.formatter=="function"&&(o=this.formatter(l.page)),Vi(o)?o.then(a=>r(a,l.index,l.totalSize,s)):r(o,l.index,l.totalSize,s)})})},getRowData(t){if(!(t<0&&t>=this.tableData.length))return this.tableData[t]},getData(){return this.tableData},reloadTable(t="adjusting",e){let{tableWrap:n}=this.$refs,i=e;(!n.style.height||n.style.height.length=="")&&(i||(i=Te(n)),n.style.height=`${i}px`);let r=this.$loading({target:this.$refs.tableWrap,text:t});this.unRegisterListeners(),this.emptyTableFlag=!0,this.$forceUpdate(),setTimeout(()=>{i!==void 0&&(n.style.height=null),this.emptyTableFlag=!1,this.$forceUpdate(),setTimeout(()=>{this.adjustTableLayout(),this.registerListeners()},100),setTimeout(()=>{r.close()},200)},300)},refresh(t,e=!1,n="loading"){return t&&(this.refreshParams={},Wt(!0,this.refreshParams,t)),this.load(e,n)},reset(){this.currentRow=void 0,this.tableData=[],this.currentPageIndex=1,this.size=0,this.contentChanged=!1,setTimeout(()=>{this.resetWrapScroll(),this.adjustColumnWidth()},50)},resetWrapScroll(){if(!he)return;let t=this.$refs.tableWrap.querySelector(".el-table__body-wrapper");t&&(Z(this.autoResetTop)&&(t.scrollTop=0),Z(this.autoResetLeft)&&(t.scrollLeft=0));let e=this.$refs.tableWrap.querySelector(".el-table__fixed-body-wrapper");e&&(e.style.marginTop="")},clearSelection(){this.currentRow=void 0,this.$refs.table.clearSelection()},toggleRowSelection(t,e){this.$refs.table.toggleRowSelection(t,e)},toggleAllSelection(){this.$refs.table.toggleAllSelection()},toggleRowExpansion(t,e){this.$refs.table.toggleRowExpansion(t,e)},setCurrentRowByTerm(t){let e=[];Array.isArray(t)?e=t:e.push(t);for(let n of e)for(let i of this.tableData){let r=!0;for(let s in n)if(i[s]!=n[s]){r=!1;break}r&&this.setCurrentRow(i)}},setCurrentRowByIndex(t){if(t<0&&t>=this.tableData.length)return;let e=this.tableData[t];this.setCurrentRow(e)},setCurrentRow(t){if(this.$refs.table.setCurrentRow(t),this.foxData.multiSelection){if(typeof this.foxData.selectable=="function"&&!Reflect.apply(this.foxData.selectable,this,[t]))return;this.$refs.table.toggleRowSelection(t)}else this.currentRow=t},getCurrentRow(){return this.currentRow},clearSort(){this.$refs.table.clearSort()},clearFilter(t){this.$refs.table.clearFilter(t)},doLayout(){this.autoAdjustTableHeight?(this.tableHeight=hn(this.$refs.tableWrap,this.$refs.table,this.showTool),this.adjustColumnWidth(),this.adjustTableLayout(),this.reloadTable("adjusting",this.tableHeight)):(this.adjustColumnWidth(),this.adjustTableLayout(),this.reloadTable("adjusting"))},sort(t,e){this.$refs.table.sort(t,e)},handleSetting(){const t=this.$refs.tableWrap;let e=Rn(t);const n=An(t);let i=Te(t);if(e<0&&(i+=e,e=0),i<this.minSuggestionHeight){let l=this.minSuggestionHeight;e=e+i-l,i=l}else e+=48,i-=48+44;const r=nt(t);let s=333;this.settingOptions={top:e,left:n+r-s,height:i,width:s},this.settingVisible=!this.settingVisible},getDataKeys(){if(this.tableData&&this.tableData.length>=1){let t=this.tableData[0],e=[];for(let n in t)e.push(n);return e}},normalSort(t,e){t==null&&(t=""),e==null&&(e="");let n;return t<e?n=-1:t>e?n=1:n=0,n},numberSort(t,e){return t==null&&(t=""),e==null&&(e=""),t=He(`${t}`),e=He(`${e}`),Bi(t,e)},installSorter(t,e,n){n.toLowerCase()=="number"?t.sortMethod=(i,r)=>this.numberSort(i[e],r[e]):t.sortMethod=(i,r)=>this.normalSort(i[e],r[e])},pretreatColumn(t){this.foxData.map=[];let e="",n=!this.foxData.adjustColumns,i=[];t=t.filter(a=>{if(!a.componentOptions)return!1;let u=a.componentOptions.propsData,d=u.prop||"";if(e+=d,u.type=="selection")Reflect.has(a.data,"key")||(a.data.key="selection"),Z(u.reserveSelection)&&(this.foxData.reserveSelection=!0),this.foxData.multiSelection=!0,this.foxData.selectable=u.selectable,this.foxData.map[d]={column:a,width:u.width||48};else{Reflect.has(a.data,"key")||(a.data.key=d),Reflect.has(u,"sortable")||(u.sortable=!0),u.sortable===!0&&(typeof u.sortMethod=="string"?this.installSorter(u,d,"number"):u.sortMethod===void 0&&this.installSorter(u,d,"normal"));let{className:f}=u;if(f){let g=`fox-col-name-${d}`;f.indexOf(g)==-1&&(f+=` ${g}`)}else f=`fox-col-name-${d}`;u.className=f,Reflect.has(u,"width")?this.foxData.map[d]={column:a,width:u.width}:(this.foxData.map[d]={column:a},n&&i.push(d))}if(this.foxData.forceUpdate&&this.columnsSizeMap.has(d)){let f=this.columnsSizeMap.get(d);u.width=f||0}return!0}),n&&(this.foxData.adjustColumns=i),this.foxData.columnNames!=e&&(this.foxData.columns=[],t.forEach(a=>{let u=a.componentOptions.propsData,d=u.prop||"",f=!(u.fixed===void 0||u.fixed===!1||u.fixed==="false"),{label:g}=u;u.type=="selection"&&(g="selection",f=!0),this.foxData.columns.push({prop:d,label:g,fixed:f,type:u.type,visible:!0})}),this.foxData.columnNames=e,this.foxData.columnsSet=!1);let r;this.ignoreEmptyColumn&&(r=this.getDataKeys());let s=r&&r.length>0,l=this.hiddenColumns&&this.hiddenColumns.length>0;if(!this.foxData.columnsSet)return(s||l)&&(t=t.filter(a=>{const u=a.componentOptions.propsData.prop;return!(s&&r.indexOf(u)==-1||l&&this.hiddenColumns.indexOf(u)!=-1)})),t;let o=[];for(let a=0;a<this.sortedColumns.length;a++){let{prop:u,visible:d}=this.sortedColumns[a];if(s&&r.indexOf(u)==-1||l&&this.hiddenColumns.indexOf(u)!=-1)continue;let f=this.foxData.map[u];!f||!f.column||d&&o.push(f.column)}return o},saveSetting(t){this.foxData.columnsSet=!0,this.foxData.columns=t,this.sortedColumns=[...t];let e={columnNames:this.foxData.columnNames,columns:this.foxData.columns};fb("table","uiData",this.id,e),this.adjustColumnWidth(),this.reloadTable()},resetSetting(){!this.id||(db("table","uiData",this.id),this.sortedColumns=[],this.foxData={map:{},columnAdjusted:!0,columnNames:"",columns:[],columnsSet:!1,selectable:void 0,forceUpdate:!1,multiSelection:!1,reserveSelection:!1,width:-1,fixedWidth:-1,fixedHeight:void 0,adjustColumns:void 0,dragendColumnMap:{}},setTimeout(()=>{this.adjustColumnWidth(),this.reloadTable()},50))},adjustColumnWidth(){if(!he)return;let{tableWrap:t}=this.$refs;if(!t)return;this.foxData.columnAdjusted=!0;let e=ne(this.maxColumnWidth),n=ne(this.minColumnWidth),i=this.$refs.tableWrap.offsetWidth-4,r;this.ignoreEmptyColumn&&(r=this.getDataKeys());let s=r&&r.length>0,l=this.hiddenColumns&&this.hiddenColumns.length>0,o=new Map,a=new Map,u=0,d=[],f=0,g=0;if(this.foxData.columns.forEach(c=>{if(!c.visible)return;let p=c.prop;if(s&&r.indexOf(p)==-1||l&&this.hiddenColumns.indexOf(p)!=-1)return;let h=this.foxData.map[p];if(!h)return;if(!(this.foxData.adjustColumns&&this.foxData.adjustColumns.indexOf(p)!=-1)){const v=ne(h.width);c.fixed&&(u+=v),f+=v,a.set(p,v);return}if(this.foxData.dragendColumnMap[p]!==void 0){const v=ne(this.foxData.dragendColumnMap[p]);o.set(p,v),c.fixed&&d.push(p),f+=v,g+=1;return}let{label:y,sortable:_}=h.column.componentOptions.propsData,$=0;_&&($=24);let b=`td.fox-col-name-${p} > .cell`,C=t.querySelectorAll(b),P=Pb(C,t),x=Nn(y||"",t.style.fontSize,t);if(P<=0&&x<=0){this.foxData.columnAdjusted=!1;return}P+=12*2,x+=$+12*2,P<x&&(P=x),P<n?P=n:P>e&&(P=e),o.set(p,P),c.fixed&&d.push(p),f+=P,g+=1}),this.foxData.width=i,this.foxData.wrapWidth=i,g>0){let c=i-f;if(c>0){let p=Math.ceil(c*1/g);f=0;for(let[h,m]of o.entries()){let y=m+p;if(f+=p,f>=c){y-=f-c,y>m&&o.set(h,y);break}o.set(h,y)}}else this.foxData.width=f;if(o.size>0){this.foxData.forceUpdate=!0,this.columnsSizeMap=o;for(let[p,h]of a)this.columnsSizeMap.set(p,h)}}for(let c of d)u+=o.get(c);this.foxData.fixedWidth=u},adjustTableLayout(){if(!!he){for(let[t,e]of this.columnsSizeMap)this.updateColumnWidth(t,e);this.updateWrapWidth()}},updateWrapWidth(){let{tableWrap:t}=this.$refs;if(!t||this.foxData.width==-1)return;let e=t.querySelector(".el-table__header");e&&(e.style.width=`${this.foxData.width}px`);let n=t.querySelector(".el-table__body");n&&(n.style.width=`${this.foxData.width}px`);let i=t.querySelector(".el-table__empty-block");if(i&&(i.style.width=`${this.foxData.width}px`),this.foxData.width>this.foxData.wrapWidth){let r=t.querySelector(".el-table__body-wrapper.is-scrolling-none");r&&(r.classList.remove("is-scrolling-none"),r.classList.add("is-scrolling-left"));let s=t.querySelector(".el-table.el-table--enable-row-transition");s&&s.classList.add("el-table--scrollable-x")}if(this.foxData.fixedWidth>0){let r=t.querySelector(".el-table__fixed");if(r){r.style.width=`${this.foxData.fixedWidth}px`;let s=t.querySelector(".el-table.el-table--scrollable-x");if(s){let l=Te(s);this.foxData.fixedHeight=l;let o=l-11;setTimeout(()=>{r.style.height=`${o}px`},250)}}}},updateColumnWidth(t,e){if(!he)return;let{tableWrap:n}=this.$refs;if(!n)return;let i,r=n.querySelector(`.fox-col-name-${t}`);if(!!r&&(r.classList.forEach(s=>{s.indexOf("el-table")==0&&s.indexOf("column")!=-1&&(i=s)}),i)){let s=n.querySelectorAll(`colgroup>col[name=${i}]`);s&&s.forEach(l=>{l.setAttribute("width",e)})}},setCellTitle(){this.foxData.columns.forEach(t=>{if(!t.visible)return;let n=`td.fox-col-name-${t.prop} > .cell`,i=this.$refs.tableWrap.querySelectorAll(n);if(!i||i.length==0)return;let r=i[0].innerHTML;if(!Dr(r))for(let s=0;s<i.length;s++){let l=i[s].innerText;i[s].setAttribute("title",l)}})},adjustTableHeight(){this.tableHeight=hn(this.$refs.tableWrap,this.$refs.table,this.showTool)},registerListeners(){if(this.$refs.tableWrap){let t=this.$refs.tableWrap.querySelector(".el-table__body-wrapper");t&&this.monitorResize&&setTimeout(()=>{if(this.width=t.offsetWidth,t.addEventListener("scroll",this.scrollListener),window.ResizeObserver){let e=null;this.observer=new window.ResizeObserver(()=>{if(!this.emptyTableFlag&&t){if(gt(t)||t.offsetWidth===this.width)return;this.width=t.offsetWidth,e&&clearTimeout(e),e=setTimeout(()=>{e=null,this.adjustColumnWidth(),this.adjustTableLayout()},250)}}),this.observer.observe(t)}},50)}},unRegisterListeners(){if(this.$refs.tableWrap){let t=this.$refs.tableWrap.querySelector(".el-table__body-wrapper");t&&t.removeEventListener("scroll",this.scrollListener)}this.observer&&(this.observer.disconnect(),this.observer=null)}},beforeCreate(){this.foxData={map:{},columnAdjusted:!0,columnNames:"",columns:[],columnsSet:!1,selectable:void 0,forceUpdate:!1,multiSelection:!1,reserveSelection:!1,wrapWidth:-1,width:-1,fixedWidth:-1,fixedHeight:void 0,adjustColumns:void 0,dragendColumnMap:{}}},created(){let t=this.$i18n?this.$i18n.locale:void 0;if(this.tableModel=new At(this.content,t,this),(this.autoRefresh==!0||Array.isArray(this.content))&&this.load(),this.id){let e=cb("table","uiData",this.id);e&&e.columns&&(this.foxData.columnNames=e.columnNames,this.foxData.columns=e.columns,this.foxData.columnsSet=!0,this.sortedColumns=[...e.columns])}},mounted(){let t=Z(this.autoRefresh);this.autoAdjustTableHeight?setTimeout(()=>{this.tableHeight=hn(this.$refs.tableWrap,this.$refs.table,this.showTool),t||(this.adjustColumnWidth(),this.adjustTableLayout(),this.registerListeners())},50):t?this.registerListeners():setTimeout(()=>{this.adjustColumnWidth(),this.adjustTableLayout(),this.registerListeners()},50)},beforeDestroy(){this.unRegisterListeners(),this.foxData=null},updated(){this.$refs.tableWrap&&gt(this.$refs.tableWrap)&&(this.settingVisible=!1),this.foxData.columnAdjusted===!1&&setTimeout(()=>{this.adjustColumnWidth(),this.adjustTableLayout()},50)},render(t){if(this.emptyTableFlag)return t("div",{ref:"tableWrap",class:{"fox-table-wrap":!0},style:this.mStyle},[]);let e={};ee(this,e,this.$attrs,Cb);let n={};if(ue(this,n,this.$props,Ib),n.data=this.tableData,n.size=this.mSize,!Reflect.has(e,"border")&&!n.border){let b=!1;if(e["header-cell-class-name"]){let C=e["header-cell-class-name"];e["header-cell-class-name"]=`${C} fox-table-header-cell`,b=!0}if(!b&&n["header-cell-class-name"]){let C=n["header-cell-class-name"];typeof C=="object"?C["fox-table-header-cell"]=!0:n["header-cell-class-name"]=`${C} fox-table-header-cell`,b=!0}b||(e["header-cell-class-name"]="fox-table-header-cell")}let i={};Q(this,i,this.$listeners,["row-click","selection-change","header-dragend","sort-change","current-change"]);let r=this.$listeners["selection-change"];i["selection-change"]=b=>{this.foxData.multiSelection&&(this.currentRow=b),typeof r=="function"&&r(b)};let s=this.$listeners["row-click"];i["row-click"]=b=>{Z(this.rowClickSelect)&&this.setCurrentRow(b),typeof s=="function"&&s(b)};let l=this.$listeners["current-change"];i["current-change"]=(b,C)=>{this.currentRow=b,typeof l=="function"&&l(b,C)};let o=this.$listeners["sort-change"];i["sort-change"]=b=>{typeof o=="function"&&o(b),this.$nextTick(()=>{this.adjustTableLayout(),this.setCellTitle()})};let a=this.$listeners["header-dragend"];i["header-dragend"]=(b,C,P,x)=>{typeof a=="function"&&a(b,C,P,x),P.property&&(this.foxData.dragendColumnMap[P.property]=b,setTimeout(()=>{this.adjustColumnWidth(),this.adjustTableLayout()},100))};let u=n.height||e.height;u&&u==="stretch"&&(delete e.height,n.height=this.mTableHeight,this.autoAdjustTableHeight=!0);let d={attrs:e,props:n,on:i,ref:"table",style:{width:"100%"}};if(this.$scopedSlots.empty)d.scopedSlots={empty:this.$scopedSlots.empty};else{let b=e["empty-text"]||n.emptyText;b||(b="\u6682\u65E0\u6570\u636E",this.multiLang&&(b=this.$langTranslator.translate(this,b))),d.scopedSlots={empty:()=>t("fox-table-empty-tip",{style:this.mEmptyTipStyle,props:{text:b}})}}let f;if(this.$slots.default){let b=this.pretreatColumn(this.$slots.default);d.scopedSlots||(d.scopedSlots={}),d.scopedSlots.default=()=>b,f=t("el-table",d)}else if(this.header){let b=[];for(let P of this.header){let x={attrs:{prop:P.key,label:P.text}};Y(P.width)&&(x.attrs.width=P.width),b.push(t("el-table-column",x))}let C=this.pretreatColumn(b);f=t("el-table",d,C)}let g={props:{"current-page":Number(this.currentPageIndex),"page-sizes":this.pageSizes,"page-size":Number(this.currentPageSize),"page-count":Number(`${this.pageCount}`),"pager-count":Number(`${this.pagerCount}`),layout:this.toolLayout,total:Number(this.size)},on:{"size-change":this.handleSizeChange,"current-change":this.handleCurrentChange}},p=[t("el-pagination",g)];if(this.id){let b={class:{"fox-table-tool-setting":!0}};b.on={click:this.handleSetting};let C=t("span",{class:{"el-icon-setting":!0,"fox-table-tool-icon":!0}}),P="\u8868\u683C\u8BBE\u7F6E";this.multiLang&&(P=this.$langTranslator.translate(this,P));let x=t("span",{class:{"fox-table-tool-text":!0}},[P]),v=t("div",b,[C,x]);p.push(v)}let m=t("div",{class:{"fox-table-tools":!0}},p),y={class:{"fox-table-tools-wrap":!0}};Z(this.showTool)||(y.style={display:"none"});let _=t("div",y,[m]),$=[f,_];if(this.id){let b={props:{visible:this.settingVisible,top:this.settingOptions.top,left:this.settingOptions.left,width:this.settingOptions.width,height:this.settingOptions.height,items:this.foxData.columns,hiddenColumns:this.hiddenColumns},on:{"update:visible":P=>{this.settingVisible=P},save:this.saveSetting}},C=t("fox-table-setting-suggestion",b);$.push(C)}return t("div",{ref:"tableWrap",class:{"fox-table-wrap":!0},style:this.mStyle},$)}},Nb=null,Mb=null;var Rb=D(Lb,Nb,Mb,!1,null,null,null,null);const Ab=Rb.exports;class wr{constructor(e,n){this.src=e,this.scope=Hn(n)}getAPI(){return De("getSelectItems",this.scope)}load(e,n,i){let{src:r}=this;if(Ht(r))return Promise.resolve(r);if(typeof r=="function"){const s=qe(i);return Reflect.apply(r,this,[e,n,s,i])}if(r.indexOf("@")==0){let s;return n?s=`static/data-source/${n}/${r.substring(1)}`:s=`static/data-source/${r.substring(1)}`,new Promise((o,a)=>{fox.ajax({url:s,async:!0,type:"GET",dataType:"json",cache:!1,data:{},success:function(u,d,f){o(u)},error:function(u,d){a(d)}})})}else{if(r.indexOf("http://")==0||r.indexOf("https://")==0)return new Promise((l,o)=>{fox.ajax({url:r,async:!0,type:"GET",dataType:"json",cache:!1,data:{lang:n,params:e},success:function(a,u,d){l(a)},error:function(a,u){o(u)}})});{let s=this.getAPI();if(s){const l=qe(i);return Reflect.apply(s,this,[r,e,n,l,i])}else{let l=r;return n?l=`${l}.do?lang=${n}`:l=`${l}.do`,new Promise((a,u)=>{fox.service.request({path:l,dataType:"json",async:!0,cover:!1,data:{lang:n,params:e},callback(d,f,g){d==0?(typeof g=="string"&&(g=JSON.parse(g)),a(g.items)):a(f)}})})}}}}}const Vb="el-radio-group",Fb={name:"fox-radio-item",mixins:[ce],props:{value:{required:!1},source:{type:[Array,String,Function],required:!1},valueType:{type:String,required:!1,default(){return"value"}},textName:{type:[String],required:!1,default(){return"text"}},valueName:{type:[String],required:!1,default(){return"value"}},ctype:{type:[String],required:!1,default(){return"normal"}},itemOptions:{type:[Object,Function],required:!1},params:{type:[String,Object],required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value,items:[]}},created(){this.source||(this.innerLoading=!1),this.loadDataSource(this.source)},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t)},source(t,e){this.loadDataSource(t)},"$i18n.locale"(){this.loadDataSource(this.source)}},computed:{mItems(){return this.items===void 0?[]:this.formatDataSource(this.items)},mValue(){if(this.innerValue===void 0)return"";if(this.valueType==="json")if(this.multiple){let t=[];for(let e of this.innerValue)t.push(e.value);return t.length==0?"":t}else return typeof this.innerValue=="string"?this.innerValue:this.innerValue.value;else if(this.valueType=="text")if(this.multiple){let t;typeof this.innerValue=="string"?t=this.innerValue.split(","):t=this.innerValue;let e=[];for(let n of t){let i=this.searchItemByText(n,this.mItems);i&&e.push(i.value)}return e.length==0?"":e}else{let t=this.searchItemByText(this.innerValue,this.mItems);return t?t.value:""}else{if(typeof this.innerValue=="string")if(this.multiple&&this.innerValue.length>0){let t=this.innerValue.split(",");return t.length===0?"":t}else return this.innerValue;return this.innerValue}}},methods:{onChange(t){if(this.valueType==="value"){this.innerValue=t,this.$emit("change",t),this.$nextTick(()=>{this.$emit("setValue",t)});return}let e=this.searchItemByValue(t,this.mItems);if(e)if(this.valueType==="text")this.innerValue=e[this.textName],this.$emit("change",this.innerValue);else{let n={};for(let i in e)n[i]=e[i];this.innerValue=n,this.$emit("change",n)}else this.$emit("change","");this.$nextTick(()=>{this.$emit("setValue",this.innerValue)})},getItemText(t){return t[this.textName]},getItemValue(t){return t[this.valueName]},loadDataSource(t){if(!t)return;let e=new wr(t,this),n=this.$i18n?this.$i18n.locale:void 0,i;this.params&&(typeof this.params=="object"?i={...this.params}:i=this.params),e.load(i,n,this).then(r=>{this.items=r},r=>{console.error("radio\u6570\u636E\u6E90\u52A0\u8F7D\u5931\u8D25")})},formatDataSource(t){let e=[];for(let n=0;n<t.length;n++){let i=t[n];if(typeof i=="object"){if(i[this.textName]!==void 0&&i[this.valueName]!=null)e.push(i);else if(i[this.textName]!=null){let r={};r[this.textName]=i[this.textName],r[this.valueName]=i[this.valueName],e.push(r)}}else{let r={};r[this.textName]=i,r[this.valueName]=i,e.push(r)}}return e},searchItemByValue(t,e){let n;for(let i of e)if(i[this.valueName]===t&&(n=i),n)break;return n},searchItemByText(t,e){let n;for(let i of e)if(i[this.textName]===t&&(n=i),n)break;return n},createChildren(t){let e=[];for(let n=0;n<this.mItems.length;n++){let i=this.mItems[n],r={props:{},attrs:{},class:{},on:{},nativeOn:{}},s={};typeof this.itemOptions=="function"?s=Reflect.apply(this.itemOptions,null,[i,n]):typeof this.itemOptions=="object"&&Object.assign(s,this.itemOptions??{}),typeof s.className=="string"&&(r.class[s.className]=!0);const l=s.disabled===!0?s.disabled:this.mDisabled;r.props.disabled=l;let o=this.getItemValue(i);r.props.label=o,r.props.size=this.mSize;let a=this.getItemText(i),u;this.ctype=="button"?(r.nativeOn.click=()=>{this.onChange(o)},u=t("el-radio-button",r,a)):this.ctype=="border-button"?(r.attrs.border="",r.on.change=()=>{this.onChange(o)},u=t("el-radio",r,a)):(r.on.change=()=>{this.onChange(o)},u=t("el-radio",r,a)),e.push(u)}return e}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let c=this.$slots.default[0];if(this.multiLang){let{text:p}=c;p&&(p=p.trim()).length>0&&(p=this.$langTranslator.translate(this,p),e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p]))}if(!n){let{text:p}=c;p&&(p=p.trim()).length>0?(e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p])):c.tag&&(n=t("div",e,this.$slots.default))}}else{let c=this.label;c&&(c=c.trim()).length>0&&(this.multiLang&&(c=this.$langTranslator.translate(this,c)),e.domProps={innerHTML:B(c,this.mLabelMaxCharCount)},n=t("div",e))}let i=this.createChildren(t),r={};ee(this,r,this.$attrs);let s={};ue(this,s,this.$props),s.value=this.mValue,s.disabled=this.mDisabled||this.mReadonly,s.size=this.mSize;let a=[t(Vb,{attrs:r,props:s,class:{"fox-radio-group":!0}},i)],u=this.installTip(t);u.type!=="node"&&a.push(u.node);let d={class:{"el-form-item__content":!0},style:this.mInputStyle},f=t("div",d,a),g={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return u.type==="error"?g.class["is-error"]=!0:u.type==="warn"?g.class["is-warn"]=!0:u.type==="info"&&(g.class["is-info"]=!0),se(this,g),this.componentData(this,g,"radio"),n?t("div",g,[n,f]):t("div",g,[f])}},Eb=null,Ob=null;var jb=D(Fb,Eb,Ob,!1,null,"8a7a4679",null,null);const qb=jb.exports;const Hb={name:"fox-checkboxs",props:{value:{required:!1,type:Array},source:{type:[Array,String,Function],required:!1},textName:{type:[String],required:!1,default(){return"text"}},valueName:{type:[String],required:!1,default(){return"value"}},valueType:{type:String,required:!1,default(){return"value"}},ctype:{type:[String],required:!1,default(){return"normal"}},min:{type:[Number],required:!1},max:{type:[Number],required:!1},textColor:{type:String,required:!1,default:"#ffffff"},fill:{type:String,required:!1,default:"#409EFF"},itemOptions:{type:[Function,Object],required:!1},disabled:{type:[Boolean],required:!1},params:{type:[String,Object],required:!1}},model:{prop:"value",event:"change"},created(){this.source||(this.innerLoading=!1),this.loadDataSource(this.source)},data(){return{innerLoading:!0,innerValue:this.toInputValue(this.value),items:[]}},watch:{value(t,e){let n=this.toInputValue(t);this.isSame(n,this.innerValue)||(this.innerValue=n)},innerValue(t,e){this.toResValue(t)},source(t,e){this.loadDataSource(t)},"$i18n.locale"(){this.loadDataSource(this.source)},mItems(t){this.innerValue=this.toInputValue(this.value)}},computed:{mItems(){return this.innerLoading||this.items===void 0?[]:this.formatDataSource(this.items)}},methods:{getItemOptions(t,e){let n={};return typeof this.itemOptions=="function"?n=Reflect.apply(this.itemOptions,null,[t,e]):typeof this.itemOptions=="object"&&Object.assign(n,this.itemOptions??{}),n},getItemClasses(t,e){return this.getItemOptions(t,e).className},getItemDisabled(t,e){let n=this.getItemOptions(t,e);return n.disabled===!0?n.disabled:this.disabled},isSame(t,e){if(t===e)return!0;if(!Array.isArray(t)||!Array.isArray(e)||t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0},onFocus(t){Be(this,"focus",t)},onBlur(t){Be(this,"blur",t)},toInputValue(t){if(this.innerLoading||this.innerLoading==null)return[];if(this.valueType==="json"){let e=[];for(let n of t)e.push(n.value);return e}else if(this.valueType=="text"){let e=t,n=[];for(let i of e){let r=this.searchItemByText(i,this.mItems);r&&n.push(r.value)}return n}else return t},toResValue(t){if(this.valueType==="value"){this.$emit("change",t);return}let e=[],n=t;for(let i of n){let r=this.searchItemByValue(i,this.mItems);if(r)if(this.valueType==="text")e.push(r[this.textName]);else{let s={};for(let l in r)s[l]=r[l];e.push(s)}}this.$emit("change",e)},getItemText(t){return t[this.textName]},getItemValue(t){return t[this.valueName]},loadDataSource(t){if(!t)return;let e=new wr(t,this),n=this.$i18n?this.$i18n.locale:void 0,i;this.params&&(typeof this.params=="object"?i={...this.params}:i=this.params),e.load(i,n,this).then(r=>{this.innerLoading=!1,this.items=r},r=>{console.error("checkbox\u6570\u636E\u6E90\u52A0\u8F7D\u5931\u8D25")})},formatDataSource(t){let e=[];for(let n=0;n<t.length;n++){let i=t[n];if(typeof i=="object"){if(i[this.textName]!==void 0&&i[this.valueName]!=null)e.push(i);else if(i[this.textName]!=null){let r={};r[this.textName]=i[this.textName],r[this.valueName]=i[this.valueName],e.push(r)}}else{let r={};r[this.textName]=i,r[this.valueName]=i,e.push(r)}}return e},searchItemByValue(t,e){let n;for(let i of e)if(i[this.valueName]===t&&(n=i),n)break;return n},searchItemByText(t,e){let n;for(let i of e)if(i[this.textName]===t&&(n=i),n)break;return n}}};var Wb=function(){var e=this,n=e._self._c;return n("fox-checkbox-group",{attrs:{max:e.max,min:e.min,"text-color":e.textColor,fill:e.fill},model:{value:e.innerValue,callback:function(i){e.innerValue=i},expression:"innerValue"}},[e._l(e.mItems,function(i,r){return[e.ctype=="button"?[n("fox-checkbox-button",{key:`ck_btn_${r}`,class:e.itemClass,attrs:{disabled:e.disabled,label:e.getItemValue(i)}},[e._v(e._s(e.getItemText(i)))])]:e.ctype=="border-button"?[n("fox-checkbox",{key:`ck_bb_${r}`,class:e.getItemClasses(i,r),attrs:{disabled:e.getItemDisabled(i,r),label:e.getItemValue(i),border:""}},[e._v(e._s(e.getItemText(i)))])]:[n("fox-checkbox",{key:`ck_${r}`,class:e.getItemClasses(i,r),attrs:{disabled:e.getItemDisabled(i,r),label:e.getItemValue(i)}},[e._v(e._s(e.getItemText(i)))])]]})],2)},Bb=[],Kb=D(Hb,Wb,Bb,!1,null,"93292c5e",null,null);const zb=Kb.exports;const Yb="fox-checkboxs",Ub={name:"fox-checkbox-item",mixins:[ce],props:{value:{required:!1,type:Array},source:{type:[Array,String,Function],required:!1},valueType:{type:String,required:!1,default(){return"value"}},textName:{type:[String],required:!1,default(){return"text"}},valueName:{type:[String],required:!1,default(){return"value"}},ctype:{type:[String],required:!1,default(){return"normal"}},itemOptions:{type:[Object,Function],required:!1}},model:{prop:"value",event:"change"},data(){return{}},methods:{onChange(t){this.$emit("change",t),this.$nextTick(()=>{this.$emit("setValue",t)})}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let c=this.$slots.default[0];if(this.multiLang){let{text:p}=c;p&&(p=p.trim()).length>0&&(p=this.$langTranslator.translate(this,p),e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p]))}if(!n){let{text:p}=c;p&&(p=p.trim()).length>0?(e.attrs.title=p,p=B(p,this.mLabelMaxCharCount),n=t("div",e,[p])):c.tag&&(n=t("div",e,this.$slots.default))}}else{let c=this.label;c&&(c=c.trim()).length>0&&(this.multiLang&&(c=this.$langTranslator.translate(this,c)),e.domProps={innerHTML:B(c,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs);let r={};ue(this,r,this.$props),r.value=this.value,r.disabled=this.mDisabled||this.mReadonly,r.size=this.mSize;let s={};Q(this,s,this.$listeners,["blur","focus","change","input"]),s.blur=this.onBlur,s.focus=this.onFocus,s.change=this.onChange;let l={attrs:i,props:r,on:s,class:{"fox-checkbox-group":!0}};this.itemOptions&&(l.props["item-options"]=this.itemOptions);let a=[t(Yb,l)],u=this.installTip(t);u.type!=="node"&&a.push(u.node);let d={class:{"el-form-item__content":!0},style:this.mInputStyle},f=t("div",d,a),g={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return u.type==="error"?g.class["is-error"]=!0:u.type==="warn"?g.class["is-warn"]=!0:u.type==="info"&&(g.class["is-info"]=!0),se(this,g),this.componentData(this,g,"checkbox"),n?t("div",g,[n,f]):t("div",g,[f])}},Gb=null,Xb=null;var Zb=D(Ub,Gb,Xb,!1,null,"64415ea7",null,null);const Jb=Zb.exports,Qb="fox-number-item",ex="fox-text-item",tx={name:Qb,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let{data:i}=e;return!i.attrs&&(i.attrs={}),i.attrs.type="number",n(ex,i,e.children)}},nx=null,ix=null;var rx=D(tx,nx,ix,!1,null,null,null,null);const sx=rx.exports,lx="el-switch",ax={name:"fox-switch-item",mixins:[ce],props:{value:{required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t)}},methods:{onChange(t){this.innerValue=t,this.$emit("change",t)}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let p=this.$slots.default[0];if(this.multiLang){let{text:h}=p;h&&(h=h.trim()).length>0&&(h=this.$langTranslator.translate(this,h),e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h]))}if(!n){let{text:h}=p;h&&(h=h.trim()).length>0?(e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h])):p.tag&&(n=t("div",e,this.$slots.default))}}else{let p=this.label;p&&(p=p.trim()).length>0&&(this.multiLang&&(p=this.$langTranslator.translate(this,p)),e.domProps={innerHTML:B(p,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs);let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled||this.mReadonly,r.size=this.mSize;let s={};Q(this,s,this.$listeners,["blur","focus","change","input"]),s.blur=this.onBlur,s.focus=this.onFocus,s.change=this.onChange,s.input=this.onChange;let l={attrs:i,props:r,on:s},o=`${lx}`,u=[t(o,l)],d=this.installTip(t);d.type!=="node"&&u.push(d.node);let f={class:{"el-form-item__content":!0,"fox-switch-form-item_content":!0},style:this.mInputStyle},g=t("div",f,u),c={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return d.type==="error"?c.class["is-error"]=!0:d.type==="warn"?c.class["is-warn"]=!0:d.type==="info"&&(c.class["is-info"]=!0),se(this,c),this.componentData(this,c,"switch"),n?t("div",c,[n,g]):t("div",c,[g])}},ox=null,ux=null;var cx=D(ax,ox,ux,!1,null,null,null,null);const fx=cx.exports,dx="el-slider",hx={name:"fox-slider-item",mixins:[ce],props:{value:{required:!1}},model:{prop:"value",event:"change"},data:function(){return{innerValue:this.value}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t)}},methods:{onChange(t){this.innerValue=t,this.$emit("change",t)}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let p=this.$slots.default[0];if(this.multiLang){let{text:h}=p;h&&(h=h.trim()).length>0&&(h=this.$langTranslator.translate(this,h),e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h]))}if(!n){let{text:h}=p;h&&(h=h.trim()).length>0?(e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h])):p.tag&&(n=t("div",e,this.$slots.default))}}else{let p=this.label;p&&(p=p.trim()).length>0&&(this.multiLang&&(p=this.$langTranslator.translate(this,p)),e.domProps={innerHTML:B(p,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs);let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled||this.mReadonly,r.size=this.mSize;let s={};Q(this,s,this.$listeners,["blur","focus","change","input"]),s.blur=this.onBlur,s.focus=this.onFocus,s.change=this.onChange,s.input=this.onChange;let l={attrs:i,props:r,on:s,class:{"fox-match-parent":!0}},o=`${dx}`,u=[t(o,l)],d=this.installTip(t);d.type!=="node"&&u.push(d.node);let f={class:{"el-form-item__content":!0},style:this.mInputStyle},g=t("div",f,u),c={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return d.type==="error"?c.class["is-error"]=!0:d.type==="warn"?c.class["is-warn"]=!0:d.type==="info"&&(c.class["is-info"]=!0),se(this,c),this.componentData(this,c,"slider"),n?t("div",c,[n,g]):t("div",c,[g])}},px=null,mx=null;var gx=D(hx,px,mx,!1,null,null,null,null);const yx=gx.exports,_x="el-rate",$x={name:"fox-rate-item",mixins:[ce],props:{value:{required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t){this.innerValue=t,this.$emit("change",t)}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let p=this.$slots.default[0];if(this.multiLang){let{text:h}=p;h&&(h=h.trim()).length>0&&(h=this.$langTranslator.translate(this,h),e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h]))}if(!n){let{text:h}=p;h&&(h=h.trim()).length>0?(e.attrs.title=h,h=B(h,this.mLabelMaxCharCount),n=t("div",e,[h])):p.tag&&(n=t("div",e,this.$slots.default))}}else{let p=this.label;p&&(p=p.trim()).length>0&&(this.multiLang&&(p=this.$langTranslator.translate(this,p)),e.domProps={innerHTML:B(p,this.mLabelMaxCharCount)},n=t("div",e))}let i={};ee(this,i,this.$attrs);let r={};ue(this,r,this.$props),r.value=this.innerValue,r.disabled=this.mDisabled,r.readonly=this.mReadonly,r.size=this.mSize;let s={};Q(this,s,this.$listeners,["blur","focus","change","input"]),s.blur=this.onBlur,s.focus=this.onFocus,s.change=this.onChange,s.input=this.onChange;let l={attrs:i,props:r,on:s,class:{"fox-match-parent":!0}},o=`${_x}`,u=[t(o,l)],d=this.installTip(t);d.type!=="node"&&u.push(d.node);let f={class:{"el-form-item__content":!0},style:this.mInputStyle},g=t("div",f,u),c={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return d.type==="error"?c.class["is-error"]=!0:d.type==="warn"?c.class["is-warn"]=!0:d.type==="info"&&(c.class["is-info"]=!0),se(this,c),this.componentData(this,c,"rate"),n?t("div",c,[n,g]):t("div",c,[g])}},bx=null,xx=null;var vx=D($x,bx,xx,!1,null,null,null,null);const Sx=vx.exports;let Dx={...qn,modelValue:[Array,String],visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object};const jt=(t,e,n)=>t.map(i=>{const{value:r="value",text:s="text",children:l="children"}=n??{},{[r]:o,[s]:a,[l]:u,...d}=i,f={loading:!1,...d,level:e?(e&&e.level||0)+1:0,value:o,text:a,children:u,_parent:e};return f.children&&f.children.length&&(f.children=jt(f.children,f,n)),f}),Tr=(t,e)=>{let n=0,i;for(;(i=t[n++])&&e(i)!==!0;)i.children&&i.children.length&&Tr(i.children,e)},wx={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Tx=(t,e)=>{const n={...wx,...e||{}},{topId:i,idKey:r,pidKey:s,sortKey:l}=n;let o=[],a={};return t.forEach(u=>{u={...u};const{[r]:d,[s]:f}=u,g=a[f]=a[f]||[];!o.length&&f===i&&(o=g),g.push(u),u.children=a[d]||(a[d]=[])}),l&&Object.keys(a).forEach(u=>{a[u].length>1&&a[u].sort((d,f)=>d[l]-f[l])}),a=null,o};class Ti{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=jt(e,null,this.config)}updateChildren(e,n){n?n.children=jt(e,n,this.config):this.nodes=jt(e,null,this.config)}getNodeByValue(e){let n;return Tr(this.nodes,i=>i.value===e?(n=i,!0):!1),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let i=this.nodes;for(;i&&i.length;){const r=i.find(s=>s.value===e[s.level]);if(!r)break;n.push(r),i=r.children}return n}isLeaf(e,n){const{leaf:i,children:r}=e,s=Array.isArray(r)&&Boolean(r.length);return i||!s&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:r}=e;return Array.isArray(r)&&Boolean(r.length)}}const Cx=S.defineComponent({name:"tab-pane",props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:e}){const n=S.getCurrentInstance(),i=S.inject("tabsState");return i.addTabPane(n?.proxy,t.title,t.paneKey,t.disabled),S.onUnmounted(()=>{i.removeTabPane(n?.proxy)}),S.watch([()=>t.title,()=>t.paneKey,()=>t.disabled],([r,s,l])=>{i.updateTabPane(n?.proxy,r,s,l)}),{activeKey:i.activeKey,autoHeight:i.autoHeight}}});var Ix=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{staticClass:"fox-tabpane",class:{inactive:e.paneKey!=e.activeKey&&e.autoHeight}},[e._t("default")],2)},kx=[],Px=D(Cx,Ix,kx,!1,null,null,null,null);const Lx=Px.exports,Nx={props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],model:{prop:"modelValue",event:"update:modelValue"},setup(t,{emit:e,slots:n}){const i=S.ref(null);let r;const s=S.shallowRef([]),l={activeKey:S.computed(()=>t.modelValue),autoHeight:S.computed(()=>t.autoHeight),addTabPane:(y,_,$,b)=>{const C=[...s.value];C.push({proxy:y,title:_,paneKey:$,disabled:b}),s.value=C},updateTabPane:(y,_,$,b)=>{const C=[...s.value],P=C.findIndex(x=>x.proxy===y);if(P!==-1){const x=C[P];x.title=_??x.title,x.paneKey=$===void 0||$===""?x.paneKey:$,x.disabled=b??x.disabled,s.value=C}},removeTabPane:y=>{const _=[...s.value],$=_.findIndex(b=>b.proxy===y);$!==-1&&_.splice($,1),s.value=_}};S.provide("tabsState",l);const o=S.ref(t.modelValue||0),a=y=>{let _=s.value.findIndex($=>$.paneKey==y);_!==-1?o.value=_:o.value=0},u=(y=s.value)=>{a(t.modelValue)},d=y=>{r=y.fixed};S.watch(s,y=>{u(y)});const f=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;S.watch(()=>t.modelValue,y=>{if(a(y),r){let _=dr(i.value).top+f(),$=Math.ceil(_-t.top);window.scrollTo({top:$,behavior:"smooth"})}}),S.onMounted(u),S.onActivated(u);const g=S.computed(()=>({transform:t.direction=="horizontal"?`translate3d(-${o.value*100}%, 0, 0)`:`translate3d( 0,-${o.value*100}%, 0)`,transitionDuration:`${t.animatedTime}ms`})),c=S.computed(()=>({background:t.background})),p=S.computed(()=>({color:t.type=="smile"?t.color:"",background:t.type=="line"?t.color:""})),h=S.computed(()=>({marginLeft:dt(t.titleGutter),marginRight:dt(t.titleGutter)}));return{tabPaneList:s,contentStyle:g,tabsNavStyle:c,titleStyle:h,tabsActiveStyle:p,container:i,onStickyScroll:d,...{tabChange:(y,_)=>{e("click",y),!y.disabled&&(o.value=_,e("update:modelValue",y.paneKey),e("change",y))}}}}},Mx=S.defineComponent(Nx);var Rx=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{ref:"container",staticClass:"fox-tabs",class:[e.direction],attrs:{id:"container"}},[n("div",{staticClass:"fox-tabs__titles",class:{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size},style:e.tabsNavStyle},[e.$slots.titles?e._t("titles"):e._l(e.tabPaneList,function(i,r){return n("div",{key:i.paneKey,staticClass:"fox-tabs__titles-item",class:{active:i.paneKey==e.modelValue,disabled:i.disabled},style:e.titleStyle,on:{click:function(s){return e.tabChange(i,r)}}},[e.type=="line"?n("div",{staticClass:"fox-tabs__titles-item__line",style:e.tabsActiveStyle}):e._e(),e.type=="smile"?n("div",{staticClass:"fox-tabs__titles-item__smile",style:e.tabsActiveStyle},[n("fox-ext-icon",{attrs:{color:e.color,name:"joy-smile"}})],1):e._e(),n("div",{staticClass:"fox-tabs__titles-item__text",class:{ellipsis:e.ellipsis}},[e._v(e._s(i.title)+" ")])])})],2),n("div",{staticClass:"fox-tabs__content",style:e.contentStyle},[e._t("default")],2)])},Ax=[],Vx=D(Mx,Rx,Ax,!1,null,null,null,null);const Fx=Vx.exports,Ex=S.defineComponent({components:{TabPane:Lx,Tabs:Fx},props:{visible:Boolean,modelValue:[Array,String],options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:Object},emits:["update:modelValue","change","pathChange"],model:{prop:"modelValue",event:"update:modelValue"},setup(t,{emit:e}){const n=S.computed(()=>({lazy:t.lazy,lazyLoad:t.lazyLoad,valueKey:t.valueKey,textKey:t.textKey,childrenKey:t.childrenKey,convertConfig:t.convertConfig})),i=S.ref(0),r=S.ref(!1),s=S.ref(t.modelValue),l=S.ref(new Ti([],{})),o=S.ref([]),a=S.computed(()=>n.value.lazy&&Boolean(n.value.lazyLoad)),u=new Map;let d;const f=async()=>{u.clear(),o.value=[],i.value=0,r.value=!1,d=null;let{options:m}=t;n.value.convertConfig&&(m=Tx(m,n.value.convertConfig)),l.value=new Ti(m,{value:n.value.valueKey,text:n.value.textKey,children:n.value.childrenKey}),a.value&&!l.value.nodes.length&&await c({root:!0,loading:!0,text:"",value:""}),o.value=[{nodes:l.value.nodes,selectedNode:null}],g()},g=async()=>{const m=s.value;if(m===void 0||!l.value.nodes.length)return;if(m.length===0){i.value=0,o.value=[{nodes:l.value.nodes,selectedNode:null}];return}let y=m;if(a.value&&Array.isArray(m)&&m.length){y=[];let _=l.value.nodes.find($=>$.value===m[0]);if(_){y=[_.value],r.value=!0;const $=await m.slice(1).reduce(async(b,C)=>{const P=await b;await c(P);const x=P?.children?.find(v=>v.value===C);return x&&y.push(C),Promise.resolve(x)},Promise.resolve(_));await c($),r.value=!1}}y.length&&m===t.modelValue&&l.value.getPathNodesByValue(y).map(($,b)=>{i.value=b,h.handleNode($,!0)})},c=async m=>{if(!m)return;if(!n.value.lazyLoad){m.leaf=!0;return}if(l.value.isLeaf(m,a.value)||l.value.hasChildren(m,a.value))return;m.loading=!0;const y=m.root?null:m;let _=u.get(m);_||(_=new Promise(b=>{n.value.lazyLoad?.(m,b)}),u.set(m,_));const $=await _;Array.isArray($)&&$.length>0?l.value.updateChildren($,y):m.leaf=!0,m.loading=!1,u.delete(m)},p=m=>{const y=m.map(_=>_.value);s.value=y,e("change",y,m),e("update:modelValue",y,m)},h={async handleNode(m,y){const{disabled:_,loading:$}=m;if(!(!y&&_||!o.value[i.value])){if(l.value.isLeaf(m,a.value)){if(m.leaf=!0,o.value[i.value].selectedNode=m,o.value=o.value.slice(0,m.level+1),!y){const b=o.value.map(C=>C.selectedNode);p(b),e("pathChange",b)}return}if(l.value.hasChildren(m,a.value)){const b=m.level+1;if(o.value[i.value].selectedNode=m,o.value=o.value.slice(0,b),o.value.push({nodes:m.children||[],selectedNode:null}),setTimeout(()=>{i.value=b},0),!y){const C=o.value.map(P=>P.selectedNode);e("pathChange",C)}return}d=m,!$&&(await c(m),d===m&&(o.value[i.value].selectedNode=m,h.handleNode(m,y)))}},handleTabClick(m){d=null,i.value=Number(m.paneKey)},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:"\u9009\u62E9"},isSelected(m,y){return m.selectedNode&&m.selectedNode.value===y.value}};return S.watch([n,()=>t.options],()=>{f()},{deep:!0,immediate:!0}),S.watch(()=>t.modelValue,m=>{m!==s.value&&(s.value=m,g())}),S.watch(()=>t.visible,m=>{m&&Array.isArray(s.value)&&s.value.length>0&&g()}),{panes:o,initLoading:r,tabsCursor:i,...h}}});var Ox=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("Tabs",{staticClass:"fox-cascader",attrs:{"title-scroll":""},on:{click:e.handleTabClick},model:{value:e.tabsCursor,callback:function(i){e.tabsCursor=i},expression:"tabsCursor"}},[!e.initLoading&&e.panes.length?e._l(e.panes,function(i,r){return n("TabPane",{key:r,attrs:{title:e.formatTabTitle(i),"pane-key":r}},[n("div",{staticClass:"fox-cascader-pane",attrs:{role:"menu"}},[e._l(i.nodes,function(s){return[n("div",{key:s.value,staticClass:"fox-cascader-item",class:{active:e.isSelected(i,s),disabled:s.disabled},attrs:{"aria-checked":e.isSelected(i,s)||void 0,"aria-disabled":s.disabled||void 0,role:"menuitemradio"},on:{click:function(l){return e.handleNode(s,!1)}}},[n("div",{staticClass:"fox-cascader-item__title"},[e._v(e._s(s.text))]),s.loading?n("fox-ext-icon",{staticClass:"fox-cascader-item__icon-loading",attrs:{name:"loading"}}):n("fox-ext-icon",{staticClass:"fox-cascader-item__icon-check",attrs:{name:"checklist"}})],1)]})],2)])}):[n("TabPane",{attrs:{title:"Loading...","pane-key":"loading"}},[n("div",{staticClass:"fox-cascader-pane"})])]],2)},jx=[],qx=D(Ex,Ox,jx,!1,null,null,null,null);const Hx=qx.exports,{create:Wx}=be("cascader-picker"),Bx=Wx({components:{Popup:Gt,CascaderPane:Hx},props:{...Dx},emits:["update:modelValue","change","pathChange","update:visible"],model:{prop:"modelValue",event:"update:modelValue"},setup(t,{emit:e}){const n=S.ref(t.modelValue),i=S.computed({get(){return t.visible},set(l){e("update:visible",l)}}),r=(l,o)=>{n.value=l,i.value=!1,e("change",l,o),e("update:modelValue",l)},s=l=>{e("pathChange",l)};return S.watch(()=>t.modelValue,l=>{l!==n.value&&(n.value=l)}),{onChange:r,onPathChange:s,innerValue:n,innerVisible:i}}});var Kx=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("Popup",{attrs:{visible:e.innerVisible,position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:!e.closeable,"close-icon":e.closeIcon,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},on:{"update:visible":function(i){e.innerVisible=i}}},[e.title?[n("div",{staticClass:"fox-cascader__bar",domProps:{innerHTML:e._s(e.title)}})]:e._e(),n("CascaderPane",{attrs:{modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},on:{change:e.onChange,"path-change":e.onPathChange}})],2)},zx=[],Yx=D(Bx,Kx,zx,!1,null,null,null,null);const Cr=Yx.exports;function $t(t,e){const n=t.textKey??"text";return e[n]??""}function bt(t,e){const n=t.valueKey??"value";return e[n]}function Ir(t,e){const n=t.childrenKey??"children";return e[n]}function Vt(t,e=[]){const n={texts:[],values:[]};for(let i=0;i<e.length;i++){const r=e[i],s=$t(t,r),l=bt(t,r);n.texts.push(s),n.values.push(l??"")}return n}function kr(t,e,n,i,r=[]){const s=n[i];for(let l=0;l<e.length;l++)if($t(t,e[l])===s){const a=bt(t,e[l])??"",u={[t.textKey]:s,[t.valueKey]:a};r.push(u);const d=Ir(t,e[l]);Array.isArray(d)&&kr(t,d,n,i+1,r);return}}function Pr(t,e,n,i,r=[]){const s=n[i];for(let l=0;l<e.length;l++)if(bt(t,e[l])===s){const a=$t(t,e[l])??"",u={[t.textKey]:a,[t.valueKey]:s};r.push(u);const d=Ir(t,e[l]);Array.isArray(d)&&Pr(t,d,n,i+1,r);return}}function pn(t,e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){const r=$t(t,e[i]),s=$t(t,n[i]);if(r!==s)return!1;const l=bt(t,e[i]),o=bt(t,n[i]);if(l!==o)return!1}return!0}class Ux{proxy;constructor(e){this.proxy=e}async load(e,n){const i="cascader";if(Array.isArray(e))return e;if(typeof e=="function")return await e(n);const r=_r(this.proxy,i);return r===null?(console.error(`${i} component not found api function`),[]):(Ut(n)&&S.isReactive(n)&&(n=S.toRaw(n)),await r(e,n))}}function Gx(){const t=S.getCurrentInstance();return new Ux(t.proxy)}const Xx={name:"fox-cascader-item",mixins:[ce],props:{value:[Array,String],title:String,placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default(){return[]}},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:Object},model:{prop:"value",event:"change"},data(){return{model:null,sourceOptions:[],innerText:[],innerValue:this.value,visible:!1,selectedPathOptions:[]}},async created(){this.model=Gx(),this.sourceOptions=await this.model.load(this.source,this.params),await this.updateSelectedPathOptions()},computed:{formatText(){return Array.isArray(this.innerText)?this.innerText.join(" "):this.innerText}},watch:{source:{handler:async t=>{globalThis.sourceOptions=await globalThis.model.load(globalThis.source,globalThis.params)},deep:!0},value(t,e){t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))},selectedPathOptions(){this.updateSelectedPathOptions()}},methods:{async updateSelectedPathOptions(){if(this.lazy===!0){this.selectedPathOptions.length==0&&(this.innerText=this.innerValue??[],this.innerValue=this.innerValue??[]);return}if(this.valueType==="item"){let t=this.innerValue??[];if(!pn(this.$props,t,this.selectedPathOptions)){this.selectedPathOptions=t;let e=Vt(this.$props,t);this.innerText=e.texts,this.innerValue=e.values}}else if(this.valueType==="text"){let t=this.innerValue??[],e=[];if(kr(this.$props,this.sourceOptions,t,0,e),!pn(this.$props,e,this.selectedPathOptions)){this.selectedPathOptions=e;let n=Vt(props,e);this.innerText=n.texts,this.innerValue=n.values}}else{let t=this.innerValue??[],e=[];if(Pr(this.$props,this.sourceOptions,t,0,e),!pn(this.$props,e,this.selectedPathOptions)){this.selectedPathOptions=e;let n=Vt(this.$props,e);this.innerText=n.texts,this.innerValue=n.values}}},updateVisible(t){this.visible=t},onChange(t,e){let n=e.map(r=>{if(r==null)return r;let s={...r};return Reflect.deleteProperty(s,"text"),s[this.textKey]=r.text??"",Reflect.deleteProperty(s,"value"),s[this.valueKey]=r.value??"",s});this.selectedPathOptions=n;let i=Vt(this.$props,n);this.innerText=i.texts,this.innerValue=i.values,this.valueType==="text"?this.$emit("change",this.innerText):this.valueType==="item"?this.$emit("change",n):this.$emit("change",this.innerValue)},onPathChange(t){let e=t.map(n=>{if(n==null)return n;let i={...n};return Reflect.deleteProperty(i,"text"),i[this.textKey]=n.text??"",Reflect.deleteProperty(i,"value"),i[this.valueKey]=n.value??"",i});this.$emit("pathChange",e)},onInput(t){},onFocus(t){!this.mReadonly&&!this.mDisabled&&(this.visible=!0),this.$emit("focus",t)},onBlur(t){this.visible||this.$emit("blur",t)},onClick(){this.mReadonly||this.mDisabled||(this.visible=!this.visible)},showPicker(){this.mReadonly||this.mDisabled||(this.visible=!0)},hidePicker(){this.visible=!1},focus(){this.$refs.input&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()},renderPicker(t){let e={};e.visible=this.visible,e.modelValue=this.innerValue,e.options=this.sourceOptions,e.title=this.title,e.lazy=this.lazy,e.lazyLoad=this.lazyLoad,e.valueKey=this.valueKey,e.textKey=this.textKey,e.childrenKey=this.childrenKey,e.convertConfig=this.convertConfig;const n={"update:visible":this.updateVisible,change:this.onChange,pathChange:this.onPathChange};return t(Cr,{props:e,on:n})}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let $=this.$slots.default[0];if(this.multiLang){let{text:b}=$;b&&(b=b.trim()).length>0&&(b=this.$langTranslator.translate(this,b),e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b]))}if(!n){let{text:b}=$;b&&(b=b.trim()).length>0?(e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b])):$.tag&&(n=t("div",e,this.$slots.default))}}else{let $=this.label;$&&($=$.trim()).length>0&&(this.multiLang&&($=this.$langTranslator.translate(this,$)),e.domProps={innerHTML:B($,this.mLabelMaxCharCount)},n=t("div",e))}let i=[],r={};ee(this,r,this.$attrs,i),r.title=this.innerValue,r.clearable=this.clearable;let s={};s.value=this.formatText,s.disabled=this.mDisabled,s.readonly=this.editable,s.size=this.mSize;let l={};Q(this,l,this.$listeners,["blur","focus","change","input"]),l.blur=this.onBlur,l.focus=this.onFocus,l.clear=this.onClear,l.input=this.onInput;const o={click:this.onClick},a={attrs:r,props:s,on:l,nativeOn:o,ref:"input"},u={slot:"suffix",class:{"el-icon-arrow-down":!0,"el-input__icon":!0,"fox-select-item__suffix":!0,active:this.visible}},d=t("li",u),g=[t("el-input",a,[d])];let c=this.installTip(t);c.type!=="node"&&g.push(c.node);let p={class:{"el-form-item__content":!0},style:this.mInputStyle},h=t("div",p,g),m={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};c.type==="error"?m.class["is-error"]=!0:c.type==="warn"?m.class["is-warn"]=!0:c.type==="info"&&(m.class["is-info"]=!0),se(this,m);let y="text";this.componentData(this,m,y);const _=this.renderPicker(t);return n?t("div",m,[n,h,_]):t("div",m,[h,_])}},Zx=null,Jx=null;var Qx=D(Xx,Zx,Jx,!1,null,null,null,null);const ev=Qx.exports,tv=Symbol.for("handleRenderData");function nv(t,e,n){let i=me.getAuthScope(t);!i||!me.hasAuths(i)||me.hasAuth(i,n)||me[tv](e,!1)}const iv="fox-button",rv="el-button",sv={name:iv,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e);i.directives||(i.directives=[]),i.directives.push({name:"cursor-navigate",value:"button"});let r=i&&i.attrs&&i.attrs.auth;r&&(i.directives.push({name:"auth",value:r}),nv(e.parent,i,r));let s=or(e);return n(rv,i,s)}},lv=null,av=null;var ov=D(sv,lv,av,!1,null,null,null,null);const uv=ov.exports;function cv(t){return t.$children&&t.$children[0]&&t.$children[0].$children&&t.$children[0].$children[0]}const fv="el-dialog",dv={name:"fox-dialog-item",inject:{multiLang:{default:!1}},props:{visible:{type:Boolean,required:!1,default:!0}},data:function(){return{dialogVisible:this.visible,hijackMethodName:void 0}},methods:{onBeforeClose(t){let e=cv(this);if(e&&(e.$emit("closeDialog"),this.hijackMethodName)){let n=e[this.hijackMethodName];typeof n=="function"&&n()}},onClose(){this.dialogVisible=!1},onClosed(){this.$router&&this.$router.remove()}},render(t){let e={};ee(this,e,this.$attrs);let n={};ue(this,n,this.$props),n.visible=this.dialogVisible,(e.hijack||n.hijack)&&(this.hijackMethodName=e["hijack-method-name"]||n["hijack-method-name"],n.beforeClose=this.onBeforeClose);let r={};Q(this,r,this.$listeners,[]),r.close=this.onClose,r.closed=this.onClosed;let s={attrs:e,props:n,on:r,directives:[{name:"dialogDrag"}]},l;return this.$scopedSlots.default?l=[this.$scopedSlots.default()]:l=[],t(fv,s,l)}},hv=null,pv=null;var mv=D(dv,hv,pv,!1,null,null,null,null);const gv=mv.exports;const yv={name:"fox-autocomplete-item",mixins:[ce],props:{value:{required:!1},textName:{type:[String],required:!1,default(){return"text"}},valueName:{type:[String],required:!1,default(){return"value"}},itemType:{type:[Boolean,String],required:!1,default:"text"},valueOptionClass:{type:String,required:!1,default:"fox-auto-complete-options-value"},textOptionClass:{type:String,required:!1,default:"fox-auto-complete-options-text"},fetchSuggestions:{type:Function,required:!1}},model:{prop:"value",event:"change"},data(){return{innerValue:this.value,numberType:!1}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t)}},methods:{onInput(t){this.numberType&&t.length>0&&!mt(t)||(this.innerValue=t,this.$emit("change",t))},adjustSuggestions(){if(!he)return;let t=Ue.querySelectorAll(".el-autocomplete-suggestion.el-popper");t&&t.forEach(e=>{e.style.display!="none"&&(e.style.width="auto")})},onFetchSuggestions(t,e){if(!this.fetchSuggestions){e([]);return}let{context:n}=this.$vnode,i=r=>{e(r),this.itemType=="item"&&setTimeout(()=>{this.adjustSuggestions()},20)};Reflect.apply(this.fetchSuggestions,n,[t,i])},focus(){this.$refs.input&&this.$refs.input.focus&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&this.$refs.input.blur&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let h=this.$slots.default[0];if(this.multiLang){let{text:m}=h;m&&(m=m.trim()).length>0&&(m=this.$langTranslator.translate(this,m),e.attrs.title=m,m=B(m,this.mLabelMaxCharCount),n=t("div",e,[m]))}if(!n){let{text:m}=h;m&&(m=m.trim()).length>0?(e.attrs.title=m,m=B(m,this.mLabelMaxCharCount),n=t("div",e,[m])):h.tag&&(n=t("div",e,this.$slots.default))}}else{let h=this.label;h&&(h=h.trim()).length>0&&(this.multiLang&&(h=this.$langTranslator.translate(this,h)),e.domProps={innerHTML:B(h,this.mLabelMaxCharCount)},n=t("div",e))}let i=[],{type:r}=this.$attrs;r=="number"&&(this.numberType=!0,i.push("type"));let s={};ee(this,s,this.$attrs,i),s.title=this.innerValue,Reflect.has(s,"clearable")||(s.clearable=!0),Reflect.has(s,"popper-append-to-body")||(s["popper-append-to-body"]=!1);let l={};ue(this,l,this.$props),l.value=this.innerValue,l.disabled=this.mDisabled,l.readonly=this.mReadonly,l.size=this.mSize,l.fetchSuggestions&&(l.fetchSuggestions=this.onFetchSuggestions);let o={};Q(this,o,this.$listeners,["blur","focus","change","input"]),o.blur=this.onBlur,o.focus=this.onFocus,o.input=this.onInput,o.clear=this.onClear;let d=[t("el-autocomplete",{attrs:s,props:l,on:o,scopedSlots:{default:h=>{if(this.itemType==="item"){let m={class:{}};m.class[this.valueOptionClass]=!0;let y=t("span",m,[h.item[this.valueName]]),_={class:{}};_.class[this.textOptionClass]=!0;let $=t("span",_,[h.item[this.textName]]);return t("div",{},[y,$])}else return this.itemType==="value"?t("div",{},[h.item[this.valueName]]):t("div",{},[h.item[this.textName]])}},ref:"input"})],f=this.installTip(t);f.type!=="node"&&d.push(f.node);let g={class:{"el-form-item__content":!0},style:this.mInputStyle},c=t("div",g,d),p={class:{"fox-auto-complete-item":!0,"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};return f.type==="error"?p.class["is-error"]=!0:f.type==="warn"?p.class["is-warn"]=!0:f.type==="info"&&(p.class["is-info"]=!0),se(this,p),this.componentData(this,p,"autocomplete"),n?t("div",p,[n,c]):t("div",p,[c])}},_v=null,$v=null;var bv=D(yv,_v,$v,!1,null,null,null,null);const xv=bv.exports,mn=rt(yr,{visible:!0,modelValue:""}),vv={name:"fox-select-item",mixins:[ce],props:{...mn,value:{type:[String,Number,Boolean,Object,Array],required:!0},separator:{type:[String],default:","},editable:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0}},model:{prop:"value",event:"change"},data(){return{innerTexts:[],innerValue:this.value,visible:!1}},computed:{formatText(){return this.innerTexts.length==0?"":this.innerTexts.length==1?this.innerTexts[0]:this.innerTexts.join(",")}},watch:{value(t,e){t!==this.innerValue&&(this.innerValue=t,this.$emit("setValue",this.innerValue))}},methods:{onChange(t,e){this.innerValue=t,this.$emit("change",t)},onInput(t){},onFocus(t){this.visible=!0,this.$emit("focus",t)},onBlur(t){this.$emit("blur",t)},onClick(){this.visible=!this.visible},showPicker(){this.visible=!0},hidePicker(){this.visible=!1},focus(){this.$refs.input&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()},renderPicker(t){const e=jn(this.$props,mn);e.modelValue=this.innerValue,e.readonly=this.mReadonly||this.mDisabled,e.visible=this.visible;const n={"update:modelValue":this.onChange,"update:text":r=>{this.innerTexts=r},"update:visible":r=>{this.visible=r}};return t(Xt,{props:e,on:n})}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let $=this.$slots.default[0];if(this.multiLang){let{text:b}=$;b&&(b=b.trim()).length>0&&(b=this.$langTranslator.translate(this,b),e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b]))}if(!n){let{text:b}=$;b&&(b=b.trim()).length>0?(e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b])):$.tag&&(n=t("div",e,this.$slots.default))}}else{let $=this.label;$&&($=$.trim()).length>0&&(this.multiLang&&($=this.$langTranslator.translate(this,$)),e.domProps={innerHTML:B($,this.mLabelMaxCharCount)},n=t("div",e))}let i=[],r={};ee(this,r,this.$attrs,i),r.title=this.innerValue,r.clearable=this.clearable;let s=rt(this.$props,mn,{separator:"",editable:!1});s.value=this.formatText,s.disabled=this.mDisabled,s.readonly=this.editable,s.size=this.mSize;let l={};Q(this,l,this.$listeners,["blur","focus","change","input"]),l.blur=this.onBlur,l.focus=this.onFocus,l.clear=this.onClear,l.input=this.onInput;const o={click:this.onClick},a={attrs:r,props:s,on:l,nativeOn:o,ref:"input"},u={slot:"suffix",class:{"el-icon-arrow-down":!0,"el-input__icon":!0,"fox-select-item__suffix":!0,active:this.visible}},d=t("li",u),g=[t("el-input",a,[d])];let c=this.installTip(t);c.type!=="node"&&g.push(c.node);let p={class:{"el-form-item__content":!0},style:this.mInputStyle},h=t("div",p,g),m={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};c.type==="error"?m.class["is-error"]=!0:c.type==="warn"?m.class["is-warn"]=!0:c.type==="info"&&(m.class["is-info"]=!0),se(this,m);let y="text";this.componentData(this,m,y);const _=this.renderPicker(t);return n?t("div",m,[n,h,_]):t("div",m,[h,_])}},Sv=null,Dv=null;var wv=D(vv,Sv,Dv,!1,null,null,null,null);const Tv=wv.exports;const Cv={name:"fox-table-search-popover",inject:{multiLang:{default:!1}},props:{placeholder:{type:String,required:!1,default:"\u8F93\u5165\u5173\u952E\u5B57"},searchText:{type:String,required:!1,default:"\u641C\u7D22"},restText:{type:String,required:!1,default:"\u91CD\u7F6E"}},data(){return{visible:!1,query:"",hideListener:()=>{this.visible=!1}}},watch:{},computed:{mPlaceholder(){let t=this.placeholder;return this.multiLang&&(t=this.$langTranslator.translate(this,t)),t},mSearchText(){let t=this.searchText;return this.multiLang&&(t=this.$langTranslator.translate(this,t)),t},mResetText(){let t=this.restText;return this.multiLang&&(t=this.$langTranslator.translate(this,t)),t}},methods:{onSearch(t){this.$emit("search",this.query),this.visible=!1},onReset(){this.query=""}},mounted(){document.body.addEventListener("click",this.hideListener)},beforeDestroy(){document.body.removeEventListener("click",this.hideListener)}};var Iv=function(){var e=this,n=e._self._c;return n("el-popover",{attrs:{"popper-class":"fox-table-search-popover",placement:"bottom-end",trigger:"manual"},model:{value:e.visible,callback:function(i){e.visible=i},expression:"visible"}},[n("div",{staticClass:"fox-table-search-box"},[e._t("default",function(){return[n("el-input",{staticClass:"fox-table-search-box-input",attrs:{placeholder:e.mPlaceholder},model:{value:e.query,callback:function(i){e.query=i},expression:"query"}}),n("div",{staticClass:"fox-table-search-box-btn-row"},[n("el-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v(e._s(e.mSearchText))]),n("el-button",{on:{click:e.onReset}},[e._v(e._s(e.mResetText))])],1)]})],2),n("span",{staticClass:"el-icon-search fox-search-icon-right",attrs:{slot:"reference"},on:{click:function(i){i.stopPropagation(),e.visible=!e.visible}},slot:"reference"})])},kv=[],Pv=D(Cv,Iv,kv,!1,null,null,null,null);const Lv=Pv.exports;const Nv="fox-table-search-column",Mv="el-table-column",Rv={name:Nv,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=A(e),r=or(e),s=i.attrs&&i.attrs.label||i.props&&i.props.label||"",l=n("span",{class:{"fox-table-column-text-left":!0}},[s]),o=i.attrs&&i.attrs.search||i.props&&i.props.search,a={attrs:{placeholder:i.attrs.placeholder,"search-text":i.attrs["search-text"],"reset-text":i.attrs["reset-text"]}};typeof o=="function"&&(a.on={search:d=>{Reflect.apply(o,e,[d])}}),i.scopedSlots&&i.scopedSlots.search&&(a.scopedSlots={default:i.scopedSlots.search});let u=n("fox-table-search-popover",a);if(!i.scopedSlots)i.scopedSlots={};else{let d={};for(let f in i.scopedSlots)f!=="search"&&(d[f]=i.scopedSlots[f]);i.scopedSlots=d}return i.scopedSlots.header=()=>[l,u],n(Mv,i,r)}},Av=null,Vv=null;var Fv=D(Rv,Av,Vv,!1,null,null,null,null);const Ev=Fv.exports;const Ov={name:"fox-corner-label",props:{size:{type:[Number,String],required:!1,default(){return 56}},placement:{type:[String],required:!1,default(){return"top-end"}},fontSize:{type:[String],required:!1,default(){return"12px"}},color:{type:[String],required:!1,default(){return"#FFFFFF"}},backgroundColor:{type:[String],required:!1,default(){return"#d3656b"}}},computed:{mClass(){let t={"fox-mark-wrap":!0};return this.placement=="top-start"?t["fox-mark-wrap-top-start"]=!0:this.placement=="top-end"?t["fox-mark-wrap-top-end"]=!0:this.placement=="bottom-start"?t["fox-mark-wrap-bottom-start"]=!0:this.placement=="bottom-end"?t["fox-mark-wrap-bottom-end"]=!0:t["fox-mark-wrap-top-end"]=!0,t},mStyle(){let t=le(this.size),e={width:`${t}px`,height:`${t}px`,color:this.color,"background-color":this.backgroundColor};return this.placement=="top-start"?(e.top=`${-t/2}px`,e.left=`${-t/2}px`):this.placement=="top-end"?(e.top=`${-t/2}px`,e.right=`${-t/2}px`):this.placement=="bottom-start"?(e.bottom=`${-t/2}px`,e.left=`${-t/2}px`):this.placement=="bottom-end"?(e.bottom=`${-t/2}px`,e.right=`${-t/2}px`):(e.top=`${-t/2}px`,e.right=`${-t/2}px`),e},mInnerStyle(){let t=le(this.size);return{"font-size":this.fontSize,width:`${t}px`}}}};var jv=function(){var e=this,n=e._self._c;return n("div",{class:e.mClass,style:e.mStyle},[n("span",{style:e.mInnerStyle},[e._t("default")],2)])},qv=[],Hv=D(Ov,jv,qv,!1,null,"2c82508c",null,null);const Wv=Hv.exports;const Ci=/^("|').*("|')$/,gn=/^\d+$/,yn=/^(true)|(false)$/;function at(t,e,n,i,r){if(i){let o=`${i}.`;if(e.indexOf(o)==0){e=e.substring(o.length);let u=e.split(".");return ht(n,u,0)}}let s=e.split("."),l=ht(t,s,0);return typeof l=="function"&&n&&r!==void 0?(...a)=>Reflect.apply(l,t,[n,r,...a]):l}function Ii(t,e,n,i,r){if(r){let l=`${r}.`;if(e.indexOf(l)==0){e=e.substring(l.length);let a=e.split(".");pt(i,a,0,n);return}}let s=e.split(".");pt(t,s,0,n)}function ft(t,e,n,i,r,s){if(Reflect.has(n,"name")){let l={scopedSlots:{$stable:!0}};if(n.directives&&Array.isArray(n.directives)){l.directives=[];for(let a of n.directives){let{name:u,value:d,param:f}=a;if(!u)continue;if(d==null){l.directives.push({name:u,value:d});continue}let g=d;if(Ci.test(d)?d=d.replace(/"|'/g,""):gn.test(d)?d=d:yn.test(d)?d=Z(d):(d=at(e,d,i,r,s),typeof d=="function"&&(d=d(f))),u==="if"){if(!d)return;continue}l.directives.push({name:u,value:d,expression:g})}}let o=[];if(n.children&&n.children.length>0)for(let a of n.children)if(a.loop){let u=at(e,a.items,i,r,s);if(!Array.isArray(u)){console.error("\u5FAA\u73AF\u8282\u70B9\u6570\u636E\u683C\u5F0F\u9519\u8BEF, items\u4E0D\u4E3A\u6570\u7EC4");continue}if(!Array.isArray(a.children)||a.children.length==0){console.error("\u5FAA\u73AF\u8282\u70B9\u6570\u636E\u683C\u5F0F\u9519\u8BEF, children\u4E0D\u4E3A\u6570\u7EC4\u6216\u957F\u5EA6\u4E3A0");continue}for(let d=0;d<u.length;d++)for(let f of a.children){let g=ft(t,e,f,u[d],f.slotScope,d);g&&o.push(g)}}else if(a.slotScope){let u=a.slot||"default";l.scopedSlots[u]=d=>ft(t,e,a,d,a.slotScope)||t(),l.scopedSlots[u].proxy=!0}else if(!a.slot||a.slot=="default"){let u=ft(t,e,a,i,r,s);u&&o.push(u)}else l.scopedSlots[a.slot]=()=>ft(t,e,a)||t(),l.scopedSlots[a.slot].proxy=!0;if(l.attrs={},l.props={},l.on={},n.attrs&&typeof n.attrs=="object")for(let a in n.attrs){let u=n.attrs[a];gn.test(u)?l.attrs[a]=u:yn.test(u)?l.attrs[a]=Z(u):l.attrs[a]=u}if(n.props&&typeof n.props=="object")for(let a in n.props){if(a.indexOf("method_param_")==0)continue;let u=n.props[a],d=!1,f=!1,g=!1,c=a.lastIndexOf(".");if(c!=-1){let p=a.substring(c);d=p==".sync",f=p==".exec",a=a.substring(0,c)}if(u==null){l.attrs[a]=u;continue}if(Ci.test(u)||gn.test(u)?l.attrs[a]=u:yn.test(u)?l.attrs[a]=Z(u):(l.attrs[a]=at(e,u,i,r,s),g=!0),g){if(d)l.on[`update:${a}`]=p=>{Ii(e,u,p,i,r)};else if(f){let p=n.props[`method_param_${a}`];l.attrs[a]=l.attrs[a](p)}}}if(n.on&&typeof n.on=="object")for(let a in n.on){let u=n.on[a];if(!u||u.indexOf("method_param_")==0)continue;let d=n.on[`method_param_${a}`];i&&s!==void 0?l.on[a]=(...f)=>{d?Reflect.apply(e[u],e,[i,s,d,...f]):Reflect.apply(e[u],e,[i,s,...f])}:l.on[a]=(...f)=>{d?Reflect.apply(e[u],e,[d,...f]):Reflect.apply(e[u],e,f)}}if(n.ref&&(l.ref=n.ref,l.refInFor=s!==void 0),n.style&&typeof n.style=="object"){l.style={};for(let a in n.style)l.style[a]=n.style[a]}if(n.model){let a=at(e.$data,n.model,i,r);l.model={expression:n.model,value:a,callback:u=>{Ii(e.$data,n.model,u,i,r)}}}if(n.key){let a=n.key;s!==void 0&&(a=`${a}_${s}`),l.key=a}return t(n.name,l,o)}else{if(Reflect.has(n,"text"))return n.text;if(Reflect.has(n,"variable")){let l=at(e,n.variable,i,r,s);return typeof l=="function"?l(n.param):l}}return t()}const Bv={name:"fox-dynamic",functional:!0,props:{source:{type:Object,required:!0,default(){return{}}}},render(t,e){let{parent:n}=e;const i=n.$createElement;return ft(i,n,e.props.source)}},Kv=null,zv=null;var Yv=D(Bv,Kv,zv,!1,null,"83844b55",null,null);const Uv=Yv.exports;const Gv={name:"fox-float-navigator",props:{top:{type:[String],required:!1},bottom:{type:[String],required:!1},left:{type:[String],required:!1},right:{type:[String],required:!1},width:{type:[String],required:!1},height:{type:[String],required:!1},customClass:{type:[String],required:!1},visible:{type:Boolean,required:!1,default:!1}},data(){return{}},watch:{visible(t){t?this.show():this.hide()}},computed:{mStyle(){return{left:this.left,right:this.right,top:this.top,bottom:this.bottom,width:this.width,height:this.height}},mClass(){let t={"fox-float-navigator":!0,"fox-float-navigator-show":!0};return this.customClass&&(t[this.customClass]=!0),t}},methods:{show(){let{navigator:t}=this.$refs;t&&document.body.appendChild(t)},hide(){let{wrap:t,navigator:e}=this.$refs;t&&(e.classList.add("fox-float-navigator-hide"),setTimeout(()=>{t.appendChild(e),e.classList.remove("fox-float-navigator-hide")},800))}},mounted(){this.visible&&this.show()},beforeDestroy(){this.visible&&this.hide()}};var Xv=function(){var e=this,n=e._self._c;return n("div",{ref:"wrap",staticClass:"fox-float-navigator-wrap"},[n("div",{ref:"navigator",class:e.mClass,style:e.mStyle},[e._t("default")],2)])},Zv=[],Jv=D(Gv,Xv,Zv,!1,null,null,null,null);const Qv=Jv.exports,ot=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,get(){return n},set(i){console.warn(`tried to set frozen property ${e} with ${i}`)}})},e0={abstract:!0,name:"fox-fragment",inject:{pageScope:{default:!1},multiLang:{default:!1}},props:{name:{type:String,default:()=>Math.floor(Date.now()*Math.random()).toString(16)},html:{type:String,default:null}},mounted(){const t=this.$el,e=t.parentNode;t.__isFragment=!0,t.__isMounted=!1;const n=document.createComment(`fragment#${this.name}#head`),i=document.createComment(`fragment#${this.name}#tail`);t.__head=n,t.__tail=i;let r=document.createDocumentFragment();if(r.appendChild(n),Array.from(t.childNodes).forEach(l=>{let o=!l.hasOwnProperty("__isFragmentChild__");r.appendChild(l),o&&(ot(l,"parentNode",t),ot(l,"__isFragmentChild__",!0))}),r.appendChild(i),this.html){let l=document.createElement("template");l.innerHTML=this.html,Array.from(l.content.childNodes).forEach(o=>{r.appendChild(o)})}let s=t.nextSibling;e.insertBefore(r,t,!0),e.removeChild(t),ot(t,"parentNode",e),ot(t,"nextSibling",s),s&&ot(s,"previousSibling",t),t.__isMounted=!0},render(t){const e=this.$slots.default;return e&&e.length&&e.forEach(n=>n.data={...n.data,attrs:{fragment:this.name,...(n.data||{}).attrs}}),t("div",{attrs:{fragment:this.name}},e)}},t0=null,n0=null;var i0=D(e0,t0,n0,!1,null,null,null,null);const r0=i0.exports,{create:s0}=be("toast"),l0=s0({components:{[_t.name]:_t},data(){return{visible:!1,id:"",msg:"",duration:2e3,center:!0,type:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:"",textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",title:"",closeOnClickOverlay:!1}},emits:["close"],setup(t,{emit:e,expose:n}){const i=S.getCurrentInstance();let r;const s=S.reactive({mounted:!1}),l=()=>{r&&(clearTimeout(r),r=null)},o=()=>{s.mounted=!1};n({hide:o,show:()=>{s.mounted=!0,l(),i.proxy.duration&&(r=setTimeout(()=>{o()},i.proxy.duration))}});const u=()=>{i.proxy.closeOnClickOverlay&&(o(),e("close"))},d=S.computed(()=>i.proxy.type!=="text"?!0:!!i.proxy.icon),f=S.computed(()=>["fox-toast",{"fox-toast-center":i.proxy.center},{"fox-toast-has-icon":d.value},{"fox-toast-cover":i.proxy.cover},{"fox-toast-loading":i.proxy.type==="loading"},i.proxy.customClass,"fox-toast-"+i.proxy.size]),g=S.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!i.proxy.loadingRotate}]);return{state:s,hide:o,clickCover:u,hasIcon:d,toastBodyClass:f,toastIconWrapperClass:g,onAfterLeave:()=>{l(),i.proxy.unmount(i.proxy.id),i.proxy.onClose&&i.proxy.onClose()}}}});var a0=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("Transition",{attrs:{name:"toast-fade"},on:{"after-leave":e.onAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.state.mounted,expression:"state.mounted"}],class:e.toastBodyClass,style:{bottom:e.center?"auto":e.bottom,"background-color":e.coverColor},on:{click:e.clickCover}},[n("div",{staticClass:"fox-toast-inner",style:{"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor}},[e.hasIcon?n("div",{class:e.toastIconWrapperClass},[n("fox-ext-icon",{attrs:{size:e.iconSize,color:"#ffffff",name:e.icon}})],1):e._e(),e.title?n("div",{staticClass:"fox-toast-title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),n("div",{staticClass:"fox-toast-text",domProps:{innerHTML:e._s(e.msg)}})])])])},o0=[],u0=D(l0,a0,o0,!1,null,null,null,null);const Lr=u0.exports,c0=Er.default.extend(Lr),f0={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},je=new Map,Nr=t=>{if(t&&je.has(t)){const e=je.get(t);document.body.removeChild(e.instance.$el),e.instance.$destroy()}else je.forEach(e=>{document.body.removeChild(e.instance.$el),e.instance.$destroy()})},d0=t=>{const e=t.id;if(e&&je.has(e)){const n=je.get(e),r={...n.options,...t};for(let s of r)n.instance[s]=r[s]}},ut=t=>{let e;if(t.id){if(e=t.id,je.has(e))return d0(t)}else e=`${new Date().getTime()}`;t={...f0,...t},t.id=e,t.unmount=Nr;const n=new c0({data:t});return je.set(e,{id:e,options:t,instance:n}),n.$mount(),document.body.appendChild(n.$el),n.show(),n},Ft=t=>{if(!t){console.warn("[FoxUI Toast]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},Mr={text(t,e={}){return Ft(t),ut({...e,type:"text",msg:t})},success(t,e={}){return Ft(t),ut({icon:"success",...e,msg:t,type:"success"})},fail(t,e={}){return Ft(t),ut({icon:"failure",...e,msg:t,type:"fail"})},warn(t,e={}){return Ft(t),ut({icon:"tips",...e,msg:t,type:"warn"})},loading(t,e={}){return ut({icon:"loading",...e,msg:t,type:"loading"})},hide(t){Nr(t)},install(t){t.use(Lr),t.prototype.$toast=Mr}},{create:h0}=be("calendar-pane"),p0=h0({props:{type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:null},startDate:{type:String,default:H.getDay(0)},endDate:{type:String,default:H.getDay(365)}},emits:["choose","update","close","select"],setup(t,{emit:e,slots:n}){const i=["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],r=S.ref(null),s=S.ref(null),l=S.ref(null),o=S.ref(null),a=S.ref(0),u=S.computed(()=>c.monthsData.slice(c.defaultRange[0],c.defaultRange[1])),d=S.computed(()=>n.btn),f=S.computed(()=>n.topInfo),g=S.computed(()=>n.bottomInfo),c=S.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"calendar-month-day",startData:"",endData:"",isRange:t.type==="range",timer:0,currentIndex:0,avgHeight:0,monthsNum:0}),p=w=>w.split("-"),h=w=>H.isEqual(c.currDate[0],w),m=w=>H.isEqual(c.currDate[1],w),y=(w,T,V)=>T.curData[0]+"-"+T.curData[1]+"-"+H.getNumTwoBit(+w.day),_=(w,T,V)=>{const j=y(w,T);return w.type=="curr"?!c.isRange&&H.isEqual(c.currDate,j)||c.isRange&&(h(j)||m(j))?`${c.dayPrefix}-active`:c.propStartDate&&H.compareDate(j,c.propStartDate)||c.propEndDate&&H.compareDate(c.propEndDate,j)?`${c.dayPrefix}-disabled`:c.isRange&&Array.isArray(c.currDate)&&Object.values(c.currDate).length==2&&H.compareDate(c.currDate[0],j)&&H.compareDate(j,c.currDate[1])?`${c.dayPrefix}-choose`:null:`${c.dayPrefix}-disabled`},$=()=>{(c.isRange&&c.chooseData.length==2||!c.isRange)&&(e("choose",c.chooseData),t.poppable&&e("update"))},b=(w,T,V,j)=>{if(_(w,T)!=`${c.dayPrefix}-disabled`){let q=[...T.curData];q[2]=typeof w.day=="number"?H.getNumTwoBit(w.day):w.day,q[3]=`${q[0]}-${q[1]}-${q[2]}`,q[4]=H.getWhatDay(+q[0],+q[1],+q[2]),c.isRange?(Object.values(c.currDate).length==2?c.currDate=[q[3]]:H.compareDate(c.currDate[0],q[3])?Array.isArray(c.currDate)&&c.currDate.push(q[3]):Array.isArray(c.currDate)&&c.currDate.unshift(q[3]),c.chooseData.length==2||!c.chooseData.length?c.chooseData=[...q]:H.compareDate(c.chooseData[3],q[3])?c.chooseData=[[...c.chooseData],[...q]]:c.chooseData=[[...q],[...c.chooseData]]):(c.currDate=q[3],c.chooseData=[...q]),V||(e("select",c.chooseData),t.isAutoBackFill&&$())}},C=w=>{const T=w=="prev"?c.monthsData[0]:c.monthsData[c.monthsData.length-1];let V=parseInt(T.curData[0]),j=parseInt(T.curData[1].toString().replace(/^0/,""));switch(w){case"prev":j==1&&(V-=1),j=j==1?12:--j;break;case"next":j==12&&(V+=1),j=j==12?1:++j;break}return[V,H.getNumTwoBit(j),H.getMonthDays(String(V),String(j))]},P=(w,T,V)=>{let{year:j,month:q}=V;return T=="prev"&&w>=7&&(w-=7),Array.from(Array(w),(K,G)=>({day:G+1,type:T,year:j,month:q}))},x=(w,T,V,j)=>{let{year:q,month:K}=V;return T=="prev"&&w>=7&&(w-=7),Array.from(Array(j),(X,J)=>({day:J+1,type:T,year:q,month:K})).slice(j-w)},v=(w,T)=>{const V=H.getMonthPreDay(+w[0],+w[1]);let j=w[1]-1,q=w[0];j<=0&&(j=12,q+=1);const K=H.getMonthDays(w[0],w[1]),G=H.getMonthDays(q+"",j+""),X={year:w[0],month:w[1]},J={curData:w,title:`${X.year}/${X.month}`,monthData:[...x(V,"prev",{month:j,year:q},G),...P(K,"curr",X)]};J.cssHeight=39+(J.monthData.length>35?384:320);let ae=0;c.monthsData.length>0&&(ae=c.monthsData[c.monthsData.length-1].cssScrollHeight+c.monthsData[c.monthsData.length-1].cssHeight),J.cssScrollHeight=ae,T=="next"?(!c.endData||!H.compareDate(`${c.endData[0]}-${c.endData[1]}-${H.getMonthDays(c.endData[0],c.endData[1])}`,`${w[0]}-${w[1]}-${w[2]}`))&&c.monthsData.push(J):!c.startData||!H.compareDate(`${w[0]}-${w[1]}-${w[2]}`,`${c.startData[0]}-${c.startData[1]}-01`)?c.monthsData.unshift(J):c.unLoadPrev=!0},I=()=>{let w=t.startDate?t.startDate:H.getDay(0),T=t.endDate?t.endDate:H.getDay(365);c.propStartDate=w,c.propEndDate=T,c.startData=p(w),c.endData=p(T),!t.defaultValue||Array.isArray(t.defaultValue)&&t.defaultValue.length<=0?c.currDate=c.isRange?[H.date2Str(new Date),H.getDay(1)]:H.date2Str(new Date):c.currDate=c.isRange?[...t.defaultValue]:t.defaultValue;const V={year:Number(c.startData[0]),month:Number(c.startData[1])},j={year:Number(c.endData[0]),month:Number(c.endData[1])};let q=j.month-V.month;j.year-V.year>0&&(q=q+12*(j.year-V.year)),v(c.startData,"next");let K=1;do v(C("next"),"next");while(K++<q);c.monthsNum=q,c.isRange&&Array.isArray(c.currDate)?(w&&H.compareDate(c.currDate[0],w)&&c.currDate.splice(0,1,w),T&&H.compareDate(T,c.currDate[1])&&c.currDate.splice(1,1,T),c.defaultData=[...p(c.currDate[0]),...p(c.currDate[1])]):(w&&H.compareDate(c.currDate,w)?c.currDate=w:T&&!H.compareDate(c.currDate,T)&&(c.currDate=T),c.defaultData=[...p(c.currDate)]);let G=0,X=0;c.monthsData.forEach((oe,U)=>{let te=`${c.defaultData[0]}/${c.defaultData[1]}`;oe.title==te&&(G=U),c.isRange&&(te=`${c.defaultData[3]}/${c.defaultData[4]}`,oe.title==te&&(X=U))}),L(q,G),c.currentIndex=G,c.yearMonthTitle=c.monthsData[c.currentIndex].title,c.isRange?(b({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0),b({day:c.defaultData[5],type:"curr"},c.monthsData[X],!0)):b({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0);let J=c.monthsData[c.monthsData.length-1],ae=J.cssHeight+J.cssScrollHeight;Vu(()=>{r?.value&&s?.value&&o?.value&&(a.value=r.value.clientHeight,s.value.style.height=`${ae}px`,r.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)}),c.avgHeight=Math.floor(ae/(q+1))},L=(w,T)=>{w>=3?T>0&&T<w?c.defaultRange=[T-1,T+3]:T==0?c.defaultRange=[T,T+4]:T==w&&(c.defaultRange=[T-2,T+2]):c.defaultRange=[0,w+2];let V=c.monthsData[c.defaultRange[0]].cssScrollHeight;c.translateY=V},E=(w,T)=>c.isRange&&w.type=="curr"&&_(w,T)=="calendar-month-day-active",W=(w,T)=>E(w,T)&&h(y(w,T)),k=(w,T)=>c.currDate.length>=2&&m(y(w,T))?E(w,T):!1,N=(w,T)=>c.currDate.length>=2?H.isEqual(c.currDate[0],c.currDate[1]):!1,R=w=>{const T=`${w.year}-${w.month}-${w.day<10?"0"+w.day:w.day}`;return H.isEqual(T,H.date2Str(new Date))},O=w=>{const T=w.target.scrollTop;let V=Math.floor(T/c.avgHeight);if(V==0)T>=c.monthsData[V+1].cssScrollHeight&&(V+=1);else if(V>0&&V<c.monthsNum-1)T>=c.monthsData[V+1].cssScrollHeight&&(V+=1),T<c.monthsData[V].cssScrollHeight&&(V-=1);else{const j=Math.round(T+a.value);j<c.monthsData[V].cssScrollHeight+c.monthsData[V].cssHeight&&T>c.monthsData[V-1].cssScrollHeight&&(V-=1),V+1<=c.monthsNum&&j>=c.monthsData[V+1].cssScrollHeight+c.monthsData[V+1].cssHeight&&(V+=1),T<c.monthsData[V-1].cssScrollHeight&&(V-=1)}c.currentIndex!==V&&(c.currentIndex=V,L(c.monthsNum,V)),c.yearMonthTitle=c.monthsData[V].title},F=()=>{c.chooseData.splice(0),c.monthsData.splice(0),I()};return I(),S.watch(()=>t.defaultValue,w=>{w&&t.poppable&&F()}),{weeks:i,compConthsData:u,showTopBtn:d,topInfo:f,bottomInfo:g,rangeTip:N,mothsdivScroll:O,getClass:_,isStartTip:W,isEndTip:k,chooseDay:b,isCurrDay:R,confirm:$,monthsPanel:s,months:r,weeksPanel:l,divArea:o,...S.toRefs(c),...S.toRefs(t)}}});var m0=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("div",{staticClass:"fox-calendar fox-calendar-taro",class:{"fox-calendar-tile":!e.poppable,"fox-calendar-nofooter":e.isAutoBackFill}},[n("div",{staticClass:"fox-calendar-header",class:{"fox-calendar-header-tile":!e.poppable}},[e.showTitle?n("div",{staticClass:"calendar-title"},[e._v(e._s(e.title))]):e._e(),e.showTopBtn?n("div",{staticClass:"calendar-top-slot"},[e._t("btn")],2):e._e(),e.showSubTitle?n("div",{staticClass:"calendar-curr-month"},[e._v(e._s(e.yearMonthTitle))]):e._e(),n("div",{ref:"weeksPanel",staticClass:"calendar-weeks"},e._l(e.weeks,function(i,r){return n("div",{key:r,staticClass:"calendar-week-item"},[e._v(e._s(i))])}),0)]),n("div",{ref:"months",staticClass:"fox-calendar-content",on:{scroll:e.mothsdivScroll}},[n("div",{ref:"monthsPanel",staticClass:"calendar-months-panel"},[n("div",{ref:"divArea",staticClass:"divArea",style:{transform:`translateY(${e.translateY}px)`}},e._l(e.compConthsData,function(i,r){return n("div",{key:r,staticClass:"calendar-month"},[n("div",{staticClass:"calendar-month-title"},[e._v(e._s(i.title))]),n("div",{staticClass:"calendar-month-con"},[n("div",{staticClass:"calendar-month-item",class:e.type==="range"?"month-item-range":""},[e._l(i.monthData,function(s,l){return[n("div",{key:`item_${l}`,staticClass:"calendar-month-day",class:e.getClass(s,i),on:{click:function(o){return e.chooseDay(s,i)}}},[n("div",{staticClass:"calendar-day"},[e._t("day",function(){return[e._v(" "+e._s(s.type=="curr"?s.day:"")+" ")]},{date:s.type=="curr"?s:""})],2),e.topInfo?n("div",{staticClass:"calendar-curr-tips calendar-curr-tips-top"},[e._t("topInfo",null,{date:s.type=="curr"?s:""})],2):e._e(),e.bottomInfo?n("div",{staticClass:"calendar-curr-tips calendar-curr-tips-bottom"},[e._t("bottomInfo",null,{date:s.type=="curr"?s:""})],2):e._e(),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?n("div",{staticClass:"calendar-curr-tip-curr"},[e._v(" \u4ECA\u5929 ")]):e._e(),e.isStartTip(s,i)?n("div",{staticClass:"calendar-day-tip",class:{"calendar-curr-tips-top":e.rangeTip(s,i)}},[e._v(" "+e._s(e.startText)+" ")]):e._e(),e.isEndTip(s,i)?n("div",{staticClass:"calendar-day-tip"},[e._v(e._s(e.endText))]):e._e()])]})],2)])])}),0)])]),e.poppable&&!e.isAutoBackFill?n("div",{staticClass:"fox-calendar-footer"},[n("div",{staticClass:"calendar-confirm-btn",on:{click:e.confirm}},[e._v(e._s(e.confirmText))])]):e._e()])},g0=[],y0=D(p0,m0,g0,!1,null,null,null,null);const ki=y0.exports,ct=t=>typeof t=="string"?t:Re(t)?H.date2Str(t):"",Rr=t=>!!(!t||typeof t=="string"&&t.length==0||Array.isArray(t)&&t.length==0),Ar={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:"\u65E5\u5386\u9009\u62E9"},confirmText:{type:String,default:"\u786E\u8BA4"},startText:{type:String,default:"\u5F00\u59CB"},endText:{type:String,default:"\u7ED3\u675F"},defaultValue:{type:[String,Date,Array],default:null},startDate:{type:[String,Date],default:H.getDay(0)},endDate:{type:[String,Date],default:H.getDay(365)}},{create:_0}=be("calendar-picker"),$0=_0({components:{[ki.name]:ki},props:{...Ar},emits:["choose","close","update:visible","select"],setup(t,{emit:e,slots:n}){const i=S.computed(()=>t.type==="range"),r=S.computed(()=>{let _;if(Rr(t.defaultValue))_=i.value?[H.date2Str(new Date),H.getDay(1)]:H.date2Str(new Date);else if(i.value)if(Array.isArray(t.defaultValue)&&t.defaultValue.length==2){let $=ct(t.defaultValue[0]),b=ct(t.defaultValue[1]);_=[$,b]}else _=[H.date2Str(new Date),H.getDay(1)];else{let $=Array.isArray(t.defaultValue)?t.defaultValue[0]:t.defaultValue;_=ct($??new Date)}return _}),s=S.computed(()=>ct(t.startDate)),l=S.computed(()=>ct(t.endDate)),o=S.computed(()=>n.btn),a=S.computed(()=>n.topInfo),u=S.computed(()=>n.day),d=S.computed(()=>n.bottomInfo);let f=S.ref(t.visible);const g=S.ref(null),c=()=>{f.value=!1,e("update:visible",!1)},p=()=>{f.value=!1,e("close"),e("update:visible",!1)},h=_=>{p(),e("choose",_)},m=()=>{p()},y=_=>{e("select",_)};return S.watch(()=>t.visible,_=>{f.value=_}),{defaultValue:r,startDateStr:s,endDateStr:l,closePopup:m,update:c,close:p,choose:h,select:y,calendarRef:g,showTopBtn:o,topInfo:a,dayInfo:u,bottomInfo:d}}});var b0=function(){var e=this,n=e._self._c;return e._self._setupProxy,n("fox-popup",{attrs:{visible:e.visible,position:"bottom",round:"",closeable:!0,"destroy-on-close":!0,"pop-style":{height:"80%",width:"40%",left:"30%"}},on:{"click-overlay":e.closePopup,"click-close-icon":e.closePopup}},[e.visible?n("fox-calendar-pane",{ref:"calendarRef",attrs:{type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"show-today":e.showToday,"start-date":e.startDateStr,"end-date":e.endDateStr,"show-title":e.showTitle,"show-sub-title":e.showSubTitle},on:{update:e.update,close:e.close,choose:e.choose,select:e.select},scopedSlots:e._u([e.showTopBtn?{key:"btn",fn:function(){return[e._t("btn")]},proxy:!0}:null,e.dayInfo?{key:"day",fn:function(i){return[e._t("day",null,{date:i.date})]}}:null,e.topInfo?{key:"topInfo",fn:function(i){return[e._t("topInfo",null,{date:i.date})]}}:null,e.bottomInfo?{key:"bottomInfo",fn:function(i){return[e._t("bottomInfo",null,{date:i.date})]}}:null],null,!0)}):e._e()],1)},x0=[],v0=D($0,b0,x0,!1,null,null,null,null);const Vr=v0.exports,_n=(t,e)=>{let n;return Re(t)?n=t:typeof t=="string"&&mr(t)>0?n=H.parser(t,e):n=new Date,n},Je=(t,e,n)=>(Re(e)||(e=new Date),H.format(e,n)),Qe=t=>{let e=`${t.getFullYear()}`,n=`${t.getMonth()+1}`,i=`${t.getDate()}`,r=H.date2Str(t),s=H.getWhatDay(t.getFullYear(),t.getMonth()+1,t.getDate());return[e,n,i,r,s]},$n=rt(Ar,{visible:!0,modelValue:""}),Pi={rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1}},S0={name:"fox-calendar-item",mixins:[ce],props:{...$n,...Pi,value:{type:[String,Date,Array],required:!0},textAlign:{type:String},clearable:{type:Boolean,default:!0}},model:{prop:"value",event:"change"},data(){return{visible:!1,currentData:{startDate:null,endDate:null,startArray:[],endArray:[]}}},created(){this.updateData(this.value,this.type,this.valueFormat)},computed:{isRange(){return this.type==="range"},currentValue(){if(this.currentData.startDate===null)return null;if(this.isRange){let t=H.date2Str(this.currentData.startDate),e=H.date2Str(this.currentData.endDate??new Date);return[t,e]}else return H.date2Str(this.currentData.startDate)},currentText(){if(this.currentData.startDate===null)return"";if(this.isRange){let t=Je(this.$props,this.currentData.startDate,this.$props.format),e=Je(this.$props,this.currentData.endDate,this.$props.format);return`${t} ${this.$props.rangeSeparator} ${e}`}else{let t=Je(this.$props,this.currentData.startDate,this.$props.format);return this.$props.showWeek&&(t=`${t} ${this.currentData.startArray[4]}`),t}}},watch:{value:{handler(t,e){this.updateData(t,this.type,this.valueFormat)},deep:!0},valueFormat(t,e){this.updateData(t,this.type,this.valueFormat)}},methods:{resetData(){this.currentData.startDate!==null&&(this.currentData.startDate=null,this.currentData.endDate=null,this.currentData.startArray=[],this.currentData.endArray=[])},updateData(t,e="one",n="YYYY-MM-DD"){if(Rr(t)){this.resetData();return}if(this.isRange&&Array.isArray(t)&&t.length==2){let i,r;typeof t[0]=="string"?(i=_n(t[0],n),r=_n(t[1],n)):(i=t[0],r=t[1]);let s=Qe(i),l=Qe(r);(this.currentData.startDate===null||this.currentData.startDate.getTime()!==i.getTime()||this.currentData.endDate?.getTime()!==r.getTime())&&(this.currentData.startDate=i,this.currentData.startArray=s,this.currentData.endDate=r,this.currentData.endArray=l)}else{let i;typeof t=="string"?i=_n(t,n):i=t;let r=Qe(i);(this.currentData.startDate===null||this.currentData.startDate.getTime()!==i.getTime())&&(this.currentData.startDate=i,this.currentData.startArray=r)}},onChoose(t){if(!!t)if(this.isRange&&Array.isArray(t)){let e=t[0],n=de(e[0]),i=de(e[1]),r=de(e[2]),s=new Date(n,i-1,r),l=t[1];n=de(l[0]),i=de(l[1]),r=de(l[2]);let o=new Date(n,i-1,r);if(this.currentData.startDate=s,this.currentData.startArray=Qe(s),this.currentData.endDate=o,this.currentData.endArray=Qe(o),this.$props.valueFormat){let a=Je(this.$props,s,this.$props.valueFormat),u=Je(this.$props,o,this.$props.valueFormat);this.$emit("change",[a,u],{})}else this.$emit("change",[s,o],{})}else{let e=t,n=de(e[0]),i=de(e[1]),r=de(e[2]),s=new Date(n,i-1,r);if(this.currentData.startDate=s,this.currentData.startArray=Qe(s),this.$props.valueFormat){let l=Je(this.$props,s,this.$props.valueFormat);this.$emit("change",l,{})}else this.$emit("change",s,{})}},onInput(t){},onFocus(t){!this.mReadonly&&!this.mDisabled&&(this.visible=!0),this.$emit("focus",t)},onBlur(t){this.visible||this.$emit("blur",t)},onClick(){this.mReadonly||this.mDisabled||(this.visible=!this.visible)},showPicker(){this.visible=!0},hidePicker(){this.visible=!1},focus(){this.$refs.input&&typeof this.$refs.input.focus=="function"&&this.$refs.input.focus()},blur(){this.$refs.input&&typeof this.$refs.input.blur=="function"&&this.$refs.input.blur()},renderPicker(t){const e=jn(this.$props,$n);e["default-value"]=this.currentValue,e.disabled=this.mDisabled,e.readonly=this.mReadonly,e.visible=this.visible;const n={choose:this.onChoose,"update:visible":s=>{this.visible=s}},i={props:e,on:n},r={};return this.$scopedSlots.btn&&(r.btn=s=>this.$scopedSlots.btn(s)),this.$scopedSlots.day&&(r.day=s=>this.$scopedSlots.day(s)),this.$scopedSlots.topInfo&&(r.topInfo=s=>this.$scopedSlots.topInfo(s)),this.$scopedSlots.bottomInfo&&(r.bottomInfo=s=>this.$scopedSlots.bottomInfo(s)),i.scopedSlots=r,t(Vr,i)}},render(t){let e={class:{"el-form-item__label":!0},attrs:{},style:this.mLabelStyle},n;if(this.$slots.default){let $=this.$slots.default[0];if(this.multiLang){let{text:b}=$;b&&(b=b.trim()).length>0&&(b=this.$langTranslator.translate(this,b),e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b]))}if(!n){let{text:b}=$;b&&(b=b.trim()).length>0?(e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b])):$.tag&&(n=t("div",e,this.$slots.default))}}else{let $=this.label;$&&($=$.trim()).length>0&&(this.multiLang&&($=this.$langTranslator.translate(this,$)),e.domProps={innerHTML:B($,this.mLabelMaxCharCount)},n=t("div",e))}let i=["type"],r={};ee(this,r,this.$attrs,i),r.title=this.innerValue,r.clearable=this.clearable;let s=rt(this.$props,$n,Pi,{type:""});s.value=this.currentText,s.disabled=this.mDisabled,s.readonly=this.editable,s.size=this.mSize;let l={};Q(this,l,this.$listeners,["blur","focus","change","input"]),l.blur=this.onBlur,l.focus=this.onFocus,l.clear=this.onClear,l.input=this.onInput;const o={click:this.onClick},a={attrs:r,props:s,on:l,nativeOn:o,ref:"input"},u={slot:"suffix",class:{"el-icon-date":!0,"el-input__icon":!0,"fox-date-item__suffix":!0,active:this.visible}},d=t("li",u),g=[t("el-input",a,[d])];let c=this.installTip(t);c.type!=="node"&&g.push(c.node);let p={class:{"el-form-item__content":!0},style:this.mInputStyle},h=t("div",p,g),m={class:{"el-form-item":!0,"fox-group-item":!0,"is-required":this.isRequired},style:this.mStyle};c.type==="error"?m.class["is-error"]=!0:c.type==="warn"?m.class["is-warn"]=!0:c.type==="info"&&(m.class["is-info"]=!0),se(this,m);let y="text";this.componentData(this,m,y);const _=this.renderPicker(t);return n?t("div",m,[n,h,_]):t("div",m,[h,_])}},D0=null,w0=null;var T0=D(S0,D0,w0,!1,null,null,null,null);const C0=T0.exports;const Li=Object.freeze(Object.defineProperty({__proto__:null,Pagination:_l,Dialog:wl,Autocomplete:Nl,Dropdown:Ol,DropdownMenu:zl,DropdownItem:Ql,Menu:la,Submenu:ha,MenuItem:ba,MenuItemGroup:Ca,Input:Ra,InputNumber:qa,Radio:Ua,RadioGroup:to,RadioButton:oo,Checkbox:go,CheckboxButton:So,CheckboxGroup:Po,Switch:Fo,Select:Bo,Option:Zo,OptionGroup:ru,ButtonGroup:fu,Table:_u,TableColumn:wu,DatePicker:Sr,TimeSelect:Pc,TimePicker:Fc,Popover:Bc,Tooltip:Zc,MessageBox:sf,Breadcrumb:df,BreadcrumbItem:$f,Form:Tf,FormItem:Mf,Tabs:jf,TabPane:Yf,Tag:ed,Tree:ad,Alert:pd,Notification:xd,Slider:Id,Loading:Ad,Icon:Hd,Row:Gd,Col:nh,Upload:uh,Progress:gh,Spinner:Sh,Message:Ph,Badge:Fh,Card:Bh,Rate:Zh,Steps:rp,Step:fp,Carousel:_p,Scrollbar:wp,CarouselItem:Np,Collapse:Op,CollapseItem:zp,Cascader:Qp,ColorPicker:lm,Transfer:hm,Container:bm,Header:Cm,Aside:Rm,Main:qm,Footer:Um,Timeline:tg,TimelineItem:og,Link:mg,Divider:vg,Image:kg,Calendar:Vg,Backtop:Wg,InfiniteScroll:Xg,PageHeader:iy,CascaderPanel:cy,Avatar:yy,Drawer:Dy,Popconfirm:Ly,Skeleton:Ey,SkeletonItem:Ky,Empty:Jy,Descriptions:s_,DescriptionsItem:d_,Result:$_,Page:D_,SubPage:k_,HeaderBar:R_,Content:O_,FooterBar:B_,GroupHeader:G_,Group:n$,SubGroup:u$,InputRow:p$,ButtonRow:$$,Item:D$,EmptyItem:k$,TextItem:R$,MoneyItem:O$,CounterItem:K$,TimeItem:Z$,DateItem:ib,DateTimeItem:ub,TableItem:Ab,RadioItem:qb,Checkboxs:zb,CheckboxItem:Jb,NumberItem:sx,SwitchItem:fx,SliderItem:yx,RateItem:Sx,CascaderItem:ev,Button:uv,DialogItem:gv,AutocompleteItem:xv,SelectItem:Tv,TableSearchPopover:Lv,TableSearchColumn:Ev,CornerLabel:Wv,Dynamic:Uv,FloatNavigator:Qv,Fragment:r0,Overlay:Cn,Popup:Gt,Toast:Mr,ExtIcon:_t,Picker:Xt,CalendarPicker:Vr,CascaderPicker:Cr,CalendarItem:C0},Symbol.toStringTag,{value:"Module"}));function I0(t){let e=t.$attrs["fox-desc"];return e||(e=t.$slots&&t.$slots.default&&t.$slots.default[0]&&t.$slots.default[0].text),e||(e=t.$props.label),e}function k0(t,e){let n=t.$attrs["fox-model"];return n||(n=e),n}function Ni(t){let e=t;if(t.customScope){let n=t.$parent;for(let i=0;i<5;i++){if(n._provided&&n._provided.customRoot===!0){e=n;break}n=n.$parent}}return e}function P0(t){let{parentNode:e}=t;if(!(!e||!e.classList)&&!!e.classList.contains("el-dialog__body"))return e.parentNode}function L0(){return{top:0,left:0,bottom:0,right:0}}function N0(t=0,e=0){const n=vt(),i=Jt()-e-t;return{width:n,height:i}}const xt={install(t,e={}){if(ye.Vue)return;ye.Vue=t;let n={};e.filterKeys&&(n.filterKeys=e.filterKeys,delete e.filterKeys),e.componentFilterPropKeys&&(n.componentFilterPropKeys=e.componentFilterPropKeys,delete e.componentFilterPropKeys);let i=new Zs(n);const r=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],s=We();if(xt.initPageLayout(e,s),e.autoAdjustPageLayout!==!1){const l=le(e.headerBarHeight||e.headBarHeight||0),o=le(e.footerBarHeight||e.footBarHeight||0),a=Vn(()=>{const u=vt(),d=Jt(),f=Is();f.width=u,f.height=d-l-o,ri(f)},150);qi(window,"resize",a)}if(e)for(let l in e)r.indexOf(l)===-1&&s.setOption(l,e[l]);for(let l in Li){let o=Li[l];typeof o.install=="function"?t.use(o):t.component(o.name,o)}t.mixin({created(){if(et.install(this),oi(this)){let l=Ni(this),o=l.$vnode&&l.$vnode.data&&l.$vnode.data.model;if(o){let a=k0(l,o.expression),u=I0(this);M.setModel(l,o.expression,a,u),Qt.install(l)}}},beforeDestroy(){if(oi(this)){let l=Ni(this),o=l.$vnode&&l.$vnode.data&&l.$vnode.data.model;if(o){let{expression:a}=o;M.removeModel(l,a)}}this.$clearHotKey()},methods:{$tip(l,o,a){if(o)xn(o)&&(a=o,o=this.$el);else{a||(a={time:3}),o=document.body;let u=P0(this.$el)||this.$el;a.offsetTop==null&&(a.offsetTop=Rn(u)),a.offsetLeft==null&&(a.offsetLeft=An(u))}fox.layer.tip(l,o,a)},$setHotkey(l,o,a){this.$foxHotkeyCallbacks||(this.$foxHotkeyCallbacks=new Map),this.$foxHotkeyCallbacks.has(l)&&fn(l),a||(a=this.$el,this.$foxHotkeyCallbacks.set(l,o)),fl(a,l,o,this)},$removeHotKey(l,o){if(!this.$foxHotkeyCallbacks)return;o||(o=this.$el);let a=this.$foxHotkeyCallbacks.get(l);a&&(fn(o,a),this.$foxHotkeyCallbacks.remove(l))},$clearHotKey(){if(!this.$foxHotkeyCallbacks)return;const l=this.$el;this.$foxHotkeyCallbacks.forEach(function(o,a){fn(l,a,o)}),this.$foxHotkeyCallbacks=void 0},$emitEvent(l,...o){Reflect.apply(Be,this,[this,l,...o])}}}),Object.defineProperty(t.prototype,"$foxUI",{get(){return xt}}),Object.defineProperty(t.prototype,"$langTranslator",{get(){return i}}),Qs.install(t),nl.install(t),il.install(t,e.cursorOptions),al.install(t)},initPageLayout(t={},e){const n=le(t.headerBarHeight||t.headBarHeight||0),i=le(t.footerBarHeight||t.footBarHeight||0),r=Wt({},L0(),t.safeAreaInset),s=Wt({},N0(n,i),t.pageLayout);e=e??We(),e.setOption("safeAreaInset",r),e.setOption("headerBarHeight",n),e.setOption("footerBarHeight",i),ri(s)}};Object.assign(xt,Ws);window.Vue&&window.Vue.use(xt);module.exports=xt;