@fox-js/foxui-pad 4.0.1-23 → 4.0.1-25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +9554 -9757
- package/dist/index.umd.js +4 -4
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +4 -0
- package/package.json +3 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0 Mon Apr
|
|
3
|
-
*/const _t=window,
|
|
1
|
+
(function(v,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],t):(v=typeof globalThis<"u"?globalThis:v||self,t(v.FoxUI={},v.Vue,v.FoxValidator,v.ElementPlus,v.ElementPlusIconsVue,v.FoxI18n))})(this,function(v,t,nt,A,ve,we){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Mon Apr 22 2024 01:22:51 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const _t=window,Br=typeof window<"u";function Fr(){return typeof _t<"u"?_t.requestAnimationFrame||_t.webkitRequestAnimationFrame||function(e){_t.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Rr(e){Br?cancelAnimationFrame(e):clearTimeout(e)}const In=Fr();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function Pt(e,n="0"){let a=0,l=-1;e[0]=="-"&&(a++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,l=2,n=n.substring(1),n.length),e=Oe(e),n=Oe(n),[e,n]=Vn(Oe(e),Oe(n)),a==1&&(l==1?e=In(e):n=In(n));let o=ua(e,n);return a?a==2?"-"+Oe(o):e.length<o.length?Oe(o.substring(1)):"-"+Oe(In(o)):Oe(o)}function In(e){let n="",a=e.length,l=e.split(".")[1],o=l?l.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=o>0?"0."+new Array(o).join("0")+"1":"1";return ua(n,r)}function Oe(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Vn(e,n){let a=e.split("."),l=n.split("."),o=a[0].length,r=l[0].length;return o>r?l[0]=new Array(Math.abs(o-r)+1).join("0")+(l[0]?l[0]:""):a[0]=new Array(Math.abs(o-r)+1).join("0")+(a[0]?a[0]:""),o=a[1]?a[1].length:0,r=l[1]?l[1].length:0,(o||r)&&(o>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(o-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(o-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function ua(e,n){[e,n]=Vn(e,n);let a="",l=0;for(let o=e.length-1;o>=0;o--){if(e[o]==="."){a="."+a;continue}let r=parseInt(e[o])+parseInt(n[o])+l;a=r%10+a,l=Math.floor(r/10)}return l?l.toString()+a:a}var xe=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(xe||{});function St(e,n=0,a=xe.HALF_EVEN){if(a===xe.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let o=e.split("."),r=o[0],i=o[1];if(n<0){if(n=-n,r.length<=n)return"0";{let s=r.substr(0,r.length-n);return e=s+"."+r.substr(r.length-n)+i,s=St(e,0,a),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,ca(o[1],r,l,a)?(l?"-":"")+On(r):(l?"-":"")+r;if(o[1]){if(o[1].length<n)return(l?"-":"")+r+"."+o[1]+new Array(n-o[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=o[1].substring(0,n);let u=o[1].substring(n);return u&&ca(u,i,l,a)&&(i=On(i),i.length>n)?(l?"-":"")+On(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function ca(e,n,a,l){if(!e||e===new Array(e.length+1).join("0")||l===xe.DOWN||!a&&l===xe.FLOOR||a&&l===xe.CEILING)return!1;if(l===xe.UP||a&&l===xe.FLOOR||!a&&l===xe.CEILING)return!0;let o="5"+new Array(e.length).join("0");if(e>o)return!0;if(e<o)return!1;switch(l){case xe.HALF_DOWN:return!1;case xe.HALF_UP:return!0;case xe.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function On(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,l="";for(let o=a;o>=0;o--){let r=parseInt(e[o])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function An(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=xt(e),n=xt(n);let l=0,o=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(o=n.length-n.indexOf(".")-1);let r=l+o;if(e=xt(e.replace(".","")),n=xt(n.replace(".","")),e.length<n.length){let f=e;e=n,n=f}if(n=="0")return"0";let i=n.length,u=0,s=[],d=i-1,h="";for(let f=0;f<i;f++)s[f]=e.length-1;for(let f=0;f<2*e.length;f++){let v=0;for(let B=n.length-1;B>=d&&B>=0;B--)s[B]>-1&&s[B]<e.length&&(v+=parseInt(e[s[B]--])*parseInt(n[B]));v+=u,u=Math.floor(v/10),h=v%10+h,d--}return h=xt(Br(h,r)),a==1&&(h="-"+h),h}function Br(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function xt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Fn(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var o=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Oe(n.replace(".","")),o>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Oe(e+new Array(o+1).join("0"));else if(o>d)e=e.replace(".",""),e=Oe(e+new Array(o-d+1).join("0"));else if(o<d){e=e.replace(".","");let h=e.length-d+o;e=Oe(e.substring(0,h)+"."+e.substring(h))}else o==d&&(e=Oe(e.replace(".","")))}let r=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(d+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=d,u="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(s)>=parseInt(n);)s=Pt(s,"-"+n),d++;u+=d,e?(e[0]=="."&&(u+=".",r++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(r||(u+="."),r++,s=s+"0")}return(l==1?"-":"")+Oe(St(u,a-2))}function Bn(e,n){return e=e.toString(),n=n.toString(),n=Rn(n),Pt(e,n)}function Rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function fa(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),da(e),da(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Bn(e,An(n,St(Fn(e,n),0,xe.FLOOR)));return a+l}function da(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function ha(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=Vn(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?a?-1:1:a?1:-1;return 0}class fe{value;static RoundingModes=xe;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,l]=n.split(/[eE]/);a=Oe(a);let o="";a[0]=="-"&&(o="-",a=a.substring(1)),a.indexOf(".")>=0?(l=parseInt(l)+a.indexOf("."),a=a.replace(".","")):l=parseInt(l)+a.length,a.length<l?n=o+a+new Array(l-a.length+1).join("0"):a.length>=l&&l>0?n=o+Oe(a.substring(0,l))+(a.length>l?"."+a.substring(l):""):n=o+"0."+new Array(-l+1).join("0")+a}return n}constructor(n="0"){this.value=fe.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,l){if(!(a||l))a=3,l=",";else if(!(a&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=fe.validate(n);let o=n.charAt(0)=="-";o&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",u=r;u>0;)u<a?(a=u,u=0):u-=a,i=n.substring(u,u+a)+(u<r-a&&u>=0?l:"")+i;return(o?"-":"")+i+n.substring(r)}getPrettyValue(n,a){return fe.getPrettyValue(this.value,n,a)}static round(n,a=0,l=xe.HALF_EVEN){if(n=fe.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return St(n,a,l)}round(n=0,a=xe.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new fe(St(this.value,n,a))}static floor(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,xe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,xe.FLOOR)}static ceil(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,xe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,xe.CEILING)}static add(n,a){return n=fe.validate(n),a=fe.validate(a),Pt(n,a)}add(n){return new fe(Pt(this.value,n.getValue()))}static subtract(n,a){return n=fe.validate(n),a=fe.validate(a),Bn(n,a)}subtract(n){return new fe(Bn(this.value,n.getValue()))}static multiply(n,a){return n=fe.validate(n),a=fe.validate(a),An(n,a)}multiply(n){return new fe(An(this.value,n.getValue()))}static divide(n,a,l){return n=fe.validate(n),a=fe.validate(a),Fn(n,a,l)}divide(n,a){return new fe(Fn(this.value,n.getValue(),a))}static modulus(n,a){return n=fe.validate(n),a=fe.validate(a),fa(n,a)}modulus(n){return new fe(fa(this.value,n.getValue()))}static compareTo(n,a){return n=fe.validate(n),a=fe.validate(a),ha(n,a)}compareTo(n){return ha(this.value,n.getValue())}static negate(n){return n=fe.validate(n),Rn(n)}negate(){return new fe(Rn(this.value))}}function ma(e,n){return fe.multiply(`${e}`,`${n}`)}function Mn(e,n,a=8){return fe.divide(`${e}`,`${n}`,a)}function Ln(e,n){return e=`${e}`,n=`${n}`,fe.compareTo(e,n)}function ga(e){return fe.negate(e)}function qt(e,n=-1,a=!1,l=3,o=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let u=r,s="",d=r.indexOf(".");d!=-1&&(u=r.substring(0,d),s=r.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):a&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let f="",v=u.split("").reverse();for(let B=0;B<v.length;B++)f+=v[B]+((B+1)%l==0&&B+1!=v.length?o:"");s.length==0?h=`${i}${f.split("").reverse().join("")}`:h=`${i}${f.split("").reverse().join("")}.${s}`}else s.length==0?h=`${i}${u}`:h=`${i}${u}.${s}`;return h}function ya(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let l=n.replace(/[^\d\.-]/g,"");return`${a}${l}`}const _n=En,Rr=Array.isArray,Mr=e=>jt(e)==="[object Map]",Lr=e=>jt(e)==="[object Set]",Ze=e=>e instanceof Date,Pn=e=>typeof e=="function",pa=e=>typeof e=="string",_r=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",zt=e=>Me(e)&&Pn(e.then)&&Pn(e.catch),ba=Object.prototype.toString,jt=e=>ba.call(e),qn=e=>jt(e)==="[object Object]",va=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Pr(e){return e.__esModule||va&&e[Symbol.toStringTag]==="Module"}const qr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function nt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,l=e.length,o=!1;for(typeof n=="boolean"&&(o=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<l;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let i in r){let u=n[i],s=r[i];if(u!==s)if(o===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[i]=nt(o,d,s)}else s!==void 0&&(n[i]=s)}}return n}function zn(e,n,a=!1){if(!a)nt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let o in n){let r=e[o],i=n[o];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!qn(i))continue;r=zn(r,i,a),e[o]=r}else{if(typeof i=="function")continue;e[o]=i}}const l=Object.getOwnPropertySymbols(n);for(let o of l){let r=e[o],i=n[o];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!qn(i))continue;r=zn(r,i,a),e[o]=r}else{if(typeof i=="function")continue;e[o]=i}}}return e}const jn=qr?Promise.resolve():null;function zr(e,...n){jn!==null?n&&n.length>0?jn.then(()=>{e(n)}):jn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function he(e){return typeof e=="number"?e:Number(e)}const jr={"[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 Ht(e){let a=Object.prototype.toString.call(e);return e==null?String(e):jr[a]||"object"}function wa(e){return e&&typeof e=="object"&&"setInterval"in e}function Kt(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Sa(e){let n=!!e&&"length"in e&&e.length,a=Ht(e);return a==="function"||wa(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function xa(e,n){let a=+n.length,l=0,o=e.length;for(;l<a;l++)e[o++]=n[l];return e.length=o,e}function Hr(e,n=[]){let a=n;return e!=null&&(Sa(Object(e))?xa(a,typeof e=="string"?[e]:e):a.push(e)),a}function Le(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=Ht(e),l=Ht(n);if(a!==l)return!1;if(a==="object"){let o=Object.keys(e),r=Object.keys(n);if(o.length!==r.length)return!1;for(let i=0;i<o.length;i++){let u=o[i],s=e[u],d=n[u];if(!Le(s,d))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let o=0;o<e.length;o++){let r=e[o],i=n[o];if(!Le(r,i))return!1}return!0}return!1}const lt=typeof window<"u";function Hn(e){return e==null}function Ta(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Ca(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function $a(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function ka(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function Da(e,n,a){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(a,"")}function Kr(e,n=!0,a=!0){n?e=Da(e,".",/\./g):e=e.replace(/\./g,""),a?e=Da(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Yr(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Le(e,a))return!0}):n.indexOf(e)}function Wr(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(l=>{if(Le(e,l))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function qe(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ut(e,...n){const a={};return n.forEach(l=>{for(const o in l)a[o]=e[o]}),a}function De(e,...n){const a=[];n.forEach(o=>{Reflect.apply([].push,a,Reflect.ownKeys(o))});const l={};for(const o in e)a.includes(o)||(l[o]=e[o]);return l}const Ur=(e,n,a)=>{const l=Object.assign({},e),o=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{o.hasOwnProperty(r)?typeof o[r]=="string"&&(l[r]=n[o[r]]):n[r]&&(l[r]=n[r])}),l):e},Ne=Symbol.for("BroadcastKey");class Kn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,l){this.parent=n,this.proxy=a,this.name=l,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(l=>n===l);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let o=!1;!n.name||n.name==="*"?o=!0:!n.name||n.name==="+"?(o=!1,n.name="*"):Ta(n.name)&&this.name&&n.name.test(this.name)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(o=!0);const r=[];if(o){const i=this.callbacks.get(a);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...l]);s!=null&&r.push(s)}const u=this.proxy??{};if(typeof u[a]=="function"){const s=Reflect.apply(u[a],u,[...l]);s!=null&&r.push(s)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},a,...l]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,r,[...u])}),r}emitToChildren(n,a,...l){const o=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},a,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}on(n,a){this.callbacks.set(n,a)}}function Yt(e,n,a,l){const o=new Kn(n,e,a);if(l&&typeof l=="object")for(const r in l)o.on(r,l[r]);return o}function Gr(e,n,a){const l=a;if(l[Ne])return l[Ne];const o=t.inject(Ne,null),r=new Kn(o,a,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return l[Ne]=r,t.provide(Ne,r),t.onUnmounted(()=>{r.destroy(),l[Ne]=void 0}),r}function Tt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ne]??t.inject(Ne,null):t.inject(Ne,null)}const at=e=>e.default??e;class Xr{error(n,a){const l=a,o=Tt(a);o?o.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const a=n,l=Tt(n);l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,l=Tt(n);l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,l){Array.isArray(n)||(n=[n]);const o=l,r=Tt(l),i=a.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?r?r.emit({name:"*"},"setRequired",!0):typeof o.setRequired=="function"&&o.setRequired(!0):i&&!u&&(r?r.emit({name:"*"},"setRequired",!1):typeof o.setRequired=="function"&&o.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let Na=new Xr;function Zr(e){Na=e}function Qr(e,n){at(tt).setValidator(e,n)}function Jr(e){at(tt).deleteValidator(e)}let Ea=["blur","clear"];function ei(e){Ea=e}function Ia(){return Ea}let Va=["focus","change"];function ti(e){Va=e}function Oa(){return Va}function ni(e){at(tt).messages(e)}function Ct(...e){const n=[];return e.forEach(a=>{a.forEach(l=>{const o=n.findIndex(r=>r.type===l.type);o!==-1&&n.splice(o,1),n.push(l)})}),n}function Wt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const We=Symbol("ValidateSchemaKey");class Aa{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,l){this.parent=n,this.descriptor=a,this.proxy=l,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const a=Wt(Ct(this.attrRules,this.rules)),l=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let s={type:r};i!==null&&typeof i=="object"&&Object.assign(s,i),l.push(s);continue}let u=this.getValidator(r);if(u!==null){let s={type:r,validator:u};l.push(s)}}this.attrRules=Wt(l);const o=Ct(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...a){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...a]);const o=Na;return o&&typeof o[n]=="function"?Reflect.apply(o[n],o,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,a,l=!1){l?at(tt).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?at(tt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return at(tt).hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}setRule(n){const a=Ct(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Wt(n):this.rules=Wt([n]);const l=Ct(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=Ct(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(a.length>0){const o={[`${l}`]:a},r=this.getValue(),i={[`${l}`]:r},u=at(tt),s=new u(o),d=this.proxy??i;return s.validate(i,{context:d}).then(f=>{if(f.pass)this.success();else{let v="error";Array.isArray(f.errors)&&f.errors.length>0&&(v=f.errors[0].message??v,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(v)}return f}).catch(f=>{const v=f.message??`${f}`;return this.error(v),f})}}return Promise.resolve({pass:!0})}}function Ut(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const o=a.valueName;a.validateHandler={getValue(r){return r[o]}}}return new Aa(n,a,e)}const Fa=Symbol.for("EventEmitterKey");class li{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let l=this.register.get(n);if(l&&Array.isArray(l)){let o=l.findIndex(r=>r===a);o!==-1&&l.splice(o,1)}}on(n,a){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(a)}emit(n,...a){const l=this.register.get(n);l&&l.forEach(o=>{try{Reflect.apply(o,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function $t(e,n){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...l])},n)}}function Ba(e,n){let a=0;return function(...l){const o=new Date().getTime();o-a<n||(a=o,Reflect.apply(e,null,[...l]))}}function ai(e,n){const a=$t((l,o)=>{e=l,o()},n);return t.customRef((l,o)=>({get(){return l(),e},set(r){a(r,o)}}))}function oi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Gt(e,n,a,l=0,o=!0,r){let i=n,u=0;if(o){const d=e();if(u++,d){typeof r=="function"&&r(!0);return}if(u>a){typeof r=="function"&&r(!1);return}}const s=()=>{const d=e();if(u++,d){typeof r=="function"&&r(!0);return}if(u>a){typeof r=="function"&&r(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const _e=Symbol("DomainKey"),ct=Symbol("DataItemsKey");class Xt{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,a=[]){for(const l in n){const o=n[l];a.length>0&&a.indexOf(o)!==-1||(this._props[l]=o)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const o=l._props[n];a.push(o)}l=l._parent}return a}}const ri=new Xt;function ft(){return ri}function Ue(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[_e]??t.inject(_e,null):t.inject(_e,null)}const Yn=Symbol("OriginalDateKey");function Wn(e,n,a=[],l){const o=t.getCurrentInstance(),r=o?.proxy;let i=t.inject(_e,null);i===null&&(i=ft());const u=e||n.prop||n.name,s=new Xt(u);s.parent=i;const d=m=>{r[Yn]||v(m),s.set("modelValue",m)},h=()=>s.getForSelf("modelValue")??null,f=()=>r[Yn]??null,v=m=>{const p={};nt(!0,p,t.toRaw(m)),r[Yn]=p};t.isReactive(n)||typeof n=="function"?t.watch(n,m=>{s.merge(m,a)},{immediate:!0}):s.merge(n,a),n.modelValue&&v(n.modelValue),r[_e]=s,t.provide(_e,s);let B=null,y=null;if(o!==null){const m=t.inject(Ne,null);B=Yt(r,m,u,l),s.broadcast=B,r[Ne]=B,t.provide(Ne,B),r.broadcast=(S,g,...c)=>Reflect.apply(B.emit,B,[S,g,...c]);const p=t.inject(We,null);y=Ut(r,p,{componentName:""}),s.validateSchema=y,r[We]=y,t.provide(We,y),r[ct]=new Map,r.validate=(S=!0)=>{const g=[];let c=null;const M={deep:!1};if(S===!0)c={name:"*"};else if(Array.isArray(S)&&S.length>0){const H=S;c={name:q=>q?H.indexOf(q)!==-1:!1}}else if(S!=null&&typeof S=="object"){const H=S;if(M.ignoreHidden=H.ignoreHidden,Array.isArray(H.include)&&H.include.length>0){const q=H.include;c={name:j=>j?q.indexOf(j)!==-1:!1}}else if(Array.isArray(H.exclude)&&H.exclude.length>0){const q=H.exclude;c={name:j=>j?q.indexOf(j)===-1:!1}}else c={name:"*"}}if(c){const H=B?.emitToChildren(c,"validate",M);H&&Reflect.apply([].push,g,H)}return g.length==1?g[0]:g.length>1?Promise.all(g).then(H=>{let q=[];return H.forEach(j=>{j.pass===!1&&Array.isArray(j.errors)&&(q=[...q,...j.errors])}),q.length>0?{pass:!1,errors:q}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(S,g=!0,c=!1)=>{if(c===!0){Reflect.ownKeys(S).forEach(H=>{let q=String(H);const R=La(s,q,{componentName:"",fieldName:q,pureDataValidate:!0},B,y);r[ct].set(q,R);const F=S[q];F&&R.validateSchema.setRule(F)});return}if(g){const M=Reflect.ownKeys(S),H={name:q=>M.includes(q)};B?.emitToChildren(H,"setNameValidateRules",S,!1)}},r.clearValidate=(S=!0)=>{let g=null;if(S===!0)g={name:"*"};else if(Array.isArray(S)&&S.length>0){const c=S;g={name:M=>M?c.indexOf(M)!==-1:!1}}else if(S!=null&&typeof S=="object"){const c=S;if(Array.isArray(c.include)&&c.include.length>0){const M=c.include;g={name:H=>H?M.indexOf(H)!==-1:!1}}else if(Array.isArray(c.exclude)&&c.exclude.length>0){const M=c.exclude;g={name:H=>H?M.indexOf(H)===-1:!1}}else g={name:"*"}}g&&B?.emitToChildren(g,"clearValidate",!1)},r.resetFields=S=>{const g=h();if(!g)return;const c={};if(nt(!0,c,f()??{}),Array.isArray(S))S.forEach(M=>{g[M]=c[M]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(H=>{g[H]=c[H]});else if(S&&Array.isArray(S.exclude)){let M=S.exclude??[];Reflect.ownKeys(c).forEach(H=>{M.includes(H)||(g[H]=c[H])})}else Object.assign(g,c);r.clearValidate(S)},r.setModelValue=(S,g)=>{!g||g===u?d(S):B?.emitToChildren({name:g},"setModelValue",S)},r.getModelValue=()=>h()}return t.onUnmounted(()=>{s.destroy(),r[_e]=void 0,r[ct]&&(r[ct].clear(),r[ct]=void 0),B!==null&&(B.destroy(),r[Ne]=void 0),y!==null&&(y.destroy(),r[We]=void 0)}),s}function Ra(e,n,a=[]){const o=t.getCurrentInstance()?.proxy;let r=t.inject(_e,null);r===null&&(r=ft());const i=e||n.prop||n.name,u=new Xt(i);return u.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,s=>{u.merge(s,a)},{immediate:!0}):u.merge(n,a),o[_e]=u,t.provide(_e,u),t.onUnmounted(()=>{u.destroy(),o[_e]=void 0}),u}function Ma(e,n,a){const o=Ue(e)?.get("rules");if(!o)return;let r=o[a];r&&(Array.isArray(r)||(r=[r]),r.forEach(i=>{n.setRule(i)}))}function Te(e,n,a){const o=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(Ne,null),u=Yt(o,i,r,a);o[Ne]=u,t.provide(Ne,u),o.broadcast=(y,m,...p)=>Reflect.apply(u.emit,u,[y,m,...p]);const s=t.inject(We,null);e.fieldName=e.fieldName??r;const d=Ut(o,s,e);o[We]=d,t.provide(We,d),Ma(o,d,r),o.validate=(y=null)=>{const m=[];let p=!1,S=!1;if(Array.isArray(y)&&y.indexOf(r)!==-1)S=!0,p=!0;else if(y&&typeof y=="object"){const g=y;g.ignoreHidden===!0&&Kt(o.$el)?S=!1:(Array.isArray(g.include)&&g.include.indexOf(r)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(r),S=!0),p=g.deep??!1}else typeof y=="boolean"&&(p=y),S=!0;if(S){const g=d?.validate();m.push(g)}if(p){let g=null;const c={deep:!1};if(y===!0)g={name:"*"};else if(Array.isArray(y)&&y.length>0){const M=y;g={name:H=>H?M.indexOf(H)!==-1:!1}}else if(y!=null&&typeof y=="object"){const M=y;if(c.ignoreHidden=M.ignoreHidden,Array.isArray(M.include)&&M.include.length>0){const H=M.include;g={name:q=>q?H.indexOf(q)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const H=M.exclude;g={name:q=>q?H.indexOf(q)===-1:!1}}else g={name:"*"}}if(g){const M=u.emitToChildren(g,"validate",c);Reflect.apply([].push,m,M)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(g=>{let c=[];return g.forEach(M=>{M.pass===!1&&Array.isArray(M.errors)&&(c=[...c,...M.errors])}),c.length>0?{pass:!1,errors:c}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=y=>d?.setRule(y),o.setNameValidateRules=(y,m=!1)=>{const p=y[r];if(p&&d?.setRule(p),m){const S={name:g=>Reflect.ownKeys(y).includes(g)};u.emitToChildren(S,"setNameValidateRules",y,!1)}},o.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(n??"")!==-1)&&d?.clear();let m=null;if(y===!0)m={name:"*"};else if(Array.isArray(y)&&y.length>0){const p=y;m={name:S=>S?p.indexOf(S)!==-1:!1}}else if(y!=null&&typeof y=="object"){const p=y;if(Array.isArray(p.include)&&p.include.length>0){const S=p.include;m={name:g=>g?S.indexOf(g)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const S=p.exclude;m={name:g=>g?S.indexOf(g)===-1:!1}}else m={name:"*"}}m&&u.emitToChildren(m,"clearValidate",!1)};const h=new li(o);o[Fa]=h;const f=$t((y="validate")=>{y==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ia()).forEach(y=>{h.on(y,m=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Oa()).forEach(y=>{h.on(y,m=>{f("reset")})}),t.onUnmounted(()=>{u.destroy(),o[Ne]=void 0,d.destroy(),o[We]=void 0,h.destroy(),o[Fa]=void 0}),{broadcast:u,validateSchema:d,emitEvent:(y,...m)=>{Reflect.apply(h.emit,h,[y,...m])},onEvent:(y,m)=>{Reflect.apply(h.on,h,[m])},offEvent:(y,m)=>{Reflect.apply(h.off,h,[m])}}}function La(e,n,a,l,o){const r={},i=n??"",u={getValue(){const h=e.getForSelf("modelValue");return h?h[i]:null},isExist(){const h=e.getForSelf("modelValue");return h?Reflect.has(h,i):!1}};a.fieldName=i,a.validateHandler={getValue(h){return u.getValue()}};const s=Ut({},o,a);r.validate=(h=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const f=[];let v=!1,B=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)B=!0,v=!0;else if(h&&typeof h=="object"){const y=h;Array.isArray(y.include)&&y.include.indexOf(i)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(i),B=!0,v=y.deep??!1}else typeof h=="boolean"&&(v=h),B=!0;if(B){const y=s?.validate();f.push(y)}if(v){let y=null;const m={deep:!1};if(h===!0)y={name:"*"};else if(Array.isArray(h)&&h.length>0){const p=h;y={name:S=>S?p.indexOf(S)!==-1:!1}}else if(h!=null&&typeof h=="object"){const p=h;if(Array.isArray(p.include)&&p.include.length>0){const S=p.include;y={name:g=>g?S.indexOf(g)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const S=p.exclude;y={name:g=>g?S.indexOf(g)===-1:!1}}else y={name:"*"}}if(y){const p=d.emitToChildren(y,"validate",m);Reflect.apply([].push,f,p)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(y=>{let m=[];return y.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(m=[...m,...p.errors])}),m.length>0?{pass:!1,errors:m}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>s?.setRule(h),r.setNameValidateRules=h=>{const f=h[i];f&&s?.setRule(f)};const d=Yt(null,l,i,r);return{broadcast:d,validateSchema:s}}const Ae=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,n)}px`:"";function me(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let o=Number(e.substring(0,a)),r=1;if(lt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(r=Number(i.substring(0,u)))}return o*=r,o}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*n;const l=Number(e);return isNaN(l)?0:l}const Qe="PageStateKey";function je(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=me(e.top)),e.left!==null&&e.left!==void 0&&(n.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=me(e.right))),n}function Un(e,n,a={},l=!0,o=-1,r=-1,i=0,u=0){if(e.headerHeight=me(a.headerHeight??n.headerHeight??-1),e.headerPadding=je(a.headerPadding??n.headerPadding),e.footerHeight=me(a.footerHeight??n.footerHeight??-1),e.footerPadding=je(a.footerPadding??n.footerPadding),e.contentPadding=je(a.contentPadding??n.contentPadding),l){const s=a.height??n.height;s?e.height=me(s,r):e.height=me(r)-me(i,r)-me(u,r),e.width=me(a.width??n.width??0,o)}}function _a(e,n={}){const a={top:null,left:null,bottom:null,right:null},l={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},o=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});o&&(l.safeAreaTop=me(o.top),l.safeAreaBottom=me(o.bottom),l.safeAreaLeft=me(o.left),l.safeAreaRight=me(o.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Un(l,r,n,!0,i,u,s,d);const h=t.reactive(l),f=e.getForParent(Qe);f&&(l.height=Qt(e,f),l.width=Jt(e,f),t.watch([()=>Qt(e,f),()=>Jt(e,f)],([B,y])=>{h.height=B,h.width=y}));const v=!f;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([B,y,m=-1,p=-1,S=0,g=0])=>{Un(h,y,n,v,m,p,S,g)}),e.set(Qe,h),h}function Zt(e){return e.get(Qe)}function kt(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Dt(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function Qt(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=kt(e,n),l=Dt(e,n);return n.height-a-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Jt(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function ii(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function si(e){return!!e.getForParent(Qe)}var Pe=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Pe||{});function Gn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ee(e,n,a=1,l){const o=Ue();return o==null?e:a===0?t.computed(()=>{const r=o.getAll(n);for(let u=r.length-1;u>=0;u--){const s=r[u];if(Gn(s,l))return s}const i=e.value;return Gn(i,l)?i:null}):t.computed(()=>{const r=e.value;return Gn(r,l)?r:o?.get(n)})}function Ie(e){return Ee(e,"readonly",0,function(a){return ue(a)})}function Ve(e){return Ee(e,"disabled",0,function(a){return ue(a)})}function de(e,n="modelValue",a){const l=t.toRef(e,n);let o=l.value;typeof a=="function"&&(o=a(l.value));const r=t.ref(o);return t.watch(l,i=>{if(typeof a=="function"){const u=a(i);u!==r.value&&(r.value=u)}else i!==r.value&&(r.value=i)}),r}const Pa=new Map,en=new Map;let Xn=null;function ui(e){Xn=e}function qa(e,n,a){if(a){let l=en.get(a);l||(l=new Map,en.set(a,l)),l.set(e,n)}else Pa.set(e,n)}function Fe(e,n,a){!a&&Xn&&(a=Xn(e)??void 0);let l=null;if(a){let o=en.get(a);o&&(l=o.get(n))}return l||(l=Pa.get(n)),l}function ci(e,n){for(let a in e){const l=e[a];qa(a,l,n)}}function fi(e){en.delete(e)}function di(){return{top:0,left:0,bottom:0,right:0}}function hi(e=0,n=0){if(lt){const a=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,o={width:a,height:l-me(e,l)-me(n,l)};return{rootWidth:a,rootHeight:l,pageLayout:o}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class mi{packages;installers;_version;get version(){return this._version}constructor(n,a,l){this.packages=n,this.installers=a,this._version=l}install(n,a={}){a?.install!==!1&&(this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],o=ft();if(this.initPageLayout(a,o),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Ba(()=>{const u={...a},s=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=d,this.initPageLayout(u,o)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)l.indexOf(r)===-1&&o.set(r,a[r])}initPageLayout(n,a){const l=n.headerBarHeight??0,o=n.footerBarHeight??0,r=nt({},di(),n.safeAreaInset),i=hi(l,o),u=nt({},i.pageLayout,n.pageLayout);a=a??ft(),a.set("safeAreaInset",r),a.set("headerBarHeight",l),a.set("footerBarHeight",o),a.set("pageLayout",u),a.set("rootWidth",i.rootWidth),a.set("rootHeight",i.rootHeight)}setScopeGetter(n){ui(n)}setAPI(n,a,l){qa(n,a,l)}getAPI(n,a,l){return Fe(n,a,l)}batchSetAPI(n,a){ci(n,a)}clearScopeAPI(n){fi(n)}getRootDomain(){return ft()}}const gi=[A.ElAffix,A.ElAlert,A.ElAutocomplete,A.ElAutoResizer,A.ElAvatar,A.ElBacktop,A.ElBadge,A.ElBreadcrumb,A.ElBreadcrumbItem,A.ElButton,A.ElButtonGroup,A.ElCalendar,A.ElCard,A.ElCarousel,A.ElCarouselItem,A.ElCascader,A.ElCascaderPanel,A.ElCheckTag,A.ElCheckbox,A.ElCheckboxButton,A.ElCheckboxGroup,A.ElCol,A.ElCollapse,A.ElCollapseItem,A.ElCollapseTransition,A.ElColorPicker,A.ElConfigProvider,A.ElContainer,A.ElAside,A.ElFooter,A.ElHeader,A.ElMain,A.ElDatePicker,A.ElDescriptions,A.ElDescriptionsItem,A.ElDialog,A.ElDivider,A.ElDrawer,A.ElDropdown,A.ElDropdownItem,A.ElDropdownMenu,A.ElEmpty,A.ElForm,A.ElFormItem,A.ElIcon,A.ElImage,A.ElImageViewer,A.ElInput,A.ElInputNumber,A.ElLink,A.ElMenu,A.ElSubMenu,A.ElMenuItem,A.ElMenuItemGroup,A.ElPageHeader,A.ElPagination,A.ElPopconfirm,A.ElPopover,A.ElPopper,A.ElProgress,A.ElRadio,A.ElRadioButton,A.ElRadioGroup,A.ElRate,A.ElResult,A.ElRow,A.ElScrollbar,A.ElSelect,A.ElOption,A.ElOptionGroup,A.ElSelectV2,A.ElSkeleton,A.ElSkeletonItem,A.ElSlider,A.ElSpace,A.ElSteps,A.ElStep,A.ElSwitch,A.ElTable,A.ElTableColumn,A.ElTableV2,A.ElTabs,A.ElTabPane,A.ElTag,A.ElTimePicker,A.ElTimeSelect,A.ElTimeline,A.ElTimelineItem,A.ElTooltip,A.ElTransfer,A.ElTree,A.ElTreeSelect,A.ElTreeV2,A.ElUpload],yi=[A.ElInfiniteScroll,A.ElLoading,A.ElMessage,A.ElMessageBox,A.ElNotification,A.ElPopoverDirective],pi=e=>{gi.forEach(n=>{let a=n.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,n)):e.use(n)}),yi.forEach(n=>{e.use(n)})};function re(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=l=>{l.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}function pe(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const be={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ce={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},za={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},ja={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Ha=[];for(const e in ja)Ha.push(e);const bi=Symbol.for("InnerPageScopeKey"),vi={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},wi=(e,n)=>({inheritAttrs:!0,props:{...be,...za,...vi},setup(a,{slots:l}){const o=Wn(a.name,a),r=t.inject(bi,!1);if(o){const h=_a(o,a);pe({getPageContentHeight:()=>Qt(o,h),getPageContentWidth:()=>Jt(o,h),getPageHeaderHeight:()=>kt(o,h),getPageFooterHeight:()=>Dt(o,h)}),h&&r&&(h.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),u=t.computed(()=>({})),s=t.getCurrentInstance(),d=(h,f=!1)=>{const v=s?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(h,!0,f)};return t.watch([()=>a.rules,()=>a.pureDataRules],([h,f],[v,B])=>{if(h&&v){const y=t.toRaw(v),m=t.toRaw(h),p=m?Reflect.ownKeys(m):[];(y?Reflect.ownKeys(y):[]).forEach(g=>{p.includes(g)||(m[g]=[])}),d(m)}if(f&&B){const y=t.toRaw(B),m=t.toRaw(f),p=m?Reflect.ownKeys(m):[];(y?Reflect.ownKeys(y):[]).forEach(g=>{p.includes(g)||(m[g]=[])}),d(m,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const h=t.toRaw(a.rules);d(h)}if(a.pureDataRules){const h=t.toRaw(a.pureDataRules);d(h,!0)}}),()=>{const h={class:i.value,style:u.value};return t.h("div",h,[l?.default?.()])}}}),{componentName:Si,create:xi,scope:Xg}=re("page"),Zn=xi(wi(Si));function tn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Qn(e){const n=t.unref(e),a=window.getComputedStyle(n,null),l=parseFloat(a.getPropertyValue("padding-left")),o=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-o,height:n.clientHeight-r-i}}const Ti=(e,n,a,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(o,r){const i=Ue(),u=i?Zt(i):null;u&&(u.headerMounted=!0);const s=e,d=t.computed(()=>({[s]:!0,[`${s}--border`]:o.border,[`${s}--fixed`]:o.fixed,[`${s}--safe-area-inset-top`]:o.safeAreaInsetTop})),h=t.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${o.align}`]:!0})),f=o.height!==null&&o.height!==void 0?me(o.height):null,v=t.computed(()=>{const C={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const T=je(o.padding??u.headerPadding);return Object.assign(C,T),f&&(u.headerHeight=f),u.headerHeight>0&&(C.height=u.headerHeight),C.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,C.safeAreaTop>0&&(C.top=C.safeAreaTop+(T.top??0),C.height&&C.height>0&&(C.height=C.height+C.safeAreaTop)),C}if(f&&(C.height=f),o.padding){const T=je(o.padding);Object.assign(C,T)}return C}),B=t.ref(null),y=()=>{if(u&&B.value&&!Kt(B.value)){if(!l){const C=tn(B.value);u.headerAllHeight=C.height}return u.headerMounted=!0,!0}return!1};let m=null;t.onMounted(()=>{u&&(Gt(y,50,5,50,!0),window.ResizeObserver&&B.value&&(m=new window.ResizeObserver(()=>{y()}),m.observe(B.value)))}),t.onUnmounted(()=>{u&&(u.headerMounted=!1,m&&(m.disconnect(),m=null))});const p=t.computed(()=>{const C={};return v.value.height!==null&&v.value.height!==void 0&&(C.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(C.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(C.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(C.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(C.paddingBottom=`${v.value.bottom}px`),C}),S=t.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function g(){r.emit("back")}function c(){r.emit("click-title")}function M(){r.emit("click-right")}function H(){r.emit("click-right-text")}const q=()=>{if(!o.leftShow)return null;const C=[];if(r.slots.left)C.push(r.slots.left());else{if(r.slots.leftIcon){const T=t.h("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);C.push(T)}else if(o.leftIcon){const T=t.h("view",{class:"left-icon",onClick:g},[t.h(o.leftIcon)]);C.push(T)}if(o.leftText){const T=t.h("view",{class:"left-text",onClick:g},[o.leftText]);C.push(T)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__left"},C)},j=()=>{if(!o.rightShow)return null;const C=[];if(r.slots.right)C.push(r.slots.right());else{if(o.rightText){const T=t.h("view",{class:"right-text",onClick:H},[o.rightText]);C.push(T)}if(r.slots.rightIcon){const T=t.h("view",{class:"right-icon",onClick:M},[r.slots.rightIcon()]);C.push(T)}else if(o.rightIcon){const T=t.h("view",{class:"right-icon",onClick:M},[t.h(o.rightIcon)]);C.push(T)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__right"},C)},R=()=>{if(!o.titleShow)return null;const C=[],T=r.slots.default?r.slots.default():null;if(T)C.push(T);else{if(o.title){const z=t.h("view",{class:"title-text"},[o.title]);C.push(z)}if(r.slots.titleIcon){const z=t.h("view",{class:"title-icon",onClick:c},[r.slots.titleIcon()]);C.push(z)}else if(o.titleIcon){const z=t.h("view",{class:"title-icon",onClick:c},[t.h(o.titleIcon)]);C.push(z)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__title"},C)},F=()=>{const C=[],T=r.slots.bottom?r.slots.bottom():null;return T&&C.push(T),C.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},C)};return()=>{if(!S.value)return null;const C=[];if(r.slots.all)C.push(r.slots.all());else{const z=[],D=q();D&&z.push(D);const I=R();I&&z.push(I);const k=j();if(k&&z.push(k),z.length>0){const _=t.h("view",{class:h.value},z);C.push(_)}const K=F();K&&C.push(K)}if(C.length===0)return null;const T={class:d.value,style:p.value,ref:B};return t.h("view",T,C)}}}),{componentName:Ci,create:$i,scope:ki}=re("header-bar"),Jn=$i(Ti(Ci,ki,Se.ArrowLeft));function Di(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,o){const r=Ue(),i=r?Zt(r):null,u=t.computed(()=>{const y=e;return{[y]:!0,[`${y}--${l.align}`]:!0,[`${y}--border`]:l.border,[`${y}--fixed`]:l.fixed,[`${y}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),s=l.height!==null&&l.height!==void 0?me(l.height):null,d=t.computed(()=>{const y={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const m=je(l.padding??i.footerPadding);return Object.assign(y,m),s&&(i.footerHeight=s),i.footerHeight>0&&(y.height=i.footerHeight),y.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,y.safeAreaBottom>0&&(y.bottom=y.safeAreaBottom+(m.bottom??0),y.height&&y.height>0&&(y.height=y.height+y.safeAreaBottom)),y}if(s&&(y.height=s),l.padding){const m=je(l.padding);Object.assign(y,m)}return y}),h=t.ref(null),f=()=>{if(i&&h.value&&!Kt(h.value)){if(!a){const y=tn(h.value);i.footerAllHeight=y.height}return i.footerMounted=!0,!0}return!1};let v=null;t.onMounted(()=>{i&&(Gt(f,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{f()}),v.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const B=t.computed(()=>{const y={};return d.value.height!==null&&d.value.height!==void 0&&(y.height=Ae(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(y.paddingTop=Ae(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(y.paddingLeft=Ae(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(y.paddingRight=Ae(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(y.paddingBottom=Ae(d.value.bottom)),y});return()=>{const y=o.slots.default?o.slots.default():[],m={ref:h,class:u.value,style:B.value};return t.h("view",m,y)}}}}const{componentName:Ni,create:Ei,scope:Zg}=re("footer-bar"),el=Ei(Di(Ni));function Ii(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const l=Ue(),o=t.computed(()=>({[e]:!0})),r=l?Zt(l):null,i=t.computed(()=>{const d={};if(l&&r){if(a.padding){const B=je(a.padding);Object.assign(r.contentPadding,B)}const h=kt(l,r),f=Dt(l,r);let v="";if(r.contentHeight?v=`${r.contentHeight}`:v=`${r.height}px`,r.contentPadding,d.height=v,r.contentPadding.top||h>0){const B=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${h+B}px`}if(r.contentPadding.bottom||f>0){const B=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${f+B}px`}return r.contentPadding.left&&(d.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(d.paddingRight=`${r.contentPadding.right}px`),d}if(a.padding){const h=je(a.padding);h.left&&(d.paddingLeft=`${h.left}px`),h.top&&(d.paddingTop=`${h.top}px`),h.right&&(d.paddingRight=`${h.right}px`),h.bottom&&(d.paddingBottom=`${h.bottom}px`)}return d}),u=t.ref(null),s=()=>{if(r&&u.value){const d=Qn(u.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}};return t.onMounted(()=>{s()}),l&&r&&t.watch([()=>kt(l),()=>Dt(l)],([])=>{s()}),{contentRef:u,classes:o,styles:i}}}}const{componentName:Vi,create:Oi,scope:Qg}=re("content"),Ai=Oi(Ii(Vi));function Fi(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const ke=(e,n)=>{const a=e.__vccOpts||e;for(const[l,o]of n)a[l]=o;return a},tl=ke(Ai,[["render",Fi]]),dt="GroupStateKey",Ka=Symbol.for("GroupScopeKey");function nn(){return t.inject(Ka,!1)}function ln(e=!0){t.provide(Ka,e)}function Bi(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const o=n[l];Hn(o)||(e[l]=o)})}function Ri(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Bi(l,n);const o=t.shallowRef(l),r=t.markRaw({layout:o,passport:0,order:{index:0}});return e.set(dt,r),r}function nl(e,n,a=-1,l=-1,o=!1,r,i,u){const s=e.get(dt);if(!s)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),l===-1&&(l=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const h=me(r),f=me(i);u||(u=d.type??"grid");const v=()=>{const B=n===""||n===-1,y=me(n);let m=he(a);const p=me(l);if(!B){let c=(y-(m-1)*p)/m;for(;f!==-1&&c>f;)m++,c=(y-(m-1)*p)/m;for(;h!==-1&&m>1&&c<h;)m--,c=(y-(m-1)*p)/m}let S=!1;const g=s.layout;g.value.width=n,g.value.column!==m&&(g.value.column=m,S=!0),g.value.gutter!==p&&(g.value.gutter=p,S=!0),g.value.type!==u&&(g.value.type=u,S=!0),S&&t.triggerRef(g)};if(o)v();else{const B=++s.passport;setTimeout(()=>{B===s.passport&&v()},50)}}function an(e,n=!1){let a;return n?a=e.getForParent(dt):a=e.get(dt),a.layout}function on(e,n=!1){let a;return n?a=e.getForParent(dt):a=e.get(dt),a.order}function Ya(e,n=1){if(n==="stretch")return-1;const a=he(n);return a===-1?100:100*a/e}function rn(e,n,a=1,l=0,o){const r={};let i=0;o?i=me(o):i=Ya(n.column,a),i>0&&(r.width=`${i}%`);const u=Ya(n.column,l);u>0&&(r["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(r["padding-left"]=`${s}px`,r["padding-right"]=`${s}px`),r}function sn(e,n,a=1,l=0){if(a==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let o=he(a);if(o===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(o>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const r=he(l)%n.column;let i=(e.index+r)%n.column,u=i+o;return u>n.column?(i=0,u=i+o,e.index=e.index+(n.column-i)+o):e.index=e.index+r+o,r>0?{"grid-column":`${i+1} / span ${o}`}:{"grid-column-start":`span ${o}`}}const Wa=Symbol("RollingStateKey");function Mi(e){t.provide(Wa,e)}function Li(){return t.inject(Wa,null)}function ll(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const o=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-o-r}else n=e.offsetHeight;return n}function _i(e){let n=ll(e);if(n<=0){const a=e.cloneNode(!0),l=e.offsetWidth;a.style=`width: ${l}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=ll(a),document.body.removeChild(a)}return n}function Pi(e,n,a){if(e<=0)return"1fr";const l=(e-(n-1)*a)/n;return l>0?`${l}px`:"1fr"}const qi={...be,...za,...ja};function zi(e,n,a){return{props:qi,emits:["update:collapse"],setup(l,o){const r=Wn(l.name,l,Ha),i=Ri(r,{type:l.type}),u=nn();ln(!0);const s=l.rollingDisplay?Li():null,d=t.ref(null),h=t.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),f=t.computed(()=>u&&r?an(r,!0).value:null),v=t.getCurrentInstance(),B=(P,Y=!1)=>{const te=v?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(P,!0,Y)};t.watch([()=>l.rules,()=>l.pureDataRules],([P,Y],[te,le])=>{if(P&&te){const E=t.toRaw(te),Z=t.toRaw(P),ne=Z?Reflect.ownKeys(Z):[];(E?Reflect.ownKeys(E):[]).forEach(ee=>{ne.includes(ee)||(Z[ee]=[])}),B(Z)}if(Y&&le){const E=t.toRaw(le),Z=t.toRaw(Y),ne=Z?Reflect.ownKeys(Z):[];(E?Reflect.ownKeys(E):[]).forEach(ee=>{ne.includes(ee)||(Z[ee]=[])}),B(Z,!0)}},{deep:!0});const y=e,m=t.computed(()=>{const P={};P.height=k.value;const Y=u?on(r,!0):null;if(f.value&&Y){if(f.value.type==="grid"){const te=sn(Y,f.value,l.span,l.offset);Object.assign(P,te)}else if(f.value.type==="flow"){const te=rn(Y,f.value,l.span,l.offset,l.width);Object.assign(P,te)}}else if(l.width){const te=Ae(l.width);P.width=te}return P}),p=t.computed(()=>{const P=i.layout.value.type;return P==="grid"||P==="flow"?{[`${y}--${P}`]:!0,[`${y}--${P}-justify-${l.justify}`]:!0,[`${y}--${P}-align-${l.align}`]:!0,[`${y}--gutter`]:!0}:{[`${y}--${P}`]:!0,[`${y}--gutter`]:!0}}),S=t.computed(()=>{if(i.layout.value.type==="grid"){let Y="";if(l.columnWidth)Y=`repeat(auto-fill, ${l.columnWidth})`;else{const te=Pi(R.value,i.layout.value.column,i.layout.value.gutter);Y=`repeat(${i.layout.value.column}, ${te})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Y}}}),g=t.toRef(l,"gutter"),c=t.toRef(l,"column"),M=t.computed(()=>u||h.value?!0:ue(l.isWrap)),H=[],q=P=>{H.push(P)},j=()=>{let P=H.length;H.splice(0,P)},R=t.ref(-1),F=P=>{const Y=Qn(P).width;Y>0&&Y!==R.value&&(R.value=Y)};nl(r,R.value,c.value,g.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([R,c,g],([P,Y,te])=>{i.order.index=0,nl(r,P,Y,te,!1,l.minItemWidth,l.maxItemWidth,l.type)});const C=t.computed(()=>K.value?l.expandText??"":l.collapseText??""),T=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),z=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!K.value,"is-collapse":K.value})),D=t.ref(),I=t.ref(),k=t.computed(()=>_.value||Ae(l.height)||""),K=t.ref(!1),_=t.ref(""),G=t.ref(!1);let W=-1;const X=(P,Y=!0)=>{const te=D.value;if(te&&K.value!==P){if(W=W===-1?_i(te):W,G.value=!0,Y)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",P||(_.value="",G.value=!1)},P){let le=0;l.collapseHeight?le=l.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&(le=I.value.offsetHeight),_.value=`${W}px`,t.nextTick(()=>{_.value=`${le}px`})}else _.value=`${W}px`;else if(P){let le=0;l.collapseHeight?le=l.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&(le=I.value.offsetHeight),_.value=`${le}px`}else G.value=!1,_.value=`${W}px`;K.value=P,o.emit("update:collapse",P)}};t.watch(()=>l.collapse,P=>{X(P)});const J=()=>{w()},w=P=>{P=P??!K.value,X(P)};pe({toggleCollapse:w,doLayout:()=>{H[0]&&(F(H[0]),nl(r,R.value,c.value,g.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let O=null,L=!0;const $=P=>{if(l.rules){const Y=t.toRaw(l.rules);B(Y)}if(l.pureDataRules){const Y=t.toRaw(l.pureDataRules);B(Y,!0)}if(lt&&(P&&X(ue(l.collapse),!1),l.autoLayout&&Array.isArray(H)&&H.length>0)){const Y=H[0];F(Y),window.ResizeObserver&&(O=new window.ResizeObserver(()=>{F(Y)}),O.observe(Y))}},U=()=>{O?.disconnect(),O=null},Q=!h.value||s?.acquire();Q&&(d.value=h.value?!0:null),t.onMounted(()=>{if(Q&&($(L),L=!1),h.value&&s){let P=null,Y=s.initialHeight;s.observe(D.value,te=>{if(te!==d.value)if(te)d.value=!0,K.value||(_.value=""),P=setTimeout(()=>{P=null,d.value!==!1&&($(L),L=!1)},100);else{if(P!==null&&clearTimeout(P),d.value=!1,!K.value)if(L)_.value=s.initialHeight;else{let le=ll(D.value);le<=0?_.value=Y:(_.value=`${le}px`,Y=_.value)}L||U()}})}}),t.onUnmounted(()=>{O?.disconnect(),s&&s.unobserve(D.value)});const N=(P="right")=>{const Y=[];if(C.value){const E={class:T.value},Z=t.h("span",E,[C.value]);Y.push(Z)}const te={class:z.value},le=a(l.collapseIcon,te);return le&&Y.push(le),Y.length>0?t.h("div",{class:{[`${y}__header-collapse`]:!0,[`is-${P}`]:!0},onClick:J},Y):null},V=(P,Y,te,le)=>{const E={...p.value};return Y===0&&(E[`${y}__first`]=!0),te>=le-1&&(E[`${y}__last`]=!0),t.h("div",{ref:q,key:`${Y}`,class:E,style:S.value},P)};return()=>{if(h.value&&d.value!==!0){const E=l.tag||"div";return t.h(E,{ref:D,prop:l.name,class:{[`${y}`]:!0,"is-collapse":G.value},style:m.value},[])}i.order.index=0;const P=[];let Y=0;if(o.slots.header){const E={key:`${Y++}`,ref:I,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},Z=t.h("div",E,[o.slots.header()]);P.push(Z)}else{const E=[],Z=l.collapsePosition==="left";if(Z&&l.showCollapse){const ne=N("left");ne&&E.push(ne)}if(l.title||o.slots.title){if(l.showMark){const ne={class:{[`${y}__header-mark`]:!0}};l.markColor&&(ne.style={background:l.markColor});const ie=t.h("div",ne);E.push(ie)}if(o.slots.title){const ne=t.h("div",{class:{[`${y}__header-title`]:!0}},[o.slots.title()]);E.push(ne)}else if(l.title){const ne=t.h("div",{class:{[`${y}__header-title`]:!0}},[l.title]);E.push(ne)}}if(o.slots.toolbar&&E.push(o.slots.toolbar()),!Z&&l.showCollapse){const ne=N("right");ne&&E.push(ne)}if(E.length>0){const ne={key:`${Y++}`,ref:I,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},ie=t.h("div",ne,E);P.push(ie)}}j();const te=o.slots.default?o.slots.default():[],le=i.layout.value.type;if(le==="grid"){const E=V(te,Y++,0,te.length);P.push(E)}else if(le==="flow"){const E=V(te,Y++,0,te.length);P.push(E)}else for(let E=0;E<te.length;E++){const Z=te[E],ne=V([Z],Y++,E,te.length);P.push(ne)}if(M.value){const E=l.tag||"div";return t.h(E,{ref:D,prop:l.name,class:{[`${y}`]:!0,"is-collapse":G.value},style:m.value},[P])}else return P}}}}const{componentName:ji,create:Hi,scope:Ki}=re("group"),al=Hi(zi(ji,Ki,(e,n)=>(e=e??Se.ArrowUp,t.h(A.ElIcon,n,{default:()=>[t.h(e)]}))));function Yi(e){return e===window}const Wi=/matrix\((.+)\)/,Ua=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Yi(n))return{x:0,y:0};let a=0,l=0,o=n;for(;o!==null;)a+=o.offsetLeft,l+=o.offsetTop,o=o.offsetParent;let r=0,i=0,u=0,s=0;for(o=n;o!==document;){i+=o.scrollTop,r+=o.scrollLeft;const{transform:d}=window.getComputedStyle(o);if(d){const h=Wi.exec(d);if(h){let v=h[1].split(/\s*,\s*/);v.length==6&&(u+=Number(v[4]),s+=Number(v[5]))}}o=o.parentNode}return a-=r,l-=i,a+=u,l+=s,{x:a,y:l}};class Ui{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Gi{monitorRegister=new WeakMap;watch(n,a){let l=n.parentNode;const o=document.body.parentNode;for(;l&&l!==o;){let r=this.monitorRegister.get(l);r||(r=new Ui,l.addEventListener("scroll",r.listen),l===document.body&&l.addEventListener("resize",r.listen),this.monitorRegister.set(l,r)),r.add(a),l=l.parentNode}}unwatch(n,a){let l=n.parentNode;const o=document.body.parentNode;for(;l&&l!==o;){let r=this.monitorRegister.get(l);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",r.listen),l===document.body&&l.removeEventListener("resize",r.listen))),l=l.parentNode}}}const Ga=new Gi,Xa={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Xi,create:Zi}=re("price"),Qi=Zi({props:{...Xa},setup(e){const n=t.computed(()=>({[Xi]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>qe(e.price)==0?"":qt(e.price,e.decimalLength,!0,he(e.digits),e.separator)),o=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),r=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:a,intText:o,decimalText:r}}}),Ji=["innerHTML"],es=["innerHTML"];function ts(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ji)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,es)):t.createCommentVNode("",!0)],2)}const un=ke(Qi,[["render",ts]]),{componentName:ol,create:ns}=re("hint-text"),ls=ns({components:{Price:un},props:{...Xa,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=t.ref({top:null,right:null,bottom:null,left:null}),l=t.ref({x:0,y:0}),o=t.ref(0),r=t.ref(0),i=t.ref(e.placement),u=t.ref(!1),s=t.ref(null),d=(T,z,D,I,k,K)=>{const _=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,W=T.split("-");let X=[];W[0]==="top"?X=["top","bottom","right","left"]:W[0]==="bottom"?X=["bottom","top","right","left"]:W[0]==="left"?X=["left","top","bottom","right"]:W[0]==="right"&&(X=["right","top","bottom","left"]);const J={top:null,right:null,bottom:null,left:null},w=[];for(let x=0;x<X.length;x++){const O=X[x];if(w[0]=O,W[1]&&(w[1]=W[1]),O==="top"){const L=z.y-K-e.arrowSize-e.offset;if(L>=0){J.top=L;let $=0;W[1]==="start"?$=z.x:W[1]==="end"?$=z.x+D-k:$=z.x+D/2-k/2;const U=_-$-k;U<0?($+=U,f.value=-U):f.value=0,J.left=$<0?0:$;break}}else if(O==="bottom"){const L=z.y+I+e.arrowSize+e.offset;if(L+K<=G){J.top=L;let $=0;W[1]==="start"?$=z.x:W[1]==="end"?$=z.x+D-k:$=z.x+D/2-k/2;const U=_-$-k;U<0?($+=U,f.value=-U):f.value=0,J.left=$<0?0:$;break}}else if(O==="left"){const L=z.x-k-e.arrowSize-e.offset;if(L>=0){J.left=L;let $=0;W[1]==="start"?$=z.y:W[1]==="end"?$=z.y+I-K:$=z.y+I/2-K/2,J.top=$<0?0:$;break}}else if(O==="right"){const L=z.x+D+e.arrowSize+e.offset;if(L+k<=_){J.left=L;let $=0;W[1]==="start"?$=z.y:W[1]==="end"?$=z.y+I-K:$=z.y+I/2-K/2,J.top=$<0?0:$;break}}}return{bestPlacement:w.join("-"),bestInsetRect:J}},h=(T,z,D=10)=>{if(!lt||z===!1||!T)return;l.value=Ua(e.reference),o.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const I=s.value.offsetHeight,k=s.value.offsetWidth,{bestPlacement:K,bestInsetRect:_}=d(e.placement,l.value,o.value,r.value,k,I);i.value=K,a.value=_,u.value=!0},f=t.ref(0),v=$t(()=>{h(e.message,e.visible)},10),B=t.ref(e.visible);t.watch(()=>e.visible,T=>{B.value=T});const y=t.computed(()=>B.value&&m.value),m=t.ref(!0),p=$t(T=>{const z=T[0];z&&(m.value=z.isIntersecting)},10),S=new IntersectionObserver(p);t.watch([()=>e.message,()=>e.visible],([T,z])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Ga.watch(e.reference,v),S.observe(e.reference)}),t.onBeforeMount(()=>{Ga.unwatch(e.reference,v),S.unobserve(e.reference),S.disconnect()});const g=t.computed(()=>{const T={[ol]:!0};return i.value.startsWith("top")?T["is-top"]=!0:i.value.startsWith("right")?T["is-right"]=!0:i.value.startsWith("bottom")?T["is-bottom"]=!0:i.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),c=t.computed(()=>{const T={};a.value.top!==null&&(T.top=`${a.value.top}px`),a.value.right!==null&&(T.right=`${a.value.right}px`),a.value.bottom!==null&&(T.bottom=`${a.value.bottom}px`),a.value.left!==null&&(T.left=`${a.value.left}px`),e.autoFit&&(T["min-width"]=`${o.value}px`);const z=document.documentElement.clientWidth||document.body.clientWidth;return T["max-width"]=`${z}px`,u.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),M=t.computed(()=>{const T=[`${ol}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),H=t.computed(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),q=t.computed(()=>({[`${ol}__arrow`]:!0})),j=t.computed(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,i.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="top-start"?(T.left=`${e.arrowOffset+f.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(T.right=`${e.arrowOffset-f.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(T.left=`${e.arrowOffset+f.value}px`,T.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(T.right=`${e.arrowOffset-f.value}px`,T.top=`-${e.arrowSize}px`):i.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),R=t.computed(()=>y.value&&e.closeOnClick),F=t.computed(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:y,tipRef:s,classes:g,styles:c,textClasses:M,textStyles:H,arrowClasses:q,arrowStyles:j,overlayShow:R,overlayStyle:F,onClickOverlay:()=>{B.value=!1,n.emit("update:visible",!1)}}}}),as=["innerHTML"];function os(e,n,a,l,o,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,as))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Nt=ke(ls,[["render",os]]);class Za{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const rl={},rs=new Za,ht=new Map,cn=e=>{if(e){const n=document.getElementById(e);ht.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of ht.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}ht.clear()}},is=e=>{e.unmount=cn;const n=document.getElementById(e.id);if(n){const a=ht.get(e.id);a?e={...rl,...a,...e}:e={...rl,...e},e.transition=!1;const l=t.createVNode(Nt,e);return t.render(l,n),e.id}},ss=e=>{e.unmount=cn;let n=e.id??`hinttext_${rs.get()}`;e={...rl,...e},e.id=n,ht.set(n,e);const a=document.createElement("div");a.id=e.id;const l=t.createVNode(Nt,e);return t.render(l,a),document.body.appendChild(a),n},us=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Be={show(e,n,a={},l=!0){us(n);const o=a.id;return o&&ht.has(o)?is({...a,message:n,reference:e}):(l&&cn(),ss({...a,message:n,reference:e}))},hide(e){cn(e)},install(e){e.config.globalProperties.$hintText=Be}};function cs(e,n,a,l=!1){return{inheritAttrs:!0,props:{...be,...Ce},emits:["appear","disappear"],setup(o,r){const i=o.prop??r.attrs.name;Te({componentName:e,validate:!1},i);const u=Ue(),s=nn();ln(!1);const d=t.computed(()=>s&&u?an(u,!1).value:null),h=e,f=t.ref(null),v=t.computed(()=>{const E={[h]:!0,[`${h}__gutter`]:d.value&&d.value.type!=="flow",[`${h}__stretch`]:o.span==="stretch",[`${h}__input--border`]:ue(o.hasBorder)};if(E[o.errorMarkClass]=!!K.value,E[o.warnMarkClass]=!!I.value,E[o.infoMarkClass]=!!z.value,typeof f.value=="function"){const Z=f.value(i);E[Z]=!0}else if(typeof f.value=="string"){const Z=f.value;E[Z]=!0}return E}),B=t.ref(null),y=t.computed(()=>{const E={};if(o.width)o.width!=="auto"&&(E.width=Ae(o.width));else{const Z=s&&u?on(u,!1):null;if(d.value&&Z){if(d.value.type==="grid"){const ne=sn(Z,d.value,o.span,o.offset);Object.assign(E,ne)}else if(d.value.type==="flow"){const ne=rn(Z,d.value,o.span,o.offset,o.width);Object.assign(E,ne)}}}if(typeof B.value=="function"){const Z=B.value(i);Z&&Object.assign(E,Z)}else if(B.value&&typeof B.value=="object"){const Z=B.value;Object.assign(E,Z)}return E}),m=t.ref(null),p=t.computed({get:()=>m.value??ue(o.isRequired),set:E=>{m.value=E}}),S=()=>typeof o.label=="string"&&o.label.length>0||typeof r.slots.label=="function",g=Ee(t.toRef(o,"labelPosition"),"labelPosition",Pe.Near),c=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),M=t.computed(()=>({[`${h}__main`]:!0,[`${h}__main--${c.value}`]:!0})),H=t.computed(()=>({label:!0,[`label--${c.value}`]:!0})),q=Ee(t.toRef(o,"labelWidth"),"labelWidth",Pe.Near),j=t.computed(()=>q&&q.value?{width:Ae(q.value)}:{}),R=t.computed(()=>({"label--string":!0,"label--required":p.value})),F=t.computed(()=>({content:!0,[o.contentClass]:!0})),C=t.computed(()=>({...o.contentStyle})),T=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});pe({setRequired(E){p.value=E},setErrorTip(E){T.errorTip=E},setErrorIcon(E){T.errorIcon=E},setWarnTip(E){T.warnTip=E},setWarnIcon(E){T.warnIcon=E},setInfoTip(E){T.infoTip=E},setInfoIcon(E){T.infoIcon=E},setCustomClassName(E){f.value=E},setCustomStyle(E){B.value=E}});const z=t.computed(()=>o.infoTip||T.infoTip),D=t.computed(()=>o.infoIcon||T.infoIcon),I=t.computed(()=>o.warnTip||T.warnTip),k=t.computed(()=>o.warnIcon||T.warnIcon),K=t.computed(()=>o.errorTip||T.errorTip),_=t.computed(()=>o.errorIcon||T.errorIcon),G=t.computed(()=>K.value?"error":I.value?"warn":z.value?"info":""),W=()=>G.value.length>0,X=t.computed(()=>G.value==="error"?K.value:G.value==="warn"?I.value:G.value==="info"?z.value:""),J=t.computed(()=>G.value==="error"?_.value:G.value==="warn"?k.value:G.value==="info"?D.value:null),w=t.computed(()=>{const E={[`${h}__tip`]:!0,[`${h}__tip--${G.value}`]:!0,[`${h}--animate`]:!0};return G.value==="error"&&o.errorClass?E[`${o.errorClass}`]=!0:G.value==="warn"&&o.warnClass?E[`${o.warnClass}`]=!0:G.value==="info"&&o.infoClass&&(E[`${o.infoClass}`]=!0),E}),x=t.computed(()=>{const E={};return g&&g.value==="top"||!S()?E["padding-left"]="0px":q&&q.value&&(E["padding-left"]=Ae(q.value)),E}),O=t.ref();let L="";t.watch([()=>o.hintVisible,()=>o.hintText,()=>o.hintType,()=>o.hintProps],([E,Z,ne,ie])=>{O.value&&(E&&!ge(Z)?L?a.show(O.value,Z,{...ie,id:L,type:ne},!0):L=a.show(O.value,Z,{...ie,type:ne},!0):a.hide(L))});let $=null;const U=()=>{$||!O.value||($=new IntersectionObserver(E=>{let Z=!1;for(let ne of E)if(ne.intersectionRatio>0){Z=!0,Z&&r.emit("appear",ne);break}Z||r.emit("disappear")}),$.observe(O.value))},Q=()=>{!$||!O.value||($.unobserve(O.value),$=null)};t.watch(()=>ue(o.appearListen),E=>{E?U():Q()}),t.onMounted(()=>{ue(o.appearListen)&&U()}),t.onUnmounted(Q);const N=()=>{if(!S())return null;const E=[],Z=r.slots?.label?.()??o.label,ne={class:R.value},ie=t.h("div",ne,[Z]);if(E.push(ie),r.slots.fixedPreTip){const oe=r.slots.fixedPreTip();E.push(oe)}const ee={class:H.value,style:j.value};return t.h("div",ee,E)},V=()=>{const E=[];if(r.slots.prepend){const ne=r.slots.prepend();E.push(ne)}if(r.slots.default){const ne=r.slots.default();E.push(ne)}if(r.slots.append){const ne=r.slots.append();E.push(ne)}if(r.slots.fixedTip){const ne={class:[`${h}__fixed-tip`]},ie=t.h("div",ne,[r.slots.fixedTip()]);E.push(ie)}const Z={ref:O,class:F.value,style:C.value};return t.h("div",Z,E)},P=()=>{const E=J.value;return E?typeof E=="function"?t.h("div",{class:"fox-item__tip--icon"},[E()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(E)]):null},Y=()=>{const E=X.value;return E?typeof E=="function"?t.h("div",{class:"fox-item__tip--text"},[E()]):t.h("div",{class:"fox-item__tip--text"},[E]):null},te=()=>{if(!W())return null;const E=[],Z=P();Z&&E.push(Z);const ne=Y();ne&&E.push(ne);const ie={class:w.value,style:x.value};return t.h("div",ie,E)},le=()=>r.slots?.hide?.()??null;return()=>{const E=[],Z=[],ne=N();ne&&Z.push(ne);const ie=V();ie&&Z.push(ie);const ee={class:M.value},oe=t.h("div",ee,Z);E.push(oe);const se=te();se&&E.push(se);const ce=le();ce&&E.push(ce);const $e={class:v.value,style:y.value,prop:o.prop};return t.h("div",$e,E)}}}}const{componentName:fs,create:ds,scope:hs}=re("item"),we=ds(cs(fs,hs,Be,!1));function ms(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(a,l){const o=Ue(),r=nn();ln(!1);const i=t.computed(()=>r&&o?an(o,!1).value:null),u=e,s=t.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const h={},f=r&&o?on(o,!1):null;if(i.value&&f)if(i.value.type==="grid"){const v=sn(f,i.value,a.span,a.offset);Object.assign(h,v)}else if(i.value.type==="flow"){const v=rn(f,i.value,a.span,a.offset,a.width);Object.assign(h,v)}else return a.width&&(h.width=Ae(a.width)),h;else a.width&&(h.width=Ae(a.width));return h});return()=>{const h={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",h,l.slots.default()):t.h("div",h)}}}}const{componentName:gs,create:ys,scope:ey}=re("slot-item"),il=ys(ms(gs));function ps(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(a,l){const o=e,r=t.computed(()=>({[o]:!0,[`${o}__stretch`]:a.span==="stretch",[`${o}__${a.align}`]:!0})),i=Ue(),u=nn();ln(!1);const s=t.computed(()=>{const d={};if(u&&i){const h=an(i,!1),f=on(i,!1);if(h.value&&f)if(h.value.type==="grid"){const v=sn(f,h.value,a.span,a.offset);Object.assign(d,v)}else if(h.value.type==="flow"){const v=rn(f,h.value,a.span,a.offset,a.width);Object.assign(d,v)}else a.width&&(d.width=Ae(a.width))}else a.width&&(d.width=Ae(a.width));return d});return()=>{const d=[];if(l.slots.default){const f=l.slots.default();if(a.divide)for(let v=0;v<f.length;v++){if(v>0){const B=t.h("div",{class:{[`${o}__divide`]:!0}});d.push(B)}d.push(f[v])}else Reflect.apply([].push,d,f)}const h={class:r.value,style:s.value};return t.h("div",h,d)}}}}const{componentName:bs,create:vs,scope:ty}=re("row-item"),sl=vs(ps(bs)),He=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(l=>{typeof l=="string"&&l.indexOf("data-fox")!==0&&(n[l]=e[l])}),n},Qa={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function ws(e,n,a){return{props:{...be,...Ce,...Qa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=de(l,"modelValue"),v=e,B=t.computed(()=>({[v]:!0,[`${v}__disabled`]:r.value,[`${v}__readonly`]:i.value})),y=D=>{f.value=D,u("update:modelValue",D),u("input",D)},m=D=>{u("change",D)};let p=de(l,"hintText"),S=t.ref(!1);const g=D=>{let k=D.target.value;h.value=!0,ge(p.value)||(S.value=!0),u("focus",k,D)},c=D=>{setTimeout(()=>{S.value&&(S.value=!1),h.value=!1},0);let k=D.target.value;l.maxLength&&k.length>Number(l.maxLength)&&(k=k.slice(0,Number(l.maxLength))),u("blur",k,D)},M=()=>{u("clear","")},H=t.ref(!1);let q=null;const j=()=>{l.showTooltip&&H.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{H.value=!0},150))},R=()=>{q&&(clearTimeout(q),H.value=!1,q=null)},F=t.computed(()=>H.value||S.value),C=t.computed(()=>H.value?f.value:p.value),T=t.computed(()=>qe(l.unit)>0),z=t.ref();return pe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const I={...He(o.attrs),ref:z,class:B.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:f.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:M,onChange:m,onInput:y,onFocus:g,onBlur:c,onMouseover:j,onMouseleave:R},k={};o.slots.prepend&&(k.prepend=o.slots.prepend),o.slots.append&&(k.append=o.slots.append),o.slots.prefix&&(k.prefix=o.slots.prefix),o.slots.suffix?k.suffix=o.slots.suffix:T.value&&(k.suffix=()=>[l.unit]);const K=[],_=t.h(A.ElInput,I,k);K.push(_);const G={default:()=>K};o.slots.default&&(G.label=o.slots.default),o.slots.default&&(G.fixedTip=o.slots.fixedTip);const X={...De(l,Qa),hintText:C.value,hintVisible:F.value,prop:`${l.prop}_item`};return t.h(a,X,G)}}}}const{componentName:Ss,create:xs,scope:Ts}=re("input-item"),ul=xs(ws(Ss,Ts,we));function Je(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Et(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ja(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function Cs(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let $s=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function ks(){const e=t.getCurrentInstance();return new $s(e.proxy)}function eo(e,n,a){const l=Je(e,n),o=Je(e,a);if(l!==o)return!1;const r=Et(e,n),i=Et(e,a);return r===i}function to(e,n,a,l){if(l.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];return n.forEach(r=>{for(let i of l){const u=Ja(e,i);if(Array.isArray(u)&&u.length>0){const s=to(e,r,a,u)??[];Reflect.apply([].push,o,s)}else{let s=!1;if(a==="text")s=Je(e,i)===r;else if(a==="item")s=eo(e,i,r);else{let d=Et(e,i);d==null&&(d=Je(e,i)),s=d===r}if(s){o.push(i);break}}}}),o}function Ds(e){return{text:e,value:e}}const no={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Ns(e,n,a){return{props:{...be,...Ce,...no},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(null),f=t.ref([]),v=t.computed(()=>f.value?f.value.map(P=>Je(l,P)).join(" "):""),B=(V,P,Y,te=!0)=>{const le=to(l,V,P,Y);if(le===null){if(f.value===null||f.value.length===0)return;h.value=null,f.value=[],te&&(u("update:modelValue",null),u("update:text",null),u("change",null));return}let E=!0;if(le.length!==f.value.length)E=!1;else for(let Z=0;Z<le.length;Z++){const ne=le[Z],ie=f.value[Z];if(!eo(l,ne,ie)){E=!1;break}}if(!E){f.value=le;let Z=[],ne=[],ie=[];le.forEach(ce=>{const $e=Et(l,ce),ye=Je(l,ce);Z.push($e),ie.push(ye),l.valueType==="text"?ne.push(ye):l.valueType==="item"?ne.push(ce):ne.push($e)});let ee,oe,se;ue(l.multiple)?(h.value=Z,ee=t.toRaw(ne),oe=ie,se=t.toRaw(le)):(h.value=Z[0]??"",ee=t.toRaw(ne[0]??""),oe=ie[0]??"",se=t.toRaw(le[0])),te&&(u("update:modelValue",ee),u("change",ee,se)),u("update:text",oe)}},y=t.ref(null),m=t.ref(null),p=t.computed(()=>m.value??y.value??[]),S=Ee(t.computed(()=>l.lazyLoad),"lazyLoad",Pe.Near,V=>ue(V)),g=ks(),c=async(V,P)=>{if(V){const Y=await g.load("select",V,P);if(Y.length>0)if(typeof Y[0]=="string"){let E=Y.map(Z=>Ds(Z));y.value=E}else y.value=Y;else y.value=null}};t.watch([()=>l.source,()=>l.params],([V,P])=>{m.value=null,c(V,P)},{immediate:!S.value});let M=!1;const H=()=>{M||(M=!0,c(l.source,l.params))};t.watch([()=>y.value,()=>l.modelValue],([V,P])=>{if(F()&&ue(l.multiple)){Le(P,h.value)||(h.value=P);return}B(P,l.valueType,p.value,!1)});let q=null,j=t.ref(!1);typeof l.remoteMethod=="function"&&(q=async V=>{if(V==null){m.value=null;return}j.value=!0;try{const P=await l.remoteMethod(V);P&&(m.value=P)}catch(P){m.value=null,console.error(P)}j.value=!1});let R=null;typeof l.filterMethod=="function"&&(R=async V=>{if(V==null){m.value=null;return}j.value=!0;try{const P=await l.filterMethod(V,y.value);P&&(m.value=P)}catch(P){m.value=null,console.error(P)}j.value=!1});const F=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",C=t.ref(!1),T=e,z=t.computed(()=>({[T]:!0})),D=V=>{l.allowCreate||F()&&ue(l.multiple)?(u("update:modelValue",V),u("change",V),u("update:text",V),h.value=V):B(V,"value",p.value,!0)};let I=de(l,"hintText"),k=t.ref(!1);const K=V=>{let Y=V.target.value;C.value=!0,ge(I.value)||(k.value=!0),u("focus",Y,V)},_=V=>{setTimeout(()=>{k.value&&(k.value=!1),C.value=!1},0);let Y=V.target.value;l.maxLength&&Y.length>Number(l.maxLength)&&(Y=Y.slice(0,Number(l.maxLength))),L.value||u("blur",Y,V)},G=()=>{u("clear","")},W=t.ref(!1);let X=null;const J=()=>{l.showTooltip&&W.value===!1&&(X&&clearTimeout(X),X=setTimeout(()=>{W.value=!0},150))},w=()=>{X&&(clearTimeout(X),W.value=!1,X=null)},x=t.computed(()=>W.value||k.value),O=t.computed(()=>W.value?v.value:I.value),L=t.ref(!1),$=V=>{L.value=V,u("visible-change",V),V||u("selected")},U=V=>{u("remove-tag",V)},Q=(V,P)=>{const Y=[];return V.forEach((te,le)=>{const E=Ja(l,te);if(Array.isArray(E)&&E.length>0){const Z=Q(E,P),ne=Je(l,te),ee={key:`${ne}_${le}`,label:ne};Y.push(t.h(A.ElOptionGroup,ee,{default:()=>Z}))}else{const Z=Et(l,te),ne=Je(l,te),ie=Cs(l,te),oe={key:`${Z}_${le}`,label:ne,disabled:ie,value:Z};if(typeof P=="function")Y.push(t.h(A.ElOption,oe,{default:()=>P(te)}));else if(l.optionType==="item"){const se={class:{"fox-select-item__option-left":!0}},ce=t.h("span",se,[Z]),$e={class:{"fox-select-item__option-right":!0}},ye=t.h("span",$e,[ne]),wt=t.h("div",{class:{"fox-select-item__option":!0}},[ce,ye]);Y.push(t.h(A.ElOption,oe,{default:()=>wt}))}else l.optionType==="value"?Y.push(t.h(A.ElOption,oe,{default:()=>[Z]})):Y.push(t.h(A.ElOption,oe))}}),Y},N=t.ref();return pe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()}}),()=>{const P={...He(o.attrs),ref:N,class:z.value,clearable:l.clearable,multiple:l.multiple,placeholder:d.placeholder.value,disabled:r.value||i.value,modelValue:h.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:G,onChange:D,onFocus:K,onBlur:_,onVisibleChange:$,onRemoveTag:U};typeof q=="function"&&(P["remote-method"]=q,P.loading=j.value),typeof R=="function"&&(P["filter-method"]=R,P.loading=j.value);const Y={};o.slots.prefix&&(Y.prefix=o.slots.prefix),o.slots.empty&&(Y.empty=o.slots.empty),o.slots.options?Y.default=o.slots.options:Y.default=()=>Q(p.value,o.slots.option);const te=[],le=t.h(A.ElSelect,P,Y);te.push(le);const E={default:()=>te};o.slots.default&&(E.label=o.slots.default),o.slots.fixedTip&&(E.fixedTip=o.slots.fixedTip);const ne={...De(l,no),hintText:O.value,hintVisible:x.value,prop:`${l.prop??o.attrs.name}_item`,onMouseover:J,onMouseleave:w};return S.value&&(ne["appear-listen"]=!0,ne.onAppear=H),t.h(a,ne,E)}}}}const{componentName:Es,create:Is,scope:Vs}=re("select-item"),cl=Is(Ns(Es,Vs,we));var Ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){var a=1e3,l=6e4,o=36e5,r="millisecond",i="second",u="minute",s="hour",d="day",h="week",f="month",v="quarter",B="year",y="date",m="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,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("_")},c=function(D,I,k){var K=String(D);return!K||K.length>=I?D:""+Array(I+1-K.length).join(k)+D},M={s:c,z:function(D){var I=-D.utcOffset(),k=Math.abs(I),K=Math.floor(k/60),_=k%60;return(I<=0?"+":"-")+c(K,2,"0")+":"+c(_,2,"0")},m:function D(I,k){if(I.date()<k.date())return-D(k,I);var K=12*(k.year()-I.year())+(k.month()-I.month()),_=I.clone().add(K,f),G=k-_<0,W=I.clone().add(K+(G?-1:1),f);return+(-(K+(k-_)/(G?_-W:W-_))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:f,y:B,w:h,d,D:y,h:s,m:u,s:i,ms:r,Q:v}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},H="en",q={};q[H]=g;var j=function(D){return D instanceof T},R=function D(I,k,K){var _;if(!I)return H;if(typeof I=="string"){var G=I.toLowerCase();q[G]&&(_=G),k&&(q[G]=k,_=G);var W=I.split("-");if(!_&&W.length>1)return D(W[0])}else{var X=I.name;q[X]=I,_=X}return!K&&_&&(H=_),_||!K&&H},F=function(D,I){if(j(D))return D.clone();var k=typeof I=="object"?I:{};return k.date=D,k.args=arguments,new T(k)},C=M;C.l=R,C.i=j,C.w=function(D,I){return F(D,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var T=function(){function D(k){this.$L=R(k.locale,null,!0),this.parse(k)}var I=D.prototype;return I.parse=function(k){this.$d=function(K){var _=K.date,G=K.utc;if(_===null)return new Date(NaN);if(C.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var W=_.match(p);if(W){var X=W[2]-1||0,J=(W[7]||"0").substring(0,3);return G?new Date(Date.UTC(W[1],X,W[3]||1,W[4]||0,W[5]||0,W[6]||0,J)):new Date(W[1],X,W[3]||1,W[4]||0,W[5]||0,W[6]||0,J)}}return new Date(_)}(k),this.$x=k.x||{},this.init()},I.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},I.$utils=function(){return C},I.isValid=function(){return this.$d.toString()!==m},I.isSame=function(k,K){var _=F(k);return this.startOf(K)<=_&&_<=this.endOf(K)},I.isAfter=function(k,K){return F(k)<this.startOf(K)},I.isBefore=function(k,K){return this.endOf(K)<F(k)},I.$g=function(k,K,_){return C.u(k)?this[K]:this.set(_,k)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(k,K){var _=this,G=!!C.u(K)||K,W=C.p(k),X=function(Q,N){var V=C.w(_.$u?Date.UTC(_.$y,N,Q):new Date(_.$y,N,Q),_);return G?V:V.endOf(d)},J=function(Q,N){return C.w(_.toDate()[Q].apply(_.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(N)),_)},w=this.$W,x=this.$M,O=this.$D,L="set"+(this.$u?"UTC":"");switch(W){case B:return G?X(1,0):X(31,11);case f:return G?X(1,x):X(0,x+1);case h:var $=this.$locale().weekStart||0,U=(w<$?w+7:w)-$;return X(G?O-U:O+(6-U),x);case d:case y:return J(L+"Hours",0);case s:return J(L+"Minutes",1);case u:return J(L+"Seconds",2);case i:return J(L+"Milliseconds",3);default:return this.clone()}},I.endOf=function(k){return this.startOf(k,!1)},I.$set=function(k,K){var _,G=C.p(k),W="set"+(this.$u?"UTC":""),X=(_={},_[d]=W+"Date",_[y]=W+"Date",_[f]=W+"Month",_[B]=W+"FullYear",_[s]=W+"Hours",_[u]=W+"Minutes",_[i]=W+"Seconds",_[r]=W+"Milliseconds",_)[G],J=G===d?this.$D+(K-this.$W):K;if(G===f||G===B){var w=this.clone().set(y,1);w.$d[X](J),w.init(),this.$d=w.set(y,Math.min(this.$D,w.daysInMonth())).$d}else X&&this.$d[X](J);return this.init(),this},I.set=function(k,K){return this.clone().$set(k,K)},I.get=function(k){return this[C.p(k)]()},I.add=function(k,K){var _,G=this;k=Number(k);var W=C.p(K),X=function(x){var O=F(G);return C.w(O.date(O.date()+Math.round(x*k)),G)};if(W===f)return this.set(f,this.$M+k);if(W===B)return this.set(B,this.$y+k);if(W===d)return X(1);if(W===h)return X(7);var J=(_={},_[u]=l,_[s]=o,_[i]=a,_)[W]||1,w=this.$d.getTime()+k*J;return C.w(w,this)},I.subtract=function(k,K){return this.add(-1*k,K)},I.format=function(k){var K=this,_=this.$locale();if(!this.isValid())return _.invalidDate||m;var G=k||"YYYY-MM-DDTHH:mm:ssZ",W=C.z(this),X=this.$H,J=this.$m,w=this.$M,x=_.weekdays,O=_.months,L=function(N,V,P,Y){return N&&(N[V]||N(K,G))||P[V].slice(0,Y)},$=function(N){return C.s(X%12||12,N,"0")},U=_.meridiem||function(N,V,P){var Y=N<12?"AM":"PM";return P?Y.toLowerCase():Y},Q={YY:String(this.$y).slice(-2),YYYY:this.$y,M:w+1,MM:C.s(w+1,2,"0"),MMM:L(_.monthsShort,w,O,3),MMMM:L(O,w),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:L(_.weekdaysMin,this.$W,x,2),ddd:L(_.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(X),HH:C.s(X,2,"0"),h:$(1),hh:$(2),a:U(X,J,!0),A:U(X,J,!1),m:String(J),mm:C.s(J,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:W};return G.replace(S,function(N,V){return V||Q[N]||W.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(k,K,_){var G,W=C.p(K),X=F(k),J=(X.utcOffset()-this.utcOffset())*l,w=this-X,x=C.m(this,X);return x=(G={},G[B]=x/12,G[f]=x,G[v]=x/3,G[h]=(w-J)/6048e5,G[d]=(w-J)/864e5,G[s]=w/o,G[u]=w/l,G[i]=w/a,G)[W]||w,_?x:C.a(x)},I.daysInMonth=function(){return this.endOf(f).$D},I.$locale=function(){return q[this.$L]},I.locale=function(k,K){if(!k)return this.$L;var _=this.clone(),G=R(k,K,!0);return G&&(_.$L=G),_},I.clone=function(){return C.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()},D}(),z=T.prototype;return F.prototype=z,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",d],["$M",f],["$y",B],["$D",y]].forEach(function(D){z[D[1]]=function(I){return this.$g(I,D[0],D[1])}}),F.extend=function(D,I){return D.$i||(D(I,T,F),D.$i=!0),F},F.locale=R,F.isDayjs=j,F.unix=function(D){return F(1e3*D)},F.en=q[H],F.Ls=q,F.p={},F})})(lo);var Os=lo.exports;const Ke=Xe(Os);var ao={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){var a={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"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(p){this[m]=+p}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var S=p.match(/([+-]|\d\d)/g),g=60*S[1]+(+S[2]||0);return g===0?0:S[0]==="+"?-g:g}(m)}],f=function(m){var p=u[m];return p&&(p.indexOf?p:p.s.concat(p.f))},v=function(m,p){var S,g=u.meridiem;if(g){for(var c=1;c<=24;c+=1)if(m.indexOf(g(c,0,p))>-1){S=c>12;break}}else S=m===(p?"pm":"PM");return S},B={A:[i,function(m){this.afternoon=v(m,!1)}],a:[i,function(m){this.afternoon=v(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[o,d("day")],Do:[i,function(m){var p=u.ordinal,S=m.match(/\d+/);if(this.day=S[0],p)for(var g=1;g<=31;g+=1)p(g).replace(/\[|\]/g,"")===m&&(this.day=g)}],M:[r,d("month")],MM:[o,d("month")],MMM:[i,function(m){var p=f("months"),S=(f("monthsShort")||p.map(function(g){return g.slice(0,3)})).indexOf(m)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[i,function(m){var p=f("months").indexOf(m)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(m){this.year=s(m)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function y(m){var p,S;p=m,S=u&&u.formats;for(var g=(m=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(F,C,T){var z=T&&T.toUpperCase();return C||S[T]||a[T]||S[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,I,k){return I||k.slice(1)})})).match(l),c=g.length,M=0;M<c;M+=1){var H=g[M],q=B[H],j=q&&q[0],R=q&&q[1];g[M]=R?{regex:j,parser:R}:H.replace(/^\[|\]$/g,"")}return function(F){for(var C={},T=0,z=0;T<c;T+=1){var D=g[T];if(typeof D=="string")z+=D.length;else{var I=D.regex,k=D.parser,K=F.slice(z),_=I.exec(K)[0];k.call(C,_),F=F.replace(_,"")}}return function(G){var W=G.afternoon;if(W!==void 0){var X=G.hours;W?X<12&&(G.hours+=12):X===12&&(G.hours=0),delete G.afternoon}}(C),C}}return function(m,p,S){S.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(s=m.parseTwoDigitYear);var g=p.prototype,c=g.parse;g.parse=function(M){var H=M.date,q=M.utc,j=M.args;this.$u=q;var R=j[1];if(typeof R=="string"){var F=j[2]===!0,C=j[3]===!0,T=F||C,z=j[2];C&&(z=j[2]),u=this.$locale(),!F&&z&&(u=S.Ls[z]),this.$d=function(K,_,G){try{if(["x","X"].indexOf(_)>-1)return new Date((_==="X"?1e3:1)*K);var W=y(_)(K),X=W.year,J=W.month,w=W.day,x=W.hours,O=W.minutes,L=W.seconds,$=W.milliseconds,U=W.zone,Q=new Date,N=w||(X||J?1:Q.getDate()),V=X||Q.getFullYear(),P=0;X&&!J||(P=J>0?J-1:Q.getMonth());var Y=x||0,te=O||0,le=L||0,E=$||0;return U?new Date(Date.UTC(V,P,N,Y,te,le,E+60*U.offset*1e3)):G?new Date(Date.UTC(V,P,N,Y,te,le,E)):new Date(V,P,N,Y,te,le,E)}catch{return new Date("")}}(H,R,q),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),T&&H!=this.format(R)&&(this.$d=new Date("")),u={}}else if(R instanceof Array)for(var D=R.length,I=1;I<=D;I+=1){j[1]=R[I-1];var k=S.apply(this,j);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}I===D&&(this.$d=new Date(""))}else c.call(this,M)}}})})(ao);var As=ao.exports;const Fs=Xe(As);var oo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l,o){var r=l.prototype,i=r.format;o.en.ordinal=function(u){var s=["th","st","nd","rd"],d=u%100;return"["+u+(s[(d-20)%10]||s[d]||s[0])+"]"},r.format=function(u){var s=this,d=this.$locale();if(!this.isValid())return i.bind(this)(u);var h=this.$utils(),f=(u||"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(v){switch(v){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return d.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return d.ordinal(s.week(),"W");case"w":case"ww":return h.s(s.week(),v==="w"?1:2,"0");case"W":case"WW":return h.s(s.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return h.s(String(s.$H===0?24:s.$H),v==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return v}});return i.bind(this)(f)}}})})(oo);var Bs=oo.exports;const Rs=Xe(Bs);var ro={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l,o){var r=l.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},u=function(f,v,B,y,m){var p=f.name?f:f.$locale(),S=i(p[v]),g=i(p[B]),c=S||g.map(function(H){return H.slice(0,y)});if(!m)return c;var M=p.weekStart;return c.map(function(H,q){return c[(q+(M||0))%7]})},s=function(){return o.Ls[o.locale()]},d=function(f,v){return f.formats[v]||function(B){return B.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,m,p){return m||p.slice(1)})}(f.formats[v.toUpperCase()])},h=function(){var f=this;return{months:function(v){return v?v.format("MMMM"):u(f,"months")},monthsShort:function(v){return v?v.format("MMM"):u(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):u(f,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):u(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):u(f,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return d(f.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},o.localeData=function(){var f=s();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(v){return d(f,v)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return u(s(),"months")},o.monthsShort=function(){return u(s(),"monthsShort","months",3)},o.weekdays=function(f){return u(s(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return u(s(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return u(s(),"weekdaysMin","weekdays",2,f)}}})})(ro);var Ms=ro.exports;const Ls=Xe(Ms);var io={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){var a="week",l="year";return function(o,r,i){var u=r.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(l).add(1,l).date(d),f=i(this).endOf(a);if(h.isBefore(f))return 1}var v=i(this).startOf(l).date(d).startOf(a).subtract(1,"millisecond"),B=this.diff(v,a,!0);return B<0?i(this).startOf("week").week():Math.ceil(B)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(io);var _s=io.exports;const Ps=Xe(_s);var so={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l){l.prototype.weekYear=function(){var o=this.month(),r=this.week(),i=this.year();return r===1&&o===11?i+1:o===0&&r>=52?i-1:i}}})})(so);var qs=so.exports;const zs=Xe(qs);var uo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l,o){l.prototype.dayOfYear=function(r){var i=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})})(uo);var js=uo.exports;const Hs=Xe(js);var co={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l){l.prototype.isSameOrAfter=function(o,r){return this.isSame(o,r)||this.isAfter(o,r)}}})})(co);var Ks=co.exports;const Ys=Xe(Ks);var fo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l){l.prototype.isSameOrBefore=function(o,r){return this.isSame(o,r)||this.isBefore(o,r)}}})})(fo);var Ws=fo.exports;const Us=Xe(Ws);Ke.extend(Ls),Ke.extend(Rs),Ke.extend(Fs),Ke.extend(Ps),Ke.extend(zs),Ke.extend(Hs),Ke.extend(Ys),Ke.extend(Us);const ae={format(e,n){return Ke(e).format(n)},parser(e,n){return Ke(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const o=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][o]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const a=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),o=this.getNumTwoBit(e.getDate());return[a,l,o].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const l=e*(1e3*60*60*24);return a=new Date(a.getTime()+l),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(a>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let l;return typeof n=="string"?l=new Date(n).getTime():l=n,a==l},getMonthWeek:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a));let r=o.getDay(),i=o.getDate(),u=6-r;return l!==0&&(r=r==0?7:r,u=7-r),Math.ceil((i+u)/7)},getYearWeek:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),i=Math.round((o.valueOf()-r.valueOf())/864e5);let u=o.getDay(),s=6-u;return l!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),r=o.getTime();let i=o.getDay();if(l===0){const s=r-i*864e5,d=r+(6-i)*864e5,h=this.date2Str(new Date(s)),f=this.date2Str(new Date(d));return[h,f]}else{i=i==0?7:i;const u=24*60*60*1e3,s=r-(i-1)*u,d=r+(7-i)*u,h=this.date2Str(new Date(s)),f=this.date2Str(new Date(d));return[h,f]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ae.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ae.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const l=new Date(new Date(n).setDate(n.getDate()+a)),o=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?o>=i&&o<=r:o>=r&&o<=i},inScope4Month(e,n,a){const l=new Date(new Date(n).setMonth(n.getMonth()+a)),o=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?o>=i&&o<=r:o>=r&&o<=i}},ho={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},mo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Gs(e,n,a){return{props:{...be,...Ce,...ho,...mo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,get validate(){return!r.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=de(l,"modelValue"),v=t.computed(()=>k.value&&Array.isArray(f.value)&&f.value.length==2?f.value[0]:f.value),B=t.computed(()=>k.value?"longTermKey":"normalKey"),y=N=>{if(k.value&&l.type==="daterange"){const V=[...f.value];V[0]=N,f.value=V}else f.value=N;u("update:modelValue",f.value),u("change",f.value)},m=t.computed(()=>k.value&&l.type==="daterange"?"date":l.type),p=e,S=t.computed(()=>({[`${p}`]:!0,"is-long":k.value,"is-readonly":i.value,"is-disabled":r.value}));let g=de(l,"hintText"),c=t.ref(!1);const M=N=>{let P=N.target.value;h.value=!0,ge(g.value)||(c.value=!0),u("focus",P,N)},H=N=>{setTimeout(()=>{c.value&&(c.value=!1),h.value=!1},0);let P=N.target.value;l.maxLength&&P.length>Number(l.maxLength)&&(P=P.slice(0,Number(l.maxLength))),u("blur",P,N)},q=()=>{u("clear","")},j=N=>{u("calendar-change",N)},R=(N,V,P)=>{u("panel-change",N,V,P)},F=N=>{u("visible-change",N)},C=Ee(t.computed(()=>l.longTermText),"longTermText",Pe.Near),T=Ee(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",Pe.Near),z=Ee(t.computed(()=>l.longTermValue),"longTermValue",Pe.Near),D=Ee(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Pe.Near);let I=null;const k=t.ref(ue(l.longTerm)),K=N=>{if(k.value=N,u("update:longTerm",N),N){if(I=f.value,l.type==="daterange"){const V=[];Array.isArray(z.value)?(V[0]=f.value?f.value[0]??z.value[0]:null,V[1]=z.value[1]??z.value[0]):(V[0]=f.value?f.value[0]??z.value:null,V[1]=k.value),V[0]||(V[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),V[1]||(V[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),f.value=V}else Array.isArray(z.value)?f.value=z.value[1]??z.value[0]:f.value=z.value,f.value||(f.value=l.valueFormat?ae.format(new Date,l.valueFormat):new Date);u("update:modelValue",f.value)}else{if(l.type==="daterange"){const V=[];V[0]=Array.isArray(f.value)?f.value[0]:f.value,Array.isArray(I)?V[1]=I[1]:V[1]=I,V[0]||(V[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),V[1]||(V[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),f.value=V}else f.value=I;u("update:modelValue",f.value),setTimeout(()=>{U()},100)}},_=ue(l.isLongTerm);if(_){const N=()=>{if(k.value===!0){if(I=f.value,l.type==="daterange"){const V=[f.value[0]];Array.isArray(z.value)?V[1]=z.value[1]??z.value[0]:V[1]=k.value,V[0]||(V[0]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),V[1]||(V[1]=l.valueFormat?ae.format(new Date,l.valueFormat):new Date),f.value=V}else f.value=z.value;u("update:modelValue",f.value)}else Le(z.value,f.value)&&(k.value=!0)};N(),t.watch([()=>l.longTerm],([V])=>{k.value!==V&&N()}),t.watch([()=>f.value],([V])=>{let P=!1;if(l.type==="daterange"&&Array.isArray(V))try{let Y=V[1];if(!Y)return;typeof Y!="string"&&l.valueFormat&&(Y=ae.format(Y,l.valueFormat));let te=Array.isArray(z.value)?z.value[1]:z.value;(Y===te||Array.isArray(D.value)&&D.value.findIndex(E=>Y==E)!==-1)&&(P=!0)}catch(Y){console.error(Y)}k.value!==P&&(k.value=P)},{immediate:!0})}const G=t.computed(()=>({"fox-date-item__long":!0,"is-active":h.value})),W=t.ref(),X=t.ref(),J=/^\d+$/,w=(N,V)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(N,V):J.test(N)&&N.length===l.flashFillThreshold,x=(N,V)=>{let P;if(typeof l.flashFillFormat=="function")P=l.flashFillFormat(N,V);else{const te=l.flashFillFormat??"YYYYMMDD";P=ae.parser(N,te)}const Y=l.valueFormat??"YYYY-MM-DD";return ae.format(P,Y)},O=N=>N?N.endsWith("range"):!1,L=N=>{if(!N.target)return;const V=N.target.value??"";if(w(V,l.type)){const P=x(V,l.type);if(O(l.type)){const Y=Array.isArray(f.value)?[...f.value]:[];Y[0]=P,y(Y)}else y(P)}},$=N=>{if(!N.target)return;const V=N.target.value??"";if(w(V,l.type)){const P=x(V,l.type);if(O(l.type)){const Y=Array.isArray(f.value)?[...f.value]:[];Y[1]=P,y(Y)}else y(P)}},U=()=>{if(l.flashFill&&W.value&&W.value.$el)if(O(l.type)){const N=W.value.$el.querySelectorAll("input.el-range-input");N[0]&&N[0].addEventListener("input",L),N[1]&&N[1].addEventListener("input",$)}else{const N=W.value.$el.querySelector("input.el-input__inner");N&&N.addEventListener("input",L)}},Q=()=>{if(l.flashFill&&W.value&&W.value.$el)if(O(l.type)){const N=W.value.$el.querySelectorAll("input.el-range-input");N[0]&&N[0].removeEventListener("input",L),N[1]&&N[1].removeEventListener("input",$)}else{const N=W.value.$el.querySelector("input.el-input__inner");N&&N.removeEventListener("input",L)}};return t.onMounted(U),t.onBeforeUnmount(Q),pe({focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()},handleOpen:()=>{X?.value.handleOpen()},handleClose:()=>{X?.value.handleClose()}}),()=>{const V={...o.attrs,key:B.value,type:m.value,ref:X,class:S.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:v.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":y,onClear:q,onFocus:M,onBlur:H,onCalendarChange:j,onPanelChange:R,onVisibleChange:F},P={};o.slots["range-separator"]&&(P["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(P.default=o.slots.cell);const Y=[],te=t.h(A.ElDatePicker,V,P);Y.push(te);const le={default:()=>Y};if(o.slots.default&&(le.label=o.slots.default),o.slots.fixedTip&&(le.fixedTip=o.slots.fixedTip),_){if(k.value){const ie=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ee=t.h("input",{class:["fox-date-item__long-text"],value:C.value,readonly:!0}),oe={class:G.value},se=t.h("div",oe,{default:()=>[ie,ee]});Y.push(se)}if(!i.value&&!r.value){const ie={label:T.value||C.value,disabled:i.value||r.value,modelValue:k.value,"onUpdate:modelValue":K},ee=t.h(A.ElCheckbox,ie),oe=t.h("div",{class:{[`${p}__append`]:!0}},[ee]);le.append=()=>oe}}const Z={...De(l,ho,mo),ref:W,class:{[`${p}__wrapper`]:!0,"has-append":_},hintText:g.value,hintVisible:c.value,prop:`${l.prop}_item`};return t.h(a,Z,le)}}}}const{componentName:Xs,create:Zs,scope:Qs}=re("date-item"),fl=Zs(Gs(Xs,Qs,we)),Js=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),dl={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},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:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popClass:{type:String},popStyle:{type:Object}},hl={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},go=2e3;let yo=go;const eu=(e,n)=>({components:n,props:{...hl},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:l}){const o=t.reactive({zIndex:a.zIndex,showSlot:!0,closed:a.closeable}),r=t.computed(()=>({[e]:!0,round:a.round,[`fox-popup--${a.position}`]:!0,[`fox-popup--${a.position}--safebottom`]:a.position==="bottom"&&a.safeAreaInsetBottom,[a.popClass]:!0})),i=t.computed(()=>({zIndex:o.zIndex,transitionDuration:`${a.duration}s`,...a.style})),u=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),s=()=>{a.zIndex!==go&&(yo=Number(a.zIndex)),l("update:visible",!0),o.zIndex=++yo,a.destroyOnClose&&(o.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),a.destroyOnClose&&setTimeout(()=>{o.showSlot=!1},+a.duration*1e3)},h=m=>{l("click-pop",m)},f=m=>{m.stopPropagation(),l("click-close-icon",m),l("update:visible",!1)},v=m=>{l("click-overlay",m),a.closeOnClickOverlay&&l("update:visible",!1)},B=m=>{l("opend",m)},y=m=>{l("closed",m)};return t.watch(()=>a.visible,m=>{a.visible?s():d()}),t.watch(()=>a.closeable,m=>{o.closed=m}),{...t.toRefs(o),popStyle:i,transitionName:u,classes:r,onClick:h,onClickCloseIcon:f,onClickOverlay:v,onOpened:B,onClosed:y}}});let It=0;const po="fox-overflow-hidden",bo=()=>lt?document.body:{classList:[]},tu=e=>[()=>{if(e())try{!It&&bo().classList.add(po),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&bo().classList.remove(po)}catch{}}],nu={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:lu,create:au}=re("overlay"),ou=au({props:{...nu},emits:["click","update:visible"],setup(e,{emit:n}){const[a,l]=tu(()=>e.lockScroll),o=t.computed(()=>({[lu]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,u=>{u?a():l()}),{classes:o,style:r,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function ru(e,n,a,l,o,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const fn=ke(ou,[["render",ru]]),iu=["aria-labelledby"],su=t.createElementVNode("path",{d:"M512 1024C228.43 1024 0 795.57 0 512S228.43 0 512 0s512 228.43 512 512-228.43 512-512 512zm0-945.23C273.067 78.77 78.77 273.066 78.77 512S273.066 945.23 512 945.23 945.23 750.934 945.23 512 750.934 78.77 512 78.77zM984.615 1024c-10.502 0-21.005-2.626-28.882-10.503L824.451 882.215c-15.754-15.753-15.754-39.384 0-55.138s39.385-15.754 55.139 0l131.282 131.282c15.754 15.754 15.754 39.385 0 55.138-5.251 7.877-15.754 10.503-26.257 10.503z",fill:"currentColor","fill-opacity":"0.9"},null,-1),uu=[su],cu=t.defineComponent({__name:"Search2",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},uu,14,iu))}}),fu=["aria-labelledby"],du=t.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),hu=[du],mu=t.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},hu,14,fu))}}),gu=["aria-labelledby"],yu=t.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),pu=[yu],dn=t.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},pu,14,gu))}}),bu=["aria-labelledby"],vu=t.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),wu=[vu],vo=t.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},wu,14,bu))}}),Su=["aria-labelledby"],xu=t.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Tu=[xu],wo=t.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Tu,14,Su))}}),Cu=["aria-labelledby"],$u=t.createElementVNode("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0zm281.6 369.778C779.378 381.156 600.178 500.622 472.178 691.2c0 0 0 2.844-2.845 2.844-8.533 5.69-48.355 36.978-88.177-8.533-39.823-51.2-62.578-99.555-142.223-142.222-2.844 0-2.844-2.845-2.844-2.845-8.533-11.377-39.822-56.888 19.911-56.888 45.511 0 91.022 11.377 162.133 73.955 5.69 5.689 14.223 5.689 17.067 0C469.333 517.69 608.711 366.933 768 318.578c0 0 19.911-2.845 31.289 14.222 5.689 11.378 11.378 22.756-5.689 36.978z",fill:"currentColor","fill-opacity":"0.9"},null,-1),ku=[$u],Du=t.defineComponent({__name:"Checked",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ku,14,Cu))}}),Nu=["aria-labelledby"],Eu=t.createElementVNode("path",{d:"M512 1024c-136.533 0-264.533-54.044-361.244-150.756C54.044 776.534 0 648.534 0 512c0-136.533 54.044-264.533 150.756-361.244C247.466 54.044 375.466 0 512 0c136.533 0 264.533 54.044 361.244 150.756C969.956 247.466 1024 375.466 1024 512s-54.044 264.533-150.756 361.244C776.534 969.956 648.534 1024 512 1024zm0-938.667c-113.778 0-221.867 45.511-301.511 125.156S85.333 398.222 85.333 512s45.511 221.867 125.156 301.511S398.222 938.667 512 938.667s221.867-45.511 301.511-125.156S938.667 625.778 938.667 512 893.156 290.133 813.51 210.489 625.778 85.333 512 85.333z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Iu=[Eu],Vu=t.defineComponent({__name:"CheckNormal",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Iu,14,Nu))}}),Ou=["aria-labelledby"],Au=t.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Fu=[Au],Bu=t.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Fu,14,Ou))}}),{componentName:Ru,create:Mu}=re("popup"),Lu=Mu(eu(Ru,{FoxOverLay:fn,Close:vo}));function _u(e,n,a,l,o,r){const i=t.resolveComponent("FoxOverLay"),u=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(u)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const ot=ke(Lu,[["render",_u]]),So=39,xo=64,{create:Pu,scope:qu}=re("calendar-pane"),zu=Pu({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},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:""},startDate:{type:String,default:ae.getDay(0)},endDate:{type:String,default:ae.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:l,t:o}=ve.useFoxI18n(qu),r=l(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${So}px`})),u=t.computed(()=>({height:`${xo}px`})),s=JSON.parse(o("weekdays")),d=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),h=t.ref(null),f=t.ref(null),v=t.ref(null),B=t.ref(null),y=t.ref(0),m=t.computed(()=>c.monthsData.slice(c.defaultRange[0],c.defaultRange[1])),p=t.computed(()=>a.btn),S=t.computed(()=>a["top-info"]),g=t.computed(()=>a["bottom-info"]),c=t.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:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),M=N=>N.split("-"),H=N=>ae.isEqual(c.currDate[0],N),q=N=>ae.isEqual(c.currDate[1],N),j=N=>c.currDate?.length>0?c.currDate?.some(V=>ae.isEqual(V,N)):!1,R=(N,V)=>V.curData[0]+"-"+V.curData[1]+"-"+ae.getNumTwoBit(+N.day),F=(N,V)=>{const P=R(N,V),{type:Y}=e;return N.type=="curr"?ae.isEqual(c.currDate,P)||(Y=="range"||Y=="week")&&(H(P)||q(P))||Y=="multiple"&&j(P)?`${c.dayPrefix}--active`:c.propStartDate&&ae.compareDate(P,c.propStartDate)||c.propEndDate&&ae.compareDate(c.propEndDate,P)?`${c.dayPrefix}--disabled`:(Y=="range"||Y=="week")&&Array.isArray(c.currDate)&&Object.values(c.currDate).length==2&&ae.compareDate(c.currDate[0],P)&&ae.compareDate(P,c.currDate[1])?`${c.dayPrefix}--choose`:null:`${c.dayPrefix}--disabled`},C=()=>{const{type:N}=e;if(N=="range"&&c.chooseData.length==2||N!="range"){let V=c.chooseData.slice(0);N=="week"&&(V={weekDate:[z(c.chooseData[0]),z(c.chooseData[1])]}),n("choose",V),e.poppable&&n("update")}},T=(N,V,P=!1)=>{if(F(N,V)!=`${c.dayPrefix}--disabled`){const{type:Y}=e;let[te,le]=V.curData,E=[...V.curData];if(E[2]=ae.getNumTwoBit(Number(N.day)),E[3]=`${E[0]}-${E[1]}-${E[2]}`,E[4]=ae.getWhatDay(+E[0],+E[1],+E[2]),Y=="multiple")if(c.currDate?.length>0){let Z;c.currDate?.forEach((ne,ie)=>{ne==E[3]&&(Z=ie)}),P?c.chooseData.push([...E]):Z!==void 0?(c.currDate.splice(Z,1),c.chooseData.splice(Z,1)):(c.currDate.push(E[3]),c.chooseData.push([...E]))}else c.currDate=[E[3]],c.chooseData=[[...E]];else if(Y=="range"){let Z=Object.values(c.currDate).length;Z==2||Z==0?c.currDate=[E[3]]:ae.compareDate(c.currDate[0],E[3])?Array.isArray(c.currDate)&&c.currDate.push(E[3]):Array.isArray(c.currDate)&&c.currDate.unshift(E[3]),c.chooseData.length==2||!c.chooseData.length?c.chooseData=[[...E]]:ae.compareDate(c.chooseData[0][3],E[3])?c.chooseData=[...c.chooseData,[...E]]:c.chooseData=[[...E],...c.chooseData]}else if(Y=="week"){let Z=ae.getWeekDate(te,le,N.day,e.firstDayOfWeek);c.propStartDate&&ae.compareDate(Z[0],c.propStartDate)&&Z.splice(0,1,c.propStartDate),c.propEndDate&&ae.compareDate(c.propEndDate,Z[1])&&Z.splice(1,1,c.propEndDate),c.currDate=Z,c.chooseData=[ae.formatResultDate(Z[0]),ae.formatResultDate(Z[1])]}else c.currDate=E[3],c.chooseData=[...E];if(!P){let Z=c.chooseData;Y=="week"&&(Z={weekDate:[z(c.chooseData[0]),z(c.chooseData[1])]}),n("select",Z),(e.isAutoBackFill||!e.poppable)&&C()}}},z=N=>{let[V,P,Y]=N;return{date:N,monthWeekNum:ae.getMonthWeek(V,P,Y,e.firstDayOfWeek),yearWeekNum:ae.getYearWeek(V,P,Y,e.firstDayOfWeek)}},D=N=>{const V=N=="prev"?c.monthsData[0]:c.monthsData[c.monthsData.length-1];let P=parseInt(V.curData[0]),Y=parseInt(V.curData[1].toString().replace(/^0/,""));switch(N){case"prev":Y==1&&(P-=1),Y=Y==1?12:--Y;break;case"next":Y==12&&(P+=1),Y=Y==12?1:++Y;break}return[P+"",ae.getNumTwoBit(Y),ae.getMonthDays(String(P),String(Y))+""]},I=(N,V,P)=>{let{year:Y,month:te}=P;return V=="prev"&&N>=7&&(N-=7),Array.from(Array(N),(le,E)=>({day:String(E+1),type:V,year:Y,month:te}))},k=(N,V,P,Y)=>{N=N-e.firstDayOfWeek;let{year:te,month:le}=P;return V=="prev"&&N>=7&&(N-=7),Array.from(Array(Y),(Z,ne)=>({day:String(ne+1),type:V,year:te,month:le})).slice(Y-N)},K=(N,V)=>{const P=ae.getMonthPreDay(+N[0],+N[1]);let Y=Number(N[1])-1,te=Number(N[0]);Y<=0&&(Y=12,te+=1);const le=ae.getMonthDays(String(N[0]),String(N[1])),E=ae.getMonthDays(te+"",Y+""),Z={year:N[0],month:N[1]},ne={curData:N,title:o("monthTitle",{year:Z.year,month:Z.month}),monthData:[...k(P,"prev",{month:String(Y),year:String(te)},E),...I(le,"curr",Z)],cssHeight:0,cssScrollHeight:0},ie=ne.monthData.length>35?6:5;ne.cssHeight=So+xo*ie;let ee=0;c.monthsData.length>0&&(ee=c.monthsData[c.monthsData.length-1].cssScrollHeight+c.monthsData[c.monthsData.length-1].cssHeight),ne.cssScrollHeight=ee,V=="next"?(!c.endData||!ae.compareDate(`${c.endData[0]}-${c.endData[1]}-${ae.getMonthDays(c.endData[0],c.endData[1])}`,`${N[0]}-${N[1]}-${N[2]}`))&&c.monthsData.push(ne):!c.startData||!ae.compareDate(`${N[0]}-${N[1]}-${N[2]}`,`${c.startData[0]}-${c.startData[1]}-01`)?c.monthsData.unshift(ne):c.unLoadPrev=!0},_=()=>{let N=e.startDate?e.startDate:ae.getDay(0),V=e.endDate?e.endDate:ae.getDay(365);c.propStartDate=N,c.propEndDate=V,c.startData=M(N),c.endData=M(V),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(c.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const P={year:Number(c.startData[0]),month:Number(c.startData[1])},Y={year:Number(c.endData[0]),month:Number(c.endData[1])};let te=Y.month-P.month;Y.year-P.year>0&&(te=te+12*(Y.year-P.year)),te<=0&&(te=1),K(c.startData,"next");let le=1;do K(D("next"),"next");while(le++<te);if(c.monthsNum=te,e.type=="range"&&Array.isArray(c.currDate))c.currDate.length>0&&(N&&ae.compareDate(c.currDate[0],N)&&c.currDate.splice(0,1,N),V&&ae.compareDate(V,c.currDate[1])&&c.currDate.splice(1,1,V),c.defaultData=[...M(c.currDate[0]),...M(c.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let E=[],Z={};c.currDate.forEach(ne=>{N&&!ae.compareDate(ne,N)&&V&&!ae.compareDate(V,ne)&&(Object.hasOwnProperty.call(Z,ne)||(E.push(ne),Z[ne]=ne))}),c.currDate=[...E],c.defaultData=[...M(E[0])]}}else if(e.type=="week"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let[E,Z,ne]=M(c.currDate[0]),ie=ae.getWeekDate(E,Z,ne,e.firstDayOfWeek);c.currDate=ie,N&&ae.compareDate(c.currDate[0],N)&&c.currDate.splice(0,1,N),V&&ae.compareDate(V,c.currDate[1])&&c.currDate.splice(1,1,V),c.defaultData=[...M(c.currDate[0]),...M(c.currDate[1])]}}else c.currDate&&(N&&ae.compareDate(c.currDate,N)?c.currDate=N:V&&!ae.compareDate(c.currDate,V)&&(c.currDate=V),c.defaultData=[...M(c.currDate)])};pe({scrollToDate:N=>{ae.compareDate(N,c.propStartDate)?N=c.propStartDate:ae.compareDate(N,c.propEndDate)||(N=c.propEndDate);let V=M(N);c.monthsData.forEach((P,Y)=>{if(P.title==o("monthTitle",{year:V[0],month:V[1]})&&h.value){let te=c.monthsData[Y].cssScrollHeight-h.value.scrollTop;if(e.toDateAnimation){let le=0,E=setInterval(()=>{if(le++,h.value){let Z=te/10;h.value.scrollTop=h.value.scrollTop+Z}le>=10&&(clearInterval(E),h.value&&(h.value.scrollTop=c.monthsData[Y].cssScrollHeight))},40)}else h.value.scrollTop=c.monthsData[Y].cssScrollHeight}})},initPosition:()=>{h?.value&&(h.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)},doLayout:()=>{let N=0,V=0;c.defaultData.length>0&&c.monthsData.forEach((te,le)=>{te.title==o("monthTitle",{year:c.defaultData[0],month:c.defaultData[1]})&&(N=le),(e.type=="range"||e.type=="week")&&te.title==o("monthTitle",{year:c.defaultData[3],month:c.defaultData[4]})&&(V=le)}),J(c.monthsNum,N),c.currentIndex=N,c.yearMonthTitle=c.monthsData[c.currentIndex].title,c.defaultData.length>0&&(c.isRange?(T({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0),T({day:c.defaultData[5],type:"curr"},c.monthsData[V],!0)):e.type=="week"?T({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0):e.type=="multiple"?[...c.currDate].forEach(te=>{let le=M(te),E=c.currentIndex;c.monthsData.forEach((Z,ne)=>{Z.title==o("monthTitle",{year:le[0],month:le[1]})&&(E=ne)}),T({day:le[2],type:"curr"},c.monthsData[E],!0)}):T({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0));let P=c.monthsData[c.monthsData.length-1],Y=P.cssHeight+P.cssScrollHeight;En(()=>{h?.value&&f?.value&&B?.value&&(y.value=h.value.clientHeight,f.value.style.height=`${Y}px`,h.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)}),c.avgHeight=Math.floor(Y/(c.monthsNum+1))}});const J=(N,V)=>{N>=3?V>0&&V<N?c.defaultRange=[V-1,V+3]:V==0?c.defaultRange=[V,V+4]:V==N&&(c.defaultRange=[V-2,V+2]):c.defaultRange=[0,N+2];let P=c.monthsData[c.defaultRange[0]].cssScrollHeight;c.translateY=P},w=(N,V)=>(e.type=="range"||e.type=="week")&&N.type=="curr"&&F(N,V)=="fox-calendar__day--active",x=(N,V)=>w(N,V)&&H(R(N,V)),O=(N,V)=>c.currDate.length>=2&&q(R(N,V))?w(N,V):!1,L=()=>{if(c.currDate.length>=2)return ae.isEqual(c.currDate[0],c.currDate[1])},$=N=>{const V=`${N.year}-${N.month}-${Number(N.day)<10?"0"+N.day:N.day}`;return ae.isEqual(V,ae.date2Str(new Date))},U=N=>{if(c.monthsData.length<=1)return;const V=N.target.scrollTop;let P=Math.floor(V/c.avgHeight);if(P==0)V>=c.monthsData[P+1].cssScrollHeight&&(P+=1);else if(P>0&&P<c.monthsNum-1)V>=c.monthsData[P+1].cssScrollHeight&&(P+=1),V<c.monthsData[P].cssScrollHeight&&(P-=1);else{const Y=Math.round(V+y.value);Y<c.monthsData[P].cssScrollHeight+c.monthsData[P].cssHeight&&V>c.monthsData[P-1].cssScrollHeight&&(P-=1),P+1<=c.monthsNum&&Y>=c.monthsData[P+1].cssScrollHeight+c.monthsData[P+1].cssHeight&&(P+=1),P>=1&&V<c.monthsData[P-1].cssScrollHeight&&(P-=1)}c.currentIndex!==P&&(c.currentIndex=P,J(c.monthsNum,P)),c.yearMonthTitle=c.monthsData[P].title},Q=()=>{c.chooseData.splice(0),c.monthsData.splice(0),_()};return _(),t.watch(()=>e.defaultValue,N=>{N&&e.poppable&&Q()}),{dayTitleStyle:i,dayCellStyle:u,weeks:d,compConthsData:m,showTopBtn:p,topInfo:S,bottomInfo:g,rangeTip:L,mothsViewScroll:U,getClass:F,isStartTip:x,isEndTip:O,chooseDay:T,isCurrDay:$,confirm:C,months:h,...t.toRefs(c),...t.toRefs(e),...r,monthsPanel:f,weeksPanel:v,viewArea:B}}}),ju={class:"fox-calendar__header"},Hu={key:0,class:"fox-calendar__header-title"},Ku={key:1,class:"fox-calendar__header-slot"},Yu={key:2,class:"fox-calendar__header-subtitle"},Wu={class:"fox-calendar__weekdays",ref:"weeksPanel"},Uu={class:"fox-calendar__panel",ref:"monthsPanel"},Gu={class:"fox-calendar__days"},Xu=["onClick"],Zu={class:"fox-calendar__day-value"},Qu={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Ju={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},ec={key:2,class:"fox-calendar__day-tips--curr"},tc={key:4,class:"fox-calendar__day-tip"},nc={key:0,class:"fox-calendar__footer"};function lc(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",ju,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Hu,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Ku,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Yu,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Wu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:u},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",Uu,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:u},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(i.title),5),t.createElementVNode("view",Gu,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.monthData,(s,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(s,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:h=>e.chooseDay(s,i)},[t.createElementVNode("view",Zu,[t.renderSlot(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[t.createTextVNode(t.toDisplayString(s.type=="curr"?s.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Qu,[t.renderSlot(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Ju,[t.renderSlot(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?(t.openBlock(),t.createElementBlock("view",ec,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(s,i)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(s,i)?(t.openBlock(),t.createElementBlock("view",tc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Xu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",nc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const ac=ke(zu,[["render",lc]]),{create:oc}=re("calendar-picker"),rc=oc({components:{CalendarPane:ac,Popup:ot},props:{...dl},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const l=t.computed(()=>a.btn),o=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),i=t.computed(()=>a["bottom-info"]),u=t.ref(null),s=p=>{u.value?.scrollToDate(p)},d=()=>{u.value?.initPosition()},h=t.computed(()=>{const p=["fox-calendar__popup"];return e.popClass&&p.push(e.popClass),p});t.watch(()=>e.visible,p=>{p&&t.nextTick(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),pe({scrollToDate:s,initPosition:d});const f=()=>{n("update:visible",!1)},v=()=>{n("close"),n("update:visible",!1)};return{popClasses:h,closePopup:()=>{v()},update:f,close:v,select:p=>{n("select",p)},choose:p=>{v(),n("choose",p)},calendarRef:u,showTopBtn:l,topInfo:o,dayInfo:r,bottomInfo:i}}});function ic(e,n,a,l,o,r){const i=t.resolveComponent("CalendarPane"),u=t.resolveComponent("Popup");return e.poppable?(t.openBlock(),t.createBlock(u,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"pop-class":e.popClasses,style:e.popStyle}),{default:t.withCtx(()=>[t.createVNode(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","pop-class","style"])):(t.openBlock(),t.createBlock(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const hn=ke(rc,[["render",ic]]),ml=(e,n)=>{let a;return Ze(e)?a=e:typeof e=="string"&&qe(e)>0?a=ae.parser(e,n):a=new Date,a},mt=(e,n,a)=>(Ze(n)||(n=new Date),ae.format(n,a)),gt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,l=`${e.getDate()}`,o=ae.date2Str(e),r=ae.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,l,o,r]},To={...dl,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function sc(e,n,a){return{props:{...be,...Ce,...To},emits:["change","update:modelValue","blur","focus","clear"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]);let h=de(l,"hintText"),f=t.ref(!1);const v=t.ref(!1),B=t.computed(()=>l.type==="range"),y=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),m=()=>{y.startDate!==null&&(y.startDate=null,y.endDate=null,y.startArray=[],y.endArray=[])},p=(_,G="one",W="YYYY-MM-DD")=>{if(Js(_)){m();return}if(B.value&&Array.isArray(_)&&_.length==2){let X,J;typeof _[0]=="string"?(X=ml(_[0],W),J=ml(_[1],W)):(X=_[0],J=_[1]);let w=gt(X),x=gt(J);(y.startDate===null||y.startDate.getTime()!==X.getTime()||y.endDate?.getTime()!==J.getTime())&&(y.startDate=X,y.startArray=w,y.endDate=J,y.endArray=x)}else{let X;typeof _=="string"?X=ml(_,W):X=_;let J=gt(X);(y.startDate===null||y.startDate.getTime()!==X.getTime())&&(y.startDate=X,y.startArray=J)}};p(l.modelValue,l.type,l.valueFormat),t.watch(()=>l.modelValue,_=>{p(_,l.type,l.valueFormat)});const S=t.computed(()=>{if(y.startDate===null)return"";if(B.value){let _=mt(l,y.startDate,l.format),G=mt(l,y.endDate,l.format);return`${_} ${l.rangeSeparator} ${G}`}else{let _=mt(l,y.startDate,l.format);return l.showWeek&&(_=`${_} ${y.startArray[4]}`),_}}),g=t.computed(()=>{if(y.startDate===null)return null;if(B.value){let _=ae.date2Str(y.startDate),G=ae.date2Str(y.endDate??new Date);return[_,G]}else return ae.date2Str(y.startDate)}),c="fox-input-item",M=t.computed(()=>({[c]:!0,[`${c}__disabled`]:r.value})),H=Ee(t.computed(()=>l.textAlign),"textAlign"),q=t.computed(()=>({textAlign:H.value??"right"})),j=t.ref(!1),R=()=>{i.value||r.value||(j.value=!0)},F=()=>{j.value=!1},C=_=>{j.value=_},T=_=>{if(_){if(B.value&&Array.isArray(_)){let G=_[0],W=he(G[0]),X=he(G[1]),J=he(G[2]),w=new Date(W,X-1,J),x=_[1];W=he(x[0]),X=he(x[1]),J=he(x[2]);let O=new Date(W,X-1,J);if(y.startDate=w,y.startArray=gt(w),y.endDate=O,y.endArray=gt(O),l.valueFormat){let L=mt(l,w,l.valueFormat),$=mt(l,O,l.valueFormat);u("update:modelValue",[L,$],{})}else u("update:modelValue",[w,O],{})}else{let G=_,W=he(G[0]),X=he(G[1]),J=he(G[2]),w=new Date(W,X-1,J);if(y.startDate=w,y.startArray=gt(w),l.valueFormat){let x=mt(l,w,l.valueFormat);u("update:modelValue",x,{})}else u("update:modelValue",w,{})}u("change",_,{})}},z=_=>{let W=_.target.value;v.value=!0,u("focus",W,_)},D=_=>{setTimeout(()=>{v.value=!1},0);let W=_.target.value;l.maxLength&&W.length>Number(l.maxLength)&&(W=W.slice(0,Number(l.maxLength))),u("blur",W,_)},I=t.computed(()=>qe(l.unit)>0),k=_=>{m(),u("update:modelValue",null,_),u("change","",_),u("clear","")},K=t.ref();return pe({showPicker:R,hidePicker:F,focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},select:()=>{K?.value.select()}}),()=>{const _={class:M.value,style:q.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:l.clearable,value:S.value,onClick:R,onFocus:z,onBlur:D,onClear:k},G={};o.slots.prepend&&(G.prepend=o.slots.prepend),o.slots.append&&(G.append=o.slots.append),o.slots.prefix?G.prefix=o.slots.prefix:G.prefix=()=>t.h(A.ElIcon,{},{default:()=>t.h(Se.Calendar)}),o.slots.suffix?G.suffix=o.slots.suffix:I.value&&(G.suffix=()=>[l.unit]);const W=[],X=t.h(A.ElInput,_,G);W.push(X);const J={default:()=>W};o.slots.default&&(J.label=o.slots.default),o.slots.fixedTip&&(J.fixedTip=o.slots.fixedTip);const w=ut(l,dl);w.visible=j.value,w["onUpdate:visible"]=C,w["default-value"]=g.value,w.onChoose=T;const x={};if(o.slots.btn){const Q=o.slots.btn();x.btn=()=>Q}o.slots.day&&(x.day=o.slots.day),o.slots.topInfo&&(x.topInfo=o.slots.topInfo),o.slots.bottomInfo&&(x.bottomInfo=o.slots.bottomInfo);const O=t.h(hn,w,x);J.hide=()=>[O];const $={...De(l,To),hintText:h.value,hintVisible:f.value,prop:`${l.prop??o.attrs.name}_item`};return t.h(a,$,J)}}}}const{componentName:uc,create:cc,scope:fc}=re("calendar-item"),gl=cc(sc(uc,fc,we)),Co={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function dc(e,n,a){return{props:{...be,...Ce,...Co},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=de(l,"modelValue"),v=e,B=t.computed(()=>({[v]:!0})),y=q=>{f.value=q,u("update:modelValue",q),u("change",q)};let m=de(l,"hintText"),p=t.ref(!1);const S=q=>{let R=q.target.value;h.value=!0,ge(m.value)||(p.value=!0),u("focus",R,q)},g=q=>{setTimeout(()=>{p.value&&(p.value=!1),h.value=!1},0);let R=q.target.value;l.maxLength&&R.length>Number(l.maxLength)&&(R=R.slice(0,Number(l.maxLength))),u("blur",R,q)},c=()=>{u("clear","")},M=q=>{u("visible-change",q)},H=t.ref();return pe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},handleOpen:()=>{H?.value.handleOpen()},handleClose:()=>{H?.value.handleClose()}}),()=>{const j={...o.attrs,ref:H,class:B.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":y,onClear:c,onFocus:S,onBlur:g,onVisibleChange:M},R={},F=[],C=t.h(A.ElTimePicker,j,R);F.push(C);const T={default:()=>F};o.slots.default&&(T.label=o.slots.default),o.slots.fixedTip&&(T.fixedTip=o.slots.fixedTip);const D={...De(l,Co),hintText:m.value,hintVisible:p.value,prop:`${l.prop}_item`};return t.h(a,D,T)}}}}const{componentName:hc,create:mc,scope:gc}=re("time-item"),yl=mc(dc(hc,gc,we)),$o={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function yc(e,n,a){return{props:{...be,...Ce,...$o},emits:["change","update:modelValue","blur","focus","clear"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=de(l,"modelValue"),v=e,B=t.computed(()=>({[v]:!0})),y=H=>{f.value=H,u("update:modelValue",H),u("change",H)};let m=de(l,"hintText"),p=t.ref(!1);const S=H=>{let j=H.target.value;h.value=!0,ge(m.value)||(p.value=!0),u("focus",j,H)},g=H=>{setTimeout(()=>{p.value&&(p.value=!1),h.value=!1},0);let j=H.target.value;l.maxLength&&j.length>Number(l.maxLength)&&(j=j.slice(0,Number(l.maxLength))),u("blur",j,H)},c=()=>{u("clear","")},M=t.ref();return pe({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},handleOpen:()=>{M?.value.handleOpen()},handleClose:()=>{M?.value.handleClose()}}),()=>{const q={...o.attrs,ref:M,class:B.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":y,onClear:c,onFocus:S,onBlur:g},j={},R=[],F=t.h(A.ElTimeSelect,q,j);R.push(F);const C={default:()=>R};o.slots.default&&(C.label=o.slots.default),o.slots.fixedTip&&(C.fixedTip=o.slots.fixedTip);const z={...De(l,$o),hintText:m.value,hintVisible:p.value,prop:`${l.prop}_item`};return t.h(a,z,C)}}}}const{componentName:pc,create:bc,scope:vc}=re("time-select-item"),pl=bc(yc(pc,vc,we));function ko(e,n=0){let a=`${e}`,l=a.indexOf(".");if(l==-1)return a;let o=l;for(let r=a.length-1;r>=l;r--)if(a.charAt(r)!="0"){o=r;break}return o-l<n?o=l+n+1:o!=l&&(o+=1),o>a.length?a=a.padEnd(o,"0"):a=a.substring(0,o),a}function Do(e,n,a=20){if(typeof n=="string"&&(n=he(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=ma(`${e}`,`${n}`);return ko(l)}else{let l=Mn(`${e}`,ga(`${n}`),20);return ko(l)}}function wc(e,n=-1,a=!1,l=3,o=","){return qt(e,n,a,l,o)}function No(e,n,a,l,o=!0){if(e=="")return"";if(e=ya(e),n=he(n),n==1)return e;if(l)e=Do(e,n),a&&(e=="0"&&o?e=`${e}.`.padEnd(he(a)+2,"0"):e=Mn(e,1,he(a)));else{let r=-1*n;e=Do(e,r)}return e}function Eo(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ue(n.minInclude),o=Ln(e,n.min);if(l&&o==-1||!l&&(o==0||o==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let l=ue(n.maxInclude),o=Ln(e,n.max);(l&&o==1||!l&&(o==0||o==1))&&(a.maxValid=!1)}return a}const Io={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},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:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Sc(e,n,a){return{props:{...be,...Ce,...Io},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),s=t.ref(!1),d=de(l,"modelValue"),h=t.ref("");t.watch([()=>d.value,()=>l.rates,()=>l.precision],([D,I,k])=>{if(ge(D)){h.value="";return}const K=No(D,I,k,!1);h.value!==K&&(h.value=K)},{immediate:!0});const f=t.computed(()=>{let D="";return s.value&&(D=h.value),D}),{t:v}=ve.useFoxI18n(n),B=t.computed(()=>{let D=l.placeholder??"";return!s.value&&!ge(h.value)?D=wc(h.value,l.decimalLength,l.autoPadding,l.digits,l.separator):D=v(["placeholder",D]),D}),y=e,m=t.computed(()=>({[y]:!0,[`${y}__disabled`]:r.value,[`${y}__placeholder`]:h.value.length>0})),p=Ee(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>s.value?{textAlign:"left"}:{textAlign:p.value??"right"});const S=t.ref(""),g=t.computed(()=>{let D=S.value;return ge(D)&&(D=l.errorTip??""),D}),c=t.ref(""),M=t.ref(!1),H=(D,I)=>{if(D=`${D}`,ge(D)){h.value="",d.value="",I.forEach(k=>{u(k,"")}),ue(l.showTip)&&M.value&&(M.value=!1);return}if(D.length>=2){let k=D;if(k.charAt(0)=="-"&&(k=k.substring(1)),k.length>=2&&k.charAt(0)=="0"&&k.charAt(1)!="."){t.triggerRef(h);return}}if(D!="-"){if(!Ca(D)){t.triggerRef(h);return}if(l.integerLength!=-1&&$a(D)>Number(l.integerLength)){t.triggerRef(h);return}if(l.decimalLength&&l.decimalLength!=-1&&ka(D)>Number(l.decimalLength)){t.triggerRef(h);return}let k=Eo(D,l);if(k.maxValid===!1){S.value=k.message,t.triggerRef(h);return}}else if(l.min!=null&&he(l.min)>=0){t.triggerRef(h);return}c.value=D,ue(l.showTip)&&(M.value=D.length>0),h.value=D,d.value=No(D,l.rates,l.precision,!0),I.forEach(k=>{u(k,d.value)})},q=D=>{H(D,["update:modelValue","input"])},j=D=>{H(D,["update:modelValue","change"])},R=D=>{if(s.value=!0,ue(l.showTip)){let I=h.value;ge(I)&&(I=l.hintText),ge(I)||(c.value=I,M.value=!0)}S.value="",u("focus",d.value,D)},F=D=>{if(setTimeout(()=>{s.value=!1,ue(l.showTip)&&M.value===!0&&(M.value=!1)},0),!ge(h.value)){let I=Eo(h.value,l);if(I.minValid===!1||I.maxValid===!1){S.value=I.message;return}}u("update:modelValue",d.value,D),u("blur",d.value,D)},C=()=>{u("clear","")},T=t.computed(()=>qe(l.unit)>0),z=t.ref();return pe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const I={...He(o.attrs),ref:z,class:m.value,type:"digit",maxlength:l.maxLength,placeholder:B.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:f.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:C,onInput:q,onChange:j,onFocus:R,onBlur:F},k={};o.slots.prepend&&(k.prepend=o.slots.prepend),o.slots.append&&(k.append=o.slots.append),o.slots.prefix&&(k.prefix=o.slots.prefix),o.slots.suffix?k.suffix=o.slots.suffix:T.value&&(k.suffix=()=>[l.unit]);const K=[],_=t.h(A.ElInput,I,k);K.push(_);const G={default:()=>K};o.slots.default&&(G.label=o.slots.default),o.slots.fixedTip&&(G.fixedTip=o.slots.fixedTip);const X={...De(l,Io),errorTip:g.value,hintText:c.value,hintVisible:M.value,hintType:"number",prop:`${l.prop}_item`};return t.h(a,X,G)}}}}const{componentName:xc,create:Tc,scope:Cc}=re("money-item"),bl=Tc(Sc(xc,Cc,we)),Vo={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function $c(e,n,a){return{props:{...be,...Ce,...Vo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=de(l,"modelValue"),v=e,B=t.computed(()=>({[v]:!0,[`${v}__append`]:q.value})),y=t.computed(()=>({[`${v}__unit`]:!0})),m=R=>{f.value=R,u("update:modelValue",R),u("input",R)},p=R=>{u("change",R)};let S=de(l,"hintText"),g=t.ref(!1);const c=R=>{let C=R.target.value;h.value=!0,ge(S.value)||(g.value=!0),u("focus",C,R)},M=R=>{setTimeout(()=>{g.value&&(g.value=!1),h.value=!1},0);let C=R.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),u("blur",C,R)},H=()=>{u("clear","")},q=t.computed(()=>qe(l.unit)>0),j=t.ref();return pe({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const F={...He(o.attrs),ref:j,class:B.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:f.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:H,onChange:p,onInput:m,onFocus:c,onBlur:M},C={},T=[],z=t.h(A.ElInputNumber,F,C);T.push(z);const D={default:()=>T};o.slots.default&&(D.label=o.slots.default),o.slots.fixedTip&&(D.fixedTip=o.slots.fixedTip);const k={...De(l,Vo),hintText:S.value,hintVisible:g.value,prop:`${l.prop}_item`};if(o.slots.append)D.append=o.slots.append;else if(q.value){const _={class:y.value},G=t.h("div",_,[l.unit]);D.append=()=>G}return t.h(a,k,D)}}}}const{componentName:kc,create:Dc,scope:Nc}=re("input-number-item"),vl=Dc($c(kc,Nc,we));function Vt(e,n){const a=e.textKey??"text";return n[a]??""}function Ot(e,n){const a=e.valueKey??"value";return n[a]}function Oo(e,n){const a=e.childrenKey??"children";return n[a]}function mn(e,n=[]){const a={texts:[],values:[]};for(let l=0;l<n.length;l++){const o=n[l],r=Vt(e,o),i=Ot(e,o);a.texts.push(r),a.values.push(i??"")}return a}function Ao(e,n,a,l,o=[]){if(!a)return;const r=a[l];for(let i=0;i<n.length;i++)if(Vt(e,n[i])===r){const s=Ot(e,n[i])??"",d={[e.textKey]:r,[e.valueKey]:s};o.push(d);const h=Oo(e,n[i]);Array.isArray(h)&&Ao(e,h,a,l+1,o);return}}function Fo(e,n,a,l,o=[]){if(!a)return;const r=a[l];for(let i=0;i<n.length;i++)if(Ot(e,n[i])===r){const s=Vt(e,n[i])??"",d={[e.textKey]:s,[e.valueKey]:r};o.push(d);const h=Oo(e,n[i]);Array.isArray(h)&&Fo(e,h,a,l+1,o);return}}function wl(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let l=0;l<n.length;l++){const o=Vt(e,n[l]),r=Vt(e,a[l]);if(o!==r)return!1;const i=Ot(e,n[l]),u=Ot(e,a[l]);if(i!==u)return!1}return!0}let Ec=class{proxy;constructor(n){this.proxy=n}async load(n,a){const l="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const o=Fe(this.proxy,l);return o===null?(console.error(`${l} component not found api function`),[]):(Me(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await o(n,a))}};function Ic(){const e=t.getCurrentInstance();return new Ec(e.proxy)}const gn=(e,n,a)=>e.map(l=>{const{value:o="value",text:r="text",children:i="children"}=a??{},{[o]:u,[r]:s,[i]:d,...h}=l,f={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return f.children&&f.children.length&&(f.children=gn(f.children,f,a)),f}),Bo=(e,n)=>{let a=0,l;for(;(l=e[a++])&&n(l)!==!0;)l.children&&l.children.length&&Bo(l.children,n)},Vc={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Oc=(e,n)=>{const a={...Vc,...n||{}},{topId:l,idKey:o,pidKey:r,sortKey:i}=a;let u=[],s={};return e.forEach(d=>{d={...d};const{[o]:h,[r]:f}=d,v=s[f]=s[f]||[];!u.length&&f===l&&(u=v),v.push(d),d.children=s[h]||(s[h]=[])}),i&&Object.keys(s).forEach(d=>{s[d].length>1&&s[d].sort((h,f)=>h[i]-f[i])}),s=null,u},Ac={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Ro=(e,n)=>n[e.textKey],At=(e,n)=>n[e.valueKey],Fc=(e,n)=>n[e.visibleKey],Mo=(e,n)=>n[e.disabledKey],Bc=(e,n)=>{const a=n[e.doitKey];return ue(a)},Rc=(e,n)=>{const a=n[e.numKey];return a==null?null:he(n[a])},Lo=(e,n,a)=>{const l=e.itemOptions;return typeof l=="function"?l(n,a):l||null};function Mc(e,n,a,l=!1){return{props:{...Ac},emits:["update:modelValue","change"],setup(o,{slots:r,emit:i}){const u=t.computed(()=>{const w={};return w[`${e}`]=!0,w}),s=t.computed(()=>{const w={};return w[`${e}__titles`]=!0,w[`${o.direction}`]=!0,o.align==="left"&&(w.left=!0),o.scroll===!0&&(w.scrollable=!0),o.shape&&(w[`${o.shape}`]=!0),w}),d=t.computed(()=>({})),h=t.computed(()=>{if(!o.gutter)return 0;const w=me(o.gutter);return w<=0?0:w}),f=t.ref(o.modelValue);t.watch(()=>o.modelValue,w=>{f.value!==w&&(f.value=w,_(!1))});const v=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),B=t.computed(()=>{const w={};return m.value||(w.display="none"),w}),y=t.ref(),m=t.ref(!1),p=()=>{const w=!m.value;S(w)},S=w=>{const x=w;x?(m.value=x,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},g=t.ref(),c=t.ref([]),M=(w,x)=>{c.value[x]=w},H=w=>x=>{M(x,w)},q=(w,x)=>{const O=g.value,L=c.value;if(!O||!L||!L[w])return;const $=L[w];let U=0;o.direction==="vertical"?U=$.offsetTop-(O.offsetHeight-$.offsetHeight)/2:U=$.offsetLeft-(O.offsetWidth-$.offsetWidth)/2,j(O,U,x?0:.3,o.direction)},j=(w,x,O,L)=>{let $=0;const U=L==="horizontal"?w.scrollLeft:w.scrollTop,Q=O===0?1:Math.round(O*1e3/16);function N(){L==="horizontal"?w.scrollLeft+=(x-U)/Q:w.scrollTop+=(x-U)/Q,++$<Q&&_n(N)}N()},R=(w,x)=>{const O=At(o,w),L={};return L[`${e}__titles-item`]=!0,L.disabled=Mo(o,w),L.active=O===f.value,o.shape&&(L[`${o.shape}`]=!0),o.ellipsis&&(L.ellipsis=!0),x&&(x.class&&(L[`${x.class}`]=!0),x.disabled===!0&&(L.disabled=x.disabled)),L},F=(w,x)=>{const O={};if(h.value>0){const L=Math.abs(h.value/2);o.direction==="vertical"?(O["margin-top"]=`${L}px`,O["margin-bottom"]=`${L}px`):(O["margin-left"]=`${L}px`,O["margin-right"]=`${L}px`)}return x&&x.style&&Object.assign(O,x.style),O},C=(w,x)=>`${At(o,w)??x}`,T=(w,x)=>{const O=At(o,w),L={};L[`${e}__popup-item`]=!0,L.disabled=Mo(o,w),L.active=O===f.value,o.shape&&(L[`${o.shape}`]=!0);const $=Lo(o,w,x);return $&&$.disabled===!0&&(L.disabled=$.disabled),L},z=t.computed(()=>(o.data??[]).filter(x=>Fc(o,x)!==!1)),D=(w,x)=>{const O=At(o,w);if(f.value==O)return;const L=()=>{f.value=O,o.scroll&&q(x,!1),i("update:modelValue",O),i("change",w,x)};if(typeof o.beforeChange=="function"){const $=o.beforeChange(w,x);zt($)?$.then(U=>{U!==!1&&L()}).catch(()=>{L()}):$!==!1&&L()}else L()},I=(w,x)=>function(){D(w,x)},k=(w,x)=>{D(w,x),S(!1)},K=(w,x)=>function(){k(w,x)},_=w=>{if(!Array.isArray(o.data)||!o.scroll)return;const x=o.data.findIndex(O=>At(o,O)===f.value);x!==-1&&q(x,w)};t.watch(()=>o.data,()=>{setTimeout(_,0)}),t.onMounted(()=>{_(!0)});const G=(w,x)=>{if(r.item)return r.item({item:w,index:x});const O=Lo(o,w,x),L=[];if(r.text){const N=r.text({item:w,index:x});L.push(N)}else{const N=[];if(O?.doit===!0||Bc(o,w)){const te={class:[`${e}__titles-item-tip`,"doit"]},le=t.h("view",te);N.push(le)}const V=O?.num??Rc(o,w);if(V){let te="";const le=he(V);le>=100?te="99+":te=`${le}`;const E={class:[`${e}__titles-item-tip`,"num"]},Z=t.h("view",E,[te]);N.push(Z)}const P={class:`${e}__titles-item-text`};N.push(Ro(o,w));const Y=t.h("view",P,N);L.push(Y)}const $={class:`${e}__titles-item-line`},U=t.h("view",$);L.push(U);const Q={ref:H(x),class:R(w,O),style:F(w,O),key:C(w,x),onClick:I(w,x)};return t.h("view",Q,L)},W=()=>{const w=r.default?r.default():[];if(w.length===0)for(let O=0;O<z.value.length;O++){const L=z.value[O],$=G(L,O);w.push($)}const x={ref:g,class:s.value,style:d.value};return t.h("view",x,w)},X=()=>{let w=null;r.navigation?w=r.navigation():w=t.h(a);const x={class:`${e}__navigation`,onClick:p};return t.h("view",x,[w])},J=()=>{const w=[];for(let O=0;O<z.value.length;O++){const L=z.value[O];let $=null;r.popupItem?$=r.popupItem({item:L,index:O}):$=Ro(o,L);const U={class:T(L,O),key:C(L,O),onClick:K(L,O)},Q=t.h("view",U,[$]);w.push(Q)}const x={class:v.value,style:B.value};return t.h("view",x,w)};return()=>{const w=[],x=W();if(w.push(x),o.showQuickNavigation){const L=X();w.push(L);const $=J();w.push($)}const O={class:u.value};return t.h("view",O,w)}}}}const{create:Lc,componentName:_c,scope:Pc}=re("tabs-bar"),yn=Lc(Mc(_c,Pc,mu,!1)),_o=Symbol("TabsStatesKey"),qc={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function zc(e,n,a=!1){return{props:{...qc},emits:["update:modelValue","change"],setup(l,{emit:o,slots:r}){const i=t.shallowRef([]),u={current:t.ref(l.modelValue??""),direction:t.ref(l.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:m=>{const p={name:m};u.current.value===m&&(p.loaded=!0),i.value.push(p),t.triggerRef(i)},remove:m=>{const p=i.value.findIndex(S=>S.name===m);p!==-1&&i.value.splice(p,1)},isLoaded:m=>{if(!l.lazy)return!0;const p=i.value.findIndex(S=>S.name===m);return p!==-1?u.current.value?i.value[p].loaded??!1:p===0:!1}};t.provide(_o,u);const s=m=>{const p=i.value.findIndex(S=>S.name===m);p!==-1&&(i.value[p].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([m,p])=>{u.current.value!==m&&(u.current.value=m??"",s(m??"")),u.direction.value!==p&&(u.direction.value=p)});const d=t.ref(null),h=t.ref(null),f=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let v=!0;const B=t.computed(()=>{const m={},p=i.value.length;if(p<=0)return m;const S=i.value.findIndex(g=>g.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(m.height=`${p*u.tabHeight.value}px`,S!==-1&&(m.transform=`translate(0, -${S*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(m.width=`${p*u.tabWidth.value}px`,S!==-1&&(m.transform=`translate(-${S*u.tabWidth.value}px, 0)`)),v&&(v=!1,m.transition="transform 0s ease;"),m});let y=null;return t.onMounted(()=>{if(!d.value)return;const m=()=>{const p=tn(d.value);u.tabWidth.value=p.width,u.tabHeight.value=p.height};window.ResizeObserver&&(y=new window.ResizeObserver(m),y.observe(d.value)),m()}),t.onBeforeUnmount(()=>{y&&(y.disconnect(),y=null)}),()=>{const m={class:`${e}__panes`,style:B.value,ref:h},p=t.h("view",m,[r?.default?.()]),S={class:f.value,ref:d};return t.h("view",S,[p])}}}}const{create:jc,componentName:Hc,scope:Kc}=re("tabs-container"),pn=jc(zc(Hc,Kc,!1)),Yc={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Wc(e,n,a){return{props:{...Yc},setup(l,{emit:o,slots:r}){const i=t.inject(_o);t.onMounted(()=>{i.add(l.paneKey)}),t.onBeforeUnmount(()=>{i.remove(l.paneKey)});const u=t.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),s=t.computed(()=>l.loaded!=null?ue(l.loaded):i.isLoaded(l.paneKey));return()=>{let d=[];if(s.value)d=r?.default?.()??[];else if(r.empty)d=r.empty();else{const f={class:`${e}__empty-icon`},v=l.emptyIcon??a,B=t.h(v,f),y={class:`${e}__empty-text`},m=l.emptyText??"Loading",p=t.h("view",y,[m]),S={class:`${e}__empty`},g=t.h("view",S,[B,p]);d.push(g)}const h={class:`${e}`,style:u.value};return t.h("view",h,d)}}}}const{create:Uc,componentName:Gc,scope:Xc}=re("tabs-pane"),bn=Uc(Wc(Gc,Xc,dn));class Po{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=gn(n,null,this.config)}updateChildren(n,a){a?a.children=gn(n,a,this.config):this.nodes=gn(n,null,this.config)}getNodeByValue(n){let a;return Bo(this.nodes,l=>{if(l.value===n)return a=l,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let l=this.nodes;for(;l&&l.length;){const o=l.find(r=>r.value===n[r.level]);if(!o)break;a.push(o),l=o.children}return a}isLeaf(n,a){const{leaf:l,children:o}=n,r=Array.isArray(o)&&!!o.length;return l||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:o}=n;return Array.isArray(o)&&!!o.length}}const{create:Zc,scope:Qc}=re("cascader-pane"),Jc=Zc({components:{Loading:dn,Checklist:wo,TabsBar:yn,TabsContainer:pn,TabsPane:bn},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=ve.useFoxI18n(Qc),l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),r=t.ref(!1),i=t.ref(e.modelValue),u=t.ref(new Po([],{})),s=t.ref([]),d=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),h=t.computed(()=>r.value==!0||s.value.length==0?[{text:"Loading",value:0}]:s.value.map((g,c)=>({text:g.selectedNode?g.selectedNode.text:a("select"),value:c}))),f=new Map;let v;const B=async()=>{f.clear(),s.value=[],o.value=0,r.value=!1,v=null;let{options:g}=e;l.value.convertConfig&&(g=Oc(g,l.value.convertConfig)),u.value=new Po(g,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),d.value&&!u.value.nodes.length&&await m({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:u.value.nodes,selectedNode:null}],y()},y=async()=>{const g=i.value;if(g===void 0||!u.value.nodes.length)return;if(g.length===0){o.value=0,s.value=[{nodes:u.value.nodes,selectedNode:null}];return}let c=g;if(d.value&&Array.isArray(g)&&g.length){c=[];let M=u.value.nodes.find(H=>H.value===g[0]);if(M){c=[M.value],r.value=!0;const H=await g.slice(1).reduce(async(q,j)=>{const R=await q;await m(R);const F=R?.children?.find(C=>C.value===j);return F&&c.push(j),Promise.resolve(F)},Promise.resolve(M));await m(H),r.value=!1}}c.length&&g===e.modelValue&&u.value.getPathNodesByValue(c).map((H,q)=>{o.value=q,S.handleNode(H,!0)})},m=async g=>{if(!g)return;if(!l.value.lazyLoad){g.leaf=!0;return}if(u.value.isLeaf(g,d.value)||u.value.hasChildren(g,d.value))return;g.loading=!0;const c=g.root?null:g;let M=f.get(g);M||(M=new Promise(q=>{l.value.lazyLoad?.(g,q)}),f.set(g,M));const H=await M;Array.isArray(H)&&H.length>0?u.value.updateChildren(H,c):g.leaf=!0,g.loading=!1,f.delete(g)},p=g=>{const c=g.map(M=>M.value);i.value=c,n("change",c,g),n("update:modelValue",c,g)},S={async handleNode(g,c){const{disabled:M,loading:H}=g;if(!(!c&&M||!s.value[o.value])){if(u.value.isLeaf(g,d.value)){if(g.leaf=!0,s.value[o.value].selectedNode=g,s.value=s.value.slice(0,g.level+1),!c){const q=s.value.map(j=>j.selectedNode);p(q),n("pathChange",q)}return}if(u.value.hasChildren(g,d.value)){const q=g.level+1;if(s.value[o.value].selectedNode=g,s.value=s.value.slice(0,q),s.value.push({nodes:g.children||[],selectedNode:null}),o.value=q,!c){const j=s.value.map(R=>R.selectedNode);n("pathChange",j)}return}v=g,!H&&(await m(g),v===g&&(s.value[o.value].selectedNode=g,S.handleNode(g,c)))}},handleTabChange(g,c){v=null},formatTabTitle(g){return g.selectedNode?g.selectedNode.text:a("select")},isSelected(g,c){return g.selectedNode&&g.selectedNode.value===c.value}};return t.watch([l,()=>e.options],()=>{B()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,g=>{g!==i.value&&(i.value=g,y())}),t.watch(()=>e.visible,g=>{g&&Array.isArray(i.value)&&i.value.length>0&&y()}),{panes:s,panesTitles:h,initLoading:r,tabsCursor:o,...S}}}),ef={class:"fox-cascader"},tf={role:"menu",class:"fox-cascader__pane"},nf=["aria-checked","aria-disabled","onClick"],lf={class:"fox-cascader__item__title"},af=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function of(e,n,a,l,o,r){const i=t.resolveComponent("TabsBar"),u=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),h=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",ef,[t.createVNode(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=f=>e.tabsCursor=f),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(h,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=f=>e.tabsCursor=f)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(f,v)=>(t.openBlock(),t.createBlock(d,{"pane-key":v,key:v},{default:t.withCtx(()=>[t.createElementVNode("view",tf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.nodes,B=>(t.openBlock(),t.createElementBlock("view",{key:B.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(f,B),disabled:B.disabled}]),"aria-checked":e.isSelected(f,B),"aria-disabled":B.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(B,!1)},[t.createElementVNode("view",lf,t.toDisplayString(B.text),1),B.loading?(t.openBlock(),t.createBlock(u,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,nf))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(d,{key:1,"pane-key":0},{default:t.withCtx(()=>[af]),_:1}))]),_:1},8,["modelValue"])])}const rf=ke(Jc,[["render",of]]),{create:sf}=re("cascader-picker"),uf=sf({components:{FoxCascaderPane:rf,FoxPopup:ot},props:{...hl,modelValue:Array,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},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue),l=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),o=(i,u)=>{a.value=i,l.value=!1,n("change",i,u),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==a.value&&(a.value=i)}),{onChange:o,onPathChange:r,innerValue:a,innerVisible:l}}}),cf=["innerHTML"];function ff(e,n,a,l,o,r){const i=t.resolveComponent("FoxCascaderPane"),u=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(u,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,cf)):t.createCommentVNode("",!0),t.createVNode(i,{onChange:e.onChange,onPathChange:e.onPathChange,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},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(i,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,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},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const vn=ke(uf,[["render",ff]]),qo={modelValue:{type:[Array,String]},pathNodes:{type:[Array],required:!1},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function df(e,n,a){return{props:{...be,...Ce,...qo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]);let h=de(l,"hintText"),f=t.ref(!1);const v=t.ref(!1),B=Ic(),y=t.ref([]);t.watch([()=>l.source,()=>l.params],async([K,_])=>{K&&(y.value=await B.load(K,_))},{immediate:!0});const m=t.ref([]),p=t.computed(()=>Array.isArray(m.value)?m.value.join(" "):m.value),S=t.ref([]),g=t.ref([]);t.watch([()=>l.modelValue,y],async([K,_])=>{if(l.lazy===!0){g.value.length==0&&(m.value=Array.isArray(K)?K:[],S.value=Array.isArray(K)?K:[]);return}if(l.valueType==="item"){let G=K;if(!wl(l,G,g.value)){g.value=G;let W=mn(l,G);m.value=W.texts,S.value=W.values}}else if(l.valueType==="text"){let G=K,W=[];if(Ao(l,_,G,0,W),!wl(l,W,g.value)){g.value=W;let X=mn(l,W);G.value=X.texts,S.value=X.values}}else{let G=K,W=[];if(Fo(l,_,G,0,W),!wl(l,W,g.value)){g.value=W;let X=mn(l,W);m.value=X.texts,G.value=X.values}}});const c=e,M=t.computed(()=>({[c]:!0})),H=Ee(t.computed(()=>l.textAlign),"textAlign"),q=t.computed(()=>({textAlign:H.value??"right"})),j=t.ref(!1),R=()=>{r.value===!0||i.value===!0||(j.value=!0)},F=K=>{j.value=K},C=(K,_)=>{let G=_.map(X=>{if(X==null)return X;let J={...X};return Reflect.deleteProperty(J,"text"),J[l.textKey]=X.text??"",Reflect.deleteProperty(J,"value"),J[l.valueKey]=X.value??"",J});g.value=G;let W=mn(l,G);m.value=W.texts,S.value=W.values,l.valueType==="text"?(u("change",m.value,G),u("update:modelValue",m.value)):l.valueType==="item"?(u("change",G,G),u("update:modelValue",G)):(u("change",S.value,G),u("update:modelValue",S.value)),u("update:pathNodes",G)},T=K=>{let _=K.map(G=>{if(G==null)return G;let W={...G};return Reflect.deleteProperty(W,"text"),W[l.textKey]=G.text??"",Reflect.deleteProperty(W,"value"),W[l.valueKey]=G.value??"",W});u("pathChange",_)},z=K=>{v.value=!0,u("focus",S.value,K)},D=K=>{setTimeout(()=>{v.value=!1},0),u("blur",S.value,K)},I=t.computed(()=>qe(l.unit)>0);t.computed(()=>l.clearable&&!r.value&&!i.value);const k=t.ref();return pe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()}}),()=>{const K={class:M.value,style:q.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,value:p.value,onClick:R,onFocus:z,onBlur:D},_={};o.slots.prepend&&(_.prepend=o.slots.prepend),o.slots.append&&(_.append=o.slots.append),o.slots.prefix&&(_.prefix=o.slots.prefix),o.slots.suffix?_.suffix=o.slots.suffix:I.value?_.suffix=()=>[l.unit]:_.suffix=()=>t.h(A.ElIcon,{},{default:()=>t.h(Se.ArrowDown)});const G=[],W=t.h(A.ElInput,K,_);G.push(W);const X={default:()=>G};X.label=o.slots.default,X.prepend=o.slots.prepend,X.append=o.slots.append,X.fixedPreTip=o.slots.fixedPreTip,X.fixedTip=o.slots.fixedTip;let J={};J.visible=j.value,J["onUpdate:visible"]=F,J.modelValue=S.value,J.onChange=C,J.onPathChange=T,J.options=y.value,J.title=l.title,J.lazy=l.lazy,J.lazyLoad=l.lazyLoad,J.valueKey=l.valueKey,J.textKey=l.textKey,J.childrenKey=l.childrenKey,J.convertConfig=l.convertConfig;const w=t.h(vn,J);X.hide=()=>[w];const O={...De(l,qo),hintText:h.value,hintVisible:f.value,prop:`${l.prop??o.attrs.name}_item`};return t.h(a,O,X)}}}}const{componentName:hf,create:mf,scope:gf}=re("cascader-item"),Sl=mf(df(hf,gf,we)),zo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function yf(e,n,a){return{props:{...be,...Ce,...zo},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=de(l,"modelValue"),v=e,B=t.computed(()=>({[v]:!0})),y=j=>{f.value=j,u("update:modelValue",j),u("input",j)},m=j=>{u("change",j)},p=j=>{u("select",j)};let S=de(l,"hintText"),g=t.ref(!1);const c=j=>{let F=j.target.value;h.value=!0,ge(S.value)||(g.value=!0),u("focus",F,j)},M=j=>{setTimeout(()=>{g.value&&(g.value=!1),h.value=!1},0);let F=j.target.value;l.maxLength&&F.length>Number(l.maxLength)&&(F=F.slice(0,Number(l.maxLength))),u("blur",F,j)},H=()=>{u("clear","")},q=t.ref();return pe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const R={...o.attrs,ref:q,class:B.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:f.value,onClear:H,onChange:m,onInput:y,onFocus:c,onBlur:M,onSelect:p},F={};o.slots.prepend&&(F.prepend=o.slots.prepend),o.slots.append&&(F.append=o.slots.append),o.slots.prefix&&(F.prefix=o.slots.prefix),o.slots.suffix&&(F.suffix=o.slots.suffix),o.slots.option&&(F.default=o.slots.option);const C=[],T=t.h(A.ElAutocomplete,R,F);C.push(T);const z={default:()=>C};o.slots.default&&(z.label=o.slots.default),o.slots.fixedTip&&(z.fixedTip=o.slots.fixedTip);const I={...De(l,zo),hintText:S.value,hintVisible:g.value,prop:`${l.prop}_item`};return t.h(a,I,z)}}}}const{componentName:pf,create:bf,scope:vf}=re("autocomplete-item"),xl=bf(yf(pf,vf,we));function wf(e,n,a,l,o){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[o]){let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],f=s.find(v=>v[l]===h);if(!f)break;i.push(f[a])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<r.length;s++){let d=n[s],h=r[s];const f=d.find(v=>v[l]===h);if(!f)break;i.push(f[a])}else{let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],f=s.find(v=>v[l]===h);if(!f)break;i.push(f[a]),s=f[o]}}return i}let Sf=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function xf(){const e=t.getCurrentInstance();return new Sf(e.proxy)}const jo={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Tf(e,n){return{props:{...jo},setup(a,{attrs:l,slots:o}){const r=xf(),i=t.ref([]);t.watch([()=>a.source,()=>a.params],async([d,h])=>{i.value=await r.load(a.sourceType,d,h)},{immediate:!0});const u=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=wf(a.modelValue,i.value,a.textKey,a.valueKey,a.childrenKey);return d.length==0?a.emptyText??"":d.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${d[0]}`:d[0]:d.join(a.separator)}),s=a.resolveTag?t.resolveComponent(a.tag):a.tag;return()=>{const d={...l};return o.default?o.default({text:u.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===u.value?t.h(a.emptyTag??"span",{...l,class:a.emptyClass},u.value):t.h(s,d,{default:()=>u.value}):t.h(s,d,u.value)}}}}const{componentName:ny,create:Cf,scope:ly}=re("mapping"),Ft=Cf(Tf());function $f(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let f=r.substring(0,u);l=l[f][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function kf(e,n){return{props:{...jo},setup(a,{attrs:l,slots:o}){return()=>{const r={default:i=>{const u=$f(i.row,i.column.property);return o.default?t.h(Ft,{...a,modelValue:u},{default:o.default}):t.h(Ft,{...a,modelValue:u})}};return t.h(A.ElTableColumn,{...l},r)}}}}const{componentName:ay,create:Df,scope:oy}=re("table-mapping-column"),Tl=Df(kf()),Nf=Symbol.for("TableStateKey");function Ho(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let f=r.substring(0,u);l=l[f][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function Ef(e,n){return{props:{},setup(a,{attrs:l}){const o=t.inject(Nf,{});return()=>{const r=o.currentRow?o.currentRow.value:null,i={default:u=>{const s=Ho(u.row,u.column.property),d=r?Ho(r,u.column.property):null,h=s===d,f={class:{"el-radio__input":!0,"is-checked":h}},v=t.h("span",f,[t.h("span",{class:{"el-radio__inner":!0}})]),B={class:{"el-radio":!0,"is-checked":h}};return t.h("label",B,[v])}};return t.h(A.ElTableColumn,{...l},i)}}}}const{componentName:ry,create:If,scope:iy}=re("table-radio-column"),Cl=If(Ef()),Vf={},Of={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},Af=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Ff(e,n){return t.openBlock(),t.createElementBlock("svg",Of,Af)}const Bf=ke(Vf,[["render",Ff]]),{componentName:uy,create:Rf,scope:cy}=re("table-setting"),Mf={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Lf=Rf({components:{FoxPopover:A.ElPopover,FoxCheckbox:A.ElCheckbox,FoxCheckboxGroup:A.ElCheckboxGroup,FoxButton:A.ElButton,FoxIcon:A.ElIcon,DragIcon:Bf,Download:Se.Download,RefreshLeft:Se.RefreshLeft},props:{...Mf},setup(e,{emit:n,attrs:a}){let l=[];const o=t.ref([]),r=t.computed(()=>o.value.filter($=>$.label===""||$.type?!1:$.fixed===""||$.fixed===!0||$.fixed==="left")),i=t.computed(()=>o.value.filter($=>$.label===""||$.type?!1:$.fixed==="right")),u=t.computed(()=>o.value.filter($=>!($.label===""||$.type||$.fixed!==void 0))),s=t.computed(()=>(r.value.length>0||i.value.length>0)&&u.value.length>0),d=t.computed(()=>r.value.length>0),h=t.computed(()=>i.value.length>0),f=$=>$.length>1,v=($,U)=>{Array.isArray($)&&Array.isArray(U)&&$.forEach(V=>{U.some(P=>P.prop===V.prop?(V.label=P.label,!0):!1)});const Q=[];o.value=$.map((V,P)=>(!(V.label===""||V.type)&&V.visible!==!1&&Q.push(V.prop),{...V,sortIndex:P})),u.value.length+r.value.length+i.value.length===Q.length?g.value=!0:Q.length>0&&(c.value=!0),q.value=Q},B=$=>$?$.type?$.type:$.label?$.prop:"":"",y=($,U)=>{if($.length!==U.length)return!1;const Q=$.map(N=>B(N));for(let N of U){const V=B(N);if(Q.indexOf(V)===-1)return!1}return!0},m=$=>{if(!$){const U=e.tableRef.getColumnSetting(),Q=U.srcColumnPropertyList;l=Q.map((N,V)=>({...N,sortIndex:V})),$=U.columnPropertyList,$&&$.length>0&&y(Q,$)||($=Q)}v($,l)},p=()=>{e.tableRef.setColumnSetting(o.value)},S=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),c=t.ref(!1),M=$=>{const U=[];o.value.forEach(N=>{$&&!(N.label===""||N.type)&&U.push(N.prop),N.visible=$}),g.value=!1,c.value=!1,u.value.length+r.value.length+i.value.length===U.length?g.value=!0:U.length>0&&(c.value=!0),q.value=U,p()},H=()=>{m(l),p()},q=t.ref([]),j=$=>{o.value.forEach(Q=>{if(Q.label===""||Q.type)return;const N=$.indexOf(Q.prop)!==-1;Q.visible=N}),g.value=!1,c.value=!1;const U=u.value.length+r.value.length+i.value.length;$.length===U?g.value=!0:$.length>0&&(c.value=!0),p()},R=()=>{m()};t.onMounted(()=>{setTimeout(()=>{m()},50)});const F={currentRow:null,index:null,roleType:null},C=$=>$?$.dataset&&$.dataset.role==="row"?$:$.tagName.toLowerCase()!=="body"?($=$.parentElement,C($)):null:null,T=$=>{const U=$.currentTarget;U&&U.dataset&&(F.roleType=U.dataset.roleType,F.index=U.dataset.index)},z=$=>{F.currentRow&&(F.currentRow.classList.remove("is-dragover"),F.currentRow=null),F.index=null,F.roleType=null},D=$=>{const U=$.currentTarget;$.relatedTarget;const Q=C(U);if(!Q)return;const N=Q.dataset&&Q.dataset.roleType;F.roleType===N&&($.preventDefault(),F.currentRow&&F.currentRow!==Q&&F.currentRow.classList.remove("is-dragover"),Q.classList.add("is-dragover"),F.currentRow=Q)},I=$=>{$.preventDefault(),F.currentRow&&(F.currentRow.classList.remove("is-dragover"),F.currentRow=null)},k=$=>{const U=$.currentTarget,Q=C(U);if(!Q)return;const N=Q.dataset&&Q.dataset.roleType;if(F.roleType!==N)return;$.preventDefault();const V=Number(F.index),P=Number(Q.dataset.index);if(V!==P){if(V<P){const Y=o.value[V];o.value.splice(V,1),o.value.splice(P,0,Y)}else{const Y=o.value[V];o.value.splice(V,1),o.value.splice(P+1,0,Y)}v(o.value,l),p()}},K=$=>{const U=o.value[$];U.fixed="left",p()},_=$=>{const U=o.value[$];U.fixed="right",p()},G=$=>{const U=o.value[$];U.fixed=void 0,p()},W=new Map;let X=null;function J($){const U=document.createRange();return U.setStart($,0),U.setEnd($,$.childNodes.length),U.getBoundingClientRect().width}return{attrs:a,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:d,isShowRightFixedTitle:h,isDraggble:f,isCheckAll:g,isIndeterminate:c,handleCheckAllChange:M,handleReset:H,checkedValue:q,handleCheckChange:j,onShow:R,onDragStart:T,onDragEnd:z,onDragOver:D,onDragLeave:I,onDrop:k,toLeftFixed:K,toRightFixed:_,toUnFixed:G,checkboxLabelStyle:S,onMouseOverForOverflowText:($,U,Q)=>{const N=$.currentTarget;if(N){const V=Math.floor(N.offsetWidth);if(Math.floor(J(N))>V){let Y=W.get(U);if(Y){if(Y===X)return;Be.hide(Y)}Y=Be.show(N,Q,{type:"text",placement:"top",closeOnClick:!1}),W.set(U,Y),X=Y}}},onMouseLeaveForOverflowText:($,U)=>{const Q=W.get(U);Q&&(Be.hide(Q),Q===X&&(X=null))},onMouseOverForTip:($,U)=>{const Q=$.currentTarget;Q&&(X&&Be.hide(X),X=Be.show(Q,U,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:$=>{X&&(Be.hide(X),X=null)}}}}),_f={class:"fox-table-setting"},Pf={class:"fox-table-setting__header"},qf={class:"fox-table-setting__body"},zf={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},jf={key:0,class:"fox-table-setting__body-title"},Hf=["data-index","draggable"],Kf=["onMouseover","onMouseleave"],Yf={class:"tools-item"},Wf={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Uf={key:0,class:"fox-table-setting__body-title"},Gf=["data-index","draggable"],Xf=["onMouseover","onMouseleave"],Zf={class:"tools-item"},Qf={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Jf={key:0,class:"fox-table-setting__body-title"},ed=["data-index","draggable"],td=["onMouseover","onMouseleave"],nd={class:"tools-item"};function ld(e,n,a,l,o,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),d=t.resolveComponent("RefreshLeft"),h=t.resolveComponent("FoxIcon"),f=t.resolveComponent("Download"),v=t.resolveComponent("fox-checkbox"),B=t.resolveComponent("FoxCheckboxGroup"),y=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(y,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",_f,[t.createElementVNode("div",Pf,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=m=>e.isCheckAll=m),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",qf,[t.createVNode(B,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=m=>e.checkedValue=m),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",zf,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",jf,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:n[6]||(n[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:n[7]||(n[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:n[8]||(n[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:n[9]||(n[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,m.prop,m.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,Kf)]),_:2},1032,["label"]),t.createElementVNode("div",Yf,[t.createVNode(h,{onClick:p=>e.toUnFixed(m.sortIndex),onMouseover:n[1]||(n[1]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:n[2]||(n[2]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:p=>e.toRightFixed(m.sortIndex),onMouseover:n[3]||(n[3]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:n[4]||(n[4]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])])],40,Hf))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Wf,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",Uf,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:n[15]||(n[15]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:n[16]||(n[16]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:n[17]||(n[17]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:n[18]||(n[18]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,m.prop,m.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,Xf)]),_:2},1032,["label"]),t.createElementVNode("div",Zf,[t.createVNode(h,{onClick:p=>e.toLeftFixed(m.sortIndex),onMouseover:n[10]||(n[10]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:p=>e.toRightFixed(m.sortIndex),onMouseover:n[12]||(n[12]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:n[13]||(n[13]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])])],40,Gf))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Qf,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Jf,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:n[24]||(n[24]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:n[25]||(n[25]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:n[26]||(n[26]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:n[27]||(n[27]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(v,{class:"checkbox-item",label:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,m.prop,m.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,td)]),_:2},1032,["label"]),t.createElementVNode("div",nd,[t.createVNode(h,{onClick:p=>e.toUnFixed(m.sortIndex),onMouseover:n[19]||(n[19]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:n[20]||(n[20]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:p=>e.toLeftFixed(m.sortIndex),onMouseover:n[21]||(n[21]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])])],40,ed))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const wn=ke(Lf,[["render",ld]]);let ad=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o,r,i,u){if(Array.isArray(a)){let d=(l-1)*o,h=d+o;h>a.length&&(h=a.length);const f=a.slice(d,h);return{totalSize:a.length,page:f}}if(typeof a=="function")return await Reflect.apply(a,null,[l,o,r,i,u]);const s=Fe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Me(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[a,l,o,r,i,u]))}};function od(){const e=t.getCurrentInstance();return new ad(e.proxy)}let rd=class{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const l=Fe(this.proxy,"tableSetting");return typeof l=="function"&&(a=await Reflect.apply(l,null,["load",n])),a}save(n,a){const l=Fe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,a])}remove(n){const a=Fe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}};function id(){const e=t.getCurrentInstance();return new rd(e.proxy)}const sd=Symbol.for("TableStateKey"),Ko={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Yo={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationBackground:{type:[Boolean],required:!1,default:!0},paginationSmall:{type:[Boolean],required:!1,default:!1},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},$l={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},ud={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function cd(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let f=r.substring(0,u);l=l[f][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function kl(e,n){return e.filter(l=>{for(let o in n){const r=n[o],i=cd(l,o);if(r!==i)return!1}return!0})}function fd(e,n,a){return{inheritAttrs:!1,props:{...be,...Ce,...Ko,...Yo,...$l,...ud},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,o){const{locale:r}=ve.useFoxI18n(n),{emitEvent:i}=Te({componentName:e,validateHandler:{getValue(...ee){return q.value}}},l.prop??o.attrs.name),u=e,s=t.computed(()=>({[u]:!0})),d=t.computed(()=>({[`${u}__setting`]:!0})),h=t.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${l.footerAlign}`]:!0})),f=t.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${l.paginationAlign}`]:!0})),v=t.shallowRef({}),B=t.computed(()=>({...v.value,...l.params??{},...l.baseParams??{}})),y=t.ref(l.infiniteLoad===!0?0:l.pageIndex),m=t.ref(l.pageSize),p=ue(l.infiniteLoad);p||(t.watch(()=>l.pageIndex,ee=>{y.value=ee}),t.watch(()=>l.pageSize,ee=>{m.value=ee}),t.watch([y,m],([ee,oe],[se,ce])=>{oe!==ce&&(y.value=1,ee=1),C(l.data,ee,oe,B.value)}));const S=()=>Array.isArray(l.data)?!0:ue(l.autoLoad);S()&&t.watch([()=>l.data,B],async([ee,oe],[se,ce])=>{S()&&(ee!==se&&(R=!0),!(!Array.isArray(ee)&&Le(ee,se)&&Le(oe,ce))&&(p?(y.value=0,M.value=!0,q.value=[],z()):y.value===1?C(ee,y.value,m.value,oe):y.value=1))},{deep:!0});const g=ee=>{y.value=ee,i("page-index-change",ee)},c=ee=>{m.value=ee,i("page-size-change",ee)},M=t.ref(!0),H=t.ref(0),q=t.ref(),j=od();let R=!0;const F=Ee(t.computed(()=>l.lazyLoad),"lazyLoad",Pe.Near,ee=>ue(ee)),C=async(ee,oe,se,ce,$e)=>{R=!1;try{if($e===!0){if(!M.value)return!1;const ye=await j.load("table",ee,oe,se,ce,R,r.value);return H.value=ye.totalSize,!ye.page||!Array.isArray(ye.page)||(Reflect.apply([].push,q.value,ye.page),setTimeout(()=>{i("loaded-data")},250),(q.value?.length??0)>=H.value)||ye.page.length<se?(M.value=!1,!1):!0}else{const ye=await j.load("table",ee,oe,se,ce,R,r.value);return H.value=ye.totalSize,q.value=ye.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),H.value=0,q.value=[]}return!1};let T=!1;const z=async()=>{if(!T){if(T=!0,!M.value){T=!1;return}y.value+=1,await C(l.data,y.value,m.value,B.value,!0),T=!1}},D=(ee={},oe=!1)=>new Promise(async se=>{v.value=t.toRaw(ee??{}),oe||(y.value=l.pageIndex??1),p===!0?(y.value=0,q.value=[],M.value=!0,await z()):await C(l.data,y.value,m.value,B.value),se()}),I=()=>{H.value=0,q.value=[],p===!0&&(y.value=0,M.value=!0)};let k=!1;const K=()=>{k||(k=!0,D())},_=t.ref(null);if(p===!0){let ee=null;const oe=()=>{_.value&&(ee=new IntersectionObserver(ce=>{let $e=!1;for(let ye of ce)if(ye.intersectionRatio>0){$e=!0;break}$e&&z()}),ee.observe(_.value))},se=()=>{!ee||!_.value||(ee.unobserve(_.value),ee=null)};t.onMounted(oe),t.onBeforeUnmount(se)}S()&&!F.value&&D();const G=t.ref(null);t.provide(sd,{currentRow:G});const W=(ee,oe)=>{G.value=ee,i("current-change",ee,oe)},X=(ee,oe,se)=>{i("row-click",ee,oe,se),ue(l.rowClickSelectable)===!0&&ie?.value.toggleRowSelection(ee)},J=[],w=(ee,oe)=>{if(i("expand-change",ee,oe),ue(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const se=J.length;J.splice(0,se)}else{J.forEach(ce=>{ce!==ee&&ie?.value.toggleRowExpansion(ce,!1)});const se=J.length;J.splice(0,se,ee)}},x=o.attrs.id??l.prop??o.attrs.name,O=id(),L=t.ref([]);let $=[];const U=()=>({srcColumnPropertyList:$.map(oe=>({...oe})),columnPropertyList:L.value}),Q=ee=>{L.value=[...ee],V()},N=async()=>{const ee=await O.load(x);ee&&(L.value=ee)},V=()=>{O.save(x,L.value)},P=()=>{O.remove(x)};N();const Y=ee=>ee?ee.type?ee.type:ee.label?ee.prop:"":"",te=t.computed(()=>{if(typeof o.slots.default=="function"){const ee=o.slots.default(),oe=new Map;if($=[],ee.forEach(se=>{const ce=se;if(!ce.props)return;const $e=Y(ce.props);oe.set($e,se);const ye={label:"",prop:""};Object.assign(ye,ce.props),$.push(ye)}),L.value.length===$.length){const se=[];for(let ce of L.value){const $e=Y(ce),ye=oe.get($e);if(!ye)return ee;if(ce.visible===!1)continue;const wt=ye;wt.props.fixed=ce.fixed,se.push(wt)}return se}return ee}return[]}),le=t.shallowRef(new Map),E=({column:ee,rowIndex:oe})=>{const se=`${oe}_${ee.property}`;return le.value.get(se)??""},Z=ee=>typeof ee=="function"?oe=>{const se=[];let ce=E(oe);return ce&&se.push(ce),ce=ee(oe),ce&&se.push(ce),se.length===0?"":se.join(" ")}:E,ne=(ee,oe,se)=>{const ce=`${ee}_${oe}`;se?le.value.set(ce,se):le.value.delete(ce),t.triggerRef(le)},ie=t.ref();return pe({clearSelection:()=>ie?.value.clearSelection(),getSelectionRows:()=>ie?.value.getSelectionRows(),toggleRowSelection:(ee,oe)=>{ie?.value.toggleRowSelection(ee,oe)},toggleRowSelectionByProp:(ee,oe)=>{if(!q.value)return;const se=kl(q.value,ee);se.length!==0&&se.forEach(ce=>{ie?.value.toggleRowSelection(ce,oe)})},toggleAllSelection:()=>{ie?.value.toggleAllSelection()},toggleRowExpansion:(ee,oe)=>{ie?.value.toggleRowExpansion(ee,oe)},toggleRowExpansionByProp:(ee,oe)=>{if(!q.value)return;const se=kl(q.value,ee);se.length!==0&&se.forEach(ce=>{ie?.value.toggleRowExpansion(ce,oe)})},setCurrentRow:ee=>{ie?.value.setCurrentRow(ee)},setCurrentRowByProp:ee=>{if(!q.value)return;const oe=kl(q.value,ee);oe.length!==0&&ie?.value.setCurrentRow(oe[0])},getCurrentRow:()=>G.value,clearSort:()=>{ie?.value.clearSort()},clearFilter:ee=>{ie?.value.clearFilter(ee)},doLayout:()=>{ie?.value.doLayout()},sort:(ee,oe)=>{ie?.value.sort(ee,oe)},scrollTo:(ee,oe)=>{ie?.value.scrollTo(ee,oe)},setScrollTop:ee=>{ie?.value.setScrollTop(ee)},setScrollLeft:ee=>{ie?.value.setScrollLeft(ee)},loadData:D,clearData:I,getData(){return q.value},getTotalSize(){return H.value},getPageIndex(){return y.value},getPageSize(){return m.value},getColumnSetting:U,setColumnSetting:Q,removeColumnSetting:P,setCellClassName:ne}),()=>{const oe={...He(o.attrs),onCurrentChange:W,onRowClick:X,onExpandChange:w,data:q.value,ref:ie,class:s.value,"cell-class-name":Z(l.cellClassName)},se={};if(o.slots.default&&(se.default=()=>te.value),o.slots.append&&(se.append=()=>o.slots.append),o.slots.empty&&(se.empty=()=>o.slots.empty),p===!0){const ze=[];if(M.value){const Lt=t.h(Se.Loading,{class:`${u}__infinite-icon`});ze.push(Lt);const sa=t.h("span",{class:`${u}__infinite-text`},[l.loadText]);ze.push(sa)}else{const Lt=t.h("span",{class:`${u}__infinite-text`},[l.loadMoreText]);ze.push(Lt)}const st={ref:_,class:`${u}__infinite`},ia=t.h("div",st,ze);se.append=()=>ia}const ce=t.h(A.ElTable,oe,se),$e=[];if($e.push(ce),!p){let ze=null;if(typeof o.slots.pagination=="function")ze=o.slots.pagination();else if(l.showPagination){const st={class:f.value,total:H.value,pageSize:m.value,"onUpdate:pageSize":c,pageSizes:l.pageSizes,currentPage:y.value,"onUpdate:currentPage":g,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};ze=t.h(A.ElPagination,st)}if(l.showSetting){const st=[];ze&&st.push(ze);const ia=t.h(A.ElIcon,{class:d.value},{default:()=>t.h(Se.Setting)}),Lt=ut(l,$l),sa=t.h(wn,{...Lt,tableRef:{getColumnSetting:U,setColumnSetting:Q,removeColumnSetting:P}},{default:()=>ia});st.push(sa);const Gg=t.h("div",{class:h.value},st);$e.push(Gg)}else ze&&$e.push(ze)}const ye={default:()=>$e},Mt={...De(l,Ko,Yo,$l),prop:`${l.prop}_item`};return Mt.contentClass=`${u}__wrap`,Mt.errorMarkClass="is-table-error",F.value&&S()&&(Mt["appear-listen"]=!0,Mt.onAppear=K),t.h(a,Mt,ye)}}}}const{componentName:dd,create:hd,scope:md}=re("table-item"),Dl=hd(fd(dd,md,we));function yt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Bt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function gd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let yd=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function pd(){const e=t.getCurrentInstance();return new yd(e.proxy)}function Wo(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const l=yt(e,n),o=yt(e,a);if(l!==o)return!1;const r=Bt(e,n),i=Bt(e,a);return r===i}function bd(e,n,a,l){if(l.length==0||n===""||n===null||n===void 0)return null;let o=null;for(let r of l){let i=!1;if(a==="text")i=yt(e,r)===n;else if(a==="item")i=Wo(e,r,n);else{let u=Bt(e,r);u==null&&(u=yt(e,r)),i=u===n}if(i){o=r;break}}return o}function vd(e){return{text:e,value:e}}function wd(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const Uo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Sd(e,n,a){return{inheritAttrs:!0,props:{...be,...Ce,...Uo},emits:["change","update:modelValue"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),s=t.ref(null),d=t.ref(null),h=(j,R,F,C=!0)=>{const T=bd(l,j,R,F);if(T===null){if(d.value===null)return;d.value=null,s.value=null,C&&(u("update:modelValue",null),u("change",null));return}if(!Wo(l,T,d.value)){s.value=j;const D=t.toRaw(T);d.value=D;let I=null;l.valueType==="text"?I=yt(l,D):l.valueType==="item"?I=D:I=Bt(l,D),C&&(u("update:modelValue",I),u("change",I))}},f=t.ref([]),v=Ee(t.computed(()=>l.lazyLoad),"lazyLoad",Pe.Near,j=>ue(j)),B=pd(),y=async(j,R)=>{if(j){const F=await B.load("radio",j,R);if(F.length>0)if(typeof F[0]=="string"){let z=F.map(D=>vd(D));f.value=z}else f.value=F}};t.watch([()=>l.source,()=>l.params],async([j,R])=>{y(j,R)},{immediate:!v.value});let m=!1;const p=()=>{m||(m=!0,y(l.source,l.params))};t.watch([()=>f.value,()=>l.modelValue],([j,R])=>{h(R,l.valueType,j,!1)});const S=e,g=t.computed(()=>({[S]:!0,[`is-${l.direction}`]:!0})),c=j=>{h(j,"value",f.value,!0)};let M=de(l,"hintText"),H=de(l,"hintVisible");const q=(j,R)=>{const F=[];return j.forEach((C,T)=>{const z=Bt(l,C),D=yt(l,C);let I=gd(l,C);r.value===!0&&(I=r.value),i.value===!0&&(I=i.value);const k=wd(l,C,T)??{},K=`${z}_${T}`,_={...k,key:K,label:z,size:l.size,border:ue(l.border)};I&&(_.disabled=I),l.itemType==="button"?F.push(t.h(A.ElRadioButton,_,{default:()=>[D]})):typeof R=="function"?F.push(t.h(A.ElRadio,_,{default:()=>R(C)})):F.push(t.h(A.ElRadio,_,{default:()=>[D]}))}),F};return()=>{const R={...He(o.attrs),class:g.value,disabled:r.value||i.value,modelValue:s.value,"text-color":l.textColor,fill:l.fill,onChange:c},F=[],C={};o.slots.options?C.default=o.slots.options:C.default=()=>q(f.value,o.slots.text);const T=t.h(A.ElRadioGroup,R,C);F.push(T);const z={default:()=>F};o.slots.default&&(z.label=o.slots.default),o.slots.fixedTip&&(z.fixedTip=o.slots.fixedTip);const I={...De(l,Uo),hintText:M.value,hintVisible:H.value,prop:`${l.prop??o.attrs.name}_item`};return v.value&&(I["appear-listen"]=!0,I.onAppear=p),t.h(a,I,z)}}}}const{componentName:xd,create:Td,scope:Cd}=re("radio-item"),Nl=Td(Sd(xd,Cd,we));function pt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function bt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function $d(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let kd=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function Dd(){const e=t.getCurrentInstance();return new kd(e.proxy)}function Go(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const l=pt(e,n),o=pt(e,a);if(l!==o)return!1;const r=bt(e,n),i=bt(e,a);return r===i}function Nd(e,n,a,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];return n.forEach(r=>{for(let i of l){let u=!1;if(a==="text")u=pt(e,i)===r;else if(a==="item")u=Go(e,i,r);else{let s=bt(e,i);s==null&&(s=pt(e,i)),u=s===r}if(u){o.push(i);break}}}),o}function Ed(e){return{text:e,value:e}}function Id(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const Xo={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Vd(e,n,a){return{inheritAttrs:!0,props:{...be,...Ce,...Xo},emits:["change","update:modelValue"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),s=t.ref([]),d=t.ref([]),h=(j,R,F,C=!0)=>{const T=Nd(l,j,R,F);if(T===null){if(d.value===null||d.value.length===0)return;s.value=[],d.value=[],C&&(u("update:modelValue",[]),u("change",[]));return}let z=!0;if(T.length!==d.value.length)z=!1;else for(let D=0;D<T.length;D++){const I=T[D],k=d.value[D];if(!Go(l,I,k)){z=!1;break}}if(!z){d.value=T;let D=[],I=[];T.forEach(K=>{D.push(bt(l,K)),l.valueType==="text"?I.push(pt(l,K)):l.valueType==="item"?I.push(K):I.push(bt(l,K))}),s.value=D;const k=t.toRaw(I);C&&(u("update:modelValue",k),u("change",k))}},f=t.ref([]),v=Ee(t.computed(()=>l.lazyLoad),"lazyLoad",Pe.Near,j=>ue(j)),B=Dd(),y=async(j,R)=>{if(j){const F=await B.load("checkbox",j,R);if(F.length>0)if(typeof F[0]=="string"){let z=F.map(D=>Ed(D));f.value=z}else f.value=F}};t.watch([()=>l.source,()=>l.params],async([j,R])=>{y(j,R)},{immediate:!v.value});let m=!1;const p=()=>{m||(m=!0,y(l.source,l.params))};t.watch([()=>f.value,()=>l.modelValue],([j,R])=>{h(R,l.valueType,j,!1)});const S=e,g=t.computed(()=>({[S]:!0,[`is-${l.direction}`]:!0})),c=j=>{h(j,"value",f.value,!0)};let M=de(l,"hintText"),H=de(l,"hintVisible");const q=(j,R)=>{const F=[];return j.forEach((C,T)=>{const z=bt(l,C),D=pt(l,C);let I=$d(l,C);r.value===!0&&(I=r.value),i.value===!0&&(I=i.value);const k=Id(l,C,T)??{},K=`${z}_${T}`,_={...k,key:K,class:l.itemClass,label:z,size:l.size,border:ue(l.border)};I&&(_.disabled=I),l.itemType==="button"?F.push(t.h(A.ElCheckboxButton,_,{default:()=>[D]})):typeof R=="function"?F.push(t.h(A.ElCheckbox,_,{default:()=>R(C)})):F.push(t.h(A.ElCheckbox,_,{default:()=>[D]}))}),F};return()=>{const R={...He(o.attrs),class:g.value,disabled:r.value||i.value,modelValue:s.value,"text-color":l.textColor,fill:l.fill,max:he(l.max),min:he(l.min),onChange:c},F=[],C={};o.slots.options?C.default=o.slots.options:C.default=()=>q(f.value,o.slots.text);const T=t.h(A.ElCheckboxGroup,R,C);F.push(T);const z={default:()=>F};o.slots.default&&(z.label=o.slots.default),o.slots.fixedTip&&(z.fixedTip=o.slots.fixedTip);const I={...De(l,Xo),hintText:M.value,hintVisible:H.value,prop:`${l.prop??o.attrs.name}_item`};return v.value&&(I["appear-listen"]=!0,I.onAppear=p),t.h(a,I,z)}}}}const{componentName:Od,create:Ad,scope:Fd}=re("checkbox-item"),El=Ad(Vd(Od,Fd,we)),Zo={modelValue:{type:[Number,String],required:!1}};function Bd(e,n,a){return{props:{...be,...Ce,...Zo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),s=de(l,"modelValue",m=>he(m)),d=e,h=t.computed(()=>({[d]:!0})),f=m=>{u("update:modelValue",m),u("change",m)};let v=de(l,"hintText"),B=t.ref(!1);const y=t.ref();return pe({}),()=>{const p={...He(o.attrs),ref:y,class:h.value,readonly:i.value||r.value,modelValue:s.value,onChange:f},S={},g=[],c=t.h(A.ElRate,p,S);g.push(c);const M={default:()=>g};o.slots.default&&(M.label=o.slots.default),o.slots.fixedTip&&(M.fixedTip=o.slots.fixedTip);const q={...De(l,Zo),hintText:v.value,hintVisible:B.value,prop:`${l.prop}_item`};return t.h(a,q,M)}}}}const{componentName:Rd,create:Md,scope:Ld}=re("rate-item"),Il=Md(Bd(Rd,Ld,we)),Qo={modelValue:{type:[Boolean,String,Number],required:!1}};function _d(e,n,a){return{props:{...be,...Ce,...Qo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),s=de(l,"modelValue"),d=e,h=t.computed(()=>({[d]:!0})),f=m=>{u("update:modelValue",m),u("change",m)};let v=de(l,"hintText"),B=de(l,"hintVisible");const y=t.ref();return pe({}),()=>{const p={...He(o.attrs),ref:y,class:h.value,readonly:i.value,disabled:r.value,modelValue:s.value,onChange:f},S={},g=[],c=t.h(A.ElSwitch,p,S);g.push(c);const M={default:()=>g};o.slots.default&&(M.label=o.slots.default),o.slots.fixedTip&&(M.fixedTip=o.slots.fixedTip);const q={...De(l,Qo),hintText:v.value,hintVisible:B.value,prop:`${l.prop}_item`};return t.h(a,q,M)}}}}const{componentName:Pd,create:qd,scope:zd}=re("switch-item"),Vl=qd(_d(Pd,zd,we)),Jo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function jd(e,n,a){return{props:{...be,...Ce,...Jo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),u=t.ref(!1),{emitEvent:s}=Te({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),d=de(l,"modelValue"),h=e,f=t.computed(()=>({[h]:!0})),v=H=>{s("update:modelValue",H),s("change",H)};let B=de(l,"hintText"),y=t.ref(!1);const m=H=>{let j=H.target.value;u.value=!0,ge(B.value)||(y.value=!0),s("focus",j,H)},p=H=>{setTimeout(()=>{y.value&&(y.value=!1),u.value=!1},0);let j=H.target.value;l.maxLength&&j.length>Number(l.maxLength)&&(j=j.slice(0,Number(l.maxLength))),g.value||s("blur",j,H)},S=()=>{s("clear","")},g=t.ref(!1),c=H=>{g.value=H,s("visible-change",H),H||s("selected")},M=t.ref();return pe({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()}}),()=>{const q={...He(o.attrs),ref:M,class:f.value,disabled:r.value||i.value,modelValue:d.value,"onUpdate:modelValue":v,onClear:S,onFocus:m,onBlur:p,onVisibleChange:c},j={};o.slots.option&&(j.default=o.slots.option);const R=[],F=t.h(A.ElTreeSelect,q,j);R.push(F);const C={default:()=>R};o.slots.default&&(C.label=o.slots.default),o.slots.fixedTip&&(C.fixedTip=o.slots.fixedTip);const z={...De(l,Jo),hintText:B.value,hintVisible:y.value,prop:`${l.prop}_item`};return t.h(a,z,C)}}}}const{componentName:Hd,create:Kd,scope:Yd}=re("tree-select-item"),Ol=Kd(jd(Hd,Yd,we));class Wd{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const l=Fe(this.proxy,"tableSetting");return typeof l=="function"&&(a=await Reflect.apply(l,null,["load",n])),a}save(n,a){const l=Fe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,a])}remove(n){const a=Fe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}}function Ud(){const e=t.getCurrentInstance();return new Wd(e.proxy)}const Gd={},Xd={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},Zd=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Qd(e,n){return t.openBlock(),t.createElementBlock("svg",Xd,Zd)}const Jd=ke(Gd,[["render",Qd]]),{componentName:dy,create:eh,scope:hy}=re("group-setting"),th={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},nh=eh({components:{FoxPopover:A.ElPopover,FoxCheckbox:A.ElCheckbox,FoxCheckboxGroup:A.ElCheckboxGroup,FoxButton:A.ElButton,FoxIcon:A.ElIcon,DragIcon:Jd,Download:Se.Download,RefreshLeft:Se.RefreshLeft},props:{...th},emits:["change"],setup(e,{emit:n,attrs:a,expose:l}){let o=null;const r=t.ref([]),i=Ud(),u=w=>w.length>1,s=()=>{const w=[],x=[...r.value];r.value=x.map((L,$)=>(L.visible!==!1&&w.push(L.prop),{...L,sortIndex:$})),r.value.length===w.length?m.value=!0:w.length>0&&(p.value=!0),c.value=w},d=w=>{let x=null;if(typeof w=="string")x=document.querySelectorAll(`.fox-group[prop="${w}"] > div > .fox-item[prop]`);else if(w&&typeof w=="object"){const L=w.$el??w;typeof L.querySelectorAll=="function"&&(x=L.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const O=[];return x.forEach(L=>{const $=L.querySelector(".label--string");let U="";$&&(U=$.textContent??"");const Q=L.getAttribute("prop")??"",V=window.getComputedStyle(L,null).getPropertyValue("display");O.push({label:U,prop:Q,sortIndex:0,visible:V!=="none"})}),O},h=()=>{if(!o){const w=d(e.groupRef??e.groupProp);if(w.length===0)return!1;o=w}return!0},f=async(w=!1)=>{const x=await i.load(e.groupProp),O=L=>{if(!L||!o)return;const $=o.map(U=>({...U}));Array.isArray(x)&&x.forEach(U=>{$.some(Q=>{if(Q.prop===U.prop){const N=Q.label;return Object.assign(Q,U),Q.label=N,!0}return!1})}),r.value=$.sort((U,Q)=>U.sortIndex-Q.sortIndex),s(),w&&B(!1)};o?O(!0):Gt(h,e.initDelay,5,50,!1,O)},v=()=>{const w=o??[];r.value=w.map(x=>({...x})),s(),B()},B=(w=!0)=>{w&&i.save(e.groupProp,r.value);const x=r.value.map(O=>({...O}));n("change",x)},y=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=t.ref(!1),p=t.ref(!1),S=w=>{const x=[];r.value.forEach(L=>{w&&x.push(L.prop),L.visible=w}),m.value=!1,p.value=!1,r.value.length===x.length?m.value=!0:x.length>0&&(p.value=!0),c.value=x,B()},g=()=>{v()},c=t.ref([]),M=w=>{r.value.forEach(O=>{const L=w.indexOf(O.prop)!==-1;O.visible=L}),m.value=!1,p.value=!1;const x=r.value.length;w.length===x?m.value=!0:w.length>0&&(p.value=!0),B()},H=()=>{f()};t.onMounted(()=>{f(!0)});const q={currentRow:null,index:null},j=w=>w?w.dataset&&w.dataset.role==="row"?w:w.tagName.toLowerCase()!=="body"?(w=w.parentElement,j(w)):null:null,R=w=>{const x=w.currentTarget;x&&x.dataset&&(q.index=x.dataset.index)},F=w=>{q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null),q.index=null},C=w=>{const x=w.currentTarget;w.relatedTarget;const O=j(x);O&&(w.preventDefault(),q.currentRow&&q.currentRow!==O&&q.currentRow.classList.remove("is-dragover"),O.classList.add("is-dragover"),q.currentRow=O)},T=w=>{w.preventDefault(),q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null)},z=w=>{const x=w.currentTarget,O=j(x);if(!O)return;w.preventDefault();const L=Number(q.index),$=Number(O.dataset.index);if(L!==$){if(L<$){const U=r.value[L];r.value.splice(L,1),r.value.splice($,0,U)}else{const U=r.value[L];r.value.splice(L,1),r.value.splice($+1,0,U)}s(),B()}},D=w=>{const x=r.value[w];r.value.splice(w,1),r.value.splice(0,0,x),s(),B()},I=w=>{const x=r.value[w];r.value.splice(w,1),r.value.push(x),s(),B()};l({refresh:()=>{o=null,f(!1)}});const k=new Map;let K=null;function _(w){const x=document.createRange();return x.setStart(w,0),x.setEnd(w,w.childNodes.length),x.getBoundingClientRect().width}return{attrs:a,itemPropertyList:r,isDraggble:u,isCheckAll:m,isIndeterminate:p,handleCheckAllChange:S,handleReset:g,checkedValue:c,handleCheckChange:M,onShow:H,onDragStart:R,onDragEnd:F,onDragOver:C,onDragLeave:T,onDrop:z,checkboxLabelStyle:y,toTop:D,toBottom:I,onMouseOverForOverflowText:(w,x,O)=>{const L=w.currentTarget;if(L){const $=Math.floor(L.offsetWidth);if(Math.floor(_(L))>$){let Q=k.get(x);if(Q){if(Q===K)return;Be.hide(Q)}Q=Be.show(L,O,{type:"text",placement:"top",closeOnClick:!1}),k.set(x,Q),K=Q}}},onMouseLeaveForOverflowText:(w,x)=>{const O=k.get(x);O&&(Be.hide(O),O===K&&(K=null))},onMouseOverForTip:(w,x)=>{const O=w.currentTarget;O&&(K&&Be.hide(K),K=Be.show(O,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:w=>{K&&(Be.hide(K),K=null)}}}}),lh={class:"fox-group-setting"},ah={class:"fox-group-setting__header"},oh={class:"fox-group-setting__body"},rh={class:"fox-group-setting__body-list","data-role":"container"},ih=["data-index","draggable"],sh=["onMouseover","onMouseleave"],uh={class:"tools-item"};function ch(e,n,a,l,o,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),d=t.resolveComponent("Download"),h=t.resolveComponent("FoxIcon"),f=t.resolveComponent("FoxCheckboxGroup"),v=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(v,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",lh,[t.createElementVNode("div",ah,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=B=>e.isCheckAll=B),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",oh,[t.createVNode(f,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=B=>e.checkedValue=B),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",rh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,B=>(t.openBlock(),t.createElementBlock("div",{key:B.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":B.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[6]||(n[6]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[7]||(n[7]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[8]||(n[8]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[9]||(n[9]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:B.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,B.prop,B.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,B.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(B.label),45,sh)]),_:2},1032,["label"]),t.createElementVNode("div",uh,[t.createVNode(h,{onClick:y=>e.toTop(B.sortIndex),onMouseover:n[1]||(n[1]=y=>e.onMouseOverForTip(y,e.toTopText)),onMouseleave:n[2]||(n[2]=y=>e.onMouseLeaveForTip(y)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:y=>e.toBottom(B.sortIndex),onMouseover:n[3]||(n[3]=y=>e.onMouseOverForTip(y,e.toBottomText)),onMouseleave:n[4]||(n[4]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,ih))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Al=ke(nh,[["render",ch]]),Fl={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popStyle:{type:Object,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeClose:{type:Function}};function fh(e,n,a,l="value"){for(let o=0;o<n.length;o++){let r=n[o];if(l==="text"){if(Sn(e,r)===a)return o}else if(l==="item"){if(Le(a,r))return o}else if(tr(e,r)===a)return o}return-1}function Sn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function er(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function tr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function dh(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function hh(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let mh=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o,r,i,u){if(Array.isArray(a)){let d=a;typeof u=="function"&&(d=d.filter(u));let h=(l-1)*o,f=h+o;f>d.length&&(f=d.length);const v=d.slice(h,f);return{totalSize:d.length,page:v}}if(typeof a=="function")return await Reflect.apply(a,null,[l,o,r,i]);const s=Fe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Me(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[a,l,o,r]))}};function gh(){const e=t.getCurrentInstance();return new mh(e.proxy)}const yh=/scroll|auto|overlay/i,nr=window;function ph(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function bh(e,n=nr){let a=e;for(;a&&a!==n&&ph(a);){const{overflowY:l}=window.getComputedStyle(a);if(yh.test(l))return a;a=a.parentNode}return n}function lr(e,n=nr){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=bh(e.value,n))}),a}const ar=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,vh={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function wh(e,n,a){return{props:{...vh},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["pullText","loadText","loadMoreText"]),s=t.ref(),d=lr(s),h=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),f=t.computed(()=>({[e]:!0})),v=g=>g?g.offsetTop+v(g.offsetParent):0,B=()=>{let g=0,c=0,M="down";if(d.value==window){const H=ar();s.value&&(g=v(s.value)+s.value.offsetHeight-H-window.innerHeight),c=H}else{const{scrollHeight:H,clientHeight:q,scrollTop:j}=d.value;g=H-q-j,c=j}return h.beforeScrollTop>c?M="up":M="down",h.beforeScrollTop=c,o("scroll-change",c),g<=l.threshold&&M=="down"},y=()=>{En(()=>{if(!B()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},m=()=>{d.value&&d.value.addEventListener("scroll",y,l.useCapture)},p=()=>{d.value&&d.value.removeEventListener("scroll",y,l.useCapture)};t.onMounted(()=>{m(),l.immediate&&y()}),t.onUnmounted(()=>{p()});const S=t.ref(!1);return t.onActivated(()=>{S.value&&(S.value=!1,m())}),t.onDeactivated(()=>{S.value=!0,p()}),t.watch(()=>l.modelValue,g=>{g||(h.isInfiniting=!1)}),()=>{const g={class:"fox-infinite__container"},c=t.h("view",g,[r?.default?.()]),M=[];if(h.isInfiniting){let R=r?.loading?.()??null;if(!R){let T=r?.loadingIcon?.()??null;if(!T){const I={class:["fox-infinite__bottom-box__img"]};T=t.h(a,I)}const z={class:"fox-infinite__bottom-box__text"},D=t.h("view",z,[u.loadText.value]);R=[T,D]}const F={class:"fox-infinite__bottom-box"},C=t.h("view",F,R);M.push(C)}else if(!l.hasMore){let R=r?.finished?.()??null;if(!R){const F={class:"fox-infinite__bottom-tips"};R=t.h("view",F,[u.loadMoreText.value]),M.push(R)}}const H={class:"fox-infinite__bottom"},q=t.h("view",H,M),j={class:f.value,ref:s};return t.h("view",j,[c,q])}}}}const{componentName:Sh,create:xh,scope:Th}=re("infinite-loading"),xn=xh(wh(Sh,Th,dn)),Ch={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},$h=(e,n,a)=>({props:{...Ch},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["placeholder"]),s=t.reactive({active:!1}),d=t.computed(()=>({background:l.background})),h=t.computed(()=>({background:l.inputBackground})),f=F=>{let T=F.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),o("update:modelValue",T,F),o("change",T,F)},v=t.ref({}),B=F=>{let T=F.target.value;s.active=!0,v.value=l.focusStyle,o("focus",T,F)},y=F=>{setTimeout(()=>{s.active=!1},0);let T=F.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),v.value={},o("blur",T,F)},m=F=>{o("update:modelValue","",F),o("change","",F),o("clear","")},p=t.computed(()=>String(l.modelValue).length>0),S=t.computed(()=>{const F={};return p.value||(F.display="none"),F}),g=()=>{o("search",l.modelValue)},c=F=>{o("keyup-input",F),F.key.toLocaleUpperCase()==="ENTER"&&g()},M=F=>{o("click-input",F)},H=F=>{o("click-left-icon",l.modelValue,F)},q=t.computed(()=>({textAlign:l.inputAlign})),j=t.ref(null);t.onMounted(()=>{l.autofocus&&j.value.focus()});const R=()=>{const F=[];if(r.leftin){const I={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:H},k=t.h("view",I,[r.leftin()]);F.push(k)}const C={ref:j,class:[`${e}__input-inner`],style:q.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:M,onInput:f,onFocus:B,onBlur:y,onkeyup:c},T=t.h("input",C);F.push(T);const z=[];if(l.clearable){const I={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:S.value,onClick:m},k=r?.clear?.()??l.clearIcon??a,K=t.h("view",I,[t.h(k)]);z.push(K)}if(r.rightin){const I={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},k=t.h("view",I,[r.rightin()]);z.push(k)}if(z.length>0){const I={class:`${e}__input-inner-right`},k=t.h("view",I,z);F.push(k)}const D={class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...v.value}};return t.h("view",D,F)};return()=>{const F=[];if(l.label){const z={class:`${e}__search-label`},D=t.h("span",z,[l.label]);F.push(D)}if(r.leftout){const z={class:[`${e}__search-icon`,`${e}__left-search-icon`]},D=t.h("view",z,[r.leftout()]);F.push(D)}const C=R();if(F.push(C),r.rightout){const z={class:[`${e}__search-icon`,`${e}__right-search-icon`]},D=t.h("view",z,[r.rightout()]);F.push(D)}const T={class:`${e}`,style:d.value};return t.h("view",T,F)}}}),{componentName:kh,create:Dh,scope:Nh}=re("searchbar"),Tn=Dh($h(kh,Nh,Se.CircleClose));function Eh(e,n,a){return{props:{...Fl},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),s=gh(),d=t.ref([]),h=t.ref(0),f=t.ref(""),v=t.shallowRef(null),B=t.computed(()=>{const w={};return l.params&&Object.assign(w,l.params),ge(f.value)||(w[`${l.searchKey}`]=f.value),v.value&&Object.assign(w,v.value),w});let y=!0;const m=async(w,x,O)=>{try{if(S.value===!1)return;let L=null;ge(f.value)||(L=U=>{const Q=Sn(l,U);if(typeof Q=="string"&&Q.includes(f.value))return!0;const N=er(l,U);return!!(typeof N=="string"&&N.includes(f.value))});const $=await s.load("actionsheet",w,x,O,B.value,y,L??void 0);y=!1,Array.isArray($)?(d.value=$,h.value=1,S.value=!1):!Array.isArray($.page)||$.page.length===0?(console.warn("[FoxUI] can not load more data"),S.value=!1):(Reflect.apply([].push,d.value,$.page),h.value=Math.ceil(d.value.length/l.pageSize),($.totalSize&&d.value.length>=$.totalSize||O<$.page.length)&&(S.value=!1)),p.value=!1}catch(L){console.error("[FoxUI] ActionSheet load more data fail",L),S.value=!0,h.value=0,d.value=[]}setTimeout(()=>{o("loaded-data")},250)},p=t.ref(!1),S=t.ref(!0),g=async()=>{if(!l.source){p.value=!1;return}await m(l.source,h.value+1,l.pageSize)};t.watch(()=>f.value,(w,x)=>{ge(w)&&!ge(x)&&g()}),t.watch([()=>l.source,()=>l.pageSize,()=>l.params],async([w,x,O])=>{l.source&&g()},{immediate:!0});const c=t.computed(()=>!l.multiple&&l.isAutoBackFill),M=t.ref([]);let H=null;const q=t.ref(l.visible);t.watch(()=>l.visible,w=>{q.value!==w&&(q.value=w),w?H=[...M.value]:H=null});const j=(w,x)=>{const O=[];return Array.isArray(w)||(w=[w]),w.forEach(L=>{let $=fh(l,x,L,l.valueType);$!==-1&&O.push($)}),Le(O,M.value)?!1:(M.value=O,!0)};t.watch([()=>l.modelValue,()=>d.value],([w,x],[O,L])=>{if(j(w,x)){const U=R();F(U)}},{deep:!0});const R=()=>{const w=[],x=[],O=[];for(let Q of M.value){const N=d.value[Q];x.push(N);const V=Sn(l,N);if(O.push(V),l.valueType==="item")w.push(N);else if(l.valueType==="text")w.push(V);else{const P=tr(l,N);w.push(P)}}let L=null,$=null,U=null;return l.multiple?(L=w,$=O,U=x):(L=w[0]??null,$=O[0]??null,U=x[0]??null),{value:L,text:$,item:U}},F=w=>{o("update:modelValue",w.value),o("update:text",w.text),o("change",w.value,w.item,w.text)},C=()=>{H&&(M.value=H)},T=w=>{const x=M.value.indexOf(w);l.multiple?x===-1?M.value.push(w):M.value.splice(x,1):x===-1?M.value=[w]:M.value=[],(c.value||!l.poppable&&!l.showFooter)&&I()},z=w=>{q.value=w,o("update:visible",w)},D=()=>{const w=()=>{C(),z(!1)};if(typeof l.beforeClose=="function"){const x=l.beforeClose("close");zt(x)?x.then(O=>{O!==!1&&w()}).catch(()=>{w()}):x!==!1&&w()}else w()},I=()=>{const w=R(),x=()=>{F(w),z(!1)};if(typeof l.beforeClose=="function"){const O=l.beforeClose("confirm",w.value,w.item,w.text);zt(O)?O.then(L=>{L!==!1&&x()}).catch(()=>{x()}):O!==!1&&x()}else x()},k=()=>{S.value=!0,h.value=0,d.value=[],l.source&&g()},K=()=>{let w=u.title.value??"";r.title&&(w=r.title());const x=t.h("view",{class:["fox-actionsheet__header-title"]},[w]),O=t.h(vo,{class:["fox-actionsheet__header-icon"],onClick:D});return t.h("view",{class:["fox-actionsheet__header"]},[x,O])},_=()=>{let w=null;if(r.search)w=r.search();else{const x={onSearch:k,placeholder:u.seachPlaceholder.value,disabled:l.disabled,modelValue:f.value,"onUpdate:modelValue":O=>{f.value=O}};w=t.h(Tn,x,{leftin:()=>t.h(cu)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[w])},G=(w,x,O,L,$)=>{if(r.optionLabel)return r.optionLabel({text:w,checked:x,disabled:O,subText:L,item:$});const U=[],Q=t.h("view",{class:"fox-actionsheet__list-item-text"},[w]);if(U.push(Q),L){const N=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[L]);U.push(N)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},U)},W=(w,x,O,L)=>{if(r.optionIcon)return r.optionIcon({checked:w,disabled:x,iconSize:O,item:L});if(w){if(r.checkedIcon)return r.checkedIcon({disabled:x,item:L});{const $=l.checkedIcon??Du;return t.h($,{width:O,height:O,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:x,item:L});{const $=l.icon??Vu;return t.h($,{width:O,height:O,class:["fox-actionsheet__list-item-icon"]})}}},X=()=>{const w=[];for(let x=0;x<d.value.length;x++){const O=d.value[x],L=Sn(l,O),$=er(l,O),U=["fox-actionsheet__list-item"],Q={};let N=dh(l,O),V=l.iconSize?me(l.iconSize):null;const P=hh(l,O,x);P&&(N=N||P.disabled,P.class&&U.push(P.class),P.style&&Object.assign(Q,P.style)),N=!!(l.disabled||N);const Y=M.value.includes(x);N&&U.push("is-disabled"),Y&&U.push("is-checked");const te={class:U,style:Q,key:`${x}`,onClick:()=>{N||T(x)}};let le=[];if(r.option)le.push(r.option({item:O,checked:Y,disabled:N}));else{const Z=G(L,Y,N,$,O);le.push(Z);const ne=W(Y,N,V,O);le.push(ne)}const E=t.h("view",te,le);w.push(E)}return w},J=()=>{let w=[];if(r.buttons)w=r.buttons();else{const O=t.h("view",{class:"fox-actionsheet__footer-confirm",onClick:I,disabled:l.disabled},{default:()=>u.confirmText.value});w.push(O)}return t.h("view",{class:"fox-actionsheet__footer"},[w])};return pe({search:async(w=null,x=!0)=>{v.value=w&&t.toRaw(w),t.triggerRef(v),x&&(S.value=!0,h.value=0,d.value=[]),t.nextTick(()=>{g()})},clear:()=>{S.value=!0,h.value=0,d.value=[]},confirm:()=>{I()},cancel:()=>{D()}}),()=>{const w=[];if(l.showHeader){const V=K();w.push(V)}if(l.showSearchbar){const V=_();w.push(V)}let x=null;if(r.content)x=r.content();else{const V=X(),P={hasMore:S.value,loadText:u.loadText.value,loadMoreText:u.loadMoreText.value,modelValue:p.value,"onUpdate:modelValue":Y=>{p.value=Y},onLoadMore:g};x=t.h(xn,P,{default:()=>V})}const O={};l.optionsHeight&&(O.height=l.optionsHeight);const L={"fox-actionsheet__list":!0};l.poppable||(L["fox-actionsheet__list--inner"]=!0);const $=t.h("view",{class:L,style:O},[x]);if(w.push($),l.showFooter&&!c.value){const V=J();w.push(V)}const U=t.h("view",{class:"fox-actionsheet"},w);if(!l.poppable)return U;const Q=["fox-actionsheet__popup"];l.popClass&&Q.push(l.popClass);const N={popClass:Q.join(" "),style:l.popStyle,visible:q.value,closeable:!1,"onUpdate:visible":z,position:l.position,round:"round",onClickOverlay:D,closeOnClickOverlay:l.closeOnClickOverlay};return t.h(ot,N,{default:()=>U})}}}}const{componentName:Ih,create:Vh,scope:Oh}=re("actionsheet-pane"),Cn=Vh(Eh(Ih,Oh)),Ah={type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Fh(e,n,a,l,o){return{props:{...be,...Ce,...Ah,...Fl},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(r,i){const u=Ve(t.computed(()=>r.disabled)),s=Ie(t.computed(()=>r.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!s.value}},r.prop??i.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),f=h(r,["placeholder"]),v=t.ref(!1),B=de(r,"modelValue"),y=t.ref(""),m=t.computed(()=>Array.isArray(y.value)?y.value.join(r.separator):y.value),p="fox-input-item",S=t.computed(()=>({[p]:!0,[`${p}__disabled`]:u.value})),g=Ee(t.computed(()=>r.textAlign),"textAlign"),c=t.computed(()=>{const k={};return g.value&&(k["text-align"]=g.value),k}),M=t.ref(!1),H=()=>{M.value=!0},q=k=>{M.value=k},j=k=>{B.value=k,d("update:modelValue",k)},R=(k,K)=>{d("change",k,K)},F=k=>{let _=k.target.value;v.value=!0,d("focus",_,k)},C=k=>{setTimeout(()=>{v.value=!1},0);let _=k.target.value;r.maxLength&&_.length>Number(r.maxLength)&&(_=_.slice(0,Number(r.maxLength))),d("blur",_,k)},T=k=>{y.value=k,d("update:text",k)},z=t.computed(()=>qe(r.unit)>0),D=t.ref(),I=t.ref(null);return pe({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()},search:k=>{I.value&&I.value.search(k)},clear:()=>{I.value&&I.value.clear},confirm:k=>{I.value&&I.value.confirm()},cancel:()=>{I.value&&I.value.cancel()}}),()=>{const k={ref:D,class:S.value,style:c.value,type:"text",maxlength:r.maxLength,placeholder:f.placeholder.value,readonly:!0,value:m.value,onClick:H,onFocus:F,onBlur:C},K={};i.slots.prepend&&(K.prepend=i.slots.prepend),i.slots.append&&(K.append=i.slots.append),i.slots.prefix&&(K.prefix=i.slots.prefix),i.slots.suffix?K.suffix=i.slots.suffix:z.value?K.suffix=()=>[r.unit]:K.suffix=()=>t.h(A.ElIcon,{},{default:()=>t.h(Se.ArrowDown)});const _=[],G=t.h(A.ElInput,k,K);_.push(G);const W={default:()=>_};W.label=i.slots.default,W.prepend=i.slots.prepend,W.append=i.slots.append,W.fixedPreTip=i.slots.fixedPreTip,W.fixedTip=i.slots.fixedTip;const X=ut(r,Fl);X.ref=I,X.class=r.actionsheetProps,X.disabled=u.value||s.value,X.visible=M.value,X["onUpdate:visible"]=q,X.modelValue=B.value,X["onUpdate:modelValue"]=j,X.text=y.value,X["onUpdate:text"]=T,X.onChange=R,X.poppable=!0;const J={title:i.slots.title,search:i.slots.search,option:i.slots.option,optionLabel:i.slots.optionLabel,optionIcon:i.slots.optionIcon,buttons:i.slots.buttons},w=t.h(l,X,J);W.hide=()=>[w];const x=ut(r,Ce,be);return t.h(a,x,W)}}}}const{componentName:Bh,create:Rh,scope:Mh}=re("actionsheet-item"),Bl=Rh(Fh(Bh,Mh,we,Cn)),or={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}},Rl={...hl,...or,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},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:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};function Lh(e){return e===window}const Ml=e=>{const n=t.unref(e);if(Lh(n)){const a=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:a,bottom:l,width:a,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},rr=10;function ir(e,n){return e>n&&e>rr?"horizontal":n>e&&n>rr?"vertical":""}function Ll(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function _l(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=ir(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:l,isVertical:n,isHorizontal:a,state:e}}function sr(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),l=t.ref(0),o=t.ref(0),r=t.ref(0),i=t.ref(0),u=t.ref(0),s=t.ref(0),d=t.ref(0),h=t.ref(""),f=()=>h.value==="vertical",v=()=>h.value==="horizontal",B=()=>{i.value=0,u.value=0,s.value=0,d.value=0,h.value="",a.value=0};return{move:p=>{if(p.touches){const c=p.touches[0];i.value=c.clientX-e.value,u.value=c.clientY-n.value,o.value=c.clientX,r.value=c.clientY}else{const g=p;i.value=g.clientX-e.value,u.value=g.clientY-n.value,o.value=g.clientX,r.value=g.clientY}s.value=Math.abs(i.value),d.value=Math.abs(u.value),l.value=Date.now()-a.value,h.value||(h.value=ir(s.value,d.value))},start:p=>{if(B(),p.touches){const c=p.touches[0];e.value=c.clientX,n.value=c.clientY}else{const g=p;e.value=g.clientX,n.value=g.clientY}a.value=Date.now()},reset:B,startX:e,startY:n,startTime:a,duration:l,moveX:o,moveY:r,deltaX:i,deltaY:u,offsetX:s,offsetY:d,direction:h,isVertical:f,isHorizontal:v}}let ur=36;function _h(){return ur}function Ph(e){ur=e}function Ye(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Pl(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function qh(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function cr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let zh=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function jh(){const e=t.getCurrentInstance();return new zh(e.proxy)}function fr(e,n,a){const l=Ye(e,n),o=Ye(e,a);if(l!==o)return!1;const r=rt(e,n),i=rt(e,a);return r===i}function Hh(e,n,a,l){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const o=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const u=n[i];let d=a[i].findIndex(h=>{if(r==="text")return Ye(e,h)===u;if(r==="value"){let f=rt(e,h);return f==null&&(f=Ye(e,h)),f===u}else if(r==="item")return fr(e,h,u)});if(d==-1)break;o.push(d)}else{let i=a[0];for(let u=0;u<n.length;u++){const s=n[u];let d=i.findIndex(f=>{if(r==="text")return Ye(e,f)===s;if(r==="value"){let v=rt(e,f);return v==null&&(v=Ye(e,f)),v===s}else if(r==="item")return fr(e,f,s)});if(d==-1)break;o.push(d);const h=Pl(e,i[d]);if(!Array.isArray(h))break;i=h}}return o}function dr(e,n,a,l){if(a.length==0)return null;const o={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const u=a[i];let s=n[i];s<0&&s>=u.length&&(s=0);const d=u[s],h=Ye(e,d);if(o.texts.push(h),o.items.push(d),r==="text")o.values.push(h);else if(r==="value"){let f=rt(e,d);f==null&&(f=h),o.values.push(f)}else o.values.push(d)}else{let i=a[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=i.length&&(s=0);const d=i[s],h=Ye(e,d),f=Object.assign({},d);if(f.children=null,o.texts.push(h),o.items.push(f),r==="text")o.values.push(h);else if(r==="value"){let v=rt(e,d);v==null&&(v=h),o.values.push(v)}else o.values.push(f);if(!Array.isArray(d.children))break;i=d.children}}return o}function hr(e){return{text:e,value:e}}const Kh=15,Yh=300,Wh=200,{create:Uh}=re("picker-column");function Gh(e){e.stopPropagation()}function Xh(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Gh(e)}const Zh=Uh({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:35},...or},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),l=t.computed(()=>({height:`${he(e.visibleItemCount)*+e.itemHeight}px`})),o=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=R=>R>=f.currIndex+8||R<=f.currIndex-8,u=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${r.value}px`})),s=R=>`transform: rotate3d(1, 0, 0, ${-f.rotation*R}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+r.value}px, 0)`})),h=t.ref(null),f=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),v=t.toRef(e,"source"),B=R=>Ye(e,R),y=R=>rt(e,R),m=sr(),p=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},S=(R,F=!1,C=!1)=>{if(f.currIndex=R,F){const T=()=>{f.moving=!1,n("update:modelValue",R),n("change",R)};C?f.transitionEndTrigger=T:T()}},g=(R,F,C)=>{let T=R+f.startDistance;if(F==="end"){const z=-(v.value.length-1)*e.itemHeight;T<z&&(T=z,(!C||C<=0)&&(C=e.swipeDuration)),T>0&&(T=0,(!C||C<=0)&&(C=e.swipeDuration));let D=Math.abs(Math.round(-T/e.itemHeight));const I=-D*e.itemHeight,k=`${(D+1)*f.rotation}deg`,K=C?C>0:!1;S(D,!0,K),c(I,F,C,k)}else{let z=(-T/e.itemHeight+1)*f.rotation;const D=(v.value.length+1)*f.rotation,I=0;if(z=Math.min(Math.max(z,I),D),e.threeDimensional&&(z<I||z>D))return;c(T,null,void 0,`${z}deg`)}},c=(R=0,F,C=Wh,T)=>{F==="end"?f.scrollTime=C:f.scrollTime=0,f.deg=T,f.scrollDistance=R},M=(R,F)=>(R=Math.abs(R/F)/.003*(R<0?-1:1),R),H=R=>{if(!e.readonly){if(f.moving){const F=h.value,{transform:C}=window.getComputedStyle(F);f.scrollDistance=+C.slice(7,C.length-1).split(", ")[5]}f.startDistance=f.scrollDistance,m.start(R),f.transitionEndTrigger=null}},q=R=>{e.readonly||(f.moving=!0,m.move(R),m.isVertical()&&(f.moving=!0,Xh(R,!0)),g(m.deltaY.value,"",0))},j=()=>{if(e.readonly)return;const R=m.deltaY.value,F=m.duration.value;if(F<Yh&&Math.abs(R)>Kh){const T=M(R,F);g(T,"end",e.swipeDuration)}else g(R,"end",0)};return t.watch(()=>e.modelValue,R=>{if(f.currIndex!==R){f.currIndex=R;const F=-R*e.itemHeight;g(F)}}),t.onMounted(()=>{const R=-e.modelValue*e.itemHeight;g(R)}),{classes:a,styles:l,contentClasses:o,source:v,itemText:B,itemValue:y,...t.toRefs(f),roller:h,getItemText:Ye,onTouchStart:H,onTouchMove:q,onTouchEnd:j,isHidden:i,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:p}}}),Qh={key:1,class:"fox-picker__item-tile"};function Jh(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(i,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u+1)}]),style:t.normalizeStyle(e.setRollerStyle(u+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",Qh,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const em=ke(Zh,[["render",Jh]]),{create:tm,componentName:nm,scope:lm}=re("picker"),am=tm({components:{PickerColumn:em,Popup:ot},props:{...Rl},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:l}=ve.useFoxI18n(lm),o=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(_h());t.watch(()=>e.visible,C=>{C&&i.value<=0&&setTimeout(()=>{if(r.value){const T=Ml(r.value);i.value=T.height,Ph(i.value)}},50)});const u=t.computed(()=>({[nm]:!0})),s=jh(),d=t.ref("singleColumn");let h=t.ref([]);t.watch([()=>e.source,()=>e.params],async([C,T])=>{if(C){let z=await s.load("select",C,T);if(z.length>0){let D=z[0];if(Array.isArray(D)){if(typeof D[0]=="string"){let I=z,k=[];I.forEach(K=>{let _=K.map(G=>hr(G));k.push(_)}),h.value=k}else h.value=z;d.value="multipleColumn"}else if(typeof D=="string"){let I=z,k=[],K=I.map(_=>hr(_));k.push(K),h.value=k,d.value="singleColumn"}else{const I=Pl(e,D);Array.isArray(I)?(d.value="cascade",h.value=[z]):(d.value="singleColumn",h.value=[z])}}else h.value=[]}},{immediate:!0});const f=t.ref([]),v=t.ref(e.modelValue),B=t.ref([]),y=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([C,T])=>{let z=Hh(e,C,T,d.value);if(!Le(z,y.value)){y.value=z;let D=dr(e,z,T,d.value);D&&(f.value=D.texts,n("update:text",f.value))}});const m=t.ref(e.visible);t.watch(()=>e.visible,C=>{m.value=C});const p=C=>{let T=cr(e,C);return Me(T)?T.defaultIndex??0:0},S=C=>{if(e.readonly===!0)return!0;let T=cr(e,C);return Me(T)?T.readonly??!1:!1},g=(C,T)=>{let z=y.value;z[C]=T;for(let I=0;I<C;I++)z[I]==null&&(z[I]=p(I));if(d.value==="cascade")for(let I=C+1;I<M.value.length;I++){let k=p(I);I<z.length?z[I]=k:z.push(k)}else for(let I=z.length;I<M.value.length;I++){let k=p(I);z.push(k)}y.value=z;let D=dr(e,z,h.value,d.value);D&&(f.value=D.texts,v.value=D.values,B.value=D.items)},c=C=>C<y.value.length?y.value[C]:p(C),M=t.computed(()=>{if(h.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return h.value;let C=[],T=0,z=h.value[0],D=0;for(;;){let I=z.map(_=>{let G=Object.assign({},_);return qh(e,G,null),G});C.push(I),T>=y.value.length?D=0:D=y.value[T],(D<0||D>=z.length)&&(D=0);let k=z[D];const K=Pl(e,k);if(!Array.isArray(K))break;z=K,T++}return C}),H=t.computed(()=>he(+e.visibleItemCount-1)/2*i.value);return{...o,pickerLineRef:r,classes:u,columns:M,dataType:d,show:m,itemHeight:i,top:H,isReadonly:S,getIndex:c,change:(C,T)=>{g(C,T)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let C=h.value.length-1;for(;C>=0&&!(y.value[C]===null||y.value[C]===void 0);C--);if(C>=0&&g(C,0),d.value==="singleColumn"){let T=v.value.length>0?v.value[0]:"",z=B.value.length>0?B.value[0]:null;e.readonly||(n("update:modelValue",T),n("update:text",f.value),n("change",T,z)),n("confirm",T)}else e.readonly||(n("update:modelValue",v.value),n("update:text",f.value),n("change",v.value,B.value)),n("confirm",v.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}d.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),om={class:"fox-picker__bar"},rm={class:"fox-picker__title"},im={class:"fox-picker__bar__action"},sm={class:"fox-picker__column"};function um(e,n,a,l,o,r){const i=t.resolveComponent("PickerColumn"),u=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(u,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",om,[t.createElementVNode("view",rm,t.toDisplayString(e.title),1),t.createElementVNode("view",im,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...s)=>e.close&&e.close(...s))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...s)=>e.clear&&e.clear(...s))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",sm,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(s,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(i,{source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":h=>e.change(d,h),"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},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const Rt=ke(am,[["render",um]]),mr={...Rl,placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function cm(e,n,a){return{props:{...be,...Ce,...mr},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=e,v=t.computed(()=>({[f]:!0})),B=Ee(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>({textAlign:B.value??"right"})),m=de(l,"modelValue"),p=t.ref([]),S=t.computed(()=>Array.isArray(p.value)?p.value.join(" "):p.value),g=t.ref(!1),c=()=>{g.value=!0},M=k=>{g.value=k},H=k=>{m.value=k,u("update:modelValue",k)},q=k=>{p.value=k,Array.isArray(k)&&k.length===0?u("update:text",k[0]):u("update:text",k)},j=(k,K)=>{u("change",k,K)};let R=de(l,"hintText"),F=t.ref(!1);const C=k=>{let _=k.target.value;h.value=!0,ge(R.value)||(F.value=!0),u("focus",_,k)},T=k=>{setTimeout(()=>{F.value&&(F.value=!1),h.value=!1},0);let _=k.target.value;l.maxLength&&_.length>Number(l.maxLength)&&(_=_.slice(0,Number(l.maxLength))),g.value?setTimeout(()=>{u("blur",_,k)},50):u("blur",_,k)},z=()=>{u("clear","")},D=t.computed(()=>qe(l.unit)>0),I=t.ref();return pe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},select:()=>{I?.value.select()}}),()=>{const k={class:v.value,style:y.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,clearable:ue(l.clearable),readonly:!0,value:S.value,onClick:c,onFocus:C,onBlur:T},K={};o.slots.prepend&&(K.prepend=o.slots.prepend),o.slots.append&&(K.append=o.slots.append),o.slots.prefix&&(K.prefix=o.slots.prefix),o.slots.suffix?K.suffix=o.slots.suffix:D.value?K.suffix=()=>[l.unit]:K.suffix=()=>t.h(A.ElIcon,{},{default:()=>t.h(Se.ArrowDown)});const _=[],G=t.h(A.ElInput,k,K);_.push(G);const W={default:()=>_};o.slots.default&&(W.label=o.slots.default),o.slots.fixedTip&&(W.fixedTip=o.slots.fixedTip);const X=ut(l,Rl);X.disabled=!1,X.readonly=r.value||i.value,X.visible=g.value,X["onUpdate:visible"]=M,X.modelValue=m.value,X["onUpdate:modelValue"]=H,X.text=p.value,X["onUpdate:text"]=q,X.onClear=z,X.onChange=j;const J=t.h(Rt,X);W.hide=()=>[J];const x={...De(l,mr),hintText:R.value,hintVisible:F.value,prop:`${l.prop??o.attrs.name}_item`};return t.h(a,x,W)}}}}const{componentName:fm,create:dm,scope:hm}=re("picker-item"),ql=dm(cm(fm,hm,we)),mm={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function gm(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function gr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function yr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function ym(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function zl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function pr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function br(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function jl(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}class pm{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[l]);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(o,null,[a,l]))}}function bm(){const e=t.getCurrentInstance();return new pm(e.proxy)}function vm(e,n,a,l){return{props:{...mm},emits:["update:modelValue","change","loaded-data"],setup(o,{slots:r,emit:i}){const u=e,s=bm(),d=t.ref([]),h=t.computed(()=>d.value.filter(x=>ym(o,x)!==!1)),f=t.ref(-1),v=()=>{const x=o.modelValue,O=h.value.findIndex(L=>gr(o,L)===x);f.value!==O&&(f.value=O,o.scroll&&J(O,!1))};t.watch([()=>o.modelValue,h],()=>{v()});const B=x=>f.value===x,y=x=>{if(x<0&&x>=h.value.length)return!1;const O=h.value[x],$=(jl(o,O,x)??{}).status??zl(o,O);return B(x)||$},m=t.computed(()=>{const x={[u]:!0};return o.mode?x[`is-${o.mode}`]=!0:o.direction&&(x[`is-${o.direction}`]=!0),o.scroll&&(x["is-scroll"]=!0),x}),p=t.computed(()=>({})),S=(x,O,L,$,U)=>{const Q={[`${u}__step`]:!0};return U&&(Q[`${U}`]=!0),Q[`${g.value}`]=!0,$&&(Q["is-doit"]=!0),x===f.value?Q["is-active"]=!0:O==="done"?Q["is-done"]=!0:O==="error"?Q["is-error"]=!0:O==="half"?Q["is-half"]=!0:L?Q["is-disabled"]=!0:Q["is-normal"]=!0,Q},g=t.computed(()=>{if(o.mode==="simple")return"start";let x=o.align;return x||(o.direction==="vertical"?x="start":x="center"),x}),c=(x,O={})=>{const L={...O};return g.value==="start"&&x===h.value.length-1?L.flex="0 0 auto":o.step?o.direction==="vertical"?L.height=o.step:L.width=o.step:L.flex="1 1 100%",L},M=(x,O)=>{let L={};if(O<h.value.length-1){const $=O+1;y(O)&&y($)?o.direction==="vertical"?L.height="100%":L.width="100%":L.opacity="0"}return L},H=x=>h.value.length-1===x,q=(x,O)=>{if(o.clickNavigatePolicy==="disabled"||(o.clickNavigatePolicy==="only-back"||o.clickNavigatePolicy==="only-back-reset")&&O>f.value||f.value===O)return;const L=f.value,$=O;f.value=O,o.scroll&&J(O,!1);const U=gr(o,x);i("update:modelValue",U);const Q={fromIndex:L,currentIndex:$,item:x,items:h.value,clickNavigatePolicy:o.clickNavigatePolicy};i("change",U,Q)},j=t.ref(!0),R=async(x,O)=>{try{const L=await s.load("stesbar",x,O);Array.isArray(L)&&(d.value=L),j.value=!1}catch(L){console.error("[FoxUI] Load StepsBar Data Fail",L),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>o.data,()=>o.params],async([x,O])=>{x&&R(x,O)},{immediate:!0});const F=(x,O,L,$,U)=>{let Q=null;if(r.icon)Q=r.icon({item:x,index:O,status:$});else if($==="done"){const V={};o.iconSize&&(V.width=o.iconSize,V.height=o.iconSize);const P=o.icon??a;Q=t.h(P,V)}else{const V=L??`${O+1}`;Q=t.h("span",{},[V])}const N={class:"fox-steps-bar__icon",onClick:()=>{U||q(x,O)}};return t.h("view",N,[Q])},C=(x,O,L)=>{const $=t.h("i",{class:"fox-steps-bar__line-inner",style:M(x,O)});return t.h("view",{class:"fox-steps-bar__line"},[$])},T=()=>{let x=null;if(r.markIcon)x=r.markIcon();else{const L={};o.iconSize&&(L.width=o.markIconSize,L.height=o.markIconSize);const $=o.markIcon??l;x=t.h($,L)}return t.h("view",{class:"fox-steps-bar__mark"},[x])},z=(x,O,L,$,U)=>{const Q=[];if(!H(O)){const P=C(x,O);Q.push(P)}const N=F(x,O,L,$,U);Q.push(N);const V={class:"fox-steps-bar__head"};return t.h("view",V,Q)},D=(x,O,L,$)=>{let U=null;r.main?U=r.main({item:x,index:O,status:L}):U=gm(o,x);const Q={class:"fox-steps-bar__main",onClick:()=>{$||q(x,O)}};return t.h("view",Q,[U])},I=(x,O,L)=>{let $=null;if(r.sub){$=r.sub({item:x,index:O,status:L});const U={class:"fox-steps-bar__sub"};return t.h("view",U,[$])}return null},k=(x,O)=>{const L=jl(o,x,O)??{},$=L.status??zl(o,x);let U=yr(o,x);L.disabled===!0&&(U=!0),o.disabled===!0&&(U=!0);const Q=L.label??br(o,x),N=[],V=F(x,O,Q,$,U);V&&N.push(V);const P=D(x,O,$,U);if(P&&N.push(P),!H(O)){const ne=C(x,O);ne&&N.push(ne)}const Y=t.h("view",{class:"fox-steps-bar__head"},N),te=L.class,le=L.style??{};let E=pr(o,x);L.doit===!0&&(E=!0);const Z={ref:X(O),class:S(O,$,U,E,te),style:c(O,le)};return t.h("view",Z,[Y])},K=(x,O)=>{const L=jl(o,x,O)??{},$=L.status??zl(o,x);let U=yr(o,x);L.disabled===!0&&(U=!0),o.disabled===!0&&(U=!0);const Q=L.label??br(o,x),N=[],V=o.layout;for(let E of V)if(E==="head"){const Z=z(x,O,Q,$,U);N.push(Z)}else if(E==="main"){const Z=D(x,O,$,U);N.push(Z)}else if(E==="sub"){const Z=I(x,O,$);N.push(Z)}else if(E==="mark"){const Z=T();N.push(Z)}const P=L.class,Y=L.style??{};let te=pr(o,x);L.doit===!0&&(te=!0);const le={ref:X(O),class:S(O,$,U,te,P),style:c(O,Y)};return t.h("view",le,N)},_=t.ref(),G=t.ref([]),W=(x,O)=>{G.value[O]=x},X=x=>O=>{W(O,x)},J=(x,O)=>{const L=_.value,$=G.value;if(!L||!$||!$[x])return;const U=$[x];let Q=0;o.direction==="vertical"?Q=U.offsetTop-(L.offsetHeight-U.offsetHeight)/2:Q=U.offsetLeft-(L.offsetWidth-U.offsetWidth)/2,w(L,Q,O?0:.3,o.direction)},w=(x,O,L,$)=>{let U=0;const Q=$==="horizontal"?x.scrollLeft:x.scrollTop,N=L===0?1:Math.round(L*1e3/16);function V(){$==="horizontal"?x.scrollLeft+=(O-Q)/N:x.scrollTop+=(O-Q)/N,++U<N&&_n(V)}V()};return()=>{const x=[];if(o.mode==="simple")for(let L=0;L<h.value.length;L++){const $=h.value[L],U=k($,L);x.push(U)}else for(let L=0;L<h.value.length;L++){const $=h.value[L],U=K($,L);x.push(U)}const O={ref:_,class:m.value,style:p.value};return t.h("view",O,x)}}}}const{componentName:wm,create:Sm,scope:xm}=re("steps-bar"),Hl=Sm(vm(wm,xm,wo,Bu)),vr=new Date().getFullYear(),Tm={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},wr=(e,n,a)=>{let l;if(Ze(n)?l=n:typeof n=="string"&&qe(n)>0?l=ae.parser(n,a):l=new Date,l.toString()==="Invalid Date")return null;let o=Math.max(l.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),new Date(o)},Cm=(e,n,a)=>{Ze(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),ae.format(new Date(l),a)};let $m={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},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(vr-10,0,1),validator:Ze},maxDate:{type:Date,default:()=>new Date(vr+10,11,31),validator:Ze},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:km,scope:Dm}=re("date-picker"),Nm=km({components:{Picker:Rt},props:{...$m},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=ve.useFoxI18n(Dm),l={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},o=t.ref(!1);t.watch(()=>e.visible,S=>{o.value=S});function r(S,g){return new Date(S,g,0).getDate()}const i=(S,g)=>{const c=e[`${S}Date`],M=c.getFullYear();let H=1,q=1,j=0,R=0;S==="max"&&(H=12,q=r(g.getFullYear(),g.getMonth()+1),j=23,R=59);const F=R;return g.getFullYear()===M&&(H=c.getMonth()+1,g.getMonth()+1===H&&(q=c.getDate(),g.getDate()===q&&(j=c.getHours(),g.getHours()===j&&(R=c.getMinutes())))),{[`${S}Year`]:M,[`${S}Month`]:H,[`${S}Date`]:q,[`${S}Hour`]:j,[`${S}Minute`]:R,[`${S}Seconds`]:F}},u=t.computed(()=>{if(!v.value)return[];const{maxYear:S,maxDate:g,maxMonth:c,maxHour:M,maxMinute:H,maxSeconds:q}=i("max",v.value),{minYear:j,minDate:R,minMonth:F,minHour:C,minMinute:T,minSeconds:z}=i("min",v.value);let D=[{type:"year",range:[j,S]},{type:"month",range:[F,c]},{type:"day",range:[R,g]},{type:"hour",range:[C,M]},{type:"minute",range:[T,H]},{type:"seconds",range:[z,q]}];switch(e.type){case"date":D=D.slice(0,3);break;case"datetime":D=D.slice(0,5);break;case"time":D=D.slice(3,6);break;case"year-month":D=D.slice(0,2);break;case"month-day":D=D.slice(1,3);break;case"datehour":D=D.slice(0,4);break;case"hour-minute":D=D.slice(3,5);break}return D}),s=(S,g,c)=>{if(!(g>S))return null;const M=[];for(;S<=g;)e.isShowChinese?M.push({text:S+l[c],value:S}):M.push({text:`${S}`,value:S}),c==="minute"?S+=e.minuteStep:S++;return M},d=t.computed(()=>{let S=[];return u.value.forEach(g=>{let c=s(g.range[0],g.range[1],g.type);c&&S.push(c)}),S}),h=(S,g)=>S==="year"?g.getFullYear():S==="month"?g.getMonth()+1:S==="day"?g.getDate():S==="hour"?g.getHours():S==="minute"?g.getMinutes():S==="seconds"?g.getSeconds():0,f=t.ref(),v=t.ref(null);t.watchEffect(()=>{let S,g=e.modelValue;if(typeof g=="string"?g.length==0?S=new Date:e.valueFormat?S=wr(e,e.modelValue,e.valueFormat):S=wr(e,g,Tm[e.type]):Ze(g)?S=g:S=new Date,!!S&&(!v.value||S.getTime()!==v.value.getTime())){v.value=S;let c=[];u.value.forEach(M=>{let H=h(M.type,S);c.push(H)}),f.value=c}});const B=S=>{if(e.type==="date"){let g=S;v.value=new Date(g[0],g[1]-1,Math.min(g[2],r(g[0],g[1])))}else if(e.type==="datetime"){let g=S;v.value=new Date(g[0],g[1]-1,Math.min(g[2],r(g[0],g[1])),g[3],g[4])}else if(e.type==="time"){let g=S,c=v.value??new Date,M=new Date(c.getFullYear(),c.getMonth(),c.getDate(),g[0],g[1],g[2]);v.value=M}else if(e.type==="year-month"){let g=S,c=new Date(g[0],g[1]-1);v.value=c}else if(e.type==="month-day"){let g=S,c=v.value??new Date,M=new Date(c.getFullYear(),g[0]-1,g[1]);v.value=M}else if(e.type==="datehour"){let g=S;v.value=new Date(g[0],g[1]-1,Math.min(g[2],r(g[0],g[1])),g[3])}else if(e.type==="hour-minute"){let g=S,c=v.value??new Date,M=new Date(c.getFullYear(),c.getMonth(),c.getDate(),g[0],g[1]);v.value=M}f.value=S};return{columns:d,dateIndexs:f,show:o,onClose:()=>{o.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:S=>{B(S),o.value=!1;let g=v.value??new Date;if(e.valueFormat){let c=Cm(e,g,e.valueFormat);n("update:modelValue",c)}else n("update:modelValue",g);n("update:visible",!1),n("confirm",S)},onClear:()=>{n("clear")}}}});function Em(e,n,a,l,o,r){const i=t.resolveComponent("Picker");return t.openBlock(),t.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Kl=ke(Nm,[["render",Em]]),Im=Symbol.for("InnerPageScopeKey"),Vm=Symbol.for("PageWrapperKey");function Om(e,n){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(a,l){t.provide(Im,!0);const o={};t.provide(Vm,o);const r=s=>{typeof o.beforeClose=="function"&&o.beforeClose()},i=t.ref(!0),u=s=>{i.value=s};return()=>{const d={...l.attrs,title:a.title,draggable:a.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":r},h={};if(typeof l.slots.default=="function"){const f=l.slots.default();h.default=()=>f}return t.h(A.ElDialog,d,h)}}}}const{componentName:my,create:Am,scope:gy}=re("dialog-item"),Yl=Am(Om()),{create:Fm}=re("toast"),Bm=Fm({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const o=()=>{a&&(clearTimeout(a),a=null)},r=()=>{l.mounted=!1},i=()=>{o(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},u=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,B=>{B&&i()});const s=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const B=me(e.iconSize);return t.h(e.icon,{width:B,height:B,color:e.iconColor})},h=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),f=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:r,clickCover:u,renderIcon:d,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:f,onAfterLeave:()=>{o(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Rm={key:1,class:"fox-toast-title"},Mm=["innerHTML"];function Lm(e,n,a,l,o,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Rm,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Mm)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Wl=ke(Bm,[["render",Lm]]),_m={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},Pm=(e,n,a)=>({props:{..._m},emits:["change","refresh","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["pullingText","loosingText","loadingText"]),s=_l(),d=t.ref(),h=lr(d),f=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=t.computed(()=>({[e]:!0})),B=t.computed(()=>{switch(f.status){case"pulling":return r.pulling?"":u.pullingText.value;case"loosing":return r.loosing?"":u.loosingText.value;case"loading":return r.loading?"":u.loadingText.value;default:return""}}),y=t.computed(()=>({transitionDuration:`${l.duration}s`,transform:f.distance?`translate3d(0,${f.distance}px, 0)`:""})),m=t.computed(()=>{const j={};return l.headHeight!=50&&(j.height=Ae(l.headHeight)),j}),p=j=>{const R=+(l.pullDistance||l.headHeight);let F=j;return j>R&&(j<R*2?F=(j+R)/2:F=R+j/4),Math.round(F)},S=(j,R)=>{const F=+(l.pullDistance||l.headHeight);f.distance=j,R?f.status="loading":j===0?f.status="normal":j<F?f.status="pulling":f.status="loosing",o("change",{status:f.status,distance:j})},g=()=>f.status!=="loading"&&f.status!=="complete",c=()=>h.value==window?ar()==0:h.value&&h.value.scrollTop==0,M=j=>{g()&&(c()?(s.start(j),f.isPullRefresh=!0,f.moving=!0):(f.distance=0,f.isPullRefresh=!1))},H=j=>{g()&&f.moving&&(s.move(j),s.isVertical()&&s.state.deltaY>0&&f.isPullRefresh&&(j.cancelable&&j.preventDefault(),S(p(s.state.deltaY))))},q=()=>{f.moving=!1,f.isPullRefresh&&g()&&s.state.deltaY&&(f.status==="loosing"?(S(+l.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):S(0)),setTimeout(()=>{s.reset()},0)};return t.watch(()=>l.modelValue,j=>{j?S(+l.headHeight,!0):S(0)}),()=>{const j=[];let R=null;if(f.status==="loading"){if(R=r?.loading?.()??null,!R){const K={class:["fox-pull-refresh-container-topbox-icon"]};R=t.h(a,K)}}else f.status==="pulling"?R=r?.pulling?.()??null:f.status==="loosing"&&(R=r?.loosing?.()??null);R&&j.push(R);const F={class:["fox-pull-refresh-container-topbox-text"]},C=t.h("dive",F,[B.value]);j.push(C);const T={class:["fox-pull-refresh-container-topbox"],style:m.value},z=t.h("div",T,j),D={class:"fox-pull-refresh-container",style:y.value},I=t.h("div",D,[z,r?.default?.()]),k={ref:d,class:v.value};return Ll()?Object.assign(k,{onTouchstart:M,onTouchmove:H,onTouchend:q}):Object.assign(k,{onMousedown:M,onMousemove:H,onMouseup:q}),t.h("div",k,[I])}}}),{componentName:qm,create:zm,scope:jm}=re("pull-refresh"),Ul=zm(Pm(qm,jm,dn));function Hm(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(a,{slots:l}){const o=e,r=t.computed(()=>({[o]:!0})),i=t.computed(()=>a.icon?{[`${o}__icon`]:!0,[`${o}__icon-${a.type}`]:!0}:{[`${o}__mark`]:!0,[`${o}__mark-${a.type}`]:!0}),u=t.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),s=t.computed(()=>{const h={[`${o}__text`]:!0,[`${o}__text-${a.type}`]:!0};return a.textPosition==="left"?h["is-left"]=!0:h["is-right"]=!0,h}),d=t.computed(()=>a.color?{color:a.color}:null);return()=>{let h=null;if(l.mark)h=l.mark()[0];else{const m={class:i.value,style:u.value};h=t.h(a.icon??"div",m)}const f={class:s.value,style:d.value},v=l.default?l.default():[],B=t.h("div",f,v),y={class:r.value};return a.textPosition==="right"?t.h("div",y,[h,B]):t.h("div",y,[B,h])}}}}const{componentName:Km,create:Ym,scope:yy}=re("indicator"),Gl=Ym(Hm(Km));function Wm(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(o)},500)}const Um={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Gm(e,n,a,l=!1){return{props:{...Um},emits:["click"],setup(o,r){const i=t.ref(null),u=t.computed(()=>{const c={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(c[`${e}--${o.type??"default"}`]=!0),o.size&&(c[`${e}--${o.size}`]=!0),c}),s=t.computed(()=>{const c={},M=o.textColor??o.color;return M&&(c.color=M),c}),d=(c,M)=>{let H=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const q=o.highlightFilter;if(c.indexOf(q)!==-1){const R=c.replace(new RegExp(q,"g"),`<span>${q}</span>`);M.innerHTML=R,M.class["is-highlight"]=!0,H=t.h(o.tag,M)}}else if(typeof o.highlightFilter=="function"){const q=o.highlightFilter(c);q&&(M.innerHTML=q,M.class["is-highlight"]=!0,H=t.h(o.tag,M))}return H},h=c=>{r.emit("click",c)};let f="";const v=()=>{const c=i.value;if(!c)return;const M=c.clientWidth;Wm(c,H=>{const q=c.innerHTML??"";ge(q)||H<M||(f?a?.show(c,q,{type:"text",id:f,showArrow:o.showArrow},!0):f=a?.show(c,q,{type:"text",showArrow:o.showArrow},!0)??"")})},B=()=>{f&&a?.hide(f)};let y=null;const m=c=>{y||(y=setTimeout(()=>{v(),y=null},o.showAfter??0))},p=c=>{y&&(clearTimeout(y),y=null),setTimeout(()=>{B()},o.hideAfter??0)},S=()=>{const c=i.value;c&&(c.addEventListener("mouseover",m),c.addEventListener("mouseleave",p))},g=()=>{const c=i.value;c&&(c.removeEventListener("mouseover",m),c.removeEventListener("mouseleave",p))};return t.onMounted(()=>{!ue(o.showOverflowTooltip)||!a||S()}),t.onBeforeUnmount(()=>{!ue(o.showOverflowTooltip)||!a||g()}),()=>{const c={onClick:h,class:u.value,style:s.value,ref:i};let M=null;if(ue(o.numberFormat)&&typeof r.slots.default=="function"){const R=r.slots.default();if(Array.isArray(R)&&R.length===1){const F=R[0].type.toString();if(F==="Symbol(Text)"||F==="Symbol(v-txt)"){const C=he(o.digits),T=he(o.decimalLength),z=ue(o.autoPadding);let D=`${R[0].children}`,I=D.split("").reverse().join("");I=qt(I,T,z,C,o.separator),D=I.split("").reverse().join(""),o.highlightFilter!==void 0&&(M=d(D,c)),M||(c.innerHTML=D,M=t.h(o.tag,c))}}}else{if(o.highlightFilter!==void 0&&typeof r.slots.default=="function"){const R=r.slots.default();if(Array.isArray(R)&&R.length===1){const F=R[0].type.toString();if(F==="Symbol(Text)"||F==="Symbol(v-txt)"){const C=`${R[0].children}`;M=d(C,c),M||(c.innerHTML=C,M=t.h(o.tag,c))}}}M||(M=t.h(o.tag,c,{default:r.slots.default}))}if(!o.mark&&!o.icon&&!r.slots.mark)return M;let q=null;if(o.icon){const R={[`${e}__mark-wrap`]:!0};o.type&&(R[`${e}__mark-wrap--${o.type}`]=!0);const F={},C=o.color;C&&(F.color=C);const T={class:R,style:F};q=t.h("view",T,t.h(o.icon))}else if(r.slots.mark){const R={[`${e}__mark-wrap`]:!0};o.type&&(R[`${e}__mark-wrap--${o.type}`]=!0);const F={},C=o.color;C&&(F.color=C);const T={class:R,style:F};q=t.h("view",T,{default:r.slots.mark})}else{const R={[`${e}__mark`]:!0};o.type&&(R[`${e}__mark--${o.type??"default"}`]=!0);const F={},C=o.color;C&&(F["background-color"]=C);const T={class:R,style:F};q=t.h("view",T)}const j={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}};return t.h("view",j,[q,M])}}}}const{componentName:Xm,create:Zm,scope:Qm}=re("text"),Xl=Zm(Gm(Xm,Qm,Be,!1)),Jm={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Se.ArrowUp}};function eg(e,n,a){return{props:{...Jm},emits:["click","update:modelValue"],setup(l,{emit:o}){const r=t.computed(()=>{const f={[`${e}`]:!0};return l.disabled?f[`${e}__disabled`]=!0:f[`${e}__${l.type}`]=!0,f}),i=de(l,"modelValue"),u=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),h=()=>{o("update:modelValue",!i.value)};return()=>{const f=[];if(u.value){const m={class:s.value},p=t.h("span",m,[u.value]);f.push(p)}const v={class:d.value},B=a(l.icon,v);return B&&f.push(B),t.h("div",{class:r.value,onClick:h},f)}}}}const{componentName:tg,create:ng,scope:lg}=re("more-button"),Zl=ng(eg(tg,lg,(e,n)=>(e=e??Se.ArrowUp,t.h(A.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:ag,create:og,scope:by}=re("tour"),rg=og({components:{Close:Se.Close,ElPopover:A.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=ag,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),r=t.computed(()=>`${a}`),i=t.computed(()=>{const{offset:y,maskWidth:m,maskHeight:p}=e,{width:S,height:g,left:c,top:M}=o.value,H=e.steps[l.active].offset??y,q=[c+S/2,M+g/2],j=Number(m||S),R=Number(p||g);return{width:`${j+ +H.left+H.right}px`,height:`${R+H.top+H.bottom}px`,top:`${q[1]-R/2-+H.top}px`,left:`${q[0]-j/2-+H.left}px`}}),u=y=>{y=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,h()}),n("change",l.active)},s=y=>y.popoverWidth??e.width,d=y=>y.location??e.location,h=()=>{const y=document.querySelector(`${e.steps[l.active].target}`),m=Ml(y);o.value={x:m.left,y:m.top,top:m.top,left:m.left,width:m.width,height:m.height}},f=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&f()},B=(y,m=0)=>{y&&h(),e.steps,l.active=m,l.showTour=y,l.showPopup=y};return t.onMounted(()=>{B(e.modelValue,e.current)}),t.watch(()=>e.modelValue,y=>{B(y)}),{...t.toRefs(l),classes:r,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:d,close:f,handleClickMask:v}}}),ig={key:0,class:"fox-tour__content"},sg={key:0,class:"fox-tour__content-top"},ug={class:"fox-tour__content-inner"},cg={class:"fox-tour__content-bottom"},fg={class:"fox-tour__content-bottom-init"},dg={class:"fox-tour__content-bottom-operate"},hg={key:1,class:"fox-tour__content fox-tour__content-tile"},mg={class:"fox-tour__content-inner"};function gg(e,n,a,l,o,r){const i=t.resolveComponent("Close"),u=t.resolveComponent("fox-button"),s=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:{height:"0"}},[h==e.active?(t.openBlock(),t.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",ig,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",sg,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...f)=>e.close&&e.close(...f))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",ug,t.toDisplayString(d.content),1),t.createElementVNode("div",cg,[t.createElementVNode("div",fg,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",dg,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=f=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=f=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",hg,[t.createElementVNode("div",mg,t.toDisplayString(d.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const Ql=ke(rg,[["render",gg]]),Re=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,it=e=>e==null;class yg{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=Ll()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=_l(),l=(o,r,i,u)=>{this.updateMove({x:o,y:r})};this.touchstart=o=>{this.moving||(a.start(o),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=o=>{this.moving&&(a.move(o),l(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{l(a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},this.els.forEach(o=>{this.touchstart&&o.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Sr(e,n){return new yg(e,n)}var xr;const Jl=typeof window<"u";Jl&&((xr=window?.navigator)!=null&&xr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let vt=[];const Tr=e=>{const n=e;n.key==="Escape"&&vt.forEach(a=>a(n))},pg=e=>{t.onMounted(()=>{vt.length===0&&document.addEventListener("keydown",Tr),Jl&&vt.push(e)}),t.onBeforeUnmount(()=>{vt=vt.filter(n=>n!==e),vt.length===0&&Jl&&document.removeEventListener("keydown",Tr)})},ea="fox-focus-trap.focus-after-trapped",ta="fox-focus-trap.focus-after-released",bg="fox-focus-trap.focusout-prevented",Cr={cancelable:!0,bubbles:!1},vg={cancelable:!0,bubbles:!1},$r="foxFocusAfterTrapped",kr="foxFocusAfterReleased",wg=Symbol("foxFocusTrap"),na=t.ref(),$n=t.ref(0),la=t.ref(0);let kn=0;const Dr=e=>{const n=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)n.push(a.currentNode);return n},Sg=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Nr=(e,n)=>{for(const a of e)if(!Sg(a,n))return a},xg=e=>{const n=Dr(e),a=Nr(n,e),l=Nr(n.reverse(),e);return[a,l]},Tg=e=>e instanceof HTMLInputElement&&"select"in e,et=(e,n)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),la.value=window.performance.now(),e!==a&&Tg(e)&&n&&e.select()}};function Er(e,n){const a=[...e],l=e.indexOf(n);return l!==-1&&a.splice(l,1),a}const Cg=()=>{let e=[];return{push:l=>{const o=e[0];o&&l!==o&&o.pause(),e=Er(e,l),e.unshift(l)},remove:l=>{e=Er(e,l),e[0]?.resume?.()}}},$g=(e,n=!1)=>{const a=document.activeElement;for(const l of e)if(et(l,n),document.activeElement!==a)return},Ir=Cg(),kg=()=>$n.value>la.value,Dn=()=>{na.value="pointer",$n.value=window.performance.now()},Vr=()=>{na.value="keyboard",$n.value=window.performance.now()},Dg=()=>(t.onMounted(()=>{kn===0&&(document.addEventListener("mousedown",Dn),document.addEventListener("touchstart",Dn),document.addEventListener("keydown",Vr)),kn++}),t.onBeforeUnmount(()=>{kn--,kn<=0&&(document.removeEventListener("mousedown",Dn),document.removeEventListener("touchstart",Dn),document.removeEventListener("keydown",Vr))}),{focusReason:na,lastUserFocusTimestamp:$n,lastAutomatedFocusTimestamp:la}),Nn=e=>new CustomEvent(bg,{...vg,detail:e}),{componentName:vy,create:Ng,scope:wy}=re("focus-trap"),Eg=Ng({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[$r,kr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:a}){const l=t.ref();let o,r;const{focusReason:i}=Dg();pg(m=>{ue(e.trapped)&&!u.paused&&a("release-requested",m)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=m=>{if(!e.loop&&!ue(e.trapped)||u.paused)return;const{key:p,altKey:S,ctrlKey:g,metaKey:c,currentTarget:M,shiftKey:H}=m,{loop:q}=e,j=p==="Tab"&&!S&&!g&&!c,R=document.activeElement;if(j&&R){const F=M,[C,T]=xg(F);if(C&&T){if(!H&&R===T){const D=Nn({focusReason:i.value});a("focusout-prevented",D),D.defaultPrevented||(m.preventDefault(),q&&et(C,!0))}else if(H&&[C,F].includes(R)){const D=Nn({focusReason:i.value});a("focusout-prevented",D),D.defaultPrevented||(m.preventDefault(),q&&et(T,!0))}}else if(R===F){const D=Nn({focusReason:i.value});a("focusout-prevented",D),D.defaultPrevented||m.preventDefault()}}};t.provide(wg,{focusTrapRef:l,onKeydown:s}),t.watch(()=>e.focusTrapEl,m=>{m&&(l.value=m)},{immediate:!0}),t.watch([l],([m],[p])=>{m&&(m.addEventListener("keydown",s),m.addEventListener("focusin",f),m.addEventListener("focusout",v)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",f),p.removeEventListener("focusout",v))});const d=m=>{a($r,m)},h=m=>a(kr,m),f=m=>{const p=t.unref(l);if(!p)return;const S=m.target,g=m.relatedTarget,c=S&&p.contains(S);ue(e.trapped)||g&&p.contains(g)||(o=g),c&&a("focusin",m),!u.paused&&ue(e.trapped)&&(c?r=S:et(r,!0))},v=m=>{const p=t.unref(l);if(!(u.paused||!p))if(!e.escape&&ue(e.trapped)){const S=m.relatedTarget;!Hn(S)&&!p.contains(S)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const g=Nn({focusReason:i.value});a("focusout-prevented",g),g.defaultPrevented||et(r,!0)}},0)}else{const S=m.target;S&&p.contains(S)||a("focusout",m)}};async function B(){await t.nextTick();const m=t.unref(l);if(m){Ir.push(u);const p=m.contains(document.activeElement)?o:document.activeElement;if(o=p,!m.contains(p)){const g=new Event(ea,Cr);m.addEventListener(ea,d),m.dispatchEvent(g),g.defaultPrevented||t.nextTick(()=>{let c=e.focusStartEl;pa(c)||(et(c),document.activeElement!==c&&(c="first")),c==="first"&&$g(Dr(m),!0),(document.activeElement===p||c==="container")&&et(m)})}}}function y(){const m=t.unref(l);if(m){m.removeEventListener(ea,d);const p=new CustomEvent(ta,{...Cr,detail:{focusReason:i.value}});m.addEventListener(ta,h),m.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!kg())&&et(o??document.body,!0),m.removeEventListener(ta,d),Ir.remove(u)}}return t.onMounted(()=>{ue(e.trapped)&&B(),t.watch(()=>e.trapped,m=>{ue(m)?B():y()})}),t.onBeforeUnmount(()=>{ue(e.trapped)&&y()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:Ig,create:Vg,scope:xy}=re("floating-window"),Og=Symbol.for("InnerPageScopeKey"),Ag=Symbol.for("PageWrapperKey"),Fg={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Bg=Vg({inheritAttrs:!1,components:{FoxIcon:A.ElIcon,FocusTrap:Eg},props:{...Fg},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const a=Ig,l=t.ref(e.modelValue),o=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,E=>{l.value=E});const r=t.computed(()=>l.value===!1?!1:!R.value),i=t.ref(e.left),u=t.ref(e.top),s=t.ref(e.right),d=t.ref(e.bottom),h=t.computed(()=>{const E=["fox-floating-window"];return e.customClass&&E.push(e.customClass),E}),f=t.computed(()=>{const E={};return it(i.value)?E.left="auto":E.left=Re(i.value),it(u.value)?E.top="auto":E.top=Re(u.value),it(s.value)?E.right="auto":E.right=Re(s.value),it(d.value)?E.bottom="auto":E.bottom=Re(d.value),it(e.zIndex)||(E["z-index"]=Re(e.zIndex)),it(q.value)||(E.height=q.value),it(j.value)||(E.width=j.value),E}),v=t.computed(()=>e.closeIcon??Se.Close),B=t.computed(()=>e.collapseIcon??Se.ArrowUp),y=t.computed(()=>e.collapseText??""),m=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Se.ArrowRight:e.expandIcon??Se.ArrowLeft),p=t.computed(()=>e.expandText??e.title??"展开"),S=t.computed(()=>({[`${a}__collapse-text`]:!0})),g=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),c=t.ref(),M=t.ref(null),H=t.ref(null),q=t.computed(()=>Re(e.height)||""),j=t.computed(()=>Re(e.width)||""),R=t.ref(ue(e.collapse)),F=(E,Z=!0)=>{R.value!==E&&(R.value=E,E?x():O(),n("update:collapse",E),E&&typeof z.onHide=="function"?z.onHide():!E&&typeof z.onShow=="function"&&z.onShow())};t.watch(()=>e.collapse,E=>{F(E)});const C=()=>{T()},T=E=>{E=E??!R.value,F(E)};t.provide(Og,!0);const z={setCollapse:F,setFixedNavVisible:E=>{X.value=E}};t.provide(Ag,z);const D=()=>{typeof z.beforeClose=="function"?z.beforeClose(()=>{l.value=!1}):l.value=!1},I=t.ref(null),k=t.computed(()=>!e.fixedNavTeleport),K=t.computed(()=>{const E=["fox-floating-window__fixednav"];return e.expandClass&&E.push(e.expandClass),e.collapsePosition==="left"?E.push("is-left"):e.collapsePosition==="right"&&E.push("is-right"),E}),_=t.ref(""),G=t.computed(()=>{const E={};return _.value?E.top=_.value:e.collapseTop&&(E.top=e.collapseTop),E}),W=t.ref(R.value),X=t.computed({set:E=>{W.value=E},get:()=>l.value===!1?!1:W.value});let J=null;const w=()=>{typeof J=="function"&&(J(),J=null)},x=()=>{I.value&&I.value.classList.add("slide-in"),X.value=!0,J=()=>{I.value&&I.value.classList.remove("slide-in")}},O=()=>{I.value&&I.value.classList.add("slide-out"),J=()=>{I.value&&I.value.classList.remove("slide-out"),X.value=!1}},L=()=>{i.value=null,u.value=null,s.value=null,d.value=null},$={x:0,y:0},N=Sr(E=>{if(!c.value)return;const Z=c.value;if(L(),e.origin==="left-top")i.value=Z.offsetLeft,u.value=Z.offsetTop,$.x=i.value,$.y=u.value;else if(e.origin==="left-bottom"){const ne=document.documentElement.clientHeight||document.body.clientHeight;i.value=Z.offsetLeft,d.value=ne-(Z.offsetTop+Z.offsetHeight),$.x=i.value,$.y=d.value}else if(e.origin==="right-bottom"){const ne=document.documentElement.clientWidth||document.body.clientWidth,ie=document.documentElement.clientHeight||document.body.clientHeight;s.value=ne-(Z.offsetLeft+Z.offsetWidth),d.value=ie-(Z.offsetTop+Z.offsetHeight),$.x=s.value,$.y=d.value}else{const ne=document.documentElement.clientWidth||document.body.clientWidth;s.value=ne-(Z.offsetLeft+Z.offsetWidth),u.value=Z.offsetTop,$.x=s.value,$.y=u.value}},E=>{if(!c.value)return;const Z=c.value;L(),e.origin==="left-top"?(i.value=$.x+E.x,u.value=$.y+E.y,Z.style.left=Re(i.value),Z.style.top=Re(u.value)):e.origin==="left-bottom"?(i.value=$.x+E.x,d.value=$.y-E.y,Z.style.left=Re(i.value),Z.style.bottom=Re(d.value)):e.origin==="right-bottom"?(s.value=$.x-E.x,d.value=$.y-E.y,Z.style.right=Re(s.value),Z.style.bottom=Re(d.value)):(s.value=$.x-E.x,u.value=$.y+E.y,Z.style.right=Re(s.value),Z.style.top=Re(u.value))}),V={x:0,y:0},te=Sr(E=>{I.value&&(V.x=I.value.offsetLeft,V.y=I.value.offsetTop)},E=>{if(!I.value)return;const Z=V.y+E.y;_.value=`${Z}px`}),le=()=>{if(c.value){const E=c.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");H.value=E}};return t.onMounted(()=>{if(e.draggable&&c.value){const E=[];M.value&&E.push(M.value),e.footerDraggable&&(le(),H.value&&E.push(H.value)),N.open(E)}e.collapse===!0&&F(e.collapse,!1),I.value&&te.open(I.value)}),t.onBeforeUnmount(()=>{e.draggable&&M.value&&N.close(),I.value&&te.close()}),{classes:h,styles:f,isShow:r,closeIcon:v,onClose:D,dialogRef:c,headerRef:M,onClickToggle:C,collapseIcon:B,collapseText:y,collapseTextClasses:S,collapseIconClasses:g,expandIcon:m,expandText:p,isShowFixedNav:X,fixedNavRef:I,fixedNavClasses:K,fixedNavStyles:G,onAnimationEnd:w,teleportDisabled:o,fixedNavTeleportDisabled:k}}}),Rg={ref:"headerRef",class:"fox-floating-window__header"},Mg={class:"fox-floating-window__title"},Lg={class:"fox-floating-window__tools"},_g={class:"fox-floating-window__body"},Pg={class:"fox-floating-window__fixednav__text"};function qg(e,n,a,l,o,r){const i=t.resolveComponent("FoxIcon"),u=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",Rg,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Mg,t.toDisplayString(e.title),1),t.createElementVNode("div",Lg,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",_g,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Pg,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const aa=ke(Bg,[["render",qg]]);function zg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:l}){return Ra(a.name,()=>a.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:Ty,create:jg,scope:Cy}=re("domain-provider"),oa=jg(zg()),Hg={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Kg(e,n){return{inheritAttrs:!1,props:Hg,setup(a,{slots:l}){if(lt&&window.IntersectionObserver){const o=new WeakMap;let r=new Map;const i=(v,B)=>{if(h===null){r.set(v,{visible:null,callback:B});return}o.has(v)&&h.unobserve(v),o.set(v,{visible:null,callback:B}),h.observe(v)},u=v=>{if(h===null){r.delete(v);return}o.has(v)&&(o.delete(v),h.unobserve(v))};let s=a.initialVisibleObserverSize;Mi({acquire:()=>{const v=s>0;return s--,v},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:i,unobserve:u});let h=null;const f=(v,B,y)=>{h=new IntersectionObserver(m=>{for(let p of m){let S=!1;p.intersectionRatio>0&&(S=!0);const g=o.get(p.target);if(g)try{if(a.loadPolicy==="lazy"&&!S&&g.visible!==null)return;g.visible=S,g.callback(S)}catch(c){console.error(c)}}},{root:v,rootMargin:B,threshold:y}),r.forEach((m,p)=>{o.set(p,m),h?.observe(p)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([v,B])=>{if(B||!v||h)return;let y=null;typeof v=="string"?y=document.querySelector(v):y=v,y&&f(y,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:$y,create:Yg,scope:ky}=re("rolling-provider"),ra=Yg(Kg()),Wg=[Zn,Jn,el,tl,al,we,il,sl,Nt,ul,cl,fl,gl,yl,pl,bl,vl,Sl,xl,Tl,Cl,wn,Dl,Nl,El,Il,Vl,Ol,Al,Cn,Bl,ql,yn,pn,bn,Hl,Rt,Kl,hn,vn,Yl,fn,ot,Wl,Tn,xn,Ul,Ft,un,Gl,Xl,Zl,Ql,aa,oa,ra],Ug=new mi(Wg,[pi],"4.0.0");Object.defineProperty(b,"FoxAffix",{enumerable:!0,get:()=>A.ElAffix}),Object.defineProperty(b,"FoxAlert",{enumerable:!0,get:()=>A.ElAlert}),Object.defineProperty(b,"FoxAside",{enumerable:!0,get:()=>A.ElAside}),Object.defineProperty(b,"FoxAutoResizer",{enumerable:!0,get:()=>A.ElAutoResizer}),Object.defineProperty(b,"FoxAutocomplete",{enumerable:!0,get:()=>A.ElAutocomplete}),Object.defineProperty(b,"FoxAvatar",{enumerable:!0,get:()=>A.ElAvatar}),Object.defineProperty(b,"FoxBacktop",{enumerable:!0,get:()=>A.ElBacktop}),Object.defineProperty(b,"FoxBadge",{enumerable:!0,get:()=>A.ElBadge}),Object.defineProperty(b,"FoxBreadcrumb",{enumerable:!0,get:()=>A.ElBreadcrumb}),Object.defineProperty(b,"FoxBreadcrumbItem",{enumerable:!0,get:()=>A.ElBreadcrumbItem}),Object.defineProperty(b,"FoxButton",{enumerable:!0,get:()=>A.ElButton}),Object.defineProperty(b,"FoxButtonGroup",{enumerable:!0,get:()=>A.ElButtonGroup}),Object.defineProperty(b,"FoxCalendar",{enumerable:!0,get:()=>A.ElCalendar}),Object.defineProperty(b,"FoxCard",{enumerable:!0,get:()=>A.ElCard}),Object.defineProperty(b,"FoxCarousel",{enumerable:!0,get:()=>A.ElCarousel}),Object.defineProperty(b,"FoxCarouselItem",{enumerable:!0,get:()=>A.ElCarouselItem}),Object.defineProperty(b,"FoxCascader",{enumerable:!0,get:()=>A.ElCascader}),Object.defineProperty(b,"FoxCascaderPanel",{enumerable:!0,get:()=>A.ElCascaderPanel}),Object.defineProperty(b,"FoxCheckTag",{enumerable:!0,get:()=>A.ElCheckTag}),Object.defineProperty(b,"FoxCheckbox",{enumerable:!0,get:()=>A.ElCheckbox}),Object.defineProperty(b,"FoxCheckboxButton",{enumerable:!0,get:()=>A.ElCheckboxButton}),Object.defineProperty(b,"FoxCheckboxGroup",{enumerable:!0,get:()=>A.ElCheckboxGroup}),Object.defineProperty(b,"FoxCol",{enumerable:!0,get:()=>A.ElCol}),Object.defineProperty(b,"FoxCollapse",{enumerable:!0,get:()=>A.ElCollapse}),Object.defineProperty(b,"FoxCollapseItem",{enumerable:!0,get:()=>A.ElCollapseItem}),Object.defineProperty(b,"FoxCollapseTransition",{enumerable:!0,get:()=>A.ElCollapseTransition}),Object.defineProperty(b,"FoxColorPicker",{enumerable:!0,get:()=>A.ElColorPicker}),Object.defineProperty(b,"FoxConfigProvider",{enumerable:!0,get:()=>A.ElConfigProvider}),Object.defineProperty(b,"FoxContainer",{enumerable:!0,get:()=>A.ElContainer}),Object.defineProperty(b,"FoxDatePicker",{enumerable:!0,get:()=>A.ElDatePicker}),Object.defineProperty(b,"FoxDescriptions",{enumerable:!0,get:()=>A.ElDescriptions}),Object.defineProperty(b,"FoxDescriptionsItem",{enumerable:!0,get:()=>A.ElDescriptionsItem}),Object.defineProperty(b,"FoxDialog",{enumerable:!0,get:()=>A.ElDialog}),Object.defineProperty(b,"FoxDivider",{enumerable:!0,get:()=>A.ElDivider}),Object.defineProperty(b,"FoxDrawer",{enumerable:!0,get:()=>A.ElDrawer}),Object.defineProperty(b,"FoxDropdown",{enumerable:!0,get:()=>A.ElDropdown}),Object.defineProperty(b,"FoxDropdownItem",{enumerable:!0,get:()=>A.ElDropdownItem}),Object.defineProperty(b,"FoxDropdownMenu",{enumerable:!0,get:()=>A.ElDropdownMenu}),Object.defineProperty(b,"FoxEmpty",{enumerable:!0,get:()=>A.ElEmpty}),Object.defineProperty(b,"FoxFooter",{enumerable:!0,get:()=>A.ElFooter}),Object.defineProperty(b,"FoxForm",{enumerable:!0,get:()=>A.ElForm}),Object.defineProperty(b,"FoxFormItem",{enumerable:!0,get:()=>A.ElFormItem}),Object.defineProperty(b,"FoxHeader",{enumerable:!0,get:()=>A.ElHeader}),Object.defineProperty(b,"FoxIcon",{enumerable:!0,get:()=>A.ElIcon}),Object.defineProperty(b,"FoxImage",{enumerable:!0,get:()=>A.ElImage}),Object.defineProperty(b,"FoxImageViewer",{enumerable:!0,get:()=>A.ElImageViewer}),Object.defineProperty(b,"FoxInput",{enumerable:!0,get:()=>A.ElInput}),Object.defineProperty(b,"FoxInputNumber",{enumerable:!0,get:()=>A.ElInputNumber}),Object.defineProperty(b,"FoxLink",{enumerable:!0,get:()=>A.ElLink}),Object.defineProperty(b,"FoxMain",{enumerable:!0,get:()=>A.ElMain}),Object.defineProperty(b,"FoxMenu",{enumerable:!0,get:()=>A.ElMenu}),Object.defineProperty(b,"FoxMenuItem",{enumerable:!0,get:()=>A.ElMenuItem}),Object.defineProperty(b,"FoxMenuItemGroup",{enumerable:!0,get:()=>A.ElMenuItemGroup}),Object.defineProperty(b,"FoxOption",{enumerable:!0,get:()=>A.ElOption}),Object.defineProperty(b,"FoxOptionGroup",{enumerable:!0,get:()=>A.ElOptionGroup}),Object.defineProperty(b,"FoxPageHeader",{enumerable:!0,get:()=>A.ElPageHeader}),Object.defineProperty(b,"FoxPagination",{enumerable:!0,get:()=>A.ElPagination}),Object.defineProperty(b,"FoxPopconfirm",{enumerable:!0,get:()=>A.ElPopconfirm}),Object.defineProperty(b,"FoxPopover",{enumerable:!0,get:()=>A.ElPopover}),Object.defineProperty(b,"FoxPopper",{enumerable:!0,get:()=>A.ElPopper}),Object.defineProperty(b,"FoxProgress",{enumerable:!0,get:()=>A.ElProgress}),Object.defineProperty(b,"FoxRadio",{enumerable:!0,get:()=>A.ElRadio}),Object.defineProperty(b,"FoxRadioButton",{enumerable:!0,get:()=>A.ElRadioButton}),Object.defineProperty(b,"FoxRadioGroup",{enumerable:!0,get:()=>A.ElRadioGroup}),Object.defineProperty(b,"FoxRate",{enumerable:!0,get:()=>A.ElRate}),Object.defineProperty(b,"FoxResult",{enumerable:!0,get:()=>A.ElResult}),Object.defineProperty(b,"FoxRow",{enumerable:!0,get:()=>A.ElRow}),Object.defineProperty(b,"FoxScrollbar",{enumerable:!0,get:()=>A.ElScrollbar}),Object.defineProperty(b,"FoxSelect",{enumerable:!0,get:()=>A.ElSelect}),Object.defineProperty(b,"FoxSelectV2",{enumerable:!0,get:()=>A.ElSelectV2}),Object.defineProperty(b,"FoxSkeleton",{enumerable:!0,get:()=>A.ElSkeleton}),Object.defineProperty(b,"FoxSkeletonItem",{enumerable:!0,get:()=>A.ElSkeletonItem}),Object.defineProperty(b,"FoxSlider",{enumerable:!0,get:()=>A.ElSlider}),Object.defineProperty(b,"FoxSpace",{enumerable:!0,get:()=>A.ElSpace}),Object.defineProperty(b,"FoxStep",{enumerable:!0,get:()=>A.ElStep}),Object.defineProperty(b,"FoxSteps",{enumerable:!0,get:()=>A.ElSteps}),Object.defineProperty(b,"FoxSubMenu",{enumerable:!0,get:()=>A.ElSubMenu}),Object.defineProperty(b,"FoxSwitch",{enumerable:!0,get:()=>A.ElSwitch}),Object.defineProperty(b,"FoxTabPane",{enumerable:!0,get:()=>A.ElTabPane}),Object.defineProperty(b,"FoxTable",{enumerable:!0,get:()=>A.ElTable}),Object.defineProperty(b,"FoxTableColumn",{enumerable:!0,get:()=>A.ElTableColumn}),Object.defineProperty(b,"FoxTableV2",{enumerable:!0,get:()=>A.ElTableV2}),Object.defineProperty(b,"FoxTabs",{enumerable:!0,get:()=>A.ElTabs}),Object.defineProperty(b,"FoxTag",{enumerable:!0,get:()=>A.ElTag}),Object.defineProperty(b,"FoxTimePicker",{enumerable:!0,get:()=>A.ElTimePicker}),Object.defineProperty(b,"FoxTimeSelect",{enumerable:!0,get:()=>A.ElTimeSelect}),Object.defineProperty(b,"FoxTimeline",{enumerable:!0,get:()=>A.ElTimeline}),Object.defineProperty(b,"FoxTimelineItem",{enumerable:!0,get:()=>A.ElTimelineItem}),Object.defineProperty(b,"FoxTooltip",{enumerable:!0,get:()=>A.ElTooltip}),Object.defineProperty(b,"FoxTransfer",{enumerable:!0,get:()=>A.ElTransfer}),Object.defineProperty(b,"FoxTree",{enumerable:!0,get:()=>A.ElTree}),Object.defineProperty(b,"FoxTreeSelect",{enumerable:!0,get:()=>A.ElTreeSelect}),Object.defineProperty(b,"FoxTreeV2",{enumerable:!0,get:()=>A.ElTreeV2}),Object.defineProperty(b,"FoxUpload",{enumerable:!0,get:()=>A.ElUpload}),b.ActionsheetItem=Bl,b.ActionsheetPane=Cn,b.AutocompleteItem=xl,b.Broadcast=Kn,b.BroadcastKey=Ne,b.CalendarItem=gl,b.CascaderItem=Sl,b.CheckboxItem=El,b.Content=tl,b.DataItemsKey=ct,b.DateItem=fl,b.DateUtils=ae,b.DialogItem=Yl,b.Domain=Xt,b.DomainKey=_e,b.DomainProvider=oa,b.FloatingWindow=aa,b.FooterBar=el,b.FoxActionsheetItem=Bl,b.FoxActionsheetPane=Cn,b.FoxAutocompleteItem=xl,b.FoxCalendarItem=gl,b.FoxCascaderItem=Sl,b.FoxCheckboxItem=El,b.FoxContent=tl,b.FoxDateItem=fl,b.FoxDialogItem=Yl,b.FoxDomainProvider=oa,b.FoxFloatingWindow=aa,b.FoxFooterBar=el,b.FoxGroup=al,b.FoxGroupSetting=Al,b.FoxHeaderBar=Jn,b.FoxHintText=Nt,b.FoxIndicator=Gl,b.FoxInfiniteLoading=xn,b.FoxInputItem=ul,b.FoxInputNumberItem=vl,b.FoxItem=we,b.FoxMapping=Ft,b.FoxMoneyItem=bl,b.FoxMoreButton=Zl,b.FoxOverLay=fn,b.FoxPage=Zn,b.FoxPickerItem=ql,b.FoxPopup=ot,b.FoxPrice=un,b.FoxPullRefresh=Ul,b.FoxRadioItem=Nl,b.FoxRateItem=Il,b.FoxRollingProvider=ra,b.FoxRowItem=sl,b.FoxSearchBar=Tn,b.FoxSelectItem=cl,b.FoxSlotItem=il,b.FoxStepsBar=Hl,b.FoxSwitchItem=Vl,b.FoxTableItem=Dl,b.FoxTableMappingColumn=Tl,b.FoxTableRadioColumn=Cl,b.FoxTableSetting=wn,b.FoxTabsBar=yn,b.FoxTabsContainer=pn,b.FoxTabsPane=bn,b.FoxText=Xl,b.FoxTimeItem=yl,b.FoxTimeSelectItem=pl,b.FoxToast=Wl,b.FoxTour=Ql,b.FoxTreeSelectItem=Ol,b.Foxcalendarpicker=hn,b.Foxcascaderpicker=vn,b.Foxdatepicker=Kl,b.Foxpicker=Rt,b.Group=al,b.GroupSetting=Al,b.HeaderBar=Jn,b.HintText=Nt,b.Indicator=Gl,b.InfiniteLoading=xn,b.InputItem=ul,b.InputNumberItem=vl,b.Item=we,b.Mapping=Ft,b.MoneyItem=bl,b.MoreButton=Zl,b.OverLay=fn,b.Page=Zn,b.PickerItem=ql,b.Popup=ot,b.Price=un,b.PriorityPolicy=Pe,b.PullRefresh=Ul,b.RadioItem=Nl,b.RateItem=Il,b.RollingProvider=ra,b.RowItem=sl,b.SearchBar=Tn,b.SelectItem=cl,b.SlotItem=il,b.StepsBar=Hl,b.SwitchItem=Vl,b.TableItem=Dl,b.TableMappingColumn=Tl,b.TableRadioColumn=Cl,b.TableSetting=wn,b.TabsBar=yn,b.TabsContainer=pn,b.TabsPane=bn,b.Text=Xl,b.TimeItem=yl,b.TimeSelectItem=pl,b.Toast=Wl,b.Tour=Ql,b.TreeSelectItem=Ol,b.UniqueID=Za,b.ValidateSchema=Aa,b.ValidateSchemaKey=We,b.calendarpicker=hn,b.cancelRaf=Fr,b.cascaderpicker=vn,b.clearNonNumber=Kr,b.clone=zn,b.compareTo=Ln,b.createBroadcast=Yt,b.createValidateSchema=Ut,b.datepicker=Kl,b.debounce=$t,b.debounceRef=ai,b.decimalLength=ka,b.default=Ug,b.defineBroadcast=Gr,b.defineConfigDomain=Ra,b.defineDataItem=La,b.defineDomain=Wn,b.defineItem=Te,b.definePageState=_a,b.deleteGlobalValidator=Jr,b.disabledProperty=Ve,b.divide=Mn,b.excludeProps=De,b.extend=nt,b.floatData=Ur,b.getGlobalValidateCheckEvents=Ia,b.getGlobalValidateResetEvents=Oa,b.getPageContentAreaHeight=Qt,b.getPageContentAreaWidth=Jt,b.getPageFooterAreaHeight=Dt,b.getPageHeaderAreaHeight=kt,b.getRootDomain=ft,b.hasSymbol=va,b.includeProps=ut,b.indexOf=Yr,b.installRules=Ma,b.integerLength=$a,b.isArray=Rr,b.isArrayLike=Sa,b.isBrowser=lt,b.isDate=Ze,b.isESModule=Pr,b.isEmptyString=ge,b.isEqual=Le,b.isFunction=Pn,b.isHidden=Kt,b.isInnerPage=ii,b.isMap=Mr,b.isNil=Hn,b.isNumberString=Ca,b.isObject=Me,b.isPlainObject=qn,b.isPromise=zt,b.isRegExp=Ta,b.isSet=Lr,b.isString=pa,b.isSubPage=si,b.isSymbol=_r,b.isTouch=Ll,b.isWindow=wa,b.lastIndexOf=Wr,b.makeArray=Hr,b.merge=xa,b.multiply=ma,b.negate=ga,b.nextTick=zr,b.numberFormat=qt,b.objectToString=ba,b.once=oi,b.picker=Rt,b.property=Ee,b.raf=_n,b.readonlyProperty=Ie,b.setGlobalValidateCheckEvents=ei,b.setGlobalValidateHandler=Zr,b.setGlobalValidateMessages=ni,b.setGlobalValidateResetEvents=ti,b.setGlobalValidator=Qr,b.throttle=Ba,b.toBoolean=ue,b.toNumber=he,b.toPadding=je,b.toPx=me,b.toPxDesc=Ae,b.toTypeString=jt,b.toValue=de,b.tryTimes=Gt,b.typeOf=Ht,b.unNumberFormat=ya,b.updatePageState=Un,b.useBroadcast=Tt,b.useDomain=Ue,b.useExpose=pe,b.useInnerSize=Qn,b.usePageState=Zt,b.usePosition=Ua,b.useRawTouch=_l,b.useRect=Ml,b.useSize=tn,b.useTouch=sr,b.valueLength=qe,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function Pt(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Ve(e),n=Ve(n),[e,n]=On(Ve(e),Ve(n)),o==1&&(l==1?e=Vn(e):n=Vn(n));let a=mo(e,n);return o?o==2?"-"+Ve(a):e.length<a.length?Ve(a.substring(1)):"-"+Ve(Vn(a)):Ve(a)}function Vn(e){let n="",o=e.length,l=e.split(".")[1],a=l?l.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return mo(n,r)}function Ve(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function On(e,n){let o=e.split("."),l=n.split("."),a=o[0].length,r=l[0].length;return a>r?l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,r=l[1]?l[1].length:0,(a||r)&&(a>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function mo(e,n){[e,n]=On(e,n);let o="",l=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let r=parseInt(e[a])+parseInt(n[a])+l;o=r%10+o,l=Math.floor(r/10)}return l?l.toString()+o:o}var Te=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(Te||{});function St(e,n=0,o=Te.HALF_EVEN){if(o===Te.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let a=e.split("."),r=a[0],i=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let u=r.substr(0,r.length-n);return e=u+"."+r.substr(r.length-n)+i,u=St(e,0,o),(l?"-":"")+u+new Array(n+1).join("0")}}if(n==0)return r.length,go(a[1],r,l,o)?(l?"-":"")+An(r):(l?"-":"")+r;if(a[1]){if(a[1].length<n)return(l?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=a[1].substring(0,n);let s=a[1].substring(n);return s&&go(s,i,l,o)&&(i=An(i),i.length>n)?(l?"-":"")+An(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function go(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===Te.DOWN||!o&&l===Te.FLOOR||o&&l===Te.CEILING)return!1;if(l===Te.UP||o&&l===Te.FLOOR||!o&&l===Te.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(l){case Te.HALF_DOWN:return!1;case Te.HALF_UP:return!0;case Te.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function An(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let a=o;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function Bn(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=xt(e),n=xt(n);let l=0,a=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=l+a;if(e=xt(e.replace(".","")),n=xt(n.replace(".","")),e.length<n.length){let f=e;e=n,n=f}if(n=="0")return"0";let i=n.length,s=0,u=[],d=i-1,h="";for(let f=0;f<i;f++)u[f]=e.length-1;for(let f=0;f<2*e.length;f++){let b=0;for(let $=n.length-1;$>=d&&$>=0;$--)u[$]>-1&&u[$]<e.length&&(b+=parseInt(e[u[$]--])*parseInt(n[$]));b+=s,s=Math.floor(b/10),h=b%10+h,d--}return h=xt(Mr(h,r)),o==1&&(h="-"+h),h}function Mr(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function xt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Fn(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ve(n.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ve(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Ve(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let h=e.length-d+a;e=Ve(e.substring(0,h)+"."+e.substring(h))}else a==d&&(e=Ve(e.replace(".","")))}let r=0,i=n.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let d=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(d+=i-u.length,u=u+new Array(i-u.length+1).join("0")),r=d,s="0."+new Array(d).join("0")}for(o=o+2;r<=o;){let d=0;for(;parseInt(u)>=parseInt(n);)u=Pt(u,"-"+n),d++;s+=d,e?(e[0]=="."&&(s+=".",r++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(r||(s+="."),r++,u=u+"0")}return(l==1?"-":"")+Ve(St(s,o-2))}function Rn(e,n){return e=e.toString(),n=n.toString(),n=Mn(n),Pt(e,n)}function Mn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function yo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),po(e),po(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Rn(e,Bn(n,St(Fn(e,n),0,Te.FLOOR)));return o+l}function po(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function bo(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=On(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}class fe{value;static RoundingModes=Te;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=Ve(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=a+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=a+Ve(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=a+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=fe.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=fe.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",s=r;s>0;)s<o?(o=s,s=0):s-=o,i=n.substring(s,s+o)+(s<r-o&&s>=0?l:"")+i;return(a?"-":"")+i+n.substring(r)}getPrettyValue(n,o){return fe.getPrettyValue(this.value,n,o)}static round(n,o=0,l=Te.HALF_EVEN){if(n=fe.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return St(n,o,l)}round(n=0,o=Te.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new fe(St(this.value,n,o))}static floor(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Te.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Te.FLOOR)}static ceil(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Te.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Te.CEILING)}static add(n,o){return n=fe.validate(n),o=fe.validate(o),Pt(n,o)}add(n){return new fe(Pt(this.value,n.getValue()))}static subtract(n,o){return n=fe.validate(n),o=fe.validate(o),Rn(n,o)}subtract(n){return new fe(Rn(this.value,n.getValue()))}static multiply(n,o){return n=fe.validate(n),o=fe.validate(o),Bn(n,o)}multiply(n){return new fe(Bn(this.value,n.getValue()))}static divide(n,o,l){return n=fe.validate(n),o=fe.validate(o),Fn(n,o,l)}divide(n,o){return new fe(Fn(this.value,n.getValue(),o))}static modulus(n,o){return n=fe.validate(n),o=fe.validate(o),yo(n,o)}modulus(n){return new fe(yo(this.value,n.getValue()))}static compareTo(n,o){return n=fe.validate(n),o=fe.validate(o),bo(n,o)}compareTo(n){return bo(this.value,n.getValue())}static negate(n){return n=fe.validate(n),Mn(n)}negate(){return new fe(Mn(this.value))}}function vo(e,n){return fe.multiply(`${e}`,`${n}`)}function Ln(e,n,o=8){return fe.divide(`${e}`,`${n}`,o)}function _n(e,n){return e=`${e}`,n=`${n}`,fe.compareTo(e,n)}function wo(e){return fe.negate(e)}function qt(e,n=-1,o=!1,l=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let s=r,u="",d=r.indexOf(".");d!=-1&&(s=r.substring(0,d),u=r.substring(d+1)),n!=-1&&(n<u.length?u=u.substring(0,n):o&&n>u.length&&(u=u.padEnd(n,"0")));let h;if(l>0){let f="",b=s.split("").reverse();for(let $=0;$<b.length;$++)f+=b[$]+(($+1)%l==0&&$+1!=b.length?a:"");u.length==0?h=`${i}${f.split("").reverse().join("")}`:h=`${i}${f.split("").reverse().join("")}.${u}`}else u.length==0?h=`${i}${s}`:h=`${i}${s}.${u}`;return h}function So(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}const Pn=In,Lr=Array.isArray,_r=e=>jt(e)==="[object Map]",Pr=e=>jt(e)==="[object Set]",We=e=>e instanceof Date,qn=e=>typeof e=="function",xo=e=>typeof e=="string",qr=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",zt=e=>Me(e)&&qn(e.then)&&qn(e.catch),To=Object.prototype.toString,jt=e=>To.call(e),zn=e=>jt(e)==="[object Object]",Co=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function zr(e){return e.__esModule||Co&&e[Symbol.toStringTag]==="Module"}const jr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function lt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let r=e[o];for(let i in r){let s=n[i],u=r[i];if(s!==u)if(a===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},n[i]=lt(a,d,u)}else u!==void 0&&(n[i]=u)}}return n}function jn(e,n,o=!1){if(!o)lt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let a in n){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!zn(i))continue;r=jn(r,i,o),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}const l=Object.getOwnPropertySymbols(n);for(let a of l){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!zn(i))continue;r=jn(r,i,o),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}}return e}const Hn=jr?Promise.resolve():null;function Hr(e,...n){Hn!==null?n&&n.length>0?Hn.then(()=>{e(n)}):Hn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ce(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function he(e){return typeof e=="number"?e:Number(e)}const Kr={"[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 Ht(e){let o=Object.prototype.toString.call(e);return e==null?String(e):Kr[o]||"object"}function $o(e){return e&&typeof e=="object"&&"setInterval"in e}function Kt(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function ko(e){let n=!!e&&"length"in e&&e.length,o=Ht(e);return o==="function"||$o(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Do(e,n){let o=+n.length,l=0,a=e.length;for(;l<o;l++)e[a++]=n[l];return e.length=a,e}function Wr(e,n=[]){let o=n;return e!=null&&(ko(Object(e))?Do(o,typeof e=="string"?[e]:e):o.push(e)),o}function Le(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Ht(e),l=Ht(n);if(o!==l)return!1;if(o==="object"){let a=Object.keys(e),r=Object.keys(n);if(a.length!==r.length)return!1;for(let i=0;i<a.length;i++){let s=a[i],u=e[s],d=n[s];if(!Le(u,d))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],i=n[a];if(!Le(r,i))return!1}return!0}return!1}const ot=typeof window<"u";function Kn(e){return e==null}function No(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ye=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Eo(e){return ye(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ye(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Io(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function Vo(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function Oo(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function Yr(e,n=!0,o=!0){n?e=Oo(e,".",/\./g):e=e.replace(/\./g,""),o?e=Oo(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Ur(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Le(e,o))return!0}):n.indexOf(e)}function Gr(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Le(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function _e(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ut(e,...n){const o={};return n.forEach(l=>{for(const a in l)o[a]=e[a]}),o}function $e(e,...n){const o=[];n.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const l={};for(const a in e)o.includes(a)||(l[a]=e[a]);return l}const Xr=(e,n,o)=>{const l=Object.assign({},e),a=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(l[r]=n[a[r]]):n[r]&&(l[r]=n[r])}),l):e},Ne=Symbol.for("BroadcastKey");class Wn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,o,l){this.parent=n,this.proxy=o,this.name=l,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,o,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let a=!1;!n.name||n.name==="*"?a=!0:!n.name||n.name==="+"?(a=!1,n.name="*"):No(n.name)&&this.name&&n.name.test(this.name)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(a=!0);const r=[];if(a){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...l]);u!=null&&r.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...l]);u!=null&&r.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},o,...l]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}emitToChildren(n,o,...l){const a=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},o,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(n,o){this.callbacks.set(n,o)}}function Wt(e,n,o,l){const a=new Wn(n,e,o);if(l&&typeof l=="object")for(const r in l)a.on(r,l[r]);return a}function Zr(e,n,o){const l=o;if(l[Ne])return l[Ne];const a=t.inject(Ne,null),r=new Wn(a,o,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return l[Ne]=r,t.provide(Ne,r),t.onUnmounted(()=>{r.destroy(),l[Ne]=void 0}),r}function Tt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ne]??t.inject(Ne,null):t.inject(Ne,null)}const at=e=>e.default??e;class Jr{error(n,o){const l=o,a=Tt(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const o=n,l=Tt(n);l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,l=Tt(n);l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,l){Array.isArray(n)||(n=[n]);const a=l,r=Tt(l),i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=n.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!s&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let Ao=new Jr;function Qr(e){Ao=e}function ei(e,n){at(nt).setValidator(e,n)}function ti(e){at(nt).deleteValidator(e)}let Bo=["blur","clear"];function ni(e){Bo=e}function Fo(){return Bo}let Ro=["focus","change"];function li(e){Ro=e}function Mo(){return Ro}function oi(e){at(nt).messages(e)}function Ct(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const a=n.findIndex(r=>r.type===l.type);a!==-1&&n.splice(a,1),n.push(l)})}),n}function Yt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Ye=Symbol("ValidateSchemaKey");class Lo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,l){this.parent=n,this.descriptor=o,this.proxy=l,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const o=Yt(Ct(this.attrRules,this.rules)),l=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let u={type:r};i!==null&&typeof i=="object"&&Object.assign(u,i),l.push(u);continue}let s=this.getValidator(r);if(s!==null){let u={type:r,validator:s};l.push(u)}}this.attrRules=Yt(l);const a=Ct(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...o]);const a=Ao;return a&&typeof a[n]=="function"?Reflect.apply(a[n],a,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,o,l=!1){l?at(nt).setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?at(nt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return at(nt).hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}setRule(n){const o=Ct(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Yt(n):this.rules=Yt([n]);const l=Ct(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=Ct(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${l}`]:o},r=this.getValue(),i={[`${l}`]:r},s=at(nt),u=new s(a),d=this.proxy??i;return u.validate(i,{context:d}).then(f=>{if(f.pass)this.success();else{let b="error";Array.isArray(f.errors)&&f.errors.length>0&&(b=f.errors[0].message??b,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(b)}return f}).catch(f=>{const b=f.message??`${f}`;return this.error(b),f})}}return Promise.resolve({pass:!0})}}function Ut(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(r){return r[a]}}}return new Lo(n,o,e)}const _o=Symbol.for("EventEmitterKey");class ai{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let l=this.register.get(n);if(l&&Array.isArray(l)){let a=l.findIndex(r=>r===o);a!==-1&&l.splice(a,1)}}on(n,o){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(o)}emit(n,...o){const l=this.register.get(n);l&&l.forEach(a=>{try{Reflect.apply(a,null,[n,...o])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function $t(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function Po(e,n){let o=0;return function(...l){const a=new Date().getTime();a-o<n||(o=a,Reflect.apply(e,null,[...l]))}}function ri(e,n){const o=$t((l,a)=>{e=l,a()},n);return t.customRef((l,a)=>({get(){return l(),e},set(r){o(r,a)}}))}function ii(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function Gt(e,n,o,l=0,a=!0,r){let i=n,s=0;if(a){const d=e();if(s++,d){typeof r=="function"&&r(!0);return}if(s>o){typeof r=="function"&&r(!1);return}}const u=()=>{const d=e();if(s++,d){typeof r=="function"&&r(!0);return}if(s>o){typeof r=="function"&&r(!1);return}i+=l,setTimeout(u,i)};setTimeout(u,i)}const Pe=Symbol("DomainKey"),ct=Symbol("DataItemsKey");class Xt{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const l in n){const a=n[l];o.length>0&&o.indexOf(a)!==-1||(this._props[l]=a)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const a=l._props[n];o.push(a)}l=l._parent}return o}}const si=new Xt;function ft(){return si}function Ue(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Pe]??t.inject(Pe,null):t.inject(Pe,null)}const Yn=Symbol("OriginalDateKey");function Un(e,n,o=[],l){const a=t.getCurrentInstance(),r=a?.proxy;let i=t.inject(Pe,null);i===null&&(i=ft());const s=e||n.prop||n.name,u=new Xt(s);u.parent=i;const d=g=>{r[Yn]||b(g),u.set("modelValue",g)},h=()=>u.getForSelf("modelValue")??null,f=()=>r[Yn]??null,b=g=>{const p={};lt(!0,p,t.toRaw(g)),r[Yn]=p};t.isReactive(n)||typeof n=="function"?t.watch(n,g=>{u.merge(g,o)},{immediate:!0}):u.merge(n,o),n.modelValue&&b(n.modelValue),r[Pe]=u,t.provide(Pe,u);let $=null,y=null;if(a!==null){const g=t.inject(Ne,null);$=Wt(r,g,s,l),u.broadcast=$,r[Ne]=$,t.provide(Ne,$),r.broadcast=(I,m,...c)=>Reflect.apply($.emit,$,[I,m,...c]);const p=t.inject(Ye,null);y=Ut(r,p,{componentName:""}),u.validateSchema=y,r[Ye]=y,t.provide(Ye,y),r[ct]=new Map,r.validate=(I=!0)=>{const m=[];let c=null;const V={deep:!1};if(I===!0)c={name:"*"};else if(Array.isArray(I)&&I.length>0){const R=I;c={name:M=>M?R.indexOf(M)!==-1:!1}}else if(I!=null&&typeof I=="object"){const R=I;if(Object.assign(V,R),Array.isArray(R.include)&&R.include.length>0){const M=R.include;c={name:k=>k?M.indexOf(k)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const M=R.exclude;c={name:k=>k?M.indexOf(k)===-1:!1}}else c={name:"*"}}if(c){const R=$?.emitToChildren(c,"validate",V);R&&Reflect.apply([].push,m,R)}return m.length==1?m[0]:m.length>1?Promise.all(m).then(R=>{let M=[];return R.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(M=[...M,...k.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(I,m=!0,c=!1)=>{if(c===!0){Reflect.ownKeys(I).forEach(R=>{let M=String(R);const P=jo(u,M,{componentName:"",fieldName:M,pureDataValidate:!0},$,y);r[ct].set(M,P);const D=I[M];D&&P.validateSchema.setRule(D)});return}if(m){const V=Reflect.ownKeys(I),R={name:M=>V.includes(M)};$?.emitToChildren(R,"setNameValidateRules",I,!1)}},r.clearValidate=(I=!0)=>{let m=null;if(I===!0)m={name:"*"};else if(Array.isArray(I)&&I.length>0){const c=I;m={name:V=>V?c.indexOf(V)!==-1:!1}}else if(I!=null&&typeof I=="object"){const c=I;if(Array.isArray(c.include)&&c.include.length>0){const V=c.include;m={name:R=>R?V.indexOf(R)!==-1:!1}}else if(Array.isArray(c.exclude)&&c.exclude.length>0){const V=c.exclude;m={name:R=>R?V.indexOf(R)===-1:!1}}else m={name:"*"}}m&&$?.emitToChildren(m,"clearValidate",!1)},r.resetFields=I=>{const m=h();if(!m)return;const c={};if(lt(!0,c,f()??{}),Array.isArray(I))I.forEach(V=>{m[V]=c[V]});else if(I&&Array.isArray(I.include))(I.include??[]).forEach(R=>{m[R]=c[R]});else if(I&&Array.isArray(I.exclude)){let V=I.exclude??[];Reflect.ownKeys(c).forEach(R=>{V.includes(R)||(m[R]=c[R])})}else Object.assign(m,c);r.clearValidate(I)},r.setModelValue=(I,m)=>{!m||m===s?d(I):$?.emitToChildren({name:m},"setModelValue",I)},r.getModelValue=()=>h()}return t.onUnmounted(()=>{u.destroy(),r[Pe]=void 0,r[ct]&&(r[ct].clear(),r[ct]=void 0),$!==null&&($.destroy(),r[Ne]=void 0),y!==null&&(y.destroy(),r[Ye]=void 0)}),u}function qo(e,n,o=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(Pe,null);r===null&&(r=ft());const i=e||n.prop||n.name,s=new Xt(i);return s.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,u=>{s.merge(u,o)},{immediate:!0}):s.merge(n,o),a[Pe]=s,t.provide(Pe,s),t.onUnmounted(()=>{s.destroy(),a[Pe]=void 0}),s}function zo(e,n,o){const a=Ue(e)?.get("rules");if(!a)return;let r=a[o];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Ce(e,n,o){const a=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(Ne,null),s=Wt(a,i,r,o);a[Ne]=s,t.provide(Ne,s),a.broadcast=(y,g,...p)=>Reflect.apply(s.emit,s,[y,g,...p]);const u=t.inject(Ye,null);e.fieldName=e.fieldName??r;const d=Ut(a,u,e);a[Ye]=d,t.provide(Ye,d),zo(a,d,r),a.validate=(y=null)=>{const g=[];let p=!1,I=!1;if(Array.isArray(y)&&y.indexOf(r)!==-1)I=!0,p=!0;else if(y&&typeof y=="object"){const m=y,c=m.ignoreDisabled??!0,V=m.ignoreReadonly??!0,R=m.ignoreHidden??!0;c===!0&&e.disabled===!0||V===!0&&e.readonly===!0||R===!0&&Kt(a.$el)?I=!1:(Array.isArray(m.include)&&m.include.indexOf(r)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(r),I=!0),p=m.deep??!1}else typeof y=="boolean"&&(p=y),I=!0;if(I){const m=d?.validate();g.push(m)}if(p){let m=null;const c={deep:!1};if(y===!0)m={name:"*"};else if(Array.isArray(y)&&y.length>0){const V=y;m={name:R=>R?V.indexOf(R)!==-1:!1}}else if(y!=null&&typeof y=="object"){const V=y;if(Object.assign(c,V),Array.isArray(V.include)&&V.include.length>0){const R=V.include;m={name:M=>M?R.indexOf(M)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const R=V.exclude;m={name:M=>M?R.indexOf(M)===-1:!1}}else m={name:"*"}}if(m){const V=s.emitToChildren(m,"validate",c);Reflect.apply([].push,g,V)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(m=>{let c=[];return m.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(c=[...c,...V.errors])}),c.length>0?{pass:!1,errors:c}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=y=>d?.setRule(y),a.setNameValidateRules=(y,g=!1)=>{const p=y[r];if(p&&d?.setRule(p),g){const I={name:m=>Reflect.ownKeys(y).includes(m)};s.emitToChildren(I,"setNameValidateRules",y,!1)}},a.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(n??"")!==-1)&&d?.clear();let g=null;if(y===!0)g={name:"*"};else if(Array.isArray(y)&&y.length>0){const p=y;g={name:I=>I?p.indexOf(I)!==-1:!1}}else if(y!=null&&typeof y=="object"){const p=y;if(Array.isArray(p.include)&&p.include.length>0){const I=p.include;g={name:m=>m?I.indexOf(m)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const I=p.exclude;g={name:m=>m?I.indexOf(m)===-1:!1}}else g={name:"*"}}g&&s.emitToChildren(g,"clearValidate",!1)};const h=new ai(a);a[_o]=h;const f=$t((y="validate")=>{y==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Fo()).forEach(y=>{h.on(y,g=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Mo()).forEach(y=>{h.on(y,g=>{f("reset")})}),t.onUnmounted(()=>{s.destroy(),a[Ne]=void 0,d.destroy(),a[Ye]=void 0,h.destroy(),a[_o]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(y,...g)=>{Reflect.apply(h.emit,h,[y,...g])},onEvent:(y,g)=>{Reflect.apply(h.on,h,[g])},offEvent:(y,g)=>{Reflect.apply(h.off,h,[g])}}}function jo(e,n,o,l,a){const r={},i=n??"",s={getValue(){const h=e.getForSelf("modelValue");return h?h[i]:null},isExist(){const h=e.getForSelf("modelValue");return h?Reflect.has(h,i):!1}};o.fieldName=i,o.validateHandler={getValue(h){return s.getValue()}};const u=Ut({},a,o);r.validate=(h=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const f=[];let b=!1,$=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)$=!0,b=!0;else if(h&&typeof h=="object"){const y=h;Array.isArray(y.include)&&y.include.indexOf(i)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(i),$=!0,b=y.deep??!1}else typeof h=="boolean"&&(b=h),$=!0;if($){const y=u?.validate();f.push(y)}if(b){let y=null;const g={deep:!1};if(h===!0)y={name:"*"};else if(Array.isArray(h)&&h.length>0){const p=h;y={name:I=>I?p.indexOf(I)!==-1:!1}}else if(h!=null&&typeof h=="object"){const p=h;if(Object.assign(g,p),Array.isArray(p.include)&&p.include.length>0){const I=p.include;y={name:m=>m?I.indexOf(m)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const I=p.exclude;y={name:m=>m?I.indexOf(m)===-1:!1}}else y={name:"*"}}if(y){const p=d.emitToChildren(y,"validate",g);Reflect.apply([].push,f,p)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(y=>{let g=[];return y.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(g=[...g,...p.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>u?.setRule(h),r.setNameValidateRules=h=>{const f=h[i];f&&u?.setRule(f)};const d=Wt(null,l,i,r);return{broadcast:d,validateSchema:u}}const Oe=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,n)}px`:"";function me(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),r=1;if(ot){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(r=Number(i.substring(0,s)))}return a*=r,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*n;const l=Number(e);return isNaN(l)?0:l}const Je="PageStateKey";function ze(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=me(e.top)),e.left!==null&&e.left!==void 0&&(n.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=me(e.right))),n}function Gn(e,n,o={},l=!0,a=-1,r=-1,i=0,s=0){if(e.headerHeight=me(o.headerHeight??n.headerHeight??-1),e.headerPadding=ze(o.headerPadding??n.headerPadding),e.footerHeight=me(o.footerHeight??n.footerHeight??-1),e.footerPadding=ze(o.footerPadding??n.footerPadding),e.contentPadding=ze(o.contentPadding??n.contentPadding),l){const u=o.height??n.height;u?e.height=me(u,r):e.height=me(r)-me(i,r)-me(s,r),e.width=me(o.width??n.width??0,a)}}function Ho(e,n={}){const o={top:null,left:null,bottom:null,right:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(l.safeAreaTop=me(a.top),l.safeAreaBottom=me(a.bottom),l.safeAreaLeft=me(a.left),l.safeAreaRight=me(a.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Gn(l,r,n,!0,i,s,u,d);const h=t.reactive(l),f=e.getForParent(Je);f&&(l.height=Jt(e,f),l.width=Qt(e,f),t.watch([()=>Jt(e,f),()=>Qt(e,f)],([$,y])=>{h.height=$,h.width=y}));const b=!f;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([$,y,g=-1,p=-1,I=0,m=0])=>{Gn(h,y,n,b,g,p,I,m)}),e.set(Je,h),h}function Zt(e){return e.get(Je)}function kt(e,n){if(n=n??e.get(Je),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Dt(e,n){if(n=n??e.get(Je),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Jt(e,n){if(n=n??e.get(Je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=kt(e,n),l=Dt(e,n);return n.height-o-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Qt(e,n){return n=n??e.get(Je),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function ui(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function ci(e){return!!e.getForParent(Je)}var Ge=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ge||{});function Xn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,o=1,l){const a=Ue();return a==null?e:o===0?t.computed(()=>{const r=a.getAll(n);for(let s=r.length-1;s>=0;s--){const u=r[s];if(Xn(u,l))return u}const i=e.value;return Xn(i,l)?i:null}):t.computed(()=>{const r=e.value;return Xn(r,l)?r:a?.get(n)})}function Ee(e){return Ae(e,"readonly",0,function(o){return ce(o)})}function Ie(e){return Ae(e,"disabled",0,function(o){return ce(o)})}function de(e,n="modelValue",o){const l=t.toRef(e,n);let a=l.value;typeof o=="function"&&(a=o(l.value));const r=t.ref(a);return t.watch(l,i=>{if(typeof o=="function"){const s=o(i);s!==r.value&&(r.value=s)}else i!==r.value&&(r.value=i)}),r}const Ko=new Map,en=new Map;let Zn=null;function fi(e){Zn=e}function Wo(e,n,o){if(o){let l=en.get(o);l||(l=new Map,en.set(o,l)),l.set(e,n)}else Ko.set(e,n)}function Be(e,n,o){!o&&Zn&&(o=Zn(e)??void 0);let l=null;if(o){let a=en.get(o);a&&(l=a.get(n))}return l||(l=Ko.get(n)),l}function di(e,n){for(let o in e){const l=e[o];Wo(o,l,n)}}function hi(e){en.delete(e)}function mi(){return{top:0,left:0,bottom:0,right:0}}function gi(e=0,n=0){if(ot){const o=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:l-me(e,l)-me(n,l)};return{rootWidth:o,rootHeight:l,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class yi{packages;installers;_version;get version(){return this._version}constructor(n,o,l){this.packages=n,this.installers=o,this._version=l}install(n,o={}){o?.install!==!1&&(this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=ft();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Po(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=d,this.initPageLayout(s,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in o)l.indexOf(r)===-1&&a.set(r,o[r])}initPageLayout(n,o){const l=n.headerBarHeight??0,a=n.footerBarHeight??0,r=lt({},mi(),n.safeAreaInset),i=gi(l,a),s=lt({},i.pageLayout,n.pageLayout);o=o??ft(),o.set("safeAreaInset",r),o.set("headerBarHeight",l),o.set("footerBarHeight",a),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){fi(n)}setAPI(n,o,l){Wo(n,o,l)}getAPI(n,o,l){return Be(n,o,l)}batchSetAPI(n,o){di(n,o)}clearScopeAPI(n){hi(n)}getRootDomain(){return ft()}}const pi=[A.ElAffix,A.ElAlert,A.ElAutocomplete,A.ElAutoResizer,A.ElAvatar,A.ElBacktop,A.ElBadge,A.ElBreadcrumb,A.ElBreadcrumbItem,A.ElButton,A.ElButtonGroup,A.ElCalendar,A.ElCard,A.ElCarousel,A.ElCarouselItem,A.ElCascader,A.ElCascaderPanel,A.ElCheckTag,A.ElCheckbox,A.ElCheckboxButton,A.ElCheckboxGroup,A.ElCol,A.ElCollapse,A.ElCollapseItem,A.ElCollapseTransition,A.ElColorPicker,A.ElConfigProvider,A.ElContainer,A.ElAside,A.ElFooter,A.ElHeader,A.ElMain,A.ElDatePicker,A.ElDescriptions,A.ElDescriptionsItem,A.ElDialog,A.ElDivider,A.ElDrawer,A.ElDropdown,A.ElDropdownItem,A.ElDropdownMenu,A.ElEmpty,A.ElForm,A.ElFormItem,A.ElIcon,A.ElImage,A.ElImageViewer,A.ElInput,A.ElInputNumber,A.ElLink,A.ElMenu,A.ElSubMenu,A.ElMenuItem,A.ElMenuItemGroup,A.ElPageHeader,A.ElPagination,A.ElPopconfirm,A.ElPopover,A.ElPopper,A.ElProgress,A.ElRadio,A.ElRadioButton,A.ElRadioGroup,A.ElRate,A.ElResult,A.ElRow,A.ElScrollbar,A.ElSelect,A.ElOption,A.ElOptionGroup,A.ElSelectV2,A.ElSkeleton,A.ElSkeletonItem,A.ElSlider,A.ElSpace,A.ElSteps,A.ElStep,A.ElSwitch,A.ElTable,A.ElTableColumn,A.ElTableV2,A.ElTabs,A.ElTabPane,A.ElTag,A.ElTimePicker,A.ElTimeSelect,A.ElTimeline,A.ElTimelineItem,A.ElTooltip,A.ElTransfer,A.ElTree,A.ElTreeSelect,A.ElTreeV2,A.ElUpload],bi=[A.ElInfiniteScroll,A.ElLoading,A.ElMessage,A.ElMessageBox,A.ElNotification,A.ElPopoverDirective],vi=e=>{pi.forEach(n=>{let o=n.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,n)):e.use(n)}),bi.forEach(n=>{e.use(n)})};function re(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},t.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,t.defineComponent(o)}}}function pe(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const Se={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ke={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Yo={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Uo={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Go=[];for(const e in Uo)Go.push(e);const wi=Symbol.for("InnerPageScopeKey"),Si={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},xi=(e,n)=>({inheritAttrs:!0,props:{...Se,...Yo,...Si},setup(o,{slots:l}){const a=Un(o.name,o),r=t.inject(wi,!1);if(a){const h=Ho(a,o);pe({getPageContentHeight:()=>Jt(a,h),getPageContentWidth:()=>Qt(a,h),getPageHeaderHeight:()=>kt(a,h),getPageFooterHeight:()=>Dt(a,h)}),h&&r&&(h.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),u=t.getCurrentInstance(),d=(h,f=!1)=>{const b=u?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(h,!0,f)};return t.watch([()=>o.rules,()=>o.pureDataRules],([h,f],[b,$])=>{if(h&&b){const y=t.toRaw(b),g=t.toRaw(h),p=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(m=>{p.includes(m)||(g[m]=[])}),d(g)}if(f&&$){const y=t.toRaw($),g=t.toRaw(f),p=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(m=>{p.includes(m)||(g[m]=[])}),d(g,!0)}},{deep:!0}),t.onMounted(()=>{if(o.rules){const h=t.toRaw(o.rules);d(h)}if(o.pureDataRules){const h=t.toRaw(o.pureDataRules);d(h,!0)}}),()=>{const h={class:i.value,style:s.value};return t.h("div",h,[l?.default?.()])}}}),{componentName:Ti,create:Ci,scope:Lg}=re("page"),Jn=Ci(xi(Ti));function tn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Qn(e){const n=t.unref(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),r=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-a,height:n.clientHeight-r-i}}const $i=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const i=Ue(),s=i?Zt(i):null;s&&(s.headerMounted=!0);const u=e,d=t.computed(()=>({[u]:!0,[`${u}--border`]:a.border,[`${u}--fixed`]:a.fixed,[`${u}--safe-area-inset-top`]:a.safeAreaInsetTop})),h=t.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${a.align}`]:!0})),f=a.height!==null&&a.height!==void 0?me(a.height):null,b=t.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const T=ze(a.padding??s.headerPadding);return Object.assign(w,T),f&&(s.headerHeight=f),s.headerHeight>0&&(w.height=s.headerHeight),w.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,w.safeAreaTop>0&&(w.top=w.safeAreaTop+(T.top??0),w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)),w}if(f&&(w.height=f),a.padding){const T=ze(a.padding);Object.assign(w,T)}return w}),$=t.ref(null),y=()=>{if(s&&$.value&&!Kt($.value)){if(!l){const w=tn($.value);s.headerAllHeight=w.height}return s.headerMounted=!0,!0}return!1};let g=null;t.onMounted(()=>{s&&(Gt(y,50,5,50,!0),window.ResizeObserver&&$.value&&(g=new window.ResizeObserver(()=>{y()}),g.observe($.value)))}),t.onUnmounted(()=>{s&&(s.headerMounted=!1,g&&(g.disconnect(),g=null))});const p=t.computed(()=>{const w={};return b.value.height!==null&&b.value.height!==void 0&&(w.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(w.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(w.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(w.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(w.paddingBottom=`${b.value.bottom}px`),w}),I=t.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function m(){r.emit("back")}function c(){r.emit("click-title")}function V(){r.emit("click-right")}function R(){r.emit("click-right-text")}const M=()=>{if(!a.leftShow)return null;const w=[];if(r.slots.left)w.push(r.slots.left());else{if(r.slots.leftIcon){const T=t.h("view",{class:"left-icon",onClick:m},[r.slots.leftIcon()]);w.push(T)}else if(a.leftIcon){const T=t.h("view",{class:"left-icon",onClick:m},[t.h(a.leftIcon)]);w.push(T)}if(a.leftText){const T=t.h("view",{class:"left-text",onClick:m},[a.leftText]);w.push(T)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__left"},w)},k=()=>{if(!a.rightShow)return null;const w=[];if(r.slots.right)w.push(r.slots.right());else{if(a.rightText){const T=t.h("view",{class:"right-text",onClick:R},[a.rightText]);w.push(T)}if(r.slots.rightIcon){const T=t.h("view",{class:"right-icon",onClick:V},[r.slots.rightIcon()]);w.push(T)}else if(a.rightIcon){const T=t.h("view",{class:"right-icon",onClick:V},[t.h(a.rightIcon)]);w.push(T)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__right"},w)},P=()=>{if(!a.titleShow)return null;const w=[],T=r.slots.default?r.slots.default():null;if(T)w.push(T);else{if(a.title){const z=t.h("view",{class:"title-text"},[a.title]);w.push(z)}if(r.slots.titleIcon){const z=t.h("view",{class:"title-icon",onClick:c},[r.slots.titleIcon()]);w.push(z)}else if(a.titleIcon){const z=t.h("view",{class:"title-icon",onClick:c},[t.h(a.titleIcon)]);w.push(z)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__title"},w)},D=()=>{const w=[],T=r.slots.bottom?r.slots.bottom():null;return T&&w.push(T),w.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},w)};return()=>{if(!I.value)return null;const w=[];if(r.slots.all)w.push(r.slots.all());else{const z=[],N=M();N&&z.push(N);const C=P();C&&z.push(C);const E=k();if(E&&z.push(E),z.length>0){const L=t.h("view",{class:h.value},z);w.push(L)}const Y=D();Y&&w.push(Y)}if(w.length===0)return null;const T={class:d.value,style:p.value,ref:$};return t.h("view",T,w)}}}),{componentName:ki,create:Di,scope:Ni}=re("header-bar"),el=Di($i(ki,Ni,ve.ArrowLeft));function Ei(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,a){const r=Ue(),i=r?Zt(r):null,s=t.computed(()=>{const y=e;return{[y]:!0,[`${y}--${l.align}`]:!0,[`${y}--border`]:l.border,[`${y}--fixed`]:l.fixed,[`${y}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),u=l.height!==null&&l.height!==void 0?me(l.height):null,d=t.computed(()=>{const y={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const g=ze(l.padding??i.footerPadding);return Object.assign(y,g),u&&(i.footerHeight=u),i.footerHeight>0&&(y.height=i.footerHeight),y.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,y.safeAreaBottom>0&&(y.bottom=y.safeAreaBottom+(g.bottom??0),y.height&&y.height>0&&(y.height=y.height+y.safeAreaBottom)),y}if(u&&(y.height=u),l.padding){const g=ze(l.padding);Object.assign(y,g)}return y}),h=t.ref(null),f=()=>{if(i&&h.value&&!Kt(h.value)){if(!o){const y=tn(h.value);i.footerAllHeight=y.height}return i.footerMounted=!0,!0}return!1};let b=null;t.onMounted(()=>{i&&(Gt(f,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{f()}),b.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const $=t.computed(()=>{const y={};return d.value.height!==null&&d.value.height!==void 0&&(y.height=Oe(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(y.paddingTop=Oe(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(y.paddingLeft=Oe(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(y.paddingRight=Oe(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(y.paddingBottom=Oe(d.value.bottom)),y});return()=>{const y=a.slots.default?a.slots.default():[],g={ref:h,class:s.value,style:$.value};return t.h("view",g,y)}}}}const{componentName:Ii,create:Vi,scope:_g}=re("footer-bar"),tl=Vi(Ei(Ii));function Oi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const l=Ue(),a=t.computed(()=>({[e]:!0})),r=l?Zt(l):null,i=t.computed(()=>{const d={};if(l&&r){if(o.padding){const $=ze(o.padding);Object.assign(r.contentPadding,$)}const h=kt(l,r),f=Dt(l,r);let b="";if(r.contentHeight?b=`${r.contentHeight}`:b=`${r.height}px`,r.contentPadding,d.height=b,r.contentPadding.top||h>0){const $=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${h+$}px`}if(r.contentPadding.bottom||f>0){const $=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${f+$}px`}return r.contentPadding.left&&(d.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(d.paddingRight=`${r.contentPadding.right}px`),d}if(o.padding){const h=ze(o.padding);h.left&&(d.paddingLeft=`${h.left}px`),h.top&&(d.paddingTop=`${h.top}px`),h.right&&(d.paddingRight=`${h.right}px`),h.bottom&&(d.paddingBottom=`${h.bottom}px`)}return d}),s=t.ref(null),u=()=>{if(r&&s.value){const d=Qn(s.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}};return t.onMounted(()=>{u()}),l&&r&&t.watch([()=>kt(l),()=>Dt(l)],([])=>{u()}),{contentRef:s,classes:a,styles:i}}}}const{componentName:Ai,create:Bi,scope:Pg}=re("content"),Fi=Bi(Oi(Ai));function Ri(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const De=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},nl=De(Fi,[["render",Ri]]),dt="GroupStateKey",Xo=Symbol.for("GroupScopeKey");function nn(){return t.inject(Xo,!1)}function ln(e=!0){t.provide(Xo,e)}function Mi(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const a=n[l];Kn(a)||(e[l]=a)})}function Li(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Mi(l,n);const a=t.shallowRef(l),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(dt,r),r}function ll(e,n,o=-1,l=-1,a=!1,r,i,s){const u=e.get(dt);if(!u)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const h=me(r),f=me(i);s||(s=d.type??"grid");const b=()=>{const $=n===""||n===-1,y=me(n);let g=he(o);const p=me(l);if(!$){let c=(y-(g-1)*p)/g;for(;f!==-1&&c>f;)g++,c=(y-(g-1)*p)/g;for(;h!==-1&&g>1&&c<h;)g--,c=(y-(g-1)*p)/g}let I=!1;const m=u.layout;m.value.width=n,m.value.column!==g&&(m.value.column=g,I=!0),m.value.gutter!==p&&(m.value.gutter=p,I=!0),m.value.type!==s&&(m.value.type=s,I=!0),I&&t.triggerRef(m)};if(a)b();else{const $=++u.passport;setTimeout(()=>{$===u.passport&&b()},50)}}function on(e,n=!1){let o;return n?o=e.getForParent(dt):o=e.get(dt),o.layout}function an(e,n=!1){let o;return n?o=e.getForParent(dt):o=e.get(dt),o.order}function Zo(e,n=1){if(n==="stretch")return-1;const o=he(n);return o===-1?100:100*o/e}function rn(e,n,o=1,l=0,a){const r={};let i=0;a?i=me(a):i=Zo(n.column,o),i>0&&(r.width=`${i}%`);const s=Zo(n.column,l);s>0&&(r["margin-left"]=`${s}%`);const u=n.gutter/2;return u>0&&(r["padding-left"]=`${u}px`,r["padding-right"]=`${u}px`),r}function sn(e,n,o=1,l=0){if(o==="stretch"){const u=e.index%n.column,d=u+(n.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let a=he(o);if(a===-1){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}const r=he(l)%n.column;let i=(e.index+r)%n.column,s=i+a;return s>n.column?(i=0,s=i+a,e.index=e.index+(n.column-i)+a):e.index=e.index+r+a,r>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Jo=Symbol("RollingStateKey");function _i(e){t.provide(Jo,e)}function Pi(){return t.inject(Jo,null)}function ol(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(o.getPropertyValue("padding-top")),r=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-a-r}else n=e.offsetHeight;return n}function qi(e){let n=ol(e);if(n<=0){const o=e.cloneNode(!0),l=e.offsetWidth;o.style=`width: ${l}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=ol(o),document.body.removeChild(o)}return n}function zi(e,n,o){if(e<=0)return"1fr";const l=(e-(n-1)*o)/n;return l>0?`${l}px`:"1fr"}const ji={...Se,...Yo,...Uo};function Hi(e,n,o){return{props:ji,emits:["update:collapse"],setup(l,a){const r=Un(l.name,l,Go),i=Li(r,{type:l.type}),s=nn();ln(!0);const u=l.rollingDisplay?Pi():null,d=t.ref(null),h=t.computed(()=>l.rollingDisplay?u&&!u.disabled:!1),f=t.computed(()=>s&&r?on(r,!0).value:null),b=t.getCurrentInstance(),$=(F,H=!1)=>{const J=b?.proxy;J&&typeof J.setNameValidateRules=="function"&&J.setNameValidateRules(F,!0,H)};t.watch([()=>l.rules,()=>l.pureDataRules],([F,H],[J,le])=>{if(F&&J){const x=t.toRaw(J),X=t.toRaw(F),ne=X?Reflect.ownKeys(X):[];(x?Reflect.ownKeys(x):[]).forEach(te=>{ne.includes(te)||(X[te]=[])}),$(X)}if(H&&le){const x=t.toRaw(le),X=t.toRaw(H),ne=X?Reflect.ownKeys(X):[];(x?Reflect.ownKeys(x):[]).forEach(te=>{ne.includes(te)||(X[te]=[])}),$(X,!0)}},{deep:!0});const y=e,g=t.computed(()=>{const F={};F.height=E.value;const H=s?an(r,!0):null;if(f.value&&H){if(f.value.type==="grid"){const J=sn(H,f.value,l.span,l.offset);Object.assign(F,J)}else if(f.value.type==="flow"){const J=rn(H,f.value,l.span,l.offset,l.width);Object.assign(F,J)}}else if(l.width){const J=Oe(l.width);F.width=J}return F}),p=t.computed(()=>{const F=i.layout.value.type;return F==="grid"||F==="flow"?{[`${y}--${F}`]:!0,[`${y}--${F}-justify-${l.justify}`]:!0,[`${y}--${F}-align-${l.align}`]:!0,[`${y}--gutter`]:!0}:{[`${y}--${F}`]:!0,[`${y}--gutter`]:!0}}),I=t.computed(()=>{if(i.layout.value.type==="grid"){let H="";if(l.columnWidth)H=`repeat(auto-fill, ${l.columnWidth})`;else{const J=zi(P.value,i.layout.value.column,i.layout.value.gutter);H=`repeat(${i.layout.value.column}, ${J})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":H}}}),m=t.toRef(l,"gutter"),c=t.toRef(l,"column"),V=t.computed(()=>s||h.value?!0:ce(l.isWrap)),R=[],M=F=>{R.push(F)},k=()=>{let F=R.length;R.splice(0,F)},P=t.ref(-1),D=F=>{const H=Qn(F).width;H>0&&H!==P.value&&(P.value=H)};ll(r,P.value,c.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([P,c,m],([F,H,J])=>{i.order.index=0,ll(r,F,H,J,!1,l.minItemWidth,l.maxItemWidth,l.type)});const w=t.computed(()=>Y.value?l.expandText??"":l.collapseText??""),T=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),z=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!Y.value,"is-collapse":Y.value})),N=t.ref(),C=t.ref(),E=t.computed(()=>L.value||Oe(l.height)||""),Y=t.ref(!1),L=t.ref(""),G=t.ref(!1);let K=-1;const U=(F,H=!0)=>{const J=N.value;if(J&&Y.value!==F){if(K=K===-1?qi(J):K,G.value=!0,H)if(J.style["will-change"]="height",J.ontransitionend=function(){J.ontransitionend=null,this.style["will-change"]="auto",F||(L.value="",G.value=!1)},F){let le=0;l.collapseHeight?le=l.collapseHeight:C.value&&C.value.classList.contains(`${e}__header`)&&(le=C.value.offsetHeight),L.value=`${K}px`,t.nextTick(()=>{L.value=`${le}px`})}else L.value=`${K}px`;else if(F){let le=0;l.collapseHeight?le=l.collapseHeight:C.value&&C.value.classList.contains(`${e}__header`)&&(le=C.value.offsetHeight),L.value=`${le}px`}else G.value=!1,L.value=`${K}px`;Y.value=F,a.emit("update:collapse",F)}};t.watch(()=>l.collapse,F=>{U(F)});const Q=()=>{_()},_=F=>{F=F??!Y.value,U(F)};pe({toggleCollapse:_,doLayout:()=>{R[0]&&(D(R[0]),ll(r,P.value,c.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let q=null,j=!0;const B=F=>{if(l.rules){const H=t.toRaw(l.rules);$(H)}if(l.pureDataRules){const H=t.toRaw(l.pureDataRules);$(H,!0)}if(ot&&(F&&U(ce(l.collapse),!1),l.autoLayout&&Array.isArray(R)&&R.length>0)){const H=R[0];D(H),window.ResizeObserver&&(q=new window.ResizeObserver(()=>{D(H)}),q.observe(H))}},Z=()=>{q?.disconnect(),q=null},ee=!h.value||u?.acquire();ee&&(d.value=h.value?!0:null),t.onMounted(()=>{if(ee&&(B(j),j=!1),h.value&&u){let F=null,H=u.initialHeight;u.observe(N.value,J=>{if(J!==d.value)if(J)d.value=!0,Y.value||(L.value=""),F=setTimeout(()=>{F=null,d.value!==!1&&(B(j),j=!1)},100);else{if(F!==null&&clearTimeout(F),d.value=!1,!Y.value)if(j)L.value=u.initialHeight;else{let le=ol(N.value);le<=0?L.value=H:(L.value=`${le}px`,H=L.value)}j||Z()}})}}),t.onUnmounted(()=>{q?.disconnect(),u&&u.unobserve(N.value)});const W=(F="right")=>{const H=[];if(w.value){const x={class:T.value},X=t.h("span",x,[w.value]);H.push(X)}const J={class:z.value},le=o(l.collapseIcon,J);return le&&H.push(le),H.length>0?t.h("div",{class:{[`${y}__header-collapse`]:!0,[`is-${F}`]:!0},onClick:Q},H):null},S=(F,H,J,le)=>{const x={...p.value};return H===0&&(x[`${y}__first`]=!0),J>=le-1&&(x[`${y}__last`]=!0),t.h("div",{ref:M,key:`${H}`,class:x,style:I.value},F)};return()=>{if(h.value&&d.value!==!0){const x=l.tag||"div";return t.h(x,{ref:N,prop:l.name,class:{[`${y}`]:!0,"is-collapse":G.value},style:g.value},[])}i.order.index=0;const F=[];let H=0;if(a.slots.header){const x={key:`${H++}`,ref:C,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},X=t.h("div",x,[a.slots.header()]);F.push(X)}else{const x=[],X=l.collapsePosition==="left";if(X&&l.showCollapse){const ne=W("left");ne&&x.push(ne)}if(l.title||a.slots.title){if(l.showMark){const ne={class:{[`${y}__header-mark`]:!0}};l.markColor&&(ne.style={background:l.markColor});const ae=t.h("div",ne);x.push(ae)}if(a.slots.title){const ne=t.h("div",{class:{[`${y}__header-title`]:!0}},[a.slots.title()]);x.push(ne)}else if(l.title){const ne=t.h("div",{class:{[`${y}__header-title`]:!0}},[l.title]);x.push(ne)}}if(a.slots.toolbar&&x.push(a.slots.toolbar()),!X&&l.showCollapse){const ne=W("right");ne&&x.push(ne)}if(x.length>0){const ne={key:`${H++}`,ref:C,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},ae=t.h("div",ne,x);F.push(ae)}}k();const J=a.slots.default?a.slots.default():[],le=i.layout.value.type;if(le==="grid"){const x=S(J,H++,0,J.length);F.push(x)}else if(le==="flow"){const x=S(J,H++,0,J.length);F.push(x)}else for(let x=0;x<J.length;x++){const X=J[x],ne=S([X],H++,x,J.length);F.push(ne)}if(V.value){const x=l.tag||"div";return t.h(x,{ref:N,prop:l.name,class:{[`${y}`]:!0,"is-collapse":G.value},style:g.value},[F])}else return F}}}}const{componentName:Ki,create:Wi,scope:Yi}=re("group"),al=Wi(Hi(Ki,Yi,(e,n)=>(e=e??ve.ArrowUp,t.h(A.ElIcon,n,{default:()=>[t.h(e)]}))));function Ui(e){return e===window}const Gi=/matrix\((.+)\)/,Qo=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Ui(n))return{x:0,y:0};let o=0,l=0,a=n;for(;a!==null;)o+=a.offsetLeft,l+=a.offsetTop,a=a.offsetParent;let r=0,i=0,s=0,u=0;for(a=n;a!==document;){i+=a.scrollTop,r+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const h=Gi.exec(d);if(h){let b=h[1].split(/\s*,\s*/);b.length==6&&(s+=Number(b[4]),u+=Number(b[5]))}}a=a.parentNode}return o-=r,l-=i,o+=s,l+=u,{x:o,y:l}};class Xi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Zi{monitorRegister=new WeakMap;watch(n,o){let l=n.parentNode;const a=document.body.parentNode;for(;l&&l!==a;){let r=this.monitorRegister.get(l);r||(r=new Xi,l.addEventListener("scroll",r.listen),l===document.body&&l.addEventListener("resize",r.listen),this.monitorRegister.set(l,r)),r.add(o),l=l.parentNode}}unwatch(n,o){let l=n.parentNode;const a=document.body.parentNode;for(;l&&l!==a;){let r=this.monitorRegister.get(l);r&&(r.remove(o),r.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",r.listen),l===document.body&&l.removeEventListener("resize",r.listen))),l=l.parentNode}}}const ea=new Zi,ta={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ji,create:Qi}=re("price"),es=Qi({props:{...ta},setup(e){const n=t.computed(()=>({[Ji]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>_e(e.price)==0?"":qt(e.price,e.decimalLength,!0,he(e.digits),e.separator)),a=t.computed(()=>{let i=l.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),r=t.computed(()=>{let i=l.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:o,intText:a,decimalText:r}}}),ts=["innerHTML"],ns=["innerHTML"];function ls(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ts)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ns)):t.createCommentVNode("",!0)],2)}const un=De(es,[["render",ls]]),{componentName:rl,create:os}=re("hint-text"),as=os({components:{Price:un},props:{...ta,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=t.ref({top:null,right:null,bottom:null,left:null}),l=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),i=t.ref(e.placement),s=t.ref(!1),u=t.ref(null),d=(T,z,N,C,E,Y)=>{const L=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,K=T.split("-");let U=[];K[0]==="top"?U=["top","bottom","right","left"]:K[0]==="bottom"?U=["bottom","top","right","left"]:K[0]==="left"?U=["left","top","bottom","right"]:K[0]==="right"&&(U=["right","top","bottom","left"]);const Q={top:null,right:null,bottom:null,left:null},_=[];for(let O=0;O<U.length;O++){const q=U[O];if(_[0]=q,K[1]&&(_[1]=K[1]),q==="top"){const j=z.y-Y-e.arrowSize-e.offset;if(j>=0){Q.top=j;let B=0;K[1]==="start"?B=z.x:K[1]==="end"?B=z.x+N-E:B=z.x+N/2-E/2;const Z=L-B-E;Z<0?(B+=Z,f.value=-Z):f.value=0,Q.left=B<0?0:B;break}}else if(q==="bottom"){const j=z.y+C+e.arrowSize+e.offset;if(j+Y<=G){Q.top=j;let B=0;K[1]==="start"?B=z.x:K[1]==="end"?B=z.x+N-E:B=z.x+N/2-E/2;const Z=L-B-E;Z<0?(B+=Z,f.value=-Z):f.value=0,Q.left=B<0?0:B;break}}else if(q==="left"){const j=z.x-E-e.arrowSize-e.offset;if(j>=0){Q.left=j;let B=0;K[1]==="start"?B=z.y:K[1]==="end"?B=z.y+C-Y:B=z.y+C/2-Y/2,Q.top=B<0?0:B;break}}else if(q==="right"){const j=z.x+N+e.arrowSize+e.offset;if(j+E<=L){Q.left=j;let B=0;K[1]==="start"?B=z.y:K[1]==="end"?B=z.y+C-Y:B=z.y+C/2-Y/2,Q.top=B<0?0:B;break}}}return{bestPlacement:_.join("-"),bestInsetRect:Q}},h=(T,z,N=10)=>{if(!ot||z===!1||!T)return;l.value=Qo(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const C=u.value.offsetHeight,E=u.value.offsetWidth,{bestPlacement:Y,bestInsetRect:L}=d(e.placement,l.value,a.value,r.value,E,C);i.value=Y,o.value=L,s.value=!0},f=t.ref(0),b=$t(()=>{h(e.message,e.visible)},10),$=t.ref(e.visible);t.watch(()=>e.visible,T=>{$.value=T});const y=t.computed(()=>$.value&&g.value),g=t.ref(!0),p=$t(T=>{const z=T[0];z&&(g.value=z.isIntersecting)},10),I=new IntersectionObserver(p);t.watch([()=>e.message,()=>e.visible],([T,z])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{h(e.message,e.visible)},0),ea.watch(e.reference,b),I.observe(e.reference)}),t.onBeforeMount(()=>{ea.unwatch(e.reference,b),I.unobserve(e.reference),I.disconnect()});const m=t.computed(()=>{const T={[rl]:!0};return i.value.startsWith("top")?T["is-top"]=!0:i.value.startsWith("right")?T["is-right"]=!0:i.value.startsWith("bottom")?T["is-bottom"]=!0:i.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),c=t.computed(()=>{const T={};o.value.top!==null&&(T.top=`${o.value.top}px`),o.value.right!==null&&(T.right=`${o.value.right}px`),o.value.bottom!==null&&(T.bottom=`${o.value.bottom}px`),o.value.left!==null&&(T.left=`${o.value.left}px`),e.autoFit&&(T["min-width"]=`${a.value}px`);const z=document.documentElement.clientWidth||document.body.clientWidth;return T["max-width"]=`${z}px`,s.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),V=t.computed(()=>{const T=[`${rl}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),R=t.computed(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),M=t.computed(()=>({[`${rl}__arrow`]:!0})),k=t.computed(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,i.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="top-start"?(T.left=`${e.arrowOffset+f.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(T.right=`${e.arrowOffset-f.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(T.left=`${e.arrowOffset+f.value}px`,T.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(T.right=`${e.arrowOffset-f.value}px`,T.top=`-${e.arrowSize}px`):i.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),P=t.computed(()=>y.value&&e.closeOnClick),D=t.computed(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:y,tipRef:u,classes:m,styles:c,textClasses:V,textStyles:R,arrowClasses:M,arrowStyles:k,overlayShow:P,overlayStyle:D,onClickOverlay:()=>{$.value=!1,n.emit("update:visible",!1)}}}}),rs=["innerHTML"];function is(e,n,o,l,a,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,rs))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Nt=De(as,[["render",is]]);class na{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const il={},ss=new na,ht=new Map,cn=e=>{if(e){const n=document.getElementById(e);ht.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of ht.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}ht.clear()}},us=e=>{e.unmount=cn;const n=document.getElementById(e.id);if(n){const o=ht.get(e.id);o?e={...il,...o,...e}:e={...il,...e},e.transition=!1;const l=t.createVNode(Nt,e);return t.render(l,n),e.id}},cs=e=>{e.unmount=cn;let n=e.id??`hinttext_${ss.get()}`;e={...il,...e},e.id=n,ht.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(Nt,e);return t.render(l,o),document.body.appendChild(o),n},fs=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Fe={show(e,n,o={},l=!0){fs(n);const a=o.id;return a&&ht.has(a)?us({...o,message:n,reference:e}):(l&&cn(),cs({...o,message:n,reference:e}))},hide(e){cn(e)},install(e){e.config.globalProperties.$hintText=Fe}};function ds(e,n,o,l=!1){return{inheritAttrs:!0,props:{...Se,...ke},emits:["appear","disappear"],setup(a,r){const i=a.prop??r.attrs.name;Ce({componentName:e,validate:!1},i);const s=Ue(),u=nn();ln(!1);const d=t.computed(()=>u&&s?on(s,!1).value:null),h=e,f=t.ref(null),b=t.computed(()=>{const x={[h]:!0,[`${h}__gutter`]:d.value&&d.value.type!=="flow",[`${h}__stretch`]:a.span==="stretch",[`${h}__input--border`]:ce(a.hasBorder)};if(x[a.errorMarkClass]=!!Y.value,x[a.warnMarkClass]=!!C.value,x[a.infoMarkClass]=!!z.value,typeof f.value=="function"){const X=f.value(i);x[X]=!0}else if(typeof f.value=="string"){const X=f.value;x[X]=!0}return x}),$=t.ref(null),y=t.computed(()=>{const x={};if(a.width)a.width!=="auto"&&(x.width=Oe(a.width));else{const X=u&&s?an(s,!1):null;if(d.value&&X){if(d.value.type==="grid"){const ne=sn(X,d.value,a.span,a.offset);Object.assign(x,ne)}else if(d.value.type==="flow"){const ne=rn(X,d.value,a.span,a.offset,a.width);Object.assign(x,ne)}}}if(typeof $.value=="function"){const X=$.value(i);X&&Object.assign(x,X)}else if($.value&&typeof $.value=="object"){const X=$.value;Object.assign(x,X)}return x}),g=t.ref(null),p=t.computed({get:()=>g.value??ce(a.isRequired),set:x=>{g.value=x}}),I=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",m=Ae(t.toRef(a,"labelPosition"),"labelPosition",Ge.Near),c=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),V=t.computed(()=>({[`${h}__main`]:!0,[`${h}__main--${c.value}`]:!0})),R=t.computed(()=>({label:!0,[`label--${c.value}`]:!0})),M=Ae(t.toRef(a,"labelWidth"),"labelWidth",Ge.Near),k=t.computed(()=>M&&M.value?{width:Oe(M.value)}:{}),P=t.computed(()=>({"label--string":!0,"label--required":p.value})),D=t.computed(()=>({content:!0,[a.contentClass]:!0})),w=t.computed(()=>({...a.contentStyle})),T=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});pe({setRequired(x){p.value=x},setErrorTip(x){T.errorTip=x},setErrorIcon(x){T.errorIcon=x},setWarnTip(x){T.warnTip=x},setWarnIcon(x){T.warnIcon=x},setInfoTip(x){T.infoTip=x},setInfoIcon(x){T.infoIcon=x},setCustomClassName(x){f.value=x},setCustomStyle(x){$.value=x}});const z=t.computed(()=>a.infoTip||T.infoTip),N=t.computed(()=>a.infoIcon||T.infoIcon),C=t.computed(()=>a.warnTip||T.warnTip),E=t.computed(()=>a.warnIcon||T.warnIcon),Y=t.computed(()=>a.errorTip||T.errorTip),L=t.computed(()=>a.errorIcon||T.errorIcon),G=t.computed(()=>Y.value?"error":C.value?"warn":z.value?"info":""),K=()=>G.value.length>0,U=t.computed(()=>G.value==="error"?Y.value:G.value==="warn"?C.value:G.value==="info"?z.value:""),Q=t.computed(()=>G.value==="error"?L.value:G.value==="warn"?E.value:G.value==="info"?N.value:null),_=t.computed(()=>{const x={[`${h}__tip`]:!0,[`${h}__tip--${G.value}`]:!0,[`${h}--animate`]:!0};return G.value==="error"&&a.errorClass?x[`${a.errorClass}`]=!0:G.value==="warn"&&a.warnClass?x[`${a.warnClass}`]=!0:G.value==="info"&&a.infoClass&&(x[`${a.infoClass}`]=!0),x}),O=t.computed(()=>{const x={};return m&&m.value==="top"||!I()?x["padding-left"]="0px":M&&M.value&&(x["padding-left"]=Oe(M.value)),x}),q=t.ref();let j="";t.watch([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([x,X,ne,ae])=>{q.value&&(x&&!ye(X)?j?o.show(q.value,X,{...ae,id:j,type:ne},!0):j=o.show(q.value,X,{...ae,type:ne},!0):o.hide(j))});let B=null;const Z=()=>{B||!q.value||(B=new IntersectionObserver(x=>{let X=!1;for(let ne of x)if(ne.intersectionRatio>0){X=!0,X&&r.emit("appear",ne);break}X||r.emit("disappear")}),B.observe(q.value))},ee=()=>{!B||!q.value||(B.unobserve(q.value),B=null)};t.watch(()=>ce(a.appearListen),x=>{x?Z():ee()}),t.onMounted(()=>{ce(a.appearListen)&&Z()}),t.onUnmounted(ee);const W=()=>{if(!I())return null;const x=[],X=r.slots?.label?.()??a.label,ne={class:P.value},ae=t.h("div",ne,[X]);if(x.push(ae),r.slots.fixedPreTip){const oe=r.slots.fixedPreTip();x.push(oe)}const te={class:R.value,style:k.value};return t.h("div",te,x)},S=()=>{const x=[];if(r.slots.prepend){const ne=r.slots.prepend();x.push(ne)}if(r.slots.default){const ne=r.slots.default();x.push(ne)}if(r.slots.append){const ne=r.slots.append();x.push(ne)}if(r.slots.fixedTip){const ne={class:[`${h}__fixed-tip`]},ae=t.h("div",ne,[r.slots.fixedTip()]);x.push(ae)}const X={ref:q,class:D.value,style:w.value};return t.h("div",X,x)},F=()=>{const x=Q.value;return x?typeof x=="function"?t.h("div",{class:"fox-item__tip--icon"},[x()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(x)]):null},H=()=>{const x=U.value;return x?typeof x=="function"?t.h("div",{class:"fox-item__tip--text"},[x()]):t.h("div",{class:"fox-item__tip--text"},[x]):null},J=()=>{if(!K())return null;const x=[],X=F();X&&x.push(X);const ne=H();ne&&x.push(ne);const ae={class:_.value,style:O.value};return t.h("div",ae,x)},le=()=>r.slots?.hide?.()??null;return()=>{const x=[],X=[],ne=W();ne&&X.push(ne);const ae=S();ae&&X.push(ae);const te={class:V.value},oe=t.h("div",te,X);x.push(oe);const se=J();se&&x.push(se);const ue=le();ue&&x.push(ue);const be={class:b.value,style:y.value,prop:a.prop};return t.h("div",be,x)}}}}const{componentName:hs,create:ms,scope:gs}=re("item"),xe=ms(ds(hs,gs,Fe,!1));function ys(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,l){const a=Ue(),r=nn();ln(!1);const i=t.computed(()=>r&&a?on(a,!1).value:null),s=e,u=t.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),d=t.computed(()=>{const h={},f=r&&a?an(a,!1):null;if(i.value&&f)if(i.value.type==="grid"){const b=sn(f,i.value,o.span,o.offset);Object.assign(h,b)}else if(i.value.type==="flow"){const b=rn(f,i.value,o.span,o.offset,o.width);Object.assign(h,b)}else return o.width&&(h.width=Oe(o.width)),h;else o.width&&(h.width=Oe(o.width));return h});return()=>{const h={class:u.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",h,l.slots.default()):t.h("div",h)}}}}const{componentName:ps,create:bs,scope:zg}=re("slot-item"),sl=bs(ys(ps));function vs(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,l){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=Ue(),s=nn();ln(!1);const u=t.computed(()=>{const d={};if(s&&i){const h=on(i,!1),f=an(i,!1);if(h.value&&f)if(h.value.type==="grid"){const b=sn(f,h.value,o.span,o.offset);Object.assign(d,b)}else if(h.value.type==="flow"){const b=rn(f,h.value,o.span,o.offset,o.width);Object.assign(d,b)}else o.width&&(d.width=Oe(o.width))}else o.width&&(d.width=Oe(o.width));return d});return()=>{const d=[];if(l.slots.default){const f=l.slots.default();if(o.divide)for(let b=0;b<f.length;b++){if(b>0){const $=t.h("div",{class:{[`${a}__divide`]:!0}});d.push($)}d.push(f[b])}else Reflect.apply([].push,d,f)}const h={class:r.value,style:u.value};return t.h("div",h,d)}}}}const{componentName:ws,create:Ss,scope:jg}=re("row-item"),ul=Ss(vs(ws)),je=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(l=>{typeof l=="string"&&l.indexOf("data-fox")!==0&&(n[l]=e[l])}),n},la={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function xs(e,n,o){return{props:{...Se,...ke,...la},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=we.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),f=de(l,"modelValue"),b=e,$=t.computed(()=>({[b]:!0,[`${b}__disabled`]:r.value,[`${b}__readonly`]:i.value})),y=N=>{f.value=N,s("update:modelValue",N),s("input",N)},g=N=>{s("change",N)};let p=de(l,"hintText"),I=t.ref(!1);const m=N=>{let E=N.target.value;h.value=!0,ye(p.value)||(I.value=!0),s("focus",E,N)},c=N=>{setTimeout(()=>{I.value&&(I.value=!1),h.value=!1},0);let E=N.target.value;l.maxLength&&E.length>Number(l.maxLength)&&(E=E.slice(0,Number(l.maxLength))),s("blur",E,N)},V=()=>{s("clear","")},R=t.ref(!1);let M=null;const k=()=>{l.showTooltip&&R.value===!1&&(M&&clearTimeout(M),M=setTimeout(()=>{R.value=!0},150))},P=()=>{M&&(clearTimeout(M),R.value=!1,M=null)},D=t.computed(()=>R.value||I.value),w=t.computed(()=>R.value?f.value:p.value),T=t.computed(()=>_e(l.unit)>0),z=t.ref();return pe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const C={...je(a.attrs),ref:z,class:$.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:f.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:V,onChange:g,onInput:y,onFocus:m,onBlur:c,onMouseover:k,onMouseleave:P},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:T.value&&(E.suffix=()=>[l.unit]);const Y=[],L=t.h(A.ElInput,C,E);Y.push(L);const G={default:()=>Y};a.slots.default&&(G.label=a.slots.default),a.slots.default&&(G.fixedTip=a.slots.fixedTip);const U={...$e(l,la),hintText:w.value,hintVisible:D.value,prop:`${l.prop}_item`};return t.h(o,U,G)}}}}const{componentName:Ts,create:Cs,scope:$s}=re("input-item"),cl=Cs(xs(Ts,$s,xe));function Qe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Et(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function oa(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function ks(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Ds=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Be(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Ns(){const e=t.getCurrentInstance();return new Ds(e.proxy)}function aa(e,n,o){const l=Qe(e,n),a=Qe(e,o);if(l!==a)return!1;const r=Et(e,n),i=Et(e,o);return r===i}function ra(e,n,o,l){if(l.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(r=>{for(let i of l){const s=oa(e,i);if(Array.isArray(s)&&s.length>0){const u=ra(e,r,o,s)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=Qe(e,i)===r;else if(o==="item")u=aa(e,i,r);else{let d=Et(e,i);d==null&&(d=Qe(e,i)),u=d===r}if(u){a.push(i);break}}}}),a}function Es(e){return{text:e,value:e}}const ia={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Is(e,n,o){return{props:{...Se,...ke,...ia},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=we.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(null),f=t.ref([]),b=t.computed(()=>f.value?f.value.map(F=>Qe(l,F)).join(" "):""),$=(S,F,H,J=!0)=>{const le=ra(l,S,F,H);if(le===null){if(f.value===null||f.value.length===0)return;h.value=null,f.value=[],J&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let x=!0;if(le.length!==f.value.length)x=!1;else for(let X=0;X<le.length;X++){const ne=le[X],ae=f.value[X];if(!aa(l,ne,ae)){x=!1;break}}if(!x){f.value=le;let X=[],ne=[],ae=[];le.forEach(ue=>{const be=Et(l,ue),ge=Qe(l,ue);X.push(be),ae.push(ge),l.valueType==="text"?ne.push(ge):l.valueType==="item"?ne.push(ue):ne.push(be)});let te,oe,se;ce(l.multiple)?(h.value=X,te=t.toRaw(ne),oe=ae,se=t.toRaw(le)):(h.value=X[0]??"",te=t.toRaw(ne[0]??""),oe=ae[0]??"",se=t.toRaw(le[0])),J&&(s("update:modelValue",te),s("change",te,se)),s("update:text",oe)}},y=t.ref(null),g=t.ref(null),p=t.computed(()=>g.value??y.value??[]),I=Ae(t.computed(()=>l.lazyLoad),"lazyLoad",Ge.Near,S=>ce(S)),m=Ns(),c=async(S,F)=>{if(S){const H=await m.load("select",S,F);if(H.length>0)if(typeof H[0]=="string"){let x=H.map(X=>Es(X));y.value=x}else y.value=H;else y.value=null}};t.watch([()=>l.source,()=>l.params],([S,F])=>{g.value=null,c(S,F)},{immediate:!I.value});let V=!1;const R=()=>{V||(V=!0,c(l.source,l.params))};t.watch([()=>y.value,()=>l.modelValue],([S,F])=>{if(D()&&ce(l.multiple)){Le(F,h.value)||(h.value=F);return}$(F,l.valueType,p.value,!1)});let M=null,k=t.ref(!1);typeof l.remoteMethod=="function"&&(M=async S=>{if(S==null){g.value=null;return}k.value=!0;try{const F=await l.remoteMethod(S);F&&(g.value=F)}catch(F){g.value=null,console.error(F)}k.value=!1});let P=null;typeof l.filterMethod=="function"&&(P=async S=>{if(S==null){g.value=null;return}k.value=!0;try{const F=await l.filterMethod(S,y.value);F&&(g.value=F)}catch(F){g.value=null,console.error(F)}k.value=!1});const D=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",w=t.ref(!1),T=e,z=t.computed(()=>({[T]:!0})),N=S=>{l.allowCreate||D()&&ce(l.multiple)?(s("update:modelValue",S),s("change",S),s("update:text",S),h.value=S):$(S,"value",p.value,!0)};let C=de(l,"hintText"),E=t.ref(!1);const Y=S=>{let H=S.target.value;w.value=!0,ye(C.value)||(E.value=!0),s("focus",H,S)},L=S=>{setTimeout(()=>{E.value&&(E.value=!1),w.value=!1},0);let H=S.target.value;l.maxLength&&H.length>Number(l.maxLength)&&(H=H.slice(0,Number(l.maxLength))),j.value||s("blur",H,S)},G=()=>{s("clear","")},K=t.ref(!1);let U=null;const Q=()=>{l.showTooltip&&K.value===!1&&(U&&clearTimeout(U),U=setTimeout(()=>{K.value=!0},150))},_=()=>{U&&(clearTimeout(U),K.value=!1,U=null)},O=t.computed(()=>K.value||E.value),q=t.computed(()=>K.value?b.value:C.value),j=t.ref(!1),B=S=>{j.value=S,s("visible-change",S),S||s("selected")},Z=S=>{s("remove-tag",S)},ee=(S,F)=>{const H=[];return S.forEach((J,le)=>{const x=oa(l,J);if(Array.isArray(x)&&x.length>0){const X=ee(x,F),ne=Qe(l,J),te={key:`${ne}_${le}`,label:ne};H.push(t.h(A.ElOptionGroup,te,{default:()=>X}))}else{const X=Et(l,J),ne=Qe(l,J),ae=ks(l,J),oe={key:`${X}_${le}`,label:ne,disabled:ae,value:X};if(typeof F=="function")H.push(t.h(A.ElOption,oe,{default:()=>F(J)}));else if(l.optionType==="item"){const se={class:{"fox-select-item__option-left":!0}},ue=t.h("span",se,[X]),be={class:{"fox-select-item__option-right":!0}},ge=t.h("span",be,[ne]),tt=t.h("div",{class:{"fox-select-item__option":!0}},[ue,ge]);H.push(t.h(A.ElOption,oe,{default:()=>tt}))}else l.optionType==="value"?H.push(t.h(A.ElOption,oe,{default:()=>[X]})):H.push(t.h(A.ElOption,oe))}}),H},W=t.ref();return pe({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()}}),()=>{const F={...je(a.attrs),ref:W,class:z.value,clearable:l.clearable,multiple:l.multiple,placeholder:d.placeholder.value,disabled:r.value||i.value,modelValue:h.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:G,onChange:N,onFocus:Y,onBlur:L,onVisibleChange:B,onRemoveTag:Z};typeof M=="function"&&(F["remote-method"]=M,F.loading=k.value),typeof P=="function"&&(F["filter-method"]=P,F.loading=k.value);const H={};a.slots.prefix&&(H.prefix=a.slots.prefix),a.slots.empty&&(H.empty=a.slots.empty),a.slots.options?H.default=a.slots.options:H.default=()=>ee(p.value,a.slots.option);const J=[],le=t.h(A.ElSelect,F,H);J.push(le);const x={default:()=>J};a.slots.default&&(x.label=a.slots.default),a.slots.fixedTip&&(x.fixedTip=a.slots.fixedTip);const ne={...$e(l,ia),hintText:q.value,hintVisible:O.value,prop:`${l.prop??a.attrs.name}_item`,onMouseover:Q,onMouseleave:_};return I.value&&(ne["appear-listen"]=!0,ne.onAppear=R),t.h(o,ne,x)}}}}const{componentName:Vs,create:Os,scope:As}=re("select-item"),fl=Os(Is(Vs,As,xe));var Xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sa={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Xe,function(){var o=1e3,l=6e4,a=36e5,r="millisecond",i="second",s="minute",u="hour",d="day",h="week",f="month",b="quarter",$="year",y="date",g="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|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,m={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("_")},c=function(N,C,E){var Y=String(N);return!Y||Y.length>=C?N:""+Array(C+1-Y.length).join(E)+N},V={s:c,z:function(N){var C=-N.utcOffset(),E=Math.abs(C),Y=Math.floor(E/60),L=E%60;return(C<=0?"+":"-")+c(Y,2,"0")+":"+c(L,2,"0")},m:function N(C,E){if(C.date()<E.date())return-N(E,C);var Y=12*(E.year()-C.year())+(E.month()-C.month()),L=C.clone().add(Y,f),G=E-L<0,K=C.clone().add(Y+(G?-1:1),f);return+(-(Y+(E-L)/(G?L-K:K-L))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:$,w:h,d,D:y,h:u,m:s,s:i,ms:r,Q:b}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},R="en",M={};M[R]=m;var k=function(N){return N instanceof T},P=function N(C,E,Y){var L;if(!C)return R;if(typeof C=="string"){var G=C.toLowerCase();M[G]&&(L=G),E&&(M[G]=E,L=G);var K=C.split("-");if(!L&&K.length>1)return N(K[0])}else{var U=C.name;M[U]=C,L=U}return!Y&&L&&(R=L),L||!Y&&R},D=function(N,C){if(k(N))return N.clone();var E=typeof C=="object"?C:{};return E.date=N,E.args=arguments,new T(E)},w=V;w.l=P,w.i=k,w.w=function(N,C){return D(N,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var T=function(){function N(E){this.$L=P(E.locale,null,!0),this.parse(E)}var C=N.prototype;return C.parse=function(E){this.$d=function(Y){var L=Y.date,G=Y.utc;if(L===null)return new Date(NaN);if(w.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var K=L.match(p);if(K){var U=K[2]-1||0,Q=(K[7]||"0").substring(0,3);return G?new Date(Date.UTC(K[1],U,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Q)):new Date(K[1],U,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Q)}}return new Date(L)}(E),this.$x=E.x||{},this.init()},C.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},C.$utils=function(){return w},C.isValid=function(){return this.$d.toString()!==g},C.isSame=function(E,Y){var L=D(E);return this.startOf(Y)<=L&&L<=this.endOf(Y)},C.isAfter=function(E,Y){return D(E)<this.startOf(Y)},C.isBefore=function(E,Y){return this.endOf(Y)<D(E)},C.$g=function(E,Y,L){return w.u(E)?this[Y]:this.set(L,E)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(E,Y){var L=this,G=!!w.u(Y)||Y,K=w.p(E),U=function(ee,W){var S=w.w(L.$u?Date.UTC(L.$y,W,ee):new Date(L.$y,W,ee),L);return G?S:S.endOf(d)},Q=function(ee,W){return w.w(L.toDate()[ee].apply(L.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(W)),L)},_=this.$W,O=this.$M,q=this.$D,j="set"+(this.$u?"UTC":"");switch(K){case $:return G?U(1,0):U(31,11);case f:return G?U(1,O):U(0,O+1);case h:var B=this.$locale().weekStart||0,Z=(_<B?_+7:_)-B;return U(G?q-Z:q+(6-Z),O);case d:case y:return Q(j+"Hours",0);case u:return Q(j+"Minutes",1);case s:return Q(j+"Seconds",2);case i:return Q(j+"Milliseconds",3);default:return this.clone()}},C.endOf=function(E){return this.startOf(E,!1)},C.$set=function(E,Y){var L,G=w.p(E),K="set"+(this.$u?"UTC":""),U=(L={},L[d]=K+"Date",L[y]=K+"Date",L[f]=K+"Month",L[$]=K+"FullYear",L[u]=K+"Hours",L[s]=K+"Minutes",L[i]=K+"Seconds",L[r]=K+"Milliseconds",L)[G],Q=G===d?this.$D+(Y-this.$W):Y;if(G===f||G===$){var _=this.clone().set(y,1);_.$d[U](Q),_.init(),this.$d=_.set(y,Math.min(this.$D,_.daysInMonth())).$d}else U&&this.$d[U](Q);return this.init(),this},C.set=function(E,Y){return this.clone().$set(E,Y)},C.get=function(E){return this[w.p(E)]()},C.add=function(E,Y){var L,G=this;E=Number(E);var K=w.p(Y),U=function(O){var q=D(G);return w.w(q.date(q.date()+Math.round(O*E)),G)};if(K===f)return this.set(f,this.$M+E);if(K===$)return this.set($,this.$y+E);if(K===d)return U(1);if(K===h)return U(7);var Q=(L={},L[s]=l,L[u]=a,L[i]=o,L)[K]||1,_=this.$d.getTime()+E*Q;return w.w(_,this)},C.subtract=function(E,Y){return this.add(-1*E,Y)},C.format=function(E){var Y=this,L=this.$locale();if(!this.isValid())return L.invalidDate||g;var G=E||"YYYY-MM-DDTHH:mm:ssZ",K=w.z(this),U=this.$H,Q=this.$m,_=this.$M,O=L.weekdays,q=L.months,j=function(W,S,F,H){return W&&(W[S]||W(Y,G))||F[S].slice(0,H)},B=function(W){return w.s(U%12||12,W,"0")},Z=L.meridiem||function(W,S,F){var H=W<12?"AM":"PM";return F?H.toLowerCase():H},ee={YY:String(this.$y).slice(-2),YYYY:this.$y,M:_+1,MM:w.s(_+1,2,"0"),MMM:j(L.monthsShort,_,q,3),MMMM:j(q,_),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:j(L.weekdaysMin,this.$W,O,2),ddd:j(L.weekdaysShort,this.$W,O,3),dddd:O[this.$W],H:String(U),HH:w.s(U,2,"0"),h:B(1),hh:B(2),a:Z(U,Q,!0),A:Z(U,Q,!1),m:String(Q),mm:w.s(Q,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:K};return G.replace(I,function(W,S){return S||ee[W]||K.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(E,Y,L){var G,K=w.p(Y),U=D(E),Q=(U.utcOffset()-this.utcOffset())*l,_=this-U,O=w.m(this,U);return O=(G={},G[$]=O/12,G[f]=O,G[b]=O/3,G[h]=(_-Q)/6048e5,G[d]=(_-Q)/864e5,G[u]=_/a,G[s]=_/l,G[i]=_/o,G)[K]||_,L?O:w.a(O)},C.daysInMonth=function(){return this.endOf(f).$D},C.$locale=function(){return M[this.$L]},C.locale=function(E,Y){if(!E)return this.$L;var L=this.clone(),G=P(E,Y,!0);return G&&(L.$L=G),L},C.clone=function(){return w.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},N}(),z=T.prototype;return D.prototype=z,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",d],["$M",f],["$y",$],["$D",y]].forEach(function(N){z[N[1]]=function(C){return this.$g(C,N[0],N[1])}}),D.extend=function(N,C){return N.$i||(N(C,T,D),N.$i=!0),D},D.locale=P,D.isDayjs=k,D.unix=function(N){return D(1e3*N)},D.en=M[R],D.Ls=M,D.p={},D})})(sa);var Bs=sa.exports;const He=Ze(Bs);var ua={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Xe,function(){var o={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"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(p){this[g]=+p}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var I=p.match(/([+-]|\d\d)/g),m=60*I[1]+(+I[2]||0);return m===0?0:I[0]==="+"?-m:m}(g)}],f=function(g){var p=s[g];return p&&(p.indexOf?p:p.s.concat(p.f))},b=function(g,p){var I,m=s.meridiem;if(m){for(var c=1;c<=24;c+=1)if(g.indexOf(m(c,0,p))>-1){I=c>12;break}}else I=g===(p?"pm":"PM");return I},$={A:[i,function(g){this.afternoon=b(g,!1)}],a:[i,function(g){this.afternoon=b(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[a,d("day")],Do:[i,function(g){var p=s.ordinal,I=g.match(/\d+/);if(this.day=I[0],p)for(var m=1;m<=31;m+=1)p(m).replace(/\[|\]/g,"")===g&&(this.day=m)}],M:[r,d("month")],MM:[a,d("month")],MMM:[i,function(g){var p=f("months"),I=(f("monthsShort")||p.map(function(m){return m.slice(0,3)})).indexOf(g)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[i,function(g){var p=f("months").indexOf(g)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(g){this.year=u(g)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function y(g){var p,I;p=g,I=s&&s.formats;for(var m=(g=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,w,T){var z=T&&T.toUpperCase();return w||I[T]||o[T]||I[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(N,C,E){return C||E.slice(1)})})).match(l),c=m.length,V=0;V<c;V+=1){var R=m[V],M=$[R],k=M&&M[0],P=M&&M[1];m[V]=P?{regex:k,parser:P}:R.replace(/^\[|\]$/g,"")}return function(D){for(var w={},T=0,z=0;T<c;T+=1){var N=m[T];if(typeof N=="string")z+=N.length;else{var C=N.regex,E=N.parser,Y=D.slice(z),L=C.exec(Y)[0];E.call(w,L),D=D.replace(L,"")}}return function(G){var K=G.afternoon;if(K!==void 0){var U=G.hours;K?U<12&&(G.hours+=12):U===12&&(G.hours=0),delete G.afternoon}}(w),w}}return function(g,p,I){I.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var m=p.prototype,c=m.parse;m.parse=function(V){var R=V.date,M=V.utc,k=V.args;this.$u=M;var P=k[1];if(typeof P=="string"){var D=k[2]===!0,w=k[3]===!0,T=D||w,z=k[2];w&&(z=k[2]),s=this.$locale(),!D&&z&&(s=I.Ls[z]),this.$d=function(Y,L,G){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*Y);var K=y(L)(Y),U=K.year,Q=K.month,_=K.day,O=K.hours,q=K.minutes,j=K.seconds,B=K.milliseconds,Z=K.zone,ee=new Date,W=_||(U||Q?1:ee.getDate()),S=U||ee.getFullYear(),F=0;U&&!Q||(F=Q>0?Q-1:ee.getMonth());var H=O||0,J=q||0,le=j||0,x=B||0;return Z?new Date(Date.UTC(S,F,W,H,J,le,x+60*Z.offset*1e3)):G?new Date(Date.UTC(S,F,W,H,J,le,x)):new Date(S,F,W,H,J,le,x)}catch{return new Date("")}}(R,P,M),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),T&&R!=this.format(P)&&(this.$d=new Date("")),s={}}else if(P instanceof Array)for(var N=P.length,C=1;C<=N;C+=1){k[1]=P[C-1];var E=I.apply(this,k);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}C===N&&(this.$d=new Date(""))}else c.call(this,V)}}})})(ua);var Fs=ua.exports;const Rs=Ze(Fs);var ca={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l,a){var r=l.prototype,i=r.format;a.en.ordinal=function(s){var u=["th","st","nd","rd"],d=s%100;return"["+s+(u[(d-20)%10]||u[d]||u[0])+"]"},r.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var h=this.$utils(),f=(s||"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(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return h.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return h.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return h.s(String(u.$H===0?24:u.$H),b==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return b}});return i.bind(this)(f)}}})})(ca);var Ms=ca.exports;const Ls=Ze(Ms);var fa={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l,a){var r=l.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,b,$,y,g){var p=f.name?f:f.$locale(),I=i(p[b]),m=i(p[$]),c=I||m.map(function(R){return R.slice(0,y)});if(!g)return c;var V=p.weekStart;return c.map(function(R,M){return c[(M+(V||0))%7]})},u=function(){return a.Ls[a.locale()]},d=function(f,b){return f.formats[b]||function($){return $.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,g,p){return g||p.slice(1)})}(f.formats[b.toUpperCase()])},h=function(){var f=this;return{months:function(b){return b?b.format("MMMM"):s(f,"months")},monthsShort:function(b){return b?b.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):s(f,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return d(f.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},a.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(b){return d(f,b)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(u(),"months")},a.monthsShort=function(){return s(u(),"monthsShort","months",3)},a.weekdays=function(f){return s(u(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(u(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(u(),"weekdaysMin","weekdays",2,f)}}})})(fa);var _s=fa.exports;const Ps=Ze(_s);var da={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Xe,function(){var o="week",l="year";return function(a,r,i){var s=r.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(l).add(1,l).date(d),f=i(this).endOf(o);if(h.isBefore(f))return 1}var b=i(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),$=this.diff(b,o,!0);return $<0?i(this).startOf("week").week():Math.ceil($)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(da);var qs=da.exports;const zs=Ze(qs);var ha={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l){l.prototype.weekYear=function(){var a=this.month(),r=this.week(),i=this.year();return r===1&&a===11?i+1:a===0&&r>=52?i-1:i}}})})(ha);var js=ha.exports;const Hs=Ze(js);var ma={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l,a){l.prototype.dayOfYear=function(r){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})})(ma);var Ks=ma.exports;const Ws=Ze(Ks);var ga={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l){l.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(ga);var Ys=ga.exports;const Us=Ze(Ys);var ya={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l){l.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(ya);var Gs=ya.exports;const Xs=Ze(Gs);He.extend(Ps),He.extend(Ls),He.extend(Rs),He.extend(zs),He.extend(Hs),He.extend(Ws),He.extend(Us),He.extend(Xs);const ie={format(e,n){return He(e).format(n)},parser(e,n){return He(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const a=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[o,l,a].join(n)},getDay(e,n){e=e||0;let o=n??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),this.date2Str(o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(o>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let l;return typeof n=="string"?l=new Date(n).getTime():l=n,o==l},getMonthWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o));let r=a.getDay(),i=a.getDate(),s=6-r;return l!==0&&(r=r==0?7:r,s=7-r),Math.ceil((i+s)/7)},getYearWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=new Date(Number(e),0,1),i=Math.round((a.valueOf()-r.valueOf())/864e5);let s=a.getDay(),u=6-s;return l!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=a.getTime();let i=a.getDay();if(l===0){const u=r-i*864e5,d=r+(6-i)*864e5,h=this.date2Str(new Date(u)),f=this.date2Str(new Date(d));return[h,f]}else{i=i==0?7:i;const s=24*60*60*1e3,u=r-(i-1)*s,d=r+(7-i)*s,h=this.date2Str(new Date(u)),f=this.date2Str(new Date(d));return[h,f]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ie.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ie.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const l=new Date(new Date(n).setDate(n.getDate()+o)),a=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i},inScope4Month(e,n,o){const l=new Date(new Date(n).setMonth(n.getMonth()+o)),a=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i}},pa=new Date().getFullYear(),dl={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},fn=(e,n,o)=>{let l;if(We(n)?l=n:typeof n=="string"&&_e(n)>0?l=ie.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let a=Math.max(l.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},hl=(e,n,o)=>{We(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),ie.format(new Date(l),o)};let ml={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},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(pa-10,0,1),validator:We},maxDate:{type:Date,default:()=>new Date(pa+10,11,31),validator:We},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};function Zs(e){return e===window}const gl=e=>{const n=t.unref(e);if(Zs(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},yl={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},ba=2e3;let va=ba;const Js=(e,n)=>({components:n,props:{...yl},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const a=t.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),r=t.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=t.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==ba&&(va=Number(o.zIndex)),l("update:visible",!0),a.zIndex=++va,o.destroyOnClose&&(a.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},h=g=>{l("click-pop",g)},f=g=>{g.stopPropagation(),l("click-close-icon",g),l("update:visible",!1)},b=g=>{l("click-overlay",g),o.closeOnClickOverlay&&l("update:visible",!1)},$=g=>{l("opend",g)},y=g=>{l("closed",g)};return t.watch(()=>o.visible,g=>{o.visible?u():d()}),t.watch(()=>o.closeable,g=>{a.closed=g}),{...t.toRefs(a),popStyle:i,transitionName:s,classes:r,onClick:h,onClickCloseIcon:f,onClickOverlay:b,onOpened:$,onClosed:y}}});let It=0;const wa="fox-overflow-hidden",Sa=()=>ot?document.body:{classList:[]},Qs=e=>[()=>{if(e())try{!It&&Sa().classList.add(wa),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&Sa().classList.remove(wa)}catch{}}],eu={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:tu,create:nu}=re("overlay"),lu=nu({props:{...eu},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Qs(()=>e.lockScroll),a=t.computed(()=>({[tu]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,s=>{s?o():l()}),{classes:a,style:r,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function ou(e,n,o,l,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const dn=De(lu,[["render",ou]]),au=["aria-labelledby"],ru=t.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),iu=[ru],su=t.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=u=>{l("click",u)},r=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=t.computed(()=>{const u={};return u.height=r(o.height)??r(o.size),u.width=r(o.width)??r(o.size),u.color=o.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},iu,14,au))}}),uu=["aria-labelledby"],cu=t.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),fu=[cu],hn=t.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=u=>{l("click",u)},r=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=t.computed(()=>{const u={};return u.height=r(o.height)??r(o.size),u.width=r(o.width)??r(o.size),u.color=o.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},fu,14,uu))}}),du=["aria-labelledby"],hu=t.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),mu=[hu],gu=t.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=u=>{l("click",u)},r=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=t.computed(()=>{const u={};return u.height=r(o.height)??r(o.size),u.width=r(o.width)??r(o.size),u.color=o.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},mu,14,du))}}),yu=["aria-labelledby"],pu=t.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),bu=[pu],xa=t.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=u=>{l("click",u)},r=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=t.computed(()=>{const u={};return u.height=r(o.height)??r(o.size),u.width=r(o.width)??r(o.size),u.color=o.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},bu,14,yu))}}),vu=["aria-labelledby"],wu=t.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Su=[wu],xu=t.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=u=>{l("click",u)},r=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=t.computed(()=>{const u={};return u.height=r(o.height)??r(o.size),u.width=r(o.width)??r(o.size),u.color=o.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Su,14,vu))}}),{componentName:Tu,create:Cu}=re("popup"),$u=Cu(Js(Tu,{FoxOverLay:dn,Close:gu}));function ku(e,n,o,l,a,r){const i=t.resolveComponent("FoxOverLay"),s=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(s)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const mt=De($u,[["render",ku]]),Ta=10;function Ca(e,n){return e>n&&e>Ta?"horizontal":n>e&&n>Ta?"vertical":""}function pl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function bl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Ca(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:l,isVertical:n,isHorizontal:o,state:e}}function $a(){const e=t.ref(0),n=t.ref(0),o=t.ref(0),l=t.ref(0),a=t.ref(0),r=t.ref(0),i=t.ref(0),s=t.ref(0),u=t.ref(0),d=t.ref(0),h=t.ref(""),f=()=>h.value==="vertical",b=()=>h.value==="horizontal",$=()=>{i.value=0,s.value=0,u.value=0,d.value=0,h.value="",o.value=0};return{move:p=>{if(p.touches){const c=p.touches[0];i.value=c.clientX-e.value,s.value=c.clientY-n.value,a.value=c.clientX,r.value=c.clientY}else{const m=p;i.value=m.clientX-e.value,s.value=m.clientY-n.value,a.value=m.clientX,r.value=m.clientY}u.value=Math.abs(i.value),d.value=Math.abs(s.value),l.value=Date.now()-o.value,h.value||(h.value=Ca(u.value,d.value))},start:p=>{if($(),p.touches){const c=p.touches[0];e.value=c.clientX,n.value=c.clientY}else{const m=p;e.value=m.clientX,n.value=m.clientY}o.value=Date.now()},reset:$,startX:e,startY:n,startTime:o,duration:l,moveX:a,moveY:r,deltaX:i,deltaY:s,offsetX:u,offsetY:d,direction:h,isVertical:f,isHorizontal:b}}const ka={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},vl={...yl,...ka,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},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:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let Da=36;function Du(){return Da}function Nu(e){Da=e}function Ke(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function wl(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Eu(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Na(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Iu=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Be(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Vu(){const e=t.getCurrentInstance();return new Iu(e.proxy)}function Ea(e,n,o){const l=Ke(e,n),a=Ke(e,o);if(l!==a)return!1;const r=rt(e,n),i=rt(e,o);return r===i}function Ou(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const s=n[i];let d=o[i].findIndex(h=>{if(r==="text")return Ke(e,h)===s;if(r==="value"){let f=rt(e,h);return f==null&&(f=Ke(e,h)),f===s}else if(r==="item")return Ea(e,h,s)});if(d==-1)break;a.push(d)}else{let i=o[0];for(let s=0;s<n.length;s++){const u=n[s];let d=i.findIndex(f=>{if(r==="text")return Ke(e,f)===u;if(r==="value"){let b=rt(e,f);return b==null&&(b=Ke(e,f)),b===u}else if(r==="item")return Ea(e,f,u)});if(d==-1)break;a.push(d);const h=wl(e,i[d]);if(!Array.isArray(h))break;i=h}}return a}function Ia(e,n,o,l){if(o.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const s=o[i];let u=n[i];u<0&&u>=s.length&&(u=0);const d=s[u],h=Ke(e,d);if(a.texts.push(h),a.items.push(d),r==="text")a.values.push(h);else if(r==="value"){let f=rt(e,d);f==null&&(f=h),a.values.push(f)}else a.values.push(d)}else{let i=o[0];for(let s=0;s<n.length;s++){let u=n[s];u<0&&u>=i.length&&(u=0);const d=i[u],h=Ke(e,d),f=Object.assign({},d);if(f.children=null,a.texts.push(h),a.items.push(f),r==="text")a.values.push(h);else if(r==="value"){let b=rt(e,d);b==null&&(b=h),a.values.push(b)}else a.values.push(f);if(!Array.isArray(d.children))break;i=d.children}}return a}function Va(e){return{text:e,value:e}}const Au=15,Bu=300,Fu=200,{create:Ru}=re("picker-column");function Mu(e){e.stopPropagation()}function Lu(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Mu(e)}const _u=Ru({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:35},visible:{type:Boolean,default:!1},...ka},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=t.computed(()=>({"fox-picker__list":!0})),l=t.computed(()=>({height:`${he(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=k=>k>=f.currIndex+8||k<=f.currIndex-8,s=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${r.value}px`})),u=k=>`transform: rotate3d(1, 0, 0, ${-f.rotation*k}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+r.value}px, 0)`})),h=t.ref(null),f=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),b=k=>Ke(e,k),$=k=>rt(e,k),y=$a(),g=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},p=(k,P=!1,D=!1)=>{if(f.currIndex=k,P){const w=()=>{e.visible!==!1&&(f.moving=!1,n("update:modelValue",k),n("change",k))};D?f.transitionEndTrigger=w:w()}},I=(k,P,D)=>{let w=k+f.startDistance;if(P==="end"){const T=-(e.source.length-1)*e.itemHeight;w<T&&(w=T,(!D||D<=0)&&(D=e.swipeDuration)),w>0&&(w=0,(!D||D<=0)&&(D=e.swipeDuration));let z=Math.abs(Math.round(-w/e.itemHeight));const N=-z*e.itemHeight,C=`${(z+1)*f.rotation}deg`,E=D?D>0:!1;p(z,!0,E),m(N,P,D,C)}else{let T=(-w/e.itemHeight+1)*f.rotation;const z=(e.source.length+1)*f.rotation,N=0;if(T=Math.min(Math.max(T,N),z),e.threeDimensional&&(T<N||T>z))return;m(w,null,void 0,`${T}deg`)}},m=(k=0,P,D=Fu,w)=>{P==="end"?f.scrollTime=D:f.scrollTime=0,f.deg=w,f.scrollDistance=k},c=(k,P)=>(k=Math.abs(k/P)/.003*(k<0?-1:1),k),V=k=>{e.readonly||(f.startDistance=f.scrollDistance,y.start(k),f.transitionEndTrigger=null)},R=k=>{e.readonly||(f.moving=!0,y.move(k),y.isVertical()&&(f.moving=!0,Lu(k,!0)),I(y.deltaY.value,"",0))},M=()=>{if(e.readonly)return;const k=y.deltaY.value,P=y.duration.value;if(P<Bu&&Math.abs(k)>Au){const w=c(k,P);I(w,"end",e.swipeDuration)}else I(k,"end",0)};return t.watch(()=>e.modelValue,k=>{const P=f.currIndex-k;if(P!==0){f.currIndex=k;const D=-P*e.itemHeight;I(D)}}),t.watch(()=>e.source,k=>{if(f.currIndex>=k.length){const w=(k.length-1-f.currIndex)*e.itemHeight;I(w,"end",0)}}),t.onMounted(()=>{const k=-e.modelValue*e.itemHeight;I(k)}),{classes:o,styles:l,contentClasses:a,itemText:b,itemValue:$,...t.toRefs(f),roller:h,getItemText:Ke,onTouchStart:V,onTouchMove:R,onTouchEnd:M,isHidden:i,setRollerStyle:u,touchRollerStyle:s,touchTileStyle:d,stopMomentum:g}}}),Pu={key:1,class:"fox-picker__item-tile"};function qu(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${s}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(s+1)}]),style:t.normalizeStyle(e.setRollerStyle(s+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",Pu,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const zu=De(_u,[["render",qu]]),{create:ju,componentName:Hu,scope:Ku}=re("picker"),Wu=ju({components:{PickerColumn:zu,Popup:mt},props:{...vl},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=we.useFoxI18n(Ku),a=o(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(Du());t.watch(()=>e.visible,w=>{w&&i.value<=0&&setTimeout(()=>{if(r.value){const T=gl(r.value);i.value=T.height,Nu(i.value)}},50)});const s=t.computed(()=>({[Hu]:!0})),u=Vu(),d=t.ref("singleColumn");let h=t.ref([]);t.watch([()=>e.source,()=>e.params],async([w,T])=>{if(w){let z=await u.load("select",w,T);if(z.length>0){let N=z[0];if(Array.isArray(N)){if(typeof N[0]=="string"){let C=z,E=[];C.forEach(Y=>{let L=Y.map(G=>Va(G));E.push(L)}),h.value=E}else h.value=z;d.value="multipleColumn"}else if(typeof N=="string"){let C=z,E=[],Y=C.map(L=>Va(L));E.push(Y),h.value=E,d.value="singleColumn"}else{const C=wl(e,N);Array.isArray(C)?(d.value="cascade",h.value=[z]):(d.value="singleColumn",h.value=[z])}}else h.value=[]}},{immediate:!0});const f=t.ref([]),b=t.ref(e.modelValue),$=t.ref([]),y=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([w,T])=>{let z=Ou(e,w,T,d.value);if(!Le(z,y.value)){y.value=z;let N=Ia(e,z,T,d.value);N&&(f.value=N.texts,n("update:text",f.value))}});const g=t.ref(e.visible);t.watch(()=>e.visible,w=>{g.value=w});const p=w=>{let T=Na(e,w);return Me(T)?T.defaultIndex??0:0},I=w=>{if(e.readonly===!0)return!0;let T=Na(e,w);return Me(T)?T.readonly??!1:!1},m=(w,T)=>{let z=y.value;z[w]=T;for(let C=0;C<w;C++)z[C]==null&&(z[C]=p(C));if(d.value==="cascade")for(let C=w+1;C<V.value.length;C++){let E=p(C);C<z.length?z[C]=E:z.push(E)}else for(let C=z.length;C<V.value.length;C++){let E=p(C);z.push(E)}y.value=z;let N=Ia(e,z,h.value,d.value);N&&(f.value=N.texts,b.value=N.values,$.value=N.items)},c=w=>w<y.value.length?y.value[w]:p(w),V=t.computed(()=>{if(h.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return h.value;let w=[],T=0,z=h.value[0],N=0;for(;;){let C=z.map(L=>{let G=Object.assign({},L);return Eu(e,G,null),G});w.push(C),T>=y.value.length?N=0:N=y.value[T],(N<0||N>=z.length)&&(N=0);let E=z[N];const Y=wl(e,E);if(!Array.isArray(Y))break;z=Y,T++}return w}),R=t.computed(()=>he(+e.visibleItemCount-1)/2*i.value);return{...a,pickerLineRef:r,classes:s,columns:V,dataType:d,show:g,itemHeight:i,top:R,isReadonly:I,getIndex:c,change:(w,T)=>{if(m(w,T),d.value==="singleColumn"){let z=b.value.length>0?b.value[0]:"",N=$.value.length>0?$.value[0]:null;e.readonly||n("change",z,N)}else e.readonly||n("change",b.value,$.value)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let w=h.value.length-1;for(;w>=0&&!(y.value[w]===null||y.value[w]===void 0);w--);if(w>=0&&m(w,0),d.value==="singleColumn"){let T=b.value.length>0?b.value[0]:"",z=$.value.length>0?$.value[0]:null;e.readonly||(n("update:modelValue",T),n("update:text",f.value),n("change",T,z)),n("confirm",T)}else e.readonly||(n("update:modelValue",b.value),n("update:text",f.value),n("change",b.value,$.value)),n("confirm",b.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}d.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),Yu={class:"fox-picker__bar"},Uu={class:"fox-picker__title"},Gu={class:"fox-picker__bar__action"},Xu={class:"fox-picker__column"};function Zu(e,n,o,l,a,r){const i=t.resolveComponent("PickerColumn"),s=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(s,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=u=>e.show=u),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",Yu,[t.createElementVNode("view",Uu,t.toDisplayString(e.title),1),t.createElementVNode("view",Gu,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...u)=>e.close&&e.close(...u))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...u)=>e.confirm&&e.confirm(...u))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...u)=>e.clear&&e.clear(...u))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Xu,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(u,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(i,{visible:e.show,source:u,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":h=>e.change(d,h),"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},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const Vt=De(Wu,[["render",Zu]]),{create:Ju,scope:Qu}=re("date-picker"),ec=Ju({components:{Picker:Vt},props:{...ml},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=we.useFoxI18n(Qu),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds")},a=t.ref(!1);t.watch(()=>e.visible,m=>{a.value=m});function r(m,c){return new Date(m,c,0).getDate()}const i=(m,c)=>{const V=e[`${m}Date`],R=V.getFullYear();let M=1,k=1,P=0,D=0;m==="max"&&(M=12,k=r(c.getFullYear(),c.getMonth()+1),P=23,D=59);const w=D;return c.getFullYear()===R&&(M=V.getMonth()+1,c.getMonth()+1===M&&(k=V.getDate(),c.getDate()===k&&(P=V.getHours(),c.getHours()===P&&(D=V.getMinutes())))),{[`${m}Year`]:R,[`${m}Month`]:M,[`${m}Date`]:k,[`${m}Hour`]:P,[`${m}Minute`]:D,[`${m}Seconds`]:w}},s=t.computed(()=>{if(!b.value)return[];const{maxYear:m,maxDate:c,maxMonth:V,maxHour:R,maxMinute:M,maxSeconds:k}=i("max",b.value),{minYear:P,minDate:D,minMonth:w,minHour:T,minMinute:z,minSeconds:N}=i("min",b.value);let C=[{type:"year",range:[P,m]},{type:"month",range:[w,V]},{type:"day",range:[D,c]},{type:"hour",range:[T,R]},{type:"minute",range:[z,M]},{type:"seconds",range:[N,k]}];switch(e.type){case"date":C=C.slice(0,3);break;case"datetime":C=C.slice(0,5);break;case"time":C=C.slice(3,6);break;case"year-month":C=C.slice(0,2);break;case"month-day":C=C.slice(1,3);break;case"datehour":C=C.slice(0,4);break;case"hour-minute":C=C.slice(3,5);break}return C}),u=(m,c,V)=>{if(!(c>m))return null;const R=[];for(;m<=c;)e.isShowChinese?R.push({text:m+l[V],value:m}):R.push({text:`${m}`,value:m}),V==="minute"?m+=e.minuteStep:m++;return R},d=t.computed(()=>{let m=[];return s.value.forEach(c=>{let V=u(c.range[0],c.range[1],c.type);V&&m.push(V)}),m}),h=(m,c)=>m==="year"?c.getFullYear():m==="month"?c.getMonth()+1:m==="day"?c.getDate():m==="hour"?c.getHours():m==="minute"?c.getMinutes():m==="seconds"?c.getSeconds():0,f=t.ref(),b=t.ref(null);t.watch(()=>e.modelValue,m=>{let c;if(typeof m=="string"?m.length==0?c=new Date:e.valueFormat?c=fn(e,e.modelValue,e.valueFormat):c=fn(e,m,dl[e.type]):We(m)?c=m:c=new Date,!!c&&(!b.value||c.getTime()!==b.value.getTime())){b.value=c;let V=[];s.value.forEach(R=>{let M=h(R.type,c);V.push(M)}),f.value=V}},{immediate:!0});const $=m=>{if(e.type==="date"){const c=m[0],V=m[1]-1,R=Math.min(m[2],r(c,V));R!==m[2]&&(m[2]=R),b.value=new Date(c,V,R)}else if(e.type==="datetime"){const c=m[0],V=m[1]-1,R=Math.min(m[2],r(c,V)),M=m[3],k=m[4];R!==m[2]&&(m[2]=R),b.value=new Date(c,V,R,M,k)}else if(e.type==="time"){const c=m[0],V=m[1],R=m[2],M=b.value??new Date,k=new Date(M.getFullYear(),M.getMonth(),M.getDate(),c,V,R);b.value=k}else if(e.type==="year-month"){const c=m[0],V=m[1]-1;b.value=new Date(c,V)}else if(e.type==="month-day"){const V=(b.value??new Date).getFullYear(),R=m[0]-1,M=Math.min(m[1],r(V,R));M!==m[1]&&(m[1]=M);const k=new Date(V,R,M);b.value=k}else if(e.type==="datehour"){const c=m[0],V=m[1]-1,R=Math.min(m[2],r(c,V)),M=m[3];R!==m[2]&&(m[2]=R),b.value=new Date(c,V,R,M)}else if(e.type==="hour-minute"){const c=m[0],V=m[1],R=b.value??new Date,M=new Date(R.getFullYear(),R.getMonth(),R.getDate(),c,V);b.value=M}f.value=m};return{columns:d,dateIndexs:f,show:a,onChange:m=>{$(m)},onClose:()=>{a.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:m=>{$(m),a.value=!1;let c=b.value??new Date;if(e.valueFormat){let V=hl(e,c,e.valueFormat);n("update:modelValue",V)}else n("update:modelValue",c);n("update:visible",!1),n("confirm",m)},onClear:()=>{n("clear")}}}});function tc(e,n,o,l,a,r){const i=t.resolveComponent("Picker");return t.openBlock(),t.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const mn=De(ec,[["render",tc]]);function nc(e){let n=e.format;if(!n){let o=e.type??"date";n=dl[o]}return n}const Oa={...ml,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function lc(e,n,o){return{props:{...Se,...ke,...Oa,isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1,default:"长期"},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1,default:"2999-01-01"}},emits:["change","update:modelValue","update:longTerm","blur","focus","clear"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=we.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),b=de(l,"modelValue",K=>K==null?null:typeof K=="string"?K.length==0?null:l.valueFormat?fn(l,K,l.valueFormat)??K:fn(l,K,dl[l.type])??K:We(K)?K:null),$=t.computed(()=>{if(!b.value)return"";const K=nc(l);return hl(l,b.value,K)}),y=e,g=t.computed(()=>({[`${y}__input`]:!0})),p=Ae(t.computed(()=>l.textAlign),"textAlign"),I=t.computed(()=>({textAlign:p.value??"right"}));let m=de(l,"hintText"),c=t.ref(!1);const V=t.ref(!1),R=()=>{V.value=!0},M=()=>{V.value=!1},k=K=>{V.value=K},P=K=>{if(b.value=K,l.valueFormat){let U=hl(l,K,l.valueFormat);s("update:modelValue",U,{}),s("change",U,{})}else s("update:modelValue",K,{}),s("change",K,{})},D=K=>{let Q=K.target.value;h.value=!0,s("focus",Q,K)},w=K=>{setTimeout(()=>{h.value=!1},0);let Q=K.target.value;l.maxLength&&Q.length>Number(l.maxLength)&&(Q=Q.slice(0,Number(l.maxLength))),s("blur",Q,K)},T=K=>{b.value="",s("update:modelValue","",K),s("change","",K),s("clear",""),M()},z=t.computed(()=>_e(l.unit)>0),N=Ae(t.computed(()=>l.longTermValue),"longTermValue",Ge.Near);let C=null;const E=t.ref(ce(l.longTerm)),Y=K=>{if(E.value=K,s("update:longTerm",K),K){let U="";Array.isArray(N.value)?U=N.value.map((Q,_)=>Q||(Array.isArray(b.value)&&b.value[_]?b.value[_]:l.valueFormat?ie.format(new Date,l.valueFormat):new Date)):U=N.value,C=b.value,s("update:modelValue",U)}else s("update:modelValue",C)},L=ce(l.isLongTerm);if(L){const K=()=>{if(E.value===!0){let U="";Array.isArray(N.value)?U=N.value.map((Q,_)=>Q||(Array.isArray(b.value)&&b.value[_]?b.value[_]:l.valueFormat?ie.format(new Date,l.valueFormat):new Date)):U=N.value,C=b.value,s("update:modelValue",U)}else Le(N.value,b.value)&&(E.value=!0)};K(),t.watch([()=>l.longTerm],([U])=>{E.value!==U&&K()})}const G=t.ref();return pe({showPicker:R,hidePicker:M,focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()},select:()=>{G?.value.select()}}),()=>{const K={class:g.value,style:I.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:l.clearable,value:$.value,onClick:R,onFocus:D,onBlur:w},U={};a.slots.prepend&&(U.prepend=a.slots.prepend),a.slots.append&&(U.append=a.slots.append),a.slots.prefix?U.prefix=a.slots.prefix:U.prefix=()=>t.h(A.ElIcon,{},{default:()=>t.h(ve.Calendar)}),a.slots.suffix?U.suffix=a.slots.suffix:z.value&&(U.suffix=()=>[l.unit]);const Q=[],_=t.h(A.ElInput,K,U);Q.push(_);const O={default:()=>Q};a.slots.default&&(O.label=a.slots.default),a.slots.fixedTip&&(O.fixedTip=a.slots.fixedTip);const q=ut(l,ml);q.valueFormat=null,q.disabled=!1,q.readonly=r.value||i.value||E.value,q.visible=V.value,q["onUpdate:visible"]=k,q.modelValue=b.value,q["onUpdate:modelValue"]=P,q.onClear=T;const j={};if(a.slots.top){const S=a.slots.top();j.top=()=>S}if(a.slots.bottom){const S=a.slots.bottom();j.default=()=>S}const B=t.h(mn,q,j);if(O.hide=()=>[B],L){const S={label:l.longTermText,modelValue:E.value,"onUpdate:modelValue":Y},F=t.h(A.ElCheckbox,S),H=t.h("div",{class:{[`${y}__append`]:!0}},[F]);O.append=()=>H}const ee={...$e(l,Oa),class:{[`${y}__wrapper`]:!0,"has-append":L},hintText:m.value,hintVisible:c.value,prop:`${l.prop??a.attrs.name}_item`};return t.h(o,ee,O)}}}}const{componentName:oc,create:ac,scope:rc}=re("date-item"),Sl=ac(lc(oc,rc,xe)),ic=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),xl={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},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:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popClass:{type:String},popStyle:{type:Object}},Aa=39,Ba=64,{create:sc,scope:uc}=re("calendar-pane"),cc=sc({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},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:""},startDate:{type:String,default:ie.getDay(0)},endDate:{type:String,default:ie.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l,t:a}=we.useFoxI18n(uc),r=l(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${Aa}px`})),s=t.computed(()=>({height:`${Ba}px`})),u=JSON.parse(a("weekdays")),d=t.ref([...u.slice(e.firstDayOfWeek,7),...u.slice(0,e.firstDayOfWeek)]),h=t.ref(null),f=t.ref(null),b=t.ref(null),$=t.ref(null),y=t.ref(0),g=t.computed(()=>c.monthsData.slice(c.defaultRange[0],c.defaultRange[1])),p=t.computed(()=>o.btn),I=t.computed(()=>o["top-info"]),m=t.computed(()=>o["bottom-info"]),c=t.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:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),V=W=>W.split("-"),R=W=>ie.isEqual(c.currDate[0],W),M=W=>ie.isEqual(c.currDate[1],W),k=W=>c.currDate?.length>0?c.currDate?.some(S=>ie.isEqual(S,W)):!1,P=(W,S)=>S.curData[0]+"-"+S.curData[1]+"-"+ie.getNumTwoBit(+W.day),D=(W,S)=>{const F=P(W,S),{type:H}=e;return W.type=="curr"?ie.isEqual(c.currDate,F)||(H=="range"||H=="week")&&(R(F)||M(F))||H=="multiple"&&k(F)?`${c.dayPrefix}--active`:c.propStartDate&&ie.compareDate(F,c.propStartDate)||c.propEndDate&&ie.compareDate(c.propEndDate,F)?`${c.dayPrefix}--disabled`:(H=="range"||H=="week")&&Array.isArray(c.currDate)&&Object.values(c.currDate).length==2&&ie.compareDate(c.currDate[0],F)&&ie.compareDate(F,c.currDate[1])?`${c.dayPrefix}--choose`:null:`${c.dayPrefix}--disabled`},w=()=>{const{type:W}=e;if(W=="range"&&c.chooseData.length==2||W!="range"){let S=c.chooseData.slice(0);W=="week"&&(S={weekDate:[z(c.chooseData[0]),z(c.chooseData[1])]}),n("choose",S),e.poppable&&n("update")}},T=(W,S,F=!1)=>{if(D(W,S)!=`${c.dayPrefix}--disabled`){const{type:H}=e;let[J,le]=S.curData,x=[...S.curData];if(x[2]=ie.getNumTwoBit(Number(W.day)),x[3]=`${x[0]}-${x[1]}-${x[2]}`,x[4]=ie.getWhatDay(+x[0],+x[1],+x[2]),H=="multiple")if(c.currDate?.length>0){let X;c.currDate?.forEach((ne,ae)=>{ne==x[3]&&(X=ae)}),F?c.chooseData.push([...x]):X!==void 0?(c.currDate.splice(X,1),c.chooseData.splice(X,1)):(c.currDate.push(x[3]),c.chooseData.push([...x]))}else c.currDate=[x[3]],c.chooseData=[[...x]];else if(H=="range"){let X=Object.values(c.currDate).length;X==2||X==0?c.currDate=[x[3]]:ie.compareDate(c.currDate[0],x[3])?Array.isArray(c.currDate)&&c.currDate.push(x[3]):Array.isArray(c.currDate)&&c.currDate.unshift(x[3]),c.chooseData.length==2||!c.chooseData.length?c.chooseData=[[...x]]:ie.compareDate(c.chooseData[0][3],x[3])?c.chooseData=[...c.chooseData,[...x]]:c.chooseData=[[...x],...c.chooseData]}else if(H=="week"){let X=ie.getWeekDate(J,le,W.day,e.firstDayOfWeek);c.propStartDate&&ie.compareDate(X[0],c.propStartDate)&&X.splice(0,1,c.propStartDate),c.propEndDate&&ie.compareDate(c.propEndDate,X[1])&&X.splice(1,1,c.propEndDate),c.currDate=X,c.chooseData=[ie.formatResultDate(X[0]),ie.formatResultDate(X[1])]}else c.currDate=x[3],c.chooseData=[...x];if(!F){let X=c.chooseData;H=="week"&&(X={weekDate:[z(c.chooseData[0]),z(c.chooseData[1])]}),n("select",X),(e.isAutoBackFill||!e.poppable)&&w()}}},z=W=>{let[S,F,H]=W;return{date:W,monthWeekNum:ie.getMonthWeek(S,F,H,e.firstDayOfWeek),yearWeekNum:ie.getYearWeek(S,F,H,e.firstDayOfWeek)}},N=W=>{const S=W=="prev"?c.monthsData[0]:c.monthsData[c.monthsData.length-1];let F=parseInt(S.curData[0]),H=parseInt(S.curData[1].toString().replace(/^0/,""));switch(W){case"prev":H==1&&(F-=1),H=H==1?12:--H;break;case"next":H==12&&(F+=1),H=H==12?1:++H;break}return[F+"",ie.getNumTwoBit(H),ie.getMonthDays(String(F),String(H))+""]},C=(W,S,F)=>{let{year:H,month:J}=F;return S=="prev"&&W>=7&&(W-=7),Array.from(Array(W),(le,x)=>({day:String(x+1),type:S,year:H,month:J}))},E=(W,S,F,H)=>{W=W-e.firstDayOfWeek;let{year:J,month:le}=F;return S=="prev"&&W>=7&&(W-=7),Array.from(Array(H),(X,ne)=>({day:String(ne+1),type:S,year:J,month:le})).slice(H-W)},Y=(W,S)=>{const F=ie.getMonthPreDay(+W[0],+W[1]);let H=Number(W[1])-1,J=Number(W[0]);H<=0&&(H=12,J+=1);const le=ie.getMonthDays(String(W[0]),String(W[1])),x=ie.getMonthDays(J+"",H+""),X={year:W[0],month:W[1]},ne={curData:W,title:a("monthTitle",{year:X.year,month:X.month}),monthData:[...E(F,"prev",{month:String(H),year:String(J)},x),...C(le,"curr",X)],cssHeight:0,cssScrollHeight:0},ae=ne.monthData.length>35?6:5;ne.cssHeight=Aa+Ba*ae;let te=0;c.monthsData.length>0&&(te=c.monthsData[c.monthsData.length-1].cssScrollHeight+c.monthsData[c.monthsData.length-1].cssHeight),ne.cssScrollHeight=te,S=="next"?(!c.endData||!ie.compareDate(`${c.endData[0]}-${c.endData[1]}-${ie.getMonthDays(c.endData[0],c.endData[1])}`,`${W[0]}-${W[1]}-${W[2]}`))&&c.monthsData.push(ne):!c.startData||!ie.compareDate(`${W[0]}-${W[1]}-${W[2]}`,`${c.startData[0]}-${c.startData[1]}-01`)?c.monthsData.unshift(ne):c.unLoadPrev=!0},L=()=>{let W=e.startDate?e.startDate:ie.getDay(0),S=e.endDate?e.endDate:ie.getDay(365);c.propStartDate=W,c.propEndDate=S,c.startData=V(W),c.endData=V(S),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(c.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const F={year:Number(c.startData[0]),month:Number(c.startData[1])},H={year:Number(c.endData[0]),month:Number(c.endData[1])};let J=H.month-F.month;H.year-F.year>0&&(J=J+12*(H.year-F.year)),J<=0&&(J=1),Y(c.startData,"next");let le=1;do Y(N("next"),"next");while(le++<J);if(c.monthsNum=J,e.type=="range"&&Array.isArray(c.currDate))c.currDate.length>0&&(W&&ie.compareDate(c.currDate[0],W)&&c.currDate.splice(0,1,W),S&&ie.compareDate(S,c.currDate[1])&&c.currDate.splice(1,1,S),c.defaultData=[...V(c.currDate[0]),...V(c.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let x=[],X={};c.currDate.forEach(ne=>{W&&!ie.compareDate(ne,W)&&S&&!ie.compareDate(S,ne)&&(Object.hasOwnProperty.call(X,ne)||(x.push(ne),X[ne]=ne))}),c.currDate=[...x],c.defaultData=[...V(x[0])]}}else if(e.type=="week"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let[x,X,ne]=V(c.currDate[0]),ae=ie.getWeekDate(x,X,ne,e.firstDayOfWeek);c.currDate=ae,W&&ie.compareDate(c.currDate[0],W)&&c.currDate.splice(0,1,W),S&&ie.compareDate(S,c.currDate[1])&&c.currDate.splice(1,1,S),c.defaultData=[...V(c.currDate[0]),...V(c.currDate[1])]}}else c.currDate&&(W&&ie.compareDate(c.currDate,W)?c.currDate=W:S&&!ie.compareDate(c.currDate,S)&&(c.currDate=S),c.defaultData=[...V(c.currDate)])};pe({scrollToDate:W=>{ie.compareDate(W,c.propStartDate)?W=c.propStartDate:ie.compareDate(W,c.propEndDate)||(W=c.propEndDate);let S=V(W);c.monthsData.forEach((F,H)=>{if(F.title==a("monthTitle",{year:S[0],month:S[1]})&&h.value){let J=c.monthsData[H].cssScrollHeight-h.value.scrollTop;if(e.toDateAnimation){let le=0,x=setInterval(()=>{if(le++,h.value){let X=J/10;h.value.scrollTop=h.value.scrollTop+X}le>=10&&(clearInterval(x),h.value&&(h.value.scrollTop=c.monthsData[H].cssScrollHeight))},40)}else h.value.scrollTop=c.monthsData[H].cssScrollHeight}})},initPosition:()=>{h?.value&&(h.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)},doLayout:()=>{let W=0,S=0;c.defaultData.length>0&&c.monthsData.forEach((J,le)=>{J.title==a("monthTitle",{year:c.defaultData[0],month:c.defaultData[1]})&&(W=le),(e.type=="range"||e.type=="week")&&J.title==a("monthTitle",{year:c.defaultData[3],month:c.defaultData[4]})&&(S=le)}),Q(c.monthsNum,W),c.currentIndex=W,c.yearMonthTitle=c.monthsData[c.currentIndex].title,c.defaultData.length>0&&(c.isRange?(T({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0),T({day:c.defaultData[5],type:"curr"},c.monthsData[S],!0)):e.type=="week"?T({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0):e.type=="multiple"?[...c.currDate].forEach(J=>{let le=V(J),x=c.currentIndex;c.monthsData.forEach((X,ne)=>{X.title==a("monthTitle",{year:le[0],month:le[1]})&&(x=ne)}),T({day:le[2],type:"curr"},c.monthsData[x],!0)}):T({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0));let F=c.monthsData[c.monthsData.length-1],H=F.cssHeight+F.cssScrollHeight;In(()=>{h?.value&&f?.value&&$?.value&&(y.value=h.value.clientHeight,f.value.style.height=`${H}px`,h.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)}),c.avgHeight=Math.floor(H/(c.monthsNum+1))}});const Q=(W,S)=>{W>=3?S>0&&S<W?c.defaultRange=[S-1,S+3]:S==0?c.defaultRange=[S,S+4]:S==W&&(c.defaultRange=[S-2,S+2]):c.defaultRange=[0,W+2];let F=c.monthsData[c.defaultRange[0]].cssScrollHeight;c.translateY=F},_=(W,S)=>(e.type=="range"||e.type=="week")&&W.type=="curr"&&D(W,S)=="fox-calendar__day--active",O=(W,S)=>_(W,S)&&R(P(W,S)),q=(W,S)=>c.currDate.length>=2&&M(P(W,S))?_(W,S):!1,j=()=>{if(c.currDate.length>=2)return ie.isEqual(c.currDate[0],c.currDate[1])},B=W=>{const S=`${W.year}-${W.month}-${Number(W.day)<10?"0"+W.day:W.day}`;return ie.isEqual(S,ie.date2Str(new Date))},Z=W=>{if(c.monthsData.length<=1)return;const S=W.target.scrollTop;let F=Math.floor(S/c.avgHeight);if(F==0)S>=c.monthsData[F+1].cssScrollHeight&&(F+=1);else if(F>0&&F<c.monthsNum-1)S>=c.monthsData[F+1].cssScrollHeight&&(F+=1),S<c.monthsData[F].cssScrollHeight&&(F-=1);else{const H=Math.round(S+y.value);H<c.monthsData[F].cssScrollHeight+c.monthsData[F].cssHeight&&S>c.monthsData[F-1].cssScrollHeight&&(F-=1),F+1<=c.monthsNum&&H>=c.monthsData[F+1].cssScrollHeight+c.monthsData[F+1].cssHeight&&(F+=1),F>=1&&S<c.monthsData[F-1].cssScrollHeight&&(F-=1)}c.currentIndex!==F&&(c.currentIndex=F,Q(c.monthsNum,F)),c.yearMonthTitle=c.monthsData[F].title},ee=()=>{c.chooseData.splice(0),c.monthsData.splice(0),L()};return L(),t.watch(()=>e.defaultValue,W=>{W&&e.poppable&&ee()}),{dayTitleStyle:i,dayCellStyle:s,weeks:d,compConthsData:g,showTopBtn:p,topInfo:I,bottomInfo:m,rangeTip:j,mothsViewScroll:Z,getClass:D,isStartTip:O,isEndTip:q,chooseDay:T,isCurrDay:B,confirm:w,months:h,...t.toRefs(c),...t.toRefs(e),...r,monthsPanel:f,weeksPanel:b,viewArea:$}}}),fc={class:"fox-calendar__header"},dc={key:0,class:"fox-calendar__header-title"},hc={key:1,class:"fox-calendar__header-slot"},mc={key:2,class:"fox-calendar__header-subtitle"},gc={class:"fox-calendar__weekdays",ref:"weeksPanel"},yc={class:"fox-calendar__panel",ref:"monthsPanel"},pc={class:"fox-calendar__days"},bc=["onClick"],vc={class:"fox-calendar__day-value"},wc={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Sc={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},xc={key:2,class:"fox-calendar__day-tips--curr"},Tc={key:4,class:"fox-calendar__day-tip"},Cc={key:0,class:"fox-calendar__footer"};function $c(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",fc,[e.showTitle?(t.openBlock(),t.createElementBlock("view",dc,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",hc,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",mc,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",gc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:s},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",yc,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:s},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(i.title),5),t.createElementVNode("view",pc,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.monthData,(u,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(u,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:h=>e.chooseDay(u,i)},[t.createElementVNode("view",vc,[t.renderSlot(e.$slots,"day",{date:u.type=="curr"?u:""},()=>[t.createTextVNode(t.toDisplayString(u.type=="curr"?u.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",wc,[t.renderSlot(e.$slots,"top-info",{date:u.type=="curr"?u:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Sc,[t.renderSlot(e.$slots,"bottom-info",{date:u.type=="curr"?u:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(u)?(t.openBlock(),t.createElementBlock("view",xc,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(u,i)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(u,i)?(t.openBlock(),t.createElementBlock("view",Tc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,bc))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Cc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const kc=De(cc,[["render",$c]]),{create:Dc}=re("calendar-picker"),Nc=Dc({components:{CalendarPane:kc,Popup:mt},props:{...xl},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=t.computed(()=>o.btn),a=t.computed(()=>o["top-info"]),r=t.computed(()=>o.day),i=t.computed(()=>o["bottom-info"]),s=t.ref(null),u=p=>{s.value?.scrollToDate(p)},d=()=>{s.value?.initPosition()},h=t.computed(()=>{const p=["fox-calendar__popup"];return e.popClass&&p.push(e.popClass),p});t.watch(()=>e.visible,p=>{p&&t.nextTick(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),pe({scrollToDate:u,initPosition:d});const f=()=>{n("update:visible",!1)},b=()=>{n("close"),n("update:visible",!1)};return{popClasses:h,closePopup:()=>{b()},update:f,close:b,select:p=>{n("select",p)},choose:p=>{b(),n("choose",p)},calendarRef:s,showTopBtn:l,topInfo:a,dayInfo:r,bottomInfo:i}}});function Ec(e,n,o,l,a,r){const i=t.resolveComponent("CalendarPane"),s=t.resolveComponent("Popup");return e.poppable?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"pop-class":e.popClasses,style:e.popStyle}),{default:t.withCtx(()=>[t.createVNode(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"day",{date:u.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"top-info",{date:u.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"bottom-info",{date:u.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","pop-class","style"])):(t.openBlock(),t.createBlock(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"day",{date:u.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"top-info",{date:u.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"bottom-info",{date:u.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const gn=De(Nc,[["render",Ec]]),Tl=(e,n)=>{let o;return We(e)?o=e:typeof e=="string"&&_e(e)>0?o=ie.parser(e,n):o=new Date,o},gt=(e,n,o)=>(We(n)||(n=new Date),ie.format(n,o)),yt=e=>{let n=`${e.getFullYear()}`,o=`${e.getMonth()+1}`,l=`${e.getDate()}`,a=ie.date2Str(e),r=ie.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,o,l,a,r]},Fa={...xl,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Ic(e,n,o){return{props:{...Se,...ke,...Fa},emits:["change","update:modelValue","blur","focus","clear"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=we.useFoxI18n(n),d=u(l,["placeholder"]);let h=de(l,"hintText"),f=t.ref(!1);const b=t.ref(!1),$=t.computed(()=>l.type==="range"),y=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),g=()=>{y.startDate!==null&&(y.startDate=null,y.endDate=null,y.startArray=[],y.endArray=[])},p=(L,G="one",K="YYYY-MM-DD")=>{if(ic(L)){g();return}if($.value&&Array.isArray(L)&&L.length==2){let U,Q;typeof L[0]=="string"?(U=Tl(L[0],K),Q=Tl(L[1],K)):(U=L[0],Q=L[1]);let _=yt(U),O=yt(Q);(y.startDate===null||y.startDate.getTime()!==U.getTime()||y.endDate?.getTime()!==Q.getTime())&&(y.startDate=U,y.startArray=_,y.endDate=Q,y.endArray=O)}else{let U;typeof L=="string"?U=Tl(L,K):U=L;let Q=yt(U);(y.startDate===null||y.startDate.getTime()!==U.getTime())&&(y.startDate=U,y.startArray=Q)}};p(l.modelValue,l.type,l.valueFormat),t.watch(()=>l.modelValue,L=>{p(L,l.type,l.valueFormat)});const I=t.computed(()=>{if(y.startDate===null)return"";if($.value){let L=gt(l,y.startDate,l.format),G=gt(l,y.endDate,l.format);return`${L} ${l.rangeSeparator} ${G}`}else{let L=gt(l,y.startDate,l.format);return l.showWeek&&(L=`${L} ${y.startArray[4]}`),L}}),m=t.computed(()=>{if(y.startDate===null)return null;if($.value){let L=ie.date2Str(y.startDate),G=ie.date2Str(y.endDate??new Date);return[L,G]}else return ie.date2Str(y.startDate)}),c="fox-input-item",V=t.computed(()=>({[c]:!0,[`${c}__disabled`]:r.value})),R=Ae(t.computed(()=>l.textAlign),"textAlign"),M=t.computed(()=>({textAlign:R.value??"right"})),k=t.ref(!1),P=()=>{i.value||r.value||(k.value=!0)},D=()=>{k.value=!1},w=L=>{k.value=L},T=L=>{if(L){if($.value&&Array.isArray(L)){let G=L[0],K=he(G[0]),U=he(G[1]),Q=he(G[2]),_=new Date(K,U-1,Q),O=L[1];K=he(O[0]),U=he(O[1]),Q=he(O[2]);let q=new Date(K,U-1,Q);if(y.startDate=_,y.startArray=yt(_),y.endDate=q,y.endArray=yt(q),l.valueFormat){let j=gt(l,_,l.valueFormat),B=gt(l,q,l.valueFormat);s("update:modelValue",[j,B],{})}else s("update:modelValue",[_,q],{})}else{let G=L,K=he(G[0]),U=he(G[1]),Q=he(G[2]),_=new Date(K,U-1,Q);if(y.startDate=_,y.startArray=yt(_),l.valueFormat){let O=gt(l,_,l.valueFormat);s("update:modelValue",O,{})}else s("update:modelValue",_,{})}s("change",L,{})}},z=L=>{let K=L.target.value;b.value=!0,s("focus",K,L)},N=L=>{setTimeout(()=>{b.value=!1},0);let K=L.target.value;l.maxLength&&K.length>Number(l.maxLength)&&(K=K.slice(0,Number(l.maxLength))),s("blur",K,L)},C=t.computed(()=>_e(l.unit)>0),E=L=>{g(),s("update:modelValue",null,L),s("change","",L),s("clear","")},Y=t.ref();return pe({showPicker:P,hidePicker:D,focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},select:()=>{Y?.value.select()}}),()=>{const L={class:V.value,style:M.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:l.clearable,value:I.value,onClick:P,onFocus:z,onBlur:N,onClear:E},G={};a.slots.prepend&&(G.prepend=a.slots.prepend),a.slots.append&&(G.append=a.slots.append),a.slots.prefix?G.prefix=a.slots.prefix:G.prefix=()=>t.h(A.ElIcon,{},{default:()=>t.h(ve.Calendar)}),a.slots.suffix?G.suffix=a.slots.suffix:C.value&&(G.suffix=()=>[l.unit]);const K=[],U=t.h(A.ElInput,L,G);K.push(U);const Q={default:()=>K};a.slots.default&&(Q.label=a.slots.default),a.slots.fixedTip&&(Q.fixedTip=a.slots.fixedTip);const _=ut(l,xl);_.visible=k.value,_["onUpdate:visible"]=w,_["default-value"]=m.value,_.onChoose=T;const O={};if(a.slots.btn){const ee=a.slots.btn();O.btn=()=>ee}a.slots.day&&(O.day=a.slots.day),a.slots.topInfo&&(O.topInfo=a.slots.topInfo),a.slots.bottomInfo&&(O.bottomInfo=a.slots.bottomInfo);const q=t.h(gn,_,O);Q.hide=()=>[q];const B={...$e(l,Fa),hintText:h.value,hintVisible:f.value,prop:`${l.prop??a.attrs.name}_item`};return t.h(o,B,Q)}}}}const{componentName:Vc,create:Oc,scope:Ac}=re("calendar-item"),Cl=Oc(Ic(Vc,Ac,xe)),Ra={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Bc(e,n,o){return{props:{...Se,...ke,...Ra},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=we.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),f=de(l,"modelValue"),b=e,$=t.computed(()=>({[b]:!0})),y=M=>{f.value=M,s("update:modelValue",M),s("change",M)};let g=de(l,"hintText"),p=t.ref(!1);const I=M=>{let P=M.target.value;h.value=!0,ye(g.value)||(p.value=!0),s("focus",P,M)},m=M=>{setTimeout(()=>{p.value&&(p.value=!1),h.value=!1},0);let P=M.target.value;l.maxLength&&P.length>Number(l.maxLength)&&(P=P.slice(0,Number(l.maxLength))),s("blur",P,M)},c=()=>{s("clear","")},V=M=>{s("visible-change",M)},R=t.ref();return pe({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()}}),()=>{const k={...a.attrs,ref:R,class:$.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":y,onClear:c,onFocus:I,onBlur:m,onVisibleChange:V},P={},D=[],w=t.h(A.ElTimePicker,k,P);D.push(w);const T={default:()=>D};a.slots.default&&(T.label=a.slots.default),a.slots.fixedTip&&(T.fixedTip=a.slots.fixedTip);const N={...$e(l,Ra),hintText:g.value,hintVisible:p.value,prop:`${l.prop}_item`};return t.h(o,N,T)}}}}const{componentName:Fc,create:Rc,scope:Mc}=re("time-item"),$l=Rc(Bc(Fc,Mc,xe)),Ma={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Lc(e,n,o){return{props:{...Se,...ke,...Ma},emits:["change","update:modelValue","blur","focus","clear"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=we.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),f=de(l,"modelValue"),b=e,$=t.computed(()=>({[b]:!0})),y=R=>{f.value=R,s("update:modelValue",R),s("change",R)};let g=de(l,"hintText"),p=t.ref(!1);const I=R=>{let k=R.target.value;h.value=!0,ye(g.value)||(p.value=!0),s("focus",k,R)},m=R=>{setTimeout(()=>{p.value&&(p.value=!1),h.value=!1},0);let k=R.target.value;l.maxLength&&k.length>Number(l.maxLength)&&(k=k.slice(0,Number(l.maxLength))),s("blur",k,R)},c=()=>{s("clear","")},V=t.ref();return pe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const M={...a.attrs,ref:V,class:$.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":y,onClear:c,onFocus:I,onBlur:m},k={},P=[],D=t.h(A.ElTimeSelect,M,k);P.push(D);const w={default:()=>P};a.slots.default&&(w.label=a.slots.default),a.slots.fixedTip&&(w.fixedTip=a.slots.fixedTip);const z={...$e(l,Ma),hintText:g.value,hintVisible:p.value,prop:`${l.prop}_item`};return t.h(o,z,w)}}}}const{componentName:_c,create:Pc,scope:qc}=re("time-select-item"),kl=Pc(Lc(_c,qc,xe));function La(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let a=l;for(let r=o.length-1;r>=l;r--)if(o.charAt(r)!="0"){a=r;break}return a-l<n?a=l+n+1:a!=l&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function _a(e,n,o=20){if(typeof n=="string"&&(n=he(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=vo(`${e}`,`${n}`);return La(l)}else{let l=Ln(`${e}`,wo(`${n}`),20);return La(l)}}function zc(e,n=-1,o=!1,l=3,a=","){return qt(e,n,o,l,a)}function Pa(e,n,o,l,a=!0){if(e=="")return"";if(e=So(e),n=he(n),n==1)return e;if(l)e=_a(e,n),o&&(e=="0"&&a?e=`${e}.`.padEnd(he(o)+2,"0"):e=Ln(e,1,he(o)));else{let r=-1*n;e=_a(e,r)}return e}function qa(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ce(n.minInclude),a=_n(e,n.min);if(l&&a==-1||!l&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";o.message=r.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let l=ce(n.maxInclude),a=_n(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(o.maxValid=!1)}return o}const za={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},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:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function jc(e,n,o){return{props:{...Se,...ke,...za},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),u=t.ref(!1),d=de(l,"modelValue"),h=t.ref("");t.watch([()=>d.value,()=>l.rates,()=>l.precision],([N,C,E])=>{if(ye(N)){h.value="";return}const Y=Pa(N,C,E,!1);h.value!==Y&&(h.value=Y)},{immediate:!0});const f=t.computed(()=>{let N="";return u.value&&(N=h.value),N}),{t:b}=we.useFoxI18n(n),$=t.computed(()=>{let N=l.placeholder??"";return!u.value&&!ye(h.value)?N=zc(h.value,l.decimalLength,l.autoPadding,l.digits,l.separator):N=b(["placeholder",N]),N}),y=e,g=t.computed(()=>({[y]:!0,[`${y}__disabled`]:r.value,[`${y}__placeholder`]:h.value.length>0})),p=Ae(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>u.value?{textAlign:"left"}:{textAlign:p.value??"right"});const I=t.ref(""),m=t.computed(()=>{let N=I.value;return ye(N)&&(N=l.errorTip??""),N}),c=t.ref(""),V=t.ref(!1),R=(N,C)=>{if(N=`${N}`,ye(N)){h.value="",d.value="",C.forEach(E=>{s(E,"")}),ce(l.showTip)&&V.value&&(V.value=!1);return}if(N.length>=2){let E=N;if(E.charAt(0)=="-"&&(E=E.substring(1)),E.length>=2&&E.charAt(0)=="0"&&E.charAt(1)!="."){t.triggerRef(h);return}}if(N!="-"){if(!Eo(N)){t.triggerRef(h);return}if(l.integerLength!=-1&&Io(N)>Number(l.integerLength)){t.triggerRef(h);return}if(l.decimalLength&&l.decimalLength!=-1&&Vo(N)>Number(l.decimalLength)){t.triggerRef(h);return}let E=qa(N,l);if(E.maxValid===!1){I.value=E.message,t.triggerRef(h);return}}else if(l.min!=null&&he(l.min)>=0){t.triggerRef(h);return}c.value=N,ce(l.showTip)&&(V.value=N.length>0),h.value=N,d.value=Pa(N,l.rates,l.precision,!0),C.forEach(E=>{s(E,d.value)})},M=N=>{R(N,["update:modelValue","input"])},k=N=>{R(N,["update:modelValue","change"])},P=N=>{if(u.value=!0,ce(l.showTip)){let C=h.value;ye(C)&&(C=l.hintText),ye(C)||(c.value=C,V.value=!0)}I.value="",s("focus",d.value,N)},D=N=>{if(setTimeout(()=>{u.value=!1,ce(l.showTip)&&V.value===!0&&(V.value=!1)},0),!ye(h.value)){let C=qa(h.value,l);if(C.minValid===!1||C.maxValid===!1){I.value=C.message;return}}s("update:modelValue",d.value,N),s("blur",d.value,N)},w=()=>{s("clear","")},T=t.computed(()=>_e(l.unit)>0),z=t.ref();return pe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const C={...je(a.attrs),ref:z,class:g.value,type:"digit",maxlength:l.maxLength,placeholder:$.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:f.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:w,onInput:M,onChange:k,onFocus:P,onBlur:D},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:T.value&&(E.suffix=()=>[l.unit]);const Y=[],L=t.h(A.ElInput,C,E);Y.push(L);const G={default:()=>Y};a.slots.default&&(G.label=a.slots.default),a.slots.fixedTip&&(G.fixedTip=a.slots.fixedTip);const U={...$e(l,za),errorTip:m.value,hintText:c.value,hintVisible:V.value,hintType:"number",prop:`${l.prop}_item`};return t.h(o,U,G)}}}}const{componentName:Hc,create:Kc,scope:Wc}=re("money-item"),Dl=Kc(jc(Hc,Wc,xe)),ja={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Yc(e,n,o){return{props:{...Se,...ke,...ja},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=we.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),f=de(l,"modelValue"),b=e,$=t.computed(()=>({[b]:!0,[`${b}__append`]:M.value})),y=t.computed(()=>({[`${b}__unit`]:!0})),g=P=>{f.value=P,s("update:modelValue",P),s("input",P)},p=P=>{s("change",P)};let I=de(l,"hintText"),m=t.ref(!1);const c=P=>{let w=P.target.value;h.value=!0,ye(I.value)||(m.value=!0),s("focus",w,P)},V=P=>{setTimeout(()=>{m.value&&(m.value=!1),h.value=!1},0);let w=P.target.value;l.maxLength&&w.length>Number(l.maxLength)&&(w=w.slice(0,Number(l.maxLength))),s("blur",w,P)},R=()=>{s("clear","")},M=t.computed(()=>_e(l.unit)>0),k=t.ref();return pe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()}}),()=>{const D={...je(a.attrs),ref:k,class:$.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:f.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:R,onChange:p,onInput:g,onFocus:c,onBlur:V},w={},T=[],z=t.h(A.ElInputNumber,D,w);T.push(z);const N={default:()=>T};a.slots.default&&(N.label=a.slots.default),a.slots.fixedTip&&(N.fixedTip=a.slots.fixedTip);const E={...$e(l,ja),hintText:I.value,hintVisible:m.value,prop:`${l.prop}_item`};if(a.slots.append)N.append=a.slots.append;else if(M.value){const L={class:y.value},G=t.h("div",L,[l.unit]);N.append=()=>G}return t.h(o,E,N)}}}}const{componentName:Uc,create:Gc,scope:Xc}=re("input-number-item"),Nl=Gc(Yc(Uc,Xc,xe));function Ot(e,n){const o=e.textKey??"text";return n[o]??""}function At(e,n){const o=e.valueKey??"value";return n[o]}function Ha(e,n){const o=e.childrenKey??"children";return n[o]}function yn(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const a=n[l],r=Ot(e,a),i=At(e,a);o.texts.push(r),o.values.push(i??"")}return o}function Ka(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let i=0;i<n.length;i++)if(Ot(e,n[i])===r){const u=At(e,n[i])??"",d={[e.textKey]:r,[e.valueKey]:u};a.push(d);const h=Ha(e,n[i]);Array.isArray(h)&&Ka(e,h,o,l+1,a);return}}function Wa(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let i=0;i<n.length;i++)if(At(e,n[i])===r){const u=Ot(e,n[i])??"",d={[e.textKey]:u,[e.valueKey]:r};a.push(d);const h=Ha(e,n[i]);Array.isArray(h)&&Wa(e,h,o,l+1,a);return}}function El(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++){const a=Ot(e,n[l]),r=Ot(e,o[l]);if(a!==r)return!1;const i=At(e,n[l]),s=At(e,o[l]);if(i!==s)return!1}return!0}let Zc=class{proxy;constructor(n){this.proxy=n}async load(n,o){const l="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const a=Be(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(Me(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(n,o))}};function Jc(){const e=t.getCurrentInstance();return new Zc(e.proxy)}const pn=(e,n,o)=>e.map(l=>{const{value:a="value",text:r="text",children:i="children"}=o??{},{[a]:s,[r]:u,[i]:d,...h}=l,f={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:s,text:u,children:d,_parent:n};return f.children&&f.children.length&&(f.children=pn(f.children,f,o)),f}),Ya=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Ya(l.children,n)},Qc={topId:null,idKey:"id",pidKey:"pid",sortKey:""},ef=(e,n)=>{const o={...Qc,...n||{}},{topId:l,idKey:a,pidKey:r,sortKey:i}=o;let s=[],u={};return e.forEach(d=>{d={...d};const{[a]:h,[r]:f}=d,b=u[f]=u[f]||[];!s.length&&f===l&&(s=b),b.push(d),d.children=u[h]||(u[h]=[])}),i&&Object.keys(u).forEach(d=>{u[d].length>1&&u[d].sort((h,f)=>h[i]-f[i])}),u=null,s},tf={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Ua=(e,n)=>n[e.textKey],Bt=(e,n)=>n[e.valueKey],nf=(e,n)=>n[e.visibleKey],Ga=(e,n)=>n[e.disabledKey],lf=(e,n)=>{const o=n[e.doitKey];return ce(o)},of=(e,n)=>{const o=n[e.numKey];return o==null?null:he(n[o])},Xa=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function af(e,n,o,l=!1){return{props:{...tf},emits:["update:modelValue","change"],setup(a,{slots:r,emit:i}){const s=t.computed(()=>{const _={};return _[`${e}`]=!0,_}),u=t.computed(()=>{const _={};return _[`${e}__titles`]=!0,_[`${a.direction}`]=!0,a.align==="left"&&(_.left=!0),a.scroll===!0&&(_.scrollable=!0),a.shape&&(_[`${a.shape}`]=!0),_}),d=t.computed(()=>({})),h=t.computed(()=>{if(!a.gutter)return 0;const _=me(a.gutter);return _<=0?0:_}),f=t.ref(a.modelValue);t.watch(()=>a.modelValue,_=>{f.value!==_&&(f.value=_,L(!1))});const b=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),$=t.computed(()=>{const _={};return g.value||(_.display="none"),_}),y=t.ref(),g=t.ref(!1),p=()=>{const _=!g.value;I(_)},I=_=>{const O=_;O?(g.value=O,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{g.value=!1},{once:!0}):setTimeout(()=>{g.value=!1},0))},m=t.ref(),c=t.ref([]),V=(_,O)=>{c.value[O]=_},R=_=>O=>{V(O,_)},M=(_,O)=>{const q=m.value,j=c.value;if(!q||!j||!j[_])return;const B=j[_];let Z=0;a.direction==="vertical"?Z=B.offsetTop-(q.offsetHeight-B.offsetHeight)/2:Z=B.offsetLeft-(q.offsetWidth-B.offsetWidth)/2,k(q,Z,O?0:.3,a.direction)},k=(_,O,q,j)=>{let B=0;const Z=j==="horizontal"?_.scrollLeft:_.scrollTop,ee=q===0?1:Math.round(q*1e3/16);function W(){j==="horizontal"?_.scrollLeft+=(O-Z)/ee:_.scrollTop+=(O-Z)/ee,++B<ee&&Pn(W)}W()},P=(_,O)=>{const q=Bt(a,_),j={};return j[`${e}__titles-item`]=!0,j.disabled=Ga(a,_),j.active=q===f.value,a.shape&&(j[`${a.shape}`]=!0),a.ellipsis&&(j.ellipsis=!0),O&&(O.class&&(j[`${O.class}`]=!0),O.disabled===!0&&(j.disabled=O.disabled)),j},D=(_,O)=>{const q={};if(h.value>0){const j=Math.abs(h.value/2);a.direction==="vertical"?(q["margin-top"]=`${j}px`,q["margin-bottom"]=`${j}px`):(q["margin-left"]=`${j}px`,q["margin-right"]=`${j}px`)}return O&&O.style&&Object.assign(q,O.style),q},w=(_,O)=>`${Bt(a,_)??O}`,T=(_,O)=>{const q=Bt(a,_),j={};j[`${e}__popup-item`]=!0,j.disabled=Ga(a,_),j.active=q===f.value,a.shape&&(j[`${a.shape}`]=!0);const B=Xa(a,_,O);return B&&B.disabled===!0&&(j.disabled=B.disabled),j},z=t.computed(()=>(a.data??[]).filter(O=>nf(a,O)!==!1)),N=(_,O)=>{const q=Bt(a,_);if(f.value==q)return;const j=()=>{f.value=q,a.scroll&&M(O,!1),i("update:modelValue",q),i("change",_,O)};if(typeof a.beforeChange=="function"){const B=a.beforeChange(_,O);zt(B)?B.then(Z=>{Z!==!1&&j()}).catch(()=>{j()}):B!==!1&&j()}else j()},C=(_,O)=>function(){N(_,O)},E=(_,O)=>{N(_,O),I(!1)},Y=(_,O)=>function(){E(_,O)},L=_=>{if(!Array.isArray(a.data)||!a.scroll)return;const O=a.data.findIndex(q=>Bt(a,q)===f.value);O!==-1&&M(O,_)};t.watch(()=>a.data,()=>{setTimeout(L,0)}),t.onMounted(()=>{L(!0)});const G=(_,O)=>{if(r.item)return r.item({item:_,index:O});const q=Xa(a,_,O),j=[];if(r.text){const W=r.text({item:_,index:O});j.push(W)}else{const W=[];if(q?.doit===!0||lf(a,_)){const J={class:[`${e}__titles-item-tip`,"doit"]},le=t.h("view",J);W.push(le)}const S=q?.num??of(a,_);if(S){let J="";const le=he(S);le>=100?J="99+":J=`${le}`;const x={class:[`${e}__titles-item-tip`,"num"]},X=t.h("view",x,[J]);W.push(X)}const F={class:`${e}__titles-item-text`};W.push(Ua(a,_));const H=t.h("view",F,W);j.push(H)}const B={class:`${e}__titles-item-line`},Z=t.h("view",B);j.push(Z);const ee={ref:R(O),class:P(_,q),style:D(_,q),key:w(_,O),onClick:C(_,O)};return t.h("view",ee,j)},K=()=>{const _=r.default?r.default():[];if(_.length===0)for(let q=0;q<z.value.length;q++){const j=z.value[q],B=G(j,q);_.push(B)}const O={ref:m,class:u.value,style:d.value};return t.h("view",O,_)},U=()=>{let _=null;r.navigation?_=r.navigation():_=t.h(o);const O={class:`${e}__navigation`,onClick:p};return t.h("view",O,[_])},Q=()=>{const _=[];for(let q=0;q<z.value.length;q++){const j=z.value[q];let B=null;r.popupItem?B=r.popupItem({item:j,index:q}):B=Ua(a,j);const Z={class:T(j,q),key:w(j,q),onClick:Y(j,q)},ee=t.h("view",Z,[B]);_.push(ee)}const O={class:b.value,style:$.value};return t.h("view",O,_)};return()=>{const _=[],O=K();if(_.push(O),a.showQuickNavigation){const j=U();_.push(j);const B=Q();_.push(B)}const q={class:s.value};return t.h("view",q,_)}}}}const{create:rf,componentName:sf,scope:uf}=re("tabs-bar"),bn=rf(af(sf,uf,su,!1)),Za=Symbol("TabsStatesKey"),cf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function ff(e,n,o=!1){return{props:{...cf},emits:["update:modelValue","change"],setup(l,{emit:a,slots:r}){const i=t.shallowRef([]),s={current:t.ref(l.modelValue??""),direction:t.ref(l.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:g=>{const p={name:g};s.current.value===g&&(p.loaded=!0),i.value.push(p),t.triggerRef(i)},remove:g=>{const p=i.value.findIndex(I=>I.name===g);p!==-1&&i.value.splice(p,1)},isLoaded:g=>{if(!l.lazy)return!0;const p=i.value.findIndex(I=>I.name===g);return p!==-1?s.current.value?i.value[p].loaded??!1:p===0:!1}};t.provide(Za,s);const u=g=>{const p=i.value.findIndex(I=>I.name===g);p!==-1&&(i.value[p].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([g,p])=>{s.current.value!==g&&(s.current.value=g??"",u(g??"")),s.direction.value!==p&&(s.direction.value=p)});const d=t.ref(null),h=t.ref(null),f=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let b=!0;const $=t.computed(()=>{const g={},p=i.value.length;if(p<=0)return g;const I=i.value.findIndex(m=>m.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(g.height=`${p*s.tabHeight.value}px`,I!==-1&&(g.transform=`translate(0, -${I*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(g.width=`${p*s.tabWidth.value}px`,I!==-1&&(g.transform=`translate(-${I*s.tabWidth.value}px, 0)`)),b&&(b=!1,g.transition="transform 0s ease"),g});let y=null;return t.onMounted(()=>{if(!d.value)return;const g=()=>{const p=tn(d.value);s.tabWidth.value=p.width,s.tabHeight.value=p.height};window.ResizeObserver&&(y=new window.ResizeObserver(g),y.observe(d.value)),g()}),t.onBeforeUnmount(()=>{y&&(y.disconnect(),y=null)}),()=>{const g={class:`${e}__panes`,style:$.value,ref:h},p=t.h("view",g,[r?.default?.()]),I={class:f.value,ref:d};return t.h("view",I,[p])}}}}const{create:df,componentName:hf,scope:mf}=re("tabs-container"),vn=df(ff(hf,mf,!1)),gf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function yf(e,n,o){return{props:{...gf},setup(l,{emit:a,slots:r}){const i=t.inject(Za);t.onMounted(()=>{i.add(l.paneKey)}),t.onBeforeUnmount(()=>{i.remove(l.paneKey)});const s=t.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),u=t.computed(()=>l.loaded!=null?ce(l.loaded):i.isLoaded(l.paneKey));return()=>{let d=[];if(u.value)d=r?.default?.()??[];else if(r.empty)d=r.empty();else{const f={class:`${e}__empty-icon`},b=l.emptyIcon??o,$=t.h(b,f),y={class:`${e}__empty-text`},g=l.emptyText??"Loading",p=t.h("view",y,[g]),I={class:`${e}__empty`},m=t.h("view",I,[$,p]);d.push(m)}const h={class:`${e}`,style:s.value};return t.h("view",h,d)}}}}const{create:pf,componentName:bf,scope:vf}=re("tabs-pane"),wn=pf(yf(bf,vf,hn));class Ja{nodes;config;constructor(n,o){this.config={value:"value",text:"text",children:"children",...o||{}},this.nodes=pn(n,null,this.config)}updateChildren(n,o){o?o.children=pn(n,o,this.config):this.nodes=pn(n,null,this.config)}getNodeByValue(n){let o;return Ya(this.nodes,l=>{if(l.value===n)return o=l,!0}),o}getPathNodesByValue(n){if(!n.length)return[];const o=[];let l=this.nodes;for(;l&&l.length;){const a=l.find(r=>r.value===n[r.level]);if(!a)break;o.push(a),l=a.children}return o}isLeaf(n,o){const{leaf:l,children:a}=n,r=Array.isArray(a)&&!!a.length;return l||!r&&!o}hasChildren(n,o){if(this.isLeaf(n,o))return!1;const{children:a}=n;return Array.isArray(a)&&!!a.length}}const{create:wf,scope:Sf}=re("cascader-pane"),xf=wf({components:{Loading:hn,Checklist:xa,TabsBar:bn,TabsContainer:vn,TabsPane:wn},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:o}=we.useFoxI18n(Sf),l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=t.ref(0),r=t.ref(!1),i=t.ref(e.modelValue),s=t.ref(new Ja([],{})),u=t.ref([]),d=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),h=t.computed(()=>r.value==!0||u.value.length==0?[{text:"Loading",value:0}]:u.value.map((m,c)=>({text:m.selectedNode?m.selectedNode.text:o("select"),value:c}))),f=new Map;let b;const $=async()=>{f.clear(),u.value=[],a.value=0,r.value=!1,b=null;let{options:m}=e;l.value.convertConfig&&(m=ef(m,l.value.convertConfig)),s.value=new Ja(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),d.value&&!s.value.nodes.length&&await g({root:!0,loading:!0,text:"",value:""}),u.value=[{nodes:s.value.nodes,selectedNode:null}],y()},y=async()=>{const m=i.value;if(m===void 0||!s.value.nodes.length)return;if(m.length===0){a.value=0,u.value=[{nodes:s.value.nodes,selectedNode:null}];return}let c=m;if(d.value&&Array.isArray(m)&&m.length){c=[];let V=s.value.nodes.find(R=>R.value===m[0]);if(V){c=[V.value],r.value=!0;const R=await m.slice(1).reduce(async(M,k)=>{const P=await M;await g(P);const D=P?.children?.find(w=>w.value===k);return D&&c.push(k),Promise.resolve(D)},Promise.resolve(V));await g(R),r.value=!1}}c.length&&m===e.modelValue&&s.value.getPathNodesByValue(c).map((R,M)=>{a.value=M,I.handleNode(R,!0)})},g=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(s.value.isLeaf(m,d.value)||s.value.hasChildren(m,d.value))return;m.loading=!0;const c=m.root?null:m;let V=f.get(m);V||(V=new Promise(M=>{l.value.lazyLoad?.(m,M)}),f.set(m,V));const R=await V;Array.isArray(R)&&R.length>0?s.value.updateChildren(R,c):m.leaf=!0,m.loading=!1,f.delete(m)},p=m=>{const c=m.map(V=>V.value);i.value=c,n("change",c,m),n("update:modelValue",c,m)},I={async handleNode(m,c){const{disabled:V,loading:R}=m;if(!(!c&&V||!u.value[a.value])){if(s.value.isLeaf(m,d.value)){if(m.leaf=!0,u.value[a.value].selectedNode=m,u.value=u.value.slice(0,m.level+1),!c){const M=u.value.map(k=>k.selectedNode);p(M),n("pathChange",M)}return}if(s.value.hasChildren(m,d.value)){const M=m.level+1;if(u.value[a.value].selectedNode=m,u.value=u.value.slice(0,M),u.value.push({nodes:m.children||[],selectedNode:null}),a.value=M,!c){const k=u.value.map(P=>P.selectedNode);n("pathChange",k)}return}b=m,!R&&(await g(m),b===m&&(u.value[a.value].selectedNode=m,I.handleNode(m,c)))}},handleTabChange(m,c){b=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:o("select")},isSelected(m,c){return m.selectedNode&&m.selectedNode.value===c.value}};return t.watch([l,()=>e.options],()=>{$()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{m!==i.value&&(i.value=m,y())}),t.watch(()=>e.visible,m=>{m&&Array.isArray(i.value)&&i.value.length>0&&y()}),{panes:u,panesTitles:h,initLoading:r,tabsCursor:a,...I}}}),Tf={class:"fox-cascader"},Cf={role:"menu",class:"fox-cascader__pane"},$f=["aria-checked","aria-disabled","onClick"],kf={class:"fox-cascader__item__title"},Df=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Nf(e,n,o,l,a,r){const i=t.resolveComponent("TabsBar"),s=t.resolveComponent("Loading"),u=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),h=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Tf,[t.createVNode(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=f=>e.tabsCursor=f),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(h,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=f=>e.tabsCursor=f)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(f,b)=>(t.openBlock(),t.createBlock(d,{"pane-key":b,key:b},{default:t.withCtx(()=>[t.createElementVNode("view",Cf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.nodes,$=>(t.openBlock(),t.createElementBlock("view",{key:$.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(f,$),disabled:$.disabled}]),"aria-checked":e.isSelected(f,$),"aria-disabled":$.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode($,!1)},[t.createElementVNode("view",kf,t.toDisplayString($.text),1),$.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(u,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,$f))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(d,{key:1,"pane-key":0},{default:t.withCtx(()=>[Df]),_:1}))]),_:1},8,["modelValue"])])}const Ef=De(xf,[["render",Nf]]),{create:If}=re("cascader-picker"),Vf=If({components:{FoxCascaderPane:Ef,FoxPopup:mt},props:{...yl,modelValue:Array,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},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const o=t.ref(e.modelValue),l=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),a=(i,s)=>{o.value=i,l.value=!1,n("change",i,s),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==o.value&&(o.value=i)}),{onChange:a,onPathChange:r,innerValue:o,innerVisible:l}}}),Of=["innerHTML"];function Af(e,n,o,l,a,r){const i=t.resolveComponent("FoxCascaderPane"),s=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(s,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=u=>e.innerVisible=u),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Of)):t.createCommentVNode("",!0),t.createVNode(i,{onChange:e.onChange,onPathChange:e.onPathChange,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},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(i,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,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},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const Sn=De(Vf,[["render",Af]]),Qa={modelValue:{type:[Array,String]},pathNodes:{type:[Array],required:!1},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function Bf(e,n,o){return{props:{...Se,...ke,...Qa},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=we.useFoxI18n(n),d=u(l,["placeholder"]);let h=de(l,"hintText"),f=t.ref(!1);const b=t.ref(!1),$=Jc(),y=t.ref([]);t.watch([()=>l.source,()=>l.params],async([Y,L])=>{Y&&(y.value=await $.load(Y,L))},{immediate:!0});const g=t.ref([]),p=t.computed(()=>Array.isArray(g.value)?g.value.join(" "):g.value),I=t.ref([]),m=t.ref([]);t.watch([()=>l.modelValue,y],async([Y,L])=>{if(l.lazy===!0){m.value.length==0&&(g.value=Array.isArray(Y)?Y:[],I.value=Array.isArray(Y)?Y:[]);return}if(l.valueType==="item"){let G=Y;if(!El(l,G,m.value)){m.value=G;let K=yn(l,G);g.value=K.texts,I.value=K.values}}else if(l.valueType==="text"){let G=Y,K=[];if(Ka(l,L,G,0,K),!El(l,K,m.value)){m.value=K;let U=yn(l,K);G.value=U.texts,I.value=U.values}}else{let G=Y,K=[];if(Wa(l,L,G,0,K),!El(l,K,m.value)){m.value=K;let U=yn(l,K);g.value=U.texts,G.value=U.values}}});const c=e,V=t.computed(()=>({[c]:!0})),R=Ae(t.computed(()=>l.textAlign),"textAlign"),M=t.computed(()=>({textAlign:R.value??"right"})),k=t.ref(!1),P=()=>{r.value===!0||i.value===!0||(k.value=!0)},D=Y=>{k.value=Y},w=(Y,L)=>{let G=L.map(U=>{if(U==null)return U;let Q={...U};return Reflect.deleteProperty(Q,"text"),Q[l.textKey]=U.text??"",Reflect.deleteProperty(Q,"value"),Q[l.valueKey]=U.value??"",Q});m.value=G;let K=yn(l,G);g.value=K.texts,I.value=K.values,l.valueType==="text"?(s("change",g.value,G),s("update:modelValue",g.value)):l.valueType==="item"?(s("change",G,G),s("update:modelValue",G)):(s("change",I.value,G),s("update:modelValue",I.value)),s("update:pathNodes",G)},T=Y=>{let L=Y.map(G=>{if(G==null)return G;let K={...G};return Reflect.deleteProperty(K,"text"),K[l.textKey]=G.text??"",Reflect.deleteProperty(K,"value"),K[l.valueKey]=G.value??"",K});s("pathChange",L)},z=Y=>{b.value=!0,s("focus",I.value,Y)},N=Y=>{setTimeout(()=>{b.value=!1},0),s("blur",I.value,Y)},C=t.computed(()=>_e(l.unit)>0);t.computed(()=>l.clearable&&!r.value&&!i.value);const E=t.ref();return pe({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},select:()=>{E?.value.select()}}),()=>{const Y={class:V.value,style:M.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,value:p.value,onClick:P,onFocus:z,onBlur:N},L={};a.slots.prepend&&(L.prepend=a.slots.prepend),a.slots.append&&(L.append=a.slots.append),a.slots.prefix&&(L.prefix=a.slots.prefix),a.slots.suffix?L.suffix=a.slots.suffix:C.value?L.suffix=()=>[l.unit]:L.suffix=()=>t.h(A.ElIcon,{},{default:()=>t.h(ve.ArrowDown)});const G=[],K=t.h(A.ElInput,Y,L);G.push(K);const U={default:()=>G};U.label=a.slots.default,U.prepend=a.slots.prepend,U.append=a.slots.append,U.fixedPreTip=a.slots.fixedPreTip,U.fixedTip=a.slots.fixedTip;let Q={};Q.visible=k.value,Q["onUpdate:visible"]=D,Q.modelValue=I.value,Q.onChange=w,Q.onPathChange=T,Q.options=y.value,Q.title=l.title,Q.lazy=l.lazy,Q.lazyLoad=l.lazyLoad,Q.valueKey=l.valueKey,Q.textKey=l.textKey,Q.childrenKey=l.childrenKey,Q.convertConfig=l.convertConfig;const _=t.h(Sn,Q);U.hide=()=>[_];const q={...$e(l,Qa),hintText:h.value,hintVisible:f.value,prop:`${l.prop??a.attrs.name}_item`};return t.h(o,q,U)}}}}const{componentName:Ff,create:Rf,scope:Mf}=re("cascader-item"),Il=Rf(Bf(Ff,Mf,xe)),er={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Lf(e,n,o){return{props:{...Se,...ke,...er},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=we.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),f=de(l,"modelValue"),b=e,$=t.computed(()=>({[b]:!0})),y=k=>{f.value=k,s("update:modelValue",k),s("input",k)},g=k=>{s("change",k)},p=k=>{s("select",k)};let I=de(l,"hintText"),m=t.ref(!1);const c=k=>{let D=k.target.value;h.value=!0,ye(I.value)||(m.value=!0),s("focus",D,k)},V=k=>{setTimeout(()=>{m.value&&(m.value=!1),h.value=!1},0);let D=k.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),s("blur",D,k)},R=()=>{s("clear","")},M=t.ref();return pe({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const P={...a.attrs,ref:M,class:$.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:f.value,onClear:R,onChange:g,onInput:y,onFocus:c,onBlur:V,onSelect:p},D={};a.slots.prepend&&(D.prepend=a.slots.prepend),a.slots.append&&(D.append=a.slots.append),a.slots.prefix&&(D.prefix=a.slots.prefix),a.slots.suffix&&(D.suffix=a.slots.suffix),a.slots.option&&(D.default=a.slots.option);const w=[],T=t.h(A.ElAutocomplete,P,D);w.push(T);const z={default:()=>w};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const C={...$e(l,er),hintText:I.value,hintVisible:m.value,prop:`${l.prop}_item`};return t.h(o,C,z)}}}}const{componentName:_f,create:Pf,scope:qf}=re("autocomplete-item"),Vl=Pf(Lf(_f,qf,xe));function zf(e,n,o,l,a){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[a]){let u=n;for(let d=0;u&&d<r.length;d++){let h=r[d],f=u.find(b=>b[l]===h);if(!f)break;i.push(f[o])}return i}if(Array.isArray(s))for(let u=0;u<n.length&&u<r.length;u++){let d=n[u],h=r[u];const f=d.find(b=>b[l]===h);if(!f)break;i.push(f[o])}else{let u=n;for(let d=0;u&&d<r.length;d++){let h=r[d],f=u.find(b=>b[l]===h);if(!f)break;i.push(f[o]),u=f[a]}}return i}let jf=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Be(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Hf(){const e=t.getCurrentInstance();return new jf(e.proxy)}const tr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Kf(e,n){return{props:{...tr},setup(o,{attrs:l,slots:a}){const r=Hf(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([d,h])=>{i.value=await r.load(o.sourceType,d,h)},{immediate:!0});const s=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=zf(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const d={...l};return a.default?a.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},s.value):t.h(u,d,{default:()=>s.value}):t.h(u,d,s.value)}}}}const{componentName:Hg,create:Wf,scope:Kg}=re("mapping"),Ft=Wf(Kf());function Yf(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,s=r.indexOf("["),u=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=r.substring(s+1,u);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let f=r.substring(0,s);l=l[f][h]}else l=l[h];i++}s=r.indexOf("[",u),u=s==-1?-1:r.indexOf("]",s)}i===0&&(l=l[r])}return l}function Uf(e,n){return{props:{...tr},setup(o,{attrs:l,slots:a}){return()=>{const r={default:i=>{const s=Yf(i.row,i.column.property);return a.default?t.h(Ft,{...o,modelValue:s},{default:a.default}):t.h(Ft,{...o,modelValue:s})}};return t.h(A.ElTableColumn,{...l},r)}}}}const{componentName:Wg,create:Gf,scope:Yg}=re("table-mapping-column"),Ol=Gf(Uf()),Xf=Symbol.for("TableStateKey");function nr(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,s=r.indexOf("["),u=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=r.substring(s+1,u);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let f=r.substring(0,s);l=l[f][h]}else l=l[h];i++}s=r.indexOf("[",u),u=s==-1?-1:r.indexOf("]",s)}i===0&&(l=l[r])}return l}function Zf(e,n){return{props:{},setup(o,{attrs:l}){const a=t.inject(Xf,{});return()=>{const r=a.currentRow?a.currentRow.value:null,i={default:s=>{const u=nr(s.row,s.column.property),d=r?nr(r,s.column.property):null,h=u===d,f={class:{"el-radio__input":!0,"is-checked":h}},b=t.h("span",f,[t.h("span",{class:{"el-radio__inner":!0}})]),$={class:{"el-radio":!0,"is-checked":h}};return t.h("label",$,[b])}};return t.h(A.ElTableColumn,{...l},i)}}}}const{componentName:Ug,create:Jf,scope:Gg}=re("table-radio-column"),Al=Jf(Zf()),Qf={},ed={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},td=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function nd(e,n){return t.openBlock(),t.createElementBlock("svg",ed,td)}const ld=De(Qf,[["render",nd]]),{componentName:Zg,create:od,scope:Jg}=re("table-setting"),ad={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},rd=od({components:{FoxPopover:A.ElPopover,FoxCheckbox:A.ElCheckbox,FoxCheckboxGroup:A.ElCheckboxGroup,FoxButton:A.ElButton,FoxIcon:A.ElIcon,DragIcon:ld,Download:ve.Download,RefreshLeft:ve.RefreshLeft},props:{...ad},setup(e,{emit:n,attrs:o}){let l=[];const a=t.ref([]),r=t.computed(()=>a.value.filter(B=>B.label===""||B.type?!1:B.fixed===""||B.fixed===!0||B.fixed==="left")),i=t.computed(()=>a.value.filter(B=>B.label===""||B.type?!1:B.fixed==="right")),s=t.computed(()=>a.value.filter(B=>!(B.label===""||B.type||B.fixed!==void 0))),u=t.computed(()=>(r.value.length>0||i.value.length>0)&&s.value.length>0),d=t.computed(()=>r.value.length>0),h=t.computed(()=>i.value.length>0),f=B=>B.length>1,b=(B,Z)=>{Array.isArray(B)&&Array.isArray(Z)&&B.forEach(S=>{Z.some(F=>F.prop===S.prop?(S.label=F.label,!0):!1)});const ee=[];a.value=B.map((S,F)=>(!(S.label===""||S.type)&&S.visible!==!1&&ee.push(S.prop),{...S,sortIndex:F})),s.value.length+r.value.length+i.value.length===ee.length?m.value=!0:ee.length>0&&(c.value=!0),M.value=ee},$=B=>B?B.type?B.type:B.label?B.prop:"":"",y=(B,Z)=>{if(B.length!==Z.length)return!1;const ee=B.map(W=>$(W));for(let W of Z){const S=$(W);if(ee.indexOf(S)===-1)return!1}return!0},g=B=>{if(!B){const Z=e.tableRef.getColumnSetting(),ee=Z.srcColumnPropertyList;l=ee.map((W,S)=>({...W,sortIndex:S})),B=Z.columnPropertyList,B&&B.length>0&&y(ee,B)||(B=ee)}b(B,l)},p=()=>{e.tableRef.setColumnSetting(a.value)},I=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=t.ref(!1),c=t.ref(!1),V=B=>{const Z=[];a.value.forEach(W=>{B&&!(W.label===""||W.type)&&Z.push(W.prop),W.visible=B}),m.value=!1,c.value=!1,s.value.length+r.value.length+i.value.length===Z.length?m.value=!0:Z.length>0&&(c.value=!0),M.value=Z,p()},R=()=>{g(l),p()},M=t.ref([]),k=B=>{a.value.forEach(ee=>{if(ee.label===""||ee.type)return;const W=B.indexOf(ee.prop)!==-1;ee.visible=W}),m.value=!1,c.value=!1;const Z=s.value.length+r.value.length+i.value.length;B.length===Z?m.value=!0:B.length>0&&(c.value=!0),p()},P=()=>{g()};t.onMounted(()=>{setTimeout(()=>{g()},50)});const D={currentRow:null,index:null,roleType:null},w=B=>B?B.dataset&&B.dataset.role==="row"?B:B.tagName.toLowerCase()!=="body"?(B=B.parentElement,w(B)):null:null,T=B=>{const Z=B.currentTarget;Z&&Z.dataset&&(D.roleType=Z.dataset.roleType,D.index=Z.dataset.index)},z=B=>{D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null),D.index=null,D.roleType=null},N=B=>{const Z=B.currentTarget;B.relatedTarget;const ee=w(Z);if(!ee)return;const W=ee.dataset&&ee.dataset.roleType;D.roleType===W&&(B.preventDefault(),D.currentRow&&D.currentRow!==ee&&D.currentRow.classList.remove("is-dragover"),ee.classList.add("is-dragover"),D.currentRow=ee)},C=B=>{B.preventDefault(),D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null)},E=B=>{const Z=B.currentTarget,ee=w(Z);if(!ee)return;const W=ee.dataset&&ee.dataset.roleType;if(D.roleType!==W)return;B.preventDefault();const S=Number(D.index),F=Number(ee.dataset.index);if(S!==F){if(S<F){const H=a.value[S];a.value.splice(S,1),a.value.splice(F,0,H)}else{const H=a.value[S];a.value.splice(S,1),a.value.splice(F+1,0,H)}b(a.value,l),p()}},Y=B=>{const Z=a.value[B];Z.fixed="left",p()},L=B=>{const Z=a.value[B];Z.fixed="right",p()},G=B=>{const Z=a.value[B];Z.fixed=void 0,p()},K=new Map;let U=null;function Q(B){const Z=document.createRange();return Z.setStart(B,0),Z.setEnd(B,B.childNodes.length),Z.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:h,isDraggble:f,isCheckAll:m,isIndeterminate:c,handleCheckAllChange:V,handleReset:R,checkedValue:M,handleCheckChange:k,onShow:P,onDragStart:T,onDragEnd:z,onDragOver:N,onDragLeave:C,onDrop:E,toLeftFixed:Y,toRightFixed:L,toUnFixed:G,checkboxLabelStyle:I,onMouseOverForOverflowText:(B,Z,ee)=>{const W=B.currentTarget;if(W){const S=Math.floor(W.offsetWidth);if(Math.floor(Q(W))>S){let H=K.get(Z);if(H){if(H===U)return;Fe.hide(H)}H=Fe.show(W,ee,{type:"text",placement:"top",closeOnClick:!1}),K.set(Z,H),U=H}}},onMouseLeaveForOverflowText:(B,Z)=>{const ee=K.get(Z);ee&&(Fe.hide(ee),ee===U&&(U=null))},onMouseOverForTip:(B,Z)=>{const ee=B.currentTarget;ee&&(U&&Fe.hide(U),U=Fe.show(ee,Z,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:B=>{U&&(Fe.hide(U),U=null)}}}}),id={class:"fox-table-setting"},sd={class:"fox-table-setting__header"},ud={class:"fox-table-setting__body"},cd={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},fd={key:0,class:"fox-table-setting__body-title"},dd=["data-index","draggable"],hd=["onMouseover","onMouseleave"],md={class:"tools-item"},gd={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},yd={key:0,class:"fox-table-setting__body-title"},pd=["data-index","draggable"],bd=["onMouseover","onMouseleave"],vd={class:"tools-item"},wd={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Sd={key:0,class:"fox-table-setting__body-title"},xd=["data-index","draggable"],Td=["onMouseover","onMouseleave"],Cd={class:"tools-item"};function $d(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),u=t.resolveComponent("DragIcon"),d=t.resolveComponent("RefreshLeft"),h=t.resolveComponent("FoxIcon"),f=t.resolveComponent("Download"),b=t.resolveComponent("fox-checkbox"),$=t.resolveComponent("FoxCheckboxGroup"),y=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(y,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",id,[t.createElementVNode("div",sd,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=g=>e.isCheckAll=g),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",ud,[t.createVNode($,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=g=>e.checkedValue=g),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",cd,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",fd,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,g=>(t.openBlock(),t.createElementBlock("div",{key:g.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":g.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:n[6]||(n[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:n[7]||(n[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:n[8]||(n[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:n[9]||(n[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,g.prop,g.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,hd)]),_:2},1032,["label"]),t.createElementVNode("div",md,[t.createVNode(h,{onClick:p=>e.toUnFixed(g.sortIndex),onMouseover:n[1]||(n[1]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:n[2]||(n[2]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:p=>e.toRightFixed(g.sortIndex),onMouseover:n[3]||(n[3]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:n[4]||(n[4]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])])],40,dd))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",gd,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",yd,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,g=>(t.openBlock(),t.createElementBlock("div",{key:g.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":g.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:n[15]||(n[15]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:n[16]||(n[16]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:n[17]||(n[17]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:n[18]||(n[18]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,g.prop,g.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,bd)]),_:2},1032,["label"]),t.createElementVNode("div",vd,[t.createVNode(h,{onClick:p=>e.toLeftFixed(g.sortIndex),onMouseover:n[10]||(n[10]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:p=>e.toRightFixed(g.sortIndex),onMouseover:n[12]||(n[12]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:n[13]||(n[13]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])])],40,pd))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",wd,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Sd,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,g=>(t.openBlock(),t.createElementBlock("div",{key:g.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":g.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:n[24]||(n[24]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:n[25]||(n[25]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:n[26]||(n[26]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:n[27]||(n[27]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(b,{class:"checkbox-item",label:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,g.prop,g.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,Td)]),_:2},1032,["label"]),t.createElementVNode("div",Cd,[t.createVNode(h,{onClick:p=>e.toUnFixed(g.sortIndex),onMouseover:n[19]||(n[19]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:n[20]||(n[20]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:p=>e.toLeftFixed(g.sortIndex),onMouseover:n[21]||(n[21]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])])],40,xd))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const xn=De(rd,[["render",$d]]);let kd=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,s){if(Array.isArray(o)){let d=(l-1)*a,h=d+a;h>o.length&&(h=o.length);const f=o.slice(d,h);return{totalSize:o.length,page:f}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i,s]);const u=Be(this.proxy,n);return u===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Me(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(u,null,[o,l,a,r,i,s]))}};function Dd(){const e=t.getCurrentInstance();return new kd(e.proxy)}let Nd=class{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Be(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Be(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Be(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}};function Ed(){const e=t.getCurrentInstance();return new Nd(e.proxy)}const Id=Symbol.for("TableStateKey"),lr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},or={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationBackground:{type:[Boolean],required:!1,default:!0},paginationSmall:{type:[Boolean],required:!1,default:!1},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Bl={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Vd={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Od(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,s=r.indexOf("["),u=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=r.substring(s+1,u);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let f=r.substring(0,s);l=l[f][h]}else l=l[h];i++}s=r.indexOf("[",u),u=s==-1?-1:r.indexOf("]",s)}i===0&&(l=l[r])}return l}function Fl(e,n){return e.filter(l=>{for(let a in n){const r=n[a],i=Od(l,a);if(r!==i)return!1}return!0})}function Ad(e,n,o){return{inheritAttrs:!1,props:{...Se,...ke,...lr,...or,...Bl,...Vd},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,a){const{locale:r}=we.useFoxI18n(n),{emitEvent:i}=Ce({componentName:e,validateHandler:{getValue(...te){return M.value}}},l.prop??a.attrs.name),s=e,u=t.computed(()=>({[s]:!0})),d=t.computed(()=>({[`${s}__setting`]:!0})),h=t.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${l.footerAlign}`]:!0})),f=t.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${l.paginationAlign}`]:!0})),b=t.shallowRef({}),$=t.computed(()=>({...b.value,...l.params??{},...l.baseParams??{}})),y=t.ref(l.infiniteLoad===!0?0:l.pageIndex),g=t.ref(l.pageSize),p=ce(l.infiniteLoad);p||(t.watch(()=>l.pageIndex,te=>{y.value=te}),t.watch(()=>l.pageSize,te=>{g.value=te}),t.watch([y,g],([te,oe],[se,ue])=>{oe!==ue&&(y.value=1,te=1),w(l.data,te,oe,$.value)}));const I=()=>Array.isArray(l.data)?!0:ce(l.autoLoad);I()&&t.watch([()=>l.data,$],async([te,oe],[se,ue])=>{I()&&(te!==se&&(P=!0),!(!Array.isArray(te)&&Le(te,se)&&Le(oe,ue))&&(p?(y.value=0,V.value=!0,M.value=[],z()):y.value===1?w(te,y.value,g.value,oe):y.value=1))},{deep:!0});const m=te=>{y.value=te,i("page-index-change",te)},c=te=>{g.value=te,i("page-size-change",te)},V=t.ref(!0),R=t.ref(0),M=t.ref(),k=Dd();let P=!0;const D=Ae(t.computed(()=>l.lazyLoad),"lazyLoad",Ge.Near,te=>ce(te)),w=async(te,oe,se,ue,be)=>{P=!1;try{if(be===!0){if(!V.value)return!1;const ge=await k.load("table",te,oe,se,ue,P,r.value);return R.value=ge.totalSize,!ge.page||!Array.isArray(ge.page)||(Reflect.apply([].push,M.value,ge.page),setTimeout(()=>{i("loaded-data")},250),(M.value?.length??0)>=R.value)||ge.page.length<se?(V.value=!1,!1):!0}else{const ge=await k.load("table",te,oe,se,ue,P,r.value);return R.value=ge.totalSize,M.value=ge.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ge){console.error("[FoxUI] Load Table Data Fail",ge),R.value=0,M.value=[]}return!1};let T=!1;const z=async()=>{if(!T){if(T=!0,!V.value){T=!1;return}y.value+=1,await w(l.data,y.value,g.value,$.value,!0),T=!1}},N=(te={},oe=!1)=>new Promise(async se=>{b.value=t.toRaw(te??{}),oe||(y.value=l.pageIndex??1),p===!0?(y.value=0,M.value=[],V.value=!0,await z()):await w(l.data,y.value,g.value,$.value),se()}),C=()=>{R.value=0,M.value=[],p===!0&&(y.value=0,V.value=!0)};let E=!1;const Y=()=>{E||(E=!0,N())},L=t.ref(null);if(p===!0){let te=null;const oe=()=>{L.value&&(te=new IntersectionObserver(ue=>{let be=!1;for(let ge of ue)if(ge.intersectionRatio>0){be=!0;break}be&&z()}),te.observe(L.value))},se=()=>{!te||!L.value||(te.unobserve(L.value),te=null)};t.onMounted(oe),t.onBeforeUnmount(se)}I()&&!D.value&&N();const G=t.ref(null);t.provide(Id,{currentRow:G});const K=(te,oe)=>{G.value=te,i("current-change",te,oe)},U=(te,oe,se)=>{i("row-click",te,oe,se),ce(l.rowClickSelectable)===!0&&ae?.value.toggleRowSelection(te)},Q=[],_=(te,oe)=>{if(i("expand-change",te,oe),ce(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const se=Q.length;Q.splice(0,se)}else{Q.forEach(ue=>{ue!==te&&ae?.value.toggleRowExpansion(ue,!1)});const se=Q.length;Q.splice(0,se,te)}},O=a.attrs.id??l.prop??a.attrs.name,q=Ed(),j=t.ref([]);let B=[];const Z=()=>({srcColumnPropertyList:B.map(oe=>({...oe})),columnPropertyList:j.value}),ee=te=>{j.value=[...te],S()},W=async()=>{const te=await q.load(O);te&&(j.value=te)},S=()=>{q.save(O,j.value)},F=()=>{q.remove(O)};W();const H=te=>te?te.type?te.type:te.label?te.prop:"":"",J=t.computed(()=>{if(typeof a.slots.default=="function"){const te=a.slots.default(),oe=new Map;if(B=[],te.forEach(se=>{const ue=se;if(!ue.props)return;const be=H(ue.props);oe.set(be,se);const ge={label:"",prop:""};Object.assign(ge,ue.props),B.push(ge)}),j.value.length===B.length){const se=[];for(let ue of j.value){const be=H(ue),ge=oe.get(be);if(!ge)return te;if(ue.visible===!1)continue;const tt=ge;tt.props.fixed=ue.fixed,se.push(tt)}return se}return te}return[]}),le=t.shallowRef(new Map),x=({column:te,rowIndex:oe})=>{const se=`${oe}_${te.property}`;return le.value.get(se)??""},X=te=>typeof te=="function"?oe=>{const se=[];let ue=x(oe);return ue&&se.push(ue),ue=te(oe),ue&&se.push(ue),se.length===0?"":se.join(" ")}:x,ne=(te,oe,se)=>{const ue=`${te}_${oe}`;se?le.value.set(ue,se):le.value.delete(ue),t.triggerRef(le)},ae=t.ref();return pe({clearSelection:()=>ae?.value.clearSelection(),getSelectionRows:()=>ae?.value.getSelectionRows(),toggleRowSelection:(te,oe)=>{ae?.value.toggleRowSelection(te,oe)},toggleRowSelectionByProp:(te,oe)=>{if(!M.value)return;const se=Fl(M.value,te);se.length!==0&&se.forEach(ue=>{ae?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{ae?.value.toggleAllSelection()},toggleRowExpansion:(te,oe)=>{ae?.value.toggleRowExpansion(te,oe)},toggleRowExpansionByProp:(te,oe)=>{if(!M.value)return;const se=Fl(M.value,te);se.length!==0&&se.forEach(ue=>{ae?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:te=>{ae?.value.setCurrentRow(te)},setCurrentRowByProp:te=>{if(!M.value)return;const oe=Fl(M.value,te);oe.length!==0&&ae?.value.setCurrentRow(oe[0])},getCurrentRow:()=>G.value,clearSort:()=>{ae?.value.clearSort()},clearFilter:te=>{ae?.value.clearFilter(te)},doLayout:()=>{ae?.value.doLayout()},sort:(te,oe)=>{ae?.value.sort(te,oe)},scrollTo:(te,oe)=>{ae?.value.scrollTo(te,oe)},setScrollTop:te=>{ae?.value.setScrollTop(te)},setScrollLeft:te=>{ae?.value.setScrollLeft(te)},loadData:N,clearData:C,getData(){return M.value},getTotalSize(){return R.value},getPageIndex(){return y.value},getPageSize(){return g.value},getColumnSetting:Z,setColumnSetting:ee,removeColumnSetting:F,setCellClassName:ne}),()=>{const oe={...je(a.attrs),onCurrentChange:K,onRowClick:U,onExpandChange:_,data:M.value,ref:ae,class:u.value,"cell-class-name":X(l.cellClassName)},se={};if(a.slots.default&&(se.default=()=>J.value),a.slots.append&&(se.append=()=>a.slots.append),a.slots.empty&&(se.empty=()=>a.slots.empty),p===!0){const qe=[];if(V.value){const Lt=t.h(ve.Loading,{class:`${s}__infinite-icon`});qe.push(Lt);const ho=t.h("span",{class:`${s}__infinite-text`},[l.loadText]);qe.push(ho)}else{const Lt=t.h("span",{class:`${s}__infinite-text`},[l.loadMoreText]);qe.push(Lt)}const st={ref:L,class:`${s}__infinite`},fo=t.h("div",st,qe);se.append=()=>fo}const ue=t.h(A.ElTable,oe,se),be=[];if(be.push(ue),!p){let qe=null;if(typeof a.slots.pagination=="function")qe=a.slots.pagination();else if(l.showPagination){const st={class:f.value,total:R.value,pageSize:g.value,"onUpdate:pageSize":c,pageSizes:l.pageSizes,currentPage:y.value,"onUpdate:currentPage":m,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};qe=t.h(A.ElPagination,st)}if(l.showSetting){const st=[];qe&&st.push(qe);const fo=t.h(A.ElIcon,{class:d.value},{default:()=>t.h(ve.Setting)}),Lt=ut(l,Bl),ho=t.h(xn,{...Lt,tableRef:{getColumnSetting:Z,setColumnSetting:ee,removeColumnSetting:F}},{default:()=>fo});st.push(ho);const Mg=t.h("div",{class:h.value},st);be.push(Mg)}else qe&&be.push(qe)}const ge={default:()=>be},Mt={...$e(l,lr,or,Bl),prop:`${l.prop}_item`};return Mt.contentClass=`${s}__wrap`,Mt.errorMarkClass="is-table-error",D.value&&I()&&(Mt["appear-listen"]=!0,Mt.onAppear=Y),t.h(o,Mt,ge)}}}}const{componentName:Bd,create:Fd,scope:Rd}=re("table-item"),Rl=Fd(Ad(Bd,Rd,xe));function pt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Md(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Ld=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Be(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function _d(){const e=t.getCurrentInstance();return new Ld(e.proxy)}function ar(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=pt(e,n),a=pt(e,o);if(l!==a)return!1;const r=Rt(e,n),i=Rt(e,o);return r===i}function Pd(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;let a=null;for(let r of l){let i=!1;if(o==="text")i=pt(e,r)===n;else if(o==="item")i=ar(e,r,n);else{let s=Rt(e,r);s==null&&(s=pt(e,r)),i=s===n}if(i){a=r;break}}return a}function qd(e){return{text:e,value:e}}function zd(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const rr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function jd(e,n,o){return{inheritAttrs:!0,props:{...Se,...ke,...rr},emits:["change","update:modelValue"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),u=t.ref(null),d=t.ref(null),h=(k,P,D,w=!0)=>{const T=Pd(l,k,P,D);if(T===null){if(d.value===null)return;d.value=null,u.value=null,w&&(s("update:modelValue",null),s("change",null));return}if(!ar(l,T,d.value)){u.value=k;const N=t.toRaw(T);d.value=N;let C=null;l.valueType==="text"?C=pt(l,N):l.valueType==="item"?C=N:C=Rt(l,N),w&&(s("update:modelValue",C),s("change",C))}},f=t.ref([]),b=Ae(t.computed(()=>l.lazyLoad),"lazyLoad",Ge.Near,k=>ce(k)),$=_d(),y=async(k,P)=>{if(k){const D=await $.load("radio",k,P);if(D.length>0)if(typeof D[0]=="string"){let z=D.map(N=>qd(N));f.value=z}else f.value=D}};t.watch([()=>l.source,()=>l.params],async([k,P])=>{y(k,P)},{immediate:!b.value});let g=!1;const p=()=>{g||(g=!0,y(l.source,l.params))};t.watch([()=>f.value,()=>l.modelValue],([k,P])=>{h(P,l.valueType,k,!1)});const I=e,m=t.computed(()=>({[I]:!0,[`is-${l.direction}`]:!0})),c=k=>{h(k,"value",f.value,!0)};let V=de(l,"hintText"),R=de(l,"hintVisible");const M=(k,P)=>{const D=[];return k.forEach((w,T)=>{const z=Rt(l,w),N=pt(l,w);let C=Md(l,w);r.value===!0&&(C=r.value),i.value===!0&&(C=i.value);const E=zd(l,w,T)??{},Y=`${z}_${T}`,L={...E,key:Y,label:z,size:l.size,border:ce(l.border)};C&&(L.disabled=C),l.itemType==="button"?D.push(t.h(A.ElRadioButton,L,{default:()=>[N]})):typeof P=="function"?D.push(t.h(A.ElRadio,L,{default:()=>P(w)})):D.push(t.h(A.ElRadio,L,{default:()=>[N]}))}),D};return()=>{const P={...je(a.attrs),class:m.value,disabled:r.value||i.value,modelValue:u.value,"text-color":l.textColor,fill:l.fill,onChange:c},D=[],w={};a.slots.options?w.default=a.slots.options:w.default=()=>M(f.value,a.slots.text);const T=t.h(A.ElRadioGroup,P,w);D.push(T);const z={default:()=>D};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const C={...$e(l,rr),hintText:V.value,hintVisible:R.value,prop:`${l.prop??a.attrs.name}_item`};return b.value&&(C["appear-listen"]=!0,C.onAppear=p),t.h(o,C,z)}}}}const{componentName:Hd,create:Kd,scope:Wd}=re("radio-item"),Ml=Kd(jd(Hd,Wd,xe));function bt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function vt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Yd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Ud=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Be(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Gd(){const e=t.getCurrentInstance();return new Ud(e.proxy)}function ir(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=bt(e,n),a=bt(e,o);if(l!==a)return!1;const r=vt(e,n),i=vt(e,o);return r===i}function Xd(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(r=>{for(let i of l){let s=!1;if(o==="text")s=bt(e,i)===r;else if(o==="item")s=ir(e,i,r);else{let u=vt(e,i);u==null&&(u=bt(e,i)),s=u===r}if(s){a.push(i);break}}}),a}function Zd(e){return{text:e,value:e}}function Jd(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const sr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Qd(e,n,o){return{inheritAttrs:!0,props:{...Se,...ke,...sr},emits:["change","update:modelValue"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),u=t.ref([]),d=t.ref([]),h=(k,P,D,w=!0)=>{const T=Xd(l,k,P,D);if(T===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],w&&(s("update:modelValue",[]),s("change",[]));return}let z=!0;if(T.length!==d.value.length)z=!1;else for(let N=0;N<T.length;N++){const C=T[N],E=d.value[N];if(!ir(l,C,E)){z=!1;break}}if(!z){d.value=T;let N=[],C=[];T.forEach(Y=>{N.push(vt(l,Y)),l.valueType==="text"?C.push(bt(l,Y)):l.valueType==="item"?C.push(Y):C.push(vt(l,Y))}),u.value=N;const E=t.toRaw(C);w&&(s("update:modelValue",E),s("change",E))}},f=t.ref([]),b=Ae(t.computed(()=>l.lazyLoad),"lazyLoad",Ge.Near,k=>ce(k)),$=Gd(),y=async(k,P)=>{if(k){const D=await $.load("checkbox",k,P);if(D.length>0)if(typeof D[0]=="string"){let z=D.map(N=>Zd(N));f.value=z}else f.value=D}};t.watch([()=>l.source,()=>l.params],async([k,P])=>{y(k,P)},{immediate:!b.value});let g=!1;const p=()=>{g||(g=!0,y(l.source,l.params))};t.watch([()=>f.value,()=>l.modelValue],([k,P])=>{h(P,l.valueType,k,!1)});const I=e,m=t.computed(()=>({[I]:!0,[`is-${l.direction}`]:!0})),c=k=>{h(k,"value",f.value,!0)};let V=de(l,"hintText"),R=de(l,"hintVisible");const M=(k,P)=>{const D=[];return k.forEach((w,T)=>{const z=vt(l,w),N=bt(l,w);let C=Yd(l,w);r.value===!0&&(C=r.value),i.value===!0&&(C=i.value);const E=Jd(l,w,T)??{},Y=`${z}_${T}`,L={...E,key:Y,class:l.itemClass,label:z,size:l.size,border:ce(l.border)};C&&(L.disabled=C),l.itemType==="button"?D.push(t.h(A.ElCheckboxButton,L,{default:()=>[N]})):typeof P=="function"?D.push(t.h(A.ElCheckbox,L,{default:()=>P(w)})):D.push(t.h(A.ElCheckbox,L,{default:()=>[N]}))}),D};return()=>{const P={...je(a.attrs),class:m.value,disabled:r.value||i.value,modelValue:u.value,"text-color":l.textColor,fill:l.fill,max:he(l.max),min:he(l.min),onChange:c},D=[],w={};a.slots.options?w.default=a.slots.options:w.default=()=>M(f.value,a.slots.text);const T=t.h(A.ElCheckboxGroup,P,w);D.push(T);const z={default:()=>D};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const C={...$e(l,sr),hintText:V.value,hintVisible:R.value,prop:`${l.prop??a.attrs.name}_item`};return b.value&&(C["appear-listen"]=!0,C.onAppear=p),t.h(o,C,z)}}}}const{componentName:eh,create:th,scope:nh}=re("checkbox-item"),Ll=th(Qd(eh,nh,xe)),ur={modelValue:{type:[Number,String],required:!1}};function lh(e,n,o){return{props:{...Se,...ke,...ur},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),u=de(l,"modelValue",g=>he(g)),d=e,h=t.computed(()=>({[d]:!0})),f=g=>{s("update:modelValue",g),s("change",g)};let b=de(l,"hintText"),$=t.ref(!1);const y=t.ref();return pe({}),()=>{const p={...je(a.attrs),ref:y,class:h.value,readonly:i.value||r.value,modelValue:u.value,onChange:f},I={},m=[],c=t.h(A.ElRate,p,I);m.push(c);const V={default:()=>m};a.slots.default&&(V.label=a.slots.default),a.slots.fixedTip&&(V.fixedTip=a.slots.fixedTip);const M={...$e(l,ur),hintText:b.value,hintVisible:$.value,prop:`${l.prop}_item`};return t.h(o,M,V)}}}}const{componentName:oh,create:ah,scope:rh}=re("rate-item"),_l=ah(lh(oh,rh,xe)),cr={modelValue:{type:[Boolean,String,Number],required:!1}};function ih(e,n,o){return{props:{...Se,...ke,...cr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),u=de(l,"modelValue"),d=e,h=t.computed(()=>({[d]:!0})),f=g=>{s("update:modelValue",g),s("change",g)};let b=de(l,"hintText"),$=de(l,"hintVisible");const y=t.ref();return pe({}),()=>{const p={...je(a.attrs),ref:y,class:h.value,readonly:i.value,disabled:r.value,modelValue:u.value,onChange:f},I={},m=[],c=t.h(A.ElSwitch,p,I);m.push(c);const V={default:()=>m};a.slots.default&&(V.label=a.slots.default),a.slots.fixedTip&&(V.fixedTip=a.slots.fixedTip);const M={...$e(l,cr),hintText:b.value,hintVisible:$.value,prop:`${l.prop}_item`};return t.h(o,M,V)}}}}const{componentName:sh,create:uh,scope:ch}=re("switch-item"),Pl=uh(ih(sh,ch,xe)),fr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function fh(e,n,o){return{props:{...Se,...ke,...fr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),s=t.ref(!1),{emitEvent:u}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),d=de(l,"modelValue"),h=e,f=t.computed(()=>({[h]:!0})),b=R=>{u("update:modelValue",R),u("change",R)};let $=de(l,"hintText"),y=t.ref(!1);const g=R=>{let k=R.target.value;s.value=!0,ye($.value)||(y.value=!0),u("focus",k,R)},p=R=>{setTimeout(()=>{y.value&&(y.value=!1),s.value=!1},0);let k=R.target.value;l.maxLength&&k.length>Number(l.maxLength)&&(k=k.slice(0,Number(l.maxLength))),m.value||u("blur",k,R)},I=()=>{u("clear","")},m=t.ref(!1),c=R=>{m.value=R,u("visible-change",R),R||u("selected")},V=t.ref();return pe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()}}),()=>{const M={...je(a.attrs),ref:V,class:f.value,disabled:r.value||i.value,modelValue:d.value,"onUpdate:modelValue":b,onClear:I,onFocus:g,onBlur:p,onVisibleChange:c},k={};a.slots.option&&(k.default=a.slots.option);const P=[],D=t.h(A.ElTreeSelect,M,k);P.push(D);const w={default:()=>P};a.slots.default&&(w.label=a.slots.default),a.slots.fixedTip&&(w.fixedTip=a.slots.fixedTip);const z={...$e(l,fr),hintText:$.value,hintVisible:y.value,prop:`${l.prop}_item`};return t.h(o,z,w)}}}}const{componentName:dh,create:hh,scope:mh}=re("tree-select-item"),ql=hh(fh(dh,mh,xe));class gh{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Be(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Be(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Be(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function yh(){const e=t.getCurrentInstance();return new gh(e.proxy)}const ph={},bh={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},vh=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function wh(e,n){return t.openBlock(),t.createElementBlock("svg",bh,vh)}const Sh=De(ph,[["render",wh]]),{componentName:ey,create:xh,scope:ty}=re("group-setting"),Th={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Ch=xh({components:{FoxPopover:A.ElPopover,FoxCheckbox:A.ElCheckbox,FoxCheckboxGroup:A.ElCheckboxGroup,FoxButton:A.ElButton,FoxIcon:A.ElIcon,DragIcon:Sh,Download:ve.Download,RefreshLeft:ve.RefreshLeft},props:{...Th},emits:["change"],setup(e,{emit:n,attrs:o,expose:l}){let a=null;const r=t.ref([]),i=yh(),s=_=>_.length>1,u=()=>{const _=[],O=[...r.value];r.value=O.map((j,B)=>(j.visible!==!1&&_.push(j.prop),{...j,sortIndex:B})),r.value.length===_.length?g.value=!0:_.length>0&&(p.value=!0),c.value=_},d=_=>{let O=null;if(typeof _=="string")O=document.querySelectorAll(`.fox-group[prop="${_}"] > div > .fox-item[prop]`);else if(_&&typeof _=="object"){const j=_.$el??_;typeof j.querySelectorAll=="function"&&(O=j.querySelectorAll(".fox-item[prop]"))}if(!O)return[];const q=[];return O.forEach(j=>{const B=j.querySelector(".label--string");let Z="";B&&(Z=B.textContent??"");const ee=j.getAttribute("prop")??"",S=window.getComputedStyle(j,null).getPropertyValue("display");q.push({label:Z,prop:ee,sortIndex:0,visible:S!=="none"})}),q},h=()=>{if(!a){const _=d(e.groupRef??e.groupProp);if(_.length===0)return!1;a=_}return!0},f=async(_=!1)=>{const O=await i.load(e.groupProp),q=j=>{if(!j||!a)return;const B=a.map(Z=>({...Z}));Array.isArray(O)&&O.forEach(Z=>{B.some(ee=>{if(ee.prop===Z.prop){const W=ee.label;return Object.assign(ee,Z),ee.label=W,!0}return!1})}),r.value=B.sort((Z,ee)=>Z.sortIndex-ee.sortIndex),u(),_&&$(!1)};a?q(!0):Gt(h,e.initDelay,5,50,!1,q)},b=()=>{const _=a??[];r.value=_.map(O=>({...O})),u(),$()},$=(_=!0)=>{_&&i.save(e.groupProp,r.value);const O=r.value.map(q=>({...q}));n("change",O)},y=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),p=t.ref(!1),I=_=>{const O=[];r.value.forEach(j=>{_&&O.push(j.prop),j.visible=_}),g.value=!1,p.value=!1,r.value.length===O.length?g.value=!0:O.length>0&&(p.value=!0),c.value=O,$()},m=()=>{b()},c=t.ref([]),V=_=>{r.value.forEach(q=>{const j=_.indexOf(q.prop)!==-1;q.visible=j}),g.value=!1,p.value=!1;const O=r.value.length;_.length===O?g.value=!0:_.length>0&&(p.value=!0),$()},R=()=>{f()};t.onMounted(()=>{f(!0)});const M={currentRow:null,index:null},k=_=>_?_.dataset&&_.dataset.role==="row"?_:_.tagName.toLowerCase()!=="body"?(_=_.parentElement,k(_)):null:null,P=_=>{const O=_.currentTarget;O&&O.dataset&&(M.index=O.dataset.index)},D=_=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null},w=_=>{const O=_.currentTarget;_.relatedTarget;const q=k(O);q&&(_.preventDefault(),M.currentRow&&M.currentRow!==q&&M.currentRow.classList.remove("is-dragover"),q.classList.add("is-dragover"),M.currentRow=q)},T=_=>{_.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},z=_=>{const O=_.currentTarget,q=k(O);if(!q)return;_.preventDefault();const j=Number(M.index),B=Number(q.dataset.index);if(j!==B){if(j<B){const Z=r.value[j];r.value.splice(j,1),r.value.splice(B,0,Z)}else{const Z=r.value[j];r.value.splice(j,1),r.value.splice(B+1,0,Z)}u(),$()}},N=_=>{const O=r.value[_];r.value.splice(_,1),r.value.splice(0,0,O),u(),$()},C=_=>{const O=r.value[_];r.value.splice(_,1),r.value.push(O),u(),$()};l({refresh:()=>{a=null,f(!1)}});const E=new Map;let Y=null;function L(_){const O=document.createRange();return O.setStart(_,0),O.setEnd(_,_.childNodes.length),O.getBoundingClientRect().width}return{attrs:o,itemPropertyList:r,isDraggble:s,isCheckAll:g,isIndeterminate:p,handleCheckAllChange:I,handleReset:m,checkedValue:c,handleCheckChange:V,onShow:R,onDragStart:P,onDragEnd:D,onDragOver:w,onDragLeave:T,onDrop:z,checkboxLabelStyle:y,toTop:N,toBottom:C,onMouseOverForOverflowText:(_,O,q)=>{const j=_.currentTarget;if(j){const B=Math.floor(j.offsetWidth);if(Math.floor(L(j))>B){let ee=E.get(O);if(ee){if(ee===Y)return;Fe.hide(ee)}ee=Fe.show(j,q,{type:"text",placement:"top",closeOnClick:!1}),E.set(O,ee),Y=ee}}},onMouseLeaveForOverflowText:(_,O)=>{const q=E.get(O);q&&(Fe.hide(q),q===Y&&(Y=null))},onMouseOverForTip:(_,O)=>{const q=_.currentTarget;q&&(Y&&Fe.hide(Y),Y=Fe.show(q,O,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:_=>{Y&&(Fe.hide(Y),Y=null)}}}}),$h={class:"fox-group-setting"},kh={class:"fox-group-setting__header"},Dh={class:"fox-group-setting__body"},Nh={class:"fox-group-setting__body-list","data-role":"container"},Eh=["data-index","draggable"],Ih=["onMouseover","onMouseleave"],Vh={class:"tools-item"};function Oh(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),u=t.resolveComponent("DragIcon"),d=t.resolveComponent("Download"),h=t.resolveComponent("FoxIcon"),f=t.resolveComponent("FoxCheckboxGroup"),b=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(b,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",$h,[t.createElementVNode("div",kh,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=$=>e.isCheckAll=$),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Dh,[t.createVNode(f,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=$=>e.checkedValue=$),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",Nh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,$=>(t.openBlock(),t.createElementBlock("div",{key:$.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":$.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[6]||(n[6]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[7]||(n[7]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[8]||(n[8]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[9]||(n[9]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:$.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,$.prop,$.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,$.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString($.label),45,Ih)]),_:2},1032,["label"]),t.createElementVNode("div",Vh,[t.createVNode(h,{onClick:y=>e.toTop($.sortIndex),onMouseover:n[1]||(n[1]=y=>e.onMouseOverForTip(y,e.toTopText)),onMouseleave:n[2]||(n[2]=y=>e.onMouseLeaveForTip(y)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:y=>e.toBottom($.sortIndex),onMouseover:n[3]||(n[3]=y=>e.onMouseOverForTip(y,e.toBottomText)),onMouseleave:n[4]||(n[4]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,Eh))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const zl=De(Ch,[["render",Oh]]),Tn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popStyle:{type:Object,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Ah(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(Cn(e,r)===o)return a}else if(l==="item"){if(Le(o,r))return a}else if(hr(e,r)===o)return a}return-1}function Cn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function dr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function hr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Bh(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Fh(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}let Rh=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,s){if(Array.isArray(o)){let d=o;typeof s=="function"&&(d=d.filter(s));let h=(l-1)*a,f=h+a;f>d.length&&(f=d.length);const b=d.slice(h,f);return{totalSize:d.length,page:b}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i]);const u=Be(this.proxy,n);return u===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Me(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(u,null,[o,l,a,r]))}};function Mh(){const e=t.getCurrentInstance();return new Rh(e.proxy)}function Lh(e,n,o,l,a,r,i,s,u,d,h){return{props:{...Tn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(f,{emit:b,slots:$}){const{toLocaleRefs:y}=we.useFoxI18n(n),g=y(f,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),p=Mh(),I=t.ref([]),m=t.ref(0),c=t.ref(""),V=t.shallowRef(null),R=t.computed(()=>{const S={};return f.params&&Object.assign(S,f.params),ye(c.value)||(S[`${f.searchKey}`]=c.value),V.value&&Object.assign(S,V.value),S});let M=!0;const k=async(S,F,H)=>{try{if(D.value===!1)return;let J=null;ye(c.value)||(J=x=>{const X=Cn(f,x);if(typeof X=="string"&&X.includes(c.value))return!0;const ne=dr(f,x);return!!(typeof ne=="string"&&ne.includes(c.value))});const le=await p.load("actionsheet",S,F,H,R.value,M,J??void 0);M=!1,Array.isArray(le)?(I.value=le,m.value=1,D.value=!1):!Array.isArray(le.page)||le.page.length===0?(console.warn("[FoxUI] can not load more data"),D.value=!1):(Reflect.apply([].push,I.value,le.page),m.value=Math.ceil(I.value.length/f.pageSize),(le.totalSize&&I.value.length>=le.totalSize||H<le.page.length)&&(D.value=!1)),P.value=!1}catch(J){console.error("[FoxUI] ActionSheet load more data fail",J),D.value=!0,m.value=0,I.value=[]}setTimeout(()=>{b("loaded-data")},250)},P=t.ref(!1),D=t.ref(!0),w=async()=>{if(!f.source){P.value=!1;return}await k(f.source,m.value+1,f.pageSize)};t.watch(()=>c.value,(S,F)=>{ye(S)&&!ye(F)&&w()}),t.watch([()=>f.source,()=>f.pageSize,()=>f.params],async([S,F,H])=>{f.source&&w()},{immediate:!0});const T=t.computed(()=>!f.multiple&&f.isAutoBackFill),z=t.ref([]);let N=null;const C=t.ref(f.visible);t.watch(()=>f.visible,S=>{C.value!==S&&(C.value=S),S?N=[...z.value]:N=null});const E=(S,F)=>{const H=[];return Array.isArray(S)||(S=[S]),S.forEach(J=>{let le=Ah(f,F,J,f.valueType);le!==-1&&H.push(le)}),Le(H,z.value)?!1:(z.value=H,!0)};t.watch([()=>f.modelValue,()=>I.value],([S,F],[H,J])=>{if(E(S,F)){const x=Y();L(x)}},{deep:!0});const Y=()=>{const S=[],F=[],H=[];for(let X of z.value){const ne=I.value[X];F.push(ne);const ae=Cn(f,ne);if(H.push(ae),f.valueType==="item")S.push(ne);else if(f.valueType==="text")S.push(ae);else{const te=hr(f,ne);S.push(te)}}let J=null,le=null,x=null;return f.multiple?(J=S,le=H,x=F):(J=S[0]??null,le=H[0]??null,x=F[0]??null),{value:J,text:le,item:x}},L=S=>{b("update:modelValue",S.value),b("update:text",S.text),b("change",S.value,S.item,S.text)},G=()=>{N&&(z.value=N)},K=S=>{const F=z.value.indexOf(S);f.multiple?F===-1?z.value.push(S):z.value.splice(F,1):F===-1?z.value=[S]:z.value=[],(T.value||!f.poppable&&!f.showFooter)&&_()},U=S=>{C.value=S,b("update:visible",S)},Q=()=>{const S=()=>{G(),U(!1)},F=f.beforeMethod??f.beforeClose;if(typeof F=="function"){const H=F("close");zt(H)?H.then(J=>{J!==!1&&S()}).catch(()=>{S()}):H!==!1&&S()}else S()},_=()=>{const S=Y(),F=()=>{L(S),U(!1)},H=f.beforeMethod??f.beforeClose;if(typeof H=="function"){const J=H("confirm",S.value,S.item,S.text);zt(J)?J.then(le=>{le!==!1&&F()}).catch(()=>{F()}):J!==!1&&F()}else F()},O=()=>{D.value=!0,m.value=0,I.value=[],f.source&&w()},q=()=>{let S=g.title.value??"";$.title&&(S=$.title());const F=t.h("view",{class:["fox-actionsheet__header-title"]},[S]),H=t.h(u,{class:["fox-actionsheet__header-icon"],onClick:Q});return t.h("view",{class:["fox-actionsheet__header"]},[F,H])},j=()=>{let S=null;if($.search)S=$.search();else{const F={onSearch:O,placeholder:g.seachPlaceholder.value,disabled:f.disabled,modelValue:c.value,"onUpdate:modelValue":H=>{c.value=H}};S=t.h(r,F,{leftin:()=>t.h(d)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[S])},B=(S,F,H,J,le)=>{if($.optionLabel)return $.optionLabel({text:S,checked:F,disabled:H,subText:J,item:le});const x=[],X=t.h("view",{class:"fox-actionsheet__list-item-text"},[S]);if(x.push(X),J){const ne=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[J]);x.push(ne)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},x)},Z=(S,F,H,J)=>{if($.optionIcon)return $.optionIcon({checked:S,disabled:F,iconSize:H,item:J});if(S){if($.checkedIcon)return $.checkedIcon({disabled:F,item:J});{const le=f.checkedIcon??s;return t.h(le,{width:H,height:H,class:["fox-actionsheet__list-item-icon"]})}}else{if($.icon)return $.icon({disabled:F,item:J});{const le=f.icon??i;return t.h(le,{width:H,height:H,class:["fox-actionsheet__list-item-icon"]})}}},ee=()=>{const S=[];for(let F=0;F<I.value.length;F++){const H=I.value[F],J=Cn(f,H),le=dr(f,H),x=["fox-actionsheet__list-item"],X={};let ne=Bh(f,H),ae=f.iconSize?me(f.iconSize):null;const te=Fh(f,H,F);te&&(ne=ne||te.disabled,te.class&&x.push(te.class),te.style&&Object.assign(X,te.style)),ne=!!(f.disabled||ne);const oe=z.value.includes(F);ne&&x.push("is-disabled"),oe&&x.push("is-checked");const se={class:x,style:X,key:`${F}`,onClick:()=>{ne||K(F)}};let ue=[];if($.option)ue.push($.option({item:H,checked:oe,disabled:ne}));else{const ge=B(J,oe,ne,le,H);ue.push(ge);const tt=Z(oe,ne,ae,H);ue.push(tt)}const be=t.h("view",se,ue);S.push(be)}return S},W=()=>{let S=[];if($.buttons)S=$.buttons();else{const H=t.h(a,{type:"primary",block:"block",onClick:_,disabled:f.disabled},{default:()=>g.confirmText.value});S.push(H)}return t.h("view",{class:"fox-actionsheet__footer"},[S])};return pe({search:async(S=null,F=!0)=>{V.value=S&&t.toRaw(S),t.triggerRef(V),F&&(D.value=!0,m.value=0,I.value=[]),t.nextTick(()=>{w()})},clear:()=>{D.value=!0,m.value=0,I.value=[]},confirm:()=>{_()},cancel:()=>{Q()}}),()=>{const S=[];if(f.showHeader){const ae=q();S.push(ae)}if(f.showSearchbar){const ae=j();S.push(ae)}let F=null;if($.content)F=$.content();else{const ae=ee(),te={hasMore:D.value,loadText:g.loadText.value,loadMoreText:g.loadMoreText.value,modelValue:P.value,"onUpdate:modelValue":oe=>{P.value=oe},onLoadMore:w};F=t.h(l,te,{default:()=>ae})}const H={};f.optionsHeight&&(H.height=f.optionsHeight);const J={"fox-actionsheet__list":!0};f.poppable||(J["fox-actionsheet__list--inner"]=!0);const le=t.h("view",{class:J,style:H},[F]);if(S.push(le),f.showFooter&&!T.value){const ae=W();S.push(ae)}const x=t.h("view",{class:"fox-actionsheet"},S);if(!f.poppable)return x;const X=["fox-actionsheet__popup"];f.popClass&&X.push(f.popClass);const ne={popClass:X.join(" "),visible:C.value,closeable:!1,"onUpdate:visible":U,position:f.position,round:"round",onClickOverlay:Q,closeOnClickOverlay:f.closeOnClickOverlay};return t.h(o,ne,{default:()=>x})}}}}const{componentName:_h,create:Ph,scope:qh}=re("actionsheet-pane"),$n=Ph(Lh(_h,qh,!1)),mr={type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function zh(e,n,o,l,a){return{props:{...Se,...ke,...mr,...Tn},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(r,i){const s=Ie(t.computed(()=>r.disabled)),u=Ee(t.computed(()=>r.readonly)),{emitEvent:d}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return u.value},get disabled(){return s.value}},r.prop??i.attrs.name),{toLocaleRefs:h}=we.useFoxI18n(n),f=h(r,["placeholder"]),b=t.ref(!1),$=de(r,"modelValue"),y=t.ref(""),g=t.computed(()=>Array.isArray(y.value)?y.value.join(r.separator):y.value),p="fox-input-item",I=t.computed(()=>({[p]:!0,[`${p}__disabled`]:s.value})),m=Ae(t.computed(()=>r.textAlign),"textAlign"),c=t.computed(()=>{const E={};return m.value&&(E["text-align"]=m.value),E}),V=t.ref(!1),R=()=>{V.value=!0},M=E=>{V.value=E},k=E=>{$.value=E,d("update:modelValue",E)},P=(E,Y)=>{d("change",E,Y)},D=E=>{let L=E.target.value;b.value=!0,d("focus",L,E)},w=E=>{setTimeout(()=>{b.value=!1},0);let L=E.target.value;r.maxLength&&L.length>Number(r.maxLength)&&(L=L.slice(0,Number(r.maxLength))),d("blur",L,E)},T=E=>{y.value=E,d("update:text",E)},z=t.computed(()=>_e(r.unit)>0),N=t.ref(),C=t.ref(null);return pe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()},search:E=>{C.value&&C.value.search(E)},clear:()=>{C.value&&C.value.clear},confirm:E=>{C.value&&C.value.confirm()},cancel:()=>{C.value&&C.value.cancel()}}),()=>{const E={ref:N,class:I.value,style:c.value,type:"text",maxlength:r.maxLength,placeholder:f.placeholder.value,readonly:!0,value:g.value,onClick:R,onFocus:D,onBlur:w},Y={};i.slots.prepend&&(Y.prepend=i.slots.prepend),i.slots.append&&(Y.append=i.slots.append),i.slots.prefix&&(Y.prefix=i.slots.prefix),i.slots.suffix?Y.suffix=i.slots.suffix:z.value?Y.suffix=()=>[r.unit]:Y.suffix=()=>t.h(A.ElIcon,{},{default:()=>t.h(ve.ArrowDown)});const L=[],G=t.h(A.ElInput,E,Y);L.push(G);const K={default:()=>L};K.label=i.slots.default,K.prepend=i.slots.prepend,K.append=i.slots.append,K.fixedPreTip=i.slots.fixedPreTip,K.fixedTip=i.slots.fixedTip;const U=ut(r,Tn);U.ref=C,U.class=r.actionsheetProps,U.disabled=s.value||u.value,U.visible=V.value,U["onUpdate:visible"]=M,U.modelValue=$.value,U["onUpdate:modelValue"]=k,U.text=y.value,U["onUpdate:text"]=T,U.onChange=P,U.poppable=!0;const Q={title:i.slots.title,search:i.slots.search,option:i.slots.option,optionLabel:i.slots.optionLabel,optionIcon:i.slots.optionIcon,buttons:i.slots.buttons},_=t.h(l,U,Q);K.hide=()=>[_];const O=$e(r,mr,Tn);return t.h(o,{...O,prop:`${r.prop}_item`},K)}}}}const{componentName:jh,create:Hh,scope:Kh}=re("actionsheet-item"),jl=Hh(zh(jh,Kh,xe,$n)),gr={...vl,placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function Wh(e,n,o){return{props:{...Se,...ke,...gr},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(l,a){const r=Ie(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??a.attrs.name),{toLocaleRefs:u}=we.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),f=e,b=t.computed(()=>({[f]:!0})),$=Ae(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>({textAlign:$.value??"right"})),g=de(l,"modelValue"),p=t.ref([]),I=t.computed(()=>Array.isArray(p.value)?p.value.join(" "):p.value),m=t.ref(!1),c=()=>{m.value=!0},V=E=>{m.value=E},R=E=>{g.value=E,s("update:modelValue",E)},M=E=>{p.value=E,Array.isArray(E)&&E.length===0?s("update:text",E[0]):s("update:text",E)},k=(E,Y)=>{s("change",E,Y)};let P=de(l,"hintText"),D=t.ref(!1);const w=E=>{let L=E.target.value;h.value=!0,ye(P.value)||(D.value=!0),s("focus",L,E)},T=E=>{setTimeout(()=>{D.value&&(D.value=!1),h.value=!1},0);let L=E.target.value;l.maxLength&&L.length>Number(l.maxLength)&&(L=L.slice(0,Number(l.maxLength))),m.value?setTimeout(()=>{s("blur",L,E)},50):s("blur",L,E)},z=()=>{s("clear","")},N=t.computed(()=>_e(l.unit)>0),C=t.ref();return pe({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},select:()=>{C?.value.select()}}),()=>{const E={class:b.value,style:y.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,clearable:ce(l.clearable),readonly:!0,value:I.value,onClick:c,onFocus:w,onBlur:T},Y={};a.slots.prepend&&(Y.prepend=a.slots.prepend),a.slots.append&&(Y.append=a.slots.append),a.slots.prefix&&(Y.prefix=a.slots.prefix),a.slots.suffix?Y.suffix=a.slots.suffix:N.value?Y.suffix=()=>[l.unit]:Y.suffix=()=>t.h(A.ElIcon,{},{default:()=>t.h(ve.ArrowDown)});const L=[],G=t.h(A.ElInput,E,Y);L.push(G);const K={default:()=>L};a.slots.default&&(K.label=a.slots.default),a.slots.fixedTip&&(K.fixedTip=a.slots.fixedTip);const U=ut(l,vl);U.disabled=!1,U.readonly=r.value||i.value,U.visible=m.value,U["onUpdate:visible"]=V,U.modelValue=g.value,U["onUpdate:modelValue"]=R,U.text=p.value,U["onUpdate:text"]=M,U.onClear=z,U.onChange=k;const Q=t.h(Vt,U);K.hide=()=>[Q];const O={...$e(l,gr),hintText:P.value,hintVisible:D.value,prop:`${l.prop??a.attrs.name}_item`};return t.h(o,O,K)}}}}const{componentName:Yh,create:Uh,scope:Gh}=re("picker-item"),Hl=Uh(Wh(Yh,Gh,xe)),Xh={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Zh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function yr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function pr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Jh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Kl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function br(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function vr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Wl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class Qh{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[l]);const a=Be(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Me(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(a,null,[o,l]))}}function em(){const e=t.getCurrentInstance();return new Qh(e.proxy)}function tm(e,n,o,l){return{props:{...Xh},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:i}){const s=e,u=em(),d=t.ref([]),h=t.computed(()=>d.value.filter(O=>Jh(a,O)!==!1)),f=t.ref(-1),b=()=>{const O=a.modelValue,q=h.value.findIndex(j=>yr(a,j)===O);f.value!==q&&(f.value=q,a.scroll&&Q(q,!1))};t.watch([()=>a.modelValue,h],()=>{b()});const $=O=>f.value===O,y=O=>{if(O<0&&O>=h.value.length)return!1;const q=h.value[O],B=(Wl(a,q,O)??{}).status??Kl(a,q);return $(O)||B},g=t.computed(()=>{const O={[s]:!0};return a.mode?O[`is-${a.mode}`]=!0:a.direction&&(O[`is-${a.direction}`]=!0),a.scroll&&(O["is-scroll"]=!0),O}),p=t.computed(()=>({})),I=(O,q,j,B,Z)=>{const ee={[`${s}__step`]:!0};return Z&&(ee[`${Z}`]=!0),ee[`${m.value}`]=!0,B&&(ee["is-doit"]=!0),O===f.value?ee["is-active"]=!0:q==="done"?ee["is-done"]=!0:q==="error"?ee["is-error"]=!0:q==="half"?ee["is-half"]=!0:j?ee["is-disabled"]=!0:ee["is-normal"]=!0,ee},m=t.computed(()=>{if(a.mode==="simple")return"start";let O=a.align;return O||(a.direction==="vertical"?O="start":O="center"),O}),c=(O,q={})=>{const j={...q};return m.value==="start"&&O===h.value.length-1?j.flex="0 0 auto":a.step?a.direction==="vertical"?j.height=a.step:j.width=a.step:j.flex="1 1 100%",j},V=(O,q)=>{let j={};if(q<h.value.length-1){const B=q+1;y(q)&&y(B)?a.direction==="vertical"?j.height="100%":j.width="100%":j.opacity="0"}return j},R=O=>h.value.length-1===O,M=(O,q)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&q>f.value||f.value===q)return;const j=f.value,B=q;f.value=q,a.scroll&&Q(q,!1);const Z=yr(a,O);i("update:modelValue",Z);const ee={fromIndex:j,currentIndex:B,item:O,items:h.value,clickNavigatePolicy:a.clickNavigatePolicy};i("change",Z,ee)},k=t.ref(!0),P=async(O,q)=>{try{const j=await u.load("stesbar",O,q);Array.isArray(j)&&(d.value=j),k.value=!1}catch(j){console.error("[FoxUI] Load StepsBar Data Fail",j),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([O,q])=>{O&&P(O,q)},{immediate:!0});const D=(O,q,j,B,Z)=>{let ee=null;if(r.icon)ee=r.icon({item:O,index:q,status:B});else if(B==="done"){const S={};a.iconSize&&(S.width=a.iconSize,S.height=a.iconSize);const F=a.icon??o;ee=t.h(F,S)}else{const S=j??`${q+1}`;ee=t.h("span",{},[S])}const W={class:"fox-steps-bar__icon",onClick:()=>{Z||M(O,q)}};return t.h("view",W,[ee])},w=(O,q,j)=>{const B=t.h("i",{class:"fox-steps-bar__line-inner",style:V(O,q)});return t.h("view",{class:"fox-steps-bar__line"},[B])},T=()=>{let O=null;if(r.markIcon)O=r.markIcon();else{const j={};a.iconSize&&(j.width=a.markIconSize,j.height=a.markIconSize);const B=a.markIcon??l;O=t.h(B,j)}return t.h("view",{class:"fox-steps-bar__mark"},[O])},z=(O,q,j,B,Z)=>{const ee=[];if(!R(q)){const F=w(O,q);ee.push(F)}const W=D(O,q,j,B,Z);ee.push(W);const S={class:"fox-steps-bar__head"};return t.h("view",S,ee)},N=(O,q,j,B)=>{let Z=null;r.main?Z=r.main({item:O,index:q,status:j}):Z=Zh(a,O);const ee={class:"fox-steps-bar__main",onClick:()=>{B||M(O,q)}};return t.h("view",ee,[Z])},C=(O,q,j)=>{let B=null;if(r.sub){B=r.sub({item:O,index:q,status:j});const Z={class:"fox-steps-bar__sub"};return t.h("view",Z,[B])}return null},E=(O,q)=>{const j=Wl(a,O,q)??{},B=j.status??Kl(a,O);let Z=pr(a,O);j.disabled===!0&&(Z=!0),a.disabled===!0&&(Z=!0);const ee=j.label??vr(a,O),W=[],S=D(O,q,ee,B,Z);S&&W.push(S);const F=N(O,q,B,Z);if(F&&W.push(F),!R(q)){const ne=w(O,q);ne&&W.push(ne)}const H=t.h("view",{class:"fox-steps-bar__head"},W),J=j.class,le=j.style??{};let x=br(a,O);j.doit===!0&&(x=!0);const X={ref:U(q),class:I(q,B,Z,x,J),style:c(q,le)};return t.h("view",X,[H])},Y=(O,q)=>{const j=Wl(a,O,q)??{},B=j.status??Kl(a,O);let Z=pr(a,O);j.disabled===!0&&(Z=!0),a.disabled===!0&&(Z=!0);const ee=j.label??vr(a,O),W=[],S=a.layout;for(let x of S)if(x==="head"){const X=z(O,q,ee,B,Z);W.push(X)}else if(x==="main"){const X=N(O,q,B,Z);W.push(X)}else if(x==="sub"){const X=C(O,q,B);W.push(X)}else if(x==="mark"){const X=T();W.push(X)}const F=j.class,H=j.style??{};let J=br(a,O);j.doit===!0&&(J=!0);const le={ref:U(q),class:I(q,B,Z,J,F),style:c(q,H)};return t.h("view",le,W)},L=t.ref(),G=t.ref([]),K=(O,q)=>{G.value[q]=O},U=O=>q=>{K(q,O)},Q=(O,q)=>{const j=L.value,B=G.value;if(!j||!B||!B[O])return;const Z=B[O];let ee=0;a.direction==="vertical"?ee=Z.offsetTop-(j.offsetHeight-Z.offsetHeight)/2:ee=Z.offsetLeft-(j.offsetWidth-Z.offsetWidth)/2,_(j,ee,q?0:.3,a.direction)},_=(O,q,j,B)=>{let Z=0;const ee=B==="horizontal"?O.scrollLeft:O.scrollTop,W=j===0?1:Math.round(j*1e3/16);function S(){B==="horizontal"?O.scrollLeft+=(q-ee)/W:O.scrollTop+=(q-ee)/W,++Z<W&&Pn(S)}S()};return()=>{const O=[];if(a.mode==="simple")for(let j=0;j<h.value.length;j++){const B=h.value[j],Z=E(B,j);O.push(Z)}else for(let j=0;j<h.value.length;j++){const B=h.value[j],Z=Y(B,j);O.push(Z)}const q={ref:L,class:g.value,style:p.value};return t.h("view",q,O)}}}}const{componentName:nm,create:lm,scope:om}=re("steps-bar"),Yl=lm(tm(nm,om,xa,xu)),am=Symbol.for("InnerPageScopeKey"),rm=Symbol.for("PageWrapperKey");function im(e,n){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,l){t.provide(am,!0);const a={};t.provide(rm,a);const r=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=t.ref(!0),s=u=>{i.value=u};return()=>{const d={...l.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":r},h={};if(typeof l.slots.default=="function"){const f=l.slots.default();h.default=()=>f}return t.h(A.ElDialog,d,h)}}}}const{componentName:ny,create:sm,scope:ly}=re("dialog-item"),Ul=sm(im()),{create:um}=re("toast"),cm=um({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const a=()=>{o&&(clearTimeout(o),o=null)},r=()=>{l.mounted=!1},i=()=>{a(),e.duration&&(o=setTimeout(()=>{r()},e.duration))},s=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,$=>{$&&i()});const u=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const $=me(e.iconSize);return t.h(e.icon,{width:$,height:$,color:e.iconColor})},h=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),f=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:r,clickCover:s,renderIcon:d,hasIcon:u,toastBodyClass:h,toastIconWrapperClass:f,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),fm={key:1,class:"fox-toast-title"},dm=["innerHTML"];function hm(e,n,o,l,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",fm,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,dm)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Gl=De(cm,[["render",hm]]),mm={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},gm=(e,n,o)=>({props:{...mm},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=we.useFoxI18n(n),s=i(l,["placeholder"]),u=t.reactive({active:!1}),d=t.computed(()=>({background:l.background})),h=t.computed(()=>({background:l.inputBackground})),f=D=>{let T=D.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),a("update:modelValue",T,D),a("change",T,D)},b=t.ref({}),$=D=>{let T=D.target.value;u.active=!0,b.value=l.focusStyle,a("focus",T,D)},y=D=>{setTimeout(()=>{u.active=!1},0);let T=D.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),b.value={},a("blur",T,D)},g=D=>{a("update:modelValue","",D),a("change","",D),a("clear","")},p=t.computed(()=>String(l.modelValue).length>0),I=t.computed(()=>{const D={};return p.value||(D.display="none"),D}),m=()=>{a("search",l.modelValue)},c=D=>{a("keyup-input",D),D.key.toLocaleUpperCase()==="ENTER"&&m()},V=D=>{a("click-input",D)},R=D=>{a("click-left-icon",l.modelValue,D)},M=t.computed(()=>({textAlign:l.inputAlign})),k=t.ref(null);t.onMounted(()=>{l.autofocus&&k.value.focus()});const P=()=>{const D=[];if(r.leftin){const C={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:R},E=t.h("view",C,[r.leftin()]);D.push(E)}const w={ref:k,class:[`${e}__input-inner`],style:M.value,type:l.inputType,maxlengt:l.maxLength,placeholder:s.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:V,onInput:f,onFocus:$,onBlur:y,onkeyup:c},T=t.h("input",w);D.push(T);const z=[];if(l.clearable){const C={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:I.value,onClick:g},E=r?.clear?.()??l.clearIcon??o,Y=t.h("view",C,[t.h(E)]);z.push(Y)}if(r.rightin){const C={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},E=t.h("view",C,[r.rightin()]);z.push(E)}if(z.length>0){const C={class:`${e}__input-inner-right`},E=t.h("view",C,z);D.push(E)}const N={class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...b.value}};return t.h("view",N,D)};return()=>{const D=[];if(l.label){const z={class:`${e}__search-label`},N=t.h("span",z,[l.label]);D.push(N)}if(r.leftout){const z={class:[`${e}__search-icon`,`${e}__left-search-icon`]},N=t.h("view",z,[r.leftout()]);D.push(N)}const w=P();if(D.push(w),r.rightout){const z={class:[`${e}__search-icon`,`${e}__right-search-icon`]},N=t.h("view",z,[r.rightout()]);D.push(N)}const T={class:`${e}`,style:d.value};return t.h("view",T,D)}}}),{componentName:ym,create:pm,scope:bm}=re("searchbar"),Xl=pm(gm(ym,bm,ve.CircleClose)),vm=/scroll|auto|overlay/i,wr=window;function wm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Sm(e,n=wr){let o=e;for(;o&&o!==n&&wm(o);){const{overflowY:l}=window.getComputedStyle(o);if(vm.test(l))return o;o=o.parentNode}return n}function Sr(e,n=wr){const o=t.ref();return t.onMounted(()=>{e.value&&(o.value=Sm(e.value,n))}),o}const xr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,xm={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Tm(e,n,o){return{props:{...xm},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=we.useFoxI18n(n),s=i(l,["pullText","loadText","loadMoreText"]),u=t.ref(),d=Sr(u),h=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),f=t.computed(()=>({[e]:!0})),b=m=>m?m.offsetTop+b(m.offsetParent):0,$=()=>{let m=0,c=0,V="down";if(d.value==window){const R=xr();u.value&&(m=b(u.value)+u.value.offsetHeight-R-window.innerHeight),c=R}else{const{scrollHeight:R,clientHeight:M,scrollTop:k}=d.value;m=R-M-k,c=k}return h.beforeScrollTop>c?V="up":V="down",h.beforeScrollTop=c,a("scroll-change",c),m<=l.threshold&&V=="down"},y=()=>{In(()=>{if(!$()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,a("update:modelValue",!0),t.nextTick(()=>a("load-more"))})},g=()=>{d.value&&d.value.addEventListener("scroll",y,l.useCapture)},p=()=>{d.value&&d.value.removeEventListener("scroll",y,l.useCapture)};t.onMounted(()=>{g(),l.immediate&&y()}),t.onUnmounted(()=>{p()});const I=t.ref(!1);return t.onActivated(()=>{I.value&&(I.value=!1,g())}),t.onDeactivated(()=>{I.value=!0,p()}),t.watch(()=>l.modelValue,m=>{m||(h.isInfiniting=!1)}),()=>{const m={class:"fox-infinite__container"},c=t.h("view",m,[r?.default?.()]),V=[];if(h.isInfiniting){let P=r?.loading?.()??null;if(!P){let T=r?.loadingIcon?.()??null;if(!T){const C={class:["fox-infinite__bottom-box__img"]};T=t.h(o,C)}const z={class:"fox-infinite__bottom-box__text"},N=t.h("view",z,[s.loadText.value]);P=[T,N]}const D={class:"fox-infinite__bottom-box"},w=t.h("view",D,P);V.push(w)}else if(!l.hasMore){let P=r?.finished?.()??null;if(!P){const D={class:"fox-infinite__bottom-tips"};P=t.h("view",D,[s.loadMoreText.value]),V.push(P)}}const R={class:"fox-infinite__bottom"},M=t.h("view",R,V),k={class:f.value,ref:u};return t.h("view",k,[c,M])}}}}const{componentName:Cm,create:$m,scope:km}=re("infinite-loading"),Zl=$m(Tm(Cm,km,hn)),Dm={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},Nm=(e,n,o)=>({props:{...Dm},emits:["change","refresh","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=we.useFoxI18n(n),s=i(l,["pullingText","loosingText","loadingText"]),u=bl(),d=t.ref(),h=Sr(d),f=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=t.computed(()=>({[e]:!0})),$=t.computed(()=>{switch(f.status){case"pulling":return r.pulling?"":s.pullingText.value;case"loosing":return r.loosing?"":s.loosingText.value;case"loading":return r.loading?"":s.loadingText.value;default:return""}}),y=t.computed(()=>({transitionDuration:`${l.duration}s`,transform:f.distance?`translate3d(0,${f.distance}px, 0)`:""})),g=t.computed(()=>{const k={};return l.headHeight!=50&&(k.height=Oe(l.headHeight)),k}),p=k=>{const P=+(l.pullDistance||l.headHeight);let D=k;return k>P&&(k<P*2?D=(k+P)/2:D=P+k/4),Math.round(D)},I=(k,P)=>{const D=+(l.pullDistance||l.headHeight);f.distance=k,P?f.status="loading":k===0?f.status="normal":k<D?f.status="pulling":f.status="loosing",a("change",{status:f.status,distance:k})},m=()=>f.status!=="loading"&&f.status!=="complete",c=()=>h.value==window?xr()==0:h.value&&h.value.scrollTop==0,V=k=>{m()&&(c()?(u.start(k),f.isPullRefresh=!0,f.moving=!0):(f.distance=0,f.isPullRefresh=!1))},R=k=>{m()&&f.moving&&(u.move(k),u.isVertical()&&u.state.deltaY>0&&f.isPullRefresh&&(k.cancelable&&k.preventDefault(),I(p(u.state.deltaY))))},M=()=>{f.moving=!1,f.isPullRefresh&&m()&&u.state.deltaY&&(f.status==="loosing"?(I(+l.headHeight,!0),a("update:modelValue",!0),t.nextTick(()=>a("refresh"))):I(0)),setTimeout(()=>{u.reset()},0)};return t.watch(()=>l.modelValue,k=>{k?I(+l.headHeight,!0):I(0)}),()=>{const k=[];let P=null;if(f.status==="loading"){if(P=r?.loading?.()??null,!P){const Y={class:["fox-pull-refresh-container-topbox-icon"]};P=t.h(o,Y)}}else f.status==="pulling"?P=r?.pulling?.()??null:f.status==="loosing"&&(P=r?.loosing?.()??null);P&&k.push(P);const D={class:["fox-pull-refresh-container-topbox-text"]},w=t.h("dive",D,[$.value]);k.push(w);const T={class:["fox-pull-refresh-container-topbox"],style:g.value},z=t.h("div",T,k),N={class:"fox-pull-refresh-container",style:y.value},C=t.h("div",N,[z,r?.default?.()]),E={ref:d,class:b.value};return pl()?Object.assign(E,{onTouchstart:V,onTouchmove:R,onTouchend:M}):Object.assign(E,{onMousedown:V,onMousemove:R,onMouseup:M}),t.h("div",E,[C])}}}),{componentName:Em,create:Im,scope:Vm}=re("pull-refresh"),Jl=Im(Nm(Em,Vm,hn));function Om(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:l}){const a=e,r=t.computed(()=>({[a]:!0})),i=t.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),s=t.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=t.computed(()=>{const h={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?h["is-left"]=!0:h["is-right"]=!0,h}),d=t.computed(()=>o.color?{color:o.color}:null);return()=>{let h=null;if(l.mark)h=l.mark()[0];else{const g={class:i.value,style:s.value};h=t.h(o.icon??"div",g)}const f={class:u.value,style:d.value},b=l.default?l.default():[],$=t.h("div",f,b),y={class:r.value};return o.textPosition==="right"?t.h("div",y,[h,$]):t.h("div",y,[$,h])}}}}const{componentName:Am,create:Bm,scope:oy}=re("indicator"),Ql=Bm(Om(Am));function Fm(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}const Rm={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Mm(e,n,o,l=!1){return{props:{...Rm},emits:["click"],setup(a,r){const i=t.ref(null),s=t.computed(()=>{const c={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(c[`${e}--${a.type??"default"}`]=!0),a.size&&(c[`${e}--${a.size}`]=!0),c}),u=t.computed(()=>{const c={},V=a.textColor??a.color;return V&&(c.color=V),c}),d=(c,V)=>{let R=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const M=a.highlightFilter;if(c.indexOf(M)!==-1){const P=c.replace(new RegExp(M,"g"),`<span>${M}</span>`);V.innerHTML=P,V.class["is-highlight"]=!0,R=t.h(a.tag,V)}}else if(typeof a.highlightFilter=="function"){const M=a.highlightFilter(c);M&&(V.innerHTML=M,V.class["is-highlight"]=!0,R=t.h(a.tag,V))}return R},h=c=>{r.emit("click",c)};let f="";const b=()=>{const c=i.value;if(!c)return;const V=c.clientWidth;Fm(c,R=>{const M=c.innerHTML??"";ye(M)||R<V||(f?o?.show(c,M,{type:"text",id:f,showArrow:a.showArrow},!0):f=o?.show(c,M,{type:"text",showArrow:a.showArrow},!0)??"")})},$=()=>{f&&o?.hide(f)};let y=null;const g=c=>{y||(y=setTimeout(()=>{b(),y=null},a.showAfter??0))},p=c=>{y&&(clearTimeout(y),y=null),setTimeout(()=>{$()},a.hideAfter??0)},I=()=>{const c=i.value;c&&(c.addEventListener("mouseover",g),c.addEventListener("mouseleave",p))},m=()=>{const c=i.value;c&&(c.removeEventListener("mouseover",g),c.removeEventListener("mouseleave",p))};return t.onMounted(()=>{!ce(a.showOverflowTooltip)||!o||I()}),t.onBeforeUnmount(()=>{!ce(a.showOverflowTooltip)||!o||m()}),()=>{const c={onClick:h,class:s.value,style:u.value,ref:i};let V=null;if(ce(a.numberFormat)&&typeof r.slots.default=="function"){const P=r.slots.default();if(Array.isArray(P)&&P.length===1){const D=P[0].type.toString();if(D==="Symbol(Text)"||D==="Symbol(v-txt)"){const w=he(a.digits),T=he(a.decimalLength),z=ce(a.autoPadding);let N=`${P[0].children}`,C=N.split("").reverse().join("");C=qt(C,T,z,w,a.separator),N=C.split("").reverse().join(""),a.highlightFilter!==void 0&&(V=d(N,c)),V||(c.innerHTML=N,V=t.h(a.tag,c))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const P=r.slots.default();if(Array.isArray(P)&&P.length===1){const D=P[0].type.toString();if(D==="Symbol(Text)"||D==="Symbol(v-txt)"){const w=`${P[0].children}`;V=d(w,c),V||(c.innerHTML=w,V=t.h(a.tag,c))}}}V||(V=t.h(a.tag,c,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return V;let M=null;if(a.icon){const P={[`${e}__mark-wrap`]:!0};a.type&&(P[`${e}__mark-wrap--${a.type}`]=!0);const D={},w=a.color;w&&(D.color=w);const T={class:P,style:D};M=t.h("view",T,t.h(a.icon))}else if(r.slots.mark){const P={[`${e}__mark-wrap`]:!0};a.type&&(P[`${e}__mark-wrap--${a.type}`]=!0);const D={},w=a.color;w&&(D.color=w);const T={class:P,style:D};M=t.h("view",T,{default:r.slots.mark})}else{const P={[`${e}__mark`]:!0};a.type&&(P[`${e}__mark--${a.type??"default"}`]=!0);const D={},w=a.color;w&&(D["background-color"]=w);const T={class:P,style:D};M=t.h("view",T)}const k={class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}};return t.h("view",k,[M,V])}}}}const{componentName:Lm,create:_m,scope:Pm}=re("text"),eo=_m(Mm(Lm,Pm,Fe,!1)),qm={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:ve.ArrowUp}};function zm(e,n,o){return{props:{...qm},emits:["click","update:modelValue"],setup(l,{emit:a}){const r=t.computed(()=>{const f={[`${e}`]:!0};return l.disabled?f[`${e}__disabled`]=!0:f[`${e}__${l.type}`]=!0,f}),i=de(l,"modelValue"),s=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),u=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),h=()=>{a("update:modelValue",!i.value)};return()=>{const f=[];if(s.value){const g={class:u.value},p=t.h("span",g,[s.value]);f.push(p)}const b={class:d.value},$=o(l.icon,b);return $&&f.push($),t.h("div",{class:r.value,onClick:h},f)}}}}const{componentName:jm,create:Hm,scope:Km}=re("more-button"),to=Hm(zm(jm,Km,(e,n)=>(e=e??ve.ArrowUp,t.h(A.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:Wm,create:Ym,scope:ry}=re("tour"),Um=Ym({components:{Close:ve.Close,ElPopover:A.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=Wm,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=t.ref({}),r=t.computed(()=>`${o}`),i=t.computed(()=>{const{offset:y,maskWidth:g,maskHeight:p}=e,{width:I,height:m,left:c,top:V}=a.value,R=e.steps[l.active].offset??y,M=[c+I/2,V+m/2],k=Number(g||I),P=Number(p||m);return{width:`${k+ +R.left+R.right}px`,height:`${P+R.top+R.bottom}px`,top:`${M[1]-P/2-+R.top}px`,left:`${M[0]-k/2-+R.left}px`}}),s=y=>{y=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,h()}),n("change",l.active)},u=y=>y.popoverWidth??e.width,d=y=>y.location??e.location,h=()=>{const y=document.querySelector(`${e.steps[l.active].target}`),g=gl(y);a.value={x:g.left,y:g.top,top:g.top,left:g.left,width:g.width,height:g.height}},f=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&f()},$=(y,g=0)=>{y&&h(),e.steps,l.active=g,l.showTour=y,l.showPopup=y};return t.onMounted(()=>{$(e.modelValue,e.current)}),t.watch(()=>e.modelValue,y=>{$(y)}),{...t.toRefs(l),classes:r,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:d,close:f,handleClickMask:b}}}),Gm={key:0,class:"fox-tour__content"},Xm={key:0,class:"fox-tour__content-top"},Zm={class:"fox-tour__content-inner"},Jm={class:"fox-tour__content-bottom"},Qm={class:"fox-tour__content-bottom-init"},eg={class:"fox-tour__content-bottom-operate"},tg={key:1,class:"fox-tour__content fox-tour__content-tile"},ng={class:"fox-tour__content-inner"};function lg(e,n,o,l,a,r){const i=t.resolveComponent("Close"),s=t.resolveComponent("fox-button"),u=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:{height:"0"}},[h==e.active?(t.openBlock(),t.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",Gm,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",Xm,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...f)=>e.close&&e.close(...f))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Zm,t.toDisplayString(d.content),1),t.createElementVNode("div",Jm,[t.createElementVNode("div",Qm,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",eg,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=f=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=f=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",tg,[t.createElementVNode("div",ng,t.toDisplayString(d.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const no=De(Um,[["render",lg]]),Re=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,it=e=>e==null;class og{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=pl()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=bl(),l=(a,r,i,s)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(o.start(a),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(o.move(a),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Tr(e,n){return new og(e,n)}var Cr;const lo=typeof window<"u";lo&&((Cr=window?.navigator)!=null&&Cr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let wt=[];const $r=e=>{const n=e;n.key==="Escape"&&wt.forEach(o=>o(n))},ag=e=>{t.onMounted(()=>{wt.length===0&&document.addEventListener("keydown",$r),lo&&wt.push(e)}),t.onBeforeUnmount(()=>{wt=wt.filter(n=>n!==e),wt.length===0&&lo&&document.removeEventListener("keydown",$r)})},oo="fox-focus-trap.focus-after-trapped",ao="fox-focus-trap.focus-after-released",rg="fox-focus-trap.focusout-prevented",kr={cancelable:!0,bubbles:!1},ig={cancelable:!0,bubbles:!1},Dr="foxFocusAfterTrapped",Nr="foxFocusAfterReleased",sg=Symbol("foxFocusTrap"),ro=t.ref(),kn=t.ref(0),io=t.ref(0);let Dn=0;const Er=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const a=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||a?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},ug=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Ir=(e,n)=>{for(const o of e)if(!ug(o,n))return o},cg=e=>{const n=Er(e),o=Ir(n,e),l=Ir(n.reverse(),e);return[o,l]},fg=e=>e instanceof HTMLInputElement&&"select"in e,et=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),io.value=window.performance.now(),e!==o&&fg(e)&&n&&e.select()}};function Vr(e,n){const o=[...e],l=e.indexOf(n);return l!==-1&&o.splice(l,1),o}const dg=()=>{let e=[];return{push:l=>{const a=e[0];a&&l!==a&&a.pause(),e=Vr(e,l),e.unshift(l)},remove:l=>{e=Vr(e,l),e[0]?.resume?.()}}},hg=(e,n=!1)=>{const o=document.activeElement;for(const l of e)if(et(l,n),document.activeElement!==o)return},Or=dg(),mg=()=>kn.value>io.value,Nn=()=>{ro.value="pointer",kn.value=window.performance.now()},Ar=()=>{ro.value="keyboard",kn.value=window.performance.now()},gg=()=>(t.onMounted(()=>{Dn===0&&(document.addEventListener("mousedown",Nn),document.addEventListener("touchstart",Nn),document.addEventListener("keydown",Ar)),Dn++}),t.onBeforeUnmount(()=>{Dn--,Dn<=0&&(document.removeEventListener("mousedown",Nn),document.removeEventListener("touchstart",Nn),document.removeEventListener("keydown",Ar))}),{focusReason:ro,lastUserFocusTimestamp:kn,lastAutomatedFocusTimestamp:io}),En=e=>new CustomEvent(rg,{...ig,detail:e}),{componentName:iy,create:yg,scope:sy}=re("focus-trap"),pg=yg({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Dr,Nr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const l=t.ref();let a,r;const{focusReason:i}=gg();ag(g=>{ce(e.trapped)&&!s.paused&&o("release-requested",g)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=g=>{if(!e.loop&&!ce(e.trapped)||s.paused)return;const{key:p,altKey:I,ctrlKey:m,metaKey:c,currentTarget:V,shiftKey:R}=g,{loop:M}=e,k=p==="Tab"&&!I&&!m&&!c,P=document.activeElement;if(k&&P){const D=V,[w,T]=cg(D);if(w&&T){if(!R&&P===T){const N=En({focusReason:i.value});o("focusout-prevented",N),N.defaultPrevented||(g.preventDefault(),M&&et(w,!0))}else if(R&&[w,D].includes(P)){const N=En({focusReason:i.value});o("focusout-prevented",N),N.defaultPrevented||(g.preventDefault(),M&&et(T,!0))}}else if(P===D){const N=En({focusReason:i.value});o("focusout-prevented",N),N.defaultPrevented||g.preventDefault()}}};t.provide(sg,{focusTrapRef:l,onKeydown:u}),t.watch(()=>e.focusTrapEl,g=>{g&&(l.value=g)},{immediate:!0}),t.watch([l],([g],[p])=>{g&&(g.addEventListener("keydown",u),g.addEventListener("focusin",f),g.addEventListener("focusout",b)),p&&(p.removeEventListener("keydown",u),p.removeEventListener("focusin",f),p.removeEventListener("focusout",b))});const d=g=>{o(Dr,g)},h=g=>o(Nr,g),f=g=>{const p=t.unref(l);if(!p)return;const I=g.target,m=g.relatedTarget,c=I&&p.contains(I);ce(e.trapped)||m&&p.contains(m)||(a=m),c&&o("focusin",g),!s.paused&&ce(e.trapped)&&(c?r=I:et(r,!0))},b=g=>{const p=t.unref(l);if(!(s.paused||!p))if(!e.escape&&ce(e.trapped)){const I=g.relatedTarget;!Kn(I)&&!p.contains(I)&&setTimeout(()=>{if(!s.paused&&ce(e.trapped)){const m=En({focusReason:i.value});o("focusout-prevented",m),m.defaultPrevented||et(r,!0)}},0)}else{const I=g.target;I&&p.contains(I)||o("focusout",g)}};async function $(){await t.nextTick();const g=t.unref(l);if(g){Or.push(s);const p=g.contains(document.activeElement)?a:document.activeElement;if(a=p,!g.contains(p)){const m=new Event(oo,kr);g.addEventListener(oo,d),g.dispatchEvent(m),m.defaultPrevented||t.nextTick(()=>{let c=e.focusStartEl;xo(c)||(et(c),document.activeElement!==c&&(c="first")),c==="first"&&hg(Er(g),!0),(document.activeElement===p||c==="container")&&et(g)})}}}function y(){const g=t.unref(l);if(g){g.removeEventListener(oo,d);const p=new CustomEvent(ao,{...kr,detail:{focusReason:i.value}});g.addEventListener(ao,h),g.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!mg())&&et(a??document.body,!0),g.removeEventListener(ao,d),Or.remove(s)}}return t.onMounted(()=>{ce(e.trapped)&&$(),t.watch(()=>e.trapped,g=>{ce(g)?$():y()})}),t.onBeforeUnmount(()=>{ce(e.trapped)&&y()}),()=>typeof n.default=="function"?n.default({"handle-keydown":u}):null}}),{componentName:bg,create:vg,scope:cy}=re("floating-window"),wg=Symbol.for("InnerPageScopeKey"),Sg=Symbol.for("PageWrapperKey"),xg={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Tg=vg({inheritAttrs:!1,components:{FoxIcon:A.ElIcon,FocusTrap:pg},props:{...xg},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=bg,l=t.ref(e.modelValue),a=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,x=>{l.value=x});const r=t.computed(()=>l.value===!1?!1:!P.value),i=t.ref(e.left),s=t.ref(e.top),u=t.ref(e.right),d=t.ref(e.bottom),h=t.computed(()=>{const x=["fox-floating-window"];return e.customClass&&x.push(e.customClass),x}),f=t.computed(()=>{const x={};return it(i.value)?x.left="auto":x.left=Re(i.value),it(s.value)?x.top="auto":x.top=Re(s.value),it(u.value)?x.right="auto":x.right=Re(u.value),it(d.value)?x.bottom="auto":x.bottom=Re(d.value),it(e.zIndex)||(x["z-index"]=Re(e.zIndex)),it(M.value)||(x.height=M.value),it(k.value)||(x.width=k.value),x}),b=t.computed(()=>e.closeIcon??ve.Close),$=t.computed(()=>e.collapseIcon??ve.ArrowUp),y=t.computed(()=>e.collapseText??""),g=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??ve.ArrowRight:e.expandIcon??ve.ArrowLeft),p=t.computed(()=>e.expandText??e.title??"展开"),I=t.computed(()=>({[`${o}__collapse-text`]:!0})),m=t.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),c=t.ref(),V=t.ref(null),R=t.ref(null),M=t.computed(()=>Re(e.height)||""),k=t.computed(()=>Re(e.width)||""),P=t.ref(ce(e.collapse)),D=(x,X=!0)=>{P.value!==x&&(P.value=x,x?O():q(),n("update:collapse",x),x&&typeof z.onHide=="function"?z.onHide():!x&&typeof z.onShow=="function"&&z.onShow())};t.watch(()=>e.collapse,x=>{D(x)});const w=()=>{T()},T=x=>{x=x??!P.value,D(x)};t.provide(wg,!0);const z={setCollapse:D,setFixedNavVisible:x=>{U.value=x}};t.provide(Sg,z);const N=()=>{typeof z.beforeClose=="function"?z.beforeClose(()=>{l.value=!1}):l.value=!1},C=t.ref(null),E=t.computed(()=>!e.fixedNavTeleport),Y=t.computed(()=>{const x=["fox-floating-window__fixednav"];return e.expandClass&&x.push(e.expandClass),e.collapsePosition==="left"?x.push("is-left"):e.collapsePosition==="right"&&x.push("is-right"),x}),L=t.ref(""),G=t.computed(()=>{const x={};return L.value?x.top=L.value:e.collapseTop&&(x.top=e.collapseTop),x}),K=t.ref(P.value),U=t.computed({set:x=>{K.value=x},get:()=>l.value===!1?!1:K.value});let Q=null;const _=()=>{typeof Q=="function"&&(Q(),Q=null)},O=()=>{C.value&&C.value.classList.add("slide-in"),U.value=!0,Q=()=>{C.value&&C.value.classList.remove("slide-in")}},q=()=>{C.value&&C.value.classList.add("slide-out"),Q=()=>{C.value&&C.value.classList.remove("slide-out"),U.value=!1}},j=()=>{i.value=null,s.value=null,u.value=null,d.value=null},B={x:0,y:0},W=Tr(x=>{if(!c.value)return;const X=c.value;if(j(),e.origin==="left-top")i.value=X.offsetLeft,s.value=X.offsetTop,B.x=i.value,B.y=s.value;else if(e.origin==="left-bottom"){const ne=document.documentElement.clientHeight||document.body.clientHeight;i.value=X.offsetLeft,d.value=ne-(X.offsetTop+X.offsetHeight),B.x=i.value,B.y=d.value}else if(e.origin==="right-bottom"){const ne=document.documentElement.clientWidth||document.body.clientWidth,ae=document.documentElement.clientHeight||document.body.clientHeight;u.value=ne-(X.offsetLeft+X.offsetWidth),d.value=ae-(X.offsetTop+X.offsetHeight),B.x=u.value,B.y=d.value}else{const ne=document.documentElement.clientWidth||document.body.clientWidth;u.value=ne-(X.offsetLeft+X.offsetWidth),s.value=X.offsetTop,B.x=u.value,B.y=s.value}},x=>{if(!c.value)return;const X=c.value;j(),e.origin==="left-top"?(i.value=B.x+x.x,s.value=B.y+x.y,X.style.left=Re(i.value),X.style.top=Re(s.value)):e.origin==="left-bottom"?(i.value=B.x+x.x,d.value=B.y-x.y,X.style.left=Re(i.value),X.style.bottom=Re(d.value)):e.origin==="right-bottom"?(u.value=B.x-x.x,d.value=B.y-x.y,X.style.right=Re(u.value),X.style.bottom=Re(d.value)):(u.value=B.x-x.x,s.value=B.y+x.y,X.style.right=Re(u.value),X.style.top=Re(s.value))}),S={x:0,y:0},J=Tr(x=>{C.value&&(S.x=C.value.offsetLeft,S.y=C.value.offsetTop)},x=>{if(!C.value)return;const X=S.y+x.y;L.value=`${X}px`}),le=()=>{if(c.value){const x=c.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");R.value=x}};return t.onMounted(()=>{if(e.draggable&&c.value){const x=[];V.value&&x.push(V.value),e.footerDraggable&&(le(),R.value&&x.push(R.value)),W.open(x)}e.collapse===!0&&D(e.collapse,!1),C.value&&J.open(C.value)}),t.onBeforeUnmount(()=>{e.draggable&&V.value&&W.close(),C.value&&J.close()}),{classes:h,styles:f,isShow:r,closeIcon:b,onClose:N,dialogRef:c,headerRef:V,onClickToggle:w,collapseIcon:$,collapseText:y,collapseTextClasses:I,collapseIconClasses:m,expandIcon:g,expandText:p,isShowFixedNav:U,fixedNavRef:C,fixedNavClasses:Y,fixedNavStyles:G,onAnimationEnd:_,teleportDisabled:a,fixedNavTeleportDisabled:E}}}),Cg={ref:"headerRef",class:"fox-floating-window__header"},$g={class:"fox-floating-window__title"},kg={class:"fox-floating-window__tools"},Dg={class:"fox-floating-window__body"},Ng={class:"fox-floating-window__fixednav__text"};function Eg(e,n,o,l,a,r){const i=t.resolveComponent("FoxIcon"),s=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",Cg,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",$g,t.toDisplayString(e.title),1),t.createElementVNode("div",kg,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",Dg,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Ng,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const so=De(Tg,[["render",Eg]]);function Ig(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:l}){return qo(o.name,()=>o.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:fy,create:Vg,scope:dy}=re("domain-provider"),uo=Vg(Ig()),Og={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Ag(e,n){return{inheritAttrs:!1,props:Og,setup(o,{slots:l}){if(ot&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const i=(b,$)=>{if(h===null){r.set(b,{visible:null,callback:$});return}a.has(b)&&h.unobserve(b),a.set(b,{visible:null,callback:$}),h.observe(b)},s=b=>{if(h===null){r.delete(b);return}a.has(b)&&(a.delete(b),h.unobserve(b))};let u=o.initialVisibleObserverSize;_i({acquire:()=>{const b=u>0;return u--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let h=null;const f=(b,$,y)=>{h=new IntersectionObserver(g=>{for(let p of g){let I=!1;p.intersectionRatio>0&&(I=!0);const m=a.get(p.target);if(m)try{if(o.loadPolicy==="lazy"&&!I&&m.visible!==null)return;m.visible=I,m.callback(I)}catch(c){console.error(c)}}},{root:b,rootMargin:$,threshold:y}),r.forEach((g,p)=>{a.set(p,g),h?.observe(p)}),r.clear()};t.watch([()=>o.root,()=>o.disabled],([b,$])=>{if($||!b||h)return;let y=null;typeof b=="string"?y=document.querySelector(b):y=b,y&&f(y,o.rootMargin,o.threshold)},{immediate:!0}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:hy,create:Bg,scope:my}=re("rolling-provider"),co=Bg(Ag()),Fg=[Jn,el,tl,nl,al,xe,sl,ul,Nt,cl,fl,Sl,Cl,$l,kl,Dl,Nl,Il,Vl,Ol,Al,xn,Rl,Ml,Ll,_l,Pl,ql,zl,$n,jl,Hl,bn,vn,wn,Yl,Vt,mn,gn,Sn,Ul,dn,mt,Gl,Xl,Zl,Jl,Ft,un,Ql,eo,to,no,so,uo,co],Rg=new yi(Fg,[vi],"4.0.0");Object.defineProperty(v,"FoxAffix",{enumerable:!0,get:()=>A.ElAffix}),Object.defineProperty(v,"FoxAlert",{enumerable:!0,get:()=>A.ElAlert}),Object.defineProperty(v,"FoxAside",{enumerable:!0,get:()=>A.ElAside}),Object.defineProperty(v,"FoxAutoResizer",{enumerable:!0,get:()=>A.ElAutoResizer}),Object.defineProperty(v,"FoxAutocomplete",{enumerable:!0,get:()=>A.ElAutocomplete}),Object.defineProperty(v,"FoxAvatar",{enumerable:!0,get:()=>A.ElAvatar}),Object.defineProperty(v,"FoxBacktop",{enumerable:!0,get:()=>A.ElBacktop}),Object.defineProperty(v,"FoxBadge",{enumerable:!0,get:()=>A.ElBadge}),Object.defineProperty(v,"FoxBreadcrumb",{enumerable:!0,get:()=>A.ElBreadcrumb}),Object.defineProperty(v,"FoxBreadcrumbItem",{enumerable:!0,get:()=>A.ElBreadcrumbItem}),Object.defineProperty(v,"FoxButton",{enumerable:!0,get:()=>A.ElButton}),Object.defineProperty(v,"FoxButtonGroup",{enumerable:!0,get:()=>A.ElButtonGroup}),Object.defineProperty(v,"FoxCalendar",{enumerable:!0,get:()=>A.ElCalendar}),Object.defineProperty(v,"FoxCard",{enumerable:!0,get:()=>A.ElCard}),Object.defineProperty(v,"FoxCarousel",{enumerable:!0,get:()=>A.ElCarousel}),Object.defineProperty(v,"FoxCarouselItem",{enumerable:!0,get:()=>A.ElCarouselItem}),Object.defineProperty(v,"FoxCascader",{enumerable:!0,get:()=>A.ElCascader}),Object.defineProperty(v,"FoxCascaderPanel",{enumerable:!0,get:()=>A.ElCascaderPanel}),Object.defineProperty(v,"FoxCheckTag",{enumerable:!0,get:()=>A.ElCheckTag}),Object.defineProperty(v,"FoxCheckbox",{enumerable:!0,get:()=>A.ElCheckbox}),Object.defineProperty(v,"FoxCheckboxButton",{enumerable:!0,get:()=>A.ElCheckboxButton}),Object.defineProperty(v,"FoxCheckboxGroup",{enumerable:!0,get:()=>A.ElCheckboxGroup}),Object.defineProperty(v,"FoxCol",{enumerable:!0,get:()=>A.ElCol}),Object.defineProperty(v,"FoxCollapse",{enumerable:!0,get:()=>A.ElCollapse}),Object.defineProperty(v,"FoxCollapseItem",{enumerable:!0,get:()=>A.ElCollapseItem}),Object.defineProperty(v,"FoxCollapseTransition",{enumerable:!0,get:()=>A.ElCollapseTransition}),Object.defineProperty(v,"FoxColorPicker",{enumerable:!0,get:()=>A.ElColorPicker}),Object.defineProperty(v,"FoxConfigProvider",{enumerable:!0,get:()=>A.ElConfigProvider}),Object.defineProperty(v,"FoxContainer",{enumerable:!0,get:()=>A.ElContainer}),Object.defineProperty(v,"FoxDatePicker",{enumerable:!0,get:()=>A.ElDatePicker}),Object.defineProperty(v,"FoxDescriptions",{enumerable:!0,get:()=>A.ElDescriptions}),Object.defineProperty(v,"FoxDescriptionsItem",{enumerable:!0,get:()=>A.ElDescriptionsItem}),Object.defineProperty(v,"FoxDialog",{enumerable:!0,get:()=>A.ElDialog}),Object.defineProperty(v,"FoxDivider",{enumerable:!0,get:()=>A.ElDivider}),Object.defineProperty(v,"FoxDrawer",{enumerable:!0,get:()=>A.ElDrawer}),Object.defineProperty(v,"FoxDropdown",{enumerable:!0,get:()=>A.ElDropdown}),Object.defineProperty(v,"FoxDropdownItem",{enumerable:!0,get:()=>A.ElDropdownItem}),Object.defineProperty(v,"FoxDropdownMenu",{enumerable:!0,get:()=>A.ElDropdownMenu}),Object.defineProperty(v,"FoxEmpty",{enumerable:!0,get:()=>A.ElEmpty}),Object.defineProperty(v,"FoxFooter",{enumerable:!0,get:()=>A.ElFooter}),Object.defineProperty(v,"FoxForm",{enumerable:!0,get:()=>A.ElForm}),Object.defineProperty(v,"FoxFormItem",{enumerable:!0,get:()=>A.ElFormItem}),Object.defineProperty(v,"FoxHeader",{enumerable:!0,get:()=>A.ElHeader}),Object.defineProperty(v,"FoxIcon",{enumerable:!0,get:()=>A.ElIcon}),Object.defineProperty(v,"FoxImage",{enumerable:!0,get:()=>A.ElImage}),Object.defineProperty(v,"FoxImageViewer",{enumerable:!0,get:()=>A.ElImageViewer}),Object.defineProperty(v,"FoxInput",{enumerable:!0,get:()=>A.ElInput}),Object.defineProperty(v,"FoxInputNumber",{enumerable:!0,get:()=>A.ElInputNumber}),Object.defineProperty(v,"FoxLink",{enumerable:!0,get:()=>A.ElLink}),Object.defineProperty(v,"FoxMain",{enumerable:!0,get:()=>A.ElMain}),Object.defineProperty(v,"FoxMenu",{enumerable:!0,get:()=>A.ElMenu}),Object.defineProperty(v,"FoxMenuItem",{enumerable:!0,get:()=>A.ElMenuItem}),Object.defineProperty(v,"FoxMenuItemGroup",{enumerable:!0,get:()=>A.ElMenuItemGroup}),Object.defineProperty(v,"FoxOption",{enumerable:!0,get:()=>A.ElOption}),Object.defineProperty(v,"FoxOptionGroup",{enumerable:!0,get:()=>A.ElOptionGroup}),Object.defineProperty(v,"FoxPageHeader",{enumerable:!0,get:()=>A.ElPageHeader}),Object.defineProperty(v,"FoxPagination",{enumerable:!0,get:()=>A.ElPagination}),Object.defineProperty(v,"FoxPopconfirm",{enumerable:!0,get:()=>A.ElPopconfirm}),Object.defineProperty(v,"FoxPopover",{enumerable:!0,get:()=>A.ElPopover}),Object.defineProperty(v,"FoxPopper",{enumerable:!0,get:()=>A.ElPopper}),Object.defineProperty(v,"FoxProgress",{enumerable:!0,get:()=>A.ElProgress}),Object.defineProperty(v,"FoxRadio",{enumerable:!0,get:()=>A.ElRadio}),Object.defineProperty(v,"FoxRadioButton",{enumerable:!0,get:()=>A.ElRadioButton}),Object.defineProperty(v,"FoxRadioGroup",{enumerable:!0,get:()=>A.ElRadioGroup}),Object.defineProperty(v,"FoxRate",{enumerable:!0,get:()=>A.ElRate}),Object.defineProperty(v,"FoxResult",{enumerable:!0,get:()=>A.ElResult}),Object.defineProperty(v,"FoxRow",{enumerable:!0,get:()=>A.ElRow}),Object.defineProperty(v,"FoxScrollbar",{enumerable:!0,get:()=>A.ElScrollbar}),Object.defineProperty(v,"FoxSelect",{enumerable:!0,get:()=>A.ElSelect}),Object.defineProperty(v,"FoxSelectV2",{enumerable:!0,get:()=>A.ElSelectV2}),Object.defineProperty(v,"FoxSkeleton",{enumerable:!0,get:()=>A.ElSkeleton}),Object.defineProperty(v,"FoxSkeletonItem",{enumerable:!0,get:()=>A.ElSkeletonItem}),Object.defineProperty(v,"FoxSlider",{enumerable:!0,get:()=>A.ElSlider}),Object.defineProperty(v,"FoxSpace",{enumerable:!0,get:()=>A.ElSpace}),Object.defineProperty(v,"FoxStep",{enumerable:!0,get:()=>A.ElStep}),Object.defineProperty(v,"FoxSteps",{enumerable:!0,get:()=>A.ElSteps}),Object.defineProperty(v,"FoxSubMenu",{enumerable:!0,get:()=>A.ElSubMenu}),Object.defineProperty(v,"FoxSwitch",{enumerable:!0,get:()=>A.ElSwitch}),Object.defineProperty(v,"FoxTabPane",{enumerable:!0,get:()=>A.ElTabPane}),Object.defineProperty(v,"FoxTable",{enumerable:!0,get:()=>A.ElTable}),Object.defineProperty(v,"FoxTableColumn",{enumerable:!0,get:()=>A.ElTableColumn}),Object.defineProperty(v,"FoxTableV2",{enumerable:!0,get:()=>A.ElTableV2}),Object.defineProperty(v,"FoxTabs",{enumerable:!0,get:()=>A.ElTabs}),Object.defineProperty(v,"FoxTag",{enumerable:!0,get:()=>A.ElTag}),Object.defineProperty(v,"FoxTimePicker",{enumerable:!0,get:()=>A.ElTimePicker}),Object.defineProperty(v,"FoxTimeSelect",{enumerable:!0,get:()=>A.ElTimeSelect}),Object.defineProperty(v,"FoxTimeline",{enumerable:!0,get:()=>A.ElTimeline}),Object.defineProperty(v,"FoxTimelineItem",{enumerable:!0,get:()=>A.ElTimelineItem}),Object.defineProperty(v,"FoxTooltip",{enumerable:!0,get:()=>A.ElTooltip}),Object.defineProperty(v,"FoxTransfer",{enumerable:!0,get:()=>A.ElTransfer}),Object.defineProperty(v,"FoxTree",{enumerable:!0,get:()=>A.ElTree}),Object.defineProperty(v,"FoxTreeSelect",{enumerable:!0,get:()=>A.ElTreeSelect}),Object.defineProperty(v,"FoxTreeV2",{enumerable:!0,get:()=>A.ElTreeV2}),Object.defineProperty(v,"FoxUpload",{enumerable:!0,get:()=>A.ElUpload}),v.ActionsheetItem=jl,v.ActionsheetPane=$n,v.AutocompleteItem=Vl,v.Broadcast=Wn,v.BroadcastKey=Ne,v.CalendarItem=Cl,v.CascaderItem=Il,v.CheckboxItem=Ll,v.Content=nl,v.DataItemsKey=ct,v.DateItem=Sl,v.DateUtils=ie,v.DialogItem=Ul,v.Domain=Xt,v.DomainKey=Pe,v.DomainProvider=uo,v.FloatingWindow=so,v.FooterBar=tl,v.FoxActionsheetItem=jl,v.FoxActionsheetPane=$n,v.FoxAutocompleteItem=Vl,v.FoxCalendarItem=Cl,v.FoxCascaderItem=Il,v.FoxCheckboxItem=Ll,v.FoxContent=nl,v.FoxDateItem=Sl,v.FoxDialogItem=Ul,v.FoxDomainProvider=uo,v.FoxFloatingWindow=so,v.FoxFooterBar=tl,v.FoxGroup=al,v.FoxGroupSetting=zl,v.FoxHeaderBar=el,v.FoxHintText=Nt,v.FoxIndicator=Ql,v.FoxInfiniteLoading=Zl,v.FoxInputItem=cl,v.FoxInputNumberItem=Nl,v.FoxItem=xe,v.FoxMapping=Ft,v.FoxMoneyItem=Dl,v.FoxMoreButton=to,v.FoxOverLay=dn,v.FoxPage=Jn,v.FoxPickerItem=Hl,v.FoxPopup=mt,v.FoxPrice=un,v.FoxPullRefresh=Jl,v.FoxRadioItem=Ml,v.FoxRateItem=_l,v.FoxRollingProvider=co,v.FoxRowItem=ul,v.FoxSearchBar=Xl,v.FoxSelectItem=fl,v.FoxSlotItem=sl,v.FoxStepsBar=Yl,v.FoxSwitchItem=Pl,v.FoxTableItem=Rl,v.FoxTableMappingColumn=Ol,v.FoxTableRadioColumn=Al,v.FoxTableSetting=xn,v.FoxTabsBar=bn,v.FoxTabsContainer=vn,v.FoxTabsPane=wn,v.FoxText=eo,v.FoxTimeItem=$l,v.FoxTimeSelectItem=kl,v.FoxToast=Gl,v.FoxTour=no,v.FoxTreeSelectItem=ql,v.Foxcalendarpicker=gn,v.Foxcascaderpicker=Sn,v.Foxdatepicker=mn,v.Foxpicker=Vt,v.Group=al,v.GroupSetting=zl,v.HeaderBar=el,v.HintText=Nt,v.Indicator=Ql,v.InfiniteLoading=Zl,v.InputItem=cl,v.InputNumberItem=Nl,v.Item=xe,v.Mapping=Ft,v.MoneyItem=Dl,v.MoreButton=to,v.OverLay=dn,v.Page=Jn,v.PickerItem=Hl,v.Popup=mt,v.Price=un,v.PriorityPolicy=Ge,v.PullRefresh=Jl,v.RadioItem=Ml,v.RateItem=_l,v.RollingProvider=co,v.RowItem=ul,v.SearchBar=Xl,v.SelectItem=fl,v.SlotItem=sl,v.StepsBar=Yl,v.SwitchItem=Pl,v.TableItem=Rl,v.TableMappingColumn=Ol,v.TableRadioColumn=Al,v.TableSetting=xn,v.TabsBar=bn,v.TabsContainer=vn,v.TabsPane=wn,v.Text=eo,v.TimeItem=$l,v.TimeSelectItem=kl,v.Toast=Gl,v.Tour=no,v.TreeSelectItem=ql,v.UniqueID=na,v.ValidateSchema=Lo,v.ValidateSchemaKey=Ye,v.calendarpicker=gn,v.cancelRaf=Rr,v.cascaderpicker=Sn,v.clearNonNumber=Yr,v.clone=jn,v.compareTo=_n,v.createBroadcast=Wt,v.createValidateSchema=Ut,v.datepicker=mn,v.debounce=$t,v.debounceRef=ri,v.decimalLength=Vo,v.default=Rg,v.defineBroadcast=Zr,v.defineConfigDomain=qo,v.defineDataItem=jo,v.defineDomain=Un,v.defineItem=Ce,v.definePageState=Ho,v.deleteGlobalValidator=ti,v.disabledProperty=Ie,v.divide=Ln,v.excludeProps=$e,v.extend=lt,v.floatData=Xr,v.getGlobalValidateCheckEvents=Fo,v.getGlobalValidateResetEvents=Mo,v.getPageContentAreaHeight=Jt,v.getPageContentAreaWidth=Qt,v.getPageFooterAreaHeight=Dt,v.getPageHeaderAreaHeight=kt,v.getRootDomain=ft,v.hasSymbol=Co,v.includeProps=ut,v.indexOf=Ur,v.installRules=zo,v.integerLength=Io,v.isArray=Lr,v.isArrayLike=ko,v.isBrowser=ot,v.isDate=We,v.isESModule=zr,v.isEmptyString=ye,v.isEqual=Le,v.isFunction=qn,v.isHidden=Kt,v.isInnerPage=ui,v.isMap=_r,v.isNil=Kn,v.isNumberString=Eo,v.isObject=Me,v.isPlainObject=zn,v.isPromise=zt,v.isRegExp=No,v.isSet=Pr,v.isString=xo,v.isSubPage=ci,v.isSymbol=qr,v.isTouch=pl,v.isWindow=$o,v.lastIndexOf=Gr,v.makeArray=Wr,v.merge=Do,v.multiply=vo,v.negate=wo,v.nextTick=Hr,v.numberFormat=qt,v.objectToString=To,v.once=ii,v.picker=Vt,v.property=Ae,v.raf=Pn,v.readonlyProperty=Ee,v.setGlobalValidateCheckEvents=ni,v.setGlobalValidateHandler=Qr,v.setGlobalValidateMessages=oi,v.setGlobalValidateResetEvents=li,v.setGlobalValidator=ei,v.throttle=Po,v.toBoolean=ce,v.toNumber=he,v.toPadding=ze,v.toPx=me,v.toPxDesc=Oe,v.toTypeString=jt,v.toValue=de,v.tryTimes=Gt,v.typeOf=Ht,v.unNumberFormat=So,v.updatePageState=Gn,v.useBroadcast=Tt,v.useDomain=Ue,v.useExpose=pe,v.useInnerSize=Qn,v.usePageState=Zt,v.usePosition=Qo,v.useRawTouch=bl,v.useRect=gl,v.useSize=tn,v.useTouch=$a,v.valueLength=_e,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|