@fox-js/foxui-pad 3.0.1 → 3.3.2

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.
@@ -0,0 +1,21 @@
1
+ (function(S,St){typeof exports=="object"&&typeof module<"u"?module.exports=St(require("vue")):typeof define=="function"&&define.amd?define(["vue"],St):(S=typeof globalThis<"u"?globalThis:S||self,S.FoxUI=St(S.Vue))})(this,function(S){"use strict";/*!
2
+ * fox-desktop v3.3.0 Thu Aug 17 2023 14:36:13 GMT+0800 (中国标准时间)
3
+ */const Or=(t=>t&&typeof t=="object"&&"default"in t?t:{default:t})(S),w_="";let Y=t=>t!=null;const rn=Symbol("$PageView"),Kn=Symbol("$PageHeaderView"),zn=Symbol("$PageFooterView"),jr=Symbol.for("$DynamicView"),Yn=Symbol("$GroupView"),Re=Symbol("$GroupItemView"),fe=typeof window<"u",Me=function(){return window.document},Ae=t=>t==null?!0:typeof t!="string"?!1:t.length==0;function G(t){return t==null?!1:typeof t=="boolean"?t:typeof t=="string"?t.toLowerCase()==="true":`${t}`.toLowerCase()==="true"}function te(t){return Number(t)}function qr(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 sn(t,e,n){if(!fe)return t.length*e;let i=Me().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 Un(t){return t==null?!1:t.toString().indexOf("Promise")!==-1}function Gn(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:Gn(s,o,l,i)}else e[r]=s}}function st(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 st(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"?st(l,e,n+1):void 0}else return t[i]}function lt(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"&&lt(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"&&lt(o,e,n+1,i)}else t[r]=i}const Hr=Symbol.for("$ProxyView");function Xn(t){if(t&&t.$children&&t.$children.length==1){const e=t.$children[0];return e&&e._data&&e._data[rn]===!0}return!1}function Ee(t){let e=t&&t.$vnode&&t.$vnode.context;return!e||fe&&e.$el===Me().body?null:(e.$data&&e.$data[Hr]&&(e=e.$vnode.context),e._provided&&e._provided.customRoot!==void 0&&(e=Ee(e)),t.pageScope&&!Xn(e)&&(e=Ee(e)),e)}var ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zn={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(self,function(){return function(){var n={465:function(l,o){function a(m,p){return function(h){if(Array.isArray(h))return h}(m)||function(h,_){var $=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if($!=null){var y,b,R=[],P=!0,x=!1;try{for($=$.call(h);!(P=(y=$.next()).done)&&(R.push(y.value),!_||R.length!==_);P=!0);}catch(v){x=!0,b=v}finally{try{P||$.return==null||$.return()}finally{if(x)throw b}}return R}}(m,p)||function(h,_){if(h){if(typeof h=="string")return u(h,_);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,_):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,_=new Array(p);h<p;h++)_[h]=m[h];return _}function d(m){for(var p="",h=m.length,_=m.split(".")[1],$=_?_.length:0,y=0;y<h;y++)m[y]>="0"&&m[y]<="9"?p+=9-parseInt(m[y]):p+=m[y];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("."),_=p.split("."),$=h[0].length,y=_[0].length;return $>y?_[0]=new Array(Math.abs($-y)+1).join("0")+(_[0]?_[0]:""):h[0]=new Array(Math.abs($-y)+1).join("0")+(h[0]?h[0]:""),$=h[1]?h[1].length:0,y=_[1]?_[1].length:0,($||y)&&($>y?_[1]=(_[1]?_[1]:"")+new Array(Math.abs($-y)+1).join("0"):h[1]=(h[1]?h[1]:"")+new Array(Math.abs($-y)+1).join("0")),[m=h[0]+(h[1]?"."+h[1]:""),p=_[0]+(_[1]?"."+_[1]:"")]}function c(m,p){var h=a(g(m,p),2);m=h[0],p=h[1];for(var _="",$=0,y=m.length-1;y>=0;y--)if(m[y]!=="."){var b=parseInt(m[y])+parseInt(p[y])+$;_=b%10+_,$=Math.floor(b/10)}else _="."+_;return $?$.toString()+_:_}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,_=-1;m[0]=="-"&&(h++,_=1,(m=m.substring(1)).length),p[0]=="-"&&(h++,_=2,(p=p.substring(1)).length),m=f(m),p=f(p);var $=g(f(m),f(p)),y=a($,2);m=y[0],p=y[1],h==1&&(_==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(l,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,_){return function($){if(Array.isArray($))return $}(h)||function($,y){var b=$==null?null:typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(b!=null){var R,P,x=[],v=!0,C=!1;try{for(b=b.call($);!(v=(R=b.next()).done)&&(x.push(R.value),!y||x.length!==y);v=!0);}catch(k){C=!0,P=k}finally{try{v||b.return==null||b.return()}finally{if(C)throw P}}return x}}(h,_)||function($,y){if($){if(typeof $=="string")return u($,y);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($,y):void 0}}(h,_)||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(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 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 _=(f=f.replace(".","")).length-h+p;f=(0,u.trim)(f.substring(0,_)+"."+f.substring(_))}else p==h&&(f=(0,u.trim)(f.replace(".","")))}var $=0,y=g.length,b="",R=f.indexOf(".")>-1&&f.indexOf(".")<y?f.substring(0,y+1):f.substring(0,y);if(f=f.indexOf(".")>-1&&f.indexOf(".")<y?f.substring(y+1):f.substring(y),R.indexOf(".")>-1){var P=R.length-R.indexOf(".")-1;y>(R=R.replace(".","")).length&&(P+=y-R.length,R+=new Array(y-R.length+1).join("0")),$=P,b="0."+new Array(P).join("0")}for(c+=2;$<=c;){for(var x=0;parseInt(R)>=parseInt(g);)R=(0,u.add)(R,"-"+g),x++;b+=x,f?(f[0]=="."&&(b+=".",$++,f=f.substring(1)),R+=f.substring(0,1),f=f.substring(1)):($||(b+="."),$++,R+="0")}return(m==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 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 _="";return p[0]=="-"&&(_="-",p=p.substr(1)),h[0]=="-"&&(h=h.substr(1)),_+(0,g.subtract)(p,(0,f.multiply)(h,(0,d.roundOff)((0,u.divide)(p,h),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 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,_,$=d.length,y=0,b=[],R=$-1,P="",x=0;x<$;x++)b[x]=u.length-1;for(var v=0;v<2*u.length;v++){for(var C=0,k=d.length-1;k>=R&&k>=0;k--)b[k]>-1&&b[k]<u.length&&(C+=parseInt(u[b[k]--])*parseInt(d[k]));C+=y,y=Math.floor(C/10),P=C%10+P,R--}return P=a((h=P,(_=m)==0?h:(h=_>=h.length?new Array(_-h.length+1).join("0")+h:h).substr(0,h.length-_)+"."+h.substr(h.length-_,_))),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,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 _=parseInt(g[h])+c;_==10?(c=1,_=0):c=0,p+=_}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 _=c.split("."),$=_[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)+y,0,p))+new Array(m+1).join("0")}if(m==0)return $.length,d(_[1],$,h,p)?(h?"-":"")+f($):(h?"-":"")+$;if(!_[1])return(h?"-":"")+$+"."+new Array(m+1).join("0");if(_[1].length<m)return(h?"-":"")+$+"."+_[1]+new Array(m-_[1].length+1).join("0");y=_[1].substring(0,m);var R=_[1].substring(m);return R&&d(R,y,h,p)&&(y=f(y)).length>m?(h?"-":"")+f($,parseInt(y[0]))+"."+y.substring(1):(h?"-":"")+$+"."+y}},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(y,b){(b==null||b>y.length)&&(b=y.length);for(var R=0,P=new Array(b);R<b;R++)P[R]=y[R];return P}function a(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function u(y,b){for(var R=0;R<b.length;R++){var P=b[R];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(y,P.key,P)}}Object.defineProperty(l,"__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),_=r(581),$=function(){function y(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"0";a(this,y),this.value=y.validate(x)}var b,R,P;return b=y,R=[{key:"getValue",value:function(){return this.value}},{key:"getPrettyValue",value:function(x,v){return y.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]:_.RoundingModes.HALF_EVEN;if(isNaN(x))throw Error("Precision is not a number: "+x);return new y((0,f.roundOff)(this.value,x,v))}},{key:"floor",value:function(){return this.value.indexOf(".")===-1?new y(this.value):new y(this.value).round(0,_.RoundingModes.FLOOR)}},{key:"ceil",value:function(){return this.value.indexOf(".")===-1?new y(this.value):new y(this.value).round(0,_.RoundingModes.CEILING)}},{key:"add",value:function(x){return new y((0,d.add)(this.value,x.getValue()))}},{key:"subtract",value:function(x){return new y((0,h.subtract)(this.value,x.getValue()))}},{key:"multiply",value:function(x){return new y((0,g.multiply)(this.value,x.getValue()))}},{key:"divide",value:function(x,v){return new y((0,c.divide)(this.value,x.getValue(),v))}},{key:"modulus",value:function(x){return new y((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 y((0,h.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=(V=x.split(/[eE]/),L=2,function(I){if(Array.isArray(I))return I}(V)||function(I,M){var j=I==null?null:typeof Symbol<"u"&&I[Symbol.iterator]||I["@@iterator"];if(j!=null){var E,w,T=[],A=!0,q=!1;try{for(j=j.call(I);!(A=(E=j.next()).done)&&(T.push(E.value),!M||T.length!==M);A=!0);}catch(H){q=!0,w=H}finally{try{A||j.return==null||j.return()}finally{if(q)throw w}}return T}}(V,L)||function(I,M){if(I){if(typeof I=="string")return o(I,M);var j=Object.prototype.toString.call(I).slice(8,-1);return j==="Object"&&I.constructor&&(j=I.constructor.name),j==="Map"||j==="Set"?Array.from(I):j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j)?o(I,M):void 0}}(V,L)||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],k=v[1],O="";(C=(0,d.trim)(C))[0]=="-"&&(O="-",C=C.substring(1)),C.indexOf(".")>=0?(k=parseInt(k)+C.indexOf("."),C=C.replace(".","")):k=parseInt(k)+C.length,x=C.length<k?O+C+new Array(k-C.length+1).join("0"):C.length>=k&&k>0?O+(0,d.trim)(C.substring(0,k))+(C.length>k?"."+C.substring(k):""):O+"0."+new Array(1-k).join("0")+C}var V,L;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 k=(x=y.validate(x)).charAt(0)=="-";k&&(x=x.substring(1));for(var O=x.indexOf("."),V="",L=O=O>0?O:x.length;L>0;)L<v?(v=L,L=0):L-=v,V=x.substring(L,L+v)+(L<O-v&&L>=0?C:"")+V;return(k?"-":"")+V+x.substring(O)}},{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]:_.RoundingModes.HALF_EVEN;if(x=y.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=y.validate(x)).indexOf(".")===-1?x:y.round(x,0,_.RoundingModes.FLOOR)}},{key:"ceil",value:function(x){return(x=y.validate(x)).indexOf(".")===-1?x:y.round(x,0,_.RoundingModes.CEILING)}},{key:"add",value:function(x,v){return x=y.validate(x),v=y.validate(v),(0,d.add)(x,v)}},{key:"subtract",value:function(x,v){return x=y.validate(x),v=y.validate(v),(0,h.subtract)(x,v)}},{key:"multiply",value:function(x,v){return x=y.validate(x),v=y.validate(v),(0,g.multiply)(x,v)}},{key:"divide",value:function(x,v,C){return x=y.validate(x),v=y.validate(v),(0,c.divide)(x,v,C)}},{key:"modulus",value:function(x,v){return x=y.validate(x),v=y.validate(v),(0,m.modulus)(x,v)}},{key:"compareTo",value:function(x,v){return x=y.validate(x),v=y.validate(v),(0,p.compareTo)(x,v)}},{key:"negate",value:function(x){return x=y.validate(x),(0,h.negate)(x)}}],R&&u(b.prototype,R),P&&u(b,P),Object.defineProperty(b,"prototype",{writable:!1}),y}();$.RoundingModes=_.RoundingModes,l.default=$}(),s}()})})(Zn);const ne=Vr(Zn.exports);function Qn(){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 Dt(){let t=++ln;return t==Number.MAX_VALUE&&(ln=0),`${Wr[t%2]}_${ln}`}function K(t){return t==null||typeof t=="string"&&t.length==0}function at(t){return K(t)?!0:(t.charAt(0)=="-"&&(t=t.substring(1)),K(t)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(t))}function Jn(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 ei(t,e,n=20){if(typeof e=="string"&&(e=te(e)),e==1||e==-1)return`${t}`;if(e==0)return"0";if(e>0){let i=ne.multiply(`${t}`,`${e}`);return Jn(i)}else{let i=ne.divide(`${t}`,ne.negate(`${e}`),20);return Jn(i)}}function Xe(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 Oe(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 ti(t,e){let n=`${t}`,i=`${e}`;return ne.compareTo(n,i)}function zr(t,e=-1,n=!1,i=3,r=","){return Xe(t,e,n,i,r)}function Yr(t){return Oe(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=Me();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*ot():r=r/100*wt();return r}return t}function an(t){const e=Me();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 wt(){let t=an("clientHeight");return Number(t)}function ot(){let t=an("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 on(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 Ze(t){let e=t;for(;e!=null;){let n=e.offsetWidth;if(n!=0)return n;e=e.parentNode}return 0}function xe(t){let e=t;for(;e!=null;){let n=e.offsetHeight;if(n!=0)return n;e=e.parentNode}return 0}function ni(t,e){let{scrollTop:n}=t,i=t.parentNode;for(;i!=null&&i!=e;)n+=i.scrollTop,i=i.parentNode;return n}function un(t){let e=t.offsetTop,{offsetParent:n}=t,i=t.parentNode;for(i!=n&&(e-=ni(i,n));n!=null;)e+=n.offsetTop,i=n.parentNode,n=n.offsetParent,n!=null&&i!=n&&(e-=ni(i,n));return e}function cn(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 Tt(t){let{toString:e}=Object.prototype,n=e.call(t);return t==null?String(t):Gr[n]||"object"}function Ct(t){return t&&typeof t=="object"&&typeof t.length=="number"&&typeof t.splice=="function"&&!t.propertyIsEnumerable("length")}function Xr(t){return Tt(t)==="function"}function Zr(t){return t&&typeof t=="object"&&"setInterval"in t}function fn(t){if(!t||Tt(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 kt(...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&&(fn(a)||(u=Ct(a)))){let d;u?d=o&&Ct(o)?o:[]:d=o&&fn(o)?o:{},e[l]=kt(r,d,a)}else a!==void 0&&(e[l]=a)}}return e}function ii(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}function Qr(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}function dn(t,e){if(t==e)return!0;if(t==null||e==null)return!1;let n=Tt(t),i=Tt(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(!dn(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(!dn(s,l))return!1}return!0}return!1}function ut(t){return t.offsetParent===null}function ri(t){t.scrollIntoViewIfNeeded()}function Jr(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 si(t,e,n={}){Object.assign(n,{bubbles:!0,cancelable:!0});let i=Jr(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 hn(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)},pn=Symbol("$authHandler"),mn=Symbol("$authRenderHandler"),li=Symbol.for("handleNode"),is=Symbol.for("handleRenderData"),rs="fox_auth_scope";class ss{auths=new Map;register=new Map;[pn]=ts;[mn]=ns;setAuthHandler(e){this[pn]=e}setAuthRenderHandler(e){this[mn]=e}getAuthScope(e){let n=e.$route;if(!n)return null;let{params:i}=n;return i?i[rs]:null}[li](e,n){this[pn](e,n)}[is](e,n){this[mn](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[li](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 ne.multiply(`${t}`,`${e}`)}function ai(t,e,n=8){return ne.divide(`${t}`,`${e}`,n)}function fs(t,e){return ne.add(`${t}`,`${e}`)}function ds(t,e){return ne.subtract(`${t}`,`${e}`)}function hs(t){return new ne(t).getValue()}function ps(t,e,n){return ne.getPrettyValue(t,e,n)}function ms(t,e,n){return ne.round(t,e,n)}function gs(t){return ne.floor(t)}function _s(t){return ne.ceil(t)}function ys(t,e){return ne.modulus(t,e)}function oi(t,e){return ne.compareTo(t,e)}function $s(t){return ne.negate(t)}let It=!1,je=[];class ie{static setLock(e,n){It=e,n&&Array.isArray(n)&&(je=[...n])}static setError(e,n,i){if(It&&(je.length==0||je.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(It&&(je.length==0||je.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(It&&(je.length==0||je.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 ui;const ge={get Vue(){return ui},set Vue(t){ui=t}},Rt=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 de(t){return t!=null}function vs(t){let e=t.value;return Y(e)||(e=t.innerValue),e}function ci(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=vs(r.node),a=Reflect.apply(e,{},[o,r.name,r.relate,r.index,r.node]);Un(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 Qe(t,e,n){let i=t.$attrs[e];if(de(i))return i;let r=bs(e);return i=t.$props[r],de(i)?i:n}const gn=Symbol("$modelItem");class xs{node;name;relate;label;index;_props=new Proxy({[gn]:this},{set(e,n,i){let r=e[gn].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:ge.Vue.util.defineReactive(s,n,i),!0)},get(e,n){let i=e[gn].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)||ge.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 fi=Symbol("_setModel"),di=Symbol("_removeModel"),hi=Symbol("toModelItemList"),pi=Symbol("toModelNameList"),mi=Symbol.for("getModels"),De=Symbol.for("getModelItems"),ct=Symbol("getProperty"),gi=Symbol("release");function Pt(t){let e=t&&t.$vnode&&t.$vnode.context;return e.$data&&e.$data[jr]&&(e=e.$vnode.context),e}class F{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)}[gi](){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||Gn(n,r,void 0,i)}getSubDataValue(e,n){let i=this.getSubData(e);if(!i)return;let r=n.split(".");return st(i,r,0)}setSubDataValue(e,n,i){let r=this.getSubData(e);if(!r)return;let s=n.split(".");lt(r,s,0,i)}setOption(e,n){Reflect.has(this.options,e)?this.options[e]=n:ge.Vue.util.defineReactive(this.options,e,n)}getOption(e){return Reflect.has(this.options,e)||ge.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||ci(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}[ct](e){let n=this.getOption(e);if(de(n))return n;if(this.vm)return n=Qe(this.vm,e,void 0),n}[fi](e,n,i,r){let s=new xs(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&&ci([s],this.checkFunc,this.checkInfo.msg,this.checkInfo.icon)}[di](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}}}[hi](e){let n=[];for(let i of e.values())n=[...n,...i];return n}[pi](e){let n=[];for(let i of e.keys())n.push(i);return n}[De](e){let n=this[hi](this.modelsMap);for(let i in this.children){let s=this.children[i][De](e);n=[...n,...s]}return e!=null&&(n=n.filter(i=>i.name==e)),n}[mi](){let e=this[pi](this.modelsMap);for(let n in this.children){let r=this.children[n][mi]();e=[...e,...r]}return e}setPropertyByModel(e,n,i,r){this[De](n).forEach(l=>{l.props[i]=r})}setVerifyByModel(e,n,i,r){this[De](n).forEach(l=>{Ft.setNode(l.node,i,r)})}applyByModel(e,n,i,...r){this[De](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[De](n).forEach(l=>{l.node.$on(i,r)})}unbindEventByModel(e,n,i,r){this[De](n).forEach(l=>{l.node.$off(i,r)})}static getDomain(e){return e.$data&&e.$data[Se]||F.getParentDomain(e)}static getParentDomain(e){if(!e)return _n;let n=e.$parent;for(;n&&(!n.$data||!n.$data[Se]);)n=n.$parent;return n&&n.$data&&n.$data[Se]||_n}static getRootDomain(e){if(!e)return null;if(e.$data&&e.$data[Rt])return e.$data[Se];let n=e.$parent;for(;n&&(!n.$data||!n.$data[Rt]);)n=n.$parent;return n&&n.$data&&n.$data[Se]}static getParentDomainProperty(e,n,i){let r=F.getParentDomain(e);if(!r)return;let s=r[ct](n);for(;!de(s)&&(r=r.parent,!!r);)s=r[ct](n);return de(s)?s:i}static getDomainProperty(e,n,i){let r=F.getDomain(e);if(!r)throw new Error("domain not found");for(;r;){let s=r[ct](n);if(de(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=Qe(e,s,void 0);if(!e.pageScope)return o||i;let a=!1,u=F.getModelInfo(e);if(u){let g=F.getDomain(e)[De](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&&(F.hasExemption(e,u.relate,"model")||F.hasExemption(e,u.name,"model")))return Lt(a,o)||i}let d=F.getDomainProperty(e,l,void 0);return de(d)&&Qe(e,"fox-obey",void 0)!==void 0?d:Lt(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=Qe(e,s,void 0);if(de(o)&&(typeof o=="string"&&o.length==0?o=!0:o=G(o)),!e.pageScope)return o||i;let a,u=F.getModelInfo(e);if(u){let g=F.getDomain(e)[De](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&&(F.hasExemption(e,u.relate,"model")||F.hasExemption(e,u.name,"model")))return Lt(a,o)||i}let d=F.getDomainProperty(e,l,void 0);return de(d)&&(typeof d=="string"&&d.length==0?d=!0:d=G(d),Qe(e,"fox-obey",void 0)!==void 0)?d:Lt(a,o)||d||i}static getAllProperties(e,n){let i=[],r=Qe(e,n,void 0);de(r)&&i.push(r);let s=F.getDomain(e);for(;s;)r=s[ct](n),de(r)&&i.push(r),s=s.parent;return i}static isReadonly(e){return F.getFitPropertyForBoolean(e,"readonly",!1,!0)}static isDisabled(e){return F.getFitPropertyForBoolean(e,"disabled",!1,!0)}static setModel(e,n,i,r){let s=F.getDomain(e);!s||s[fi](n,i,r,e)}static removeModel(e,n){let i=F.getDomain(e);!i||i[di](n)}static hasExemption(e,n,i){if(n==null)return!1;if(i=="model"){let r=F.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 F.getDomainProperty(e,"verify-rules",{})[n]}}function Lt(...t){for(let e of t)if(de(e))return e}const _n=new F(null,"_first_",null);function qe(){return _n}function _i(t,e,n){if(!t.$data)return null;let i=t.$data[Se];if(i)return i;const r=F.getParentDomain(t);let s=e||`domain-${Dt()}`;return i=new F(r,s,t),n&&(t.$data[Rt]=!0),t.$data[Se]=i,t.$once("hook:destroyed",()=>{t.$data[Se]=void 0,t.$data[Rt]=void 0,i[gi]()}),i}function he(t){return t.$data&&t.$data[Se]||F.getParentDomain(t)}const Ss=Symbol.for("getModelItems");let yn=["require","required","email","url","date","dateISO","number","digit","creditcard"];class Ft{static install(e){let i=Pt(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(yn.indexOf(g)!=-1){if(`${e.$attrs[g]}`==="false")continue;l.push(g)}for(let g in e.$props)if(yn.indexOf(g)!=-1){if(`${e.$props[g]}`==="false")continue;l.push(g)}let o=F.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=Pt(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=F.getDomain(e)[Ss](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 _={rule:d,message:h};l(m,d);let $=s.add(p,a,_,m);$.destroy=()=>{s.remove(p)},m.$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=Pt(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,Nt=new Map;function $i(t,e,n){if(n){let i=Nt.get(n);i||(i=new Map,Nt.set(n,i)),i.set(t,e)}else yi.set(t,e)}function we(t,e){let n=null;if(e){let i=Nt.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];$i(n,i,e)}}function ws(t){Nt.delete(t)}const Je=Symbol("$navigations"),Mt=Symbol("$listeners"),Te=Symbol("$queueMap"),bi="*",At=Symbol("$circle"),Et=Symbol("$headerTabInesx"),Ot=Symbol("$contentTabIndex"),jt=Symbol("$footerTabIndex"),Ts=Symbol.for("$ProxyView");function He(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 qt(t){return t._uid||-1}function Ht(t){if(t.componentInstance)return t.componentInstance._uid;let{id:e}=t.elm;return e||(e=t.key),e}class Cs{[Je]=new Map;[Mt]=new Map;[Te]=new Map;[At]=!0;[Et]=1;[Ot]=void 0;[jt]=2;setCircleCursor(e){this[At]=e}setHeaderTabIndex(e){this[Et]=e}setContentTabIndex(e){this[Ot]=e}setFooterTabIndex(e){this[jt]=e}addNavigation(e,n){this[Je].set(e,n)}focusFirst(e){if(this.isAPISupport())return;let n=e._uid,i=this[Te].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()&&we("keyTap")("tab")}bind(e,n,i,r=!1,s=!1){let l=He(n),o=qt(l),a=Ht(n);if(!a)return;let u=m=>{setTimeout(()=>{this.navigate(n,i,m)},0)};if(this[Mt].set(a,u),e.addEventListener("keydown",u,{passive:!0}),e.addEventListener("keyproxy",u,{passive:!0}),this.isAPISupport()){r===!0&&this[Et]!==void 0?e.setAttribute("tabindex",`${this[Et]}`):s===!0&&this[jt]!==void 0?e.setAttribute("tabindex",`${this[jt]}`):this[Ot]!==void 0&&e.setAttribute("tabindex",`${this[Ot]}`);return}let d=Ur(e),f=this[Te].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 m=f[c];if(!(r===!0&&m.headerScope!==!0)){if(r!==!0&&m.headerScope===!0){f.splice(c+1,0,g);break}if(s===!0&&m.footerScope!==!0){f.splice(c+1,0,g);break}if(!(s!==!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[Te].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=He(n),o=qt(l),a=Ht(n);if(!a)return;let u=this[Mt].get(a);if(u&&(e.removeEventListener("keydown",u),e.removeEventListener("keyproxy",u),this[Mt].delete(a)),this.isAPISupport())return;let d=this[Te].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[Te].delete(o)}}isAPISupport(){let e=we("isKeyTapSupport");return typeof e=="function"?e():!1}getNavigation(e){let n=this[Je].get(e);return n||(n=this[Je].get(bi)),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&&ri(r.$el);return}let{elm:s}=e;s&&typeof s.focus=="function"&&(s.focus(),ri(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(ut(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()){we("keyTap")("tab",["shift"]);return}let i=He(e),r=qt(i),s=Ht(e),l=this.getNavigation(n),o=this.findPreviousNode(r,s,l,n);o&&this.focus(o,l,n)}forward(e,n){if(this.isAPISupport()){we("keyTap")("tab");return}let i=He(e),r=qt(i),s=Ht(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[Te].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[At])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[Te].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[At])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[Je].get(n);l||(l=this[Je].get(bi)),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[Te].get(e);return i?i.find(s=>s.vnode.componentInstance&&s.vnode.componentInstance===n):null}}let Pe=new Cs;const ft=[];function vi(t){qe().setOption("pageLayout",t),ft.forEach(n=>{try{n(t)}catch(i){console.error(i)}})}function ks(){return qe().getOption("pageLayout")}function Is(t){ft.indexOf(t)===-1&&ft.push(t)}function Rs(t){const e=ft.indexOf(t);e!==-1&&ft.splice(e,1)}const _e="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 Ps(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 $n(t,e){t.setOption(_e,e)}function Ls(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=qe(),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;Ps(i,l,e);const o=F.getParentDomainProperty(t.vm,_e);o&&(i.height=vn(t,o),i.width=xn(t,o));const a=u=>{o?(i.height=vn(t,o),i.width=xn(t,o)):(i.height=u.height,i.width=u.width),t.setOption(_e,i)};return Is(a),t.vm.$once("hook:destroyed",()=>{Rs(a)}),t.setOption(_e,i),i}function ke(t){return t.getOption(_e)}function bn(t,e){return e=e||t.getOption(_e),e&&e.headerMounted?e.headerHeight+e.safeAreaTop:0}function Vt(t,e){return e=e||t.getOption(_e),e&&e.footerMounted?e.footerHeight+e.safeAreaBottom:0}function vn(t,e){if(e=e||t.getOption(_e),e){const n=bn(t,e),i=Vt(t,e);return e.height-n-i-(e.contentPadding.top??0)-(e.contentPadding.bottom??0)}return 0}function xn(t,e){return e=e||t.getOption(_e),e?e.width-(e.contentPadding.left??0)-(e.contentPadding.right??0):0}function Fs(t,e){const i=qe().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 Ns(t,e){const n=t.getOption(_e);n&&(n.contentHeight=e,t.setOption(_e,n))}var xi={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(ve,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",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{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("_")},y=function(L,I,M){var j=String(L);return!j||j.length>=I?L:""+Array(I+1-j.length).join(M)+L},b={s:y,z:function(L){var I=-L.utcOffset(),M=Math.abs(I),j=Math.floor(M/60),E=M%60;return(I<=0?"+":"-")+y(j,2,"0")+":"+y(E,2,"0")},m:function L(I,M){if(I.date()<M.date())return-L(M,I);var j=12*(M.year()-I.year())+(M.month()-I.month()),E=I.clone().add(j,f),w=M-E<0,T=I.clone().add(j+(w?-1:1),f);return+(-(j+(M-E)/(w?E-T:T-E))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:f,y:c,w:d,d:u,D:m,h:a,m:o,s:l,ms:s,Q:g}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},R="en",P={};P[R]=$;var x=function(L){return L instanceof O},v=function L(I,M,j){var E;if(!I)return R;if(typeof I=="string"){var w=I.toLowerCase();P[w]&&(E=w),M&&(P[w]=M,E=w);var T=I.split("-");if(!E&&T.length>1)return L(T[0])}else{var A=I.name;P[A]=I,E=A}return!j&&E&&(R=E),E||!j&&R},C=function(L,I){if(x(L))return L.clone();var M=typeof I=="object"?I:{};return M.date=L,M.args=arguments,new O(M)},k=b;k.l=v,k.i=x,k.w=function(L,I){return C(L,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var O=function(){function L(M){this.$L=v(M.locale,null,!0),this.parse(M)}var I=L.prototype;return I.parse=function(M){this.$d=function(j){var E=j.date,w=j.utc;if(E===null)return new Date(NaN);if(k.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var T=E.match(h);if(T){var A=T[2]-1||0,q=(T[7]||"0").substring(0,3);return w?new Date(Date.UTC(T[1],A,T[3]||1,T[4]||0,T[5]||0,T[6]||0,q)):new Date(T[1],A,T[3]||1,T[4]||0,T[5]||0,T[6]||0,q)}}return new Date(E)}(M),this.$x=M.x||{},this.init()},I.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},I.$utils=function(){return k},I.isValid=function(){return this.$d.toString()!==p},I.isSame=function(M,j){var E=C(M);return this.startOf(j)<=E&&E<=this.endOf(j)},I.isAfter=function(M,j){return C(M)<this.startOf(j)},I.isBefore=function(M,j){return this.endOf(j)<C(M)},I.$g=function(M,j,E){return k.u(M)?this[j]:this.set(E,M)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(M,j){var E=this,w=!!k.u(j)||j,T=k.p(M),A=function(ce,U){var se=k.w(E.$u?Date.UTC(E.$y,U,ce):new Date(E.$y,U,ce),E);return w?se:se.endOf(u)},q=function(ce,U){return k.w(E.toDate()[ce].apply(E.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(U)),E)},H=this.$W,z=this.$M,X=this.$D,Z="set"+(this.$u?"UTC":"");switch(T){case c:return w?A(1,0):A(31,11);case f:return w?A(1,z):A(0,z+1);case d:var J=this.$locale().weekStart||0,ae=(H<J?H+7:H)-J;return A(w?X-ae:X+(6-ae),z);case u:case m:return q(Z+"Hours",0);case a:return q(Z+"Minutes",1);case o:return q(Z+"Seconds",2);case l:return q(Z+"Milliseconds",3);default:return this.clone()}},I.endOf=function(M){return this.startOf(M,!1)},I.$set=function(M,j){var E,w=k.p(M),T="set"+(this.$u?"UTC":""),A=(E={},E[u]=T+"Date",E[m]=T+"Date",E[f]=T+"Month",E[c]=T+"FullYear",E[a]=T+"Hours",E[o]=T+"Minutes",E[l]=T+"Seconds",E[s]=T+"Milliseconds",E)[w],q=w===u?this.$D+(j-this.$W):j;if(w===f||w===c){var H=this.clone().set(m,1);H.$d[A](q),H.init(),this.$d=H.set(m,Math.min(this.$D,H.daysInMonth())).$d}else A&&this.$d[A](q);return this.init(),this},I.set=function(M,j){return this.clone().$set(M,j)},I.get=function(M){return this[k.p(M)]()},I.add=function(M,j){var E,w=this;M=Number(M);var T=k.p(j),A=function(z){var X=C(w);return k.w(X.date(X.date()+Math.round(z*M)),w)};if(T===f)return this.set(f,this.$M+M);if(T===c)return this.set(c,this.$y+M);if(T===u)return A(1);if(T===d)return A(7);var q=(E={},E[o]=i,E[a]=r,E[l]=n,E)[T]||1,H=this.$d.getTime()+M*q;return k.w(H,this)},I.subtract=function(M,j){return this.add(-1*M,j)},I.format=function(M){var j=this,E=this.$locale();if(!this.isValid())return E.invalidDate||p;var w=M||"YYYY-MM-DDTHH:mm:ssZ",T=k.z(this),A=this.$H,q=this.$m,H=this.$M,z=E.weekdays,X=E.months,Z=function(U,se,Fe,Ne){return U&&(U[se]||U(j,w))||Fe[se].slice(0,Ne)},J=function(U){return k.s(A%12||12,U,"0")},ae=E.meridiem||function(U,se,Fe){var Ne=U<12?"AM":"PM";return Fe?Ne.toLowerCase():Ne},ce={YY:String(this.$y).slice(-2),YYYY:this.$y,M:H+1,MM:k.s(H+1,2,"0"),MMM:Z(E.monthsShort,H,X,3),MMMM:Z(X,H),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:Z(E.weekdaysMin,this.$W,z,2),ddd:Z(E.weekdaysShort,this.$W,z,3),dddd:z[this.$W],H:String(A),HH:k.s(A,2,"0"),h:J(1),hh:J(2),a:ae(A,q,!0),A:ae(A,q,!1),m:String(q),mm:k.s(q,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:T};return w.replace(_,function(U,se){return se||ce[U]||T.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(M,j,E){var w,T=k.p(j),A=C(M),q=(A.utcOffset()-this.utcOffset())*i,H=this-A,z=k.m(this,A);return z=(w={},w[c]=z/12,w[f]=z,w[g]=z/3,w[d]=(H-q)/6048e5,w[u]=(H-q)/864e5,w[a]=H/r,w[o]=H/i,w[l]=H/n,w)[T]||H,E?z:k.a(z)},I.daysInMonth=function(){return this.endOf(f).$D},I.$locale=function(){return P[this.$L]},I.locale=function(M,j){if(!M)return this.$L;var E=this.clone(),w=v(M,j,!0);return w&&(E.$L=w),E},I.clone=function(){return k.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},L}(),V=O.prototype;return C.prototype=V,[["$ms",s],["$s",l],["$m",o],["$H",a],["$W",u],["$M",f],["$y",c],["$D",m]].forEach(function(L){V[L[1]]=function(I){return this.$g(I,L[0],L[1])}}),C.extend=function(L,I){return L.$i||(L(I,O,C),L.$i=!0),C},C.locale=v,C.isDayjs=x,C.unix=function(L){return C(1e3*L)},C.en=P[R],C.Ls=P,C.p={},C})})(xi);const ye=xi.exports;var Si={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(ve,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(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 _=h.match(/([+-]|\d\d)/g),$=60*_[1]+(+_[2]||0);return $===0?0:_[0]==="+"?-$:$}(p)}],f=function(p){var h=o[p];return h&&(h.indexOf?h:h.s.concat(h.f))},g=function(p,h){var _,$=o.meridiem;if($){for(var y=1;y<=24;y+=1)if(p.indexOf($(y,0,h))>-1){_=y>12;break}}else _=p===(h?"pm":"PM");return _},c={A:[l,function(p){this.afternoon=g(p,!1)}],a:[l,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:[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(p){var h=o.ordinal,_=p.match(/\d+/);if(this.day=_[0],h)for(var $=1;$<=31;$+=1)h($).replace(/\[|\]/g,"")===p&&(this.day=$)}],M:[s,u("month")],MM:[r,u("month")],MMM:[l,function(p){var h=f("months"),_=(f("monthsShort")||h.map(function($){return $.slice(0,3)})).indexOf(p)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[l,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,_;h=p,_=o&&o.formats;for(var $=(p=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,k,O){var V=O&&O.toUpperCase();return k||_[O]||n[O]||_[V].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(L,I,M){return I||M.slice(1)})})).match(i),y=$.length,b=0;b<y;b+=1){var R=$[b],P=c[R],x=P&&P[0],v=P&&P[1];$[b]=v?{regex:x,parser:v}:R.replace(/^\[|\]$/g,"")}return function(C){for(var k={},O=0,V=0;O<y;O+=1){var L=$[O];if(typeof L=="string")V+=L.length;else{var I=L.regex,M=L.parser,j=C.slice(V),E=I.exec(j)[0];M.call(k,E),C=C.replace(E,"")}}return function(w){var T=w.afternoon;if(T!==void 0){var A=w.hours;T?A<12&&(w.hours+=12):A===12&&(w.hours=0),delete w.afternoon}}(k),k}}return function(p,h,_){_.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(a=p.parseTwoDigitYear);var $=h.prototype,y=$.parse;$.parse=function(b){var R=b.date,P=b.utc,x=b.args;this.$u=P;var v=x[1];if(typeof v=="string"){var C=x[2]===!0,k=x[3]===!0,O=C||k,V=x[2];k&&(V=x[2]),o=this.$locale(),!C&&V&&(o=_.Ls[V]),this.$d=function(j,E,w){try{if(["x","X"].indexOf(E)>-1)return new Date((E==="X"?1e3:1)*j);var T=m(E)(j),A=T.year,q=T.month,H=T.day,z=T.hours,X=T.minutes,Z=T.seconds,J=T.milliseconds,ae=T.zone,ce=new Date,U=H||(A||q?1:ce.getDate()),se=A||ce.getFullYear(),Fe=0;A&&!q||(Fe=q>0?q-1:ce.getMonth());var Ne=z||0,Vn=X||0,Wn=Z||0,Bn=J||0;return ae?new Date(Date.UTC(se,Fe,U,Ne,Vn,Wn,Bn+60*ae.offset*1e3)):w?new Date(Date.UTC(se,Fe,U,Ne,Vn,Wn,Bn)):new Date(se,Fe,U,Ne,Vn,Wn,Bn)}catch{return new Date("")}}(R,v,P),this.init(),V&&V!==!0&&(this.$L=this.locale(V).$L),O&&R!=this.format(v)&&(this.$d=new Date("")),o={}}else if(v instanceof Array)for(var L=v.length,I=1;I<=L;I+=1){x[1]=v[I-1];var M=_.apply(this,x);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}I===L&&(this.$d=new Date(""))}else y.call(this,b)}}})})(Si);const Ms=Si.exports;var Di={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(ve,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)}}})})(Di);const As=Di.exports;var wi={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(ve,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,m,p){var h=f.name?f:f.$locale(),_=l(h[g]),$=l(h[c]),y=_||$.map(function(R){return R.slice(0,m)});if(!p)return y;var b=h.weekStart;return y.map(function(R,P){return y[(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(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}};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)}}})})(wi);const Es=wi.exports;var Ti={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(ve,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)}}})})(Ti);const Os=Ti.exports;var Ci={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(ve,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}}})})(Ci);const js=Ci.exports;var ki={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(ve,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")}}})})(ki);const qs=ki.exports;var Ii={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(ve,function(){return function(n,i){i.prototype.isSameOrAfter=function(r,s){return this.isSame(r,s)||this.isAfter(r,s)}}})})(Ii);const Hs=Ii.exports;var Ri={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(ve,function(){return function(n,i){i.prototype.isSameOrBefore=function(r,s){return this.isSame(r,s)||this.isBefore(r,s)}}})})(Ri);const Vs=Ri.exports;ye.extend(Es),ye.extend(As),ye.extend(Ms),ye.extend(Os),ye.extend(js),ye.extend(qs),ye.extend(Hs),ye.extend(Vs);const W={format(t,e){return ye(t).format(e)},parser(t,e){return ye(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:an,getClientHeight:wt,getClientWidth:ot,offsetHeight:xe,offsetLeft:cn,offsetWidth:Ze,offsetTop:un,getUUID:Qn,addEventHandler:ii,removeEventHandler:Qr,renderText:qr,isEmptyString:Ae,toBoolean:G,toNumber:te,judge:me,moneyFormat:zr,unMoneyFormat:Yr,numberFormat:Xe,unNumberFormat:Oe,isEqual:dn,inScope4Day:ls,inScope4Month:as,getCurrentDay:us,getCurrentMonth:os,multiply:cs,divide:ai,add:fs,subtract:ds,getNumValue:hs,getPrettyNumValue:ps,round:ms,floor:gs,ceil:_s,modulus:ys,compareTo:oi,debounce:es,throttle:hn,negate:$s,setValidate:Ft.setNode,setLockTip:ie.setLock,setErrorTip:ie.setError,resetErrorTip:ie.resetError,setWarnTip:ie.setWarn,resetWarnTip:ie.resetWarn,setInfoTip:ie.setInfo,resetInfoTip:ie.resetInfo,cursorNavigation:Pe,Domain:F,getFirstDomain:qe,getPageFooterAreaHeight:Vt,setAPI:$i,getAPI:we,batchSetAPI:Ds,clearScopeAPI:ws,DateUtils:W};const T_="",C_="",k_="";function Bs(t){return F.getDomainProperty(t,"navigateEventTriggerPolicy","none")}function Pi(t,e){const n=Bs(t);if(n==="inPage"&&e!=="focus"){const i=Ee(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 Ve(t,e,...n){if(!t.pageScope){Reflect.apply(t.$emit,t,[e,...n]);return}if(e=="blur")setTimeout(()=>{!Pi(t,e)||Reflect.apply(t.$emit,t,[e,...n])},0);else if(e=="focus"){if(!Pi(t,e))return;Reflect.apply(t.$emit,t,[e,...n])}else Reflect.apply(t.$emit,t,[e,...n])}function We(){return"80px"}function Be(){return"right"}function Ks(){return-1}function zs(){return 32}function Wt(){return 16}function B(t,e){t=t.replace(`
8
+ `,"").trim();let n=e||Wt();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",...yn];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 oe(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 Ke(t,e,n,i=1,r=32){if(e<=0||i=="stretch"||i=="all"||i==-1)return-1;if(typeof i=="string"){if(!at(i))return i;i=Number(i)}i<=0&&(i=1),typeof n=="string"&&(n=Number(n)),n=n<=0?1:n;let s=F.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?Ke(t,e,n-1,i,r):s:o*i+(i-1)*r}function re(t,e){!(e.key||e.attrs&&e.attrs.key||e.props&&e.props.key)&&t.innerUniqueKey&&(e.key=t.innerUniqueKey)}function Fi(t){let e=t.$data;return!!(e&&e[Re]===!0||(e=t.$parent&&t.$parent&&t.$parent.$data,e&&e[Re]===!0))}function Ni(t){let e=t.$data;if(e&&e[Re]===!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(Xn(n))return!0}return!1}function Mi(t){let e=t.$data;return!!(e&&e[Yn]===!0)}function Gs(t){if(!t)return;if(Mi(t))return t;if(Fi(t))return;let e=t.$parent;for(let n=0;n<10;n++){if(Mi(e))return e;if(Fi(t))return;e=e.$parent}}const ue={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(!K(this.errorTip)||!K(this.innerErrorTip)||!K(this.higherErrorTip)?(e.type="error",e.text=this.higherErrorTip||this.errorTip||this.innerErrorTip,e.icon=this.errorIcon||this.innerErrorIcon):!K(this.warnTip)||!K(this.innerWarnTip)?(e.type="warn",e.text=this.warnTip||this.innerWarnTip,e.icon=this.warnIcon||this.innerWarnIcon):(!K(this.infoTip)||!K(this.innerInfoTip))&&(e.type="info",e.text=this.infoTip||this.innerInfoTip,e.icon=this.infoIcon||this.innerInfoIcon),e.type!=="none"){let n=[];if(!K(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){Ve(this,"focus",t)},onBlur(t){Ve(this,"blur",t)},onClear(t){this.$emit("clear",t)}},computed:{mStyle(){if(this.groupScope){const t=F.getFitProperty(this,"spacing",32),e=F.getParentDomainProperty(this,"column",1),n=F.getParentDomainProperty(this,"groupWidth",-1),i=Ke(this,n,e,this.span,t);return{width:i<=0?"100%":`${i}px`}}else return{}},mLabelStyle(){return this.hasLabel()?F.getFitProperty(this,"labelPosition",Be())==="top"?{}:{width:`${F.getFitProperty(this,"labelWidth",We())}`}:{}},mInputStyle(){return this.hasLabel()?F.getFitProperty(this,"labelPosition",Be())==="top"?{}:{"margin-left":`${F.getFitProperty(this,"labelWidth",We())}`}:{}},mReadonly(){return F.isReadonly(this)},mDisabled(){return F.isDisabled(this)},mSize(){return F.getFitProperty(this,"size","medium")},mLabelMaxCharCount(){let t=F.getFitProperty(this,"labelMaxCharCount",Wt());return Number(t)}},beforeCreate(){},created(){this.$data&&(this.$data[Re]=this.groupScope,this.$data.innerUniqueKey=Dt())},mounted(){},beforeDestroy(){}};let Ai={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(!K(this.errorTip)||!K(this.innerErrorTip)||!K(this.higherErrorTip)?(e.type="error",e.text=this.higherErrorTip||this.errorTip||this.innerErrorTip,e.icon=this.errorIcon||this.innerErrorIcon):!K(this.warnTip)||!K(this.innerWarnTip)?(e.type="warn",e.text=this.warnTip||this.innerWarnTip,e.icon=this.warnIcon||this.innerWarnIcon):(!K(this.infoTip)||!K(this.innerInfoTip))&&(e.type="info",e.text=this.infoTip||this.innerInfoTip,e.icon=this.infoIcon||this.innerInfoIcon),e.type!=="none"){let n=[];if(!K(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=F.getFitProperty(this,"spacing",32),e=F.getParentDomainProperty(this,"column",1),n=F.getParentDomainProperty(this,"groupWidth",-1),i=Ke(this,n,e,this.span,t);return{width:i<=0?"100%":`${i}px`}}else return{}},mLabelStyle(){return this.hasLabel()?F.getFitProperty(this,"labelPosition",Be())==="top"?{}:{width:`${F.getFitProperty(this,"labelWidth",We())}`}:{}},mInputStyle(){return this.hasLabel()?F.getFitProperty(this,"labelPosition",Be())==="top"?{}:{"margin-left":`${F.getFitProperty(this,"labelWidth",We())}`}:{}},mReadonly(){return F.isReadonly(this)},mDisabled(){return F.isDisabled(this)},mSize(){return F.getFitProperty(this,"size","medium")},mLabelMaxCharCount(){let t=F.getFitProperty(this,"labelMaxCharCount",Wt());return Number(t)},mClearHotkey(){return F.getFitProperty(this,"clearHotkey","")},mSelectHotkey(){return F.getFitProperty(this,"selectHotkey","Enter")},mExpandHotkey(){return F.getFitProperty(this,"expandHotkey","")}},beforeCreate(){},created(){this.$data&&(this.$data[Re]=this.groupScope,this.$data.innerUniqueKey=Dt())},mounted(){},beforeDestroy(){}};const Xs=["label","placeholder","title","range-separator","start-placeholder","end-placeholder"];function Ei(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=Ei(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=Ei(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 Qs(t,e,n){let i,r,s=0,l=0,o;t?(o="absolute",s=n.offsetLeft||0,l=n.offsetTop||0,i=`${Ze(t)-s}px`,r=`${xe(t)-l}px`):(o="fixed",i="100%",r="100%");let a=`position: ${o}; width:${i}; height:${r}`,u;n.shade?u=`
9
+ <div class="tea-m-layer-shade" style="${a}"></div>
10
+ <div class="tea-m-layer-main" style="${a}">
11
+ <div class="tea-m-layer-child tea-m-layer-msg tea-m-anim-scale">
12
+ <div class="tea-m-layer-content">${e}</div>
13
+ </div>
14
+ </div>
15
+ `:u=`
16
+ <div class="tea-m-layer-main" style="${a}">
17
+ <div class="tea-m-layer-child tea-m-layer-msg tea-m-anim-scale">
18
+ <div class="tea-m-layer-content">${e}</div>
19
+ </div>
20
+ </div>
21
+ `;let d=Me().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=Qs(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(!(!fe||!(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)};const I_="";let Js={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(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 el=Symbol.for("handleNode"),Oi="fox_auth_scope";function ji(t,e,n){let{value:i}=e,{context:r}=n,s=me.getAuthScope(r);if(!!s){if(!me.hasAuths(s)){n.componentInstance._data[Oi]=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[Oi];return i&&me.unRegisterNode(i,n),!0}let nl={install(t){t.directive("auth",{inserted(e,n,i){ji(e,n,i)},update(e,n,i){ji(e,n,i)},unbind(e,n,i){tl(e,n,i)}})}};function Bt(t,e){let n=t.$parent;if(e._uid===n._uid)return{headerScope:!1,footerScope:!1};if(n.$data){if(n.$data[rn]===!0)return{headerScope:!1,footerScope:!1};if(n.$data[Kn]===!0)return{headerScope:!0,footerScope:!1};if(n.$data[zn]===!0)return{headerScope:!1,footerScope:!0}}return Bt(n,e)}let il={install(t,e={}){e.navigation&&Pe.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=He(r),d=Bt(r.componentInstance,u);l=d.headerScope,o=d.footerScope}r.componentInstance?Pe.bind(n,r,a,l,o):Pe.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=He(r),d=Bt(r.componentInstance,u);l=d.headerScope,o=d.footerScope}r.componentInstance?Pe.updated(n,r,a,l,o):Pe.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=He(r),d=Bt(r.componentInstance,u);l=d.headerScope,o=d.footerScope}r.componentInstance?Pe.unbind(n,r,a,l,o):Pe.unbind(n,r.context.$vnode,a,l,o)}})}};const R_="";class rl{get doc(){return Me()}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(!fe)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=Ze(e),{x:u,y:d}=on(e),f=u,g=d,c=f,m=g-o-l;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 _=ot()-(r.offsetWidth+c);_<0&&(c+=_,p-=_),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(!fe)return;let e=this.getHintBox(!1);e&&(e.style.display="none")}close(){if(!fe)return;let e=this.getHintBox(!1);e&&this.doc.body.removeChild(e)}}let sl="_hint_"+Qn(),ll={boxMinHeight:40,cellWidth:30},ze=new rl(sl,ll);const Kt=Symbol("HintFocusListenerKey"),zt=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=F.getDomainProperty(r.componentInstance,"hints");return u?u[o]:null};if(r.componentInstance){let u=e.querySelector("input")||e;const d=()=>{setTimeout(()=>{ze.show(u,a(),!0)},150)},f=()=>{ze.hide()};r[Kt]=d,r[zt]=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&&(ze.close(),typeof r[Kt]=="function"&&(r.componentInstance.$off("focus",r[Kt]),r[Kt]=void 0),typeof r[zt]=="function"&&(r.componentInstance.$off("blur",r[zt]),r[zt]=void 0))}})}};function qi(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 Hi(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=qi(t);return s=>{if(Hi(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 Yt=new WeakMap;function Sn(t,e){const n=qi(e);return Hi(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=Yt.get(t);return l||(l=[],Yt.set(t,l)),l.push(s),!0}function Dn(t,e,n){let i=-1,r=null;const s=Yt.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&&Yt.delete(t),!0):!1}function N(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 Vi(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 Wi(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=Wi(t,e,a);l.push(u)}r=t(n.tag,s,l)}return r}function Bi(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=Wi(t,n,l,r);i.push(o)})}return i}let wn={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,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 dl="fox-pagination",hl="el-pagination";var pl=D({name:dl,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(hl,i,e.children)}},null,null,!1,null,null,null,null);const ml=pl.exports,gl="fox-dialog",_l="el-dialog";var yl=D({name:gl,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(_l,i,e.children)}},null,null,!1,null,null,null,null);const $l=yl.exports,bl="fox-autocomplete",vl="el-autocomplete";var xl=D({name:bl,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(vl,i,e.children)}},null,null,!1,null,null,null,null);const Sl=xl.exports,Dl="fox-dropdown",wl="el-dropdown";var Tl=D({name:Dl,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(wl,i,e.children)}},null,null,!1,null,null,null,null);const Cl=Tl.exports,kl="fox-dropdown-menu",Il="el-dropdown-menu";var Rl=D({name:kl,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Il,i,e.children)}},null,null,!1,null,null,null,null);const Pl=Rl.exports,Ll="fox-dropdown-item",Fl="el-dropdown-item";var Nl=D({name:Ll,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Fl,i,e.children)}},null,null,!1,null,null,null,null);const Ml=Nl.exports,Al="fox-menu",El="el-menu";var Ol=D({name:Al,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(El,i,e.children)}},null,null,!1,null,null,null,null);const jl=Ol.exports,ql="fox-submenu",Hl="el-submenu";var Vl=D({name:ql,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Hl,i,e.children)}},null,null,!1,null,null,null,null);const Wl=Vl.exports,Bl="fox-menu-item",Kl="el-menu-item";var zl=D({name:Bl,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Kl,i,e.children)}},null,null,!1,null,null,null,null);const Yl=zl.exports,Ul="fox-menu-item-group",Gl="el-menu-item-group";var Xl=D({name:Ul,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Gl,i,e.children)}},null,null,!1,null,null,null,null);const Zl=Xl.exports;function Ki(t){let{model:e}=t;if(e)return{name:e.expression,relate:t.attrs["fox-model"]}}function Ut(t,e){if(e==null)return!1;let n=F.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 tt(t,e){let n=t.parent;if(!n.pageScope)return;let i=Ki(e);if(i&&(Ut(n,i.relate)||Ut(n,i.name)))return;let r=!1;Reflect.has(e.attrs,"readonly")&&(r=G(e.attrs.readonly)),e.attrs||(e.attrs={});let s=F.getDomainProperty(n,"readonly");s=G(s),r||s?e.attrs.readonly=!0:delete e.attrs.readonly}function Ie(t,e){let n=t.parent;if(!n.pageScope)return;let i=Ki(e);if(i&&(Ut(n,i.relate)||Ut(n,i.name)))return;let r=!1;Reflect.has(e.attrs,"disabled")&&(r=G(e.attrs.disabled)),e.attrs||(e.attrs={});let s=F.getDomainProperty(n,"disabled");s=G(s),r||s?e.attrs.disabled=!0:delete e.attrs.disabled}const Ql="fox-input",Jl="el-input";var ea=D({name:Ql,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return Ie(e,i),tt(e,i),n(Jl,i,e.children)}},null,null,!1,null,null,null,null);const ta=ea.exports,na="fox-input-number",ia="el-input-number";var ra=D({name:na,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(ia,i,e.children)}},null,null,!1,null,null,null,null);const sa=ra.exports,la="fox-radio",aa="el-radio";var oa=D({name:la,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return Ie(e,i),n(aa,i,e.children)}},null,null,!1,null,null,null,null);const ua=oa.exports,ca="fox-radio-group",fa="el-radio-group";var da=D({name:ca,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(fa,i,e.children)}},null,null,!1,null,null,null,null);const ha=da.exports,pa="fox-radio-button",ma="el-radio-button";var ga=D({name:pa,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return Ie(e,i),tt(e,i),n(ma,i,e.children)}},null,null,!1,null,null,null,null);const _a=ga.exports,ya="fox-checkbox",$a="el-checkbox";var ba=D({name:ya,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return Ie(e,i),n($a,i,e.children)}},null,null,!1,null,null,null,null);const va=ba.exports,xa="fox-checkbox-button",Sa="el-checkbox-button";var Da=D({name:xa,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return Ie(e,i),n(Sa,i,e.children)}},null,null,!1,null,null,null,null);const wa=Da.exports,Ta="fox-checkbox-group",Ca="el-checkbox-group";var ka=D({name:Ta,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Ca,i,e.children)}},null,null,!1,null,null,null,null);const Ia=ka.exports,Ra="fox-switch",Pa="el-switch";var La=D({name:Ra,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Pa,i,e.children)}},null,null,!1,null,null,null,null);const Fa=La.exports,Na="fox-select",Ma="el-select";var Aa=D({name:Na,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return Ie(e,i),tt(e,i),n(Ma,i,e.children)}},null,null,!1,null,null,null,null);const Ea=Aa.exports,Oa="fox-option",ja="el-option";var qa=D({name:Oa,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(ja,i,e.children)}},null,null,!1,null,null,null,null);const Ha=qa.exports,Va="fox-option-group",Wa="el-option-group";var Ba=D({name:Va,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Wa,i,e.children)}},null,null,!1,null,null,null,null);const Ka=Ba.exports,za="fox-button-group",Ya="el-button-group";var Ua=D({name:za,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Ya,i,e.children)}},null,null,!1,null,null,null,null);const Ga=Ua.exports,Xa="fox-table",Za="el-table";var Qa=D({name:Xa,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Za,i,e.children)}},null,null,!1,null,null,null,null);const Ja=Qa.exports,eo="fox-table-column",to="el-table-column";var no=D({name:eo,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(to,i,e.children)}},null,null,!1,null,null,null,null);const io=no.exports;function ro(t){return t===window}const zi=t=>{const e=S.unref(t);if(ro(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 dt=0;const Yi="fox-overflow-hidden",so=t=>[()=>{t()&&(!dt&&document.body.classList.add(Yi),dt++)},()=>{t()&&dt&&(dt--,!dt&&document.body.classList.remove(Yi))}],Ui={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 $e(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:lo,create:ao}=$e("overlay"),oo=ao({props:Ui,emits:["click","update:visible"],setup(t,{emit:e}){const n=S.computed(()=>({[lo]:!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 uo=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)])},co=[],fo=D(oo,uo,co,!1,null,null,null,null);const Tn=fo.exports,Le=t=>t instanceof Date,Gt=t=>t!==null&&typeof t=="object",ho=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;class Cn{static seed=new Date().getTime();static get(){let e=++Cn.seed;return e>=Number.MAX_VALUE&&(Cn.seed=0),e}}ho&&Promise.resolve();function pe(t){return typeof t=="number"?t:Number(t)}const po={"[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 Gi(t){let n=Object.prototype.toString.call(t);return t==null?String(t):po[n]||"object"}function kn(t,e){if(t==e)return!0;if(t===void 0||e===void 0)return!1;let n=Gi(t),i=Gi(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 Xi=typeof window<"u",mo=Xi&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function Zi(t){return t==null||t==null?0:typeof t=="string"?t.length:`${t}`.length}function In(t,...e){const n={};return e.forEach(i=>{for(const r in i)n[r]=t[r]}),n}function nt(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 ht=t=>t?`${go(t)}px`:"";function go(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(Xi){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:Qi,create:_o}=$e("ext-icon"),yo=_o({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?`${Qi}__img`:`${t.fontClassName} ${Qi} ${t.classPrefix}-${t.name}`,style:{color:t.color,fontSize:ht(t.size),width:ht(t.size),height:ht(t.size)},on:{click:i},attrs:{src:s?t.name:""}},n.default?.())}}});var $o=D(yo,null,null,!1,null,null,null,null);const pt=$o.exports,Rn={...Ui,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:bo,create:vo}=$e("popup");let Ji=2e3;const xo=vo({components:{[Tn.name]:Tn,[pt.name]:pt},props:{...Rn},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]=so(()=>t.lockScroll),l=S.computed(()=>({[bo]:!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&&(Ji=Number(t.zIndex)),e("update:visible",!0),r(),i.zIndex=++Ji,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=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&&s()}),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:l,onClick:d,onClickCloseIcon:f,onClickOverlay:g,onOpened:c,onClosed:m,popupRef:n}}});var So=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)},Do=[],wo=D(xo,So,Do,!1,null,null,null,null);const Xt=wo.exports,er=10;function To(t,e){return t>e&&t>er?"horizontal":e>t&&e>er?"vertical":""}function Co(){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:h=>{const _=h.touches[0];l.value=_.clientX-t.value,o.value=_.clientY-e.value,r.value=_.clientX,s.value=_.clientY,a.value=Math.abs(l.value),u.value=Math.abs(o.value),i.value=Date.now()-n.value,d.value||(d.value=To(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:s,deltaX:l,deltaY:o,offsetX:a,offsetY:u,direction:d,isVertical:f,isHorizontal:g}}const tr={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}},nr={...Rn,...tr,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 Pn(t){return t.$route&&t.$route.params&&t.$route.params.microAppName}function ir(t,e){const n=Pn(t);return we(e,n)}let rr=36;function ko(){return rr}function Io(t){rr=t}function be(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 Ln(t,e){return typeof t.childrenKey=="string"&&t.childrenKey.length>0?e[t.childrenKey]:e.children??null}function Ro(t,e,n){typeof t.childrenKey=="string"&&t.childrenKey.length>0&&(e[t.childrenKey]=n),e.children=n}function sr(t,e){return typeof t.columnOptions=="function"?t.columnOptions(e):t.columnOptions}class Po{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=ir(this.proxy,e);return r===null?(console.error(`${e} component not found api function`),[]):(Gt(i)&&S.isReactive(i)&&(i=S.toRaw(i)),await r(n,i))}}function Lo(){const t=S.getCurrentInstance();return new Po(t.proxy)}function lr(t,e,n){const i=be(t,e),r=be(t,n);if(i!==r)return!1;const s=Ye(t,e),l=Ye(t,n);return s===l}function Fo(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 be(t,d)===o;if(s==="value"){let f=Ye(t,d);return f==null&&(f=be(t,d)),f===o}else if(s==="item")return lr(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 be(t,f)===a;if(s==="value"){let g=Ye(t,f);return g==null&&(g=be(t,f)),g===a}else if(s==="item")return lr(t,f,a);return!1});if(u==-1)break;r.push(u);const d=Ln(t,l[u]);if(!Array.isArray(d))break;l=d}}return r}function ar(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=be(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=be(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 or(t){return{text:t,value:t}}const No=15,Mo=300,Ao=200,{create:Eo}=$e("picker-column");function Oo(t){t.stopPropagation()}function jo(t,e){(typeof t.cancelable!="boolean"||t.cancelable)&&t.preventDefault(),e&&Oo(t)}const qo=Eo({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},...tr},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:`${pe(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=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:`${s.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+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=S.toRef(t,"source"),c=v=>be(t,v),m=v=>Ye(t,v),p=Co(),h=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},_=(v,C=!1,k=!1)=>{if(f.currIndex=v,C){const O=()=>{f.moving=!1,e("update:modelValue",v),e("change",v)};k?f.transitionEndTrigger=O:O()}},$=(v,C,k)=>{let O=v+f.startDistance;if(C==="end"){const V=-(g.value.length-1)*t.itemHeight;O<V&&(O=V,(!k||k<=0)&&(k=t.swipeDuration)),O>0&&(O=0,(!k||k<=0)&&(k=t.swipeDuration));let L=Math.abs(Math.round(-O/t.itemHeight));const I=-L*t.itemHeight,M=`${(L+1)*f.rotation}deg`,j=k?k>0:!1;_(L,!0,j),y(I,C,k,M)}else{let V=(-O/t.itemHeight+1)*f.rotation;const L=(g.value.length+1)*f.rotation,I=0;if(V=Math.min(Math.max(V,I),L),t.threeDimensional&&(V<I||V>L))return;y(O,null,void 0,`${V}deg`)}},y=(v=0,C,k=Ao,O)=>{C==="end"?f.scrollTime=k:f.scrollTime=0,f.deg=O,f.scrollDistance=v},b=(v,C)=>(v=Math.abs(v/C)/.003*(v<0?-1:1),v),R=v=>{if(!t.readonly){if(f.moving){const C=d.value,{transform:k}=window.getComputedStyle(C);f.scrollDistance=+k.slice(7,k.length-1).split(", ")[5]}f.startDistance=f.scrollDistance,p.start(v),f.transitionEndTrigger=null}},P=v=>{t.readonly||(f.moving=!0,p.move(v),p.isVertical()&&(f.moving=!0,jo(v,!0)),$(p.deltaY.value,"",0))},x=()=>{if(t.readonly)return;const v=p.deltaY.value,C=p.duration.value;if(C<Mo&&Math.abs(v)>No){const O=b(v,C);$(O,"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:be,onTouchStart:R,onTouchMove:P,onTouchEnd:x,isHidden:l,setRollerStyle:a,touchRollerStyle:o,touchTileStyle:u,stopMomentum:h}}});var Ho=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)])},Vo=[],Wo=D(qo,Ho,Vo,!1,null,null,null,null);const ur=Wo.exports,{create:Bo,componentName:Ko}=$e("picker"),zo=Bo({components:{[ur.name]:ur,[Xt.name]:Xt},props:{...nr},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(ko());S.watch(()=>t.visible,v=>{v&&i.value<=0&&setTimeout(()=>{if(n.value){const C=zi(n.value);i.value=C.height,Io(i.value)}},50)});const r=S.computed(()=>({[Ko]:!0})),s=Lo(),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 C=v[0];if(Array.isArray(C)){if(typeof C[0]=="string"){let k=v,O=[];k.forEach(V=>{let L=V.map(I=>or(I));O.push(L)}),o.value=O}else o.value=v;l.value="multipleColumn"}else if(typeof C=="string"){let k=v,O=[],V=k.map(L=>or(L));O.push(V),o.value=O,l.value="singleColumn"}else{const k=Ln(t,C);Array.isArray(k)?(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,C])=>{let k=Fo(t,v,C,l.value);if(!kn(k,d.value)){d.value=k;let O=ar(t,k,C,l.value);O&&(a.value=O.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=sr(t,v);return Gt(C)?C.getDefaultIndex??0:0},c=v=>{if(t.readonly===!0)return!0;let C=sr(t,v);return Gt(C)?C.readonly??!1:!1},m=(v,C,k=!1)=>{let O=[...d.value];O[v]=C;for(let L=0;L<v;L++)O[L]==null&&(O[L]=g(L));if(l.value==="cascade")for(let L=v+1;L<h.value.length;L++){let I=g(L);L<O.length?O[L]=I:O.push(I)}else for(let L=O.length;L<h.value.length;L++){let I=g(L);O.push(I)}d.value=O;let V=ar(t,O,o.value,l.value);if(V&&(a.value=V.texts,u.value=V.values),k)if(l.value==="singleColumn"){let L=V&&V.values.length>0?V.values[0]:"";e("change",L)}else e("change",V?.values)},p=v=>v<d.value.length?d.value[v]:g(v),h=S.computed(()=>{if(o.value.length==0)return[];if(l.value=="singleColumn"||l.value=="multipleColumn")return o.value;let v=[],C=0,k=o.value[0],O=0;for(;;){let V=k.map(M=>{let j=Object.assign({},M);return Ro(t,j,null),j});v.push(V),C>=d.value.length?O=0:O=d.value[C],(O<0||O>=k.length)&&(O=0);let L=k[O];const I=Ln(t,L);if(!Array.isArray(I))break;k=I,C++}return v}),_=S.computed(()=>pe(+t.visibleItemCount-1)/2*i.value),$=S.computed(()=>pe(t.visibleItemCount)*i.value),y=S.computed(()=>({height:`${$.value+56}px`}));return{pickerLineRef:n,classes:r,popupStyles:y,columns:h,dataType:l,show:f,itemHeight:i,top:_,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),l.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}l.value==="singleColumn"?(e("update:modelValue",""),e("change","")):(e("update:modelValue",[]),e("change",[])),e("update:visible",!1),e("clear")}}}});var Yo=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(s){return e.change(r,s)}}})],1)})],2),e._t("default")],2)],1)},Uo=[],Go=D(zo,Yo,Uo,!1,null,null,null,null);const Zt=Go.exports,cr=new Date().getFullYear(),fr={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",["month-day"]:"MM-DD",datehour:"YYYY-MM-DD HH"},dr=(t,e,n)=>{let i;if(Le(e)?i=e:typeof e=="string"&&Zi(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)},hr=(t,e,n)=>{Le(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 pr={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(cr-10,0,1),validator:Le},maxDate:{type:Date,default:()=>new Date(cr+10,11,31),validator:Le},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},isWrapTeleport:{type:Boolean,default:!0}};const{create:Xo}=$e("date-picker"),Zo=Xo({components:{[Zt.name]:Zt},props:{...pr},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,_){return new Date(h,_,0).getDate()}const s=(h,_)=>{const $=t[`${h}Date`],y=$.getFullYear();let b=1,R=1,P=0,x=0;h==="max"&&(b=12,R=r(_.getFullYear(),_.getMonth()+1),P=23,x=59);const v=x;return _.getFullYear()===y&&(b=$.getMonth()+1,_.getMonth()+1===b&&(R=$.getDate(),_.getDate()===R&&(P=$.getHours(),_.getHours()===P&&(x=$.getMinutes())))),{[`${h}Year`]:y,[`${h}Month`]:b,[`${h}Date`]:R,[`${h}Hour`]:P,[`${h}Minute`]:x,[`${h}Seconds`]:v}},l=S.computed(()=>{if(!f.value)return[];const{maxYear:h,maxDate:_,maxMonth:$,maxHour:y,maxMinute:b,maxSeconds:R}=s("max",f.value),{minYear:P,minDate:x,minMonth:v,minHour:C,minMinute:k,minSeconds:O}=s("min",f.value);let V=[{type:"year",range:[P,h]},{type:"month",range:[v,$]},{type:"day",range:[x,_]},{type:"hour",range:[C,y]},{type:"minute",range:[k,b]},{type:"seconds",range:[O,R]}];switch(t.type){case"date":V=V.slice(0,3);break;case"datetime":V=V.slice(0,5);break;case"time":V=V.slice(3,6);break;case"month-day":V=V.slice(1,3);break;case"datehour":V=V.slice(0,4);break}return V}),o=(h,_,$)=>{if(!(_>h))return null;const y=[];for(;h<=_;)t.isShowChinese?y.push({text:h+n[$],value:h}):y.push({text:`${h}`,value:h}),$==="minute"?h+=t.minuteStep:h++;return y},a=S.computed(()=>{let h=[];return l.value.forEach(_=>{let $=o(_.range[0],_.range[1],_.type);$&&h.push($)}),h}),u=(h,_)=>h==="year"?_.getFullYear():h==="month"?_.getMonth()+1:h==="day"?_.getDate():h==="hour"?_.getHours():h==="minute"?_.getMinutes():h==="seconds"?_.getSeconds():0,d=S.ref(),f=S.ref();S.watchEffect(()=>{let h,_=t.modelValue;if(typeof _=="string"?_.length==0?h=new Date:t.valueFormat?h=dr(t,t.modelValue,t.valueFormat):h=dr(t,_,fr[t.type]):Le(_)?h=_:h=new Date,h!=null&&(!f.value||h.getTime()!==f.value.getTime())){f.value=h;let $=[];l.value.forEach(y=>{let b=u(y.type,h);$.push(b)}),d.value=$}});const g=h=>{if(t.type==="date"){let _=h;f.value=new Date(_[0],_[1]-1,Math.min(_[2],r(_[0],_[1])))}else if(t.type==="datetime"){let _=h;f.value=new Date(_[0],_[1]-1,Math.min(_[2],r(_[0],_[1])),_[3],_[4])}else if(t.type==="datehour"){let _=h;f.value=new Date(_[0],_[1]-1,Math.min(_[2],r(_[0],_[1])),_[3])}else if(t.type==="time"){let _=h,$=f.value??new Date,y=new Date($.getFullYear(),$.getMonth(),$.getDate(),_[0],_[1],_[2]);f.value=y}else if(t.type==="month-day"){let _=h,$=f.value??new Date,y=new Date($.getFullYear(),_[0]-1,_[1]);f.value=y}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 _=f.value??new Date;if(t.valueFormat){let $=hr(t,_,t.valueFormat);e("update:modelValue",$)}else e("update:modelValue",_);e("update:visible",!1),e("confirm",h)},onClear:()=>{i.value=!1,e("update:modelValue",""),e("update:visible",!1),e("clear")}}}});var Qo=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)})},Jo=[],eu=D(Zo,Qo,Jo,!1,null,null,null,null);const mr=eu.exports,tu="fox-time-select",nu="el-time-select";var iu=D({name:tu,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return Ie(e,i),tt(e,i),n(nu,i,e.children)}},null,null,!1,null,null,null,null);const ru=iu.exports,su="fox-time-picker",lu="el-time-picker";var au=D({name:su,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return Ie(e,i),tt(e,i),n(lu,i,e.children)}},null,null,!1,null,null,null,null);const ou=au.exports,uu="fox-popover",cu="el-popover";var fu=D({name:uu,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(cu,i,e.children)}},null,null,!1,null,null,null,null);const du=fu.exports,hu="fox-tooltip",pu="el-tooltip";var mu=D({name:hu,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(pu,i,e.children)}},null,null,!1,null,null,null,null);const gu=mu.exports,_u="fox-message-box",yu="el-message-box";var $u=D({name:_u,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(yu,i,e.children)}},null,null,!1,null,null,null,null);const bu=$u.exports,vu="fox-breadcrumb",xu="el-breadcrumb";var Su=D({name:vu,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(xu,i,e.children)}},null,null,!1,null,null,null,null);const Du=Su.exports,wu="fox-breadcrumb-item",Tu="el-breadcrumb-item";var Cu=D({name:wu,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Tu,i,e.children)}},null,null,!1,null,null,null,null);const ku=Cu.exports,Iu="fox-form",Ru="el-form";var Pu=D({name:Iu,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Ru,i,e.children)}},null,null,!1,null,null,null,null);const Lu=Pu.exports,Fu="fox-form-item",Nu="el-form-item";var Mu=D({name:Fu,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Nu,i,e.children)}},null,null,!1,null,null,null,null);const Au=Mu.exports,Eu="fox-tabs",Ou="el-tabs";var ju=D({name:Eu,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Ou,i,e.children)}},null,null,!1,null,null,null,null);const qu=ju.exports,Hu="fox-tab-pane",Vu="el-tab-pane";var Wu=D({name:Hu,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Vu,i,e.children)}},null,null,!1,null,null,null,null);const Bu=Wu.exports,Ku="fox-tag",zu="el-tag";var Yu=D({name:Ku,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(zu,i,e.children)}},null,null,!1,null,null,null,null);const Uu=Yu.exports,Gu="fox-tree",Xu="el-tree";var Zu=D({name:Gu,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Xu,i,e.children)}},null,null,!1,null,null,null,null);const Qu=Zu.exports,Ju="fox-alert",ec="el-alert";var tc=D({name:Ju,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(ec,i,e.children)}},null,null,!1,null,null,null,null);const nc=tc.exports,ic="fox-notification",rc="el-notification";var sc=D({name:ic,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(rc,i,e.children)}},null,null,!1,null,null,null,null);const lc=sc.exports,ac="fox-slider",oc="el-slider";var uc=D({name:ac,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(oc,i,e.children)}},null,null,!1,null,null,null,null);const cc=uc.exports,fc="fox-loading",dc="el-loading";var hc=D({name:fc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(dc,i,e.children)}},null,null,!1,null,null,null,null);const pc=hc.exports,mc="fox-icon",gc="el-icon";var _c=D({name:mc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(gc,i,e.children)}},null,null,!1,null,null,null,null);const yc=_c.exports,$c="fox-row",bc="el-row";var vc=D({name:$c,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(bc,i,e.children)}},null,null,!1,null,null,null,null);const xc=vc.exports,Sc="fox-col",Dc="el-col";var wc=D({name:Sc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Dc,i,e.children)}},null,null,!1,null,null,null,null);const Tc=wc.exports,Cc="fox-upload",kc="el-upload";var Ic=D({name:Cc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(kc,i,e.children)}},null,null,!1,null,null,null,null);const Rc=Ic.exports,Pc="fox-progress",Lc="el-progress";var Fc=D({name:Pc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Lc,i,e.children)}},null,null,!1,null,null,null,null);const Nc=Fc.exports,Mc="fox-spinner",Ac="el-spinner";var Ec=D({name:Mc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Ac,i,e.children)}},null,null,!1,null,null,null,null);const Oc=Ec.exports,jc="fox-message",qc="el-message";var Hc=D({name:jc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(qc,i,e.children)}},null,null,!1,null,null,null,null);const Vc=Hc.exports,Wc="fox-badge",Bc="el-badge";var Kc=D({name:Wc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Bc,i,e.children)}},null,null,!1,null,null,null,null);const zc=Kc.exports,Yc="fox-card",Uc="el-card";var Gc=D({name:Yc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Uc,i,e.children)}},null,null,!1,null,null,null,null);const Xc=Gc.exports,Zc="fox-rate",Qc="el-rate";var Jc=D({name:Zc,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Qc,i,e.children)}},null,null,!1,null,null,null,null);const ef=Jc.exports,tf="fox-steps",nf="el-steps";var rf=D({name:tf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(nf,i,e.children)}},null,null,!1,null,null,null,null);const sf=rf.exports,lf="fox-step",af="el-step";var of=D({name:lf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(af,i,e.children)}},null,null,!1,null,null,null,null);const uf=of.exports,cf="fox-carousel",ff="el-carousel";var df=D({name:cf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(ff,i,e.children)}},null,null,!1,null,null,null,null);const hf=df.exports,pf="fox-scrollbar",mf="el-scrollbar";var gf=D({name:pf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(mf,i,e.children)}},null,null,!1,null,null,null,null);const _f=gf.exports,yf="fox-carousel-item",$f="el-carousel-item";var bf=D({name:yf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n($f,i,e.children)}},null,null,!1,null,null,null,null);const vf=bf.exports,xf="fox-collapse",Sf="el-collapse";var Df=D({name:xf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Sf,i,e.children)}},null,null,!1,null,null,null,null);const wf=Df.exports,Tf="fox-collapse-item",Cf="el-collapse-item";var kf=D({name:Tf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Cf,i,e.children)}},null,null,!1,null,null,null,null);const If=kf.exports,Rf="fox-cascader",Pf="el-cascader";var Lf=D({name:Rf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return Ie(e,i),tt(e,i),n(Pf,i,e.children)}},null,null,!1,null,null,null,null);const Ff=Lf.exports,Nf="fox-color-picker",Mf="el-color-picker";var Af=D({name:Nf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Mf,i,e.children)}},null,null,!1,null,null,null,null);const Ef=Af.exports,Of="fox-transfer",jf="el-transfer";var qf=D({name:Of,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(jf,i,e.children)}},null,null,!1,null,null,null,null);const Hf=qf.exports,Vf="fox-container",Wf="el-container";var Bf=D({name:Vf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Wf,i,e.children)}},null,null,!1,null,null,null,null);const Kf=Bf.exports,zf="fox-header",Yf="el-header";var Uf=D({name:zf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Yf,i,e.children)}},null,null,!1,null,null,null,null);const Gf=Uf.exports,Xf="fox-aside",Zf="el-aside";var Qf=D({name:Xf,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Zf,i,e.children)}},null,null,!1,null,null,null,null);const Jf=Qf.exports,ed="fox-main",td="el-main";var nd=D({name:ed,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(td,i,e.children)}},null,null,!1,null,null,null,null);const id=nd.exports,rd="fox-footer",sd="el-footer";var ld=D({name:rd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(sd,i,e.children)}},null,null,!1,null,null,null,null);const ad=ld.exports,od="fox-timeline",ud="el-timeline";var cd=D({name:od,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(ud,i,e.children)}},null,null,!1,null,null,null,null);const fd=cd.exports,dd="fox-timeline-item",hd="el-timeline-item";var pd=D({name:dd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(hd,i,e.children)}},null,null,!1,null,null,null,null);const md=pd.exports,gd="fox-link",_d="el-link";var yd=D({name:gd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(_d,i,e.children)}},null,null,!1,null,null,null,null);const $d=yd.exports,bd="fox-divider",vd="el-divider";var xd=D({name:bd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(vd,i,e.children)}},null,null,!1,null,null,null,null);const Sd=xd.exports,Dd="fox-image",wd="el-image";var Td=D({name:Dd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(wd,i,e.children)}},null,null,!1,null,null,null,null);const Cd=Td.exports,kd="fox-calendar",Id="el-calendar";var Rd=D({name:kd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Id,i,e.children)}},null,null,!1,null,null,null,null);const Pd=Rd.exports,Ld="fox-backtop",Fd="el-backtop";var Nd=D({name:Ld,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Fd,i,e.children)}},null,null,!1,null,null,null,null);const Md=Nd.exports,Ad="fox-infinite-scroll",Ed="el-infinite-scroll";var Od=D({name:Ad,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Ed,i,e.children)}},null,null,!1,null,null,null,null);const jd=Od.exports,qd="fox-page-header",Hd="el-page-header";var Vd=D({name:qd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Hd,i,e.children)}},null,null,!1,null,null,null,null);const Wd=Vd.exports,Bd="fox-cascader-panel",Kd="el-cascader-panel";var zd=D({name:Bd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Kd,i,e.children)}},null,null,!1,null,null,null,null);const Yd=zd.exports,Ud="fox-avatar",Gd="el-avatar";var Xd=D({name:Ud,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Gd,i,e.children)}},null,null,!1,null,null,null,null);const Zd=Xd.exports,Qd="fox-drawer",Jd="el-drawer";var eh=D({name:Qd,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Jd,i,e.children)}},null,null,!1,null,null,null,null);const th=eh.exports,nh="fox-popconfirm",ih="el-popconfirm";var rh=D({name:nh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(ih,i,e.children)}},null,null,!1,null,null,null,null);const sh=rh.exports,lh="fox-skeleton",ah="el-skeleton";var oh=D({name:lh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(ah,i,e.children)}},null,null,!1,null,null,null,null);const uh=oh.exports,ch="fox-skeleton-item",fh="el-skeleton-item";var dh=D({name:ch,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(fh,i,e.children)}},null,null,!1,null,null,null,null);const hh=dh.exports,ph="fox-empty",mh="el-empty";var gh=D({name:ph,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(mh,i,e.children)}},null,null,!1,null,null,null,null);const _h=gh.exports,yh="fox-descriptions",$h="el-descriptions";var bh=D({name:yh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n($h,i,e.children)}},null,null,!1,null,null,null,null);const vh=bh.exports,xh="fox-descriptions-item",Sh="el-descriptions-item";var Dh=D({name:xh,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Sh,i,e.children)}},null,null,!1,null,null,null,null);const wh=Dh.exports,Th="fox-result",Ch="el-result";var kh=D({name:Th,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e);return n(Ch,i,e.children)}},null,null,!1,null,null,null,null);const Ih=kh.exports,vx="",Rh={name:"fox-page",mixins:[wn],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[rn]=!0;const t=_i(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),Ls(t,e)}},watch:{verifyRules:{handler(t,e){Ft.update(this,t,e)},deep:!0}},methods:{getPageContentHeight(){const t=he(this),e=ke(t);return vn(t,e)},getPageContentWidth(){const t=he(this),e=ke(t);return xn(t,e)},getPageHeaderHeight(){const t=he(this),e=ke(t);return bn(t,e)},getPageFooterHeight(){const t=he(this),e=ke(t);return Vt(t,e)}},mounted(){const t=he(this);t&&Fs(t,this)&&Ns(t,"100%")},beforeDestroy(){}};var Ph=function(){var e=this,n=e._self._c;return n("div",{ref:"page",staticClass:"fox-page",attrs:{tabindex:"-1",title:""}},[e._t("default")],2)},Lh=[],Fh=D(Rh,Ph,Lh,!1,null,"88a615dd",null,null);const Nh=Fh.exports,xx="",Mh={name:"fox-sub-page",props:{name:{type:String,required:!0}},created(){if(this.name){let t=this.$parent,e=F.getRootDomain(this);e&&e.setSubVm(this.name,t)}},beforeDestroy(){if(this.name){let t=F.getRootDomain(this);t&&t.removeSubVm(this.name)}}};var Ah=function(){var e=this,n=e._self._c;return n("div",{staticClass:"fox-sub-page"},[e._t("default")],2)},Eh=[],Oh=D(Mh,Ah,Eh,!1,null,"1acdfeb6",null,null);const jh=Oh.exports,Sx="",qh={name:"fox-header-bar",provide(){return{headerScope:!0}},computed:{classes(){return{"fox-header-bar":!0}},styles(){const t=he(this);if(t){const n=ke(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[Kn]=!0;const t=he(this);if(t){const e=ke(t);e&&(e.headerMounted=!0,$n(t,e))}}};var Hh=function(){var e=this,n=e._self._c;return n("div",{class:e.classes,style:e.styles},[e._t("default")],2)},Vh=[],Wh=D(qh,Hh,Vh,!1,null,"b6fc5b9d",null,null);const Bh=Wh.exports,Dx="",Kh={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=he(this),e={};if(t){const n=ke(t);if(n){let i={left:null,top:null,right:null,bottom:null};this.padding?(i=Ce(this.padding),Object.assign(n.contentPadding,i),$n(t,n)):Object.assign(i,n.contentPadding);const r=bn(t,n),s=Vt(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 zh=function(){var e=this,n=e._self._c;return n("div",{class:e.classes,style:e.styles},[e._t("default")],2)},Yh=[],Uh=D(Kh,zh,Yh,!1,null,"c37252ba",null,null);const Gh=Uh.exports,wx="",Xh={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=he(this);if(t){const n=ke(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[zn]=!0;const t=he(this);if(t){const e=ke(t);e&&(e.footerMounted=!0,$n(t,e))}}};var Zh=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)])},Qh=[],Jh=D(Xh,Zh,Qh,!1,null,"e97687f4",null,null);const ep=Jh.exports,Tx="",tp={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 np=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)])},ip=[],rp=D(tp,np,ip,!1,null,"8d2901ee",null,null);const sp=rp.exports;function lp(t){for(let e=0;e<Li.length;e++){let n=Li[e];if(t.indexOf(n)!=-1)return!0}return!1}function gr(t){return t<=0?1:t>5?5:Number(`${t}`)}function ap(t){return`fox-group-col-${t}`}var op=D({name:"fox-group",mixins:[wn],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[Yn]=!0,_i(this,this.name)},data(){return{groupScope:!0,groupRef:null}},computed:{mSubgroupWidth(){const t=F.getFitProperty(this,"spacing",32),e=F.getParentDomainProperty(this,"column",1),n=F.getParentDomainProperty(this,"groupWidth",-1);return Ke(this,n,e,this.span,t)},mStyle(){if(this.sub==="true"||this.sub===!0){const t=he(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=F.getFitProperty(this,"labelPosition",Be());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=F.getFitProperty(this,"column",1);if(n!=-1){n=gr(n);let i=ap(n);t[i]=!0}return t}},mounted(){const t=he(this);if(!this.sub&&this.$refs.group){let e=-1,n=this.$refs.group;if(this.autoAdjustLayout&&window.ResizeObserver){const r=hn(()=>{if(n&&!ut(n)){const s=Ze(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=Ze(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=F.getFitProperty(this,"titleWidth",void 0);Y(s)&&(r.titleWidth=s);let l=F.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=F.getFitProperty(this,"column",-1);if(i===-1)e=[...e,...this.$slots.default];else{i=gr(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(lp(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)}},null,null,!1,null,null,null,null);const up=op.exports,cp="fox-sub-group",fp="fox-group";var dp=D({name:cp,functional:!0,render(t,e){const n=e.parent.$createElement;let{data:i}=e;return i.attrs||(i.attrs={}),i.attrs.sub=!0,n(fp,i,e.children)}},null,null,!1,null,null,null,null);const hp=dp.exports,Fx="",pp={name:"fox-input-row",provide(){return{groupScope:!1}}};var mp=function(){var e=this,n=e._self._c;return n("div",{staticClass:"fox-group-row"},[e._t("default")],2)},gp=[],_p=D(pp,mp,gp,!1,null,"3483209d",null,null);const yp=_p.exports,Nx="",$p={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 bp=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)])},vp=[],xp=D($p,bp,vp,!1,null,"af5e61ac",null,null);const Sp=xp.exports,_r={text:"fox-text-item",money:"fox-money-item",time:"fox-time-item",date:"fox-date-item"};var Dp=D({name:"fox-item",mixins:[wn],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{[Re]:this.$parent.groupScope,isRequired:!1,innerErrorIcon:"",innerErrorTip:"",innerWarnIcon:"",innerWarnTip:"",innerInfoIcon:"",innerInfoTip:"",innerUniqueKey:Dt()}},watch:{},computed:{mStyle(){if(this.$parent.groupScope){const t=F.getFitProperty(this,"spacing",32),e=F.getParentDomainProperty(this,"column",1),n=F.getParentDomainProperty(this,"groupWidth",-1),i=Ke(this,n,e,this.span,t);return{width:i<=0?"100%":`${i}px`}}else return{}},mLabelStyle(){return this.hasLabel()?F.getFitProperty(this,"labelPosition",Be())==="top"?{}:{width:`${F.getFitProperty(this,"labelWidth",We())}`}:{}},mInputStyle(){return this.hasLabel()?F.getFitProperty(this,"labelPosition",Be())==="top"?{}:{"margin-left":`${F.getFitProperty(this,"labelWidth",We())}`}:{}},mReadonly(){return F.isReadonly(this)},mDisabled(){return F.isDisabled(this)},mLabelMaxCharCount(){let t=F.getFitProperty(this,"labelMaxCharCount",Wt());return Number(t)}},methods:{installTip(t){let e={type:"none"};if(!K(this.errorTip)||!K(this.innerErrorTip)?(e.type="error",e.text=this.errorTip||this.innerErrorTip,e.icon=this.errorIcon||this.innerErrorIcon):!K(this.warnTip)||!K(this.innerWarnTip)?(e.type="warn",e.text=this.warnTip||this.innerWarnTip,e.icon=this.warnIcon||this.innerWarnIcon):(!K(this.infoTip)||!K(this.innerInfoTip))&&(e.type="info",e.text=this.infoTip||this.innerInfoTip,e.icon=this.infoIcon||this.innerInfoIcon),e.type!=="none"){let n=[];if(!K(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&&_r[this.ctype]){let u=_r[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),re(this,a),n?t("div",a,[n,o]):t("div",a,[o])},mounted(){},beforeDestroy(){}},null,null,!1,null,null,null,null);const wp=Dp.exports,Ox="",Tp={name:"fox-empty-item",inject:{pageScope:{default:!1},groupScope:{default:!1}},props:{span:{type:[Number,String],required:!1,default(){return 1}}},data(){return{[Re]:this.groupScope}},computed:{mStyle(){if(this.groupScope){let t,e=Gs(this.$parent);e&&(t=F.getFitProperty(e,"spacing",zs()));let n=F.getFitProperty(this,"column",1);const i=F.getParentDomainProperty(this,"groupWidth",-1);let r=Ke(this,i,n,this.span,t);return{width:r<=0?"100%":`${r}px`}}else return{}}},mounted(){},beforeDestroy(){}};var Cp=function(){var e=this,n=e._self._c;return n("div",{staticClass:"fox-group-item",style:e.mStyle})},kp=[],Ip=D(Tp,Cp,kp,!1,null,"27f55b90",null,null);const Rp=Ip.exports;var Pp=D({name:"fox-text-item",mixins:[ue],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&&!at(t)||(this.innerValue=t,this.$emit("change",t))},onInput(t,e){if(this.numberType){if(t.length>0&&!at(t))return;let n=te(t);if(this.min!==void 0){if(this.min>=0&&t=="-")return;let i=te(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=te(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 _=this.$slots.default[0];if(this.multiLang){let{text:$}=_;$&&($=$.trim()).length>0&&($=this.$langTranslator.translate(this,$),e.attrs.title=$,$=B($,this.mLabelMaxCharCount),n=t("div",e,[$]))}if(!n){let{text:$}=_;$&&($=$.trim()).length>0?(e.attrs.title=$,$=B($,this.mLabelMaxCharCount),n=t("div",e,[$])):_.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}=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={};oe(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=Bi(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),re(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])}},null,null,!1,null,null,null,null);const Lp=Pp.exports,Vx="";function Qt(t,e,n,i,r=!0){if(t=="")return"";if(t=Oe(t),e=te(e),e==1)return t;if(i)t=ei(t,e),n&&(t=="0"&&r?t=`${t}.`.padEnd(te(n)+2,"0"):t=ai(t,1,te(n)));else{let s=-1*e;t=ei(t,s)}return t}var Fp=D({name:"fox-money-item",mixins:[ue],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=Qt(t,this.rates,this.precision,!1),this.inValidScope(t)?t=Xe(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 Ae(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(Ae(n)){this.innerValue="";return}if(n=Qt(n,this.rates,this.precision,!1),!this.inValidScope(n)){console.error("value\u8D85\u51FA\u5408\u6CD5\u8303\u56F4");return}n=Xe(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 G(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()||F.getFitProperty(this,"labelPosition","left")==="top")return t;let n=F.getFitProperty(this,"labelWidth",We());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=G(this.minInclude),n=ti(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=G(this.maxInclude),n=ti(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(!Ae(n)){let i=Oe(n);this.innerValue=i,setTimeout(()=>{this.mFocused&&e.select()},10)}this.mFocused=!0,Ve(this,"focus",t)},onBlur(t){this.mFocused=!1,this.mEditing=!1;let e=`${this.innerValue}`,n=Ae(e);if(!n){let r=Xe(e,Number(this.decimalLength),this.autoPadding,Number(this.digits),this.separator);this.innerValue=r;let s=Qt(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}Ae(this.higherErrorTip)||(this.innerValue="",this.$emit("change",this.innerValue)),this.mShowTip&&i&&ze.hide(),Ve(this,"blur",t)},onInput(t){if(this.mEditing=!0,Ae(t)){this.innerValue="",this.$emit("change",this.innerValue);let i=this.getInputElm();this.mShowTip&&i&&ze.hide();return}if(typeof t=="string"&&(t=Oe(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(!at(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&&te(this.min)>=0)return;let e=this.getInputElm();if(e)if(t&&t.length>0){let i=Xe(t,Number(this.decimalLength),!1,Number(this.digits),this.separator);this.unit&&(i+=this.unit),this.mShowTip&&ze.show(e,i)}else this.mShowTip&&ze.hide();this.innerValue=t;let n=Qt(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=sn(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={};oe(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=Bi(t,this);this.inputNode=t("el-input",l,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),re(this,g),this.componentData(this,g,"money"),n?t("div",g,[n,f]):t("div",g,[f])}},null,null,!1,null,null,null,null);const Np=Fp.exports,Mp="el-input-number";var Ap=D({name:"fox-counter-item",mixins:[ue],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={};oe(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=`${Mp}`,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),re(this,c),n?t("div",c,[n,g]):t("div",c,[g])}},null,null,!1,null,null,null,null);const Ep=Ap.exports,Op="el-time-";var jp=D({name:"fox-time-item",mixins:[Ai],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={};oe(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&&Sn(p,this.mSelectHotkey)){setTimeout(()=>{this.$refs.input&&this.$refs.input.pickerVisible&&this.$refs.input.hidePicker()},5),si(this.$refs.inputWrap,"keyproxy",{detail:"keyproxy",key:p.key,shiftKey:p.shiftKey,altKey:p.altKey,ctrlKey:p.ctrlKey});return}if(this.mClearHotkey&&Sn(p,this.mClearHotkey)){this.$refs.input.handleClickIcon(p);return}if(this.mExpandHotkey&&Sn(p,this.mExpandHotkey)){this.$refs.input.pickerVisible||this.$refs.input.showPicker();return}}};let o={attrs:i,props:r,on:s,nativeOn:l,ref:"input"},a=`${Op}${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),re(this,m),this.componentData(this,m,"time"),n?t("div",m,[n,c]):t("div",m,[c])}},null,null,!1,null,null,null,null);const qp=jp.exports;function Hp(t){let e=t.format;if(!e){let n=t.type??"date";e=fr[n]}return e}const Fn=nt(pr,{visible:!0,modelValue:""}),Vp={name:"fox-date-item",mixins:[ue],props:{...Fn,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=Hp(this.$props);return hr(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=In(this.$props,Fn);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(mr,i)}},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:b}=y;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}=y;b&&(b=b.trim()).length>0?(e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b])):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=[],r={};ee(this,r,this.$attrs,i),r.title=this.innerValue,r.clearable=this.clearable;let s=nt(this.$props,Fn,{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 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),re(this,h);let _="text";this.componentData(this,h,_);const $=this.renderPicker(t);return n?t("div",h,[n,p,$]):t("div",h,[p,$])}};var Wp=D(Vp,null,null,!1,null,null,null,null);const Bp=Wp.exports,Kp="el-date-picker";var zp=D({name:"fox-datetime-item",mixins:[Ai],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={};oe(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=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),si(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(Kp,{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),re(this,c),this.componentData(this,c,"datetime"),n?t("div",c,[n,g]):t("div",c,[g])}},null,null,!1,null,null,null,null);const Yp=zp.exports,Ue={Data:"Data",File:"File",Function:"Function",Remote:"Remote"};class Jt{constructor(e,n,i){this.src=e,this.lang=n,this.first=!0,this.scope=Pn(i),Ct(e)?(this.cache=e,this.type=Ue.Data):typeof e=="function"?(this.cache=void 0,this.type=Ue.Function):e.indexOf("@")==0?(this.cache=void 0,this.type=Ue.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=Ue.Remote)}getPageData(e,n,i,r){if(typeof e=="string"&&(e=Number(e)),typeof n=="string"&&(n=Number(n)),this.type===Ue.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===Ue.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=Ee(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 m=this.cache.slice(g,c),p={totalSize:this.cache.length,page:m};return Promise.resolve(p)},f=>{u(f)})})}else if(this.type===Ue.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 h={totalSize:0,page:[]};return Promise.resolve(h)}c=c<=s.cache.length?c:s.cache.length;let m=s.cache.slice(g,c),p={totalSize:this.cache.length,page:m};return Promise.resolve(p)},error:(u,d)=>{a(d)}})})}else{let s=this.getAPI();if(s){let l=Ee(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,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 we("getTablePageData",this.scope)}}function Nn(){return we("uiSetting")}function Up(t,e,n){const i=Nn();if(i)return i.loadUISetting(t,e,n)}function Gp(t,e,n,i){const r=Nn();if(r)return r.saveUISetting(t,e,n,i)}function Xp(t,e,n){const i=Nn();i&&i.removeUISetting(t,e,n)}const i1="",Zp={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(ut(e))return;let n=xe(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 Qp=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)])])},Jp=[],em=D(Zp,Qp,Jp,!1,null,null,null,null);const tm=em.exports,r1="",nm={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 im=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))])])},rm=[],sm=D(nm,im,rm,!1,null,"9cf29f02",null,null);const lm=sm.exports;function am(){return ge.minTableHeight||266}function om(){return ge.tableToolBarHeight||44}function um(){return ge.tableMarginBottom||25}function cm(){return typeof ge.tableHeightAdjustHandler=="function"?ge.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=on(c.$el),a=xe(c.$el)):c.$el.classList.contains("fox-header-bar")?l=xe(c.$el):c.$el.classList.contains("fox-footer-bar")&&(o=xe(c.$el));if(!u)return;let d=on(e),f=a-l-o-(d.y-u.y);i&&(f-=om()),f-=um();let g=am();return f<g&&(f=g),f}}function Mn(t,e,n=!0){let i=cm();return Reflect.apply(i,{},[t,e,n])}const s1="",fm=["header","content","page-index","page-size","page-sizes","tool-layout","base-params","params","auto-refresh"],dm=["header","content","pageIndex","pageSize","pageSizes","toolLayout","baseParams","params","autoRefresh"],hm=/<(.*)>.*</;function yr(t){return hm.test(t)}function pm(t,e){if(t.length==0)return-1;let n=t[0].innerHTML;if(yr(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 sn(r,i,e)+20}var mm=D({name:"fox-table-item",inject:{multiLang:{default:!1}},provide(){return{groupScope:!1}},components:{"fox-table-setting-suggestion":tm,"fox-table-empty-tip":lm},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{[Re]:this.$parent.groupScope,tableModel:new Jt(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=F.getFitProperty(this,"spacing",32),e=F.getParentDomainProperty(this,"column",1),n=F.getParentDomainProperty(this,"groupWidth",-1),i=Ke(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 Jt(this.content,t,this),this.load()},content(t){let e=this.$i18n?this.$i18n.locale:void 0;this.tableModel=new Jt(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=te(this.size);if(u==0)this.currentPageIndex=1;else{let d=Math.ceil(u*1/te(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=te(this.autoSelectedIndex),d=this.tableData[u];setTimeout(()=>{this.setCurrentRow(d)},30)}setTimeout(()=>{!fe||(n&&this.resetWrapScroll(),this.adjustColumnWidth(),this.adjustTableLayout(),this.setCellTitle())},50),setTimeout(()=>{Pt(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)),Un(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=xe(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={},kt(!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(!fe)return;let t=this.$refs.tableWrap.querySelector(".el-table__body-wrapper");t&&(G(this.autoResetTop)&&(t.scrollTop=0),G(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=Mn(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=un(t);const n=cn(t);let i=xe(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=Ze(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=Oe(`${t}`),e=Oe(`${e}`),oi(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"),G(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};Gp("table","uiData",this.id,e),this.adjustColumnWidth(),this.reloadTable()},resetSetting(){!this.id||(Xp("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(!fe)return;let{tableWrap:t}=this.$refs;if(!t)return;this.foxData.columnAdjusted=!0;let e=te(this.maxColumnWidth),n=te(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 m=c.prop;if(s&&r.indexOf(m)==-1||l&&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=te(p.width);c.fixed&&(u+=v),f+=v,a.set(m,v);return}if(this.foxData.dragendColumnMap[m]!==void 0){const v=te(this.foxData.dragendColumnMap[m]);o.set(m,v),c.fixed&&d.push(m),f+=v,g+=1;return}let{label:_,sortable:$}=p.column.componentOptions.propsData,y=0;$&&(y=24);let b=`td.fox-col-name-${m} > .cell`,R=t.querySelectorAll(b),P=pm(R,t),x=sn(_||"",t.style.fontSize,t);if(P<=0&&x<=0){this.foxData.columnAdjusted=!1;return}P+=12*2,x+=y+12*2,P<x&&(P=x),P<n?P=n:P>e&&(P=e),o.set(m,P),c.fixed&&d.push(m),f+=P,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 _=h+m;if(f+=m,f>=c){_-=f-c,_>h&&o.set(p,_);break}o.set(p,_)}}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(!!fe){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=xe(s);this.foxData.fixedHeight=l;let o=l-11;setTimeout(()=>{r.style.height=`${o}px`},250)}}}},updateColumnWidth(t,e){if(!fe)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(!yr(r))for(let s=0;s<i.length;s++){let l=i[s].innerText;i[s].setAttribute("title",l)}})},adjustTableHeight(){this.tableHeight=Mn(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(ut(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 Jt(this.content,t,this),(this.autoRefresh==!0||Array.isArray(this.content))&&this.load(),this.id){let e=Up("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=G(this.autoRefresh);this.autoAdjustTableHeight?setTimeout(()=>{this.tableHeight=Mn(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&&ut(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,fm);let n={};if(oe(this,n,this.$props,dm),n.data=this.tableData,n.size=this.mSize,!Reflect.has(e,"border")&&!n.border){let b=!1;if(e["header-cell-class-name"]){let R=e["header-cell-class-name"];e["header-cell-class-name"]=`${R} fox-table-header-cell`,b=!0}if(!b&&n["header-cell-class-name"]){let R=n["header-cell-class-name"];typeof R=="object"?R["fox-table-header-cell"]=!0:n["header-cell-class-name"]=`${R} 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=>{G(this.rowClickSelect)&&this.setCurrentRow(b),typeof s=="function"&&s(b)};let l=this.$listeners["current-change"];i["current-change"]=(b,R)=>{this.currentRow=b,typeof l=="function"&&l(b,R)};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,R,P,x)=>{typeof a=="function"&&a(b,R,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 R=this.pretreatColumn(b);f=t("el-table",d,R)}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 R=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,[R,x]);m.push(v)}let h=t("div",{class:{"fox-table-tools":!0}},m),_={class:{"fox-table-tools-wrap":!0}};G(this.showTool)||(_.style={display:"none"});let $=t("div",_,[h]),y=[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}},R=t("fox-table-setting-suggestion",b);y.push(R)}return t("div",{ref:"tableWrap",class:{"fox-table-wrap":!0},style:this.mStyle},y)}},null,null,!1,null,null,null,null);const gm=mm.exports;class $r{constructor(e,n){this.src=e,this.scope=Pn(n)}getAPI(){return we("getSelectItems",this.scope)}load(e,n,i){let{src:r}=this;if(Ct(r))return Promise.resolve(r);if(typeof r=="function"){const s=Ee(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=Ee(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 u1="",_m="el-radio-group";var ym=D({name:"fox-radio-item",mixins:[ue],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 $r(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: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 s={};oe(this,s,this.$props),s.value=this.mValue,s.disabled=this.mDisabled||this.mReadonly,s.size=this.mSize;let a=[t(_m,{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),re(this,g),this.componentData(this,g,"radio"),n?t("div",g,[n,f]):t("div",g,[f])}},null,null,!1,null,"8a7a4679",null,null);const $m=ym.exports,h1="",bm={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){Ve(this,"focus",t)},onBlur(t){Ve(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 $r(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 vm=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)},xm=[],Sm=D(bm,vm,xm,!1,null,"93292c5e",null,null);const Dm=Sm.exports,p1="",wm="fox-checkboxs";var Tm=D({name:"fox-checkbox-item",mixins:[ue],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={};oe(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(wm,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),re(this,g),this.componentData(this,g,"checkbox"),n?t("div",g,[n,f]):t("div",g,[f])}},null,null,!1,null,"64415ea7",null,null);const Cm=Tm.exports,km="fox-number-item",Im="fox-text-item";var Rm=D({name:km,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(Im,i,e.children)}},null,null,!1,null,null,null,null);const Pm=Rm.exports,Lm="el-switch";var Fm=D({name:"fox-switch-item",mixins:[ue],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={};oe(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=`${Lm}`,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),re(this,c),this.componentData(this,c,"switch"),n?t("div",c,[n,g]):t("div",c,[g])}},null,null,!1,null,null,null,null);const Nm=Fm.exports,Mm="el-slider";var Am=D({name:"fox-slider-item",mixins:[ue],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={};oe(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=`${Mm}`,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),re(this,c),this.componentData(this,c,"slider"),n?t("div",c,[n,g]):t("div",c,[g])}},null,null,!1,null,null,null,null);const Em=Am.exports,Om="el-rate";var jm=D({name:"fox-rate-item",mixins:[ue],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={};oe(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=`${Om}`,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),re(this,c),this.componentData(this,c,"rate"),n?t("div",c,[n,g]):t("div",c,[g])}},null,null,!1,null,null,null,null);const qm=jm.exports;let Hm={...Rn,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 en=(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=en(f.children,f,n)),f}),br=(t,e)=>{let n=0,i;for(;(i=t[n++])&&e(i)!==!0;)i.children&&i.children.length&&br(i.children,e)},Vm={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Wm=(t,e)=>{const n={...Vm,...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 vr{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=en(e,null,this.config)}updateChildren(e,n){n?n.children=en(e,n,this.config):this.nodes=en(e,null,this.config)}getNodeByValue(e){let n;return br(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 Bm=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 Km=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)},zm=[],Ym=D(Bm,Km,zm,!1,null,null,null,null);const Um=Ym.exports,Gm={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 R=[...s.value];R.push({proxy:_,title:$,paneKey:y,disabled:b}),s.value=R},updateTabPane:(_,$,y,b)=>{const R=[...s.value],P=R.findIndex(x=>x.proxy===_);if(P!==-1){const x=R[P];x.title=$??x.title,x.paneKey=y===void 0||y===""?x.paneKey:y,x.disabled=b??x.disabled,s.value=R}},removeTabPane:_=>{const $=[...s.value],y=$.findIndex(b=>b.proxy===_);y!==-1&&$.splice(y,1),s.value=$}};S.provide("tabsState",l);const o=S.ref(t.modelValue||0),a=_=>{let $=s.value.findIndex(y=>y.paneKey==_);$!==-1?o.value=$:o.value=0},u=(_=s.value)=>{a(t.modelValue)},d=_=>{r=_.fixed};S.watch(s,_=>{u(_)});const f=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;S.watch(()=>t.modelValue,_=>{if(a(_),r){let $=zi(i.value).top+f(),y=Math.ceil($-t.top);window.scrollTo({top:y,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:ht(t.titleGutter),marginRight:ht(t.titleGutter)}));return{tabPaneList:s,contentStyle:g,tabsNavStyle:c,titleStyle:p,tabsActiveStyle:m,container:i,onStickyScroll:d,...{tabChange:(_,$)=>{e("click",_),!_.disabled&&(o.value=$,e("update:modelValue",_.paneKey),e("change",_))}}}}},Xm=S.defineComponent(Gm);var Zm=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)])},Qm=[],Jm=D(Xm,Zm,Qm,!1,null,null,null,null);const eg=Jm.exports,tg=S.defineComponent({components:{TabPane:Um,Tabs:eg},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 vr([],{})),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=Wm(h,n.value.convertConfig)),l.value=new vr(h,{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 h=s.value;if(h===void 0||!l.value.nodes.length)return;if(h.length===0){i.value=0,o.value=[{nodes:l.value.nodes,selectedNode:null}];return}let _=h;if(a.value&&Array.isArray(h)&&h.length){_=[];let $=l.value.nodes.find(y=>y.value===h[0]);if($){_=[$.value],r.value=!0;const y=await h.slice(1).reduce(async(b,R)=>{const P=await b;await c(P);const x=P?.children?.find(v=>v.value===R);return x&&_.push(R),Promise.resolve(x)},Promise.resolve($));await c(y),r.value=!1}}_.length&&h===t.modelValue&&l.value.getPathNodesByValue(_).map((y,b)=>{i.value=b,p.handleNode(y,!0)})},c=async h=>{if(!h)return;if(!n.value.lazyLoad){h.leaf=!0;return}if(l.value.isLeaf(h,a.value)||l.value.hasChildren(h,a.value))return;h.loading=!0;const _=h.root?null:h;let $=u.get(h);$||($=new Promise(b=>{n.value.lazyLoad?.(h,b)}),u.set(h,$));const y=await $;Array.isArray(y)&&y.length>0?l.value.updateChildren(y,_):h.leaf=!0,h.loading=!1,u.delete(h)},m=h=>{const _=h.map($=>$.value);s.value=_,e("change",_,h),e("update:modelValue",_,h)},p={async handleNode(h,_){const{disabled:$,loading:y}=h;if(!(!_&&$||!o.value[i.value])){if(l.value.isLeaf(h,a.value)){if(h.leaf=!0,o.value[i.value].selectedNode=h,o.value=o.value.slice(0,h.level+1),!_){const b=o.value.map(R=>R.selectedNode);m(b),e("pathChange",b)}return}if(l.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),!_){const R=o.value.map(P=>P.selectedNode);e("pathChange",R)}return}d=h,!y&&(await c(h),d===h&&(o.value[i.value].selectedNode=h,p.handleNode(h,_)))}},handleTabClick(h){d=null,i.value=Number(h.paneKey)},formatTabTitle(h){return h.selectedNode?h.selectedNode.text:"\u9009\u62E9"},isSelected(h,_){return h.selectedNode&&h.selectedNode.value===_.value}};return S.watch([n,()=>t.options],()=>{f()},{deep:!0,immediate:!0}),S.watch(()=>t.modelValue,h=>{h!==s.value&&(s.value=h,g())}),S.watch(()=>t.visible,h=>{h&&Array.isArray(s.value)&&s.value.length>0&&g()}),{panes:o,initLoading:r,tabsCursor:i,...p}}});var ng=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)},ig=[],rg=D(tg,ng,ig,!1,null,null,null,null);const sg=rg.exports,{create:lg}=$e("cascader-picker"),ag=lg({components:{Popup:Xt,CascaderPane:sg},props:{...Hm},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 og=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)},ug=[],cg=D(ag,og,ug,!1,null,null,null,null);const xr=cg.exports;function mt(t,e){const n=t.textKey??"text";return e[n]??""}function gt(t,e){const n=t.valueKey??"value";return e[n]}function Sr(t,e){const n=t.childrenKey??"children";return e[n]}function tn(t,e=[]){const n={texts:[],values:[]};for(let i=0;i<e.length;i++){const r=e[i],s=mt(t,r),l=gt(t,r);n.texts.push(s),n.values.push(l??"")}return n}function Dr(t,e,n,i,r=[]){const s=n[i];for(let l=0;l<e.length;l++)if(mt(t,e[l])===s){const a=gt(t,e[l])??"",u={[t.textKey]:s,[t.valueKey]:a};r.push(u);const d=Sr(t,e[l]);Array.isArray(d)&&Dr(t,d,n,i+1,r);return}}function wr(t,e,n,i,r=[]){const s=n[i];for(let l=0;l<e.length;l++)if(gt(t,e[l])===s){const a=mt(t,e[l])??"",u={[t.textKey]:a,[t.valueKey]:s};r.push(u);const d=Sr(t,e[l]);Array.isArray(d)&&wr(t,d,n,i+1,r);return}}function An(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=mt(t,e[i]),s=mt(t,n[i]);if(r!==s)return!1;const l=gt(t,e[i]),o=gt(t,n[i]);if(l!==o)return!1}return!0}class fg{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=ir(this.proxy,i);return r===null?(console.error(`${i} component not found api function`),[]):(Gt(n)&&S.isReactive(n)&&(n=S.toRaw(n)),await r(e,n))}}function dg(){const t=S.getCurrentInstance();return new fg(t.proxy)}var hg=D({name:"fox-cascader-item",mixins:[ue],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=dg(),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(!An(this.$props,t,this.selectedPathOptions)){this.selectedPathOptions=t;let e=tn(this.$props,t);this.innerText=e.texts,this.innerValue=e.values}}else if(this.valueType==="text"){let t=this.innerValue??[],e=[];if(Dr(this.$props,this.sourceOptions,t,0,e),!An(this.$props,e,this.selectedPathOptions)){this.selectedPathOptions=e;let n=tn(props,e);this.innerText=n.texts,this.innerValue=n.values}}else{let t=this.innerValue??[],e=[];if(wr(this.$props,this.sourceOptions,t,0,e),!An(this.$props,e,this.selectedPathOptions)){this.selectedPathOptions=e;let n=tn(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=tn(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(xr,{props:e,on:n})}},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:b}=y;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}=y;b&&(b=b.trim()).length>0?(e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b])):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=[],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 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),re(this,h);let _="text";this.componentData(this,h,_);const $=this.renderPicker(t);return n?t("div",h,[n,p,$]):t("div",h,[p,$])}},null,null,!1,null,null,null,null);const pg=hg.exports,mg=Symbol.for("handleRenderData");function gg(t,e,n){let i=me.getAuthScope(t);!i||!me.hasAuths(i)||me.hasAuth(i,n)||me[mg](e,!1)}const _g="fox-button",yg="el-button";var $g=D({name:_g,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(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}),gg(e.parent,i,r));let s=Vi(e);return n(yg,i,s)}},null,null,!1,null,null,null,null);const bg=$g.exports;function vg(t){return t.$children&&t.$children[0]&&t.$children[0].$children&&t.$children[0].$children[0]}const xg="el-dialog";var Sg=D({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=vg(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={};oe(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(xg,s,l)}},null,null,!1,null,null,null,null);const Dg=Sg.exports,j1="";var wg=D({name:"fox-autocomplete-item",mixins:[ue],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&&!at(t)||(this.innerValue=t,this.$emit("change",t))},adjustSuggestions(){if(!fe)return;let t=Me.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 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={};oe(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:p=>{if(this.itemType==="item"){let h={class:{}};h.class[this.valueOptionClass]=!0;let _=t("span",h,[p.item[this.valueName]]),$={class:{}};$.class[this.textOptionClass]=!0;let y=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),re(this,m),this.componentData(this,m,"autocomplete"),n?t("div",m,[n,c]):t("div",m,[c])}},null,null,!1,null,null,null,null);const Tg=wg.exports,En=nt(nr,{visible:!0,modelValue:""}),Cg={name:"fox-select-item",mixins:[ue],props:{...En,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=In(this.$props,En);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(Zt,{props:e,on:n})}},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:b}=y;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}=y;b&&(b=b.trim()).length>0?(e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b])):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=[],r={};ee(this,r,this.$attrs,i),r.title=this.innerValue,r.clearable=this.clearable;let s=nt(this.$props,En,{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 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),re(this,h);let _="text";this.componentData(this,h,_);const $=this.renderPicker(t);return n?t("div",h,[n,p,$]):t("div",h,[p,$])}};var kg=D(Cg,null,null,!1,null,null,null,null);const Ig=kg.exports,K1="",Rg={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 Pg=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"})])},Lg=[],Fg=D(Rg,Pg,Lg,!1,null,null,null,null);const Ng=Fg.exports,z1="",Mg="fox-table-search-column",Ag="el-table-column";var Eg=D({name:Mg,inject:{multiLang:{default:!1}},functional:!0,render(t,e){const n=e.parent.$createElement;let i=N(e),r=Vi(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(Ag,i,r)}},null,null,!1,null,null,null,null);const Og=Eg.exports,X1="",jg={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 qg=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)])},Hg=[],Vg=D(jg,qg,Hg,!1,null,"2c82508c",null,null);const Wg=Vg.exports,Z1="",Tr=/^("|').*("|')$/,On=/^\d+$/,jn=/^(true)|(false)$/;function _t(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 st(n,u,0)}}let s=e.split("."),l=st(t,s,0);return typeof l=="function"&&n&&r!==void 0?(...a)=>Reflect.apply(l,t,[n,r,...a]):l}function Cr(t,e,n,i,r){if(r){let l=`${r}.`;if(e.indexOf(l)==0){e=e.substring(l.length);let a=e.split(".");lt(i,a,0,n);return}}let s=e.split(".");lt(t,s,0,n)}function yt(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(Tr.test(d)?d=d.replace(/"|'/g,""):On.test(d)?d=d:jn.test(d)?d=G(d):(d=_t(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=_t(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=yt(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=>yt(t,e,a,d,a.slotScope)||t(),l.scopedSlots[u].proxy=!0}else if(!a.slot||a.slot=="default"){let u=yt(t,e,a,i,r,s);u&&o.push(u)}else l.scopedSlots[a.slot]=()=>yt(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];On.test(u)?l.attrs[a]=u:jn.test(u)?l.attrs[a]=G(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 m=a.substring(c);d=m==".sync",f=m==".exec",a=a.substring(0,c)}if(u==null){l.attrs[a]=u;continue}if(Tr.test(u)||On.test(u)?l.attrs[a]=u:jn.test(u)?l.attrs[a]=G(u):(l.attrs[a]=_t(e,u,i,r,s),g=!0),g){if(d)l.on[`update:${a}`]=m=>{Cr(e,u,m,i,r)};else if(f){let m=n.props[`method_param_${a}`];l.attrs[a]=l.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&&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=_t(e.$data,n.model,i,r);l.model={expression:n.model,value:a,callback:u=>{Cr(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=_t(e,n.variable,i,r,s);return typeof l=="function"?l(n.param):l}}return t()}var Bg=D({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 yt(i,n,e.props.source)}},null,null,!1,null,"83844b55",null,null);const Kg=Bg.exports,t0="",zg={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 Yg=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)])},Ug=[],Gg=D(zg,Yg,Ug,!1,null,null,null,null);const Xg=Gg.exports,$t=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,get(){return n},set(i){console.warn(`tried to set frozen property ${e} with ${i}`)}})};var Zg=D({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&&($t(l,"parentNode",t),$t(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),$t(t,"parentNode",e),$t(t,"nextSibling",s),s&&$t(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)}},null,null,!1,null,null,null,null);const Qg=Zg.exports,{create:Jg}=$e("toast"),e_=Jg({components:{[pt.name]:pt},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 t_=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)}})])])])},n_=[],i_=D(e_,t_,n_,!1,null,null,null,null);const kr=i_.exports,r_=Or.default.extend(kr),s_={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},Ge=new Map,Ir=t=>{if(t&&Ge.has(t)){const e=Ge.get(t);document.body.removeChild(e.instance.$el),e.instance.$destroy()}else Ge.forEach(e=>{document.body.removeChild(e.instance.$el),e.instance.$destroy()})},l_=t=>{const e=t.id;if(e&&Ge.has(e)){const n=Ge.get(e),r={...n.options,...t};for(let s of r)n.instance[s]=r[s]}},bt=t=>{let e;if(t.id){if(e=t.id,Ge.has(e))return l_(t)}else e=`${new Date().getTime()}`;t={...s_,...t},t.id=e,t.unmount=Ir;const n=new r_({data:t});return Ge.set(e,{id:e,options:t,instance:n}),n.$mount(),document.body.appendChild(n.$el),n.show(),n},nn=t=>{if(!t){console.warn("[FoxUI Toast]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},Rr={text(t,e={}){return nn(t),bt({...e,type:"text",msg:t})},success(t,e={}){return nn(t),bt({icon:"success",...e,msg:t,type:"success"})},fail(t,e={}){return nn(t),bt({icon:"failure",...e,msg:t,type:"fail"})},warn(t,e={}){return nn(t),bt({icon:"tips",...e,msg:t,type:"warn"})},loading(t,e={}){return bt({icon:"loading",...e,msg:t,type:"loading"})},hide(t){Ir(t)},install(t){t.use(kr),t.prototype.$toast=Rr}},{create:a_}=$e("calendar-pane"),o_=a_({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),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}),m=w=>w.split("-"),p=w=>W.isEqual(c.currDate[0],w),h=w=>W.isEqual(c.currDate[1],w),_=(w,T,A)=>T.curData[0]+"-"+T.curData[1]+"-"+W.getNumTwoBit(+w.day),$=(w,T,A)=>{const q=_(w,T);return w.type=="curr"?!c.isRange&&W.isEqual(c.currDate,q)||c.isRange&&(p(q)||h(q))?`${c.dayPrefix}-active`:c.propStartDate&&W.compareDate(q,c.propStartDate)||c.propEndDate&&W.compareDate(c.propEndDate,q)?`${c.dayPrefix}-disabled`:c.isRange&&Array.isArray(c.currDate)&&Object.values(c.currDate).length==2&&W.compareDate(c.currDate[0],q)&&W.compareDate(q,c.currDate[1])?`${c.dayPrefix}-choose`:null:`${c.dayPrefix}-disabled`},y=()=>{(c.isRange&&c.chooseData.length==2||!c.isRange)&&(e("choose",c.chooseData),t.poppable&&e("update"))},b=(w,T,A,q)=>{if($(w,T)!=`${c.dayPrefix}-disabled`){let H=[...T.curData];H[2]=typeof w.day=="number"?W.getNumTwoBit(w.day):w.day,H[3]=`${H[0]}-${H[1]}-${H[2]}`,H[4]=W.getWhatDay(+H[0],+H[1],+H[2]),c.isRange?(Object.values(c.currDate).length==2?c.currDate=[H[3]]:W.compareDate(c.currDate[0],H[3])?Array.isArray(c.currDate)&&c.currDate.push(H[3]):Array.isArray(c.currDate)&&c.currDate.unshift(H[3]),c.chooseData.length==2||!c.chooseData.length?c.chooseData=[...H]:W.compareDate(c.chooseData[3],H[3])?c.chooseData=[[...c.chooseData],[...H]]:c.chooseData=[[...H],[...c.chooseData]]):(c.currDate=H[3],c.chooseData=[...H]),A||(e("select",c.chooseData),t.isAutoBackFill&&y())}},R=w=>{const T=w=="prev"?c.monthsData[0]:c.monthsData[c.monthsData.length-1];let A=parseInt(T.curData[0]),q=parseInt(T.curData[1].toString().replace(/^0/,""));switch(w){case"prev":q==1&&(A-=1),q=q==1?12:--q;break;case"next":q==12&&(A+=1),q=q==12?1:++q;break}return[A,W.getNumTwoBit(q),W.getMonthDays(String(A),String(q))]},P=(w,T,A)=>{let{year:q,month:H}=A;return T=="prev"&&w>=7&&(w-=7),Array.from(Array(w),(z,X)=>({day:X+1,type:T,year:q,month:H}))},x=(w,T,A,q)=>{let{year:H,month:z}=A;return T=="prev"&&w>=7&&(w-=7),Array.from(Array(q),(Z,J)=>({day:J+1,type:T,year:H,month:z})).slice(q-w)},v=(w,T)=>{const A=W.getMonthPreDay(+w[0],+w[1]);let q=w[1]-1,H=w[0];q<=0&&(q=12,H+=1);const z=W.getMonthDays(w[0],w[1]),X=W.getMonthDays(H+"",q+""),Z={year:w[0],month:w[1]},J={curData:w,title:`${Z.year}/${Z.month}`,monthData:[...x(A,"prev",{month:q,year:H},X),...P(z,"curr",Z)]};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 A={year:Number(c.startData[0]),month:Number(c.startData[1])},q={year:Number(c.endData[0]),month:Number(c.endData[1])};let H=q.month-A.month;q.year-A.year>0&&(H=H+12*(q.year-A.year)),v(c.startData,"next");let z=1;do v(R("next"),"next");while(z++<H);c.monthsNum=H,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 X=0,Z=0;c.monthsData.forEach((ce,U)=>{let se=`${c.defaultData[0]}/${c.defaultData[1]}`;ce.title==se&&(X=U),c.isRange&&(se=`${c.defaultData[3]}/${c.defaultData[4]}`,ce.title==se&&(Z=U))}),k(H,X),c.currentIndex=X,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[Z],!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;mo(()=>{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/(H+1))},k=(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 A=c.monthsData[c.defaultRange[0]].cssScrollHeight;c.translateY=A},O=(w,T)=>c.isRange&&w.type=="curr"&&$(w,T)=="calendar-month-day-active",V=(w,T)=>O(w,T)&&p(_(w,T)),L=(w,T)=>c.currDate.length>=2&&h(_(w,T))?O(w,T):!1,I=(w,T)=>c.currDate.length>=2?W.isEqual(c.currDate[0],c.currDate[1]):!1,M=w=>{const T=`${w.year}-${w.month}-${w.day<10?"0"+w.day:w.day}`;return W.isEqual(T,W.date2Str(new Date))},j=w=>{const T=w.target.scrollTop;let A=Math.floor(T/c.avgHeight);if(A==0)T>=c.monthsData[A+1].cssScrollHeight&&(A+=1);else if(A>0&&A<c.monthsNum-1)T>=c.monthsData[A+1].cssScrollHeight&&(A+=1),T<c.monthsData[A].cssScrollHeight&&(A-=1);else{const q=Math.round(T+a.value);q<c.monthsData[A].cssScrollHeight+c.monthsData[A].cssHeight&&T>c.monthsData[A-1].cssScrollHeight&&(A-=1),A+1<=c.monthsNum&&q>=c.monthsData[A+1].cssScrollHeight+c.monthsData[A+1].cssHeight&&(A+=1),T<c.monthsData[A-1].cssScrollHeight&&(A-=1)}c.currentIndex!==A&&(c.currentIndex=A,k(c.monthsNum,A)),c.yearMonthTitle=c.monthsData[A].title},E=()=>{c.chooseData.splice(0),c.monthsData.splice(0),C()};return C(),S.watch(()=>t.defaultValue,w=>{w&&t.poppable&&E()}),{weeks:i,compConthsData:u,showTopBtn:d,topInfo:f,bottomInfo:g,rangeTip:I,mothsdivScroll:j,getClass:$,isStartTip:V,isEndTip:L,chooseDay:b,isCurrDay:M,confirm:y,monthsPanel:s,months:r,weeksPanel:l,divArea:o,...S.toRefs(c),...S.toRefs(t)}}});var u_=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()])},c_=[],f_=D(o_,u_,c_,!1,null,null,null,null);const Pr=f_.exports,vt=t=>typeof t=="string"?t:Le(t)?W.date2Str(t):"",Lr=t=>!!(!t||typeof t=="string"&&t.length==0||Array.isArray(t)&&t.length==0),Fr={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:d_}=$e("calendar-picker"),h_=d_({components:{[Pr.name]:Pr},props:{...Fr},emits:["choose","close","update:visible","select"],setup(t,{emit:e,slots:n}){const i=S.computed(()=>t.type==="range"),r=S.computed(()=>{let $;if(Lr(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 y=vt(t.defaultValue[0]),b=vt(t.defaultValue[1]);$=[y,b]}else $=[W.date2Str(new Date),W.getDay(1)];else{let y=Array.isArray(t.defaultValue)?t.defaultValue[0]:t.defaultValue;$=vt(y??new Date)}return $}),s=S.computed(()=>vt(t.startDate)),l=S.computed(()=>vt(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()},_=$=>{e("select",$)};return S.watch(()=>t.visible,$=>{f.value=$}),{defaultValue:r,startDateStr:s,endDateStr:l,closePopup:h,update:c,close:m,choose:p,select:_,calendarRef:g,showTopBtn:o,topInfo:a,dayInfo:u,bottomInfo:d}}});var p_=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)},m_=[],g_=D(h_,p_,m_,!1,null,null,null,null);const Nr=g_.exports,qn=(t,e)=>{let n;return Le(t)?n=t:typeof t=="string"&&Zi(t)>0?n=W.parser(t,e):n=new Date,n},it=(t,e,n)=>(Le(e)||(e=new Date),W.format(e,n)),rt=t=>{let e=`${t.getFullYear()}`,n=`${t.getMonth()+1}`,i=`${t.getDate()}`,r=W.date2Str(t),s=W.getWhatDay(t.getFullYear(),t.getMonth()+1,t.getDate());return[e,n,i,r,s]},Hn=nt(Fr,{visible:!0,modelValue:""}),Mr={rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1}},__={name:"fox-calendar-item",mixins:[ue],props:{...Hn,...Mr,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=it(this.$props,this.currentData.startDate,this.$props.format),e=it(this.$props,this.currentData.endDate,this.$props.format);return`${t} ${this.$props.rangeSeparator} ${e}`}else{let t=it(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(Lr(t)){this.resetData();return}if(this.isRange&&Array.isArray(t)&&t.length==2){let i,r;typeof t[0]=="string"?(i=qn(t[0],n),r=qn(t[1],n)):(i=t[0],r=t[1]);let s=rt(i),l=rt(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=qn(t,n):i=t;let r=rt(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=pe(e[0]),i=pe(e[1]),r=pe(e[2]),s=new Date(n,i-1,r),l=t[1];n=pe(l[0]),i=pe(l[1]),r=pe(l[2]);let o=new Date(n,i-1,r);if(this.currentData.startDate=s,this.currentData.startArray=rt(s),this.currentData.endDate=o,this.currentData.endArray=rt(o),this.$props.valueFormat){let a=it(this.$props,s,this.$props.valueFormat),u=it(this.$props,o,this.$props.valueFormat);this.$emit("change",[a,u],{})}else this.$emit("change",[s,o],{})}else{let e=t,n=pe(e[0]),i=pe(e[1]),r=pe(e[2]),s=new Date(n,i-1,r);if(this.currentData.startDate=s,this.currentData.startArray=rt(s),this.$props.valueFormat){let l=it(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=In(this.$props,Hn);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(Nr,i)}},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:b}=y;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}=y;b&&(b=b.trim()).length>0?(e.attrs.title=b,b=B(b,this.mLabelMaxCharCount),n=t("div",e,[b])):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={};ee(this,r,this.$attrs,i),r.title=this.innerValue,r.clearable=this.clearable;let s=nt(this.$props,Hn,Mr,{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 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),re(this,h);let _="text";this.componentData(this,h,_);const $=this.renderPicker(t);return n?t("div",h,[n,p,$]):t("div",h,[p,$])}};var y_=D(__,null,null,!1,null,null,null,null);const $_=y_.exports,a0="",o0="",u0="",c0="",f0="",d0="",h0="",p0="",m0="",g0="",_0="",y0="",Ar=Object.freeze(Object.defineProperty({__proto__:null,Pagination:ml,Dialog:$l,Autocomplete:Sl,Dropdown:Cl,DropdownMenu:Pl,DropdownItem:Ml,Menu:jl,Submenu:Wl,MenuItem:Yl,MenuItemGroup:Zl,Input:ta,InputNumber:sa,Radio:ua,RadioGroup:ha,RadioButton:_a,Checkbox:va,CheckboxButton:wa,CheckboxGroup:Ia,Switch:Fa,Select:Ea,Option:Ha,OptionGroup:Ka,ButtonGroup:Ga,Table:Ja,TableColumn:io,DatePicker:mr,TimeSelect:ru,TimePicker:ou,Popover:du,Tooltip:gu,MessageBox:bu,Breadcrumb:Du,BreadcrumbItem:ku,Form:Lu,FormItem:Au,Tabs:qu,TabPane:Bu,Tag:Uu,Tree:Qu,Alert:nc,Notification:lc,Slider:cc,Loading:pc,Icon:yc,Row:xc,Col:Tc,Upload:Rc,Progress:Nc,Spinner:Oc,Message:Vc,Badge:zc,Card:Xc,Rate:ef,Steps:sf,Step:uf,Carousel:hf,Scrollbar:_f,CarouselItem:vf,Collapse:wf,CollapseItem:If,Cascader:Ff,ColorPicker:Ef,Transfer:Hf,Container:Kf,Header:Gf,Aside:Jf,Main:id,Footer:ad,Timeline:fd,TimelineItem:md,Link:$d,Divider:Sd,Image:Cd,Calendar:Pd,Backtop:Md,InfiniteScroll:jd,PageHeader:Wd,CascaderPanel:Yd,Avatar:Zd,Drawer:th,Popconfirm:sh,Skeleton:uh,SkeletonItem:hh,Empty:_h,Descriptions:vh,DescriptionsItem:wh,Result:Ih,Page:Nh,SubPage:jh,HeaderBar:Bh,Content:Gh,FooterBar:ep,GroupHeader:sp,Group:up,SubGroup:hp,InputRow:yp,ButtonRow:Sp,Item:wp,EmptyItem:Rp,TextItem:Lp,MoneyItem:Np,CounterItem:Ep,TimeItem:qp,DateItem:Bp,DateTimeItem:Yp,TableItem:gm,RadioItem:$m,Checkboxs:Dm,CheckboxItem:Cm,NumberItem:Pm,SwitchItem:Nm,SliderItem:Em,RateItem:qm,CascaderItem:pg,Button:bg,DialogItem:Dg,AutocompleteItem:Tg,SelectItem:Ig,TableSearchPopover:Ng,TableSearchColumn:Og,CornerLabel:Wg,Dynamic:Kg,FloatNavigator:Xg,Fragment:Qg,Overlay:Tn,Popup:Xt,Toast:Rr,ExtIcon:pt,Picker:Zt,CalendarPicker:Nr,CascaderPicker:xr,CalendarItem:$_},Symbol.toStringTag,{value:"Module"}));function b_(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 v_(t,e){let n=t.$attrs["fox-model"];return n||(n=e),n}function Er(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 x_(t){let{parentNode:e}=t;if(!(!e||!e.classList)&&!!e.classList.contains("el-dialog__body"))return e.parentNode}function S_(){return{top:0,left:0,bottom:0,right:0}}function D_(t=0,e=0){const n=ot(),i=wt()-e-t;return{width:n,height:i}}const xt={install(t,e={}){if(ge.Vue)return;ge.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=qe();if(xt.initPageLayout(e,s),e.autoAdjustPageLayout!==!1){const l=le(e.headerBarHeight||e.headBarHeight||0),o=le(e.footerBarHeight||e.footBarHeight||0),a=hn(()=>{const u=ot(),d=wt(),f=ks();f.width=u,f.height=d-l-o,vi(f)},150);ii(window,"resize",a)}if(e)for(let l in e)r.indexOf(l)===-1&&s.setOption(l,e[l]);for(let l in Ar){let o=Ar[l];typeof o.install=="function"?t.use(o):t.component(o.name,o)}t.mixin({created(){if(et.install(this),Ni(this)){let l=Er(this),o=l.$vnode&&l.$vnode.data&&l.$vnode.data.model;if(o){let a=v_(l,o.expression),u=b_(this);F.setModel(l,o.expression,a,u),Ft.install(l)}}},beforeDestroy(){if(Ni(this)){let l=Er(this),o=l.$vnode&&l.$vnode.data&&l.$vnode.data.model;if(o){let{expression:a}=o;F.removeModel(l,a)}}this.$clearHotKey()},methods:{$tip(l,o,a){if(o)fn(o)&&(a=o,o=this.$el);else{a||(a={time:3}),o=document.body;let u=x_(this.$el)||this.$el;a.offsetTop==null&&(a.offsetTop=un(u)),a.offsetLeft==null&&(a.offsetLeft=cn(u))}fox.layer.tip(l,o,a)},$setHotkey(l,o,a){this.$foxHotkeyCallbacks||(this.$foxHotkeyCallbacks=new Map),this.$foxHotkeyCallbacks.has(l)&&Dn(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&&(Dn(o,a),this.$foxHotkeyCallbacks.remove(l))},$clearHotKey(){if(!this.$foxHotkeyCallbacks)return;const l=this.$el;this.$foxHotkeyCallbacks.forEach(function(o,a){Dn(l,a,o)}),this.$foxHotkeyCallbacks=void 0},$emitEvent(l,...o){Reflect.apply(Ve,this,[this,l,...o])}}}),Object.defineProperty(t.prototype,"$foxUI",{get(){return xt}}),Object.defineProperty(t.prototype,"$langTranslator",{get(){return i}}),Js.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=kt({},S_(),t.safeAreaInset),s=kt({},D_(n,i),t.pageLayout);e=e??qe(),e.setOption("safeAreaInset",r),e.setOption("headerBarHeight",n),e.setOption("footerBarHeight",i),vi(s)}};return Object.assign(xt,Ws),window.Vue&&window.Vue.use(xt),xt});