@fox-js/foxui-pad 4.0.1-22 → 4.0.1-24
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 +12862 -10209
- 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 +112 -40
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/const
|
|
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,lt,F,Ce,ve){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Wed Apr 17 2024 10:34:43 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const _t=window,Er=typeof window<"u";function Ir(){return typeof _t<"u"?_t.requestAnimationFrame||_t.webkitRequestAnimationFrame||function(e){_t.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Vr(e){Er?cancelAnimationFrame(e):clearTimeout(e)}const kn=Ir();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function Ft(e,n="0"){let l=0,o=-1;e[0]=="-"&&(l++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(l++,o=2,n=n.substring(1),n.length),e=ke(e),n=ke(n),[e,n]=pn(ke(e),ke(n)),l==1&&(o==1?e=gn(e):n=gn(n));let r=jo(e,n);return l?l==2?"-"+ke(r):e.length<r.length?ke(r.substring(1)):"-"+ke(gn(r)):ke(r)}function gn(e){let n="",l=e.length,o=e.split(".")[1],r=o?o.length:0;for(let i=0;i<l;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return jo(n,a)}function ke(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 pn(e,n){let l=e.split("."),o=n.split("."),r=l[0].length,a=o[0].length;return r>a?o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""):l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""),r=l[1]?l[1].length:0,a=o[1]?o[1].length:0,(r||a)&&(r>a?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function jo(e,n){[e,n]=pn(e,n);let l="",o=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){l="."+l;continue}let a=parseInt(e[r])+parseInt(n[r])+o;l=a%10+l,o=Math.floor(a/10)}return o?o.toString()+l:l}var he=(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))(he||{});function mt(e,n=0,l=he.HALF_EVEN){if(l===he.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(n<0){if(n=-n,a.length<=n)return"0";{let c=a.substr(0,a.length-n);return e=c+"."+a.substr(a.length-n)+i,c=mt(e,0,l),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return a.length,_o(r[1],a,o,l)?(o?"-":"")+yn(a):(o?"-":"")+a;if(r[1]){if(r[1].length<n)return(o?"-":"")+a+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(o?"-":"")+a+"."+new Array(n+1).join("0");i=r[1].substring(0,n);let s=r[1].substring(n);return s&&_o(s,i,o,l)&&(i=yn(i),i.length>n)?(o?"-":"")+yn(a,parseInt(i[0]))+"."+i.substring(1):(o?"-":"")+a+"."+i}function _o(e,n,l,o){if(!e||e===new Array(e.length+1).join("0")||o===he.DOWN||!l&&o===he.FLOOR||l&&o===he.CEILING)return!1;if(o===he.UP||l&&o===he.FLOOR||!l&&o===he.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(o){case he.HALF_DOWN:return!1;case he.HALF_UP:return!0;case he.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function yn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let l=e.length-1,o="";for(let r=l;r>=0;r--){let a=parseInt(e[r])+n;a==10?(n=1,a=0):n=0,o+=a}return n&&(o+=n),o.split("").reverse().join("")}function bn(e,n){e=e.toString(),n=n.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),n[0]=="-"&&(l++,n=n.substr(1)),e=gt(e),n=gt(n);let o=0,r=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let a=o+r;if(e=gt(e.replace(".","")),n=gt(n.replace(".","")),e.length<n.length){let h=e;e=n,n=h}if(n=="0")return"0";let i=n.length,s=0,c=[],u=i-1,d="";for(let h=0;h<i;h++)c[h]=e.length-1;for(let h=0;h<2*e.length;h++){let p=0;for(let $=n.length-1;$>=u&&$>=0;$--)c[$]>-1&&c[$]<e.length&&(p+=parseInt(e[c[$]--])*parseInt(n[$]));p+=s,s=Math.floor(p/10),d=p%10+d,u--}return d=gt(Zr(d,a)),l==1&&(d="-"+d),d}function Zr(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 gt(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 wn(e,n,l=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 o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=ke(n.replace(".","")),r>=0){let u=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(u==-1)e=ke(e+new Array(r+1).join("0"));else if(r>u)e=e.replace(".",""),e=ke(e+new Array(r-u+1).join("0"));else if(r<u){e=e.replace(".","");let d=e.length-u+r;e=ke(e.substring(0,d)+"."+e.substring(d))}else r==u&&(e=ke(e.replace(".","")))}let a=0,i=n.length,s="",c=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),c.indexOf(".")>-1){let u=c.length-c.indexOf(".")-1;c=c.replace(".",""),i>c.length&&(u+=i-c.length,c=c+new Array(i-c.length+1).join("0")),a=u,s="0."+new Array(u).join("0")}for(l=l+2;a<=l;){let u=0;for(;parseInt(c)>=parseInt(n);)c=Ft(c,"-"+n),u++;s+=u,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,c=c+"0")}return(o==1?"-":"")+ke(mt(s,l-2))}function Sn(e,n){return e=e.toString(),n=n.toString(),n=vn(n),Ft(e,n)}function vn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ho(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ko(e),Ko(n);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=Sn(e,bn(n,mt(wn(e,n),0,he.FLOOR)));return l+o}function Ko(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Wo(e,n){let l=!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),l=!0),[e,n]=pn(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?l?-1:1:l?1:-1;return 0}class ae{value;static RoundingModes=he;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[l,o]=n.split(/[eE]/);l=ke(l);let r="";l[0]=="-"&&(r="-",l=l.substring(1)),l.indexOf(".")>=0?(o=parseInt(o)+l.indexOf("."),l=l.replace(".","")):o=parseInt(o)+l.length,l.length<o?n=r+l+new Array(o-l.length+1).join("0"):l.length>=o&&o>0?n=r+ke(l.substring(0,o))+(l.length>o?"."+l.substring(o):""):n=r+"0."+new Array(-o+1).join("0")+l}return n}constructor(n="0"){this.value=ae.validate(n)}getValue(){return this.value}static getPrettyValue(n,l,o){if(!(l||o))l=3,o=",";else if(!(l&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ae.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var a=n.indexOf(".");a=a>0?a:n.length;for(var i="",s=a;s>0;)s<l?(l=s,s=0):s-=l,i=n.substring(s,s+l)+(s<a-l&&s>=0?o:"")+i;return(r?"-":"")+i+n.substring(a)}getPrettyValue(n,l){return ae.getPrettyValue(this.value,n,l)}static round(n,l=0,o=he.HALF_EVEN){if(n=ae.validate(n),isNaN(l))throw Error("Precision is not a number: "+l);return mt(n,l,o)}round(n=0,l=he.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ae(mt(this.value,n,l))}static floor(n){return n=ae.validate(n),n.indexOf(".")===-1?n:ae.round(n,0,he.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,he.FLOOR)}static ceil(n){return n=ae.validate(n),n.indexOf(".")===-1?n:ae.round(n,0,he.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,he.CEILING)}static add(n,l){return n=ae.validate(n),l=ae.validate(l),Ft(n,l)}add(n){return new ae(Ft(this.value,n.getValue()))}static subtract(n,l){return n=ae.validate(n),l=ae.validate(l),Sn(n,l)}subtract(n){return new ae(Sn(this.value,n.getValue()))}static multiply(n,l){return n=ae.validate(n),l=ae.validate(l),bn(n,l)}multiply(n){return new ae(bn(this.value,n.getValue()))}static divide(n,l,o){return n=ae.validate(n),l=ae.validate(l),wn(n,l,o)}divide(n,l){return new ae(wn(this.value,n.getValue(),l))}static modulus(n,l){return n=ae.validate(n),l=ae.validate(l),Ho(n,l)}modulus(n){return new ae(Ho(this.value,n.getValue()))}static compareTo(n,l){return n=ae.validate(n),l=ae.validate(l),Wo(n,l)}compareTo(n){return Wo(this.value,n.getValue())}static negate(n){return n=ae.validate(n),vn(n)}negate(){return new ae(vn(this.value))}}function Yo(e,n){return ae.multiply(`${e}`,`${n}`)}function Cn(e,n,l=8){return ae.divide(`${e}`,`${n}`,l)}function Tn(e,n){return e=`${e}`,n=`${n}`,ae.compareTo(e,n)}function Uo(e){return ae.negate(e)}function Rt(e,n=-1,l=!1,o=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,c="",u=a.indexOf(".");u!=-1&&(s=a.substring(0,u),c=a.substring(u+1)),n!=-1&&(n<c.length?c=c.substring(0,n):l&&n>c.length&&(c=c.padEnd(n,"0")));let d;if(o>0){let h="",p=s.split("").reverse();for(let $=0;$<p.length;$++)h+=p[$]+(($+1)%o==0&&$+1!=p.length?r:"");c.length==0?d=`${i}${h.split("").reverse().join("")}`:d=`${i}${h.split("").reverse().join("")}.${c}`}else c.length==0?d=`${i}${s}`:d=`${i}${s}.${c}`;return d}function Go(e){let n=`${e}`,l=n.charAt(0);l=="-"?n=n.substring(1):l="";let o=n.replace(/[^\d\.-]/g,"");return`${l}${o}`}const Xo=zo,Jr=Array.isArray,Qr=e=>Mt(e)==="[object Map]",ea=e=>Mt(e)==="[object Set]",Le=e=>e instanceof Date,kn=e=>typeof e=="function",Zo=e=>typeof e=="string",ta=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",na=e=>Be(e)&&kn(e.then)&&kn(e.catch),Jo=Object.prototype.toString,Mt=e=>Jo.call(e),$n=e=>Mt(e)==="[object Object]",Qo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function oa(e){return e.__esModule||Qo&&e[Symbol.toStringTag]==="Module"}const la=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Xe(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,o=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[l]??{},l++),typeof n!="object"&&(n={});l<o;l++)if(e[l]!==null&&e[l]!==void 0){let a=e[l];for(let i in a){let s=n[i],c=a[i];if(s!==c)if(r===!0&&c&&typeof c=="object"){let u;Array.isArray(c)?u=s&&Array.isArray(s)?s:[]:u=s&&typeof s=="object"?s:{},n[i]=Xe(r,u,c)}else c!==void 0&&(n[i]=c)}}return n}function Dn(e,n,l=!1){if(!l)Xe(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let r in n){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!$n(i))continue;a=Dn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const o=Object.getOwnPropertySymbols(n);for(let r of o){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!$n(i))continue;a=Dn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const xn=la?Promise.resolve():null;function ra(e,...n){xn!==null?n&&n.length>0?xn.then(()=>{e(n)}):xn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function re(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function se(e){return typeof e=="number"?e:Number(e)}const aa={"[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 nt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):aa[l]||"object"}function el(e){return e&&typeof e=="object"&&"setInterval"in e}function Lt(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function tl(e){let n=!!e&&"length"in e&&e.length,l=nt(e);return l==="function"||el(e)?!1:l==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function nl(e,n){let l=+n.length,o=0,r=e.length;for(;o<l;o++)e[r++]=n[o];return e.length=r,e}function ia(e,n=[]){let l=n;return e!=null&&(tl(Object(e))?nl(l,typeof e=="string"?[e]:e):l.push(e)),l}function Pe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let l=nt(e),o=nt(n);if(l!==o)return!1;if(l==="object"){let r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],c=e[s],u=n[s];if(!Pe(c,u))return!1}return!0}else if(l==="array"){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=n[r];if(!Pe(a,i))return!1}return!0}return!1}const Ze=typeof window<"u";function En(e){return e==null}function ol(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const be=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function ll(e){return be(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),be(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function rl(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 l=n.indexOf(".");return l==-1?n.length:l}function al(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const l=n.indexOf(".");return l==-1?0:n.length-(l+1)}function il(e,n,l){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(l,"")}function sa(e,n=!0,l=!0){n?e=il(e,".",/\./g):e=e.replace(/\./g,""),l?e=il(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function ca(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(l=>{if(Pe(e,l))return!0}):n.indexOf(e)}function ua(e,n){if(typeof e=="object"||Array.isArray(e)){let l=n.reverse().findIndex(o=>{if(Pe(e,o))return!0});return l!==-1&&(l=n.length-1-l),l}return n.lastIndexOf(e)}function Oe(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function pt(e,...n){const l={};return n.forEach(o=>{for(const r in o)l[r]=e[r]}),l}function ve(e,...n){const l=[];n.forEach(r=>{Reflect.apply([].push,l,Reflect.ownKeys(r))});const o={};for(const r in e)l.includes(r)||(o[r]=e[r]);return o}const fa=(e,n,l)=>{const o=Object.assign({},e),r=Object.assign({},l);return Object.keys(n).length>0?(Object.keys(o).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(o[a]=n[r[a]]):n[a]&&(o[a]=n[a])}),o):e},we=Symbol.for("BroadcastKey");class Nn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,l,o){this.parent=n,this.proxy=l,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const l=this.children.findIndex(o=>n===o);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,l,...o){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 r=!1;!n.name||n.name==="*"?r=!0:!n.name||n.name==="+"?(r=!1,n.name="*"):ol(n.name)&&this.name&&n.name.test(this.name)?r=!0:typeof n.name=="function"?r=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(l);if(typeof i=="function"){const c=Reflect.apply(i,this.proxy,[...o]);c!=null&&a.push(c)}const s=this.proxy??{};if(typeof s[l]=="function"){const c=Reflect.apply(s[l],s,[...o]);c!=null&&a.push(c)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},l,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(n,l,...o){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},l,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(n,l){this.callbacks.set(n,l)}}function Pt(e,n,l,o){const r=new Nn(n,e,l);if(o&&typeof o=="object")for(const a in o)r.on(a,o[a]);return r}function da(e,n,l){const o=l;if(o[we])return o[we];const r=t.inject(we,null),a=new Nn(r,l,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return o[we]=a,t.provide(we,a),t.onUnmounted(()=>{a.destroy(),o[we]=void 0}),a}function yt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[we]??t.inject(we,null):t.inject(we,null)}const Je=e=>e.default??e;class ha{error(n,l){const o=l,r=yt(l);r?r.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const l=n,o=yt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(n){const l=n,o=yt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(n,l,o){Array.isArray(n)||(n=[n]);const r=o,a=yt(o),i=l.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),s=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let sl=new ha;function ma(e){sl=e}function ga(e,n){Je(Ge).setValidator(e,n)}function pa(e){Je(Ge).deleteValidator(e)}let cl=["blur","clear"];function ya(e){cl=e}function ul(){return cl}let fl=["focus","change"];function ba(e){fl=e}function dl(){return fl}function wa(e){Je(Ge).messages(e)}function bt(...e){const n=[];return e.forEach(l=>{l.forEach(o=>{const r=n.findIndex(a=>a.type===o.type);r!==-1&&n.splice(r,1),n.push(o)})}),n}function qt(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 qe=Symbol("ValidateSchemaKey");class hl{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,l,o){this.parent=n,this.descriptor=l,this.proxy=o,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 l=qt(bt(this.attrRules,this.rules)),o=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let c={type:a};i!==null&&typeof i=="object"&&Object.assign(c,i),o.push(c);continue}let s=this.getValidator(a);if(s!==null){let c={type:a,validator:s};o.push(c)}}this.attrRules=qt(o);const r=bt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(r,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...l){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...l]);const r=sl;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...l]):null}decorate(n,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,l,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,l,o=!1){o?Je(Ge).setValidator(n,l):this.validators[n]=l}getValidator(n){let l=this.validators[n]??null;return l||(l=this.parent?.getValidator(n)??null),l}deleteValidator(n,l=!1){l?Je(Ge).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,l=!1){if(l)return Je(Ge).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const l=bt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=qt(n):this.rules=qt([n]);const o=bt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=bt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(l.length>0){const r={[`${o}`]:l},a=this.getValue(),i={[`${o}`]:a},s=Je(Ge),c=new s(r),u=this.proxy??i;return c.validate(i,{context:u}).then(h=>{if(h.pass)this.success();else{let p="error";Array.isArray(h.errors)&&h.errors.length>0&&(p=h.errors[0].message??p,h.errors=[h.errors[0]],h.errors[0].ref=u),this.error(p)}return h}).catch(h=>{const p=h.message??`${h}`;return this.error(p),h})}}return Promise.resolve({pass:!0})}}function zt(e,n,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const r=l.valueName;l.validateHandler={getValue(a){return a[r]}}}return new hl(n,l,e)}const ml=Symbol.for("EventEmitterKey");class Sa{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,l){let o=this.register.get(n);if(o&&Array.isArray(o)){let r=o.findIndex(a=>a===l);r!==-1&&o.splice(r,1)}}on(n,l){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(l)}emit(n,...l){const o=this.register.get(n);o&&o.forEach(r=>{try{Reflect.apply(r,null,[n,...l])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...l])}}function wt(e,n){let l=null;return function(...o){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...o])},n)}}function gl(e,n){let l=0;return function(...o){const r=new Date().getTime();r-l<n||(l=r,Reflect.apply(e,null,[...o]))}}function va(e,n){const l=wt((o,r)=>{e=o,r()},n);return t.customRef((o,r)=>({get(){return o(),e},set(a){l(a,r)}}))}function Ca(e){let n=!1;return function(...l){n||(n=!0,Reflect.apply(e,null,[...l]))}}function jt(e,n,l,o=0,r=!0,a){let i=n,s=0;if(r){const u=e();if(s++,u){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}}const c=()=>{const u=e();if(s++,u){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}i+=o,setTimeout(c,i)};setTimeout(c,i)}const Ie=Symbol("DomainKey"),ot=Symbol("DataItemsKey");class _t{_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,l=[]){for(const o in n){const r=n[o];l.length>0&&l.indexOf(r)!==-1||(this._props[o]=r)}}has(n){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,l){this._props[n]=l}get(n,l){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?l:this.parent.get(n,l)}getForParent(n,l){return this.parent==null?l:this.parent.get(n,l)}getForSelf(n){return this._props[n]}getAll(n){const l=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const r=o._props[n];l.push(r)}o=o._parent}return l}}const Ta=new _t;function lt(){return Ta}function ze(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ie]??t.inject(Ie,null):t.inject(Ie,null)}const Vn=Symbol("OriginalDateKey");function In(e,n,l=[],o){const r=t.getCurrentInstance(),a=r?.proxy;let i=t.inject(Ie,null);i===null&&(i=lt());const s=e||n.prop||n.name,c=new _t(s);c.parent=i;const u=g=>{a[Vn]||p(g),c.set("modelValue",g)},d=()=>c.getForSelf("modelValue")??null,h=()=>a[Vn]??null,p=g=>{const S={};Xe(!0,S,t.toRaw(g)),a[Vn]=S};t.isReactive(n)||typeof n=="function"?t.watch(n,g=>{c.merge(g,l)},{immediate:!0}):c.merge(n,l),n.modelValue&&p(n.modelValue),a[Ie]=c,t.provide(Ie,c);let $=null,m=null;if(r!==null){const g=t.inject(we,null);$=Pt(a,g,s,o),c.broadcast=$,a[we]=$,t.provide(we,$),a.broadcast=(y,b,...f)=>Reflect.apply($.emit,$,[y,b,...f]);const S=t.inject(qe,null);m=zt(a,S,{componentName:""}),c.validateSchema=m,a[qe]=m,t.provide(qe,m),a[ot]=new Map,a.validate=(y=!0)=>{const b=[];let f=null;const F={deep:!1};if(y===!0)f={name:"*"};else if(Array.isArray(y)&&y.length>0){const I=y;f={name:q=>q?I.indexOf(q)!==-1:!1}}else if(y!=null&&typeof y=="object"){const I=y;if(F.ignoreHidden=I.ignoreHidden,Array.isArray(I.include)&&I.include.length>0){const q=I.include;f={name:L=>L?q.indexOf(L)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const q=I.exclude;f={name:L=>L?q.indexOf(L)===-1:!1}}else f={name:"*"}}if(f){const I=$?.emitToChildren(f,"validate",F);I&&Reflect.apply([].push,b,I)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(I=>{let q=[];return I.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(q=[...q,...L.errors])}),q.length>0?{pass:!1,errors:q}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(y,b=!0,f=!1)=>{if(f===!0){Reflect.ownKeys(y).forEach(I=>{let q=String(I);const B=bl(c,q,{componentName:"",fieldName:q,pureDataValidate:!0},$,m);a[ot].set(q,B);const N=y[q];N&&B.validateSchema.setRule(N)});return}if(b){const F=Reflect.ownKeys(y),I={name:q=>F.includes(q)};$?.emitToChildren(I,"setNameValidateRules",y,!1)}},a.clearValidate=(y=!0)=>{let b=null;if(y===!0)b={name:"*"};else if(Array.isArray(y)&&y.length>0){const f=y;b={name:F=>F?f.indexOf(F)!==-1:!1}}else if(y!=null&&typeof y=="object"){const f=y;if(Array.isArray(f.include)&&f.include.length>0){const F=f.include;b={name:I=>I?F.indexOf(I)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const F=f.exclude;b={name:I=>I?F.indexOf(I)===-1:!1}}else b={name:"*"}}b&&$?.emitToChildren(b,"clearValidate",!1)},a.resetFields=y=>{const b=d();if(!b)return;const f={};if(Xe(!0,f,h()??{}),Array.isArray(y))y.forEach(F=>{b[F]=f[F]});else if(y&&Array.isArray(y.include))(y.include??[]).forEach(I=>{b[I]=f[I]});else if(y&&Array.isArray(y.exclude)){let F=y.exclude??[];Reflect.ownKeys(f).forEach(I=>{F.includes(I)||(b[I]=f[I])})}else Object.assign(b,f);a.clearValidate(y)},a.setModelValue=(y,b)=>{!b||b===s?u(y):$?.emitToChildren({name:b},"setModelValue",y)},a.getModelValue=()=>d()}return t.onUnmounted(()=>{c.destroy(),a[Ie]=void 0,a[ot]&&(a[ot].clear(),a[ot]=void 0),$!==null&&($.destroy(),a[we]=void 0),m!==null&&(m.destroy(),a[qe]=void 0)}),c}function pl(e,n,l=[]){const r=t.getCurrentInstance()?.proxy;let a=t.inject(Ie,null);a===null&&(a=lt());const i=e||n.prop||n.name,s=new _t(i);return s.parent=a,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{s.merge(c,l)},{immediate:!0}):s.merge(n,l),r[Ie]=s,t.provide(Ie,s),t.onUnmounted(()=>{s.destroy(),r[Ie]=void 0}),s}function yl(e,n,l){const r=ze(e)?.get("rules");if(!r)return;let a=r[l];a&&(Array.isArray(a)||(a=[a]),a.forEach(i=>{n.setRule(i)}))}function Se(e,n,l){const r=t.getCurrentInstance()?.proxy,a=n??"",i=t.inject(we,null),s=Pt(r,i,a,l);r[we]=s,t.provide(we,s),r.broadcast=(m,g,...S)=>Reflect.apply(s.emit,s,[m,g,...S]);const c=t.inject(qe,null);e.fieldName=e.fieldName??a;const u=zt(r,c,e);r[qe]=u,t.provide(qe,u),yl(r,u,a),r.validate=(m=null)=>{const g=[];let S=!1,y=!1;if(Array.isArray(m)&&m.indexOf(a)!==-1)y=!0,S=!0;else if(m&&typeof m=="object"){const b=m;b.ignoreHidden===!0&&Lt(r.$el)?y=!1:(Array.isArray(b.include)&&b.include.indexOf(a)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(a),y=!0),S=b.deep??!1}else typeof m=="boolean"&&(S=m),y=!0;if(y){const b=u?.validate();g.push(b)}if(S){let b=null;const f={deep:!1};if(m===!0)b={name:"*"};else if(Array.isArray(m)&&m.length>0){const F=m;b={name:I=>I?F.indexOf(I)!==-1:!1}}else if(m!=null&&typeof m=="object"){const F=m;if(f.ignoreHidden=F.ignoreHidden,Array.isArray(F.include)&&F.include.length>0){const I=F.include;b={name:q=>q?I.indexOf(q)!==-1:!1}}else if(Array.isArray(F.exclude)&&F.exclude.length>0){const I=F.exclude;b={name:q=>q?I.indexOf(q)===-1:!1}}else b={name:"*"}}if(b){const F=s.emitToChildren(b,"validate",f);Reflect.apply([].push,g,F)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(b=>{let f=[];return b.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(f=[...f,...F.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>u?.setRule(m),r.setNameValidateRules=(m,g=!1)=>{const S=m[a];if(S&&u?.setRule(S),g){const y={name:b=>Reflect.ownKeys(m).includes(b)};s.emitToChildren(y,"setNameValidateRules",m,!1)}},r.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(n??"")!==-1)&&u?.clear();let g=null;if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const S=m;g={name:y=>y?S.indexOf(y)!==-1:!1}}else if(m!=null&&typeof m=="object"){const S=m;if(Array.isArray(S.include)&&S.include.length>0){const y=S.include;g={name:b=>b?y.indexOf(b)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const y=S.exclude;g={name:b=>b?y.indexOf(b)===-1:!1}}else g={name:"*"}}g&&s.emitToChildren(g,"clearValidate",!1)};const d=new Sa(r);r[ml]=d;const h=wt((m="validate")=>{m==="reset"?u.clear():u.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ul()).forEach(m=>{d.on(m,g=>{h("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:dl()).forEach(m=>{d.on(m,g=>{h("reset")})}),t.onUnmounted(()=>{s.destroy(),r[we]=void 0,u.destroy(),r[qe]=void 0,d.destroy(),r[ml]=void 0}),{broadcast:s,validateSchema:u,emitEvent:(m,...g)=>{Reflect.apply(d.emit,d,[m,...g])},onEvent:(m,g)=>{Reflect.apply(d.on,d,[g])},offEvent:(m,g)=>{Reflect.apply(d.off,d,[g])}}}function bl(e,n,l,o,r){const a={},i=n??"",s={getValue(){const d=e.getForSelf("modelValue");return d?d[i]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,i):!1}};l.fieldName=i,l.validateHandler={getValue(d){return s.getValue()}};const c=zt({},r,l);a.validate=(d=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const h=[];let p=!1,$=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)$=!0,p=!0;else if(d&&typeof d=="object"){const m=d;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),$=!0,p=m.deep??!1}else typeof d=="boolean"&&(p=d),$=!0;if($){const m=c?.validate();h.push(m)}if(p){let m=null;const g={deep:!1};if(d===!0)m={name:"*"};else if(Array.isArray(d)&&d.length>0){const S=d;m={name:y=>y?S.indexOf(y)!==-1:!1}}else if(d!=null&&typeof d=="object"){const S=d;if(Array.isArray(S.include)&&S.include.length>0){const y=S.include;m={name:b=>b?y.indexOf(b)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const y=S.exclude;m={name:b=>b?y.indexOf(b)===-1:!1}}else m={name:"*"}}if(m){const S=u.emitToChildren(m,"validate",g);Reflect.apply([].push,h,S)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(m=>{let g=[];return m.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(g=[...g,...S.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>c?.setRule(d),a.setNameValidateRules=d=>{const h=d[i];h&&c?.setRule(h)};const u=Pt(null,o,i,a);return{broadcast:u,validateSchema:c}}const Ce=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ce(e,n)}px`:"";function ce(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 l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let r=Number(e.substring(0,l)),a=1;if(Ze){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))/100*n;const o=Number(e);return isNaN(o)?0:o}const We="PageStateKey";function Ae(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ce(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ce(e.right))),n}function On(e,n,l={},o=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=ce(l.headerHeight??n.headerHeight??-1),e.headerPadding=Ae(l.headerPadding??n.headerPadding),e.footerHeight=ce(l.footerHeight??n.footerHeight??-1),e.footerPadding=Ae(l.footerPadding??n.footerPadding),e.contentPadding=Ae(l.contentPadding??n.contentPadding),o){const c=l.height??n.height;c?e.height=ce(c,a):e.height=ce(a)-ce(i,a)-ce(s,a),e.width=ce(l.width??n.width??0,r)}}function wl(e,n={}){const l={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});r&&(o.safeAreaTop=ce(r.top),o.safeAreaBottom=ce(r.bottom),o.safeAreaLeft=ce(r.left),o.safeAreaRight=ce(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,u=e.get("footerBarHeight")??0;On(o,a,n,!0,i,s,c,u);const d=t.reactive(o),h=e.getForParent(We);h&&(o.height=Kt(e,h),o.width=Wt(e,h),t.watch([()=>Kt(e,h),()=>Wt(e,h)],([$,m])=>{d.height=$,d.width=m}));const p=!h;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([$,m,g=-1,S=-1,y=0,b=0])=>{On(d,m,n,p,g,S,y,b)}),e.set(We,d),d}function Ht(e){return e.get(We)}function St(e,n){if(n=n??e.get(We),n&&n.headerMounted){const l=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+l}return 0}function vt(e,n){if(n=n??e.get(We),n&&n.footerMounted){const l=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+l}return 0}function Kt(e,n){if(n=n??e.get(We),n){if(n.contentInnerHeight)return n.contentInnerHeight;const l=St(e,n),o=vt(e,n);return n.height-l-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Wt(e,n){return n=n??e.get(We),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function ka(e,n){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[n,e]):!1}function $a(e){return!!e.getForParent(We)}var Ye=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ye||{});function Bn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ve(e,n,l=1,o){const r=ze();return r==null?e:l===0?t.computed(()=>{const a=r.getAll(n);for(let s=a.length-1;s>=0;s--){const c=a[s];if(Bn(c,o))return c}const i=e.value;return Bn(i,o)?i:null}):t.computed(()=>{const a=e.value;return Bn(a,o)?a:r?.get(n)})}function $e(e){return Ve(e,"readonly",0,function(l){return re(l)})}function De(e){return Ve(e,"disabled",0,function(l){return re(l)})}function ie(e,n="modelValue",l){const o=t.toRef(e,n);let r=o.value;typeof l=="function"&&(r=l(o.value));const a=t.ref(r);return t.watch(o,i=>{if(typeof l=="function"){const s=l(i);s!==a.value&&(a.value=s)}else i!==a.value&&(a.value=i)}),a}const Sl=new Map,Yt=new Map;let An=null;function Da(e){An=e}function vl(e,n,l){if(l){let o=Yt.get(l);o||(o=new Map,Yt.set(l,o)),o.set(e,n)}else Sl.set(e,n)}function Fe(e,n,l){!l&&An&&(l=An(e)??void 0);let o=null;if(l){let r=Yt.get(l);r&&(o=r.get(n))}return o||(o=Sl.get(n)),o}function xa(e,n){for(let l in e){const o=e[l];vl(l,o,n)}}function Ea(e){Yt.delete(e)}function Na(){return{top:0,left:0,bottom:0,right:0}}function Va(e=0,n=0){if(Ze){const l=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,r={width:l,height:o-ce(e,o)-ce(n,o)};return{rootWidth:l,rootHeight:o,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class Ia{packages;installers;_version;get version(){return this._version}constructor(n,l,o){this.packages=n,this.installers=l,this._version=o}install(n,l={}){l?.install!==!1&&(this.packages.forEach(a=>{a.install?n.use(a):a.name&&n.component(a.name,a)}),this.installers.forEach(a=>{a(n)}));const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=lt();if(this.initPageLayout(l,r),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=gl(()=>{const s={...l},c=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight;s.width=c,s.height=u,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in l)o.indexOf(a)===-1&&r.set(a,l[a])}initPageLayout(n,l){const o=n.headerBarHeight??0,r=n.footerBarHeight??0,a=Xe({},Na(),n.safeAreaInset),i=Va(o,r),s=Xe({},i.pageLayout,n.pageLayout);l=l??lt(),l.set("safeAreaInset",a),l.set("headerBarHeight",o),l.set("footerBarHeight",r),l.set("pageLayout",s),l.set("rootWidth",i.rootWidth),l.set("rootHeight",i.rootHeight)}setScopeGetter(n){Da(n)}setAPI(n,l,o){vl(n,l,o)}getAPI(n,l,o){return Fe(n,l,o)}batchSetAPI(n,l){xa(n,l)}clearScopeAPI(n){Ea(n)}getRootDomain(){return lt()}}const Oa=[T.ElAffix,T.ElAlert,T.ElAutocomplete,T.ElAutoResizer,T.ElAvatar,T.ElBacktop,T.ElBadge,T.ElBreadcrumb,T.ElBreadcrumbItem,T.ElButton,T.ElButtonGroup,T.ElCalendar,T.ElCard,T.ElCarousel,T.ElCarouselItem,T.ElCascader,T.ElCascaderPanel,T.ElCheckTag,T.ElCheckbox,T.ElCheckboxButton,T.ElCheckboxGroup,T.ElCol,T.ElCollapse,T.ElCollapseItem,T.ElCollapseTransition,T.ElColorPicker,T.ElConfigProvider,T.ElContainer,T.ElAside,T.ElFooter,T.ElHeader,T.ElMain,T.ElDatePicker,T.ElDescriptions,T.ElDescriptionsItem,T.ElDialog,T.ElDivider,T.ElDrawer,T.ElDropdown,T.ElDropdownItem,T.ElDropdownMenu,T.ElEmpty,T.ElForm,T.ElFormItem,T.ElIcon,T.ElImage,T.ElImageViewer,T.ElInput,T.ElInputNumber,T.ElLink,T.ElMenu,T.ElSubMenu,T.ElMenuItem,T.ElMenuItemGroup,T.ElPageHeader,T.ElPagination,T.ElPopconfirm,T.ElPopover,T.ElPopper,T.ElProgress,T.ElRadio,T.ElRadioButton,T.ElRadioGroup,T.ElRate,T.ElResult,T.ElRow,T.ElScrollbar,T.ElSelect,T.ElOption,T.ElOptionGroup,T.ElSelectV2,T.ElSkeleton,T.ElSkeletonItem,T.ElSlider,T.ElSpace,T.ElSteps,T.ElStep,T.ElSwitch,T.ElTable,T.ElTableColumn,T.ElTableV2,T.ElTabs,T.ElTabPane,T.ElTag,T.ElTimePicker,T.ElTimeSelect,T.ElTimeline,T.ElTimelineItem,T.ElTooltip,T.ElTransfer,T.ElTree,T.ElTreeSelect,T.ElTreeV2,T.ElUpload],Ba=[T.ElInfiniteScroll,T.ElLoading,T.ElMessage,T.ElMessageBox,T.ElNotification,T.ElPopoverDirective],Aa=e=>{Oa.forEach(n=>{let l=n.name;typeof l=="string"?(l=`Fox${l.slice(2)}`,e.component(l,n)):e.use(n)}),Ba.forEach(n=>{e.use(n)})};function le(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=n,l.install=o=>{o.component(l.name,l)},t.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,t.defineComponent(l)}}}const ge={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Te={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],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}},Cl={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}},Tl={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}},kl=[];for(const e in Tl)kl.push(e);function me(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}const Fa=Symbol.for("InnerPageScopeKey"),Ra=(e,n)=>({inheritAttrs:!0,props:{...ge,...Cl,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}},setup(l,o){const r=In(l.name,l);if(r){const u=wl(r,l);me({getPageContentHeight:()=>Kt(r,u),getPageContentWidth:()=>Wt(r,u),getPageHeaderHeight:()=>St(r,u),getPageFooterHeight:()=>vt(r,u)});const d=t.inject(Fa,!1);u&&d&&(u.contentHeight="100%")}const a=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),s=t.getCurrentInstance(),c=(u,d=!1)=>{const h=s?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(u,!0,d)};return t.watch([()=>l.rules,()=>l.pureDataRules],([u,d],[h,p])=>{if(u&&h){const $=t.toRaw(h),m=t.toRaw(u),g=m?Reflect.ownKeys(m):[];($?Reflect.ownKeys($):[]).forEach(y=>{g.includes(y)||(m[y]=[])}),c(m)}if(d&&p){const $=t.toRaw(p),m=t.toRaw(d),g=m?Reflect.ownKeys(m):[];($?Reflect.ownKeys($):[]).forEach(y=>{g.includes(y)||(m[y]=[])}),c(m,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const u=t.toRaw(l.rules);c(u)}if(l.pureDataRules){const u=t.toRaw(l.pureDataRules);c(u,!0)}}),t.onBeforeUnmount(()=>{}),{classes:a,styles:i}}}),{componentName:Ma,create:La,scope:Qh}=le("page"),Pa=La(Ra(Ma));function qa(e,n,l,o,r,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),title:""},[t.renderSlot(e.$slots,"default")],6)}const ue=(e,n)=>{const l=e.__vccOpts||e;for(const[o,r]of n)l[o]=r;return l},Fn=ue(Pa,[["render",qa]]);function Rn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Mn(e){const n=t.unref(e),l=window.getComputedStyle(n,null),o=parseFloat(l.getPropertyValue("padding-left")),r=parseFloat(l.getPropertyValue("padding-right")),a=parseFloat(l.getPropertyValue("padding-top")),i=parseFloat(l.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-r,height:n.clientHeight-a-i}}const za=(e,n,l,o=!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:l},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(r,a){const i=ze(),s=i?Ht(i):null;s&&(s.headerMounted=!0);const c=e,u=t.computed(()=>({[c]:!0,[`${c}--border`]:r.border,[`${c}--fixed`]:r.fixed,[`${c}--safe-area-inset-top`]:r.safeAreaInsetTop})),d=t.computed(()=>({[`${c}__inner`]:!0,[`${c}__inner--${r.align}`]:!0})),h=r.height!==null&&r.height!==void 0?ce(r.height):null,p=t.computed(()=>{const v={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const k=Ae(r.padding??s.headerPadding);return Object.assign(v,k),h&&(s.headerHeight=h),s.headerHeight>0&&(v.height=s.headerHeight),v.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,v.safeAreaTop>0&&(v.top=v.safeAreaTop+(k.top??0),v.height&&v.height>0&&(v.height=v.height+v.safeAreaTop)),v}if(h&&(v.height=h),r.padding){const k=Ae(r.padding);Object.assign(v,k)}return v}),$=t.ref(null),m=()=>{if(s&&$.value&&!Lt($.value)){if(!o){const v=Rn($.value);s.headerAllHeight=v.height}return s.headerMounted=!0,!0}return!1};let g=null;t.onMounted(()=>{s&&(jt(m,50,5,50,!0),window.ResizeObserver&&$.value&&(g=new window.ResizeObserver(()=>{m()}),g.observe($.value)))}),t.onUnmounted(()=>{s&&(s.headerMounted=!1,g&&(g.disconnect(),g=null))});const S=t.computed(()=>{const v={};return p.value.height!==null&&p.value.height!==void 0&&(v.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(v.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(v.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(v.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(v.paddingBottom=`${p.value.bottom}px`),v}),y=t.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.value.height<=0));function b(){a.emit("back")}function f(){a.emit("click-title")}function F(){a.emit("click-right")}function I(){a.emit("click-right-text")}const q=()=>{if(!r.leftShow)return null;const v=[];if(a.slots.left)v.push(a.slots.left());else{if(a.slots.leftIcon){const k=t.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);v.push(k)}else if(r.leftIcon){const k=t.h("view",{class:"left-icon",onClick:b},[t.h(r.leftIcon)]);v.push(k)}if(r.leftText){const k=t.h("view",{class:"left-text",onClick:b},[r.leftText]);v.push(k)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__left"},v)},L=()=>{if(!r.rightShow)return null;const v=[];if(a.slots.right)v.push(a.slots.right());else{if(r.rightText){const k=t.h("view",{class:"right-text",onClick:I},[r.rightText]);v.push(k)}if(a.slots.rightIcon){const k=t.h("view",{class:"right-icon",onClick:F},[a.slots.rightIcon()]);v.push(k)}else if(r.rightIcon){const k=t.h("view",{class:"right-icon",onClick:F},[t.h(r.rightIcon)]);v.push(k)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__right"},v)},B=()=>{if(!r.titleShow)return null;const v=[],k=a.slots.default?a.slots.default():null;if(k)v.push(k);else{if(r.title){const A=t.h("view",{class:"title-text"},[r.title]);v.push(A)}if(a.slots.titleIcon){const A=t.h("view",{class:"title-icon",onClick:f},[a.slots.titleIcon()]);v.push(A)}else if(r.titleIcon){const A=t.h("view",{class:"title-icon",onClick:f},[t.h(r.titleIcon)]);v.push(A)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__title"},v)},N=()=>{const v=[],k=a.slots.bottom?a.slots.bottom():null;return k&&v.push(k),v.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},v)};return()=>{if(!y.value)return null;const v=[];if(a.slots.all)v.push(a.slots.all());else{const A=[],C=q();C&&A.push(C);const D=B();D&&A.push(D);const E=L();if(E&&A.push(E),A.length>0){const V=t.h("view",{class:d.value},A);v.push(V)}const M=N();M&&v.push(M)}if(v.length===0)return null;const k={class:u.value,style:S.value,ref:$};return t.h("view",k,v)}}}),{componentName:ja,create:_a,scope:Ha}=le("header-bar"),Ln=_a(za(ja,Ha,ye.ArrowLeft));function Ka(e,n,l=!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(o,r){const a=ze(),i=a?Ht(a):null,s=t.computed(()=>{const m=e;return{[m]:!0,[`${m}--${o.align}`]:!0,[`${m}--border`]:o.border,[`${m}--fixed`]:o.fixed,[`${m}--safe-area-inset-bottom`]:o.safeAreaInsetBottom}}),c=o.height!==null&&o.height!==void 0?ce(o.height):null,u=t.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const g=Ae(o.padding??i.footerPadding);return Object.assign(m,g),c&&(i.footerHeight=c),i.footerHeight>0&&(m.height=i.footerHeight),m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(g.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(c&&(m.height=c),o.padding){const g=Ae(o.padding);Object.assign(m,g)}return m}),d=t.ref(null),h=()=>{if(i&&d.value&&!Lt(d.value)){if(!l){const m=Rn(d.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let p=null;t.onMounted(()=>{i&&(jt(h,50,5,50,!0),window.ResizeObserver&&(p=new window.ResizeObserver(()=>{h()}),p.observe(d.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,p&&(p.disconnect(),p=null))});const $=t.computed(()=>{const m={};return u.value.height!==null&&u.value.height!==void 0&&(m.height=Ce(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(m.paddingTop=Ce(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(m.paddingLeft=Ce(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(m.paddingRight=Ce(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(m.paddingBottom=Ce(u.value.bottom)),m});return()=>{const m=r.slots.default?r.slots.default():[],g={ref:d,class:s.value,style:$.value};return t.h("view",g,m)}}}}const{componentName:Wa,create:Ya,scope:em}=le("footer-bar"),Pn=Ya(Ka(Wa));function Ua(e,n){return{props:{padding:{type:[Object],required:!1}},setup(l){const o=ze(),r=t.computed(()=>({[e]:!0})),a=o?Ht(o):null,i=t.computed(()=>{const u={};if(o&&a){if(l.padding){const $=Ae(l.padding);Object.assign(a.contentPadding,$)}const d=St(o,a),h=vt(o,a);let p="";if(a.contentHeight?p=`${a.contentHeight}`:p=`${a.height}px`,a.contentPadding,u.height=p,a.contentPadding.top||d>0){const $=(a&&a.contentPadding&&a.contentPadding.top)??0;u.paddingTop=`${d+$}px`}if(a.contentPadding.bottom||h>0){const $=(a&&a.contentPadding&&a.contentPadding.bottom)??0;u.paddingBottom=`${h+$}px`}return a.contentPadding.left&&(u.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(u.paddingRight=`${a.contentPadding.right}px`),u}if(l.padding){const d=Ae(l.padding);d.left&&(u.paddingLeft=`${d.left}px`),d.top&&(u.paddingTop=`${d.top}px`),d.right&&(u.paddingRight=`${d.right}px`),d.bottom&&(u.paddingBottom=`${d.bottom}px`)}return u}),s=t.ref(null),c=()=>{if(a&&s.value){const u=Mn(s.value);a.contentInnerHeight=u.height,a.contentInnerWidth=u.width}};return t.onMounted(()=>{c()}),o&&a&&t.watch([()=>St(o),()=>vt(o)],([])=>{c()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:Ga,create:Xa,scope:tm}=le("content"),Za=Xa(Ua(Ga));function Ja(e,n,l,o,r,a){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 qn=ue(Za,[["render",Ja]]),rt="GroupStateKey",$l=Symbol.for("GroupScopeKey");function Ut(){return t.inject($l,!1)}function Gt(e=!0){t.provide($l,e)}function Qa(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const r=n[o];En(r)||(e[o]=r)})}function ei(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Qa(o,n);const r=t.shallowRef(o),a=t.markRaw({layout:r,passport:0,order:{index:0}});return e.set(rt,a),a}function zn(e,n,l=-1,o=-1,r=!1,a,i,s){const c=e.get(rt);if(!c)return;const u=e.get("groupLayout")??{};l===-1&&(l=u.column??1),o===-1&&(o=u.gutter??0),a||(a=u.minItemWidth??-1),i||(i=u.maxItemWidth??-1);const d=ce(a),h=ce(i);s||(s=u.type??"grid");const p=()=>{const $=n===""||n===-1,m=ce(n);let g=se(l);const S=ce(o);if(!$){let f=(m-(g-1)*S)/g;for(;h!==-1&&f>h;)g++,f=(m-(g-1)*S)/g;for(;d!==-1&&g>1&&f<d;)g--,f=(m-(g-1)*S)/g}let y=!1;const b=c.layout;b.value.width=n,b.value.column!==g&&(b.value.column=g,y=!0),b.value.gutter!==S&&(b.value.gutter=S,y=!0),b.value.type!==s&&(b.value.type=s,y=!0),y&&t.triggerRef(b)};if(r)p();else{const $=++c.passport;setTimeout(()=>{$===c.passport&&p()},50)}}function Xt(e,n=!1){let l;return n?l=e.getForParent(rt):l=e.get(rt),l.layout}function Zt(e,n=!1){let l;return n?l=e.getForParent(rt):l=e.get(rt),l.order}function Dl(e,n=1){if(n==="stretch")return-1;const l=se(n);return l===-1?100:100*l/e}function Jt(e,n,l=1,o=0,r){const a={};let i=0;r?i=ce(r):i=Dl(n.column,l),i>0&&(a.width=`${i}%`);const s=Dl(n.column,o);s>0&&(a["margin-left"]=`${s}%`);const c=n.gutter/2;return c>0&&(a["padding-left"]=`${c}px`,a["padding-right"]=`${c}px`),a}function Qt(e,n,l=1,o=0){if(l==="stretch"){const c=e.index%n.column,u=c+(n.column-c);return e.index=e.index+(u-c),{"grid-column":`${c+1} / -1`}}let r=se(l);if(r===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const a=se(o)%n.column;let i=(e.index+a)%n.column,s=i+r;return s>n.column?(i=0,s=i+r,e.index=e.index+(n.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const xl=Symbol("RollingStateKey");function ti(e){t.provide(xl,e)}function ni(){return t.inject(xl,null)}function jn(e){let n=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(l.getPropertyValue("padding-top")),a=parseFloat(l.getPropertyValue("padding-bottom"));n=e.clientHeight-r-a}else n=e.offsetHeight;return n}function oi(e){let n=jn(e);if(n<=0){const l=e.cloneNode(!0),o=e.offsetWidth;l.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),n=jn(l),document.body.removeChild(l)}return n}function li(e,n,l){if(e<=0)return"1fr";const o=(e-(n-1)*l)/n;return o>0?`${o}px`:"1fr"}const ri={...ge,...Cl,...Tl};function ai(e,n,l){return{props:ri,emits:["update:collapse"],setup(o,r){const a=In(o.name,o,kl),i=ei(a,{type:o.type}),s=Ut();Gt(!0);const c=o.rollingDisplay?ni():null,u=t.ref(null),d=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),h=t.computed(()=>s&&a?Xt(a,!0).value:null),p=t.getCurrentInstance(),$=(z,Y=!1)=>{const Z=p?.proxy;Z&&typeof Z.setNameValidateRules=="function"&&Z.setNameValidateRules(z,!0,Y)};t.watch([()=>o.rules,()=>o.pureDataRules],([z,Y],[Z,W])=>{if(z&&Z){const O=t.toRaw(Z),U=t.toRaw(z),ee=U?Reflect.ownKeys(U):[];(O?Reflect.ownKeys(O):[]).forEach(de=>{ee.includes(de)||(U[de]=[])}),$(U)}if(Y&&W){const O=t.toRaw(W),U=t.toRaw(Y),ee=U?Reflect.ownKeys(U):[];(O?Reflect.ownKeys(O):[]).forEach(de=>{ee.includes(de)||(U[de]=[])}),$(U,!0)}},{deep:!0});const m=e,g=t.computed(()=>{const z={};z.height=E.value;const Y=s?Zt(a,!0):null;if(h.value&&Y){if(h.value.type==="grid"){const Z=Qt(Y,h.value,o.span,o.offset);Object.assign(z,Z)}else if(h.value.type==="flow"){const Z=Jt(Y,h.value,o.span,o.offset,o.width);Object.assign(z,Z)}}else if(o.width){const Z=Ce(o.width);z.width=Z}return z}),S=t.computed(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${m}--${z}`]:!0,[`${m}--${z}-justify-${o.justify}`]:!0,[`${m}--${z}-align-${o.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${z}`]:!0,[`${m}--gutter`]:!0}}),y=t.computed(()=>{if(i.layout.value.type==="grid"){let Y="";if(o.columnWidth)Y=`repeat(auto-fill, ${o.columnWidth})`;else{const Z=li(B.value,i.layout.value.column,i.layout.value.gutter);Y=`repeat(${i.layout.value.column}, ${Z})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Y}}}),b=t.toRef(o,"gutter"),f=t.toRef(o,"column"),F=t.computed(()=>s||d.value?!0:re(o.isWrap)),I=[],q=z=>{I.push(z)},L=()=>{let z=I.length;I.splice(0,z)},B=t.ref(-1),N=z=>{const Y=Mn(z).width;Y>0&&Y!==B.value&&(B.value=Y)};zn(a,B.value,f.value,b.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([B,f,b],([z,Y,Z])=>{i.order.index=0,zn(a,z,Y,Z,!1,o.minItemWidth,o.maxItemWidth,o.type)});const v=t.computed(()=>M.value?o.expandText??"":o.collapseText??""),k=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),A=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),C=t.ref(),D=t.ref(),E=t.computed(()=>V.value||Ce(o.height)||""),M=t.ref(!1),V=t.ref(""),H=t.ref(!1);let R=-1;const j=(z,Y=!0)=>{const Z=C.value;if(Z&&M.value!==z){if(R=R===-1?oi(Z):R,H.value=!0,Y)if(Z.style["will-change"]="height",Z.ontransitionend=function(){Z.ontransitionend=null,this.style["will-change"]="auto",z||(V.value="",H.value=!1)},z){let W=0;o.collapseHeight?W=o.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(W=D.value.offsetHeight),V.value=`${R}px`,t.nextTick(()=>{V.value=`${W}px`})}else V.value=`${R}px`;else if(z){let W=0;o.collapseHeight?W=o.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(W=D.value.offsetHeight),V.value=`${W}px`}else H.value=!1,V.value=`${R}px`;M.value=z,r.emit("update:collapse",z)}};t.watch(()=>o.collapse,z=>{j(z)});const G=()=>{K()},K=z=>{z=z??!M.value,j(z)};me({toggleCollapse:K,doLayout:()=>{I[0]&&(N(I[0]),zn(a,B.value,f.value,b.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let J=null,te=!0;const P=z=>{if(o.rules){const Y=t.toRaw(o.rules);$(Y)}if(o.pureDataRules){const Y=t.toRaw(o.pureDataRules);$(Y,!0)}if(Ze&&(z&&j(re(o.collapse),!1),o.autoLayout&&Array.isArray(I)&&I.length>0)){const Y=I[0];N(Y),window.ResizeObserver&&(J=new window.ResizeObserver(()=>{N(Y)}),J.observe(Y))}},Q=()=>{J?.disconnect(),J=null},ne=!d.value||c?.acquire();ne&&(u.value=d.value?!0:null),t.onMounted(()=>{if(ne&&(P(te),te=!1),d.value&&c){let z=null,Y=c.initialHeight;c.observe(C.value,Z=>{if(Z!==u.value)if(Z)u.value=!0,M.value||(V.value=""),z=setTimeout(()=>{z=null,u.value!==!1&&(P(te),te=!1)},100);else{if(z!==null&&clearTimeout(z),u.value=!1,!M.value)if(te)V.value=c.initialHeight;else{let W=jn(C.value);W<=0?V.value=Y:(V.value=`${W}px`,Y=V.value)}te||Q()}})}}),t.onUnmounted(()=>{J?.disconnect(),c&&c.unobserve(C.value)});const x=(z="right")=>{const Y=[];if(v.value){const O={class:k.value},U=t.h("span",O,[v.value]);Y.push(U)}const Z={class:A.value},W=l(o.collapseIcon,Z);return W&&Y.push(W),Y.length>0?t.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:G},Y):null},_=(z,Y,Z,W)=>{const O={...S.value};return Y===0&&(O[`${m}__first`]=!0),Z>=W-1&&(O[`${m}__last`]=!0),t.h("div",{ref:q,key:`${Y}`,class:O,style:y.value},z)};return()=>{if(d.value&&u.value!==!0){const O=o.tag||"div";return t.h(O,{ref:C,prop:o.name,class:{[`${m}`]:!0,"is-collapse":H.value},style:g.value},[])}i.order.index=0;const z=[];let Y=0;if(r.slots.header){const O={key:`${Y++}`,ref:D,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},U=t.h("div",O,[r.slots.header()]);z.push(U)}else{const O=[],U=o.collapsePosition==="left";if(U&&o.showCollapse){const ee=x("left");ee&&O.push(ee)}if(o.title||r.slots.title){if(o.showMark){const ee={class:{[`${m}__header-mark`]:!0}};o.markColor&&(ee.style={background:o.markColor});const fe=t.h("div",ee);O.push(fe)}if(r.slots.title){const ee=t.h("div",{class:{[`${m}__header-title`]:!0}},[r.slots.title()]);O.push(ee)}else if(o.title){const ee=t.h("div",{class:{[`${m}__header-title`]:!0}},[o.title]);O.push(ee)}}if(r.slots.toolbar&&O.push(r.slots.toolbar()),!U&&o.showCollapse){const ee=x("right");ee&&O.push(ee)}if(O.length>0){const ee={key:`${Y++}`,ref:D,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},fe=t.h("div",ee,O);z.push(fe)}}L();const Z=r.slots.default?r.slots.default():[],W=i.layout.value.type;if(W==="grid"){const O=_(Z,Y++,0,Z.length);z.push(O)}else if(W==="flow"){const O=_(Z,Y++,0,Z.length);z.push(O)}else for(let O=0;O<Z.length;O++){const U=Z[O],ee=_([U],Y++,O,Z.length);z.push(ee)}if(F.value){const O=o.tag||"div";return t.h(O,{ref:C,prop:o.name,class:{[`${m}`]:!0,"is-collapse":H.value},style:g.value},[z])}else return z}}}}const{componentName:ii,create:si,scope:ci}=le("group"),_n=si(ai(ii,ci,(e,n)=>(e=e??ye.ArrowUp,t.h(T.ElIcon,n,{default:()=>[t.h(e)]}))));function ui(e){return e===window}const fi=/matrix\((.+)\)/,El=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(ui(n))return{x:0,y:0};let l=0,o=0,r=n;for(;r!==null;)l+=r.offsetLeft,o+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,c=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:u}=window.getComputedStyle(r);if(u){const d=fi.exec(u);if(d){let p=d[1].split(/\s*,\s*/);p.length==6&&(s+=Number(p[4]),c+=Number(p[5]))}}r=r.parentNode}return l-=a,o-=i,l+=s,o+=c,{x:l,y:o}};class di{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const l=this.watchedListeners.indexOf(n);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class hi{monitorRegister=new WeakMap;watch(n,l){let o=n.parentNode;const r=document.body.parentNode;for(;o&&o!==r;){let a=this.monitorRegister.get(o);a||(a=new di,o.addEventListener("scroll",a.listen),o===document.body&&o.addEventListener("resize",a.listen),this.monitorRegister.set(o,a)),a.add(l),o=o.parentNode}}unwatch(n,l){let o=n.parentNode;const r=document.body.parentNode;for(;o&&o!==r;){let a=this.monitorRegister.get(o);a&&(a.remove(l),a.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",a.listen),o===document.body&&o.removeEventListener("resize",a.listen))),o=o.parentNode}}}const Nl=new hi,Vl={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:mi,create:gi}=le("price"),pi=gi({props:{...Vl},setup(e){const n=t.computed(()=>({[mi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>Oe(e.price)==0?"":Rt(e.price,e.decimalLength,!0,se(e.digits),e.separator)),r=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:l,intText:r,decimalText:a}}}),yi=["innerHTML"],bi=["innerHTML"];function wi(e,n,l,o,r,a){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,yi)):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,bi)):t.createCommentVNode("",!0)],2)}const en=ue(pi,[["render",wi]]),{componentName:Hn,create:Si}=le("hint-text"),vi=Si({components:{Price:en},props:{...Vl,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 l=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),r=t.ref(0),a=t.ref(0),i=t.ref(e.placement),s=t.ref(!1),c=t.ref(null),u=(k,A,C,D,E,M)=>{const V=document.documentElement.clientWidth||document.body.clientWidth,H=document.documentElement.clientHeight||document.body.clientHeight,R=k.split("-");let j=[];R[0]==="top"?j=["top","bottom","right","left"]:R[0]==="bottom"?j=["bottom","top","right","left"]:R[0]==="left"?j=["left","top","bottom","right"]:R[0]==="right"&&(j=["right","top","bottom","left"]);const G={top:null,right:null,bottom:null,left:null},K=[];for(let X=0;X<j.length;X++){const J=j[X];if(K[0]=J,R[1]&&(K[1]=R[1]),J==="top"){const te=A.y-M-e.arrowSize-e.offset;if(te>=0){G.top=te;let P=0;R[1]==="start"?P=A.x:R[1]==="end"?P=A.x+C-E:P=A.x+C/2-E/2;const Q=V-P-E;Q<0?(P+=Q,h.value=-Q):h.value=0,G.left=P<0?0:P;break}}else if(J==="bottom"){const te=A.y+D+e.arrowSize+e.offset;if(te+M<=H){G.top=te;let P=0;R[1]==="start"?P=A.x:R[1]==="end"?P=A.x+C-E:P=A.x+C/2-E/2;const Q=V-P-E;Q<0?(P+=Q,h.value=-Q):h.value=0,G.left=P<0?0:P;break}}else if(J==="left"){const te=A.x-E-e.arrowSize-e.offset;if(te>=0){G.left=te;let P=0;R[1]==="start"?P=A.y:R[1]==="end"?P=A.y+D-M:P=A.y+D/2-M/2,G.top=P<0?0:P;break}}else if(J==="right"){const te=A.x+C+e.arrowSize+e.offset;if(te+E<=V){G.left=te;let P=0;R[1]==="start"?P=A.y:R[1]==="end"?P=A.y+D-M:P=A.y+D/2-M/2,G.top=P<0?0:P;break}}}return{bestPlacement:K.join("-"),bestInsetRect:G}},d=(k,A,C=10)=>{if(!Ze||A===!1||!k)return;o.value=El(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const D=c.value.offsetHeight,E=c.value.offsetWidth,{bestPlacement:M,bestInsetRect:V}=u(e.placement,o.value,r.value,a.value,E,D);i.value=M,l.value=V,s.value=!0},h=t.ref(0),p=wt(()=>{d(e.message,e.visible)},10),$=t.ref(e.visible);t.watch(()=>e.visible,k=>{$.value=k});const m=t.computed(()=>$.value&&g.value),g=t.ref(!0),S=wt(k=>{const A=k[0];A&&(g.value=A.isIntersecting)},10),y=new IntersectionObserver(S);t.watch([()=>e.message,()=>e.visible],([k,A])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Nl.watch(e.reference,p),y.observe(e.reference)}),t.onBeforeMount(()=>{Nl.unwatch(e.reference,p),y.unobserve(e.reference),y.disconnect()});const b=t.computed(()=>{const k={[Hn]:!0};return i.value.startsWith("top")?k["is-top"]=!0:i.value.startsWith("right")?k["is-right"]=!0:i.value.startsWith("bottom")?k["is-bottom"]=!0:i.value.startsWith("right")&&(k["is-right"]=!0),e.size==="small"?k["is-small"]=!0:e.size==="large"&&(k["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(k[`${e.customClass}`]=!0),k}),f=t.computed(()=>{const k={};l.value.top!==null&&(k.top=`${l.value.top}px`),l.value.right!==null&&(k.right=`${l.value.right}px`),l.value.bottom!==null&&(k.bottom=`${l.value.bottom}px`),l.value.left!==null&&(k.left=`${l.value.left}px`),e.autoFit&&(k["min-width"]=`${r.value}px`);const A=document.documentElement.clientWidth||document.body.clientWidth;return k["max-width"]=`${A}px`,s.value&&(k.opacity="1"),e.transition||(k.transition="none"),e.zIndex&&(k["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(k,e.customStyle),k}),F=t.computed(()=>{const k=[`${Hn}__content`];return e.customTextClass&&k.push(e.customTextClass),k}),I=t.computed(()=>{const k={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(k,e.customTextStyle),k}),q=t.computed(()=>({[`${Hn}__arrow`]:!0})),L=t.computed(()=>{const k={};return e.showArrow?(k.width=`${e.arrowSize}px`,k.height=`${e.arrowSize}px`,i.value==="top"?(k.left="50%",k.bottom=`-${e.arrowSize}px`,k.transform=" translate(-50%, 0%)"):i.value==="top-start"?(k.left=`${e.arrowOffset+h.value}px`,k.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(k.right=`${e.arrowOffset-h.value}px`,k.bottom=`-${e.arrowSize}px`):i.value==="right"?(k.left=`-${e.arrowSize}px`,k.top="50%",k.transform=" translate(0%, -50%)"):i.value==="right-start"?(k.left=`-${e.arrowSize}px`,k.top=`${e.arrowOffset}px`):i.value==="right-end"?(k.left=`-${e.arrowSize}px`,k.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(k.left="50%",k.top=`-${e.arrowSize}px`,k.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(k.left=`${e.arrowOffset+h.value}px`,k.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(k.right=`${e.arrowOffset-h.value}px`,k.top=`-${e.arrowSize}px`):i.value==="left"?(k.right=`-${e.arrowSize}px`,k.top="50%",k.transform=" translate(0%, -50%)"):i.value==="left-start"?(k.right=`-${e.arrowSize}px`,k.top=`${e.arrowOffset}px`):i.value==="left-end"&&(k.right=`-${e.arrowSize}px`,k.bottom=`-${e.arrowOffset}px`),k):{display:"none"}}),B=t.computed(()=>m.value&&e.closeOnClick),N=t.computed(()=>{const k={};return e.zIndex&&(k["z-index"]=`${e.zIndex}`),k});return{show:m,tipRef:c,classes:b,styles:f,textClasses:F,textStyles:I,arrowClasses:q,arrowStyles:L,overlayShow:B,overlayStyle:N,onClickOverlay:()=>{$.value=!1,n.emit("update:visible",!1)}}}});function Ci(e,n,l,o,r,a){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(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.message),1)],64))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Ct=ue(vi,[["render",Ci]]);class Il{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 Kn={},Ti=new Il,at=new Map,tn=e=>{if(e){const n=document.getElementById(e);at.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of at.keys()){const l=document.getElementById(n);l&&l.parentNode?.removeChild(l)}at.clear()}},ki=e=>{e.unmount=tn;const n=document.getElementById(e.id);if(n){const l=at.get(e.id);l?e={...Kn,...l,...e}:e={...Kn,...e},e.transition=!1;const o=t.createVNode(Ct,e);return t.render(o,n),e.id}},$i=e=>{e.unmount=tn;let n=e.id??`hinttext_${Ti.get()}`;e={...Kn,...e},e.id=n,at.set(n,e);const l=document.createElement("div");l.id=e.id;const o=t.createVNode(Ct,e);return t.render(o,l),document.body.appendChild(l),n},Di=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},xe={show(e,n,l={},o=!0){Di(n);const r=l.id;return r&&at.has(r)?ki({...l,message:n,reference:e}):(o&&tn(),$i({...l,message:n,reference:e}))},hide(e){tn(e)},install(e){e.config.globalProperties.$hintText=xe}},{componentName:Ol,create:xi}=le("item"),Ei=xi({inheritAttrs:!0,props:{...ge,...Te},emits:["appear","disappear"],setup(e,n){const l=e.prop??n.attrs.name;Se({componentName:Ol,validate:!1},l);const o=ze(),r=Ut();Gt(!1);const a=t.computed(()=>r&&o?Xt(o,!1).value:null),i=Ol,s=t.ref(null),c=t.computed(()=>{const x={[i]:!0,[`${i}__gutter`]:a.value&&a.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:re(e.hasBorder)};if(x[e.errorMarkClass]=!!A.value,x[e.warnMarkClass]=!!v.value,x[e.infoMarkClass]=!!B.value,typeof s.value=="function"){const _=s.value(l);x[_]=!0}else if(typeof s.value=="string"){const _=s.value;x[_]=!0}return x}),u=t.ref(null),d=t.computed(()=>{const x={},_=r&&o?Zt(o,!1):null;if(a.value&&_)if(a.value.type==="grid"){const z=Qt(_,a.value,e.span,e.offset);Object.assign(x,z)}else if(a.value.type==="flow"){const z=Jt(_,a.value,e.span,e.offset,e.width);Object.assign(x,z)}else return e.width&&(x.width=Ce(e.width)),x;else e.width&&(x.width=Ce(e.width));if(typeof u.value=="function"){const z=u.value(l);z&&Object.assign(x,z)}else if(u.value&&typeof u.value=="object"){const z=u.value;Object.assign(x,z)}return x}),h=t.ref(null),p=t.computed({get:()=>h.value??re(e.isRequired),set:x=>{h.value=x}}),$=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),m=Ve(t.toRef(e,"labelPosition"),"labelPosition",Ye.Near),g=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),S=t.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${g.value}`]:!0})),y=t.computed(()=>({label:!0,[`label--${g.value}`]:!0})),b=Ve(t.toRef(e,"labelWidth"),"labelWidth",Ye.Near),f=t.computed(()=>b&&b.value?{width:Ce(b.value)}:{}),F=t.computed(()=>({"label--string":!0,"label--required":p.value})),I=t.computed(()=>({content:!0,[e.contentClass]:!0})),q=t.computed(()=>({...e.contentStyle})),L=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});me({setRequired(x){p.value=x},setErrorTip(x){L.errorTip=x},setErrorIcon(x){L.errorIcon=x},setWarnTip(x){L.warnTip=x},setWarnIcon(x){L.warnIcon=x},setInfoTip(x){L.infoTip=x},setInfoIcon(x){L.infoIcon=x},setCustomClassName(x){s.value=x},setCustomStyle(x){u.value=x}});const B=t.computed(()=>e.infoTip||L.infoTip),N=t.computed(()=>e.infoIcon||L.infoIcon),v=t.computed(()=>e.warnTip||L.warnTip),k=t.computed(()=>e.warnIcon||L.warnIcon),A=t.computed(()=>e.errorTip||L.errorTip),C=t.computed(()=>e.errorIcon||L.errorIcon),D=t.computed(()=>A.value?"error":v.value?"warn":B.value?"info":""),E=t.computed(()=>D.value.length>0),M=t.computed(()=>D.value==="error"?A.value:D.value==="warn"?v.value:D.value==="info"?B.value:""),V=t.computed(()=>D.value==="error"?C.value:D.value==="warn"?k.value:D.value==="info"?N.value:null),H=t.computed(()=>{let x={[`${i}__tip`]:!0,[`${i}__tip--${D.value}`]:!0};return D.value==="error"&&e.errorClass?x[`${e.errorClass}`]=!0:D.value==="warn"&&e.warnClass?x[`${e.warnClass}`]=!0:D.value==="info"&&e.infoClass&&(x[`${e.infoClass}`]=!0),x}),R=t.computed(()=>{let x={};return m&&m.value==="top"||!$.value?x["padding-left"]="0px":b&&b.value&&(x["padding-left"]=Ce(b.value)),x}),j=()=>{const x=V.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},G=()=>{const x=M.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},K=t.computed(()=>n.slots.fixedTip),X=t.computed(()=>({[`${i}__fixed-tip`]:!0})),J=t.ref();let te="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([x,_,z,Y])=>{J.value&&(x&&!be(_)?te?xe.show(J.value,_,{...Y,id:te,type:z},!0):te=xe.show(J.value,_,{...Y,type:z},!0):xe.hide(te))});let P=null;const Q=()=>{P||!J.value||(P=new IntersectionObserver(x=>{let _=!1;for(let z of x)if(z.intersectionRatio>0){_=!0,_&&n.emit("appear",z);break}_||n.emit("disappear")}),P.observe(J.value))},ne=()=>{!P||!J.value||(P.unobserve(J.value),P=null)};return t.watch(()=>re(e.appearListen),x=>{x?Q():ne()}),t.onMounted(()=>{re(e.appearListen)&&Q()}),t.onUnmounted(ne),{classes:c,styles:d,mainClasses:S,hasLabel:$,labelClasses:y,labelStyles:f,labelStringClasses:F,contentClasses:I,contentStyles:q,contentRef:J,hasTip:E,mTip:M,mIcon:V,renderIcon:j,renderTip:G,tipClasses:H,tipStyles:R,hasFixedTip:K,fixedTipClasses:X}}}),Ni=["prop"];function Vi(e,n,l,o,r,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon()),{key:0})):t.createCommentVNode("",!0),e.mTip?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderTip()),{key:1})):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,Ni)}const pe=ue(Ei,[["render",Vi]]);function Ii(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(l,o){const r=ze(),a=Ut();Gt(!1);const i=t.computed(()=>a&&r?Xt(r,!1).value:null),s=e,c=t.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:l.span==="stretch"})),u=t.computed(()=>{const d={},h=a&&r?Zt(r,!1):null;if(i.value&&h)if(i.value.type==="grid"){const p=Qt(h,i.value,l.span,l.offset);Object.assign(d,p)}else if(i.value.type==="flow"){const p=Jt(h,i.value,l.span,l.offset,l.width);Object.assign(d,p)}else return l.width&&(d.width=Ce(l.width)),d;else l.width&&(d.width=Ce(l.width));return d});return()=>{const d={class:c.value,style:u.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",d,o.slots.default()):t.h("div",d)}}}}const{componentName:Oi,create:Bi,scope:om}=le("slot-item"),Wn=Bi(Ii(Oi));function Ai(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(l,o){const r=e,a=t.computed(()=>({[r]:!0,[`${r}__stretch`]:l.span==="stretch",[`${r}__${l.align}`]:!0})),i=ze(),s=Ut();Gt(!1);const c=t.computed(()=>{const u={};if(s&&i){const d=Xt(i,!1),h=Zt(i,!1);if(d.value&&h)if(d.value.type==="grid"){const p=Qt(h,d.value,l.span,l.offset);Object.assign(u,p)}else if(d.value.type==="flow"){const p=Jt(h,d.value,l.span,l.offset,l.width);Object.assign(u,p)}else l.width&&(u.width=Ce(l.width))}else l.width&&(u.width=Ce(l.width));return u});return()=>{const u=[];if(o.slots.default){const h=o.slots.default();if(l.divide)for(let p=0;p<h.length;p++){if(p>0){const $=t.h("div",{class:{[`${r}__divide`]:!0}});u.push($)}u.push(h[p])}else Reflect.apply([].push,u,h)}const d={class:a.value,style:c.value};return t.h("div",d,u)}}}}const{componentName:Fi,create:Ri,scope:lm}=le("row-item"),Yn=Ri(Ai(Fi)),je=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(o=>{typeof o=="string"&&o.indexOf("data-fox")!==0&&(n[o]=e[o])}),n},Bl={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 Mi(e,n,l){return{props:{...ge,...Te,...Bl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),u=c(o,["placeholder"]),d=t.ref(!1),h=ie(o,"modelValue"),p=e,$=t.computed(()=>({[p]:!0,[`${p}__disabled`]:a.value,[`${p}__readonly`]:i.value})),m=C=>{h.value=C,s("update:modelValue",C),s("input",C)},g=C=>{s("change",C)};let S=ie(o,"hintText"),y=t.ref(!1);const b=C=>{let E=C.target.value;d.value=!0,be(S.value)||(y.value=!0),s("focus",E,C)},f=C=>{setTimeout(()=>{y.value&&(y.value=!1),d.value=!1},0);let E=C.target.value;o.maxLength&&E.length>Number(o.maxLength)&&(E=E.slice(0,Number(o.maxLength))),s("blur",E,C)},F=()=>{s("clear","")},I=t.ref(!1);let q=null;const L=()=>{o.showTooltip&&I.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{I.value=!0},150))},B=()=>{q&&(clearTimeout(q),I.value=!1,q=null)},N=t.computed(()=>I.value||y.value),v=t.computed(()=>I.value?h.value:S.value),k=t.computed(()=>Oe(o.unit)>0),A=t.ref();return me({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const D={...je(r.attrs),ref:A,class:$.value,placeholder:u.placeholder.value,clearable:o.clearable,disabled:a.value,readonly:i.value,modelValue:h.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:F,onChange:g,onInput:m,onFocus:b,onBlur:f,onMouseover:L,onMouseleave:B},E={};r.slots.prepend&&(E.prepend=r.slots.prepend),r.slots.append&&(E.append=r.slots.append),r.slots.prefix&&(E.prefix=r.slots.prefix),r.slots.suffix?E.suffix=r.slots.suffix:k.value&&(E.suffix=()=>[o.unit]);const M=[],V=t.h(T.ElInput,D,E);M.push(V);const H={default:()=>M};r.slots.default&&(H.label=r.slots.default),r.slots.default&&(H.fixedTip=r.slots.fixedTip);const j={...ve(o,Bl),hintText:v.value,hintVisible:N.value,prop:`${o.prop}_item`};return t.h(l,j,H)}}}}const{componentName:Li,create:Pi,scope:qi}=le("input-item"),Un=Pi(Mi(Li,qi,pe)),Gn={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String]},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:{}}},Al=2500;let Xn=Al;const zi=(e,n)=>({components:n,props:{...Gn},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:o}){const r=t.reactive({zIndex:l.zIndex??Xn,showSlot:!0,closed:l.closeable}),a=t.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),i=t.computed(()=>({zIndex:r.zIndex,transitionDuration:`${l.duration}s`,...l.style})),s=t.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),c=()=>{l.zIndex&&l.zIndex!==Al&&(Xn=Number(l.zIndex)),o("update:visible",!0),r.zIndex=++Xn,l.destroyOnClose&&(r.showSlot=!0),o("open")},u=()=>{o("update:visible",!1),o("close"),l.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+l.duration*1e3)},d=g=>{o("click-pop",g)},h=g=>{g.stopPropagation(),o("click-close-icon",g),o("update:visible",!1)},p=g=>{o("click-overlay",g),l.closeOnClickOverlay&&o("update:visible",!1)},$=g=>{o("opend",g)},m=g=>{o("closed",g)};return t.watch(()=>l.visible,g=>{l.visible?c():u()}),t.watchEffect(()=>{r.closed=l.closeable}),{...t.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:d,onClickCloseIcon:h,onClickOverlay:p,onOpened:$,onClosed:m}}}),Fl={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}},Zn={...Gn,...Fl,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 ji(e){return e===window}const Qe=e=>{const n=t.unref(e);if(ji(n)){const l=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:l,bottom:o,width:l,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};let Tt=0;const Rl="fox-overflow-hidden",Ml=()=>Ze?document.body:{classList:[]},_i=e=>[()=>{if(e())try{!Tt&&Ml().classList.add(Rl),Tt++}catch{}},()=>{if(e()&&Tt)try{Tt--,!Tt&&Ml().classList.remove(Rl)}catch{}}],Hi={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:Ki,create:Wi}=le("overlay"),Yi=Wi({props:{...Hi},emits:["click","update:visible"],setup(e,{emit:n}){const[l,o]=_i(()=>e.lockScroll),r=t.computed(()=>({[Ki]:!0,[e.overlayClass]:!0})),a=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watchEffect(()=>{e.visible?l():o()}),{classes:r,style:a,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ui(e,n,l,o,r,a){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 kt=ue(Yi,[["render",Ui]]),Gi=["aria-labelledby"],Xi=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),Zi=[Xi],Ji=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 l=e,o=n,r=c=>{o("click",c)},a=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const c={};return c.height=a(l.height)??a(l.size),c.width=a(l.width)??a(l.size),c.color=l.color,c});return(c,u)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Zi,14,Gi))}}),Qi=["aria-labelledby"],es=t.createElementVNode("path",{d:"M2185.74 479.429a117.992 117.992 0 1 0-162.829-170.852c-284.772 271.204-732.314 271.204-1017.087 0A118.05 118.05 0 0 0 842.996 479.43c375.98 358.045 966.705 358.045 1342.744 0",fill:"currentColor","fill-opacity":"0.9"},null,-1),ts=[es],ns=t.defineComponent({__name:"JoySmile",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 l=e,o=n,r=c=>{o("click",c)},a=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const c={};return c.height=a(l.height)??a(l.size),c.width=a(l.width)??a(l.size),c.color=l.color,c});return(c,u)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 3072 1024","aria-labelledby":e.name,role:"presentation"},ts,14,Qi))}}),os=["aria-labelledby"],ls=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),rs=[ls],as=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 l=e,o=n,r=c=>{o("click",c)},a=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const c={};return c.height=a(l.height)??a(l.size),c.width=a(l.width)??a(l.size),c.color=l.color,c});return(c,u)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},rs,14,os))}}),is=["aria-labelledby"],ss=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),cs=[ss],us=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 l=e,o=n,r=c=>{o("click",c)},a=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const c={};return c.height=a(l.height)??a(l.size),c.width=a(l.width)??a(l.size),c.color=l.color,c});return(c,u)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},cs,14,is))}}),{componentName:fs,create:ds}=le("popup"),hs=ds(zi(fs,{[kt.name]:kt,Close:as}));function ms(e,n,l,o,r,a){const i=t.resolveComponent("fox-overlay"),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]=(...c)=>e.onClick&&e.onClick(...c))},[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]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(s,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const _e=ue(hs,[["render",ms]]),Ll=10;function gs(e,n){return e>n&&e>Ll?"horizontal":n>e&&n>Ll?"vertical":""}function Jn(){const e=t.ref(0),n=t.ref(0),l=t.ref(0),o=t.ref(0),r=t.ref(0),a=t.ref(0),i=t.ref(0),s=t.ref(0),c=t.ref(0),u=t.ref(0),d=t.ref(""),h=()=>d.value==="vertical",p=()=>d.value==="horizontal",$=()=>{i.value=0,s.value=0,c.value=0,u.value=0,d.value="",l.value=0};return{move:S=>{const y=S.touches[0];i.value=y.clientX-e.value,s.value=y.clientY-n.value,r.value=y.clientX,a.value=y.clientY,c.value=Math.abs(i.value),u.value=Math.abs(s.value),o.value=Date.now()-l.value,d.value||(d.value=gs(c.value,u.value))},start:S=>{$(),e.value=S.touches[0].clientX,n.value=S.touches[0].clientY,l.value=Date.now()},reset:$,startX:e,startY:n,startTime:l,duration:o,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:c,offsetY:u,direction:d,isVertical:h,isHorizontal:p}}let Pl=36;function ps(){return Pl}function ys(e){Pl=e}function Re(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Qn(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function bs(e,n,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=l),n.children=l}function et(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ql(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let ws=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const r=Fe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(l,o))}};function Ss(){const e=t.getCurrentInstance();return new ws(e.proxy)}function zl(e,n,l){const o=Re(e,n),r=Re(e,l);if(o!==r)return!1;const a=et(e,n),i=et(e,l);return a===i}function vs(e,n,l,o){if(l.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],a=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let i=0;i<n.length&&i<l.length;i++){const s=n[i];let u=l[i].findIndex(d=>{if(a==="text")return Re(e,d)===s;if(a==="value"){let h=et(e,d);return h==null&&(h=Re(e,d)),h===s}else if(a==="item")return zl(e,d,s)});if(u==-1)break;r.push(u)}else{let i=l[0];for(let s=0;s<n.length;s++){const c=n[s];let u=i.findIndex(h=>{if(a==="text")return Re(e,h)===c;if(a==="value"){let p=et(e,h);return p==null&&(p=Re(e,h)),p===c}else if(a==="item")return zl(e,h,c)});if(u==-1)break;r.push(u);const d=Qn(e,i[u]);if(!Array.isArray(d))break;i=d}}return r}function jl(e,n,l,o){if(l.length==0)return null;const r={texts:[],values:[],items:[]},a=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let i=0;i<n.length&&i<l.length;i++){const s=l[i];let c=n[i];c<0&&c>=s.length&&(c=0);const u=s[c],d=Re(e,u);if(r.texts.push(d),r.items.push(u),a==="text")r.values.push(d);else if(a==="value"){let h=et(e,u);h==null&&(h=d),r.values.push(h)}else r.values.push(u)}else{let i=l[0];for(let s=0;s<n.length;s++){let c=n[s];c<0&&c>=i.length&&(c=0);const u=i[c],d=Re(e,u),h=Object.assign({},u);if(h.children=null,r.texts.push(d),r.items.push(h),a==="text")r.values.push(d);else if(a==="value"){let p=et(e,u);p==null&&(p=d),r.values.push(p)}else r.values.push(h);if(!Array.isArray(u.children))break;i=u.children}}return r}function _l(e){return{text:e,value:e}}const Cs=15,Ts=300,ks=200,{create:$s}=le("picker-column");function Ds(e){e.stopPropagation()}function xs(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Ds(e)}const Es=$s({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},...Fl},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const l=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${se(e.visibleItemCount)*+e.itemHeight}px`})),r=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),a=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=B=>B>=h.currIndex+8||B<=h.currIndex-8,s=t.computed(()=>({transition:`transform ${h.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${h.deg})`,top:`${a.value}px`})),c=B=>`transform: rotate3d(1, 0, 0, ${-h.rotation*B}deg) translate3d(0px, 0px, 104px)`,u=t.computed(()=>({transition:`transform ${h.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${h.scrollDistance+a.value}px, 0)`})),d=t.ref(null),h=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=t.toRef(e,"source"),$=B=>Re(e,B),m=B=>et(e,B),g=Jn(),S=()=>{h.transitionEndTrigger&&(h.transitionEndTrigger(),h.transitionEndTrigger=null)},y=(B,N=!1,v=!1)=>{if(h.currIndex=B,N){const k=()=>{h.moving=!1,n("update:modelValue",B),n("change",B)};v?h.transitionEndTrigger=k:k()}},b=(B,N,v)=>{let k=B+h.startDistance;if(N==="end"){const A=-(p.value.length-1)*e.itemHeight;k<A&&(k=A,(!v||v<=0)&&(v=e.swipeDuration)),k>0&&(k=0,(!v||v<=0)&&(v=e.swipeDuration));let C=Math.abs(Math.round(-k/e.itemHeight));const D=-C*e.itemHeight,E=`${(C+1)*h.rotation}deg`,M=v?v>0:!1;y(C,!0,M),f(D,N,v,E)}else{let A=(-k/e.itemHeight+1)*h.rotation;const C=(p.value.length+1)*h.rotation,D=0;if(A=Math.min(Math.max(A,D),C),e.threeDimensional&&(A<D||A>C))return;f(k,null,void 0,`${A}deg`)}},f=(B=0,N,v=ks,k)=>{N==="end"?h.scrollTime=v:h.scrollTime=0,h.deg=k,h.scrollDistance=B},F=(B,N)=>(B=Math.abs(B/N)/.003*(B<0?-1:1),B),I=B=>{if(!e.readonly){if(h.moving){const N=d.value,{transform:v}=window.getComputedStyle(N);h.scrollDistance=+v.slice(7,v.length-1).split(", ")[5]}h.startDistance=h.scrollDistance,g.start(B),h.transitionEndTrigger=null}},q=B=>{e.readonly||(h.moving=!0,g.move(B),g.isVertical()&&(h.moving=!0,xs(B,!0)),b(g.deltaY.value,"",0))},L=()=>{if(e.readonly)return;const B=g.deltaY.value,N=g.duration.value;if(N<Ts&&Math.abs(B)>Cs){const k=F(B,N);b(k,"end",e.swipeDuration)}else b(B,"end",0)};return t.watch(()=>e.modelValue,B=>{if(h.currIndex!==B){h.currIndex=B;const N=-B*e.itemHeight;b(N)}}),t.onMounted(()=>{const B=-e.modelValue*e.itemHeight;b(B)}),{classes:l,styles:o,contentClasses:r,source:p,itemText:$,itemValue:m,...t.toRefs(h),roller:d,getItemText:Re,onTouchStart:I,onTouchMove:q,onTouchEnd:L,isHidden:i,setRollerStyle:c,touchRollerStyle:s,touchTileStyle:u,stopMomentum:S}}}),Ns={key:1,class:"fox-picker__item-tile"};function Vs(e,n,l,o,r,a){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",Ns,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Hl=ue(Es,[["render",Vs]]),{create:Is,componentName:Os,scope:Bs}=le("picker"),As=Is({components:{[Hl.name]:Hl,[_e.name]:_e},props:{...Zn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:l,t:o}=Ee.useFoxI18n(Bs),r=l(e,["title","cancelText","clearText","confirmText"]),a=t.ref(null),i=t.ref(ps());t.watch(()=>e.visible,v=>{v&&i.value<=0&&setTimeout(()=>{if(a.value){const k=Qe(a.value);i.value=k.height,ys(i.value)}},50)});const s=t.computed(()=>({[Os]:!0})),c=Ss(),u=t.ref("singleColumn");let d=t.ref([]);t.watch([()=>e.source,()=>e.params],async([v,k])=>{if(v){let A=await c.load("select",v,k);if(A.length>0){let C=A[0];if(Array.isArray(C)){if(typeof C[0]=="string"){let D=A,E=[];D.forEach(M=>{let V=M.map(H=>_l(H));E.push(V)}),d.value=E}else d.value=A;u.value="multipleColumn"}else if(typeof C=="string"){let D=A,E=[],M=D.map(V=>_l(V));E.push(M),d.value=E,u.value="singleColumn"}else{const D=Qn(e,C);Array.isArray(D)?(u.value="cascade",d.value=[A]):(u.value="singleColumn",d.value=[A])}}else d.value=[]}},{immediate:!0});const h=t.ref([]),p=t.ref(e.modelValue),$=t.ref([]),m=t.ref([]);t.watch([()=>e.modelValue,()=>d.value],([v,k])=>{let A=vs(e,v,k,u.value);if(!Pe(A,m.value)){m.value=A;let C=jl(e,A,k,u.value);C&&(h.value=C.texts,n("update:text",h.value))}});const g=t.ref(e.visible);t.watch(()=>e.visible,v=>{g.value=v});const S=v=>{let k=ql(e,v);return Be(k)?k.defaultIndex??0:0},y=v=>{if(e.readonly===!0)return!0;let k=ql(e,v);return Be(k)?k.readonly??!1:!1},b=(v,k)=>{let A=m.value;A[v]=k;for(let D=0;D<v;D++)A[D]==null&&(A[D]=S(D));if(u.value==="cascade")for(let D=v+1;D<F.value.length;D++){let E=S(D);D<A.length?A[D]=E:A.push(E)}else for(let D=A.length;D<F.value.length;D++){let E=S(D);A.push(E)}m.value=A;let C=jl(e,A,d.value,u.value);C&&(h.value=C.texts,p.value=C.values,$.value=C.items)},f=v=>v<m.value.length?m.value[v]:S(v),F=t.computed(()=>{if(d.value.length==0)return[];if(u.value=="singleColumn"||u.value=="multipleColumn")return d.value;let v=[],k=0,A=d.value[0],C=0;for(;;){let D=A.map(V=>{let H=Object.assign({},V);return bs(e,H,null),H});v.push(D),k>=m.value.length?C=0:C=m.value[k],(C<0||C>=A.length)&&(C=0);let E=A[C];const M=Qn(e,E);if(!Array.isArray(M))break;A=M,k++}return v}),I=t.computed(()=>se(+e.visibleItemCount-1)/2*i.value);return{...r,pickerLineRef:a,classes:s,columns:F,dataType:u,show:g,itemHeight:i,top:I,isReadonly:y,getIndex:f,change:(v,k)=>{b(v,k)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let v=d.value.length-1;for(;v>=0&&!(m.value[v]===null||m.value[v]===void 0);v--);if(v>=0&&b(v,0),u.value==="singleColumn"){let k=p.value.length>0?p.value[0]:"",A=$.value.length>0?$.value[0]:null;e.readonly||(n("update:modelValue",k),n("update:text",h.value),n("change",k,A)),n("confirm",k)}else e.readonly||(n("update:modelValue",p.value),n("update:text",h.value),n("change",p.value,$.value)),n("confirm",p.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}u.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),Fs={class:"fox-picker__bar"},Rs={class:"fox-picker__title"},Ms={class:"fox-picker__bar__action"},Ls={class:"fox-picker__column"};function Ps(e,n,l,o,r,a){const i=t.resolveComponent("fox-picker-column"),s=t.resolveComponent("fox-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]=c=>e.show=c),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",Fs,[t.createElementVNode("view",Rs,t.toDisplayString(e.title),1),t.createElementVNode("view",Ms,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...c)=>e.confirm&&e.confirm(...c))},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]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Ls,[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,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:"fox-picker__columnitem"},[t.createVNode(i,{source:c,readonly:e.isReadonly(u),"column-index":u,modelValue:e.getIndex(u),"onUpdate:modelValue":d=>e.change(u,d),"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 it=ue(As,[["render",Ps]]),Kl={...Zn,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 qs(e,n,l){return{props:{...ge,...Te,...Kl},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),u=c(o,["placeholder"]),d=t.ref(!1),h=e,p=t.computed(()=>({[h]:!0})),$=Ve(t.computed(()=>o.textAlign),"textAlign"),m=t.computed(()=>({textAlign:$.value??"right"})),g=ie(o,"modelValue"),S=t.ref([]),y=t.computed(()=>Array.isArray(S.value)?S.value.join(" "):S.value),b=t.ref(!1),f=()=>{b.value=!0},F=E=>{b.value=E},I=E=>{g.value=E,s("update:modelValue",E)},q=E=>{S.value=E,Array.isArray(E)&&E.length===0?s("update:text",E[0]):s("update:text",E)},L=(E,M)=>{Array.isArray(M)&&M.length==1?s("change",E,M[0]):s("change",E,M)};let B=ie(o,"hintText"),N=t.ref(!1);const v=E=>{let V=E.target.value;d.value=!0,be(B.value)||(N.value=!0),s("focus",V,E)},k=E=>{setTimeout(()=>{N.value&&(N.value=!1),d.value=!1},0);let V=E.target.value;o.maxLength&&V.length>Number(o.maxLength)&&(V=V.slice(0,Number(o.maxLength))),b.value?setTimeout(()=>{s("blur",V,E)},50):s("blur",V,E)},A=()=>{s("clear","")},C=t.computed(()=>Oe(o.unit)>0),D=t.ref();return me({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()}}),()=>{const E={class:p.value,style:m.value,type:"text",maxlength:o.maxLength,placeholder:u.placeholder.value,clearable:re(o.clearable),readonly:!0,value:y.value,onClick:f,onFocus:v,onBlur:k},M={};r.slots.prepend&&(M.prepend=r.slots.prepend),r.slots.append&&(M.append=r.slots.append),r.slots.prefix&&(M.prefix=r.slots.prefix),r.slots.suffix?M.suffix=r.slots.suffix:C.value?M.suffix=()=>[o.unit]:M.suffix=()=>t.h(T.ElIcon,{},{default:()=>t.h(ye.ArrowDown)});const V=[],H=t.h(T.ElInput,E,M);V.push(H);const R={default:()=>V};r.slots.default&&(R.label=r.slots.default),r.slots.fixedTip&&(R.fixedTip=r.slots.fixedTip);const j=pt(o,Zn);j.disabled=!1,j.readonly=a.value||i.value,j.visible=b.value,j["onUpdate:visible"]=F,j.modelValue=g.value,j.onUpdateModel=I,j.text=S.value,j["onUpdate:text"]=q,j.onClear=A,j.onChange=L;const G=t.h(it,j);R.hide=()=>[G];const X={...ve(o,Kl),hintText:B.value,hintVisible:N.value,prop:`${o.prop??r.attrs.name}_item`};return t.h(l,X,R)}}}}const{componentName:zs,create:js,scope:_s}=le("select-item"),eo=js(qs(zs,_s,pe));var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){var l=1e3,o=6e4,r=36e5,a="millisecond",i="second",s="minute",c="hour",u="day",d="week",h="month",p="quarter",$="year",m="date",g="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={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("_")},f=function(C,D,E){var M=String(C);return!M||M.length>=D?C:""+Array(D+1-M.length).join(E)+C},F={s:f,z:function(C){var D=-C.utcOffset(),E=Math.abs(D),M=Math.floor(E/60),V=E%60;return(D<=0?"+":"-")+f(M,2,"0")+":"+f(V,2,"0")},m:function C(D,E){if(D.date()<E.date())return-C(E,D);var M=12*(E.year()-D.year())+(E.month()-D.month()),V=D.clone().add(M,h),H=E-V<0,R=D.clone().add(M+(H?-1:1),h);return+(-(M+(E-V)/(H?V-R:R-V))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:h,y:$,w:d,d:u,D:m,h:c,m:s,s:i,ms:a,Q:p}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},I="en",q={};q[I]=b;var L=function(C){return C instanceof k},B=function C(D,E,M){var V;if(!D)return I;if(typeof D=="string"){var H=D.toLowerCase();q[H]&&(V=H),E&&(q[H]=E,V=H);var R=D.split("-");if(!V&&R.length>1)return C(R[0])}else{var j=D.name;q[j]=D,V=j}return!M&&V&&(I=V),V||!M&&I},N=function(C,D){if(L(C))return C.clone();var E=typeof D=="object"?D:{};return E.date=C,E.args=arguments,new k(E)},v=F;v.l=B,v.i=L,v.w=function(C,D){return N(C,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var k=function(){function C(E){this.$L=B(E.locale,null,!0),this.parse(E)}var D=C.prototype;return D.parse=function(E){this.$d=function(M){var V=M.date,H=M.utc;if(V===null)return new Date(NaN);if(v.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var R=V.match(S);if(R){var j=R[2]-1||0,G=(R[7]||"0").substring(0,3);return H?new Date(Date.UTC(R[1],j,R[3]||1,R[4]||0,R[5]||0,R[6]||0,G)):new Date(R[1],j,R[3]||1,R[4]||0,R[5]||0,R[6]||0,G)}}return new Date(V)}(E),this.$x=E.x||{},this.init()},D.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()},D.$utils=function(){return v},D.isValid=function(){return this.$d.toString()!==g},D.isSame=function(E,M){var V=N(E);return this.startOf(M)<=V&&V<=this.endOf(M)},D.isAfter=function(E,M){return N(E)<this.startOf(M)},D.isBefore=function(E,M){return this.endOf(M)<N(E)},D.$g=function(E,M,V){return v.u(E)?this[M]:this.set(V,E)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(E,M){var V=this,H=!!v.u(M)||M,R=v.p(E),j=function(ne,x){var _=v.w(V.$u?Date.UTC(V.$y,x,ne):new Date(V.$y,x,ne),V);return H?_:_.endOf(u)},G=function(ne,x){return v.w(V.toDate()[ne].apply(V.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(x)),V)},K=this.$W,X=this.$M,J=this.$D,te="set"+(this.$u?"UTC":"");switch(R){case $:return H?j(1,0):j(31,11);case h:return H?j(1,X):j(0,X+1);case d:var P=this.$locale().weekStart||0,Q=(K<P?K+7:K)-P;return j(H?J-Q:J+(6-Q),X);case u:case m:return G(te+"Hours",0);case c:return G(te+"Minutes",1);case s:return G(te+"Seconds",2);case i:return G(te+"Milliseconds",3);default:return this.clone()}},D.endOf=function(E){return this.startOf(E,!1)},D.$set=function(E,M){var V,H=v.p(E),R="set"+(this.$u?"UTC":""),j=(V={},V[u]=R+"Date",V[m]=R+"Date",V[h]=R+"Month",V[$]=R+"FullYear",V[c]=R+"Hours",V[s]=R+"Minutes",V[i]=R+"Seconds",V[a]=R+"Milliseconds",V)[H],G=H===u?this.$D+(M-this.$W):M;if(H===h||H===$){var K=this.clone().set(m,1);K.$d[j](G),K.init(),this.$d=K.set(m,Math.min(this.$D,K.daysInMonth())).$d}else j&&this.$d[j](G);return this.init(),this},D.set=function(E,M){return this.clone().$set(E,M)},D.get=function(E){return this[v.p(E)]()},D.add=function(E,M){var V,H=this;E=Number(E);var R=v.p(M),j=function(X){var J=N(H);return v.w(J.date(J.date()+Math.round(X*E)),H)};if(R===h)return this.set(h,this.$M+E);if(R===$)return this.set($,this.$y+E);if(R===u)return j(1);if(R===d)return j(7);var G=(V={},V[s]=o,V[c]=r,V[i]=l,V)[R]||1,K=this.$d.getTime()+E*G;return v.w(K,this)},D.subtract=function(E,M){return this.add(-1*E,M)},D.format=function(E){var M=this,V=this.$locale();if(!this.isValid())return V.invalidDate||g;var H=E||"YYYY-MM-DDTHH:mm:ssZ",R=v.z(this),j=this.$H,G=this.$m,K=this.$M,X=V.weekdays,J=V.months,te=function(x,_,z,Y){return x&&(x[_]||x(M,H))||z[_].slice(0,Y)},P=function(x){return v.s(j%12||12,x,"0")},Q=V.meridiem||function(x,_,z){var Y=x<12?"AM":"PM";return z?Y.toLowerCase():Y},ne={YY:String(this.$y).slice(-2),YYYY:this.$y,M:K+1,MM:v.s(K+1,2,"0"),MMM:te(V.monthsShort,K,J,3),MMMM:te(J,K),D:this.$D,DD:v.s(this.$D,2,"0"),d:String(this.$W),dd:te(V.weekdaysMin,this.$W,X,2),ddd:te(V.weekdaysShort,this.$W,X,3),dddd:X[this.$W],H:String(j),HH:v.s(j,2,"0"),h:P(1),hh:P(2),a:Q(j,G,!0),A:Q(j,G,!1),m:String(G),mm:v.s(G,2,"0"),s:String(this.$s),ss:v.s(this.$s,2,"0"),SSS:v.s(this.$ms,3,"0"),Z:R};return H.replace(y,function(x,_){return _||ne[x]||R.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(E,M,V){var H,R=v.p(M),j=N(E),G=(j.utcOffset()-this.utcOffset())*o,K=this-j,X=v.m(this,j);return X=(H={},H[$]=X/12,H[h]=X,H[p]=X/3,H[d]=(K-G)/6048e5,H[u]=(K-G)/864e5,H[c]=K/r,H[s]=K/o,H[i]=K/l,H)[R]||K,V?X:v.a(X)},D.daysInMonth=function(){return this.endOf(h).$D},D.$locale=function(){return q[this.$L]},D.locale=function(E,M){if(!E)return this.$L;var V=this.clone(),H=B(E,M,!0);return H&&(V.$L=H),V},D.clone=function(){return v.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},C}(),A=k.prototype;return N.prototype=A,[["$ms",a],["$s",i],["$m",s],["$H",c],["$W",u],["$M",h],["$y",$],["$D",m]].forEach(function(C){A[C[1]]=function(D){return this.$g(D,C[0],C[1])}}),N.extend=function(C,D){return C.$i||(C(D,k,N),C.$i=!0),N},N.locale=B,N.isDayjs=L,N.unix=function(C){return N(1e3*C)},N.en=q[I],N.Ls=q,N.p={},N})})(Wl);var Hs=Wl.exports;const Me=Ke(Hs);var Yl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){var l={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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},c=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(S){this[g]=+S}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var y=S.match(/([+-]|\d\d)/g),b=60*y[1]+(+y[2]||0);return b===0?0:y[0]==="+"?-b:b}(g)}],h=function(g){var S=s[g];return S&&(S.indexOf?S:S.s.concat(S.f))},p=function(g,S){var y,b=s.meridiem;if(b){for(var f=1;f<=24;f+=1)if(g.indexOf(b(f,0,S))>-1){y=f>12;break}}else y=g===(S?"pm":"PM");return y},$={A:[i,function(g){this.afternoon=p(g,!1)}],a:[i,function(g){this.afternoon=p(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[r,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[r,u("day")],Do:[i,function(g){var S=s.ordinal,y=g.match(/\d+/);if(this.day=y[0],S)for(var b=1;b<=31;b+=1)S(b).replace(/\[|\]/g,"")===g&&(this.day=b)}],M:[a,u("month")],MM:[r,u("month")],MMM:[i,function(g){var S=h("months"),y=(h("monthsShort")||S.map(function(b){return b.slice(0,3)})).indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[i,function(g){var S=h("months").indexOf(g)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(g){this.year=c(g)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function m(g){var S,y;S=g,y=s&&s.formats;for(var b=(g=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,v,k){var A=k&&k.toUpperCase();return v||y[k]||l[k]||y[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,D,E){return D||E.slice(1)})})).match(o),f=b.length,F=0;F<f;F+=1){var I=b[F],q=$[I],L=q&&q[0],B=q&&q[1];b[F]=B?{regex:L,parser:B}:I.replace(/^\[|\]$/g,"")}return function(N){for(var v={},k=0,A=0;k<f;k+=1){var C=b[k];if(typeof C=="string")A+=C.length;else{var D=C.regex,E=C.parser,M=N.slice(A),V=D.exec(M)[0];E.call(v,V),N=N.replace(V,"")}}return function(H){var R=H.afternoon;if(R!==void 0){var j=H.hours;R?j<12&&(H.hours+=12):j===12&&(H.hours=0),delete H.afternoon}}(v),v}}return function(g,S,y){y.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var b=S.prototype,f=b.parse;b.parse=function(F){var I=F.date,q=F.utc,L=F.args;this.$u=q;var B=L[1];if(typeof B=="string"){var N=L[2]===!0,v=L[3]===!0,k=N||v,A=L[2];v&&(A=L[2]),s=this.$locale(),!N&&A&&(s=y.Ls[A]),this.$d=function(M,V,H){try{if(["x","X"].indexOf(V)>-1)return new Date((V==="X"?1e3:1)*M);var R=m(V)(M),j=R.year,G=R.month,K=R.day,X=R.hours,J=R.minutes,te=R.seconds,P=R.milliseconds,Q=R.zone,ne=new Date,x=K||(j||G?1:ne.getDate()),_=j||ne.getFullYear(),z=0;j&&!G||(z=G>0?G-1:ne.getMonth());var Y=X||0,Z=J||0,W=te||0,O=P||0;return Q?new Date(Date.UTC(_,z,x,Y,Z,W,O+60*Q.offset*1e3)):H?new Date(Date.UTC(_,z,x,Y,Z,W,O)):new Date(_,z,x,Y,Z,W,O)}catch{return new Date("")}}(I,B,q),this.init(),A&&A!==!0&&(this.$L=this.locale(A).$L),k&&I!=this.format(B)&&(this.$d=new Date("")),s={}}else if(B instanceof Array)for(var C=B.length,D=1;D<=C;D+=1){L[1]=B[D-1];var E=y.apply(this,L);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}D===C&&(this.$d=new Date(""))}else f.call(this,F)}}})})(Yl);var Ks=Yl.exports;const Ws=Ke(Ks);var Ul={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o,r){var a=o.prototype,i=a.format;r.en.ordinal=function(s){var c=["th","st","nd","rd"],u=s%100;return"["+s+(c[(u-20)%10]||c[u]||c[0])+"]"},a.format=function(s){var c=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var d=this.$utils(),h=(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(p){switch(p){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return u.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return u.ordinal(c.week(),"W");case"w":case"ww":return d.s(c.week(),p==="w"?1:2,"0");case"W":case"WW":return d.s(c.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return d.s(String(c.$H===0?24:c.$H),p==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return p}});return i.bind(this)(h)}}})})(Ul);var Ys=Ul.exports;const Us=Ke(Ys);var Gl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o,r){var a=o.prototype,i=function(h){return h&&(h.indexOf?h:h.s)},s=function(h,p,$,m,g){var S=h.name?h:h.$locale(),y=i(S[p]),b=i(S[$]),f=y||b.map(function(I){return I.slice(0,m)});if(!g)return f;var F=S.weekStart;return f.map(function(I,q){return f[(q+(F||0))%7]})},c=function(){return r.Ls[r.locale()]},u=function(h,p){return h.formats[p]||function($){return $.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,g,S){return g||S.slice(1)})}(h.formats[p.toUpperCase()])},d=function(){var h=this;return{months:function(p){return p?p.format("MMMM"):s(h,"months")},monthsShort:function(p){return p?p.format("MMM"):s(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):s(h,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):s(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):s(h,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return u(h.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var h=c();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(p){return u(h,p)},meridiem:h.meridiem,ordinal:h.ordinal}},r.months=function(){return s(c(),"months")},r.monthsShort=function(){return s(c(),"monthsShort","months",3)},r.weekdays=function(h){return s(c(),"weekdays",null,null,h)},r.weekdaysShort=function(h){return s(c(),"weekdaysShort","weekdays",3,h)},r.weekdaysMin=function(h){return s(c(),"weekdaysMin","weekdays",2,h)}}})})(Gl);var Gs=Gl.exports;const Xs=Ke(Gs);var Xl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){var l="week",o="year";return function(r,a,i){var s=a.prototype;s.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(o).add(1,o).date(u),h=i(this).endOf(l);if(d.isBefore(h))return 1}var p=i(this).startOf(o).date(u).startOf(l).subtract(1,"millisecond"),$=this.diff(p,l,!0);return $<0?i(this).startOf("week").week():Math.ceil($)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Xl);var Zs=Xl.exports;const Js=Ke(Zs);var Zl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o){o.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Zl);var Qs=Zl.exports;const ec=Ke(Qs);var Jl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o,r){o.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Jl);var tc=Jl.exports;const nc=Ke(tc);var Ql={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o){o.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Ql);var oc=Ql.exports;const lc=Ke(oc);var er={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o){o.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(er);var rc=er.exports;const ac=Ke(rc);Me.extend(Xs),Me.extend(Us),Me.extend(Ws),Me.extend(Js),Me.extend(ec),Me.extend(nc),Me.extend(lc),Me.extend(ac);const oe={format(e,n){return Me(e).format(n)},parser(e,n){return Me(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,l){const r=new Date(e+"/"+n+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},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 l=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[l,o,r].join(n)},getDay(e,n){e=e||0;let l=n??new Date;const o=e*(1e3*60*60*24);return l=new Date(l.getTime()+o),this.date2Str(l)},compareDate(e,n){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(l>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,l==o},getMonthWeek:function(e,n,l,o=0){const r=new Date(Number(e),parseInt(n)-1,Number(l));let a=r.getDay(),i=r.getDate(),s=6-a;return o!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,n,l,o=0){const r=new Date(Number(e),parseInt(n)-1,Number(l)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),c=6-s;return o!==0&&(s=s==0?7:s,c=7-s),Math.ceil((i+c)/7)},getWeekDate:function(e,n,l,o=0){const r=new Date(Number(e),parseInt(n)-1,Number(l)),a=r.getTime();let i=r.getDay();if(o===0){const c=a-i*864e5,u=a+(6-i)*864e5,d=this.date2Str(new Date(c)),h=this.date2Str(new Date(u));return[d,h]}else{i=i==0?7:i;const s=24*60*60*1e3,c=a-(i-1)*s,u=a+(7-i)*s,d=this.date2Str(new Date(c)),h=this.date2Str(new Date(u));return[d,h]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=oe.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=oe.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,l){const o=new Date(new Date(n).setDate(n.getDate()+l)),r=e.getTime(),a=o.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,n,l){const o=new Date(new Date(n).setMonth(n.getMonth()+l)),r=e.getTime(),a=o.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},tr=new Date().getFullYear(),to={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"},nn=(e,n,l)=>{let o;if(Le(n)?o=n:typeof n=="string"&&Oe(n)>0?o=oe.parser(n,l):o=new Date,o.toString()==="Invalid Date")return null;let r=Math.max(o.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),new Date(r)},no=(e,n,l)=>{Le(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),oe.format(new Date(o),l)};let oo={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(tr-10,0,1),validator:Le},maxDate:{type:Date,default:()=>new Date(tr+10,11,31),validator:Le},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:ic,scope:sc}=le("date-picker"),cc=ic({components:{[it.name]:it},props:{...oo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:l}=Ee.useFoxI18n(sc),o={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds")},r=t.ref(!1);t.watch(()=>e.visible,y=>{r.value=y});function a(y,b){return new Date(y,b,0).getDate()}const i=(y,b)=>{const f=e[`${y}Date`],F=f.getFullYear();let I=1,q=1,L=0,B=0;y==="max"&&(I=12,q=a(b.getFullYear(),b.getMonth()+1),L=23,B=59);const N=B;return b.getFullYear()===F&&(I=f.getMonth()+1,b.getMonth()+1===I&&(q=f.getDate(),b.getDate()===q&&(L=f.getHours(),b.getHours()===L&&(B=f.getMinutes())))),{[`${y}Year`]:F,[`${y}Month`]:I,[`${y}Date`]:q,[`${y}Hour`]:L,[`${y}Minute`]:B,[`${y}Seconds`]:N}},s=t.computed(()=>{if(!p.value)return[];const{maxYear:y,maxDate:b,maxMonth:f,maxHour:F,maxMinute:I,maxSeconds:q}=i("max",p.value),{minYear:L,minDate:B,minMonth:N,minHour:v,minMinute:k,minSeconds:A}=i("min",p.value);let C=[{type:"year",range:[L,y]},{type:"month",range:[N,f]},{type:"day",range:[B,b]},{type:"hour",range:[v,F]},{type:"minute",range:[k,I]},{type:"seconds",range:[A,q]}];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}),c=(y,b,f)=>{if(!(b>y))return null;const F=[];for(;y<=b;)e.isShowChinese?F.push({text:y+o[f],value:y}):F.push({text:`${y}`,value:y}),f==="minute"?y+=e.minuteStep:y++;return F},u=t.computed(()=>{let y=[];return s.value.forEach(b=>{let f=c(b.range[0],b.range[1],b.type);f&&y.push(f)}),y}),d=(y,b)=>y==="year"?b.getFullYear():y==="month"?b.getMonth()+1:y==="day"?b.getDate():y==="hour"?b.getHours():y==="minute"?b.getMinutes():y==="seconds"?b.getSeconds():0,h=t.ref(),p=t.ref(null);t.watchEffect(()=>{let y,b=e.modelValue;if(typeof b=="string"?b.length==0?y=new Date:e.valueFormat?y=nn(e,e.modelValue,e.valueFormat):y=nn(e,b,to[e.type]):Le(b)?y=b:y=new Date,!!y&&(!p.value||y.getTime()!==p.value.getTime())){p.value=y;let f=[];s.value.forEach(F=>{let I=d(F.type,y);f.push(I)}),h.value=f}});const $=y=>{if(e.type==="date"){let b=y;p.value=new Date(b[0],b[1]-1,Math.min(b[2],a(b[0],b[1])))}else if(e.type==="datetime"){let b=y;p.value=new Date(b[0],b[1]-1,Math.min(b[2],a(b[0],b[1])),b[3],b[4])}else if(e.type==="time"){let b=y,f=p.value??new Date,F=new Date(f.getFullYear(),f.getMonth(),f.getDate(),b[0],b[1],b[2]);p.value=F}else if(e.type==="year-month"){let b=y,f=new Date(b[0],b[1]-1);p.value=f}else if(e.type==="month-day"){let b=y,f=p.value??new Date,F=new Date(f.getFullYear(),b[0]-1,b[1]);p.value=F}else if(e.type==="datehour"){let b=y;p.value=new Date(b[0],b[1]-1,Math.min(b[2],a(b[0],b[1])),b[3])}else if(e.type==="hour-minute"){let b=y,f=p.value??new Date,F=new Date(f.getFullYear(),f.getMonth(),f.getDate(),b[0],b[1]);p.value=F}h.value=y};return{columns:u,dateIndexs:h,show:r,onClose:()=>{r.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:y=>{$(y),r.value=!1;let b=p.value??new Date;if(e.valueFormat){let f=no(e,b,e.valueFormat);n("update:modelValue",f)}else n("update:modelValue",b);n("update:visible",!1),n("confirm",y)},onClear:()=>{n("clear")}}}});function uc(e,n,l,o,r,a){const i=t.resolveComponent("fox-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 on=ue(cc,[["render",uc]]);function fc(e){let n=e.format;if(!n){let l=e.type??"date";n=to[l]}return n}const nr={...oo,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function dc(e,n,l){return{props:{...ge,...Te,...nr,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(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),u=c(o,["placeholder"]),d=t.ref(!1),p=ie(o,"modelValue",R=>R==null?null:typeof R=="string"?R.length==0?null:o.valueFormat?nn(o,R,o.valueFormat)??R:nn(o,R,to[o.type])??R:Le(R)?R:null),$=t.computed(()=>{if(!p.value)return"";const R=fc(o);return no(o,p.value,R)}),m=e,g=t.computed(()=>({[`${m}__input`]:!0})),S=Ve(t.computed(()=>o.textAlign),"textAlign"),y=t.computed(()=>({textAlign:S.value??"right"}));let b=ie(o,"hintText"),f=t.ref(!1);const F=t.ref(!1),I=()=>{F.value=!0},q=()=>{F.value=!1},L=R=>{F.value=R},B=R=>{if(p.value=R,o.valueFormat){let j=no(o,R,o.valueFormat);s("update:modelValue",j,{}),s("change",j,{})}else s("update:modelValue",R,{}),s("change",R,{})},N=R=>{let G=R.target.value;d.value=!0,s("focus",G,R)},v=R=>{setTimeout(()=>{d.value=!1},0);let G=R.target.value;o.maxLength&&G.length>Number(o.maxLength)&&(G=G.slice(0,Number(o.maxLength))),s("blur",G,R)},k=R=>{p.value="",s("update:modelValue","",R),s("change","",R),s("clear",""),q()},A=t.computed(()=>Oe(o.unit)>0),C=Ve(t.computed(()=>o.longTermValue),"longTermValue",Ye.Near);let D=null;const E=t.ref(re(o.longTerm)),M=R=>{if(E.value=R,s("update:longTerm",R),R){let j="";Array.isArray(C.value)?j=C.value.map((G,K)=>G||(Array.isArray(p.value)&&p.value[K]?p.value[K]:o.valueFormat?oe.format(new Date,o.valueFormat):new Date)):j=C.value,D=p.value,s("update:modelValue",j)}else s("update:modelValue",D)},V=re(o.isLongTerm);if(V){const R=()=>{if(E.value===!0){let j="";Array.isArray(C.value)?j=C.value.map((G,K)=>G||(Array.isArray(p.value)&&p.value[K]?p.value[K]:o.valueFormat?oe.format(new Date,o.valueFormat):new Date)):j=C.value,D=p.value,s("update:modelValue",j)}else Pe(C.value,p.value)&&(E.value=!0)};R(),t.watch([()=>o.longTerm],([j])=>{E.value!==j&&R()})}const H=t.ref();return me({showPicker:I,hidePicker:q,focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const R={class:g.value,style:y.value,type:"text",maxlength:o.maxLength,placeholder:u.placeholder.value,readonly:!0,clearable:o.clearable,value:$.value,onClick:I,onFocus:N,onBlur:v},j={};r.slots.prepend&&(j.prepend=r.slots.prepend),r.slots.append&&(j.append=r.slots.append),r.slots.prefix?j.prefix=r.slots.prefix:j.prefix=()=>t.h(T.ElIcon,{},{default:()=>t.h(ye.Calendar)}),r.slots.suffix?j.suffix=r.slots.suffix:A.value&&(j.suffix=()=>[o.unit]);const G=[],K=t.h(T.ElInput,R,j);G.push(K);const X={default:()=>G};r.slots.default&&(X.label=r.slots.default),r.slots.fixedTip&&(X.fixedTip=r.slots.fixedTip);const J=pt(o,oo);J.valueFormat=null,J.disabled=!1,J.readonly=a.value||i.value||E.value,J.visible=F.value,J["onUpdate:visible"]=L,J.modelValue=p.value,J["onUpdate:modelValue"]=B,J.onClear=k;const te={};if(r.slots.top){const _=r.slots.top();te.top=()=>_}if(r.slots.bottom){const _=r.slots.bottom();te.default=()=>_}const P=t.h(on,J,te);if(X.hide=()=>[P],V){const _={label:o.longTermText,modelValue:E.value,"onUpdate:modelValue":M},z=t.h(T.ElCheckbox,_),Y=t.h("div",{class:{[`${m}__append`]:!0}},[z]);X.append=()=>Y}const ne={...ve(o,nr),class:{[`${m}__wrapper`]:!0,"has-append":V},hintText:b.value,hintVisible:f.value,prop:`${o.prop??r.attrs.name}_item`};return t.h(l,ne,X)}}}}const{componentName:hc,create:mc,scope:gc}=le("date-item"),lo=mc(dc(hc,gc,pe)),pc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),ro={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},popupStyles:{type:Object,default:{height:"80vh",width:"40vw",left:"30vw"}}},or=39,lr=64,{create:yc,scope:bc}=le("calendar-pane"),wc=yc({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:oe.getDay(0)},endDate:{type:String,default:oe.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:l}){const{toLocaleRefs:o,t:r}=Ee.useFoxI18n(bc),a=o(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${or}px`})),s=t.computed(()=>({height:`${lr}px`})),c=JSON.parse(r("weekdays")),u=t.ref([...c.slice(e.firstDayOfWeek,7),...c.slice(0,e.firstDayOfWeek)]),d=t.ref(null),h=t.ref(null),p=t.ref(null),$=t.ref(null),m=t.ref(0),g=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),S=t.computed(()=>l.btn),y=t.computed(()=>l["top-info"]),b=t.computed(()=>l["bottom-info"]),f=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}),F=x=>x.split("-"),I=x=>oe.isEqual(f.currDate[0],x),q=x=>oe.isEqual(f.currDate[1],x),L=x=>f.currDate?.length>0?f.currDate?.some(_=>oe.isEqual(_,x)):!1,B=(x,_)=>_.curData[0]+"-"+_.curData[1]+"-"+oe.getNumTwoBit(+x.day),N=(x,_)=>{const z=B(x,_),{type:Y}=e;return x.type=="curr"?oe.isEqual(f.currDate,z)||(Y=="range"||Y=="week")&&(I(z)||q(z))||Y=="multiple"&&L(z)?`${f.dayPrefix}--active`:f.propStartDate&&oe.compareDate(z,f.propStartDate)||f.propEndDate&&oe.compareDate(f.propEndDate,z)?`${f.dayPrefix}--disabled`:(Y=="range"||Y=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&oe.compareDate(f.currDate[0],z)&&oe.compareDate(z,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},v=()=>{const{type:x}=e;if(x=="range"&&f.chooseData.length==2||x!="range"){let _=f.chooseData.slice(0);x=="week"&&(_={weekDate:[A(f.chooseData[0]),A(f.chooseData[1])]}),n("choose",_),e.poppable&&n("update")}},k=(x,_,z=!1)=>{if(N(x,_)!=`${f.dayPrefix}--disabled`){const{type:Y}=e;let[Z,W]=_.curData,O=[..._.curData];if(O[2]=oe.getNumTwoBit(Number(x.day)),O[3]=`${O[0]}-${O[1]}-${O[2]}`,O[4]=oe.getWhatDay(+O[0],+O[1],+O[2]),Y=="multiple")if(f.currDate?.length>0){let U;f.currDate?.forEach((ee,fe)=>{ee==O[3]&&(U=fe)}),z?f.chooseData.push([...O]):U!==void 0?(f.currDate.splice(U,1),f.chooseData.splice(U,1)):(f.currDate.push(O[3]),f.chooseData.push([...O]))}else f.currDate=[O[3]],f.chooseData=[[...O]];else if(Y=="range"){let U=Object.values(f.currDate).length;U==2||U==0?f.currDate=[O[3]]:oe.compareDate(f.currDate[0],O[3])?Array.isArray(f.currDate)&&f.currDate.push(O[3]):Array.isArray(f.currDate)&&f.currDate.unshift(O[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...O]]:oe.compareDate(f.chooseData[0][3],O[3])?f.chooseData=[...f.chooseData,[...O]]:f.chooseData=[[...O],...f.chooseData]}else if(Y=="week"){let U=oe.getWeekDate(Z,W,x.day,e.firstDayOfWeek);f.propStartDate&&oe.compareDate(U[0],f.propStartDate)&&U.splice(0,1,f.propStartDate),f.propEndDate&&oe.compareDate(f.propEndDate,U[1])&&U.splice(1,1,f.propEndDate),f.currDate=U,f.chooseData=[oe.formatResultDate(U[0]),oe.formatResultDate(U[1])]}else f.currDate=O[3],f.chooseData=[...O];if(!z){let U=f.chooseData;Y=="week"&&(U={weekDate:[A(f.chooseData[0]),A(f.chooseData[1])]}),n("select",U),(e.isAutoBackFill||!e.poppable)&&v()}}},A=x=>{let[_,z,Y]=x;return{date:x,monthWeekNum:oe.getMonthWeek(_,z,Y,e.firstDayOfWeek),yearWeekNum:oe.getYearWeek(_,z,Y,e.firstDayOfWeek)}},C=x=>{const _=x=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let z=parseInt(_.curData[0]),Y=parseInt(_.curData[1].toString().replace(/^0/,""));switch(x){case"prev":Y==1&&(z-=1),Y=Y==1?12:--Y;break;case"next":Y==12&&(z+=1),Y=Y==12?1:++Y;break}return[z+"",oe.getNumTwoBit(Y),oe.getMonthDays(String(z),String(Y))+""]},D=(x,_,z)=>{let{year:Y,month:Z}=z;return _=="prev"&&x>=7&&(x-=7),Array.from(Array(x),(W,O)=>({day:String(O+1),type:_,year:Y,month:Z}))},E=(x,_,z,Y)=>{x=x-e.firstDayOfWeek;let{year:Z,month:W}=z;return _=="prev"&&x>=7&&(x-=7),Array.from(Array(Y),(U,ee)=>({day:String(ee+1),type:_,year:Z,month:W})).slice(Y-x)},M=(x,_)=>{const z=oe.getMonthPreDay(+x[0],+x[1]);let Y=Number(x[1])-1,Z=Number(x[0]);Y<=0&&(Y=12,Z+=1);const W=oe.getMonthDays(String(x[0]),String(x[1])),O=oe.getMonthDays(Z+"",Y+""),U={year:x[0],month:x[1]},ee={curData:x,title:r("monthTitle",{year:U.year,month:U.month}),monthData:[...E(z,"prev",{month:String(Y),year:String(Z)},O),...D(W,"curr",U)],cssHeight:0,cssScrollHeight:0},fe=ee.monthData.length>35?6:5;ee.cssHeight=or+lr*fe;let de=0;f.monthsData.length>0&&(de=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),ee.cssScrollHeight=de,_=="next"?(!f.endData||!oe.compareDate(`${f.endData[0]}-${f.endData[1]}-${oe.getMonthDays(f.endData[0],f.endData[1])}`,`${x[0]}-${x[1]}-${x[2]}`))&&f.monthsData.push(ee):!f.startData||!oe.compareDate(`${x[0]}-${x[1]}-${x[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(ee):f.unLoadPrev=!0},V=()=>{let x=e.startDate?e.startDate:oe.getDay(0),_=e.endDate?e.endDate:oe.getDay(365);f.propStartDate=x,f.propEndDate=_,f.startData=F(x),f.endData=F(_),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const z={year:Number(f.startData[0]),month:Number(f.startData[1])},Y={year:Number(f.endData[0]),month:Number(f.endData[1])};let Z=Y.month-z.month;Y.year-z.year>0&&(Z=Z+12*(Y.year-z.year)),Z<=0&&(Z=1),M(f.startData,"next");let W=1;do M(C("next"),"next");while(W++<Z);if(f.monthsNum=Z,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(x&&oe.compareDate(f.currDate[0],x)&&f.currDate.splice(0,1,x),_&&oe.compareDate(_,f.currDate[1])&&f.currDate.splice(1,1,_),f.defaultData=[...F(f.currDate[0]),...F(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let O=[],U={};f.currDate.forEach(ee=>{x&&!oe.compareDate(ee,x)&&_&&!oe.compareDate(_,ee)&&(Object.hasOwnProperty.call(U,ee)||(O.push(ee),U[ee]=ee))}),f.currDate=[...O],f.defaultData=[...F(O[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[O,U,ee]=F(f.currDate[0]),fe=oe.getWeekDate(O,U,ee,e.firstDayOfWeek);f.currDate=fe,x&&oe.compareDate(f.currDate[0],x)&&f.currDate.splice(0,1,x),_&&oe.compareDate(_,f.currDate[1])&&f.currDate.splice(1,1,_),f.defaultData=[...F(f.currDate[0]),...F(f.currDate[1])]}}else f.currDate&&(x&&oe.compareDate(f.currDate,x)?f.currDate=x:_&&!oe.compareDate(f.currDate,_)&&(f.currDate=_),f.defaultData=[...F(f.currDate)])};me({scrollToDate:x=>{oe.compareDate(x,f.propStartDate)?x=f.propStartDate:oe.compareDate(x,f.propEndDate)||(x=f.propEndDate);let _=F(x);f.monthsData.forEach((z,Y)=>{if(z.title==r("monthTitle",{year:_[0],month:_[1]})&&d.value){let Z=f.monthsData[Y].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let W=0,O=setInterval(()=>{if(W++,d.value){let U=Z/10;d.value.scrollTop=d.value.scrollTop+U}W>=10&&(clearInterval(O),d.value&&(d.value.scrollTop=f.monthsData[Y].cssScrollHeight))},40)}else d.value.scrollTop=f.monthsData[Y].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let x=0,_=0;f.defaultData.length>0&&f.monthsData.forEach((Z,W)=>{Z.title==r("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(x=W),(e.type=="range"||e.type=="week")&&Z.title==r("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(_=W)}),G(f.monthsNum,x),f.currentIndex=x,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(k({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),k({day:f.defaultData[5],type:"curr"},f.monthsData[_],!0)):e.type=="week"?k({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(Z=>{let W=F(Z),O=f.currentIndex;f.monthsData.forEach((U,ee)=>{U.title==r("monthTitle",{year:W[0],month:W[1]})&&(O=ee)}),k({day:W[2],type:"curr"},f.monthsData[O],!0)}):k({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let z=f.monthsData[f.monthsData.length-1],Y=z.cssHeight+z.cssScrollHeight;zo(()=>{d?.value&&h?.value&&$?.value&&(m.value=d.value.clientHeight,h.value.style.height=`${Y}px`,d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(Y/(f.monthsNum+1))}});const G=(x,_)=>{x>=3?_>0&&_<x?f.defaultRange=[_-1,_+3]:_==0?f.defaultRange=[_,_+4]:_==x&&(f.defaultRange=[_-2,_+2]):f.defaultRange=[0,x+2];let z=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=z},K=(x,_)=>(e.type=="range"||e.type=="week")&&x.type=="curr"&&N(x,_)=="fox-calendar__day--active",X=(x,_)=>K(x,_)&&I(B(x,_)),J=(x,_)=>f.currDate.length>=2&&q(B(x,_))?K(x,_):!1,te=()=>{if(f.currDate.length>=2)return oe.isEqual(f.currDate[0],f.currDate[1])},P=x=>{const _=`${x.year}-${x.month}-${Number(x.day)<10?"0"+x.day:x.day}`;return oe.isEqual(_,oe.date2Str(new Date))},Q=x=>{if(f.monthsData.length<=1)return;const _=x.target.scrollTop;let z=Math.floor(_/f.avgHeight);if(z==0)_>=f.monthsData[z+1].cssScrollHeight&&(z+=1);else if(z>0&&z<f.monthsNum-1)_>=f.monthsData[z+1].cssScrollHeight&&(z+=1),_<f.monthsData[z].cssScrollHeight&&(z-=1);else{const Y=Math.round(_+m.value);Y<f.monthsData[z].cssScrollHeight+f.monthsData[z].cssHeight&&_>f.monthsData[z-1].cssScrollHeight&&(z-=1),z+1<=f.monthsNum&&Y>=f.monthsData[z+1].cssScrollHeight+f.monthsData[z+1].cssHeight&&(z+=1),z>=1&&_<f.monthsData[z-1].cssScrollHeight&&(z-=1)}f.currentIndex!==z&&(f.currentIndex=z,G(f.monthsNum,z)),f.yearMonthTitle=f.monthsData[z].title},ne=()=>{f.chooseData.splice(0),f.monthsData.splice(0),V()};return V(),t.watch(()=>e.defaultValue,x=>{x&&e.poppable&&ne()}),{dayTitleStyle:i,dayCellStyle:s,weeks:u,compConthsData:g,showTopBtn:S,topInfo:y,bottomInfo:b,rangeTip:te,mothsViewScroll:Q,getClass:N,isStartTip:X,isEndTip:J,chooseDay:k,isCurrDay:P,confirm:v,months:d,...t.toRefs(f),...t.toRefs(e),...a,monthsPanel:h,weeksPanel:p,viewArea:$}}}),Sc={class:"fox-calendar__header"},vc={key:0,class:"fox-calendar__header-title"},Cc={key:1,class:"fox-calendar__header-slot"},Tc={key:2,class:"fox-calendar__header-subtitle"},kc={class:"fox-calendar__weekdays",ref:"weeksPanel"},$c={class:"fox-calendar__panel",ref:"monthsPanel"},Dc={class:"fox-calendar__days"},xc=["onClick"],Ec={class:"fox-calendar__day-value"},Nc={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Vc={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Ic={key:2,class:"fox-calendar__day-tips--curr"},Oc={key:4,class:"fox-calendar__day-tip"},Bc={key:0,class:"fox-calendar__footer"};function Ac(e,n,l,o,r,a){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Sc,[e.showTitle?(t.openBlock(),t.createElementBlock("view",vc,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Cc,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Tc,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",kc,[(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",$c,[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",Dc,[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,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:d=>e.chooseDay(c,i)},[t.createElementVNode("view",Ec,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Nc,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Vc,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",Ic,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,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(c,i)?(t.openBlock(),t.createElementBlock("view",Oc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,xc))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Bc,[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 rr=ue(wc,[["render",Ac]]),{create:Fc}=le("calendar-picker"),Rc=Fc({components:{[rr.name]:rr,[_e.name]:_e},props:{...ro},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:l}){const o=t.computed(()=>l.btn),r=t.computed(()=>l["top-info"]),a=t.computed(()=>l.day),i=t.computed(()=>l["bottom-info"]),s=t.ref(null),c=g=>{s.value?.scrollToDate(g)},u=()=>{s.value?.initPosition()};t.watch(()=>e.visible,g=>{g&&t.nextTick(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),me({scrollToDate:c,initPosition:u});const d=()=>{n("update:visible",!1)},h=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{h()},update:d,close:h,select:g=>{n("select",g)},choose:g=>{h(),n("choose",g)},calendarRef:s,showTopBtn:o,topInfo:r,dayInfo:a,bottomInfo:i}}});function Mc(e,n,l,o,r,a){const i=t.resolveComponent("fox-calendar-pane"),s=t.resolveComponent("fox-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,style:e.popupStyles}),{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(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.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","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(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.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 ln=ue(Rc,[["render",Mc]]),ao=(e,n)=>{let l;return Le(e)?l=e:typeof e=="string"&&Oe(e)>0?l=oe.parser(e,n):l=new Date,l},st=(e,n,l)=>(Le(n)||(n=new Date),oe.format(n,l)),ct=e=>{let n=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,o=`${e.getDate()}`,r=oe.date2Str(e),a=oe.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,l,o,r,a]},ar={...ro,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 Lc(e,n,l){return{props:{...ge,...Te,...ar},emits:["change","update:modelValue","blur","focus","clear"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),u=c(o,["placeholder"]);let d=ie(o,"hintText"),h=t.ref(!1);const p=t.ref(!1),$=t.computed(()=>o.type==="range"),m=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),g=()=>{m.startDate!==null&&(m.startDate=null,m.endDate=null,m.startArray=[],m.endArray=[])},S=(V,H="one",R="YYYY-MM-DD")=>{if(pc(V)){g();return}if($.value&&Array.isArray(V)&&V.length==2){let j,G;typeof V[0]=="string"?(j=ao(V[0],R),G=ao(V[1],R)):(j=V[0],G=V[1]);let K=ct(j),X=ct(G);(m.startDate===null||m.startDate.getTime()!==j.getTime()||m.endDate?.getTime()!==G.getTime())&&(m.startDate=j,m.startArray=K,m.endDate=G,m.endArray=X)}else{let j;typeof V=="string"?j=ao(V,R):j=V;let G=ct(j);(m.startDate===null||m.startDate.getTime()!==j.getTime())&&(m.startDate=j,m.startArray=G)}};S(o.modelValue,o.type,o.valueFormat),t.watch(()=>o.modelValue,V=>{S(V,o.type,o.valueFormat)});const y=t.computed(()=>{if(m.startDate===null)return"";if($.value){let V=st(o,m.startDate,o.format),H=st(o,m.endDate,o.format);return`${V} ${o.rangeSeparator} ${H}`}else{let V=st(o,m.startDate,o.format);return o.showWeek&&(V=`${V} ${m.startArray[4]}`),V}}),b=t.computed(()=>{if(m.startDate===null)return null;if($.value){let V=oe.date2Str(m.startDate),H=oe.date2Str(m.endDate??new Date);return[V,H]}else return oe.date2Str(m.startDate)}),f="fox-input-item",F=t.computed(()=>({[f]:!0,[`${f}__disabled`]:a.value})),I=Ve(t.computed(()=>o.textAlign),"textAlign"),q=t.computed(()=>({textAlign:I.value??"right"})),L=t.ref(!1),B=()=>{i.value||a.value||(L.value=!0)},N=()=>{L.value=!1},v=V=>{L.value=V},k=V=>{if(V){if($.value&&Array.isArray(V)){let H=V[0],R=se(H[0]),j=se(H[1]),G=se(H[2]),K=new Date(R,j-1,G),X=V[1];R=se(X[0]),j=se(X[1]),G=se(X[2]);let J=new Date(R,j-1,G);if(m.startDate=K,m.startArray=ct(K),m.endDate=J,m.endArray=ct(J),o.valueFormat){let te=st(o,K,o.valueFormat),P=st(o,J,o.valueFormat);s("update:modelValue",[te,P],{})}else s("update:modelValue",[K,J],{})}else{let H=V,R=se(H[0]),j=se(H[1]),G=se(H[2]),K=new Date(R,j-1,G);if(m.startDate=K,m.startArray=ct(K),o.valueFormat){let X=st(o,K,o.valueFormat);s("update:modelValue",X,{})}else s("update:modelValue",K,{})}s("change",V,{})}},A=V=>{let R=V.target.value;p.value=!0,s("focus",R,V)},C=V=>{setTimeout(()=>{p.value=!1},0);let R=V.target.value;o.maxLength&&R.length>Number(o.maxLength)&&(R=R.slice(0,Number(o.maxLength))),s("blur",R,V)},D=t.computed(()=>Oe(o.unit)>0),E=V=>{g(),s("update:modelValue",null,V),s("change","",V),s("clear","")},M=t.ref();return me({showPicker:B,hidePicker:N,focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const V={class:F.value,style:q.value,type:"text",maxlength:o.maxLength,placeholder:u.placeholder.value,readonly:!0,clearable:o.clearable,value:y.value,onClick:B,onFocus:A,onBlur:C,onClear:E},H={};r.slots.prepend&&(H.prepend=r.slots.prepend),r.slots.append&&(H.append=r.slots.append),r.slots.prefix?H.prefix=r.slots.prefix:H.prefix=()=>t.h(T.ElIcon,{},{default:()=>t.h(ye.Calendar)}),r.slots.suffix?H.suffix=r.slots.suffix:D.value&&(H.suffix=()=>[o.unit]);const R=[],j=t.h(T.ElInput,V,H);R.push(j);const G={default:()=>R};r.slots.default&&(G.label=r.slots.default),r.slots.fixedTip&&(G.fixedTip=r.slots.fixedTip);const K=pt(o,ro);K.visible=L.value,K["onUpdate:visible"]=v,K["default-value"]=b.value,K.onChoose=k;const X={};if(r.slots.btn){const ne=r.slots.btn();X.btn=()=>ne}r.slots.day&&(X.day=r.slots.day),r.slots.topInfo&&(X.topInfo=r.slots.topInfo),r.slots.bottomInfo&&(X.bottomInfo=r.slots.bottomInfo);const J=t.h(ln,K,X);G.hide=()=>[J];const P={...ve(o,ar),hintText:d.value,hintVisible:h.value,prop:`${o.prop??r.attrs.name}_item`};return t.h(l,P,G)}}}}const{componentName:Pc,create:qc,scope:zc}=le("calendar-item"),io=qc(Lc(Pc,zc,pe)),ir={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function jc(e,n,l){return{props:{...ge,...Te,...ir},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),u=c(o,["placeholder"]),d=t.ref(!1),h=ie(o,"modelValue"),p=e,$=t.computed(()=>({[p]:!0})),m=q=>{h.value=q,s("update:modelValue",q),s("change",q)};let g=ie(o,"hintText"),S=t.ref(!1);const y=q=>{let B=q.target.value;d.value=!0,be(g.value)||(S.value=!0),s("focus",B,q)},b=q=>{setTimeout(()=>{S.value&&(S.value=!1),d.value=!1},0);let B=q.target.value;o.maxLength&&B.length>Number(o.maxLength)&&(B=B.slice(0,Number(o.maxLength))),s("blur",B,q)},f=()=>{s("clear","")},F=q=>{s("visible-change",q)},I=t.ref();return me({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()}}),()=>{const L={...r.attrs,ref:I,class:$.value,placeholder:u.placeholder.value,disabled:a.value,readonly:i.value,modelValue:h.value,"onUpdate:modelValue":m,onClear:f,onFocus:y,onBlur:b,onVisibleChange:F},B={},N=[],v=t.h(T.ElTimePicker,L,B);N.push(v);const k={default:()=>N};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const C={...ve(o,ir),hintText:g.value,hintVisible:S.value,prop:`${o.prop}_item`};return t.h(l,C,k)}}}}const{componentName:_c,create:Hc,scope:Kc}=le("time-item"),so=Hc(jc(_c,Kc,pe)),sr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Wc(e,n,l){return{props:{...ge,...Te,...sr},emits:["change","update:modelValue","blur","focus","clear"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),u=c(o,["placeholder"]),d=t.ref(!1),h=ie(o,"modelValue"),p=e,$=t.computed(()=>({[p]:!0})),m=I=>{h.value=I,s("update:modelValue",I),s("change",I)};let g=ie(o,"hintText"),S=t.ref(!1);const y=I=>{let L=I.target.value;d.value=!0,be(g.value)||(S.value=!0),s("focus",L,I)},b=I=>{setTimeout(()=>{S.value&&(S.value=!1),d.value=!1},0);let L=I.target.value;o.maxLength&&L.length>Number(o.maxLength)&&(L=L.slice(0,Number(o.maxLength))),s("blur",L,I)},f=()=>{s("clear","")},F=t.ref();return me({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},handleOpen:()=>{F?.value.handleOpen()},handleClose:()=>{F?.value.handleClose()}}),()=>{const q={...r.attrs,ref:F,class:$.value,placeholder:u.placeholder.value,disabled:a.value,readonly:i.value,modelValue:h.value,"onUpdate:modelValue":m,onClear:f,onFocus:y,onBlur:b},L={},B=[],N=t.h(T.ElTimeSelect,q,L);B.push(N);const v={default:()=>B};r.slots.default&&(v.label=r.slots.default),r.slots.fixedTip&&(v.fixedTip=r.slots.fixedTip);const A={...ve(o,sr),hintText:g.value,hintVisible:S.value,prop:`${o.prop}_item`};return t.h(l,A,v)}}}}const{componentName:Yc,create:Uc,scope:Gc}=le("time-select-item"),co=Uc(Wc(Yc,Gc,pe));function cr(e,n=0){let l=`${e}`,o=l.indexOf(".");if(o==-1)return l;let r=o;for(let a=l.length-1;a>=o;a--)if(l.charAt(a)!="0"){r=a;break}return r-o<n?r=o+n+1:r!=o&&(r+=1),r>l.length?l=l.padEnd(r,"0"):l=l.substring(0,r),l}function ur(e,n,l=20){if(typeof n=="string"&&(n=se(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Yo(`${e}`,`${n}`);return cr(o)}else{let o=Cn(`${e}`,Uo(`${n}`),20);return cr(o)}}function Xc(e,n=-1,l=!1,o=3,r=","){return Rt(e,n,l,o,r)}function fr(e,n,l,o,r=!0){if(e=="")return"";if(e=Go(e),n=se(n),n==1)return e;if(o)e=ur(e,n),l&&(e=="0"&&r?e=`${e}.`.padEnd(se(l)+2,"0"):e=Cn(e,1,se(l)));else{let a=-1*n;e=ur(e,a)}return e}function dr(e,n){let l={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=re(n.minInclude),r=Tn(e,n.min);if(o&&r==-1||!o&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";l.message=a.replace("{0}",n.min),l.minValid=!1}}if(n.max!=null){let o=re(n.maxInclude),r=Tn(e,n.max);(o&&r==1||!o&&(r==0||r==1))&&(l.maxValid=!1)}return l}const hr={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 Zc(e,n,l){return{props:{...ge,...Te,...hr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),c=t.ref(!1),u=ie(o,"modelValue"),d=t.ref("");t.watch([()=>u.value,()=>o.rates,()=>o.precision],([C,D,E])=>{if(be(C)){d.value="";return}const M=fr(C,D,E,!1);d.value!==M&&(d.value=M)},{immediate:!0});const h=t.computed(()=>{let C="";return c.value&&(C=d.value),C}),{t:p}=Ee.useFoxI18n(n),$=t.computed(()=>{let C=o.placeholder??"";return!c.value&&!be(d.value)?C=Xc(d.value,o.decimalLength,o.autoPadding,o.digits,o.separator):C=p(["placeholder",C]),C}),m=e,g=t.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value,[`${m}__placeholder`]:d.value.length>0})),S=Ve(t.computed(()=>o.textAlign),"textAlign");t.computed(()=>c.value?{textAlign:"left"}:{textAlign:S.value??"right"});const y=t.ref(""),b=t.computed(()=>{let C=y.value;return be(C)&&(C=o.errorTip??""),C}),f=t.ref(""),F=t.ref(!1),I=(C,D)=>{if(C=`${C}`,be(C)){d.value="",u.value="",D.forEach(E=>{s(E,"")}),re(o.showTip)&&F.value&&(F.value=!1);return}if(C.length>=2){let E=C;if(E.charAt(0)=="-"&&(E=E.substring(1)),E.length>=2&&E.charAt(0)=="0"&&E.charAt(1)!="."){t.triggerRef(d);return}}if(C!="-"){if(!ll(C)){t.triggerRef(d);return}if(o.integerLength!=-1&&rl(C)>Number(o.integerLength)){t.triggerRef(d);return}if(o.decimalLength&&o.decimalLength!=-1&&al(C)>Number(o.decimalLength)){t.triggerRef(d);return}let E=dr(C,o);if(E.maxValid===!1){y.value=E.message,t.triggerRef(d);return}}else if(o.min!=null&&se(o.min)>=0){t.triggerRef(d);return}f.value=C,re(o.showTip)&&(F.value=C.length>0),d.value=C,u.value=fr(C,o.rates,o.precision,!0),D.forEach(E=>{s(E,u.value)})},q=C=>{I(C,["update:modelValue","input"])},L=C=>{I(C,["update:modelValue","change"])},B=C=>{if(c.value=!0,re(o.showTip)){let D=d.value;be(D)&&(D=o.hintText),be(D)||(f.value=D,F.value=!0)}y.value="",s("focus",u.value,C)},N=C=>{if(setTimeout(()=>{c.value=!1,re(o.showTip)&&F.value===!0&&(F.value=!1)},0),!be(d.value)){let D=dr(d.value,o);if(D.minValid===!1||D.maxValid===!1){y.value=D.message;return}}s("update:modelValue",u.value,C),s("blur",u.value,C)},v=()=>{s("clear","")},k=t.computed(()=>Oe(o.unit)>0),A=t.ref();return me({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const D={...je(r.attrs),ref:A,class:g.value,type:"digit",maxlength:o.maxLength,placeholder:$.value,clearable:o.clearable,disabled:a.value,readonly:i.value,modelValue:h.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:v,onInput:q,onChange:L,onFocus:B,onBlur:N},E={};r.slots.prepend&&(E.prepend=r.slots.prepend),r.slots.append&&(E.append=r.slots.append),r.slots.prefix&&(E.prefix=r.slots.prefix),r.slots.suffix?E.suffix=r.slots.suffix:k.value&&(E.suffix=()=>[o.unit]);const M=[],V=t.h(T.ElInput,D,E);M.push(V);const H={default:()=>M};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const j={...ve(o,hr),errorTip:b.value,hintText:f.value,hintVisible:F.value,hintType:"number",prop:`${o.prop}_item`};return t.h(l,j,H)}}}}const{componentName:Jc,create:Qc,scope:eu}=le("money-item"),uo=Qc(Zc(Jc,eu,pe)),mr={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 tu(e,n,l){return{props:{...ge,...Te,...mr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),u=c(o,["placeholder"]),d=t.ref(!1),h=ie(o,"modelValue"),p=e,$=t.computed(()=>({[p]:!0,[`${p}__append`]:q.value})),m=t.computed(()=>({[`${p}__unit`]:!0})),g=B=>{h.value=B,s("update:modelValue",B),s("input",B)},S=B=>{s("change",B)};let y=ie(o,"hintText"),b=t.ref(!1);const f=B=>{let v=B.target.value;d.value=!0,be(y.value)||(b.value=!0),s("focus",v,B)},F=B=>{setTimeout(()=>{b.value&&(b.value=!1),d.value=!1},0);let v=B.target.value;o.maxLength&&v.length>Number(o.maxLength)&&(v=v.slice(0,Number(o.maxLength))),s("blur",v,B)},I=()=>{s("clear","")},q=t.computed(()=>Oe(o.unit)>0),L=t.ref();return me({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const N={...je(r.attrs),ref:L,class:$.value,placeholder:u.placeholder.value,clearable:o.clearable,disabled:a.value,readonly:i.value,modelValue:h.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:I,onChange:S,onInput:g,onFocus:f,onBlur:F},v={},k=[],A=t.h(T.ElInputNumber,N,v);k.push(A);const C={default:()=>k};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const E={...ve(o,mr),hintText:y.value,hintVisible:b.value,prop:`${o.prop}_item`};if(r.slots.append)C.append=r.slots.append;else if(q.value){const V={class:m.value},H=t.h("div",V,[o.unit]);C.append=()=>H}return t.h(l,E,C)}}}}const{componentName:nu,create:ou,scope:lu}=le("input-number-item"),fo=ou(tu(nu,lu,pe));function $t(e,n){const l=e.textKey??"text";return n[l]??""}function Dt(e,n){const l=e.valueKey??"value";return n[l]}function gr(e,n){const l=e.childrenKey??"children";return n[l]}function rn(e,n=[]){const l={texts:[],values:[]};for(let o=0;o<n.length;o++){const r=n[o],a=$t(e,r),i=Dt(e,r);l.texts.push(a),l.values.push(i??"")}return l}function pr(e,n,l,o,r=[]){if(!l)return;const a=l[o];for(let i=0;i<n.length;i++)if($t(e,n[i])===a){const c=Dt(e,n[i])??"",u={[e.textKey]:a,[e.valueKey]:c};r.push(u);const d=gr(e,n[i]);Array.isArray(d)&&pr(e,d,l,o+1,r);return}}function yr(e,n,l,o,r=[]){if(!l)return;const a=l[o];for(let i=0;i<n.length;i++)if(Dt(e,n[i])===a){const c=$t(e,n[i])??"",u={[e.textKey]:c,[e.valueKey]:a};r.push(u);const d=gr(e,n[i]);Array.isArray(d)&&yr(e,d,l,o+1,r);return}}function ho(e,n,l){if(n===l)return!0;if(n.length!==l.length)return!1;for(let o=0;o<n.length;o++){const r=$t(e,n[o]),a=$t(e,l[o]);if(r!==a)return!1;const i=Dt(e,n[o]),s=Dt(e,l[o]);if(i!==s)return!1}return!0}let ru=class{proxy;constructor(n){this.proxy=n}async load(n,l){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(l);const r=Fe(this.proxy,o);return r===null?(console.error(`${o} component not found api function`),[]):(Be(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(n,l))}};function au(){const e=t.getCurrentInstance();return new ru(e.proxy)}const an=(e,n,l)=>e.map(o=>{const{value:r="value",text:a="text",children:i="children"}=l??{},{[r]:s,[a]:c,[i]:u,...d}=o,h={loading:!1,...d,level:n?(n&&n.level||0)+1:0,value:s,text:c,children:u,_parent:n};return h.children&&h.children.length&&(h.children=an(h.children,h,l)),h}),br=(e,n)=>{let l=0,o;for(;(o=e[l++])&&n(o)!==!0;)o.children&&o.children.length&&br(o.children,n)},iu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},su=(e,n)=>{const l={...iu,...n||{}},{topId:o,idKey:r,pidKey:a,sortKey:i}=l;let s=[],c={};return e.forEach(u=>{u={...u};const{[r]:d,[a]:h}=u,p=c[h]=c[h]||[];!s.length&&h===o&&(s=p),p.push(u),u.children=c[d]||(c[d]=[])}),i&&Object.keys(c).forEach(u=>{c[u].length>1&&c[u].sort((d,h)=>d[i]-h[i])}),c=null,s},cu=/scroll|auto|overlay/i,uu=window;function fu(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function wr(e,n=uu){let l=e;for(;l&&l!==n&&fu(l);){const{overflowY:o}=window.getComputedStyle(l);if(cu.test(o))return l;l=l.parentNode}return n}const{create:du}=le("sticky"),hu=du({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const l=t.ref(),o=t.ref(),r=t.reactive({fixed:!1,height:0,transform:0}),a=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),i=t.computed(()=>r.fixed?{height:`${r.height}px`}:{}),s=t.computed(()=>r.fixed?{[e.position]:`${a.value}px`,transform:r.transform?`translate3d(0, ${r.transform}px, 0)`:void 0,position:r.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const u=e.container;if(!l.value&&!u)return;const d=Qe(l),h=o.value,p=Qe(h),$=Qe(u);r.height=d.height;const m=()=>{let S=!1;if(e.position==="top")S=u?a.value>d.top&&$.bottom>0:a.value>d.top;else{const y=document.documentElement.clientHeight;S=u?$.bottom>0&&y-a.value-p.height>$.top:y-a.value<d.bottom}return S},g=()=>{if(u)if(e.position==="top"){const S=$.bottom-a.value-p.height;return S<0?S:0}else{const S=document.documentElement.clientHeight,y=$.bottom-(S-a.value);return y<0?y:0}return 0};r.transform=g(),r.fixed=m()};return t.watch(()=>r.fixed,u=>{n("change",u)}),t.onMounted(()=>{c(),wr(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{wr(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:i,stickyRef:o,stickyStyle:s}}});function mu(e,n,l,o,r,a){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const xt=ue(hu,[["render",mu]]),gu=(e,n,l,o)=>{const r=t.ref(),a=t.ref({width:0,height:0}),i=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let p=await o(r,l);a.value.width=p.width||0,a.value.height=p.height||0}else a.value.width=r.value?.clientWidth||0,a.value.height=r.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{i()},100)});const s=t.reactive({offset:0,moving:!1}),c=Jn();let u="";const d=(p,$)=>{let m=p;switch(e.direction=="horizontal"?(u=p>0?"right":"left",m=Math.abs(m)/a.value.width*100):(u=$>0?"bottom":"top",m=$,m=Math.abs(m)/a.value?.height*100),m>85&&(m=85),u){case"left":case"top":n.isEnd()&&(m=0,s.moving=!1);break;case"right":case"bottom":m=-m,n.isBegin()&&(m=0,s.moving=!1);break}s.offset=m};return{touchMethods:{onTouchStart(p){e.swipeable&&c.start(p)},onTouchMove(p){e.swipeable&&(c.move(p),s.moving=!0,d(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(p.preventDefault(),p.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(p.preventDefault(),p.stopPropagation()))},onTouchEnd(){if(s.moving)switch(s.moving=!1,u){case"left":case"top":s.offset>35&&n.next();break;case"right":case"bottom":s.offset<-35&&n.prev();break}}},touchState:s,tabsContentRef:r}};class pu{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:yu}=le("ext-tabs"),bu=yu({components:{[xt.name]:xt,JoySmile:ns},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:l}){const o=t.ref(null);let r;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const a=t.ref([]),i=N=>{N.forEach((v,k)=>{let A=v.type;if(A=A.name||A,A=="fox-ext-tab-pane"){let C=new pu;if(v.props?.title||v.props?.["pane-key"]||v.props?.paneKey){let D=nt(v.props?.["pane-key"]),E=D=="number"||D=="string"?String(v.props?.["pane-key"]):null,M=nt(v.props?.paneKey),V=M=="number"||M=="string"?String(v.props?.paneKey):null;C.title=v.props?.title,C.paneKey=E||V||String(k),C.disabled=v.props?.disabled}a.value.push(C)}else{if(v.children==" ")return;Array.isArray(v.children)&&i(v.children)}})},s=t.ref(e.modelValue||0),c=N=>{let v=a.value.findIndex(k=>k.paneKey==N);a.value.length==0||v==-1||(s.value=v)},u=t.computed(()=>e.titleScroll&&e.direction==="vertical"),d=t.ref(),h=t.ref([]),p=N=>{const v=d.value,k=h.value;if(!v||!k||!k[s.value])return;const A=k[s.value];let C=0;e.direction==="vertical"?C=A.offsetTop-v.offsetTop+10-(v.offsetHeight-A.offsetHeight)/2:C=A.offsetLeft-(v.offsetWidth-A.offsetWidth)/2,$(v,C,N?0:.3,e.direction)},$=(N,v,k,A)=>{let C=0;const D=A==="horizontal"?N.scrollLeft:N.scrollTop,E=k===0?1:Math.round(k*1e3/16);function M(){A==="horizontal"?N.scrollLeft+=(v-D)/E:N.scrollTop+=(v-D)/E,++C<E&&Xo(M)}M()},m=(N=l.default?.())=>{a.value=[],N=N?.filter(v=>typeof v.children!="string"),N&&N.length&&i(N),c(e.modelValue),t.nextTick(()=>{p()})},g=N=>{r=N.fixed};t.watch(()=>l.default?.(),N=>{m(N)});const S=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,N=>{if(c(N),p(),r){let v=Qe(o.value).top+S(),k=Math.ceil(v-e.top);window.scrollTo({top:k,behavior:"smooth"})}}),t.onMounted(m),t.onActivated(m);const y={isBegin:()=>s.value==0,isEnd:()=>s.value==a.value.length-1,next:()=>{s.value+=1,y.updateValue(a.value[s.value])},prev:()=>{s.value-=1,y.updateValue(a.value[s.value])},updateValue:N=>{n("update:modelValue",N.paneKey),n("change",N)},tabChange:(N,v)=>{n("click",N),!(N.disabled||s.value==v)&&(s.value=v,y.updateValue(N))},setTabItemRef:(N,v)=>{h.value[v]=N}},{tabsContentRef:b,touchState:f,touchMethods:F}=gu(e,y),I=t.computed(()=>{let N=s.value*100;f.moving&&(N+=f.offset);let v={transform:e.direction=="horizontal"?`translate3d(-${N}%, 0, 0)`:`translate3d( 0,-${N}%, 0)`,transitionDuration:f.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(v={}),v}),q=t.computed(()=>({background:e.background})),L=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),B=t.computed(()=>{if(!e.titleGutter)return{};const N=Ce(e.titleGutter);return e.direction==="vertical"?{marginTop:N,marginBottom:N}:{marginLeft:N,marginRight:N}});return{navRef:d,tabsContentRef:b,titles:a,contentStyle:I,tabsNavStyle:q,titleStyle:B,tabsActiveStyle:L,container:o,getScrollY:u,onStickyScroll:g,...y,...F}}}),wu=["onClick"],Su=["onClick"];function vu(e,n,l,o,r,a){const i=t.resolveComponent("JoySmile"),s=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(s,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:d=>e.tabChange(c,u),key:c.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(i,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,wu))),128))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:d=>e.tabChange(c,u),key:c.paneKey,ref_for:!0,ref:d=>e.setTabItemRef(d,u)},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(i,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,Su))),128))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[1]||(n[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[2]||(n[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const Et=ue(bu,[["render",vu]]),{create:Cu}=le("ext-tab-pane"),Tu=Cu({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const l=t.inject("tabsOpiton"),o=t.computed(()=>({display:l.animatedTime.value==0&&e.paneKey!=l.activeKey.value?"none":void 0}));return{...l,paneStyle:o}}});function ku(e,n,l,o,r,a){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const Nt=ue(Tu,[["render",ku]]);class Sr{nodes;config;constructor(n,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=an(n,null,this.config)}updateChildren(n,l){l?l.children=an(n,l,this.config):this.nodes=an(n,null,this.config)}getNodeByValue(n){let l;return br(this.nodes,o=>{if(o.value===n)return l=o,!0}),l}getPathNodesByValue(n){if(!n.length)return[];const l=[];let o=this.nodes;for(;o&&o.length;){const r=o.find(a=>a.value===n[a.level]);if(!r)break;l.push(r),o=r.children}return l}isLeaf(n,l){const{leaf:o,children:r}=n,a=Array.isArray(r)&&!!r.length;return o||!a&&!l}hasChildren(n,l){if(this.isLeaf(n,l))return!1;const{children:r}=n;return Array.isArray(r)&&!!r.length}}const{create:$u,scope:Du}=le("cascader-pane"),xu=$u({components:{Loading:Ji,Checklist:us,[Et.name]:Et,[Nt.name]:Nt},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 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),a=t.ref(e.modelValue),i=t.ref(new Sr([],{})),s=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),u=new Map;let d;const h=async()=>{u.clear(),s.value=[],o.value=0,r.value=!1,d=null;let{options:y}=e;l.value.convertConfig&&(y=su(y,l.value.convertConfig)),i.value=new Sr(y,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),c.value&&!i.value.nodes.length&&await $({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:i.value.nodes,selectedNode:null}],p()},p=async()=>{const y=a.value;if(y===void 0||!i.value.nodes.length)return;if(y.length===0){o.value=0,s.value=[{nodes:i.value.nodes,selectedNode:null}];return}let b=y;if(c.value&&Array.isArray(y)&&y.length){b=[];let f=i.value.nodes.find(F=>F.value===y[0]);if(f){b=[f.value],r.value=!0;const F=await y.slice(1).reduce(async(I,q)=>{const L=await I;await $(L);const B=L?.children?.find(N=>N.value===q);return B&&b.push(q),Promise.resolve(B)},Promise.resolve(f));await $(F),r.value=!1}}b.length&&y===e.modelValue&&i.value.getPathNodesByValue(b).map((F,I)=>{o.value=I,S.handleNode(F,!0)})},$=async y=>{if(!y)return;if(!l.value.lazyLoad){y.leaf=!0;return}if(i.value.isLeaf(y,c.value)||i.value.hasChildren(y,c.value))return;y.loading=!0;const b=y.root?null:y;let f=u.get(y);f||(f=new Promise(I=>{l.value.lazyLoad?.(y,I)}),u.set(y,f));const F=await f;Array.isArray(F)&&F.length>0?i.value.updateChildren(F,b):y.leaf=!0,y.loading=!1,u.delete(y)},m=y=>{const b=y.map(f=>f.value);a.value=b,n("change",b,y),n("update:modelValue",b,y)},{t:g}=Ee.useFoxI18n(Du),S={async handleNode(y,b){const{disabled:f,loading:F}=y;if(!(!b&&f||!s.value[o.value])){if(i.value.isLeaf(y,c.value)){if(y.leaf=!0,s.value[o.value].selectedNode=y,s.value=s.value.slice(0,y.level+1),!b){const I=s.value.map(q=>q.selectedNode);m(I),n("pathChange",I)}return}if(i.value.hasChildren(y,c.value)){const I=y.level+1;if(s.value[o.value].selectedNode=y,s.value=s.value.slice(0,I),s.value.push({nodes:y.children||[],selectedNode:null}),o.value=I,!b){const q=s.value.map(L=>L.selectedNode);n("pathChange",q)}return}d=y,!F&&(await $(y),d===y&&(s.value[o.value].selectedNode=y,S.handleNode(y,b)))}},handleTabClick(y){d=null,o.value=Number(y.paneKey)},formatTabTitle(y){return y.selectedNode?y.selectedNode.text:g("select")},isSelected(y,b){return y.selectedNode&&y.selectedNode.value===b.value}};return t.watch([l,()=>e.options],()=>{h()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,y=>{y!==a.value&&(a.value=y,p())}),t.watch(()=>e.visible,y=>{y&&Array.isArray(a.value)&&a.value.length>0&&p()}),{panes:s,initLoading:r,tabsCursor:o,...S}}}),Eu={role:"menu",class:"fox-cascader__pane"},Nu=["aria-checked","aria-disabled","onClick"],Vu={class:"fox-cascader__item__title"},Iu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Ou(e,n,l,o,r,a){const i=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-ext-tab-pane"),u=t.resolveComponent("fox-ext-tabs");return t.openBlock(),t.createBlock(u,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,h)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(d),key:h},{default:t.withCtx(()=>[t.createElementVNode("view",Eu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,p=>(t.openBlock(),t.createElementBlock("view",{key:p.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,p),disabled:p.disabled}]),"aria-checked":e.isSelected(d,p),"aria-disabled":p.disabled||void 0,role:"menuitemradio",onClick:$=>e.handleNode(p,!1)},[t.createElementVNode("view",Vu,t.toDisplayString(p.text),1),p.loading?(t.openBlock(),t.createBlock(i,{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,Nu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Iu]),_:1}))]),_:1},8,["modelValue","onClick"])}const vr=ue(xu,[["render",Ou]]),{create:Bu}=le("cascader-picker"),Au=Bu({components:{[vr.name]:vr,[_e.name]:_e},props:{...Gn,modelValue:{type:[Array,String]},visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const l=t.ref(e.modelValue||[]),o=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),r=(i,s)=>{l.value=i,o.value=!1,n("change",i,s),n("update:modelValue",i)},a=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==l.value&&(l.value=i)}),{onChange:r,onPathChange:a,innerValue:l,innerVisible:o}}}),Fu=["innerHTML"];function Ru(e,n,l,o,r,a){const i=t.resolveComponent("fox-cascader-pane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),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,Fu)):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=ue(Au,[["render",Ru]]),Cr={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 Mu(e,n,l){return{props:{...ge,...Te,...Cr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),u=c(o,["placeholder"]);let d=ie(o,"hintText"),h=t.ref(!1);const p=t.ref(!1),$=au(),m=t.ref([]);t.watch([()=>o.source,()=>o.params],async([M,V])=>{M&&(m.value=await $.load(M,V))},{immediate:!0});const g=t.ref([]),S=t.computed(()=>Array.isArray(g.value)?g.value.join(" "):g.value),y=t.ref([]),b=t.ref([]);t.watch([()=>o.modelValue,m],async([M,V])=>{if(o.lazy===!0){b.value.length==0&&(g.value=Array.isArray(M)?M:[],y.value=Array.isArray(M)?M:[]);return}if(o.valueType==="item"){let H=M;if(!ho(o,H,b.value)){b.value=H;let R=rn(o,H);g.value=R.texts,y.value=R.values}}else if(o.valueType==="text"){let H=M,R=[];if(pr(o,V,H,0,R),!ho(o,R,b.value)){b.value=R;let j=rn(o,R);H.value=j.texts,y.value=j.values}}else{let H=M,R=[];if(yr(o,V,H,0,R),!ho(o,R,b.value)){b.value=R;let j=rn(o,R);g.value=j.texts,H.value=j.values}}});const f=e,F=t.computed(()=>({[f]:!0})),I=Ve(t.computed(()=>o.textAlign),"textAlign"),q=t.computed(()=>({textAlign:I.value??"right"})),L=t.ref(!1),B=()=>{a.value===!0||i.value===!0||(L.value=!0)},N=M=>{L.value=M},v=(M,V)=>{let H=V.map(j=>{if(j==null)return j;let G={...j};return Reflect.deleteProperty(G,"text"),G[o.textKey]=j.text??"",Reflect.deleteProperty(G,"value"),G[o.valueKey]=j.value??"",G});b.value=H;let R=rn(o,H);g.value=R.texts,y.value=R.values,o.valueType==="text"?(s("change",g.value,H),s("update:modelValue",g.value)):o.valueType==="item"?(s("change",H,H),s("update:modelValue",H)):(s("change",y.value,H),s("update:modelValue",y.value)),s("update:pathNodes",H)},k=M=>{let V=M.map(H=>{if(H==null)return H;let R={...H};return Reflect.deleteProperty(R,"text"),R[o.textKey]=H.text??"",Reflect.deleteProperty(R,"value"),R[o.valueKey]=H.value??"",R});s("pathChange",V)},A=M=>{p.value=!0,s("focus",y.value,M)},C=M=>{setTimeout(()=>{p.value=!1},0),s("blur",y.value,M)},D=t.computed(()=>Oe(o.unit)>0);t.computed(()=>o.clearable&&!a.value&&!i.value);const E=t.ref();return me({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},select:()=>{E?.value.select()}}),()=>{const M={class:F.value,style:q.value,type:"text",maxlength:o.maxLength,placeholder:u.placeholder.value,readonly:!0,value:S.value,onClick:B,onFocus:A,onBlur:C},V={};r.slots.prepend&&(V.prepend=r.slots.prepend),r.slots.append&&(V.append=r.slots.append),r.slots.prefix&&(V.prefix=r.slots.prefix),r.slots.suffix?V.suffix=r.slots.suffix:D.value?V.suffix=()=>[o.unit]:V.suffix=()=>t.h(T.ElIcon,{},{default:()=>t.h(ye.ArrowDown)});const H=[],R=t.h(T.ElInput,M,V);H.push(R);const j={default:()=>H};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);let G={};G.visible=L.value,G["onUpdate:visible"]=N,G.modelValue=y.value,G.onChange=v,G.onPathChange=k,G.options=m.value,G.title=o.title,G.lazy=o.lazy,G.lazyLoad=o.lazyLoad,G.valueKey=o.valueKey,G.textKey=o.textKey,G.childrenKey=o.childrenKey,G.convertConfig=o.convertConfig;const K=t.h(sn,G);j.hide=()=>[K];const J={...ve(o,Cr),hintText:d.value,hintVisible:h.value,prop:`${o.prop??r.attrs.name}_item`};return t.h(l,J,j)}}}}const{componentName:Lu,create:Pu,scope:qu}=le("cascader-item"),mo=Pu(Mu(Lu,qu,pe)),Tr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function zu(e,n,l){return{props:{...ge,...Te,...Tr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),u=c(o,["placeholder"]),d=t.ref(!1),h=ie(o,"modelValue"),p=e,$=t.computed(()=>({[p]:!0})),m=L=>{h.value=L,s("update:modelValue",L),s("input",L)},g=L=>{s("change",L)},S=L=>{s("select",L)};let y=ie(o,"hintText"),b=t.ref(!1);const f=L=>{let N=L.target.value;d.value=!0,be(y.value)||(b.value=!0),s("focus",N,L)},F=L=>{setTimeout(()=>{b.value&&(b.value=!1),d.value=!1},0);let N=L.target.value;o.maxLength&&N.length>Number(o.maxLength)&&(N=N.slice(0,Number(o.maxLength))),s("blur",N,L)},I=()=>{s("clear","")},q=t.ref();return me({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const B={...r.attrs,ref:q,class:$.value,placeholder:u.placeholder.value,clearable:o.clearable,disabled:a.value,readonly:i.value,modelValue:h.value,onClear:I,onChange:g,onInput:m,onFocus:f,onBlur:F,onSelect:S},N={};r.slots.prepend&&(N.prepend=r.slots.prepend),r.slots.append&&(N.append=r.slots.append),r.slots.prefix&&(N.prefix=r.slots.prefix),r.slots.suffix&&(N.suffix=r.slots.suffix),r.slots.option&&(N.default=r.slots.option);const v=[],k=t.h(T.ElAutocomplete,B,N);v.push(k);const A={default:()=>v};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const D={...ve(o,Tr),hintText:y.value,hintVisible:b.value,prop:`${o.prop}_item`};return t.h(l,D,A)}}}}const{componentName:ju,create:_u,scope:Hu}=le("autocomplete-item"),go=_u(zu(ju,Hu,pe));function Ku(e,n,l,o,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let c=n;for(let u=0;c&&u<a.length;u++){let d=a[u],h=c.find(p=>p[o]===d);if(!h)break;i.push(h[l])}return i}if(Array.isArray(s))for(let c=0;c<n.length&&c<a.length;c++){let u=n[c],d=a[c];const h=u.find(p=>p[o]===d);if(!h)break;i.push(h[l])}else{let c=n;for(let u=0;c&&u<a.length;u++){let d=a[u],h=c.find(p=>p[o]===d);if(!h)break;i.push(h[l]),c=h[r]}}return i}let Wu=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const r=Fe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(l,o))}};function Yu(){const e=t.getCurrentInstance();return new Wu(e.proxy)}const kr={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 Uu(e,n){return{props:{...kr},setup(l,{attrs:o,slots:r}){const a=Yu(),i=t.ref([]);t.watch([()=>l.source,()=>l.params],async([u,d])=>{i.value=await a.load(l.sourceType,u,d)},{immediate:!0});const s=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let u=Ku(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return u.length==0?l.emptyText??"":u.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${u[0]}`:u[0]:u.join(l.separator)}),c=l.resolveTag?t.resolveComponent(l.tag):l.tag;return()=>{const u={...o};return r.default?r.default({text:s.value,value:l.modelValue}):l.resolveTag?l.emptyText!==void 0&&l.emptyText===s.value?t.h(l.emptyTag??"span",{...o,class:l.emptyClass},s.value):t.h(c,u,{default:()=>s.value}):t.h(c,u,s.value)}}}}const{componentName:rm,create:Gu,scope:am}=le("mapping"),Vt=Gu(Uu());function Xu(e,n){let l=n.split("."),o=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),c=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&c!==-1;){let u=a.substring(s+1,c);if(/^\d+$/.test(u)){let d=parseInt(u);if(i==0){let h=a.substring(0,s);o=o[h][d]}else o=o[d];i++}s=a.indexOf("[",c),c=s==-1?-1:a.indexOf("]",s)}i===0&&(o=o[a])}return o}function Zu(e,n){return{props:{...kr},setup(l,{attrs:o,slots:r}){return()=>{const a={default:i=>{const s=Xu(i.row,i.column.property);return r.default?t.h(Vt,{...l,modelValue:s},{default:r.default}):t.h(Vt,{...l,modelValue:s})}};return t.h(T.ElTableColumn,{...o},a)}}}}const{componentName:im,create:Ju,scope:sm}=le("table-mapping-column"),po=Ju(Zu()),Qu=Symbol.for("TableStateKey");function $r(e,n){let l=n.split("."),o=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),c=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&c!==-1;){let u=a.substring(s+1,c);if(/^\d+$/.test(u)){let d=parseInt(u);if(i==0){let h=a.substring(0,s);o=o[h][d]}else o=o[d];i++}s=a.indexOf("[",c),c=s==-1?-1:a.indexOf("]",s)}i===0&&(o=o[a])}return o}function ef(e,n){return{props:{},setup(l,{attrs:o}){const r=t.inject(Qu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const c=$r(s.row,s.column.property),u=a?$r(a,s.column.property):null,d=c===u,h={class:{"el-radio__input":!0,"is-checked":d}},p=t.h("span",h,[t.h("span",{class:{"el-radio__inner":!0}})]),$={class:{"el-radio":!0,"is-checked":d}};return t.h("label",$,[p])}};return t.h(T.ElTableColumn,{...o},i)}}}}const{componentName:cm,create:tf,scope:um}=le("table-radio-column"),yo=tf(ef()),nf={},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"},lf=[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 rf(e,n){return t.openBlock(),t.createElementBlock("svg",of,lf)}const af=ue(nf,[["render",rf]]),{componentName:dm,create:sf,scope:hm}=le("table-setting"),cf={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:"不固定"}},uf=sf({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:af,Download:ye.Download,RefreshLeft:ye.RefreshLeft},props:{...cf},setup(e,{emit:n,attrs:l}){let o=[];const r=t.ref([]),a=t.computed(()=>r.value.filter(P=>P.label===""||P.type?!1:P.fixed===""||P.fixed===!0||P.fixed==="left")),i=t.computed(()=>r.value.filter(P=>P.label===""||P.type?!1:P.fixed==="right")),s=t.computed(()=>r.value.filter(P=>!(P.label===""||P.type||P.fixed!==void 0))),c=t.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),u=t.computed(()=>a.value.length>0),d=t.computed(()=>i.value.length>0),h=P=>P.length>1,p=(P,Q)=>{Array.isArray(P)&&Array.isArray(Q)&&P.forEach(_=>{Q.some(z=>z.prop===_.prop?(_.label=z.label,!0):!1)});const ne=[];r.value=P.map((_,z)=>(!(_.label===""||_.type)&&_.visible!==!1&&ne.push(_.prop),{..._,sortIndex:z})),s.value.length+a.value.length+i.value.length===ne.length?b.value=!0:ne.length>0&&(f.value=!0),q.value=ne},$=P=>P?P.type?P.type:P.label?P.prop:"":"",m=(P,Q)=>{if(P.length!==Q.length)return!1;const ne=P.map(x=>$(x));for(let x of Q){const _=$(x);if(ne.indexOf(_)===-1)return!1}return!0},g=P=>{if(!P){const Q=e.tableRef.getColumnSetting(),ne=Q.srcColumnPropertyList;o=ne.map((x,_)=>({...x,sortIndex:_})),P=Q.columnPropertyList,P&&P.length>0&&m(ne,P)||(P=ne)}p(P,o)},S=()=>{e.tableRef.setColumnSetting(r.value)},y=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=t.ref(!1),f=t.ref(!1),F=P=>{const Q=[];r.value.forEach(x=>{P&&!(x.label===""||x.type)&&Q.push(x.prop),x.visible=P}),b.value=!1,f.value=!1,s.value.length+a.value.length+i.value.length===Q.length?b.value=!0:Q.length>0&&(f.value=!0),q.value=Q,S()},I=()=>{g(o),S()},q=t.ref([]),L=P=>{r.value.forEach(ne=>{if(ne.label===""||ne.type)return;const x=P.indexOf(ne.prop)!==-1;ne.visible=x}),b.value=!1,f.value=!1;const Q=s.value.length+a.value.length+i.value.length;P.length===Q?b.value=!0:P.length>0&&(f.value=!0),S()},B=()=>{g()};t.onMounted(()=>{setTimeout(()=>{g()},50)});const N={currentRow:null,index:null,roleType:null},v=P=>P?P.dataset&&P.dataset.role==="row"?P:P.tagName.toLowerCase()!=="body"?(P=P.parentElement,v(P)):null:null,k=P=>{const Q=P.currentTarget;Q&&Q.dataset&&(N.roleType=Q.dataset.roleType,N.index=Q.dataset.index)},A=P=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},C=P=>{const Q=P.currentTarget;P.relatedTarget;const ne=v(Q);if(!ne)return;const x=ne.dataset&&ne.dataset.roleType;N.roleType===x&&(P.preventDefault(),N.currentRow&&N.currentRow!==ne&&N.currentRow.classList.remove("is-dragover"),ne.classList.add("is-dragover"),N.currentRow=ne)},D=P=>{P.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},E=P=>{const Q=P.currentTarget,ne=v(Q);if(!ne)return;const x=ne.dataset&&ne.dataset.roleType;if(N.roleType!==x)return;P.preventDefault();const _=Number(N.index),z=Number(ne.dataset.index);if(_!==z){if(_<z){const Y=r.value[_];r.value.splice(_,1),r.value.splice(z,0,Y)}else{const Y=r.value[_];r.value.splice(_,1),r.value.splice(z+1,0,Y)}p(r.value,o),S()}},M=P=>{const Q=r.value[P];Q.fixed="left",S()},V=P=>{const Q=r.value[P];Q.fixed="right",S()},H=P=>{const Q=r.value[P];Q.fixed=void 0,S()},R=new Map;let j=null;function G(P){const Q=document.createRange();return Q.setStart(P,0),Q.setEnd(P,P.childNodes.length),Q.getBoundingClientRect().width}return{attrs:l,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:c,isShowLeftFixedTitle:u,isShowRightFixedTitle:d,isDraggble:h,isCheckAll:b,isIndeterminate:f,handleCheckAllChange:F,handleReset:I,checkedValue:q,handleCheckChange:L,onShow:B,onDragStart:k,onDragEnd:A,onDragOver:C,onDragLeave:D,onDrop:E,toLeftFixed:M,toRightFixed:V,toUnFixed:H,checkboxLabelStyle:y,onMouseOverForOverflowText:(P,Q,ne)=>{const x=P.currentTarget;if(x){const _=Math.floor(x.offsetWidth);if(Math.floor(G(x))>_){let Y=R.get(Q);if(Y){if(Y===j)return;xe.hide(Y)}Y=xe.show(x,ne,{type:"text",placement:"top",closeOnClick:!1}),R.set(Q,Y),j=Y}}},onMouseLeaveForOverflowText:(P,Q)=>{const ne=R.get(Q);ne&&(xe.hide(ne),ne===j&&(j=null))},onMouseOverForTip:(P,Q)=>{const ne=P.currentTarget;ne&&(j&&xe.hide(j),j=xe.show(ne,Q,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:P=>{j&&(xe.hide(j),j=null)}}}}),ff={class:"fox-table-setting"},df={class:"fox-table-setting__header"},hf={class:"fox-table-setting__body"},mf={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},gf={key:0,class:"fox-table-setting__body-title"},pf=["data-index","draggable"],yf=["onMouseover","onMouseleave"],bf={class:"tools-item"},wf={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Sf={key:0,class:"fox-table-setting__body-title"},vf=["data-index","draggable"],Cf=["onMouseover","onMouseleave"],Tf={class:"tools-item"},kf={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},$f={key:0,class:"fox-table-setting__body-title"},Df=["data-index","draggable"],xf=["onMouseover","onMouseleave"],Ef={class:"tools-item"};function Nf(e,n,l,o,r,a){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),c=t.resolveComponent("DragIcon"),u=t.resolveComponent("RefreshLeft"),d=t.resolveComponent("FoxIcon"),h=t.resolveComponent("Download"),p=t.resolveComponent("fox-checkbox"),$=t.resolveComponent("FoxCheckboxGroup"),m=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(m,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",ff,[t.createElementVNode("div",df,[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",hf,[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",mf,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",gf,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]=(...S)=>e.onDragStart&&e.onDragStart(...S)),onDragend:n[6]||(n[6]=(...S)=>e.onDragEnd&&e.onDragEnd(...S)),onDrop:n[7]||(n[7]=(...S)=>e.onDrop&&e.onDrop(...S)),onDragover:n[8]||(n[8]=(...S)=>e.onDragOver&&e.onDragOver(...S)),onDragleave:n[9]||(n[9]=(...S)=>e.onDragLeave&&e.onDragLeave(...S))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:S=>e.onMouseOverForOverflowText(S,g.prop,g.label),onMouseleave:S=>e.onMouseLeaveForOverflowText(S,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,yf)]),_:2},1032,["label"]),t.createElementVNode("div",bf,[t.createVNode(d,{onClick:S=>e.toUnFixed(g.sortIndex),onMouseover:n[1]||(n[1]=S=>e.onMouseOverForTip(S,e.unFixedText)),onMouseleave:n[2]||(n[2]=S=>e.onMouseLeaveForTip(S))},{default:t.withCtx(()=>[t.createVNode(u)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:S=>e.toRightFixed(g.sortIndex),onMouseover:n[3]||(n[3]=S=>e.onMouseOverForTip(S,e.fixedRightText)),onMouseleave:n[4]||(n[4]=S=>e.onMouseLeaveForTip(S))},{default:t.withCtx(()=>[t.createVNode(h)]),_:2},1032,["onClick"])])],40,pf))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",wf,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",Sf,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]=(...S)=>e.onDragStart&&e.onDragStart(...S)),onDragend:n[15]||(n[15]=(...S)=>e.onDragEnd&&e.onDragEnd(...S)),onDrop:n[16]||(n[16]=(...S)=>e.onDrop&&e.onDrop(...S)),onDragover:n[17]||(n[17]=(...S)=>e.onDragOver&&e.onDragOver(...S)),onDragleave:n[18]||(n[18]=(...S)=>e.onDragLeave&&e.onDragLeave(...S))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:S=>e.onMouseOverForOverflowText(S,g.prop,g.label),onMouseleave:S=>e.onMouseLeaveForOverflowText(S,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,Cf)]),_:2},1032,["label"]),t.createElementVNode("div",Tf,[t.createVNode(d,{onClick:S=>e.toLeftFixed(g.sortIndex),onMouseover:n[10]||(n[10]=S=>e.onMouseOverForTip(S,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=S=>e.onMouseLeaveForTip(S)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(h)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:S=>e.toRightFixed(g.sortIndex),onMouseover:n[12]||(n[12]=S=>e.onMouseOverForTip(S,e.fixedRightText)),onMouseleave:n[13]||(n[13]=S=>e.onMouseLeaveForTip(S))},{default:t.withCtx(()=>[t.createVNode(h)]),_:2},1032,["onClick"])])],40,vf))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",kf,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",$f,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]=(...S)=>e.onDragStart&&e.onDragStart(...S)),onDragend:n[24]||(n[24]=(...S)=>e.onDragEnd&&e.onDragEnd(...S)),onDrop:n[25]||(n[25]=(...S)=>e.onDrop&&e.onDrop(...S)),onDragover:n[26]||(n[26]=(...S)=>e.onDragOver&&e.onDragOver(...S)),onDragleave:n[27]||(n[27]=(...S)=>e.onDragLeave&&e.onDragLeave(...S))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(p,{class:"checkbox-item",label:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:S=>e.onMouseOverForOverflowText(S,g.prop,g.label),onMouseleave:S=>e.onMouseLeaveForOverflowText(S,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,xf)]),_:2},1032,["label"]),t.createElementVNode("div",Ef,[t.createVNode(d,{onClick:S=>e.toUnFixed(g.sortIndex),onMouseover:n[19]||(n[19]=S=>e.onMouseOverForTip(S,e.unFixedText)),onMouseleave:n[20]||(n[20]=S=>e.onMouseLeaveForTip(S))},{default:t.withCtx(()=>[t.createVNode(u)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:S=>e.toLeftFixed(g.sortIndex),onMouseover:n[21]||(n[21]=S=>e.onMouseOverForTip(S,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=S=>e.onMouseLeaveForTip(S)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(h)]),_:2},1032,["onClick"])])],40,Df))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const cn=ue(uf,[["render",Nf]]);let Vf=class{proxy;constructor(n){this.proxy=n}async load(n,l,o,r,a,i,s){if(Array.isArray(l)){let u=(o-1)*r,d=u+r;d>l.length&&(d=l.length);const h=l.slice(u,d);return{totalSize:l.length,page:h}}if(typeof l=="function")return await Reflect.apply(l,null,[o,r,a,i,s]);const c=Fe(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Be(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await Reflect.apply(c,null,[l,o,r,a,i,s]))}};function If(){const e=t.getCurrentInstance();return new Vf(e.proxy)}class Of{proxy;constructor(n){this.proxy=n}async load(n){let l=null;const o=Fe(this.proxy,"tableSetting");return typeof o=="function"&&(l=await Reflect.apply(o,null,["load",n])),l}save(n,l){const o=Fe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["save",n,l])}remove(n){const l=Fe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",n])}}function Dr(){const e=t.getCurrentInstance();return new Of(e.proxy)}const Bf=Symbol.for("TableStateKey");function Af(e,n){let l=n.split("."),o=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),c=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&c!==-1;){let u=a.substring(s+1,c);if(/^\d+$/.test(u)){let d=parseInt(u);if(i==0){let h=a.substring(0,s);o=o[h][d]}else o=o[d];i++}s=a.indexOf("[",c),c=s==-1?-1:a.indexOf("]",s)}i===0&&(o=o[a])}return o}function bo(e,n){return e.filter(o=>{for(let r in n){const a=n[r],i=Af(o,r);if(a!==i)return!1}return!0})}const xr={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"}},Er={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"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},wo={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:"不固定"}};function Ff(e,n,l){return{inheritAttrs:!1,props:{...ge,...Te,...xr,...Er,...wo},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(o,r){const{locale:a}=Ee.useFoxI18n(n),{emitEvent:i}=Se({componentName:e,validateHandler:{getValue(...W){return f.value}}},o.prop??r.attrs.name),s=e,c=t.computed(()=>({[s]:!0})),u=t.computed(()=>({[`${s}__setting`]:!0})),d=t.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${o.footerAlign}`]:!0})),h=t.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${o.paginationAlign}`]:!0})),p=t.ref(o.pageIndex);t.watch(()=>o.pageIndex,W=>{p.value=W});const $=W=>{p.value=W,i("page-index-change",W)},m=t.ref(o.pageSize);t.watch(()=>o.pageSize,W=>{m.value=W});const g=W=>{m.value=W,i("page-size-change",W)},S=t.shallowRef({}),y=t.computed(()=>({...S.value,...o.params??{},...o.baseParams??{}})),b=t.ref(0),f=t.ref(),F=If();let I=!0;const q=()=>Array.isArray(o.data)?!0:re(o.autoLoad),L=Ve(t.computed(()=>o.lazyLoad),"lazyLoad",Ye.Near,W=>re(W)),B=async(W,O,U,ee)=>{try{const fe=await F.load("table",W,O,U,ee,I,a.value);b.value=fe.totalSize,f.value=fe.page}catch(fe){console.error("[FoxUI] Load Table Data Fail",fe),b.value=0,f.value=[]}I=!1,setTimeout(()=>{i("loaded-data")},250)};t.watch([p,m],([W,O],[U,ee])=>{O!==ee&&(p.value=1,W=1),B(o.data,W,O,y.value)}),t.watch([()=>o.data,y],([W,O],[U,ee])=>{q()&&(W!==U&&(I=!0),!(!Array.isArray(W)&&Pe(W,U)&&Pe(O,ee))&&B(W,p.value,m.value,O))},{deep:!0});const N=(W={},O=!1)=>new Promise(U=>{S.value=t.toRaw(W??{}),t.triggerRef(S),O||(p.value=o.pageIndex??1),t.nextTick(async()=>{await B(o.data,p.value,m.value,y.value),U()})}),v=()=>{b.value=0,f.value=[]};let k=!1;const A=()=>{k||(k=!0,N())};q()&&!L.value&&N();const C=t.ref(null);t.provide(Bf,{currentRow:C});const D=(W,O)=>{C.value=W,i("current-change",W,O)},E=(W,O,U)=>{i("row-click",W,O,U),re(o.rowClickSelectable)===!0&&Z?.value.toggleRowSelection(W)},M=[],V=(W,O)=>{if(i("expand-change",W,O),re(o.uniqueExpansion))if(Array.isArray(O)&&O.length==0){const U=M.length;M.splice(0,U)}else{M.forEach(ee=>{ee!==W&&Z?.value.toggleRowExpansion(ee,!1)});const U=M.length;M.splice(0,U,W)}},H=r.attrs.id??o.prop??r.attrs.name,R=Dr(),j=t.ref([]);let G=[];const K=()=>({srcColumnPropertyList:G.map(O=>({...O})),columnPropertyList:j.value}),X=W=>{j.value=[...W],te()},J=async()=>{const W=await R.load(H);W&&(j.value=W)},te=()=>{R.save(H,j.value)},P=()=>{R.remove(H)};J();const Q=W=>W?W.type?W.type:W.label?W.prop:"":"",ne=t.computed(()=>{if(typeof r.slots.default=="function"){const W=r.slots.default(),O=new Map;if(G=[],W.forEach(U=>{const ee=U;if(!ee.props)return;const fe=Q(ee.props);O.set(fe,U);const de={label:"",prop:""};Object.assign(de,ee.props),G.push(de)}),j.value.length===G.length){const U=[];for(let ee of j.value){const fe=Q(ee),de=O.get(fe);if(!de)return W;if(ee.visible===!1)continue;const mn=de;mn.props.fixed=ee.fixed,U.push(mn)}return U}return W}return[]}),x=t.shallowRef(new Map),_=({column:W,rowIndex:O})=>{const U=`${O}_${W.property}`;return x.value.get(U)??""},z=W=>typeof W=="function"?O=>{const U=[];let ee=_(O);return ee&&U.push(ee),ee=W(O),ee&&U.push(ee),U.length===0?"":U.join(" ")}:_,Y=(W,O,U)=>{const ee=`${W}_${O}`;U?x.value.set(ee,U):x.value.delete(ee),t.triggerRef(x)},Z=t.ref();return me({clearSelection:()=>Z?.value.clearSelection(),getSelectionRows:()=>Z?.value.getSelectionRows(),toggleRowSelection:(W,O)=>{Z?.value.toggleRowSelection(W,O)},toggleRowSelectionByProp:(W,O)=>{if(!f.value)return;const U=bo(f.value,W);U.length!==0&&U.forEach(ee=>{Z?.value.toggleRowSelection(ee,O)})},toggleAllSelection:()=>{Z?.value.toggleAllSelection()},toggleRowExpansion:(W,O)=>{Z?.value.toggleRowExpansion(W,O)},toggleRowExpansionByProp:(W,O)=>{if(!f.value)return;const U=bo(f.value,W);U.length!==0&&U.forEach(ee=>{Z?.value.toggleRowExpansion(ee,O)})},setCurrentRow:W=>{Z?.value.setCurrentRow(W)},setCurrentRowByProp:W=>{if(!f.value)return;const O=bo(f.value,W);O.length!==0&&Z?.value.setCurrentRow(O[0])},getCurrentRow:()=>C.value,clearSort:()=>{Z?.value.clearSort()},clearFilter:W=>{Z?.value.clearFilter(W)},doLayout:()=>{Z?.value.doLayout()},sort:(W,O)=>{Z?.value.sort(W,O)},scrollTo:(W,O)=>{Z?.value.scrollTo(W,O)},setScrollTop:W=>{Z?.value.setScrollTop(W)},setScrollLeft:W=>{Z?.value.setScrollLeft(W)},loadData:N,clearData:v,getData(){return f.value},getTotalSize(){return b.value},getPageIndex(){return p.value},getPageSize(){return m.value},getColumnSetting:K,setColumnSetting:X,removeColumnSetting:P,setCellClassName:Y}),()=>{const O={...je(r.attrs),onCurrentChange:D,onRowClick:E,onExpandChange:V,data:f.value,ref:Z,class:c.value,"cell-class-name":z(o.cellClassName)},U={};r.slots.default&&(U.default=()=>ne.value),r.slots.append&&(U.append=r.slots.append),r.slots.empty&&(U.empty=r.slots.empty);const ee=[],fe=t.h(T.ElTable,O,U);ee.push(fe);let de=null;if(typeof r.slots.pagination=="function")de=r.slots.pagination();else if(o.showPagination){const Bt={class:h.value,total:b.value,pageSize:m.value,"onUpdate:pageSize":g,pageSizes:o.pageSizes,currentPage:p.value,"onUpdate:currentPage":$,hideOnSinglePage:o.hideOnSinglePage,layout:o.paginationLayout,small:!0};de=t.h(T.ElPagination,Bt)}if(o.showSetting){const Bt=[];de&&Bt.push(de);const Gh=t.h(T.ElIcon,{class:u.value},{default:()=>t.h(ye.Setting)}),Xh=pt(o,wo),Zh=t.h(cn,{...Xh,tableRef:{getColumnSetting:K,setColumnSetting:X,removeColumnSetting:P}},{default:()=>Gh});Bt.push(Zh);const Jh=t.h("div",{class:d.value},Bt);ee.push(Jh)}else de&&ee.push(de);const mn={default:()=>ee},Ot={...ve(o,xr,Er,wo),prop:`${o.prop}_item`};return Ot.contentClass=`${s}__wrap`,Ot.errorMarkClass="is-table-error",L.value&&q()&&(Ot["appear-listen"]=!0,Ot.onAppear=A),t.h(l,Ot,mn)}}}}const{componentName:Rf,create:Mf,scope:Lf}=le("table-item"),So=Mf(Ff(Rf,Lf,pe));function ut(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function It(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Pf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let qf=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const r=Fe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(l,o))}};function zf(){const e=t.getCurrentInstance();return new qf(e.proxy)}function Nr(e,n,l){if(n===l)return!0;if(n===null||l===null)return!1;const o=ut(e,n),r=ut(e,l);if(o!==r)return!1;const a=It(e,n),i=It(e,l);return a===i}function jf(e,n,l,o){if(o.length==0||n===""||n===null||n===void 0)return null;let r=null;for(let a of o){let i=!1;if(l==="text")i=ut(e,a)===n;else if(l==="item")i=Nr(e,a,n);else{let s=It(e,a);s==null&&(s=ut(e,a)),i=s===n}if(i){r=a;break}}return r}function _f(e){return{text:e,value:e}}function Hf(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}const Vr={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 Kf(e,n,l){return{inheritAttrs:!0,props:{...ge,...Te,...Vr},emits:["change","update:modelValue"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),c=t.ref(null),u=t.ref(null),d=(L,B,N,v=!0)=>{const k=jf(o,L,B,N);if(k===null){if(u.value===null)return;u.value=null,c.value=null,v&&(s("update:modelValue",null),s("change",null));return}if(!Nr(o,k,u.value)){c.value=L;const C=t.toRaw(k);u.value=C;let D=null;o.valueType==="text"?D=ut(o,C):o.valueType==="item"?D=C:D=It(o,C),v&&(s("update:modelValue",D),s("change",D))}},h=t.ref([]),p=Ve(t.computed(()=>o.lazyLoad),"lazyLoad",Ye.Near,L=>re(L)),$=zf(),m=async(L,B)=>{if(L){const N=await $.load("radio",L,B);if(N.length>0)if(typeof N[0]=="string"){let A=N.map(C=>_f(C));h.value=A}else h.value=N}};t.watch([()=>o.source,()=>o.params],async([L,B])=>{m(L,B)},{immediate:!p.value});let g=!1;const S=()=>{g||(g=!0,m(o.source,o.params))};t.watch([()=>h.value,()=>o.modelValue],([L,B])=>{d(B,o.valueType,L,!1)});const y=e,b=t.computed(()=>({[y]:!0,[`is-${o.direction}`]:!0})),f=L=>{d(L,"value",h.value,!0)};let F=ie(o,"hintText"),I=ie(o,"hintVisible");const q=(L,B)=>{const N=[];return L.forEach((v,k)=>{const A=It(o,v),C=ut(o,v);let D=Pf(o,v);a.value===!0&&(D=a.value),i.value===!0&&(D=i.value);const E=Hf(o,v,k)??{},M=`${A}_${k}`,V={...E,key:M,label:A,size:o.size,border:re(o.border)};D&&(V.disabled=D),o.itemType==="button"?N.push(t.h(T.ElRadioButton,V,{default:()=>[C]})):typeof B=="function"?N.push(t.h(T.ElRadio,V,{default:()=>B(v)})):N.push(t.h(T.ElRadio,V,{default:()=>[C]}))}),N};return()=>{const B={...je(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,onChange:f},N=[],v={};r.slots.options?v.default=r.slots.options:v.default=()=>q(h.value,r.slots.text);const k=t.h(T.ElRadioGroup,B,v);N.push(k);const A={default:()=>N};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const D={...ve(o,Vr),hintText:F.value,hintVisible:I.value,prop:`${o.prop??r.attrs.name}_item`};return p.value&&(D["appear-listen"]=!0,D.onAppear=S),t.h(l,D,A)}}}}const{componentName:Wf,create:Yf,scope:Uf}=le("radio-item"),vo=Yf(Kf(Wf,Uf,pe));function ft(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function dt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Gf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}class Xf{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const r=Fe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(l,o))}}function Zf(){const e=t.getCurrentInstance();return new Xf(e.proxy)}function Ir(e,n,l){if(n===l)return!0;if(n===null||l===null)return!1;const o=ft(e,n),r=ft(e,l);if(o!==r)return!1;const a=dt(e,n),i=dt(e,l);return a===i}function Jf(e,n,l,o){if(o.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of o){let s=!1;if(l==="text")s=ft(e,i)===a;else if(l==="item")s=Ir(e,i,a);else{let c=dt(e,i);c==null&&(c=ft(e,i)),s=c===a}if(s){r.push(i);break}}}),r}function Qf(e){return{text:e,value:e}}function ed(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}const Or={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 td(e,n,l){return{inheritAttrs:!0,props:{...ge,...Te,...Or},emits:["change","update:modelValue"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),c=t.ref([]),u=t.ref([]),d=(L,B,N,v=!0)=>{const k=Jf(o,L,B,N);if(k===null){if(u.value===null||u.value.length===0)return;c.value=[],u.value=[],v&&(s("update:modelValue",[]),s("change",[]));return}let A=!0;if(k.length!==u.value.length)A=!1;else for(let C=0;C<k.length;C++){const D=k[C],E=u.value[C];if(!Ir(o,D,E)){A=!1;break}}if(!A){u.value=k;let C=[],D=[];k.forEach(M=>{C.push(dt(o,M)),o.valueType==="text"?D.push(ft(o,M)):o.valueType==="item"?D.push(M):D.push(dt(o,M))}),c.value=C;const E=t.toRaw(D);v&&(s("update:modelValue",E),s("change",E))}},h=t.ref([]),p=Ve(t.computed(()=>o.lazyLoad),"lazyLoad",Ye.Near,L=>re(L)),$=Zf(),m=async(L,B)=>{if(L){const N=await $.load("checkbox",L,B);if(N.length>0)if(typeof N[0]=="string"){let A=N.map(C=>Qf(C));h.value=A}else h.value=N}};t.watch([()=>o.source,()=>o.params],async([L,B])=>{m(L,B)},{immediate:!p.value});let g=!1;const S=()=>{g||(g=!0,m(o.source,o.params))};t.watch([()=>h.value,()=>o.modelValue],([L,B])=>{d(B,o.valueType,L,!1)});const y=e,b=t.computed(()=>({[y]:!0,[`is-${o.direction}`]:!0})),f=L=>{d(L,"value",h.value,!0)};let F=ie(o,"hintText"),I=ie(o,"hintVisible");const q=(L,B)=>{const N=[];return L.forEach((v,k)=>{const A=dt(o,v),C=ft(o,v);let D=Gf(o,v);a.value===!0&&(D=a.value),i.value===!0&&(D=i.value);const E=ed(o,v,k)??{},M=`${A}_${k}`,V={...E,key:M,class:o.itemClass,label:A,size:o.size,border:re(o.border)};D&&(V.disabled=D),o.itemType==="button"?N.push(t.h(T.ElCheckboxButton,V,{default:()=>[C]})):typeof B=="function"?N.push(t.h(T.ElCheckbox,V,{default:()=>B(v)})):N.push(t.h(T.ElCheckbox,V,{default:()=>[C]}))}),N};return()=>{const B={...je(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,max:se(o.max),min:se(o.min),onChange:f},N=[],v={};r.slots.options?v.default=r.slots.options:v.default=()=>q(h.value,r.slots.text);const k=t.h(T.ElCheckboxGroup,B,v);N.push(k);const A={default:()=>N};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const D={...ve(o,Or),hintText:F.value,hintVisible:I.value,prop:`${o.prop??r.attrs.name}_item`};return p.value&&(D["appear-listen"]=!0,D.onAppear=S),t.h(l,D,A)}}}}const{componentName:nd,create:od,scope:ld}=le("checkbox-item"),Co=od(td(nd,ld,pe)),Br={modelValue:{type:[Number,String],required:!1}};function rd(e,n,l){return{props:{...ge,...Te,...Br},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),c=ie(o,"modelValue",g=>se(g)),u=e,d=t.computed(()=>({[u]:!0})),h=g=>{s("update:modelValue",g),s("change",g)};let p=ie(o,"hintText"),$=t.ref(!1);const m=t.ref();return me({}),()=>{const S={...je(r.attrs),ref:m,class:d.value,readonly:i.value||a.value,modelValue:c.value,onChange:h},y={},b=[],f=t.h(T.ElRate,S,y);b.push(f);const F={default:()=>b};r.slots.default&&(F.label=r.slots.default),r.slots.fixedTip&&(F.fixedTip=r.slots.fixedTip);const q={...ve(o,Br),hintText:p.value,hintVisible:$.value,prop:`${o.prop}_item`};return t.h(l,q,F)}}}}const{componentName:ad,create:id,scope:sd}=le("rate-item"),To=id(rd(ad,sd,pe)),Ar={modelValue:{type:[Boolean,String,Number],required:!1}};function cd(e,n,l){return{props:{...ge,...Te,...Ar},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),c=ie(o,"modelValue"),u=e,d=t.computed(()=>({[u]:!0})),h=g=>{s("update:modelValue",g),s("change",g)};let p=ie(o,"hintText"),$=ie(o,"hintVisible");const m=t.ref();return me({}),()=>{const S={...je(r.attrs),ref:m,class:d.value,readonly:i.value,disabled:a.value,modelValue:c.value,onChange:h},y={},b=[],f=t.h(T.ElSwitch,S,y);b.push(f);const F={default:()=>b};r.slots.default&&(F.label=r.slots.default),r.slots.fixedTip&&(F.fixedTip=r.slots.fixedTip);const q={...ve(o,Ar),hintText:p.value,hintVisible:$.value,prop:`${o.prop}_item`};return t.h(l,q,F)}}}}const{componentName:ud,create:fd,scope:dd}=le("switch-item"),ko=fd(cd(ud,dd,pe)),Fr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function hd(e,n,l){return{props:{...ge,...Te,...Fr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),s=t.ref(!1),{emitEvent:c}=Se({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),u=ie(o,"modelValue"),d=e,h=t.computed(()=>({[d]:!0})),p=I=>{c("update:modelValue",I),c("change",I)};let $=ie(o,"hintText"),m=t.ref(!1);const g=I=>{let L=I.target.value;s.value=!0,be($.value)||(m.value=!0),c("focus",L,I)},S=I=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let L=I.target.value;o.maxLength&&L.length>Number(o.maxLength)&&(L=L.slice(0,Number(o.maxLength))),b.value||c("blur",L,I)},y=()=>{c("clear","")},b=t.ref(!1),f=I=>{b.value=I,c("visible-change",I),I||c("selected")},F=t.ref();return me({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const q={...je(r.attrs),ref:F,class:h.value,disabled:a.value||i.value,modelValue:u.value,"onUpdate:modelValue":p,onClear:y,onFocus:g,onBlur:S,onVisibleChange:f},L={};r.slots.option&&(L.default=r.slots.option);const B=[],N=t.h(T.ElTreeSelect,q,L);B.push(N);const v={default:()=>B};r.slots.default&&(v.label=r.slots.default),r.slots.fixedTip&&(v.fixedTip=r.slots.fixedTip);const A={...ve(o,Fr),hintText:$.value,hintVisible:m.value,prop:`${o.prop}_item`};return t.h(l,A,v)}}}}const{componentName:md,create:gd,scope:pd}=le("tree-select-item"),$o=gd(hd(md,pd,pe)),yd={},bd={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"},wd=[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 Sd(e,n){return t.openBlock(),t.createElementBlock("svg",bd,wd)}const vd=ue(yd,[["render",Sd]]),{componentName:gm,create:Cd,scope:pm}=le("group-setting"),Td={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:"到底部"}},kd=Cd({components:{FoxPopover:T.ElPopover,FoxCheckbox:T.ElCheckbox,FoxCheckboxGroup:T.ElCheckboxGroup,FoxButton:T.ElButton,FoxIcon:T.ElIcon,DragIcon:vd,Download:ye.Download,RefreshLeft:ye.RefreshLeft},props:{...Td},emits:["change"],setup(e,{emit:n,attrs:l,expose:o}){let r=null;const a=t.ref([]),i=Dr(),s=K=>K.length>1,c=()=>{const K=[],X=[...a.value];a.value=X.map((te,P)=>(te.visible!==!1&&K.push(te.prop),{...te,sortIndex:P})),a.value.length===K.length?g.value=!0:K.length>0&&(S.value=!0),f.value=K},u=K=>{let X=null;if(typeof K=="string")X=document.querySelectorAll(`.fox-group[prop="${K}"] > div > .fox-item[prop]`);else if(K&&typeof K=="object"){const te=K.$el??K;typeof te.querySelectorAll=="function"&&(X=te.querySelectorAll(".fox-item[prop]"))}if(!X)return[];const J=[];return X.forEach(te=>{const P=te.querySelector(".label--string");let Q="";P&&(Q=P.textContent??"");const ne=te.getAttribute("prop")??"",_=window.getComputedStyle(te,null).getPropertyValue("display");J.push({label:Q,prop:ne,sortIndex:0,visible:_!=="none"})}),J},d=()=>{if(!r){const K=u(e.groupRef??e.groupProp);if(K.length===0)return!1;r=K}return!0},h=async(K=!1)=>{const X=await i.load(e.groupProp),J=te=>{if(!te||!r)return;const P=r.map(Q=>({...Q}));Array.isArray(X)&&X.forEach(Q=>{P.some(ne=>{if(ne.prop===Q.prop){const x=ne.label;return Object.assign(ne,Q),ne.label=x,!0}return!1})}),a.value=P.sort((Q,ne)=>Q.sortIndex-ne.sortIndex),c(),K&&$(!1)};r?J(!0):jt(d,e.initDelay,5,50,!1,J)},p=()=>{const K=r??[];a.value=K.map(X=>({...X})),c(),$()},$=(K=!0)=>{K&&i.save(e.groupProp,a.value);const X=a.value.map(J=>({...J}));n("change",X)},m=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),S=t.ref(!1),y=K=>{const X=[];a.value.forEach(te=>{K&&X.push(te.prop),te.visible=K}),g.value=!1,S.value=!1,a.value.length===X.length?g.value=!0:X.length>0&&(S.value=!0),f.value=X,$()},b=()=>{p()},f=t.ref([]),F=K=>{a.value.forEach(J=>{const te=K.indexOf(J.prop)!==-1;J.visible=te}),g.value=!1,S.value=!1;const X=a.value.length;K.length===X?g.value=!0:K.length>0&&(S.value=!0),$()},I=()=>{h()};t.onMounted(()=>{h(!0)});const q={currentRow:null,index:null},L=K=>K?K.dataset&&K.dataset.role==="row"?K:K.tagName.toLowerCase()!=="body"?(K=K.parentElement,L(K)):null:null,B=K=>{const X=K.currentTarget;X&&X.dataset&&(q.index=X.dataset.index)},N=K=>{q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null),q.index=null},v=K=>{const X=K.currentTarget;K.relatedTarget;const J=L(X);J&&(K.preventDefault(),q.currentRow&&q.currentRow!==J&&q.currentRow.classList.remove("is-dragover"),J.classList.add("is-dragover"),q.currentRow=J)},k=K=>{K.preventDefault(),q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null)},A=K=>{const X=K.currentTarget,J=L(X);if(!J)return;K.preventDefault();const te=Number(q.index),P=Number(J.dataset.index);if(te!==P){if(te<P){const Q=a.value[te];a.value.splice(te,1),a.value.splice(P,0,Q)}else{const Q=a.value[te];a.value.splice(te,1),a.value.splice(P+1,0,Q)}c(),$()}},C=K=>{const X=a.value[K];a.value.splice(K,1),a.value.splice(0,0,X),c(),$()},D=K=>{const X=a.value[K];a.value.splice(K,1),a.value.push(X),c(),$()};o({refresh:()=>{r=null,h(!1)}});const E=new Map;let M=null;function V(K){const X=document.createRange();return X.setStart(K,0),X.setEnd(K,K.childNodes.length),X.getBoundingClientRect().width}return{attrs:l,itemPropertyList:a,isDraggble:s,isCheckAll:g,isIndeterminate:S,handleCheckAllChange:y,handleReset:b,checkedValue:f,handleCheckChange:F,onShow:I,onDragStart:B,onDragEnd:N,onDragOver:v,onDragLeave:k,onDrop:A,checkboxLabelStyle:m,toTop:C,toBottom:D,onMouseOverForOverflowText:(K,X,J)=>{const te=K.currentTarget;if(te){const P=Math.floor(te.offsetWidth);if(Math.floor(V(te))>P){let ne=E.get(X);if(ne){if(ne===M)return;xe.hide(ne)}ne=xe.show(te,J,{type:"text",placement:"top",closeOnClick:!1}),E.set(X,ne),M=ne}}},onMouseLeaveForOverflowText:(K,X)=>{const J=E.get(X);J&&(xe.hide(J),J===M&&(M=null))},onMouseOverForTip:(K,X)=>{const J=K.currentTarget;J&&(M&&xe.hide(M),M=xe.show(J,X,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:K=>{M&&(xe.hide(M),M=null)}}}}),$d={class:"fox-group-setting"},Dd={class:"fox-group-setting__header"},xd={class:"fox-group-setting__body"},Ed={class:"fox-group-setting__body-list","data-role":"container"},Nd=["data-index","draggable"],Vd=["onMouseover","onMouseleave"],Id={class:"tools-item"};function Od(e,n,l,o,r,a){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),c=t.resolveComponent("DragIcon"),u=t.resolveComponent("Download"),d=t.resolveComponent("FoxIcon"),h=t.resolveComponent("FoxCheckboxGroup"),p=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(p,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",$d,[t.createElementVNode("div",Dd,[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",xd,[t.createVNode(h,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=$=>e.checkedValue=$),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",Ed,[(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]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[6]||(n[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[7]||(n[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[8]||(n[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[9]||(n[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:$.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,$.prop,$.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,$.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString($.label),45,Vd)]),_:2},1032,["label"]),t.createElementVNode("div",Id,[t.createVNode(d,{onClick:m=>e.toTop($.sortIndex),onMouseover:n[1]||(n[1]=m=>e.onMouseOverForTip(m,e.toTopText)),onMouseleave:n[2]||(n[2]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(u)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:m=>e.toBottom($.sortIndex),onMouseover:n[3]||(n[3]=m=>e.onMouseOverForTip(m,e.toBottomText)),onMouseleave:n[4]||(n[4]=m=>e.onMouseLeaveForTip(m))},{default:t.withCtx(()=>[t.createVNode(u)]),_:2},1032,["onClick"])])],40,Nd))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Do=ue(kd,[["render",Od]]),Bd=Symbol.for("InnerPageScopeKey"),Ad=Symbol.for("PageWrapperKey");function Fd(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(l,o){t.provide(Bd,!0);const r={};t.provide(Ad,r);const a=c=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=t.ref(!0),s=c=>{i.value=c};return()=>{const u={...o.attrs,title:l.title,draggable:l.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":l.appendToBody,"close-on-click-modal":l.closeOnClickModal,"close-on-press-escape":l.closeOnPressEscape,"before-close":a},d={};if(typeof o.slots.default=="function"){const h=o.slots.default();d.default=()=>h}return t.h(T.ElDialog,u,d)}}}}const{componentName:ym,create:Rd,scope:bm}=le("dialog-item"),xo=Rd(Fd());function Md(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(l,{slots:o}){const r=e,a=t.computed(()=>({[r]:!0})),i=t.computed(()=>l.icon?{[`${r}__icon`]:!0,[`${r}__icon-${l.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${l.type}`]:!0}),s=t.computed(()=>l.color?l.icon?{color:l.color}:{background:l.color}:null),c=t.computed(()=>{const d={[`${r}__text`]:!0,[`${r}__text-${l.type}`]:!0};return l.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),u=t.computed(()=>l.color?{color:l.color}:null);return()=>{let d=null;if(o.mark)d=o.mark()[0];else{const g={class:i.value,style:s.value};d=t.h(l.icon??"div",g)}const h={class:c.value,style:u.value},p=o.default?o.default():[],$=t.h("div",h,p),m={class:a.value};return l.textPosition==="right"?t.h("div",m,[d,$]):t.h("div",m,[$,d])}}}}const{componentName:Ld,create:Pd,scope:wm}=le("indicator"),Eo=Pd(Md(Ld));function qd(e,n){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const o=l.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const r=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}const zd={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],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 jd(e,n){return{props:{...zd},setup(l,o){const r=t.ref(!0),a=t.ref(null),i=t.computed(()=>{const d={[`${e}`]:!0,"is-truncated":l.truncated};return typeof l.class=="string"&&l.class.length>0&&l.class.split(/\s+/).forEach(p=>{d[p]=!0}),l.type&&(d[`${e}--${l.type}`]=!0),l.size&&(d[`${e}--${l.size}`]=!0),d}),s=d=>{if(d&&re(l.showOverflowTooltip)){const h=d.clientWidth;qd(d,p=>{r.value=p<=h})}};let c=null;t.onMounted(()=>{if(!re(l.showOverflowTooltip))return;const d=a.value;s(d),d&&window.ResizeObserver&&(c=new window.ResizeObserver(()=>{s(d)}),c.observe(d))}),t.onUnmounted(()=>{c?.disconnect()});const u=(d,h)=>{let p=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const $=l.highlightFilter;if(d.indexOf($)!==-1){const g=d.replace(new RegExp($,"g"),`<span>${$}</span>`);h.innerHTML=g,h.class["is-highlight"]=!0,p=t.h(l.tag,h)}}else if(typeof l.highlightFilter=="function"){const $=l.highlightFilter(d);$&&(h.innerHTML=$,h.class["is-highlight"]=!0,p=t.h(l.tag,h))}return p};return()=>{const d={},h={...o.attrs,class:{...i.value},ref:a};let p=null;if(re(l.numberFormat)&&typeof o.slots.default=="function"){const S=o.slots.default();if(Array.isArray(S)&&S.length===1){const y=S[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const b=se(l.digits),f=se(l.decimalLength),F=re(l.autoPadding);let I=`${S[0].children}`,q=I.split("").reverse().join("");q=Rt(q,f,F,b,l.separator),I=q.split("").reverse().join(""),l.highlightFilter!==void 0&&(p=u(I,h)),p||(h.innerHTML=I,p=t.h(l.tag,h))}}}else{if(l.highlightFilter!==void 0&&typeof o.slots.default=="function"){const S=o.slots.default();if(Array.isArray(S)&&S.length===1){const y=S[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const b=`${S[0].children}`;p=u(b,h),p||(h.innerHTML=b,p=t.h(l.tag,h))}}}p||(p=t.h(l.tag,h,{default:o.slots.default}))}if(!l.mark&&!l.icon&&!o.slots.mark)d.default=()=>p;else{let S=null;if(l.icon){const f={[`${e}__mark-wrap`]:!0};l.type&&(f[`${e}__mark-wrap--${l.type}`]=!0);const F={},I=l.color;I&&(F.color=I);const q={class:f,style:F};S=t.h("div",q,t.h(l.icon))}else if(o.slots.mark){const f={[`${e}__mark-wrap`]:!0};l.type&&(f[`${e}__mark-wrap--${l.type}`]=!0);const F={},I=l.color;I&&(F.color=I);const q={class:f,style:F};S=t.h("div",q,{default:o.slots.mark})}else{const f={[`${e}__mark`]:!0};l.type&&(f[`${e}__mark--${l.type??"default"}`]=!0);const F={},I=l.color;I&&(F["background-color"]=I);const q={class:f,style:F};S=t.h("div",q)}const y={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}},b=t.h("view",y,[S,p]);d.default=()=>b}const m={disabled:r.value};return d.content=o.slots.default,t.h(T.ElTooltip,m,d)}}}}const{componentName:_d,create:Hd,scope:Sm}=le("text"),No=Hd(jd(_d)),{create:Kd}=le("toast"),Wd=Kd({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 l=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const r=()=>{l&&(clearTimeout(l),l=null)},a=()=>{o.mounted=!1},i=()=>{r(),e.duration&&(l=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,$=>{$&&i()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),u=()=>{const $=ce(e.iconSize);return t.h(e.icon,{width:$,height:$,color:e.iconColor})},d=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),h=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:a,clickCover:s,renderIcon:u,hasIcon:c,toastBodyClass:d,toastIconWrapperClass:h,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Yd={key:1,class:"fox-toast-title"},Ud=["innerHTML"];function Gd(e,n,l,o,r,a){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",Yd,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Ud)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Vo=ue(Wd,[["render",Gd]]),Xd={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:ye.ArrowUp}};function Zd(e,n,l){return{props:{...Xd},emits:["click","update:modelValue"],setup(o,{emit:r}){const a=t.computed(()=>{const h={[`${e}`]:!0};return o.disabled?h[`${e}__disabled`]=!0:h[`${e}__${o.type}`]=!0,h}),i=ie(o,"modelValue"),s=t.computed(()=>i.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),u=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const h=[];if(s.value){const g={class:c.value},S=t.h("span",g,[s.value]);h.push(S)}const p={class:u.value},$=l(o.icon,p);return $&&h.push($),t.h("div",{class:a.value,onClick:d},h)}}}}const{componentName:Jd,create:Qd,scope:eh}=le("more-button"),Io=Qd(Zd(Jd,eh,(e,n)=>(e=e??ye.ArrowUp,t.h(T.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:th,create:nh,scope:Cm}=le("tour"),oh=nh({components:{Close:ye.Close,ElPopover:T.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 l=th,o=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=t.ref({}),a=t.computed(()=>`${l}`),i=t.computed(()=>{const{offset:m,maskWidth:g,maskHeight:S}=e,{width:y,height:b,left:f,top:F}=r.value,I=e.steps[o.active].offset??m,q=[f+y/2,F+b/2],L=Number(g||y),B=Number(S||b);return{width:`${L+ +I.left+I.right}px`,height:`${B+I.top+I.bottom}px`,top:`${q[1]-B/2-+I.top}px`,left:`${q[0]-L/2-+I.left}px`}}),s=m=>{m=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,t.nextTick(()=>{o.showPopup=!0,d()}),n("change",o.active)},c=m=>m.popoverWidth??e.width,u=m=>m.location??e.location,d=()=>{const m=document.querySelector(`${e.steps[o.active].target}`),g=Qe(m);r.value={x:g.left,y:g.top,top:g.top,left:g.left,width:g.width,height:g.height}},h=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&h()},$=(m,g=0)=>{m&&d(),e.steps,o.active=g,o.showTour=m,o.showPopup=m};return t.onMounted(()=>{$(e.modelValue,e.current)}),t.watch(()=>e.modelValue,m=>{$(m)}),{...t.toRefs(o),classes:a,maskStyle:i,changeStep:s,popoverWidth:c,popoverLocation:u,close:h,handleClickMask:p}}}),lh={key:0,class:"fox-tour__content"},rh={key:0,class:"fox-tour__content-top"},ah={class:"fox-tour__content-inner"},ih={class:"fox-tour__content-bottom"},sh={class:"fox-tour__content-bottom-init"},ch={class:"fox-tour__content-bottom-operate"},uh={key:1,class:"fox-tour__content fox-tour__content-tile"},fh={class:"fox-tour__content-inner"};function dh(e,n,l,o,r,a){const i=t.resolveComponent("Close"),s=t.resolveComponent("fox-button"),c=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]=(...u)=>e.handleClickMask&&e.handleClickMask(...u))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createBlock(c,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(u),width:e.popoverWidth(u)},{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",lh,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",rh,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...h)=>e.close&&e.close(...h))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",ah,t.toDisplayString(u.content),1),t.createElementVNode("div",ih,[t.createElementVNode("div",sh,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",ch,[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]=h=>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]=h=>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",uh,[t.createElementVNode("div",fh,t.toDisplayString(u.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const Oo=ue(oh,[["render",dh]]),Ne=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,tt=e=>e==null,Rr=10;function hh(e,n){return e>n&&e>Rr?"horizontal":n>e&&n>Rr?"vertical":""}function mh(){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",l=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const s=i.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=hh(e.offsetX,e.offsetY))},start:i=>{if(o(),i.touches){const s=i.touches[0];e.startX=s.clientX,e.startY=s.clientY}else e.startX=i.clientX,e.startY=i.clientY;e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:l,state:e}}function gh(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}class ph{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,l){this.startMove=n,this.updateMove=l,this.isTouch=gh()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const l=mh(),o=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(l.move(r),o(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{o(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.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 Mr(e,n){return new ph(e,n)}var Lr;const Bo=typeof window<"u";Bo&&((Lr=window?.navigator)!=null&&Lr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ht=[];const Pr=e=>{const n=e;n.key==="Escape"&&ht.forEach(l=>l(n))},yh=e=>{t.onMounted(()=>{ht.length===0&&document.addEventListener("keydown",Pr),Bo&&ht.push(e)}),t.onBeforeUnmount(()=>{ht=ht.filter(n=>n!==e),ht.length===0&&Bo&&document.removeEventListener("keydown",Pr)})},Ao="fox-focus-trap.focus-after-trapped",Fo="fox-focus-trap.focus-after-released",bh="fox-focus-trap.focusout-prevented",qr={cancelable:!0,bubbles:!1},wh={cancelable:!0,bubbles:!1},zr="foxFocusAfterTrapped",jr="foxFocusAfterReleased",Sh=Symbol("foxFocusTrap"),Ro=t.ref(),un=t.ref(0),Mo=t.ref(0);let fn=0;const _r=e=>{const n=[],l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)n.push(l.currentNode);return n},vh=(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},Hr=(e,n)=>{for(const l of e)if(!vh(l,n))return l},Ch=e=>{const n=_r(e),l=Hr(n,e),o=Hr(n.reverse(),e);return[l,o]},Th=e=>e instanceof HTMLInputElement&&"select"in e,Ue=(e,n)=>{if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),Mo.value=window.performance.now(),e!==l&&Th(e)&&n&&e.select()}};function Kr(e,n){const l=[...e],o=e.indexOf(n);return o!==-1&&l.splice(o,1),l}const kh=()=>{let e=[];return{push:o=>{const r=e[0];r&&o!==r&&r.pause(),e=Kr(e,o),e.unshift(o)},remove:o=>{e=Kr(e,o),e[0]?.resume?.()}}},$h=(e,n=!1)=>{const l=document.activeElement;for(const o of e)if(Ue(o,n),document.activeElement!==l)return},Wr=kh(),Dh=()=>un.value>Mo.value,dn=()=>{Ro.value="pointer",un.value=window.performance.now()},Yr=()=>{Ro.value="keyboard",un.value=window.performance.now()},xh=()=>(t.onMounted(()=>{fn===0&&(document.addEventListener("mousedown",dn),document.addEventListener("touchstart",dn),document.addEventListener("keydown",Yr)),fn++}),t.onBeforeUnmount(()=>{fn--,fn<=0&&(document.removeEventListener("mousedown",dn),document.removeEventListener("touchstart",dn),document.removeEventListener("keydown",Yr))}),{focusReason:Ro,lastUserFocusTimestamp:un,lastAutomatedFocusTimestamp:Mo}),hn=e=>new CustomEvent(bh,{...wh,detail:e}),{componentName:Tm,create:Eh,scope:km}=le("focus-trap"),Nh=Eh({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:[zr,jr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:l}){const o=t.ref();let r,a;const{focusReason:i}=xh();yh(g=>{re(e.trapped)&&!s.paused&&l("release-requested",g)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=g=>{if(!e.loop&&!re(e.trapped)||s.paused)return;const{key:S,altKey:y,ctrlKey:b,metaKey:f,currentTarget:F,shiftKey:I}=g,{loop:q}=e,L=S==="Tab"&&!y&&!b&&!f,B=document.activeElement;if(L&&B){const N=F,[v,k]=Ch(N);if(v&&k){if(!I&&B===k){const C=hn({focusReason:i.value});l("focusout-prevented",C),C.defaultPrevented||(g.preventDefault(),q&&Ue(v,!0))}else if(I&&[v,N].includes(B)){const C=hn({focusReason:i.value});l("focusout-prevented",C),C.defaultPrevented||(g.preventDefault(),q&&Ue(k,!0))}}else if(B===N){const C=hn({focusReason:i.value});l("focusout-prevented",C),C.defaultPrevented||g.preventDefault()}}};t.provide(Sh,{focusTrapRef:o,onKeydown:c}),t.watch(()=>e.focusTrapEl,g=>{g&&(o.value=g)},{immediate:!0}),t.watch([o],([g],[S])=>{g&&(g.addEventListener("keydown",c),g.addEventListener("focusin",h),g.addEventListener("focusout",p)),S&&(S.removeEventListener("keydown",c),S.removeEventListener("focusin",h),S.removeEventListener("focusout",p))});const u=g=>{l(zr,g)},d=g=>l(jr,g),h=g=>{const S=t.unref(o);if(!S)return;const y=g.target,b=g.relatedTarget,f=y&&S.contains(y);re(e.trapped)||b&&S.contains(b)||(r=b),f&&l("focusin",g),!s.paused&&re(e.trapped)&&(f?a=y:Ue(a,!0))},p=g=>{const S=t.unref(o);if(!(s.paused||!S))if(!e.escape&&re(e.trapped)){const y=g.relatedTarget;!En(y)&&!S.contains(y)&&setTimeout(()=>{if(!s.paused&&re(e.trapped)){const b=hn({focusReason:i.value});l("focusout-prevented",b),b.defaultPrevented||Ue(a,!0)}},0)}else{const y=g.target;y&&S.contains(y)||l("focusout",g)}};async function $(){await t.nextTick();const g=t.unref(o);if(g){Wr.push(s);const S=g.contains(document.activeElement)?r:document.activeElement;if(r=S,!g.contains(S)){const b=new Event(Ao,qr);g.addEventListener(Ao,u),g.dispatchEvent(b),b.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;Zo(f)||(Ue(f),document.activeElement!==f&&(f="first")),f==="first"&&$h(_r(g),!0),(document.activeElement===S||f==="container")&&Ue(g)})}}}function m(){const g=t.unref(o);if(g){g.removeEventListener(Ao,u);const S=new CustomEvent(Fo,{...qr,detail:{focusReason:i.value}});g.addEventListener(Fo,d),g.dispatchEvent(S),!S.defaultPrevented&&(i.value=="keyboard"||!Dh())&&Ue(r??document.body,!0),g.removeEventListener(Fo,u),Wr.remove(s)}}return t.onMounted(()=>{re(e.trapped)&&$(),t.watch(()=>e.trapped,g=>{re(g)?$():m()})}),t.onBeforeUnmount(()=>{re(e.trapped)&&m()}),()=>typeof n.default=="function"?n.default({"handle-keydown":c}):null}}),{componentName:Vh,create:Ih,scope:Dm}=le("floating-window"),Oh=Symbol.for("InnerPageScopeKey"),Bh=Symbol.for("PageWrapperKey"),Ah={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}},Fh=Ih({inheritAttrs:!1,components:{FoxIcon:T.ElIcon,FocusTrap:Nh},props:{...Ah},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const l=Vh,o=t.ref(e.modelValue),r=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,O=>{o.value=O});const a=t.computed(()=>o.value===!1?!1:!B.value),i=t.ref(e.left),s=t.ref(e.top),c=t.ref(e.right),u=t.ref(e.bottom),d=t.computed(()=>{const O=["fox-floating-window"];return e.customClass&&O.push(e.customClass),O}),h=t.computed(()=>{const O={};return tt(i.value)?O.left="auto":O.left=Ne(i.value),tt(s.value)?O.top="auto":O.top=Ne(s.value),tt(c.value)?O.right="auto":O.right=Ne(c.value),tt(u.value)?O.bottom="auto":O.bottom=Ne(u.value),tt(e.zIndex)||(O["z-index"]=Ne(e.zIndex)),tt(q.value)||(O.height=q.value),tt(L.value)||(O.width=L.value),O}),p=t.computed(()=>e.closeIcon??ye.Close),$=t.computed(()=>e.collapseIcon??ye.ArrowUp),m=t.computed(()=>e.collapseText??""),g=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??ye.ArrowRight:e.expandIcon??ye.ArrowLeft),S=t.computed(()=>e.expandText??e.title??"展开"),y=t.computed(()=>({[`${l}__collapse-text`]:!0})),b=t.computed(()=>({[`${l}__collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),f=t.ref(),F=t.ref(null),I=t.ref(null),q=t.computed(()=>Ne(e.height)||""),L=t.computed(()=>Ne(e.width)||""),B=t.ref(re(e.collapse)),N=(O,U=!0)=>{B.value!==O&&(B.value=O,O?X():J(),n("update:collapse",O),O&&typeof A.onHide=="function"?A.onHide():!O&&typeof A.onShow=="function"&&A.onShow())};t.watch(()=>e.collapse,O=>{N(O)});const v=()=>{k()},k=O=>{O=O??!B.value,N(O)};t.provide(Oh,!0);const A={setCollapse:N,setFixedNavVisible:O=>{j.value=O}};t.provide(Bh,A);const C=()=>{typeof A.beforeClose=="function"?A.beforeClose(()=>{o.value=!1}):o.value=!1},D=t.ref(null),E=t.computed(()=>!e.fixedNavTeleport),M=t.computed(()=>{const O=["fox-floating-window__fixednav"];return e.expandClass&&O.push(e.expandClass),e.collapsePosition==="left"?O.push("is-left"):e.collapsePosition==="right"&&O.push("is-right"),O}),V=t.ref(""),H=t.computed(()=>{const O={};return V.value?O.top=V.value:e.collapseTop&&(O.top=e.collapseTop),O}),R=t.ref(B.value),j=t.computed({set:O=>{R.value=O},get:()=>o.value===!1?!1:R.value});let G=null;const K=()=>{typeof G=="function"&&(G(),G=null)},X=()=>{D.value&&D.value.classList.add("slide-in"),j.value=!0,G=()=>{D.value&&D.value.classList.remove("slide-in")}},J=()=>{D.value&&D.value.classList.add("slide-out"),G=()=>{D.value&&D.value.classList.remove("slide-out"),j.value=!1}},te=()=>{i.value=null,s.value=null,c.value=null,u.value=null},P={x:0,y:0},x=Mr(O=>{if(!f.value)return;const U=f.value;if(te(),e.origin==="left-top")i.value=U.offsetLeft,s.value=U.offsetTop,P.x=i.value,P.y=s.value;else if(e.origin==="left-bottom"){const ee=document.documentElement.clientHeight||document.body.clientHeight;i.value=U.offsetLeft,u.value=ee-(U.offsetTop+U.offsetHeight),P.x=i.value,P.y=u.value}else if(e.origin==="right-bottom"){const ee=document.documentElement.clientWidth||document.body.clientWidth,fe=document.documentElement.clientHeight||document.body.clientHeight;c.value=ee-(U.offsetLeft+U.offsetWidth),u.value=fe-(U.offsetTop+U.offsetHeight),P.x=c.value,P.y=u.value}else{const ee=document.documentElement.clientWidth||document.body.clientWidth;c.value=ee-(U.offsetLeft+U.offsetWidth),s.value=U.offsetTop,P.x=c.value,P.y=s.value}},O=>{if(!f.value)return;const U=f.value;te(),e.origin==="left-top"?(i.value=P.x+O.x,s.value=P.y+O.y,U.style.left=Ne(i.value),U.style.top=Ne(s.value)):e.origin==="left-bottom"?(i.value=P.x+O.x,u.value=P.y-O.y,U.style.left=Ne(i.value),U.style.bottom=Ne(u.value)):e.origin==="right-bottom"?(c.value=P.x-O.x,u.value=P.y-O.y,U.style.right=Ne(c.value),U.style.bottom=Ne(u.value)):(c.value=P.x-O.x,s.value=P.y+O.y,U.style.right=Ne(c.value),U.style.top=Ne(s.value))}),_={x:0,y:0},Z=Mr(O=>{D.value&&(_.x=D.value.offsetLeft,_.y=D.value.offsetTop)},O=>{if(!D.value)return;const U=_.y+O.y;V.value=`${U}px`}),W=()=>{if(f.value){const O=f.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");I.value=O}};return t.onMounted(()=>{if(e.draggable&&f.value){const O=[];F.value&&O.push(F.value),e.footerDraggable&&(W(),I.value&&O.push(I.value)),x.open(O)}e.collapse===!0&&N(e.collapse,!1),D.value&&Z.open(D.value)}),t.onBeforeUnmount(()=>{e.draggable&&F.value&&x.close(),D.value&&Z.close()}),{classes:d,styles:h,isShow:a,closeIcon:p,onClose:C,dialogRef:f,headerRef:F,onClickToggle:v,collapseIcon:$,collapseText:m,collapseTextClasses:y,collapseIconClasses:b,expandIcon:g,expandText:S,isShowFixedNav:j,fixedNavRef:D,fixedNavClasses:M,fixedNavStyles:H,onAnimationEnd:K,teleportDisabled:r,fixedNavTeleportDisabled:E}}}),Rh={ref:"headerRef",class:"fox-floating-window__header"},Mh={class:"fox-floating-window__title"},Lh={class:"fox-floating-window__tools"},Ph={class:"fox-floating-window__body"},qh={class:"fox-floating-window__fixednav__text"};function zh(e,n,l,o,r,a){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",Rh,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Mh,t.toDisplayString(e.title),1),t.createElementVNode("div",Lh,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[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",Ph,[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]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",qh,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Lo=ue(Fh,[["render",zh]]);function jh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:o}){return pl(l.name,()=>l.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:xm,create:_h,scope:Em}=le("domain-provider"),Po=_h(jh()),Hh={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 Kh(e,n){return{inheritAttrs:!1,props:Hh,setup(l,{slots:o}){if(Ze&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(p,$)=>{if(d===null){a.set(p,{visible:null,callback:$});return}r.has(p)&&d.unobserve(p),r.set(p,{visible:null,callback:$}),d.observe(p)},s=p=>{if(d===null){a.delete(p);return}r.has(p)&&(r.delete(p),d.unobserve(p))};let c=l.initialVisibleObserverSize;ti({acquire:()=>{const p=c>0;return c--,p},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:s});let d=null;const h=(p,$,m)=>{d=new IntersectionObserver(g=>{for(let S of g){let y=!1;S.intersectionRatio>0&&(y=!0);const b=r.get(S.target);if(b)try{if(l.loadPolicy==="lazy"&&!y&&b.visible!==null)return;b.visible=y,b.callback(y)}catch(f){console.error(f)}}},{root:p,rootMargin:$,threshold:m}),a.forEach((g,S)=>{r.set(S,g),d?.observe(S)}),a.clear()};t.watch([()=>l.root,()=>l.disabled],([p,$])=>{if($||!p||d)return;let m=null;typeof p=="string"?m=document.querySelector(p):m=p,m&&h(m,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:Nm,create:Wh,scope:Vm}=le("rolling-provider"),qo=Wh(Kh()),Yh=[Fn,Ln,Pn,qn,_n,pe,Wn,Yn,Ct,Un,eo,lo,io,so,co,uo,fo,mo,go,po,yo,cn,So,vo,Co,To,ko,$o,Do,xo,Vt,en,Eo,No,Vo,kt,_e,it,on,ln,Nt,Et,sn,Io,Oo,xt,Lo,Po,qo],Uh=new Ia(Yh,[Aa],"4.0.0");Object.defineProperty(w,"FoxAffix",{enumerable:!0,get:()=>T.ElAffix}),Object.defineProperty(w,"FoxAlert",{enumerable:!0,get:()=>T.ElAlert}),Object.defineProperty(w,"FoxAside",{enumerable:!0,get:()=>T.ElAside}),Object.defineProperty(w,"FoxAutoResizer",{enumerable:!0,get:()=>T.ElAutoResizer}),Object.defineProperty(w,"FoxAutocomplete",{enumerable:!0,get:()=>T.ElAutocomplete}),Object.defineProperty(w,"FoxAvatar",{enumerable:!0,get:()=>T.ElAvatar}),Object.defineProperty(w,"FoxBacktop",{enumerable:!0,get:()=>T.ElBacktop}),Object.defineProperty(w,"FoxBadge",{enumerable:!0,get:()=>T.ElBadge}),Object.defineProperty(w,"FoxBreadcrumb",{enumerable:!0,get:()=>T.ElBreadcrumb}),Object.defineProperty(w,"FoxBreadcrumbItem",{enumerable:!0,get:()=>T.ElBreadcrumbItem}),Object.defineProperty(w,"FoxButton",{enumerable:!0,get:()=>T.ElButton}),Object.defineProperty(w,"FoxButtonGroup",{enumerable:!0,get:()=>T.ElButtonGroup}),Object.defineProperty(w,"FoxCalendar",{enumerable:!0,get:()=>T.ElCalendar}),Object.defineProperty(w,"FoxCard",{enumerable:!0,get:()=>T.ElCard}),Object.defineProperty(w,"FoxCarousel",{enumerable:!0,get:()=>T.ElCarousel}),Object.defineProperty(w,"FoxCarouselItem",{enumerable:!0,get:()=>T.ElCarouselItem}),Object.defineProperty(w,"FoxCascader",{enumerable:!0,get:()=>T.ElCascader}),Object.defineProperty(w,"FoxCascaderPanel",{enumerable:!0,get:()=>T.ElCascaderPanel}),Object.defineProperty(w,"FoxCheckTag",{enumerable:!0,get:()=>T.ElCheckTag}),Object.defineProperty(w,"FoxCheckbox",{enumerable:!0,get:()=>T.ElCheckbox}),Object.defineProperty(w,"FoxCheckboxButton",{enumerable:!0,get:()=>T.ElCheckboxButton}),Object.defineProperty(w,"FoxCheckboxGroup",{enumerable:!0,get:()=>T.ElCheckboxGroup}),Object.defineProperty(w,"FoxCol",{enumerable:!0,get:()=>T.ElCol}),Object.defineProperty(w,"FoxCollapse",{enumerable:!0,get:()=>T.ElCollapse}),Object.defineProperty(w,"FoxCollapseItem",{enumerable:!0,get:()=>T.ElCollapseItem}),Object.defineProperty(w,"FoxCollapseTransition",{enumerable:!0,get:()=>T.ElCollapseTransition}),Object.defineProperty(w,"FoxColorPicker",{enumerable:!0,get:()=>T.ElColorPicker}),Object.defineProperty(w,"FoxConfigProvider",{enumerable:!0,get:()=>T.ElConfigProvider}),Object.defineProperty(w,"FoxContainer",{enumerable:!0,get:()=>T.ElContainer}),Object.defineProperty(w,"FoxDescriptions",{enumerable:!0,get:()=>T.ElDescriptions}),Object.defineProperty(w,"FoxDescriptionsItem",{enumerable:!0,get:()=>T.ElDescriptionsItem}),Object.defineProperty(w,"FoxDialog",{enumerable:!0,get:()=>T.ElDialog}),Object.defineProperty(w,"FoxDivider",{enumerable:!0,get:()=>T.ElDivider}),Object.defineProperty(w,"FoxDrawer",{enumerable:!0,get:()=>T.ElDrawer}),Object.defineProperty(w,"FoxDropdown",{enumerable:!0,get:()=>T.ElDropdown}),Object.defineProperty(w,"FoxDropdownItem",{enumerable:!0,get:()=>T.ElDropdownItem}),Object.defineProperty(w,"FoxDropdownMenu",{enumerable:!0,get:()=>T.ElDropdownMenu}),Object.defineProperty(w,"FoxEmpty",{enumerable:!0,get:()=>T.ElEmpty}),Object.defineProperty(w,"FoxFooter",{enumerable:!0,get:()=>T.ElFooter}),Object.defineProperty(w,"FoxForm",{enumerable:!0,get:()=>T.ElForm}),Object.defineProperty(w,"FoxFormItem",{enumerable:!0,get:()=>T.ElFormItem}),Object.defineProperty(w,"FoxHeader",{enumerable:!0,get:()=>T.ElHeader}),Object.defineProperty(w,"FoxIcon",{enumerable:!0,get:()=>T.ElIcon}),Object.defineProperty(w,"FoxImage",{enumerable:!0,get:()=>T.ElImage}),Object.defineProperty(w,"FoxImageViewer",{enumerable:!0,get:()=>T.ElImageViewer}),Object.defineProperty(w,"FoxInput",{enumerable:!0,get:()=>T.ElInput}),Object.defineProperty(w,"FoxInputNumber",{enumerable:!0,get:()=>T.ElInputNumber}),Object.defineProperty(w,"FoxLink",{enumerable:!0,get:()=>T.ElLink}),Object.defineProperty(w,"FoxMain",{enumerable:!0,get:()=>T.ElMain}),Object.defineProperty(w,"FoxMenu",{enumerable:!0,get:()=>T.ElMenu}),Object.defineProperty(w,"FoxMenuItem",{enumerable:!0,get:()=>T.ElMenuItem}),Object.defineProperty(w,"FoxMenuItemGroup",{enumerable:!0,get:()=>T.ElMenuItemGroup}),Object.defineProperty(w,"FoxOption",{enumerable:!0,get:()=>T.ElOption}),Object.defineProperty(w,"FoxOptionGroup",{enumerable:!0,get:()=>T.ElOptionGroup}),Object.defineProperty(w,"FoxPageHeader",{enumerable:!0,get:()=>T.ElPageHeader}),Object.defineProperty(w,"FoxPagination",{enumerable:!0,get:()=>T.ElPagination}),Object.defineProperty(w,"FoxPopconfirm",{enumerable:!0,get:()=>T.ElPopconfirm}),Object.defineProperty(w,"FoxPopover",{enumerable:!0,get:()=>T.ElPopover}),Object.defineProperty(w,"FoxPopper",{enumerable:!0,get:()=>T.ElPopper}),Object.defineProperty(w,"FoxProgress",{enumerable:!0,get:()=>T.ElProgress}),Object.defineProperty(w,"FoxRadio",{enumerable:!0,get:()=>T.ElRadio}),Object.defineProperty(w,"FoxRadioButton",{enumerable:!0,get:()=>T.ElRadioButton}),Object.defineProperty(w,"FoxRadioGroup",{enumerable:!0,get:()=>T.ElRadioGroup}),Object.defineProperty(w,"FoxRate",{enumerable:!0,get:()=>T.ElRate}),Object.defineProperty(w,"FoxResult",{enumerable:!0,get:()=>T.ElResult}),Object.defineProperty(w,"FoxRow",{enumerable:!0,get:()=>T.ElRow}),Object.defineProperty(w,"FoxScrollbar",{enumerable:!0,get:()=>T.ElScrollbar}),Object.defineProperty(w,"FoxSelect",{enumerable:!0,get:()=>T.ElSelect}),Object.defineProperty(w,"FoxSelectV2",{enumerable:!0,get:()=>T.ElSelectV2}),Object.defineProperty(w,"FoxSkeleton",{enumerable:!0,get:()=>T.ElSkeleton}),Object.defineProperty(w,"FoxSkeletonItem",{enumerable:!0,get:()=>T.ElSkeletonItem}),Object.defineProperty(w,"FoxSlider",{enumerable:!0,get:()=>T.ElSlider}),Object.defineProperty(w,"FoxSpace",{enumerable:!0,get:()=>T.ElSpace}),Object.defineProperty(w,"FoxStep",{enumerable:!0,get:()=>T.ElStep}),Object.defineProperty(w,"FoxSteps",{enumerable:!0,get:()=>T.ElSteps}),Object.defineProperty(w,"FoxSubMenu",{enumerable:!0,get:()=>T.ElSubMenu}),Object.defineProperty(w,"FoxSwitch",{enumerable:!0,get:()=>T.ElSwitch}),Object.defineProperty(w,"FoxTabPane",{enumerable:!0,get:()=>T.ElTabPane}),Object.defineProperty(w,"FoxTable",{enumerable:!0,get:()=>T.ElTable}),Object.defineProperty(w,"FoxTableColumn",{enumerable:!0,get:()=>T.ElTableColumn}),Object.defineProperty(w,"FoxTableV2",{enumerable:!0,get:()=>T.ElTableV2}),Object.defineProperty(w,"FoxTabs",{enumerable:!0,get:()=>T.ElTabs}),Object.defineProperty(w,"FoxTag",{enumerable:!0,get:()=>T.ElTag}),Object.defineProperty(w,"FoxTimePicker",{enumerable:!0,get:()=>T.ElTimePicker}),Object.defineProperty(w,"FoxTimeSelect",{enumerable:!0,get:()=>T.ElTimeSelect}),Object.defineProperty(w,"FoxTimeline",{enumerable:!0,get:()=>T.ElTimeline}),Object.defineProperty(w,"FoxTimelineItem",{enumerable:!0,get:()=>T.ElTimelineItem}),Object.defineProperty(w,"FoxTooltip",{enumerable:!0,get:()=>T.ElTooltip}),Object.defineProperty(w,"FoxTransfer",{enumerable:!0,get:()=>T.ElTransfer}),Object.defineProperty(w,"FoxTree",{enumerable:!0,get:()=>T.ElTree}),Object.defineProperty(w,"FoxTreeSelect",{enumerable:!0,get:()=>T.ElTreeSelect}),Object.defineProperty(w,"FoxTreeV2",{enumerable:!0,get:()=>T.ElTreeV2}),Object.defineProperty(w,"FoxUpload",{enumerable:!0,get:()=>T.ElUpload}),w.AutocompleteItem=go,w.Broadcast=Nn,w.BroadcastKey=we,w.CalendarItem=io,w.CalendarPicker=ln,w.CascaderItem=mo,w.CascaderPicker=sn,w.CheckboxItem=Co,w.Content=qn,w.DataItemsKey=ot,w.DateItem=lo,w.DatePicker=on,w.DateUtils=oe,w.DialogItem=xo,w.Domain=_t,w.DomainKey=Ie,w.DomainProvider=Po,w.ExtTabPane=Nt,w.ExtTabs=Et,w.FloatingWindow=Lo,w.FooterBar=Pn,w.FoxAutocompleteItem=go,w.FoxCalendarItem=io,w.FoxCalendarPicker=ln,w.FoxCascaderItem=mo,w.FoxCascaderPicker=sn,w.FoxCheckboxItem=Co,w.FoxContent=qn,w.FoxDateItem=lo,w.FoxDatePicker=on,w.FoxDialogItem=xo,w.FoxDomainProvider=Po,w.FoxExtTabPane=Nt,w.FoxExtTabs=Et,w.FoxFloatingWindow=Lo,w.FoxFooterBar=Pn,w.FoxGroup=_n,w.FoxGroupSetting=Do,w.FoxHeaderBar=Ln,w.FoxHintText=Ct,w.FoxIndicator=Eo,w.FoxInputItem=Un,w.FoxInputNumberItem=fo,w.FoxItem=pe,w.FoxMapping=Vt,w.FoxMoneyItem=uo,w.FoxMoreButton=Io,w.FoxOverlay=kt,w.FoxPage=Fn,w.FoxPicker=it,w.FoxPopup=_e,w.FoxPrice=en,w.FoxRadioItem=vo,w.FoxRateItem=To,w.FoxRollingProvider=qo,w.FoxRowItem=Yn,w.FoxSelectItem=eo,w.FoxSlotItem=Wn,w.FoxSwitchItem=ko,w.FoxTableItem=So,w.FoxTableMappingColumn=po,w.FoxTableRadioColumn=yo,w.FoxTableSetting=cn,w.FoxText=No,w.FoxTimeItem=so,w.FoxTimeSelectItem=co,w.FoxToast=Vo,w.FoxTour=Oo,w.FoxTreeSelectItem=$o,w.Foxsticky=xt,w.Group=_n,w.GroupSetting=Do,w.HeaderBar=Ln,w.HintText=Ct,w.Indicator=Eo,w.InputItem=Un,w.InputNumberItem=fo,w.Item=pe,w.Mapping=Vt,w.MoneyItem=uo,w.MoreButton=Io,w.Overlay=kt,w.Page=Fn,w.Picker=it,w.Popup=_e,w.Price=en,w.PriorityPolicy=Ye,w.RadioItem=vo,w.RateItem=To,w.RollingProvider=qo,w.RowItem=Yn,w.SelectItem=eo,w.SlotItem=Wn,w.SwitchItem=ko,w.TableItem=So,w.TableMappingColumn=po,w.TableRadioColumn=yo,w.TableSetting=cn,w.Text=No,w.TimeItem=so,w.TimeSelectItem=co,w.Toast=Vo,w.Tour=Oo,w.TreeSelectItem=$o,w.UniqueID=Il,w.ValidateSchema=hl,w.ValidateSchemaKey=qe,w.cancelRaf=Xr,w.clearNonNumber=sa,w.clone=Dn,w.compareTo=Tn,w.createBroadcast=Pt,w.createValidateSchema=zt,w.debounce=wt,w.debounceRef=va,w.decimalLength=al,w.default=Uh,w.defineBroadcast=da,w.defineConfigDomain=pl,w.defineDataItem=bl,w.defineDomain=In,w.defineItem=Se,w.definePageState=wl,w.deleteGlobalValidator=pa,w.disabledProperty=De,w.divide=Cn,w.excludeProps=ve,w.extend=Xe,w.floatData=fa,w.getGlobalValidateCheckEvents=ul,w.getGlobalValidateResetEvents=dl,w.getPageContentAreaHeight=Kt,w.getPageContentAreaWidth=Wt,w.getPageFooterAreaHeight=vt,w.getPageHeaderAreaHeight=St,w.getRootDomain=lt,w.hasSymbol=Qo,w.includeProps=pt,w.indexOf=ca,w.installRules=yl,w.integerLength=rl,w.isArray=Jr,w.isArrayLike=tl,w.isBrowser=Ze,w.isDate=Le,w.isESModule=oa,w.isEmptyString=be,w.isEqual=Pe,w.isFunction=kn,w.isHidden=Lt,w.isInnerPage=ka,w.isMap=Qr,w.isNil=En,w.isNumberString=ll,w.isObject=Be,w.isPlainObject=$n,w.isPromise=na,w.isRegExp=ol,w.isSet=ea,w.isString=Zo,w.isSubPage=$a,w.isSymbol=ta,w.isWindow=el,w.lastIndexOf=ua,w.makeArray=ia,w.merge=nl,w.multiply=Yo,w.negate=Uo,w.nextTick=ra,w.numberFormat=Rt,w.objectToString=Jo,w.once=Ca,w.property=Ve,w.raf=Xo,w.readonlyProperty=$e,w.setGlobalValidateCheckEvents=ya,w.setGlobalValidateHandler=ma,w.setGlobalValidateMessages=wa,w.setGlobalValidateResetEvents=ba,w.setGlobalValidator=ga,w.sticky=xt,w.throttle=gl,w.toBoolean=re,w.toNumber=se,w.toPadding=Ae,w.toPx=ce,w.toPxDesc=Ce,w.toTypeString=Mt,w.toValue=ie,w.tryTimes=jt,w.typeOf=nt,w.unNumberFormat=Go,w.updatePageState=On,w.useBroadcast=yt,w.useDomain=ze,w.useExpose=me,w.useInnerSize=Mn,w.usePageState=Ht,w.usePosition=El,w.useRect=Qe,w.useSize=Rn,w.useTouch=Jn,w.valueLength=Oe,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
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]=Nn(Oe(e),Oe(n)),a==1&&(l==1?e=Dn(e):n=Dn(n));let o=sa(e,n);return a?a==2?"-"+Oe(o):e.length<o.length?Oe(o.substring(1)):"-"+Oe(Dn(o)):Oe(o)}function Dn(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 sa(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 Nn(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 sa(e,n){[e,n]=Nn(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 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 Tt(e,n=0,a=Te.HALF_EVEN){if(a===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 o=e.split("."),r=o[0],i=o[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=Tt(e,0,a),(l?"-":"")+u+new Array(n+1).join("0")}}if(n==0)return r.length,ua(o[1],r,l,a)?(l?"-":"")+En(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 s=o[1].substring(n);return s&&ua(s,i,l,a)&&(i=En(i),i.length>n)?(l?"-":"")+En(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function ua(e,n,a,l){if(!e||e===new Array(e.length+1).join("0")||l===Te.DOWN||!a&&l===Te.FLOOR||a&&l===Te.CEILING)return!1;if(l===Te.UP||a&&l===Te.FLOOR||!a&&l===Te.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 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 En(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 In(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 c=e;e=n,n=c}if(n=="0")return"0";let i=n.length,s=0,u=[],d=i-1,h="";for(let c=0;c<i;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let w=0;for(let E=n.length-1;E>=d&&E>=0;E--)u[E]>-1&&u[E]<e.length&&(w+=parseInt(e[u[E]--])*parseInt(n[E]));w+=s,s=Math.floor(w/10),h=w%10+h,d--}return h=xt(Or(h,r)),a==1&&(h="-"+h),h}function Or(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 Vn(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,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(a=a+2;r<=a;){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?"-":"")+Oe(Tt(s,a-2))}function On(e,n){return e=e.toString(),n=n.toString(),n=An(n),Pt(e,n)}function An(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function ca(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),fa(e),fa(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=On(e,In(n,Tt(Vn(e,n),0,Te.FLOOR)));return a+l}function fa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function da(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]=Nn(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=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[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="",s=r;s>0;)s<a?(a=s,s=0):s-=a,i=n.substring(s,s+a)+(s<r-a&&s>=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=Te.HALF_EVEN){if(n=fe.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Tt(n,a,l)}round(n=0,a=Te.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new fe(Tt(this.value,n,a))}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,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),On(n,a)}subtract(n){return new fe(On(this.value,n.getValue()))}static multiply(n,a){return n=fe.validate(n),a=fe.validate(a),In(n,a)}multiply(n){return new fe(In(this.value,n.getValue()))}static divide(n,a,l){return n=fe.validate(n),a=fe.validate(a),Vn(n,a,l)}divide(n,a){return new fe(Vn(this.value,n.getValue(),a))}static modulus(n,a){return n=fe.validate(n),a=fe.validate(a),ca(n,a)}modulus(n){return new fe(ca(this.value,n.getValue()))}static compareTo(n,a){return n=fe.validate(n),a=fe.validate(a),da(n,a)}compareTo(n){return da(this.value,n.getValue())}static negate(n){return n=fe.validate(n),An(n)}negate(){return new fe(An(this.value))}}function ha(e,n){return fe.multiply(`${e}`,`${n}`)}function Fn(e,n,a=8){return fe.divide(`${e}`,`${n}`,a)}function Bn(e,n){return e=`${e}`,n=`${n}`,fe.compareTo(e,n)}function ma(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 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):a&&n>u.length&&(u=u.padEnd(n,"0")));let h;if(l>0){let c="",w=s.split("").reverse();for(let E=0;E<w.length;E++)c+=w[E]+((E+1)%l==0&&E+1!=w.length?o:"");u.length==0?h=`${i}${c.split("").reverse().join("")}`:h=`${i}${c.split("").reverse().join("")}.${u}`}else u.length==0?h=`${i}${s}`:h=`${i}${s}.${u}`;return h}function ga(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let l=n.replace(/[^\d\.-]/g,"");return`${a}${l}`}const Mn=kn,Ar=Array.isArray,Fr=e=>jt(e)==="[object Map]",Br=e=>jt(e)==="[object Set]",Je=e=>e instanceof Date,Rn=e=>typeof e=="function",ya=e=>typeof e=="string",Mr=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",zt=e=>Re(e)&&Rn(e.then)&&Rn(e.catch),pa=Object.prototype.toString,jt=e=>pa.call(e),Ln=e=>jt(e)==="[object Object]",ba=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Rr(e){return e.__esModule||ba&&e[Symbol.toStringTag]==="Module"}const Lr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function at(...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 s=n[i],u=r[i];if(s!==u)if(o===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},n[i]=at(o,d,u)}else u!==void 0&&(n[i]=u)}}return n}function _n(e,n,a=!1){if(!a)at(!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)&&!Ln(i))continue;r=_n(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)&&!Ln(i))continue;r=_n(r,i,a),e[o]=r}else{if(typeof i=="function")continue;e[o]=i}}}return e}const Pn=Lr?Promise.resolve():null;function _r(e,...n){Pn!==null?n&&n.length>0?Pn.then(()=>{e(n)}):Pn.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 Pr={"[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):Pr[a]||"object"}function va(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 wa(e){let n=!!e&&"length"in e&&e.length,a=Ht(e);return a==="function"||va(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Sa(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 qr(e,n=[]){let a=n;return e!=null&&(wa(Object(e))?Sa(a,typeof e=="string"?[e]:e):a.push(e)),a}function _e(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 s=o[i],u=e[s],d=n[s];if(!_e(u,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(!_e(r,i))return!1}return!0}return!1}const ot=typeof window<"u";function qn(e){return e==null}function Ta(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ye=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function xa(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 Ca(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 $a(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 ka(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 zr(e,n=!0,a=!0){n?e=ka(e,".",/\./g):e=e.replace(/\./g,""),a?e=ka(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function jr(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(_e(e,a))return!0}):n.indexOf(e)}function Hr(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(l=>{if(_e(e,l))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ze(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Ct(e,...n){const a={};return n.forEach(l=>{for(const o in l)a[o]=e[o]}),a}function $e(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 Kr=(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 zn{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 u=Reflect.apply(i,this.proxy,[...l]);u!=null&&r.push(u)}const s=this.proxy??{};if(typeof s[a]=="function"){const u=Reflect.apply(s[a],s,[...l]);u!=null&&r.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},a,...l]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),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 zn(n,e,a);if(l&&typeof l=="object")for(const r in l)o.on(r,l[r]);return o}function Yr(e,n,a){const l=a;if(l[Ne])return l[Ne];const o=t.inject(Ne,null),r=new zn(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 $t(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ne]??t.inject(Ne,null):t.inject(Ne,null)}const rt=e=>e.default??e;class Wr{error(n,a){const l=a,o=$t(a);o?o.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const a=n,l=$t(n);l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,l=$t(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=$t(l),i=a.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 o.setRequired=="function"&&o.setRequired(!0):i&&!s&&(r?r.emit({name:"*"},"setRequired",!1):typeof o.setRequired=="function"&&o.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let Da=new Wr;function Ur(e){Da=e}function Gr(e,n){rt(lt).setValidator(e,n)}function Xr(e){rt(lt).deleteValidator(e)}let Na=["blur","clear"];function Zr(e){Na=e}function Ea(){return Na}let Ia=["focus","change"];function Jr(e){Ia=e}function Va(){return Ia}function Qr(e){rt(lt).messages(e)}function kt(...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 Oa{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,l){this.parent=n,this.descriptor=a,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 a=Wt(kt(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=Wt(l);const o=kt(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=Da;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?rt(lt).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?rt(lt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return rt(lt).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=kt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Wt(n):this.rules=Wt([n]);const l=kt(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=kt(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(a.length>0){const o={[`${l}`]:a},r=this.getValue(),i={[`${l}`]:r},s=rt(lt),u=new s(o),d=this.proxy??i;return u.validate(i,{context:d}).then(c=>{if(c.pass)this.success();else{let w="error";Array.isArray(c.errors)&&c.errors.length>0&&(w=c.errors[0].message??w,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(w)}return c}).catch(c=>{const w=c.message??`${c}`;return this.error(w),c})}}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 Oa(n,a,e)}const Aa=Symbol.for("EventEmitterKey");class ei{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 Dt(e,n){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...l])},n)}}function Fa(e,n){let a=0;return function(...l){const o=new Date().getTime();o-a<n||(a=o,Reflect.apply(e,null,[...l]))}}function ti(e,n){const a=Dt((l,o)=>{e=l,o()},n);return t.customRef((l,o)=>({get(){return l(),e},set(r){a(r,o)}}))}function ni(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,s=0;if(o){const d=e();if(s++,d){typeof r=="function"&&r(!0);return}if(s>a){typeof r=="function"&&r(!1);return}}const u=()=>{const d=e();if(s++,d){typeof r=="function"&&r(!0);return}if(s>a){typeof r=="function"&&r(!1);return}i+=l,setTimeout(u,i)};setTimeout(u,i)}const Pe=Symbol("DomainKey"),ft=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 li=new Xt;function dt(){return li}function Ue(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Pe]??t.inject(Pe,null):t.inject(Pe,null)}const jn=Symbol("OriginalDateKey");function Hn(e,n,a=[],l){const o=t.getCurrentInstance(),r=o?.proxy;let i=t.inject(Pe,null);i===null&&(i=dt());const s=e||n.prop||n.name,u=new Xt(s);u.parent=i;const d=m=>{r[jn]||w(m),u.set("modelValue",m)},h=()=>u.getForSelf("modelValue")??null,c=()=>r[jn]??null,w=m=>{const p={};at(!0,p,t.toRaw(m)),r[jn]=p};t.isReactive(n)||typeof n=="function"?t.watch(n,m=>{u.merge(m,a)},{immediate:!0}):u.merge(n,a),n.modelValue&&w(n.modelValue),r[Pe]=u,t.provide(Pe,u);let E=null,y=null;if(o!==null){const m=t.inject(Ne,null);E=Yt(r,m,s,l),u.broadcast=E,r[Ne]=E,t.provide(Ne,E),r.broadcast=(S,g,...f)=>Reflect.apply(E.emit,E,[S,g,...f]);const p=t.inject(We,null);y=Ut(r,p,{componentName:""}),u.validateSchema=y,r[We]=y,t.provide(We,y),r[ft]=new Map,r.validate=(S=!0)=>{const g=[];let f=null;const R={deep:!1};if(S===!0)f={name:"*"};else if(Array.isArray(S)&&S.length>0){const z=S;f={name:q=>q?z.indexOf(q)!==-1:!1}}else if(S!=null&&typeof S=="object"){const z=S;if(Object.assign(R,z),Array.isArray(z.include)&&z.include.length>0){const q=z.include;f={name:j=>j?q.indexOf(j)!==-1:!1}}else if(Array.isArray(z.exclude)&&z.exclude.length>0){const q=z.exclude;f={name:j=>j?q.indexOf(j)===-1:!1}}else f={name:"*"}}if(f){const z=E?.emitToChildren(f,"validate",R);z&&Reflect.apply([].push,g,z)}return g.length==1?g[0]:g.length>1?Promise.all(g).then(z=>{let q=[];return z.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,f=!1)=>{if(f===!0){Reflect.ownKeys(S).forEach(z=>{let q=String(z);const B=Ra(u,q,{componentName:"",fieldName:q,pureDataValidate:!0},E,y);r[ft].set(q,B);const I=S[q];I&&B.validateSchema.setRule(I)});return}if(g){const R=Reflect.ownKeys(S),z={name:q=>R.includes(q)};E?.emitToChildren(z,"setNameValidateRules",S,!1)}},r.clearValidate=(S=!0)=>{let g=null;if(S===!0)g={name:"*"};else if(Array.isArray(S)&&S.length>0){const f=S;g={name:R=>R?f.indexOf(R)!==-1:!1}}else if(S!=null&&typeof S=="object"){const f=S;if(Array.isArray(f.include)&&f.include.length>0){const R=f.include;g={name:z=>z?R.indexOf(z)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const R=f.exclude;g={name:z=>z?R.indexOf(z)===-1:!1}}else g={name:"*"}}g&&E?.emitToChildren(g,"clearValidate",!1)},r.resetFields=S=>{const g=h();if(!g)return;const f={};if(at(!0,f,c()??{}),Array.isArray(S))S.forEach(R=>{g[R]=f[R]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(z=>{g[z]=f[z]});else if(S&&Array.isArray(S.exclude)){let R=S.exclude??[];Reflect.ownKeys(f).forEach(z=>{R.includes(z)||(g[z]=f[z])})}else Object.assign(g,f);r.clearValidate(S)},r.setModelValue=(S,g)=>{!g||g===s?d(S):E?.emitToChildren({name:g},"setModelValue",S)},r.getModelValue=()=>h()}return t.onUnmounted(()=>{u.destroy(),r[Pe]=void 0,r[ft]&&(r[ft].clear(),r[ft]=void 0),E!==null&&(E.destroy(),r[Ne]=void 0),y!==null&&(y.destroy(),r[We]=void 0)}),u}function Ba(e,n,a=[]){const o=t.getCurrentInstance()?.proxy;let r=t.inject(Pe,null);r===null&&(r=dt());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,a)},{immediate:!0}):s.merge(n,a),o[Pe]=s,t.provide(Pe,s),t.onUnmounted(()=>{s.destroy(),o[Pe]=void 0}),s}function Ma(e,n,a){const o=Ue(e)?.get("rules");if(!o)return;let r=o[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function xe(e,n,a){const o=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(Ne,null),s=Yt(o,i,r,a);o[Ne]=s,t.provide(Ne,s),o.broadcast=(y,m,...p)=>Reflect.apply(s.emit,s,[y,m,...p]);const u=t.inject(We,null);e.fieldName=e.fieldName??r;const d=Ut(o,u,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,f=g.ignoreDisabled??!0,R=g.ignoreReadonly??!0,z=g.ignoreHidden??!0;f===!0&&e.disabled===!0||R===!0&&e.readonly===!0||z===!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 f={deep:!1};if(y===!0)g={name:"*"};else if(Array.isArray(y)&&y.length>0){const R=y;g={name:z=>z?R.indexOf(z)!==-1:!1}}else if(y!=null&&typeof y=="object"){const R=y;if(Object.assign(f,R),Array.isArray(R.include)&&R.include.length>0){const z=R.include;g={name:q=>q?z.indexOf(q)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const z=R.exclude;g={name:q=>q?z.indexOf(q)===-1:!1}}else g={name:"*"}}if(g){const R=s.emitToChildren(g,"validate",f);Reflect.apply([].push,m,R)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(g=>{let f=[];return g.forEach(R=>{R.pass===!1&&Array.isArray(R.errors)&&(f=[...f,...R.errors])}),f.length>0?{pass:!1,errors:f}:{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)};s.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&&s.emitToChildren(m,"clearValidate",!1)};const h=new ei(o);o[Aa]=h;const c=Dt((y="validate")=>{y==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ea()).forEach(y=>{h.on(y,m=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Va()).forEach(y=>{h.on(y,m=>{c("reset")})}),t.onUnmounted(()=>{s.destroy(),o[Ne]=void 0,d.destroy(),o[We]=void 0,h.destroy(),o[Aa]=void 0}),{broadcast:s,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 Ra(e,n,a,l,o){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}};a.fieldName=i,a.validateHandler={getValue(h){return s.getValue()}};const u=Ut({},o,a);r.validate=(h=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let w=!1,E=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)E=!0,w=!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),E=!0,w=y.deep??!1}else typeof h=="boolean"&&(w=h),E=!0;if(E){const y=u?.validate();c.push(y)}if(w){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(Object.assign(m,p),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,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).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=>u?.setRule(h),r.setNameValidateRules=h=>{const c=h[i];c&&u?.setRule(c)};const d=Yt(null,l,i,r);return{broadcast:d,validateSchema:u}}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(ot){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(r=Number(i.substring(0,s)))}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 Kn(e,n,a={},l=!0,o=-1,r=-1,i=0,s=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 u=a.height??n.height;u?e.height=me(u,r):e.height=me(r)-me(i,r)-me(s,r),e.width=me(a.width??n.width??0,o)}}function La(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,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Kn(l,r,n,!0,i,s,u,d);const h=t.reactive(l),c=e.getForParent(Qe);c&&(l.height=Jt(e,c),l.width=Qt(e,c),t.watch([()=>Jt(e,c),()=>Qt(e,c)],([E,y])=>{h.height=E,h.width=y}));const w=!c;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([E,y,m=-1,p=-1,S=0,g=0])=>{Kn(h,y,n,w,m,p,S,g)}),e.set(Qe,h),h}function Zt(e){return e.get(Qe)}function Nt(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 Et(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 Jt(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Nt(e,n),l=Et(e,n);return n.height-a-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Qt(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function ai(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function oi(e){return!!e.getForParent(Qe)}var Le=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Le||{});function Yn(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 s=r.length-1;s>=0;s--){const u=r[s];if(Yn(u,l))return u}const i=e.value;return Yn(i,l)?i:null}):t.computed(()=>{const r=e.value;return Yn(r,l)?r:o?.get(n)})}function Ie(e){return Ee(e,"readonly",0,function(a){return ce(a)})}function Ve(e){return Ee(e,"disabled",0,function(a){return ce(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 s=a(i);s!==r.value&&(r.value=s)}else i!==r.value&&(r.value=i)}),r}const _a=new Map,en=new Map;let Wn=null;function ri(e){Wn=e}function Pa(e,n,a){if(a){let l=en.get(a);l||(l=new Map,en.set(a,l)),l.set(e,n)}else _a.set(e,n)}function Fe(e,n,a){!a&&Wn&&(a=Wn(e)??void 0);let l=null;if(a){let o=en.get(a);o&&(l=o.get(n))}return l||(l=_a.get(n)),l}function ii(e,n){for(let a in e){const l=e[a];Pa(a,l,n)}}function si(e){en.delete(e)}function ui(){return{top:0,left:0,bottom:0,right:0}}function ci(e=0,n=0){if(ot){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 fi{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=dt();if(this.initPageLayout(a,o),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Fa(()=>{const s={...a},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=d,this.initPageLayout(s,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=at({},ui(),n.safeAreaInset),i=ci(l,o),s=at({},i.pageLayout,n.pageLayout);a=a??dt(),a.set("safeAreaInset",r),a.set("headerBarHeight",l),a.set("footerBarHeight",o),a.set("pageLayout",s),a.set("rootWidth",i.rootWidth),a.set("rootHeight",i.rootHeight)}setScopeGetter(n){ri(n)}setAPI(n,a,l){Pa(n,a,l)}getAPI(n,a,l){return Fe(n,a,l)}batchSetAPI(n,a){ii(n,a)}clearScopeAPI(n){si(n)}getRootDomain(){return dt()}}const di=[F.ElAffix,F.ElAlert,F.ElAutocomplete,F.ElAutoResizer,F.ElAvatar,F.ElBacktop,F.ElBadge,F.ElBreadcrumb,F.ElBreadcrumbItem,F.ElButton,F.ElButtonGroup,F.ElCalendar,F.ElCard,F.ElCarousel,F.ElCarouselItem,F.ElCascader,F.ElCascaderPanel,F.ElCheckTag,F.ElCheckbox,F.ElCheckboxButton,F.ElCheckboxGroup,F.ElCol,F.ElCollapse,F.ElCollapseItem,F.ElCollapseTransition,F.ElColorPicker,F.ElConfigProvider,F.ElContainer,F.ElAside,F.ElFooter,F.ElHeader,F.ElMain,F.ElDatePicker,F.ElDescriptions,F.ElDescriptionsItem,F.ElDialog,F.ElDivider,F.ElDrawer,F.ElDropdown,F.ElDropdownItem,F.ElDropdownMenu,F.ElEmpty,F.ElForm,F.ElFormItem,F.ElIcon,F.ElImage,F.ElImageViewer,F.ElInput,F.ElInputNumber,F.ElLink,F.ElMenu,F.ElSubMenu,F.ElMenuItem,F.ElMenuItemGroup,F.ElPageHeader,F.ElPagination,F.ElPopconfirm,F.ElPopover,F.ElPopper,F.ElProgress,F.ElRadio,F.ElRadioButton,F.ElRadioGroup,F.ElRate,F.ElResult,F.ElRow,F.ElScrollbar,F.ElSelect,F.ElOption,F.ElOptionGroup,F.ElSelectV2,F.ElSkeleton,F.ElSkeletonItem,F.ElSlider,F.ElSpace,F.ElSteps,F.ElStep,F.ElSwitch,F.ElTable,F.ElTableColumn,F.ElTableV2,F.ElTabs,F.ElTabPane,F.ElTag,F.ElTimePicker,F.ElTimeSelect,F.ElTimeline,F.ElTimelineItem,F.ElTooltip,F.ElTransfer,F.ElTree,F.ElTreeSelect,F.ElTreeV2,F.ElUpload],hi=[F.ElInfiniteScroll,F.ElLoading,F.ElMessage,F.ElMessageBox,F.ElNotification,F.ElPopoverDirective],mi=e=>{di.forEach(n=>{let a=n.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,n)):e.use(n)}),hi.forEach(n=>{e.use(n)})};function se(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 we={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}},qa={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}},za={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}},ja=[];for(const e in za)ja.push(e);const gi=Symbol.for("InnerPageScopeKey"),yi={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}},pi=(e,n)=>({inheritAttrs:!0,props:{...we,...qa,...yi},setup(a,{slots:l}){const o=Hn(a.name,a),r=t.inject(gi,!1);if(o){const h=La(o,a);pe({getPageContentHeight:()=>Jt(o,h),getPageContentWidth:()=>Qt(o,h),getPageHeaderHeight:()=>Nt(o,h),getPageFooterHeight:()=>Et(o,h)}),h&&r&&(h.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),u=t.getCurrentInstance(),d=(h,c=!1)=>{const w=u?.proxy;w&&typeof w.setNameValidateRules=="function"&&w.setNameValidateRules(h,!0,c)};return t.watch([()=>a.rules,()=>a.pureDataRules],([h,c],[w,E])=>{if(h&&w){const y=t.toRaw(w),m=t.toRaw(h),p=m?Reflect.ownKeys(m):[];(y?Reflect.ownKeys(y):[]).forEach(g=>{p.includes(g)||(m[g]=[])}),d(m)}if(c&&E){const y=t.toRaw(E),m=t.toRaw(c),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:s.value};return t.h("div",h,[l?.default?.()])}}}),{componentName:bi,create:vi,scope:Rg}=se("page"),Un=vi(pi(bi));function tn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Gn(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 wi=(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(),s=i?Zt(i):null;s&&(s.headerMounted=!0);const u=e,d=t.computed(()=>({[u]:!0,[`${u}--border`]:o.border,[`${u}--fixed`]:o.fixed,[`${u}--safe-area-inset-top`]:o.safeAreaInsetTop})),h=t.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${o.align}`]:!0})),c=o.height!==null&&o.height!==void 0?me(o.height):null,w=t.computed(()=>{const C={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const $=je(o.padding??s.headerPadding);return Object.assign(C,$),c&&(s.headerHeight=c),s.headerHeight>0&&(C.height=s.headerHeight),C.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,C.safeAreaTop>0&&(C.top=C.safeAreaTop+($.top??0),C.height&&C.height>0&&(C.height=C.height+C.safeAreaTop)),C}if(c&&(C.height=c),o.padding){const $=je(o.padding);Object.assign(C,$)}return C}),E=t.ref(null),y=()=>{if(s&&E.value&&!Kt(E.value)){if(!l){const C=tn(E.value);s.headerAllHeight=C.height}return s.headerMounted=!0,!0}return!1};let m=null;t.onMounted(()=>{s&&(Gt(y,50,5,50,!0),window.ResizeObserver&&E.value&&(m=new window.ResizeObserver(()=>{y()}),m.observe(E.value)))}),t.onUnmounted(()=>{s&&(s.headerMounted=!1,m&&(m.disconnect(),m=null))});const p=t.computed(()=>{const C={};return w.value.height!==null&&w.value.height!==void 0&&(C.height=`${w.value.height}px`),w.value.top!==null&&w.value.top!==void 0&&(C.paddingTop=`${w.value.top}px`),w.value.left!==null&&w.value.left!==void 0&&(C.paddingLeft=`${w.value.left}px`),w.value.right!==null&&w.value.right!==void 0&&(C.paddingRight=`${w.value.right}px`),w.value.bottom!==null&&w.value.bottom!==void 0&&(C.paddingBottom=`${w.value.bottom}px`),C}),S=t.computed(()=>!(w.value.height!==null&&w.value.height!==void 0&&w.value.height<=0));function g(){r.emit("back")}function f(){r.emit("click-title")}function R(){r.emit("click-right")}function z(){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.h("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);C.push($)}else if(o.leftIcon){const $=t.h("view",{class:"left-icon",onClick:g},[t.h(o.leftIcon)]);C.push($)}if(o.leftText){const $=t.h("view",{class:"left-text",onClick:g},[o.leftText]);C.push($)}}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.h("view",{class:"right-text",onClick:z},[o.rightText]);C.push($)}if(r.slots.rightIcon){const $=t.h("view",{class:"right-icon",onClick:R},[r.slots.rightIcon()]);C.push($)}else if(o.rightIcon){const $=t.h("view",{class:"right-icon",onClick:R},[t.h(o.rightIcon)]);C.push($)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__right"},C)},B=()=>{if(!o.titleShow)return null;const C=[],$=r.slots.default?r.slots.default():null;if($)C.push($);else{if(o.title){const L=t.h("view",{class:"title-text"},[o.title]);C.push(L)}if(r.slots.titleIcon){const L=t.h("view",{class:"title-icon",onClick:f},[r.slots.titleIcon()]);C.push(L)}else if(o.titleIcon){const L=t.h("view",{class:"title-icon",onClick:f},[t.h(o.titleIcon)]);C.push(L)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__title"},C)},I=()=>{const C=[],$=r.slots.bottom?r.slots.bottom():null;return $&&C.push($),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 L=[],D=q();D&&L.push(D);const V=B();V&&L.push(V);const N=j();if(N&&L.push(N),L.length>0){const P=t.h("view",{class:h.value},L);C.push(P)}const U=I();U&&C.push(U)}if(C.length===0)return null;const $={class:d.value,style:p.value,ref:E};return t.h("view",$,C)}}}),{componentName:Si,create:Ti,scope:xi}=se("header-bar"),Xn=Ti(wi(Si,xi,Ce.ArrowLeft));function Ci(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,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 m=je(l.padding??i.footerPadding);return Object.assign(y,m),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+(m.bottom??0),y.height&&y.height>0&&(y.height=y.height+y.safeAreaBottom)),y}if(u&&(y.height=u),l.padding){const m=je(l.padding);Object.assign(y,m)}return y}),h=t.ref(null),c=()=>{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 w=null;t.onMounted(()=>{i&&(Gt(c,50,5,50,!0),window.ResizeObserver&&(w=new window.ResizeObserver(()=>{c()}),w.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,w&&(w.disconnect(),w=null))});const E=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:s.value,style:E.value};return t.h("view",m,y)}}}}const{componentName:$i,create:ki,scope:Lg}=se("footer-bar"),Zn=ki(Ci($i));function Di(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 E=je(a.padding);Object.assign(r.contentPadding,E)}const h=Nt(l,r),c=Et(l,r);let w="";if(r.contentHeight?w=`${r.contentHeight}`:w=`${r.height}px`,r.contentPadding,d.height=w,r.contentPadding.top||h>0){const E=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${h+E}px`}if(r.contentPadding.bottom||c>0){const E=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${c+E}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}),s=t.ref(null),u=()=>{if(r&&s.value){const d=Gn(s.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}};return t.onMounted(()=>{u()}),l&&r&&t.watch([()=>Nt(l),()=>Et(l)],([])=>{u()}),{contentRef:s,classes:o,styles:i}}}}const{componentName:Ni,create:Ei,scope:_g}=se("content"),Ii=Ei(Di(Ni));function Vi(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 De=(e,n)=>{const a=e.__vccOpts||e;for(const[l,o]of n)a[l]=o;return a},Jn=De(Ii,[["render",Vi]]),ht="GroupStateKey",Ha=Symbol.for("GroupScopeKey");function nn(){return t.inject(Ha,!1)}function ln(e=!0){t.provide(Ha,e)}function Oi(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const o=n[l];qn(o)||(e[l]=o)})}function Ai(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Oi(l,n);const o=t.shallowRef(l),r=t.markRaw({layout:o,passport:0,order:{index:0}});return e.set(ht,r),r}function Qn(e,n,a=-1,l=-1,o=!1,r,i,s){const u=e.get(ht);if(!u)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),c=me(i);s||(s=d.type??"grid");const w=()=>{const E=n===""||n===-1,y=me(n);let m=he(a);const p=me(l);if(!E){let f=(y-(m-1)*p)/m;for(;c!==-1&&f>c;)m++,f=(y-(m-1)*p)/m;for(;h!==-1&&m>1&&f<h;)m--,f=(y-(m-1)*p)/m}let S=!1;const g=u.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!==s&&(g.value.type=s,S=!0),S&&t.triggerRef(g)};if(o)w();else{const E=++u.passport;setTimeout(()=>{E===u.passport&&w()},50)}}function an(e,n=!1){let a;return n?a=e.getForParent(ht):a=e.get(ht),a.layout}function on(e,n=!1){let a;return n?a=e.getForParent(ht):a=e.get(ht),a.order}function Ka(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=Ka(n.column,a),i>0&&(r.width=`${i}%`);const s=Ka(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,a=1,l=0){if(a==="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 o=he(a);if(o===-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(o>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+o;return s>n.column?(i=0,s=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 Ya=Symbol("RollingStateKey");function Fi(e){t.provide(Ya,e)}function Bi(){return t.inject(Ya,null)}function el(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 Mi(e){let n=el(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=el(a),document.body.removeChild(a)}return n}function Ri(e,n,a){if(e<=0)return"1fr";const l=(e-(n-1)*a)/n;return l>0?`${l}px`:"1fr"}const Li={...we,...qa,...za};function _i(e,n,a){return{props:Li,emits:["update:collapse"],setup(l,o){const r=Hn(l.name,l,ja),i=Ai(r,{type:l.type}),s=nn();ln(!0);const u=l.rollingDisplay?Bi():null,d=t.ref(null),h=t.computed(()=>l.rollingDisplay?u&&!u.disabled:!1),c=t.computed(()=>s&&r?an(r,!0).value:null),w=t.getCurrentInstance(),E=(x,M=!1)=>{const X=w?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(x,!0,M)};t.watch([()=>l.rules,()=>l.pureDataRules],([x,M],[X,ne])=>{if(x&&X){const T=t.toRaw(X),Y=t.toRaw(x),ee=Y?Reflect.ownKeys(Y):[];(T?Reflect.ownKeys(T):[]).forEach(te=>{ee.includes(te)||(Y[te]=[])}),E(Y)}if(M&&ne){const T=t.toRaw(ne),Y=t.toRaw(M),ee=Y?Reflect.ownKeys(Y):[];(T?Reflect.ownKeys(T):[]).forEach(te=>{ee.includes(te)||(Y[te]=[])}),E(Y,!0)}},{deep:!0});const y=e,m=t.computed(()=>{const x={};x.height=N.value;const M=s?on(r,!0):null;if(c.value&&M){if(c.value.type==="grid"){const X=sn(M,c.value,l.span,l.offset);Object.assign(x,X)}else if(c.value.type==="flow"){const X=rn(M,c.value,l.span,l.offset,l.width);Object.assign(x,X)}}else if(l.width){const X=Ae(l.width);x.width=X}return x}),p=t.computed(()=>{const x=i.layout.value.type;return x==="grid"||x==="flow"?{[`${y}--${x}`]:!0,[`${y}--${x}-justify-${l.justify}`]:!0,[`${y}--${x}-align-${l.align}`]:!0,[`${y}--gutter`]:!0}:{[`${y}--${x}`]:!0,[`${y}--gutter`]:!0}}),S=t.computed(()=>{if(i.layout.value.type==="grid"){let M="";if(l.columnWidth)M=`repeat(auto-fill, ${l.columnWidth})`;else{const X=Ri(B.value,i.layout.value.column,i.layout.value.gutter);M=`repeat(${i.layout.value.column}, ${X})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":M}}}),g=t.toRef(l,"gutter"),f=t.toRef(l,"column"),R=t.computed(()=>s||h.value?!0:ce(l.isWrap)),z=[],q=x=>{z.push(x)},j=()=>{let x=z.length;z.splice(0,x)},B=t.ref(-1),I=x=>{const M=Gn(x).width;M>0&&M!==B.value&&(B.value=M)};Qn(r,B.value,f.value,g.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([B,f,g],([x,M,X])=>{i.order.index=0,Qn(r,x,M,X,!1,l.minItemWidth,l.maxItemWidth,l.type)});const C=t.computed(()=>U.value?l.expandText??"":l.collapseText??""),$=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),L=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),D=t.ref(),V=t.ref(),N=t.computed(()=>P.value||Ae(l.height)||""),U=t.ref(!1),P=t.ref(""),Q=t.ref(!1);let Z=-1;const J=(x,M=!0)=>{const X=D.value;if(X&&U.value!==x){if(Z=Z===-1?Mi(X):Z,Q.value=!0,M)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",x||(P.value="",Q.value=!1)},x){let ne=0;l.collapseHeight?ne=l.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(ne=V.value.offsetHeight),P.value=`${Z}px`,t.nextTick(()=>{P.value=`${ne}px`})}else P.value=`${Z}px`;else if(x){let ne=0;l.collapseHeight?ne=l.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(ne=V.value.offsetHeight),P.value=`${ne}px`}else Q.value=!1,P.value=`${Z}px`;U.value=x,o.emit("update:collapse",x)}};t.watch(()=>l.collapse,x=>{J(x)});const le=()=>{_()},_=x=>{x=x??!U.value,J(x)};pe({toggleCollapse:_,doLayout:()=>{z[0]&&(I(z[0]),Qn(r,B.value,f.value,g.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let K=null,H=!0;const A=x=>{if(l.rules){const M=t.toRaw(l.rules);E(M)}if(l.pureDataRules){const M=t.toRaw(l.pureDataRules);E(M,!0)}if(ot&&(x&&J(ce(l.collapse),!1),l.autoLayout&&Array.isArray(z)&&z.length>0)){const M=z[0];I(M),window.ResizeObserver&&(K=new window.ResizeObserver(()=>{I(M)}),K.observe(M))}},G=()=>{K?.disconnect(),K=null},W=!h.value||u?.acquire();W&&(d.value=h.value?!0:null),t.onMounted(()=>{if(W&&(A(H),H=!1),h.value&&u){let x=null,M=u.initialHeight;u.observe(D.value,X=>{if(X!==d.value)if(X)d.value=!0,U.value||(P.value=""),x=setTimeout(()=>{x=null,d.value!==!1&&(A(H),H=!1)},100);else{if(x!==null&&clearTimeout(x),d.value=!1,!U.value)if(H)P.value=u.initialHeight;else{let ne=el(D.value);ne<=0?P.value=M:(P.value=`${ne}px`,M=P.value)}H||G()}})}}),t.onUnmounted(()=>{K?.disconnect(),u&&u.unobserve(D.value)});const k=(x="right")=>{const M=[];if(C.value){const T={class:$.value},Y=t.h("span",T,[C.value]);M.push(Y)}const X={class:L.value},ne=a(l.collapseIcon,X);return ne&&M.push(ne),M.length>0?t.h("div",{class:{[`${y}__header-collapse`]:!0,[`is-${x}`]:!0},onClick:le},M):null},b=(x,M,X,ne)=>{const T={...p.value};return M===0&&(T[`${y}__first`]=!0),X>=ne-1&&(T[`${y}__last`]=!0),t.h("div",{ref:q,key:`${M}`,class:T,style:S.value},x)};return()=>{if(h.value&&d.value!==!0){const T=l.tag||"div";return t.h(T,{ref:D,prop:l.name,class:{[`${y}`]:!0,"is-collapse":Q.value},style:m.value},[])}i.order.index=0;const x=[];let M=0;if(o.slots.header){const T={key:`${M++}`,ref:V,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},Y=t.h("div",T,[o.slots.header()]);x.push(Y)}else{const T=[],Y=l.collapsePosition==="left";if(Y&&l.showCollapse){const ee=k("left");ee&&T.push(ee)}if(l.title||o.slots.title){if(l.showMark){const ee={class:{[`${y}__header-mark`]:!0}};l.markColor&&(ee.style={background:l.markColor});const ae=t.h("div",ee);T.push(ae)}if(o.slots.title){const ee=t.h("div",{class:{[`${y}__header-title`]:!0}},[o.slots.title()]);T.push(ee)}else if(l.title){const ee=t.h("div",{class:{[`${y}__header-title`]:!0}},[l.title]);T.push(ee)}}if(o.slots.toolbar&&T.push(o.slots.toolbar()),!Y&&l.showCollapse){const ee=k("right");ee&&T.push(ee)}if(T.length>0){const ee={key:`${M++}`,ref:V,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},ae=t.h("div",ee,T);x.push(ae)}}j();const X=o.slots.default?o.slots.default():[],ne=i.layout.value.type;if(ne==="grid"){const T=b(X,M++,0,X.length);x.push(T)}else if(ne==="flow"){const T=b(X,M++,0,X.length);x.push(T)}else for(let T=0;T<X.length;T++){const Y=X[T],ee=b([Y],M++,T,X.length);x.push(ee)}if(R.value){const T=l.tag||"div";return t.h(T,{ref:D,prop:l.name,class:{[`${y}`]:!0,"is-collapse":Q.value},style:m.value},[x])}else return x}}}}const{componentName:Pi,create:qi,scope:zi}=se("group"),tl=qi(_i(Pi,zi,(e,n)=>(e=e??Ce.ArrowUp,t.h(F.ElIcon,n,{default:()=>[t.h(e)]}))));function ji(e){return e===window}const Hi=/matrix\((.+)\)/,Wa=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(ji(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,s=0,u=0;for(o=n;o!==document;){i+=o.scrollTop,r+=o.scrollLeft;const{transform:d}=window.getComputedStyle(o);if(d){const h=Hi.exec(d);if(h){let w=h[1].split(/\s*,\s*/);w.length==6&&(s+=Number(w[4]),u+=Number(w[5]))}}o=o.parentNode}return a-=r,l-=i,a+=s,l+=u,{x:a,y:l}};class Ki{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 Yi{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 Ki,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 Ua=new Yi,Ga={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:Wi,create:Ui}=se("price"),Gi=Ui({props:{...Ga},setup(e){const n=t.computed(()=>({[Wi]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>ze(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 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:a,intText:o,decimalText:r}}}),Xi=["innerHTML"],Zi=["innerHTML"];function Ji(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,Xi)):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,Zi)):t.createCommentVNode("",!0)],2)}const un=De(Gi,[["render",Ji]]),{componentName:nl,create:Qi}=se("hint-text"),es=Qi({components:{Price:un},props:{...Ga,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),s=t.ref(!1),u=t.ref(null),d=($,L,D,V,N,U)=>{const P=document.documentElement.clientWidth||document.body.clientWidth,Q=document.documentElement.clientHeight||document.body.clientHeight,Z=$.split("-");let J=[];Z[0]==="top"?J=["top","bottom","right","left"]:Z[0]==="bottom"?J=["bottom","top","right","left"]:Z[0]==="left"?J=["left","top","bottom","right"]:Z[0]==="right"&&(J=["right","top","bottom","left"]);const le={top:null,right:null,bottom:null,left:null},_=[];for(let O=0;O<J.length;O++){const K=J[O];if(_[0]=K,Z[1]&&(_[1]=Z[1]),K==="top"){const H=L.y-U-e.arrowSize-e.offset;if(H>=0){le.top=H;let A=0;Z[1]==="start"?A=L.x:Z[1]==="end"?A=L.x+D-N:A=L.x+D/2-N/2;const G=P-A-N;G<0?(A+=G,c.value=-G):c.value=0,le.left=A<0?0:A;break}}else if(K==="bottom"){const H=L.y+V+e.arrowSize+e.offset;if(H+U<=Q){le.top=H;let A=0;Z[1]==="start"?A=L.x:Z[1]==="end"?A=L.x+D-N:A=L.x+D/2-N/2;const G=P-A-N;G<0?(A+=G,c.value=-G):c.value=0,le.left=A<0?0:A;break}}else if(K==="left"){const H=L.x-N-e.arrowSize-e.offset;if(H>=0){le.left=H;let A=0;Z[1]==="start"?A=L.y:Z[1]==="end"?A=L.y+V-U:A=L.y+V/2-U/2,le.top=A<0?0:A;break}}else if(K==="right"){const H=L.x+D+e.arrowSize+e.offset;if(H+N<=P){le.left=H;let A=0;Z[1]==="start"?A=L.y:Z[1]==="end"?A=L.y+V-U:A=L.y+V/2-U/2,le.top=A<0?0:A;break}}}return{bestPlacement:_.join("-"),bestInsetRect:le}},h=($,L,D=10)=>{if(!ot||L===!1||!$)return;l.value=Wa(e.reference),o.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const V=u.value.offsetHeight,N=u.value.offsetWidth,{bestPlacement:U,bestInsetRect:P}=d(e.placement,l.value,o.value,r.value,N,V);i.value=U,a.value=P,s.value=!0},c=t.ref(0),w=Dt(()=>{h(e.message,e.visible)},10),E=t.ref(e.visible);t.watch(()=>e.visible,$=>{E.value=$});const y=t.computed(()=>E.value&&m.value),m=t.ref(!0),p=Dt($=>{const L=$[0];L&&(m.value=L.isIntersecting)},10),S=new IntersectionObserver(p);t.watch([()=>e.message,()=>e.visible],([$,L])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Ua.watch(e.reference,w),S.observe(e.reference)}),t.onBeforeMount(()=>{Ua.unwatch(e.reference,w),S.unobserve(e.reference),S.disconnect()});const g=t.computed(()=>{const $={[nl]:!0};return i.value.startsWith("top")?$["is-top"]=!0:i.value.startsWith("right")?$["is-right"]=!0:i.value.startsWith("bottom")?$["is-bottom"]=!0:i.value.startsWith("right")&&($["is-right"]=!0),e.size==="small"?$["is-small"]=!0:e.size==="large"&&($["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&($[`${e.customClass}`]=!0),$}),f=t.computed(()=>{const $={};a.value.top!==null&&($.top=`${a.value.top}px`),a.value.right!==null&&($.right=`${a.value.right}px`),a.value.bottom!==null&&($.bottom=`${a.value.bottom}px`),a.value.left!==null&&($.left=`${a.value.left}px`),e.autoFit&&($["min-width"]=`${o.value}px`);const L=document.documentElement.clientWidth||document.body.clientWidth;return $["max-width"]=`${L}px`,s.value&&($.opacity="1"),e.transition||($.transition="none"),e.zIndex&&($["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign($,e.customStyle),$}),R=t.computed(()=>{const $=[`${nl}__content`];return e.customTextClass&&$.push(e.customTextClass),$}),z=t.computed(()=>{const $={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign($,e.customTextStyle),$}),q=t.computed(()=>({[`${nl}__arrow`]:!0})),j=t.computed(()=>{const $={};return e.showArrow?($.width=`${e.arrowSize}px`,$.height=`${e.arrowSize}px`,i.value==="top"?($.left="50%",$.bottom=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):i.value==="top-start"?($.left=`${e.arrowOffset+c.value}px`,$.bottom=`-${e.arrowSize}px`):i.value==="top-end"?($.right=`${e.arrowOffset-c.value}px`,$.bottom=`-${e.arrowSize}px`):i.value==="right"?($.left=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):i.value==="right-start"?($.left=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):i.value==="right-end"?($.left=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?($.left="50%",$.top=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?($.left=`${e.arrowOffset+c.value}px`,$.top=`-${e.arrowSize}px`):i.value==="bottom-end"?($.right=`${e.arrowOffset-c.value}px`,$.top=`-${e.arrowSize}px`):i.value==="left"?($.right=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):i.value==="left-start"?($.right=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):i.value==="left-end"&&($.right=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`),$):{display:"none"}}),B=t.computed(()=>y.value&&e.closeOnClick),I=t.computed(()=>{const $={};return e.zIndex&&($["z-index"]=`${e.zIndex}`),$});return{show:y,tipRef:u,classes:g,styles:f,textClasses:R,textStyles:z,arrowClasses:q,arrowStyles:j,overlayShow:B,overlayStyle:I,onClickOverlay:()=>{E.value=!1,n.emit("update:visible",!1)}}}}),ts=["innerHTML"];function ns(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]=(...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,ts))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const It=De(es,[["render",ns]]);class Xa{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 ll={},ls=new Xa,mt=new Map,cn=e=>{if(e){const n=document.getElementById(e);mt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of mt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}mt.clear()}},as=e=>{e.unmount=cn;const n=document.getElementById(e.id);if(n){const a=mt.get(e.id);a?e={...ll,...a,...e}:e={...ll,...e},e.transition=!1;const l=t.createVNode(It,e);return t.render(l,n),e.id}},os=e=>{e.unmount=cn;let n=e.id??`hinttext_${ls.get()}`;e={...ll,...e},e.id=n,mt.set(n,e);const a=document.createElement("div");a.id=e.id;const l=t.createVNode(It,e);return t.render(l,a),document.body.appendChild(a),n},rs=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Be={show(e,n,a={},l=!0){rs(n);const o=a.id;return o&&mt.has(o)?as({...a,message:n,reference:e}):(l&&cn(),os({...a,message:n,reference:e}))},hide(e){cn(e)},install(e){e.config.globalProperties.$hintText=Be}};function is(e,n,a,l=!1){return{inheritAttrs:!0,props:{...we,...ke},emits:["appear","disappear"],setup(o,r){const i=o.prop??r.attrs.name;xe({componentName:e,validate:!1},i);const s=Ue(),u=nn();ln(!1);const d=t.computed(()=>u&&s?an(s,!1).value:null),h=e,c=t.ref(null),w=t.computed(()=>{const T={[h]:!0,[`${h}__gutter`]:d.value&&d.value.type!=="flow",[`${h}__stretch`]:o.span==="stretch",[`${h}__input--border`]:ce(o.hasBorder)};if(T[o.errorMarkClass]=!!U.value,T[o.warnMarkClass]=!!V.value,T[o.infoMarkClass]=!!L.value,typeof c.value=="function"){const Y=c.value(i);T[Y]=!0}else if(typeof c.value=="string"){const Y=c.value;T[Y]=!0}return T}),E=t.ref(null),y=t.computed(()=>{const T={};if(o.width)o.width!=="auto"&&(T.width=Ae(o.width));else{const Y=u&&s?on(s,!1):null;if(d.value&&Y){if(d.value.type==="grid"){const ee=sn(Y,d.value,o.span,o.offset);Object.assign(T,ee)}else if(d.value.type==="flow"){const ee=rn(Y,d.value,o.span,o.offset,o.width);Object.assign(T,ee)}}}if(typeof E.value=="function"){const Y=E.value(i);Y&&Object.assign(T,Y)}else if(E.value&&typeof E.value=="object"){const Y=E.value;Object.assign(T,Y)}return T}),m=t.ref(null),p=t.computed({get:()=>m.value??ce(o.isRequired),set:T=>{m.value=T}}),S=()=>typeof o.label=="string"&&o.label.length>0||typeof r.slots.label=="function",g=Ee(t.toRef(o,"labelPosition"),"labelPosition",Le.Near),f=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),R=t.computed(()=>({[`${h}__main`]:!0,[`${h}__main--${f.value}`]:!0})),z=t.computed(()=>({label:!0,[`label--${f.value}`]:!0})),q=Ee(t.toRef(o,"labelWidth"),"labelWidth",Le.Near),j=t.computed(()=>q&&q.value?{width:Ae(q.value)}:{}),B=t.computed(()=>({"label--string":!0,"label--required":p.value})),I=t.computed(()=>({content:!0,[o.contentClass]:!0})),C=t.computed(()=>({...o.contentStyle})),$=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});pe({setRequired(T){p.value=T},setErrorTip(T){$.errorTip=T},setErrorIcon(T){$.errorIcon=T},setWarnTip(T){$.warnTip=T},setWarnIcon(T){$.warnIcon=T},setInfoTip(T){$.infoTip=T},setInfoIcon(T){$.infoIcon=T},setCustomClassName(T){c.value=T},setCustomStyle(T){E.value=T}});const L=t.computed(()=>o.infoTip||$.infoTip),D=t.computed(()=>o.infoIcon||$.infoIcon),V=t.computed(()=>o.warnTip||$.warnTip),N=t.computed(()=>o.warnIcon||$.warnIcon),U=t.computed(()=>o.errorTip||$.errorTip),P=t.computed(()=>o.errorIcon||$.errorIcon),Q=t.computed(()=>U.value?"error":V.value?"warn":L.value?"info":""),Z=()=>Q.value.length>0,J=t.computed(()=>Q.value==="error"?U.value:Q.value==="warn"?V.value:Q.value==="info"?L.value:""),le=t.computed(()=>Q.value==="error"?P.value:Q.value==="warn"?N.value:Q.value==="info"?D.value:null),_=t.computed(()=>{const T={[`${h}__tip`]:!0,[`${h}__tip--${Q.value}`]:!0,[`${h}--animate`]:!0};return Q.value==="error"&&o.errorClass?T[`${o.errorClass}`]=!0:Q.value==="warn"&&o.warnClass?T[`${o.warnClass}`]=!0:Q.value==="info"&&o.infoClass&&(T[`${o.infoClass}`]=!0),T}),O=t.computed(()=>{const T={};return g&&g.value==="top"||!S()?T["padding-left"]="0px":q&&q.value&&(T["padding-left"]=Ae(q.value)),T}),K=t.ref();let H="";t.watch([()=>o.hintVisible,()=>o.hintText,()=>o.hintType,()=>o.hintProps],([T,Y,ee,ae])=>{K.value&&(T&&!ye(Y)?H?a.show(K.value,Y,{...ae,id:H,type:ee},!0):H=a.show(K.value,Y,{...ae,type:ee},!0):a.hide(H))});let A=null;const G=()=>{A||!K.value||(A=new IntersectionObserver(T=>{let Y=!1;for(let ee of T)if(ee.intersectionRatio>0){Y=!0,Y&&r.emit("appear",ee);break}Y||r.emit("disappear")}),A.observe(K.value))},W=()=>{!A||!K.value||(A.unobserve(K.value),A=null)};t.watch(()=>ce(o.appearListen),T=>{T?G():W()}),t.onMounted(()=>{ce(o.appearListen)&&G()}),t.onUnmounted(W);const k=()=>{if(!S())return null;const T=[],Y=r.slots?.label?.()??o.label,ee={class:B.value},ae=t.h("div",ee,[Y]);if(T.push(ae),r.slots.fixedPreTip){const oe=r.slots.fixedPreTip();T.push(oe)}const te={class:z.value,style:j.value};return t.h("div",te,T)},b=()=>{const T=[];if(r.slots.prepend){const ee=r.slots.prepend();T.push(ee)}if(r.slots.default){const ee=r.slots.default();T.push(ee)}if(r.slots.append){const ee=r.slots.append();T.push(ee)}if(r.slots.fixedTip){const ee={class:[`${h}__fixed-tip`]},ae=t.h("div",ee,[r.slots.fixedTip()]);T.push(ae)}const Y={ref:K,class:I.value,style:C.value};return t.h("div",Y,T)},x=()=>{const T=le.value;return T?typeof T=="function"?t.h("div",{class:"fox-item__tip--icon"},[T()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(T)]):null},M=()=>{const T=J.value;return T?typeof T=="function"?t.h("div",{class:"fox-item__tip--text"},[T()]):t.h("div",{class:"fox-item__tip--text"},[T]):null},X=()=>{if(!Z())return null;const T=[],Y=x();Y&&T.push(Y);const ee=M();ee&&T.push(ee);const ae={class:_.value,style:O.value};return t.h("div",ae,T)},ne=()=>r.slots?.hide?.()??null;return()=>{const T=[],Y=[],ee=k();ee&&Y.push(ee);const ae=b();ae&&Y.push(ae);const te={class:R.value},oe=t.h("div",te,Y);T.push(oe);const ie=X();ie&&T.push(ie);const ue=ne();ue&&T.push(ue);const be={class:w.value,style:y.value,prop:o.prop};return t.h("div",be,T)}}}}const{componentName:ss,create:us,scope:cs}=se("item"),Se=us(is(ss,cs,Be,!1));function fs(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),s=e,u=t.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const h={},c=r&&o?on(o,!1):null;if(i.value&&c)if(i.value.type==="grid"){const w=sn(c,i.value,a.span,a.offset);Object.assign(h,w)}else if(i.value.type==="flow"){const w=rn(c,i.value,a.span,a.offset,a.width);Object.assign(h,w)}else return a.width&&(h.width=Ae(a.width)),h;else a.width&&(h.width=Ae(a.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:ds,create:hs,scope:qg}=se("slot-item"),al=hs(fs(ds));function ms(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(),s=nn();ln(!1);const u=t.computed(()=>{const d={};if(s&&i){const h=an(i,!1),c=on(i,!1);if(h.value&&c)if(h.value.type==="grid"){const w=sn(c,h.value,a.span,a.offset);Object.assign(d,w)}else if(h.value.type==="flow"){const w=rn(c,h.value,a.span,a.offset,a.width);Object.assign(d,w)}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 c=l.slots.default();if(a.divide)for(let w=0;w<c.length;w++){if(w>0){const E=t.h("div",{class:{[`${o}__divide`]:!0}});d.push(E)}d.push(c[w])}else Reflect.apply([].push,d,c)}const h={class:r.value,style:u.value};return t.h("div",h,d)}}}}const{componentName:gs,create:ys,scope:zg}=se("row-item"),ol=ys(ms(gs)),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},Za={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 ps(e,n,a){return{props:{...we,...ke,...Za},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:s}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue"),w=e,E=t.computed(()=>({[w]:!0,[`${w}__disabled`]:r.value,[`${w}__readonly`]:i.value})),y=D=>{c.value=D,s("update:modelValue",D),s("input",D)},m=D=>{s("change",D)};let p=de(l,"hintText"),S=t.ref(!1);const g=D=>{let N=D.target.value;h.value=!0,ye(p.value)||(S.value=!0),s("focus",N,D)},f=D=>{setTimeout(()=>{S.value&&(S.value=!1),h.value=!1},0);let N=D.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),s("blur",N,D)},R=()=>{s("clear","")},z=t.ref(!1);let q=null;const j=()=>{l.showTooltip&&z.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{z.value=!0},150))},B=()=>{q&&(clearTimeout(q),z.value=!1,q=null)},I=t.computed(()=>z.value||S.value),C=t.computed(()=>z.value?c.value:p.value),$=t.computed(()=>ze(l.unit)>0),L=t.ref();return pe({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const V={...He(o.attrs),ref:L,class:E.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:R,onChange:m,onInput:y,onFocus:g,onBlur:f,onMouseover:j,onMouseleave:B},N={};o.slots.prepend&&(N.prepend=o.slots.prepend),o.slots.append&&(N.append=o.slots.append),o.slots.prefix&&(N.prefix=o.slots.prefix),o.slots.suffix?N.suffix=o.slots.suffix:$.value&&(N.suffix=()=>[l.unit]);const U=[],P=t.h(F.ElInput,V,N);U.push(P);const Q={default:()=>U};o.slots.default&&(Q.label=o.slots.default),o.slots.default&&(Q.fixedTip=o.slots.fixedTip);const J={...$e(l,Za),hintText:C.value,hintVisible:I.value,prop:`${l.prop}_item`};return t.h(a,J,Q)}}}}const{componentName:bs,create:vs,scope:ws}=se("input-item"),rl=vs(ps(bs,ws,Se));function et(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 Ja(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function Ss(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Ts=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`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function xs(){const e=t.getCurrentInstance();return new Ts(e.proxy)}function Qa(e,n,a){const l=et(e,n),o=et(e,a);if(l!==o)return!1;const r=Vt(e,n),i=Vt(e,a);return r===i}function eo(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 s=Ja(e,i);if(Array.isArray(s)&&s.length>0){const u=eo(e,r,a,s)??[];Reflect.apply([].push,o,u)}else{let u=!1;if(a==="text")u=et(e,i)===r;else if(a==="item")u=Qa(e,i,r);else{let d=Vt(e,i);d==null&&(d=et(e,i)),u=d===r}if(u){o.push(i);break}}}}),o}function Cs(e){return{text:e,value:e}}const to={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 $s(e,n,a){return{props:{...we,...ke,...to},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:s}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(null),c=t.ref([]),w=t.computed(()=>c.value?c.value.map(x=>et(l,x)).join(" "):""),E=(b,x,M,X=!0)=>{const ne=eo(l,b,x,M);if(ne===null){if(c.value===null||c.value.length===0)return;h.value=null,c.value=[],X&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let T=!0;if(ne.length!==c.value.length)T=!1;else for(let Y=0;Y<ne.length;Y++){const ee=ne[Y],ae=c.value[Y];if(!Qa(l,ee,ae)){T=!1;break}}if(!T){c.value=ne;let Y=[],ee=[],ae=[];ne.forEach(ue=>{const be=Vt(l,ue),ge=et(l,ue);Y.push(be),ae.push(ge),l.valueType==="text"?ee.push(ge):l.valueType==="item"?ee.push(ue):ee.push(be)});let te,oe,ie;ce(l.multiple)?(h.value=Y,te=t.toRaw(ee),oe=ae,ie=t.toRaw(ne)):(h.value=Y[0]??"",te=t.toRaw(ee[0]??""),oe=ae[0]??"",ie=t.toRaw(ne[0])),X&&(s("update:modelValue",te),s("change",te,ie)),s("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",Le.Near,b=>ce(b)),g=xs(),f=async(b,x)=>{if(b){const M=await g.load("select",b,x);if(M.length>0)if(typeof M[0]=="string"){let T=M.map(Y=>Cs(Y));y.value=T}else y.value=M;else y.value=null}};t.watch([()=>l.source,()=>l.params],([b,x])=>{m.value=null,f(b,x)},{immediate:!S.value});let R=!1;const z=()=>{R||(R=!0,f(l.source,l.params))};t.watch([()=>y.value,()=>l.modelValue],([b,x])=>{if(I()&&ce(l.multiple)){_e(x,h.value)||(h.value=x);return}E(x,l.valueType,p.value,!1)});let q=null,j=t.ref(!1);typeof l.remoteMethod=="function"&&(q=async b=>{if(b==null){m.value=null;return}j.value=!0;try{const x=await l.remoteMethod(b);x&&(m.value=x)}catch(x){m.value=null,console.error(x)}j.value=!1});let B=null;typeof l.filterMethod=="function"&&(B=async b=>{if(b==null){m.value=null;return}j.value=!0;try{const x=await l.filterMethod(b,y.value);x&&(m.value=x)}catch(x){m.value=null,console.error(x)}j.value=!1});const I=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",C=t.ref(!1),$=e,L=t.computed(()=>({[$]:!0})),D=b=>{l.allowCreate||I()&&ce(l.multiple)?(s("update:modelValue",b),s("change",b),s("update:text",b),h.value=b):E(b,"value",p.value,!0)};let V=de(l,"hintText"),N=t.ref(!1);const U=b=>{let M=b.target.value;C.value=!0,ye(V.value)||(N.value=!0),s("focus",M,b)},P=b=>{setTimeout(()=>{N.value&&(N.value=!1),C.value=!1},0);let M=b.target.value;l.maxLength&&M.length>Number(l.maxLength)&&(M=M.slice(0,Number(l.maxLength))),H.value||s("blur",M,b)},Q=()=>{s("clear","")},Z=t.ref(!1);let J=null;const le=()=>{l.showTooltip&&Z.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{Z.value=!0},150))},_=()=>{J&&(clearTimeout(J),Z.value=!1,J=null)},O=t.computed(()=>Z.value||N.value),K=t.computed(()=>Z.value?w.value:V.value),H=t.ref(!1),A=b=>{H.value=b,s("visible-change",b),b||s("selected")},G=b=>{s("remove-tag",b)},W=(b,x)=>{const M=[];return b.forEach((X,ne)=>{const T=Ja(l,X);if(Array.isArray(T)&&T.length>0){const Y=W(T,x),ee=et(l,X),te={key:`${ee}_${ne}`,label:ee};M.push(t.h(F.ElOptionGroup,te,{default:()=>Y}))}else{const Y=Vt(l,X),ee=et(l,X),ae=Ss(l,X),oe={key:`${Y}_${ne}`,label:ee,disabled:ae,value:Y};if(typeof x=="function")M.push(t.h(F.ElOption,oe,{default:()=>x(X)}));else if(l.optionType==="item"){const ie={class:{"fox-select-item__option-left":!0}},ue=t.h("span",ie,[Y]),be={class:{"fox-select-item__option-right":!0}},ge=t.h("span",be,[ee]),nt=t.h("div",{class:{"fox-select-item__option":!0}},[ue,ge]);M.push(t.h(F.ElOption,oe,{default:()=>nt}))}else l.optionType==="value"?M.push(t.h(F.ElOption,oe,{default:()=>[Y]})):M.push(t.h(F.ElOption,oe))}}),M},k=t.ref();return pe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()}}),()=>{const x={...He(o.attrs),ref:k,class:L.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:Q,onChange:D,onFocus:U,onBlur:P,onVisibleChange:A,onRemoveTag:G};typeof q=="function"&&(x["remote-method"]=q,x.loading=j.value),typeof B=="function"&&(x["filter-method"]=B,x.loading=j.value);const M={};o.slots.prefix&&(M.prefix=o.slots.prefix),o.slots.empty&&(M.empty=o.slots.empty),o.slots.options?M.default=o.slots.options:M.default=()=>W(p.value,o.slots.option);const X=[],ne=t.h(F.ElSelect,x,M);X.push(ne);const T={default:()=>X};o.slots.default&&(T.label=o.slots.default),o.slots.fixedTip&&(T.fixedTip=o.slots.fixedTip);const ee={...$e(l,to),hintText:K.value,hintVisible:O.value,prop:`${l.prop??o.attrs.name}_item`,onMouseover:le,onMouseleave:_};return S.value&&(ee["appear-listen"]=!0,ee.onAppear=z),t.h(a,ee,T)}}}}const{componentName:ks,create:Ds,scope:Ns}=se("select-item"),il=Ds($s(ks,Ns,Se));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 no={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){var a=1e3,l=6e4,o=36e5,r="millisecond",i="second",s="minute",u="hour",d="day",h="week",c="month",w="quarter",E="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("_")},f=function(D,V,N){var U=String(D);return!U||U.length>=V?D:""+Array(V+1-U.length).join(N)+D},R={s:f,z:function(D){var V=-D.utcOffset(),N=Math.abs(V),U=Math.floor(N/60),P=N%60;return(V<=0?"+":"-")+f(U,2,"0")+":"+f(P,2,"0")},m:function D(V,N){if(V.date()<N.date())return-D(N,V);var U=12*(N.year()-V.year())+(N.month()-V.month()),P=V.clone().add(U,c),Q=N-P<0,Z=V.clone().add(U+(Q?-1:1),c);return+(-(U+(N-P)/(Q?P-Z:Z-P))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:c,y:E,w:h,d,D:y,h:u,m:s,s:i,ms:r,Q:w}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},z="en",q={};q[z]=g;var j=function(D){return D instanceof $},B=function D(V,N,U){var P;if(!V)return z;if(typeof V=="string"){var Q=V.toLowerCase();q[Q]&&(P=Q),N&&(q[Q]=N,P=Q);var Z=V.split("-");if(!P&&Z.length>1)return D(Z[0])}else{var J=V.name;q[J]=V,P=J}return!U&&P&&(z=P),P||!U&&z},I=function(D,V){if(j(D))return D.clone();var N=typeof V=="object"?V:{};return N.date=D,N.args=arguments,new $(N)},C=R;C.l=B,C.i=j,C.w=function(D,V){return I(D,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var $=function(){function D(N){this.$L=B(N.locale,null,!0),this.parse(N)}var V=D.prototype;return V.parse=function(N){this.$d=function(U){var P=U.date,Q=U.utc;if(P===null)return new Date(NaN);if(C.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var Z=P.match(p);if(Z){var J=Z[2]-1||0,le=(Z[7]||"0").substring(0,3);return Q?new Date(Date.UTC(Z[1],J,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,le)):new Date(Z[1],J,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,le)}}return new Date(P)}(N),this.$x=N.x||{},this.init()},V.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},V.$utils=function(){return C},V.isValid=function(){return this.$d.toString()!==m},V.isSame=function(N,U){var P=I(N);return this.startOf(U)<=P&&P<=this.endOf(U)},V.isAfter=function(N,U){return I(N)<this.startOf(U)},V.isBefore=function(N,U){return this.endOf(U)<I(N)},V.$g=function(N,U,P){return C.u(N)?this[U]:this.set(P,N)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(N,U){var P=this,Q=!!C.u(U)||U,Z=C.p(N),J=function(W,k){var b=C.w(P.$u?Date.UTC(P.$y,k,W):new Date(P.$y,k,W),P);return Q?b:b.endOf(d)},le=function(W,k){return C.w(P.toDate()[W].apply(P.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(k)),P)},_=this.$W,O=this.$M,K=this.$D,H="set"+(this.$u?"UTC":"");switch(Z){case E:return Q?J(1,0):J(31,11);case c:return Q?J(1,O):J(0,O+1);case h:var A=this.$locale().weekStart||0,G=(_<A?_+7:_)-A;return J(Q?K-G:K+(6-G),O);case d:case y:return le(H+"Hours",0);case u:return le(H+"Minutes",1);case s:return le(H+"Seconds",2);case i:return le(H+"Milliseconds",3);default:return this.clone()}},V.endOf=function(N){return this.startOf(N,!1)},V.$set=function(N,U){var P,Q=C.p(N),Z="set"+(this.$u?"UTC":""),J=(P={},P[d]=Z+"Date",P[y]=Z+"Date",P[c]=Z+"Month",P[E]=Z+"FullYear",P[u]=Z+"Hours",P[s]=Z+"Minutes",P[i]=Z+"Seconds",P[r]=Z+"Milliseconds",P)[Q],le=Q===d?this.$D+(U-this.$W):U;if(Q===c||Q===E){var _=this.clone().set(y,1);_.$d[J](le),_.init(),this.$d=_.set(y,Math.min(this.$D,_.daysInMonth())).$d}else J&&this.$d[J](le);return this.init(),this},V.set=function(N,U){return this.clone().$set(N,U)},V.get=function(N){return this[C.p(N)]()},V.add=function(N,U){var P,Q=this;N=Number(N);var Z=C.p(U),J=function(O){var K=I(Q);return C.w(K.date(K.date()+Math.round(O*N)),Q)};if(Z===c)return this.set(c,this.$M+N);if(Z===E)return this.set(E,this.$y+N);if(Z===d)return J(1);if(Z===h)return J(7);var le=(P={},P[s]=l,P[u]=o,P[i]=a,P)[Z]||1,_=this.$d.getTime()+N*le;return C.w(_,this)},V.subtract=function(N,U){return this.add(-1*N,U)},V.format=function(N){var U=this,P=this.$locale();if(!this.isValid())return P.invalidDate||m;var Q=N||"YYYY-MM-DDTHH:mm:ssZ",Z=C.z(this),J=this.$H,le=this.$m,_=this.$M,O=P.weekdays,K=P.months,H=function(k,b,x,M){return k&&(k[b]||k(U,Q))||x[b].slice(0,M)},A=function(k){return C.s(J%12||12,k,"0")},G=P.meridiem||function(k,b,x){var M=k<12?"AM":"PM";return x?M.toLowerCase():M},W={YY:String(this.$y).slice(-2),YYYY:this.$y,M:_+1,MM:C.s(_+1,2,"0"),MMM:H(P.monthsShort,_,K,3),MMMM:H(K,_),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:H(P.weekdaysMin,this.$W,O,2),ddd:H(P.weekdaysShort,this.$W,O,3),dddd:O[this.$W],H:String(J),HH:C.s(J,2,"0"),h:A(1),hh:A(2),a:G(J,le,!0),A:G(J,le,!1),m:String(le),mm:C.s(le,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z};return Q.replace(S,function(k,b){return b||W[k]||Z.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(N,U,P){var Q,Z=C.p(U),J=I(N),le=(J.utcOffset()-this.utcOffset())*l,_=this-J,O=C.m(this,J);return O=(Q={},Q[E]=O/12,Q[c]=O,Q[w]=O/3,Q[h]=(_-le)/6048e5,Q[d]=(_-le)/864e5,Q[u]=_/o,Q[s]=_/l,Q[i]=_/a,Q)[Z]||_,P?O:C.a(O)},V.daysInMonth=function(){return this.endOf(c).$D},V.$locale=function(){return q[this.$L]},V.locale=function(N,U){if(!N)return this.$L;var P=this.clone(),Q=B(N,U,!0);return Q&&(P.$L=Q),P},V.clone=function(){return C.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},D}(),L=$.prototype;return I.prototype=L,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",d],["$M",c],["$y",E],["$D",y]].forEach(function(D){L[D[1]]=function(V){return this.$g(V,D[0],D[1])}}),I.extend=function(D,V){return D.$i||(D(V,$,I),D.$i=!0),I},I.locale=B,I.isDayjs=j,I.unix=function(D){return I(1e3*D)},I.en=q[z],I.Ls=q,I.p={},I})})(no);var Es=no.exports;const Ke=Xe(Es);var lo={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]+/,s={},u=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)}],c=function(m){var p=s[m];return p&&(p.indexOf?p:p.s.concat(p.f))},w=function(m,p){var S,g=s.meridiem;if(g){for(var f=1;f<=24;f+=1)if(m.indexOf(g(f,0,p))>-1){S=f>12;break}}else S=m===(p?"pm":"PM");return S},E={A:[i,function(m){this.afternoon=w(m,!1)}],a:[i,function(m){this.afternoon=w(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=s.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=c("months"),S=(c("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=c("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=u(m)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function y(m){var p,S;p=m,S=s&&s.formats;for(var g=(m=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,C,$){var L=$&&$.toUpperCase();return C||S[$]||a[$]||S[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,V,N){return V||N.slice(1)})})).match(l),f=g.length,R=0;R<f;R+=1){var z=g[R],q=E[z],j=q&&q[0],B=q&&q[1];g[R]=B?{regex:j,parser:B}:z.replace(/^\[|\]$/g,"")}return function(I){for(var C={},$=0,L=0;$<f;$+=1){var D=g[$];if(typeof D=="string")L+=D.length;else{var V=D.regex,N=D.parser,U=I.slice(L),P=V.exec(U)[0];N.call(C,P),I=I.replace(P,"")}}return function(Q){var Z=Q.afternoon;if(Z!==void 0){var J=Q.hours;Z?J<12&&(Q.hours+=12):J===12&&(Q.hours=0),delete Q.afternoon}}(C),C}}return function(m,p,S){S.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(u=m.parseTwoDigitYear);var g=p.prototype,f=g.parse;g.parse=function(R){var z=R.date,q=R.utc,j=R.args;this.$u=q;var B=j[1];if(typeof B=="string"){var I=j[2]===!0,C=j[3]===!0,$=I||C,L=j[2];C&&(L=j[2]),s=this.$locale(),!I&&L&&(s=S.Ls[L]),this.$d=function(U,P,Q){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*U);var Z=y(P)(U),J=Z.year,le=Z.month,_=Z.day,O=Z.hours,K=Z.minutes,H=Z.seconds,A=Z.milliseconds,G=Z.zone,W=new Date,k=_||(J||le?1:W.getDate()),b=J||W.getFullYear(),x=0;J&&!le||(x=le>0?le-1:W.getMonth());var M=O||0,X=K||0,ne=H||0,T=A||0;return G?new Date(Date.UTC(b,x,k,M,X,ne,T+60*G.offset*1e3)):Q?new Date(Date.UTC(b,x,k,M,X,ne,T)):new Date(b,x,k,M,X,ne,T)}catch{return new Date("")}}(z,B,q),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),$&&z!=this.format(B)&&(this.$d=new Date("")),s={}}else if(B instanceof Array)for(var D=B.length,V=1;V<=D;V+=1){j[1]=B[V-1];var N=S.apply(this,j);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}V===D&&(this.$d=new Date(""))}else f.call(this,R)}}})})(lo);var Is=lo.exports;const Vs=Xe(Is);var ao={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(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(),c=(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(w){switch(w){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(),w==="w"?1:2,"0");case"W":case"WW":return h.s(u.isoWeek(),w==="W"?1:2,"0");case"k":case"kk":return h.s(String(u.$H===0?24:u.$H),w==="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 w}});return i.bind(this)(c)}}})})(ao);var Os=ao.exports;const As=Xe(Os);var oo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l,o){var r=l.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},s=function(c,w,E,y,m){var p=c.name?c:c.$locale(),S=i(p[w]),g=i(p[E]),f=S||g.map(function(z){return z.slice(0,y)});if(!m)return f;var R=p.weekStart;return f.map(function(z,q){return f[(q+(R||0))%7]})},u=function(){return o.Ls[o.locale()]},d=function(c,w){return c.formats[w]||function(E){return E.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,m,p){return m||p.slice(1)})}(c.formats[w.toUpperCase()])},h=function(){var c=this;return{months:function(w){return w?w.format("MMMM"):s(c,"months")},monthsShort:function(w){return w?w.format("MMM"):s(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):s(c,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):s(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):s(c,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return d(c.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},o.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.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(w){return d(c,w)},meridiem:c.meridiem,ordinal:c.ordinal}},o.months=function(){return s(u(),"months")},o.monthsShort=function(){return s(u(),"monthsShort","months",3)},o.weekdays=function(c){return s(u(),"weekdays",null,null,c)},o.weekdaysShort=function(c){return s(u(),"weekdaysShort","weekdays",3,c)},o.weekdaysMin=function(c){return s(u(),"weekdaysMin","weekdays",2,c)}}})})(oo);var Fs=oo.exports;const Bs=Xe(Fs);var ro={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){var a="week",l="year";return function(o,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),c=i(this).endOf(a);if(h.isBefore(c))return 1}var w=i(this).startOf(l).date(d).startOf(a).subtract(1,"millisecond"),E=this.diff(w,a,!0);return E<0?i(this).startOf("week").week():Math.ceil(E)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(ro);var Ms=ro.exports;const Rs=Xe(Ms);var io={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}}})})(io);var Ls=io.exports;const _s=Xe(Ls);var so={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")}}})})(so);var Ps=so.exports;const qs=Xe(Ps);var uo={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)}}})})(uo);var zs=uo.exports;const js=Xe(zs);var co={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)}}})})(co);var Hs=co.exports;const Ks=Xe(Hs);Ke.extend(Bs),Ke.extend(As),Ke.extend(Vs),Ke.extend(Rs),Ke.extend(_s),Ke.extend(qs),Ke.extend(js),Ke.extend(Ks);const re={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(),s=6-r;return l!==0&&(r=r==0?7:r,s=7-r),Math.ceil((i+s)/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 s=o.getDay(),u=6-s;return l!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/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 u=r-i*864e5,d=r+(6-i)*864e5,h=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[h,c]}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)),c=this.date2Str(new Date(d));return[h,c]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.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}},fo={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"}},ho={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 Ys(e,n,a){return{props:{...we,...ke,...fo,...ho},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:s}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue"),w=t.computed(()=>N.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),E=t.computed(()=>N.value?"longTermKey":"normalKey"),y=k=>{if(N.value&&l.type==="daterange"){const b=[...c.value];b[0]=k,c.value=b}else c.value=k;s("update:modelValue",c.value),s("change",c.value)},m=t.computed(()=>N.value&&l.type==="daterange"?"date":l.type),p=e,S=t.computed(()=>({[`${p}`]:!0,"is-long":N.value,"is-readonly":i.value,"is-disabled":r.value}));let g=de(l,"hintText"),f=t.ref(!1);const R=k=>{let x=k.target.value;h.value=!0,ye(g.value)||(f.value=!0),s("focus",x,k)},z=k=>{setTimeout(()=>{f.value&&(f.value=!1),h.value=!1},0);let x=k.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),s("blur",x,k)},q=()=>{s("clear","")},j=k=>{s("calendar-change",k)},B=(k,b,x)=>{s("panel-change",k,b,x)},I=k=>{s("visible-change",k)},C=Ee(t.computed(()=>l.longTermText),"longTermText",Le.Near),$=Ee(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",Le.Near),L=Ee(t.computed(()=>l.longTermValue),"longTermValue",Le.Near),D=Ee(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Le.Near);let V=null;const N=t.ref(ce(l.longTerm)),U=k=>{if(N.value=k,s("update:longTerm",k),k){if(V=c.value,l.type==="daterange"){const b=[];Array.isArray(L.value)?(b[0]=c.value?c.value[0]??L.value[0]:null,b[1]=L.value[1]??L.value[0]):(b[0]=c.value?c.value[0]??L.value:null,b[1]=N.value),b[0]||(b[0]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),b[1]||(b[1]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),c.value=b}else Array.isArray(L.value)?c.value=L.value[1]??L.value[0]:c.value=L.value,c.value||(c.value=l.valueFormat?re.format(new Date,l.valueFormat):new Date);s("update:modelValue",c.value)}else{if(l.type==="daterange"){const b=[];b[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(V)?b[1]=V[1]:b[1]=V,b[0]||(b[0]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),b[1]||(b[1]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),c.value=b}else c.value=V;s("update:modelValue",c.value),setTimeout(()=>{G()},100)}},P=ce(l.isLongTerm);if(P){const k=()=>{if(N.value===!0){if(V=c.value,l.type==="daterange"){const b=[c.value[0]];Array.isArray(L.value)?b[1]=L.value[1]??L.value[0]:b[1]=N.value,b[0]||(b[0]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),b[1]||(b[1]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),c.value=b}else c.value=L.value;s("update:modelValue",c.value)}else _e(L.value,c.value)&&(N.value=!0)};k(),t.watch([()=>l.longTerm],([b])=>{N.value!==b&&k()}),t.watch([()=>c.value],([b])=>{let x=!1;if(l.type==="daterange"&&Array.isArray(b))try{let M=b[1];if(!M)return;typeof M!="string"&&l.valueFormat&&(M=re.format(M,l.valueFormat));let X=Array.isArray(L.value)?L.value[1]:L.value;(M===X||Array.isArray(D.value)&&D.value.findIndex(T=>M==T)!==-1)&&(x=!0)}catch(M){console.error(M)}N.value!==x&&(N.value=x)},{immediate:!0})}const Q=t.computed(()=>({"fox-date-item__long":!0,"is-active":h.value})),Z=t.ref(),J=t.ref(),le=/^\d+$/,_=(k,b)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(k,b):le.test(k)&&k.length===l.flashFillThreshold,O=(k,b)=>{let x;if(typeof l.flashFillFormat=="function")x=l.flashFillFormat(k,b);else{const X=l.flashFillFormat??"YYYYMMDD";x=re.parser(k,X)}const M=l.valueFormat??"YYYY-MM-DD";return re.format(x,M)},K=k=>k?k.endsWith("range"):!1,H=k=>{if(!k.target)return;const b=k.target.value??"";if(_(b,l.type)){const x=O(b,l.type);if(K(l.type)){const M=Array.isArray(c.value)?[...c.value]:[];M[0]=x,y(M)}else y(x)}},A=k=>{if(!k.target)return;const b=k.target.value??"";if(_(b,l.type)){const x=O(b,l.type);if(K(l.type)){const M=Array.isArray(c.value)?[...c.value]:[];M[1]=x,y(M)}else y(x)}},G=()=>{if(l.flashFill&&Z.value&&Z.value.$el)if(K(l.type)){const k=Z.value.$el.querySelectorAll("input.el-range-input");k[0]&&k[0].addEventListener("input",H),k[1]&&k[1].addEventListener("input",A)}else{const k=Z.value.$el.querySelector("input.el-input__inner");k&&k.addEventListener("input",H)}},W=()=>{if(l.flashFill&&Z.value&&Z.value.$el)if(K(l.type)){const k=Z.value.$el.querySelectorAll("input.el-range-input");k[0]&&k[0].removeEventListener("input",H),k[1]&&k[1].removeEventListener("input",A)}else{const k=Z.value.$el.querySelector("input.el-input__inner");k&&k.removeEventListener("input",H)}};return t.onMounted(G),t.onBeforeUnmount(W),pe({focus:()=>{J?.value.focus()},blur:()=>{J?.value.blur()},handleOpen:()=>{J?.value.handleOpen()},handleClose:()=>{J?.value.handleClose()}}),()=>{const b={...o.attrs,key:E.value,type:m.value,ref:J,class:S.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:w.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":y,onClear:q,onFocus:R,onBlur:z,onCalendarChange:j,onPanelChange:B,onVisibleChange:I},x={};o.slots["range-separator"]&&(x["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(x.default=o.slots.cell);const M=[],X=t.h(F.ElDatePicker,b,x);M.push(X);const ne={default:()=>M};if(o.slots.default&&(ne.label=o.slots.default),o.slots.fixedTip&&(ne.fixedTip=o.slots.fixedTip),P){if(N.value){const ae=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),te=t.h("input",{class:["fox-date-item__long-text"],value:C.value,readonly:!0}),oe={class:Q.value},ie=t.h("div",oe,{default:()=>[ae,te]});M.push(ie)}if(!i.value&&!r.value){const ae={label:$.value||C.value,disabled:i.value||r.value,modelValue:N.value,"onUpdate:modelValue":U},te=t.h(F.ElCheckbox,ae),oe=t.h("div",{class:{[`${p}__append`]:!0}},[te]);ne.append=()=>oe}}const Y={...$e(l,fo,ho),ref:Z,class:{[`${p}__wrapper`]:!0,"has-append":P},hintText:g.value,hintVisible:f.value,prop:`${l.prop}_item`};return t.h(a,Y,ne)}}}}const{componentName:Ws,create:Us,scope:Gs}=se("date-item"),sl=Us(Ys(Ws,Gs,Se)),Xs=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),ul={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}},cl={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:{}}},mo=2e3;let go=mo;const Zs=(e,n)=>({components:n,props:{...cl},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})),s=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),u=()=>{a.zIndex!==mo&&(go=Number(a.zIndex)),l("update:visible",!0),o.zIndex=++go,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)},c=m=>{m.stopPropagation(),l("click-close-icon",m),l("update:visible",!1)},w=m=>{l("click-overlay",m),a.closeOnClickOverlay&&l("update:visible",!1)},E=m=>{l("opend",m)},y=m=>{l("closed",m)};return t.watch(()=>a.visible,m=>{a.visible?u():d()}),t.watch(()=>a.closeable,m=>{o.closed=m}),{...t.toRefs(o),popStyle:i,transitionName:s,classes:r,onClick:h,onClickCloseIcon:c,onClickOverlay:w,onOpened:E,onClosed:y}}});let Ot=0;const yo="fox-overflow-hidden",po=()=>ot?document.body:{classList:[]},Js=e=>[()=>{if(e())try{!Ot&&po().classList.add(yo),Ot++}catch{}},()=>{if(e()&&Ot)try{Ot--,!Ot&&po().classList.remove(yo)}catch{}}],Qs={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:eu,create:tu}=se("overlay"),nu=tu({props:{...Qs},emits:["click","update:visible"],setup(e,{emit:n}){const[a,l]=Js(()=>e.lockScroll),o=t.computed(()=>({[eu]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,s=>{s?a():l()}),{classes:o,style:r,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function lu(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=De(nu,[["render",lu]]),au=["aria-labelledby"],ou=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),ru=[ou],iu=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=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+"-"+a.name]:a.name,[a.class]:!!a.class}}),s=t.computed(()=>{const u={};return u.height=r(a.height)??r(a.size),u.width=r(a.width)??r(a.size),u.color=a.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ru,14,au))}}),su=["aria-labelledby"],uu=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),cu=[uu],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=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+"-"+a.name]:a.name,[a.class]:!!a.class}}),s=t.computed(()=>{const u={};return u.height=r(a.height)??r(a.size),u.width=r(a.width)??r(a.size),u.color=a.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},cu,14,su))}}),fu=["aria-labelledby"],du=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),hu=[du],mu=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=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+"-"+a.name]:a.name,[a.class]:!!a.class}}),s=t.computed(()=>{const u={};return u.height=r(a.height)??r(a.size),u.width=r(a.width)??r(a.size),u.color=a.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},hu,14,fu))}}),gu=["aria-labelledby"],yu=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),pu=[yu],bo=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=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+"-"+a.name]:a.name,[a.class]:!!a.class}}),s=t.computed(()=>{const u={};return u.height=r(a.height)??r(a.size),u.width=r(a.width)??r(a.size),u.color=a.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.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:"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),wu=[vu],Su=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=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+"-"+a.name]:a.name,[a.class]:!!a.class}}),s=t.computed(()=>{const u={};return u.height=r(a.height)??r(a.size),u.width=r(a.width)??r(a.size),u.color=a.color,u});return(u,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},wu,14,bu))}}),{componentName:Tu,create:xu}=se("popup"),Cu=xu(Zs(Tu,{FoxOverLay:fn,Close:mu}));function $u(e,n,a,l,o,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 gt=De(Cu,[["render",$u]]),vo=39,wo=64,{create:ku,scope:Du}=se("calendar-pane"),Nu=ku({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:re.getDay(0)},endDate:{type:String,default:re.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(Du),r=l(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${vo}px`})),s=t.computed(()=>({height:`${wo}px`})),u=JSON.parse(o("weekdays")),d=t.ref([...u.slice(e.firstDayOfWeek,7),...u.slice(0,e.firstDayOfWeek)]),h=t.ref(null),c=t.ref(null),w=t.ref(null),E=t.ref(null),y=t.ref(0),m=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),p=t.computed(()=>a.btn),S=t.computed(()=>a["top-info"]),g=t.computed(()=>a["bottom-info"]),f=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}),R=k=>k.split("-"),z=k=>re.isEqual(f.currDate[0],k),q=k=>re.isEqual(f.currDate[1],k),j=k=>f.currDate?.length>0?f.currDate?.some(b=>re.isEqual(b,k)):!1,B=(k,b)=>b.curData[0]+"-"+b.curData[1]+"-"+re.getNumTwoBit(+k.day),I=(k,b)=>{const x=B(k,b),{type:M}=e;return k.type=="curr"?re.isEqual(f.currDate,x)||(M=="range"||M=="week")&&(z(x)||q(x))||M=="multiple"&&j(x)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(x,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,x)?`${f.dayPrefix}--disabled`:(M=="range"||M=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],x)&&re.compareDate(x,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},C=()=>{const{type:k}=e;if(k=="range"&&f.chooseData.length==2||k!="range"){let b=f.chooseData.slice(0);k=="week"&&(b={weekDate:[L(f.chooseData[0]),L(f.chooseData[1])]}),n("choose",b),e.poppable&&n("update")}},$=(k,b,x=!1)=>{if(I(k,b)!=`${f.dayPrefix}--disabled`){const{type:M}=e;let[X,ne]=b.curData,T=[...b.curData];if(T[2]=re.getNumTwoBit(Number(k.day)),T[3]=`${T[0]}-${T[1]}-${T[2]}`,T[4]=re.getWhatDay(+T[0],+T[1],+T[2]),M=="multiple")if(f.currDate?.length>0){let Y;f.currDate?.forEach((ee,ae)=>{ee==T[3]&&(Y=ae)}),x?f.chooseData.push([...T]):Y!==void 0?(f.currDate.splice(Y,1),f.chooseData.splice(Y,1)):(f.currDate.push(T[3]),f.chooseData.push([...T]))}else f.currDate=[T[3]],f.chooseData=[[...T]];else if(M=="range"){let Y=Object.values(f.currDate).length;Y==2||Y==0?f.currDate=[T[3]]:re.compareDate(f.currDate[0],T[3])?Array.isArray(f.currDate)&&f.currDate.push(T[3]):Array.isArray(f.currDate)&&f.currDate.unshift(T[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...T]]:re.compareDate(f.chooseData[0][3],T[3])?f.chooseData=[...f.chooseData,[...T]]:f.chooseData=[[...T],...f.chooseData]}else if(M=="week"){let Y=re.getWeekDate(X,ne,k.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(Y[0],f.propStartDate)&&Y.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,Y[1])&&Y.splice(1,1,f.propEndDate),f.currDate=Y,f.chooseData=[re.formatResultDate(Y[0]),re.formatResultDate(Y[1])]}else f.currDate=T[3],f.chooseData=[...T];if(!x){let Y=f.chooseData;M=="week"&&(Y={weekDate:[L(f.chooseData[0]),L(f.chooseData[1])]}),n("select",Y),(e.isAutoBackFill||!e.poppable)&&C()}}},L=k=>{let[b,x,M]=k;return{date:k,monthWeekNum:re.getMonthWeek(b,x,M,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(b,x,M,e.firstDayOfWeek)}},D=k=>{const b=k=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let x=parseInt(b.curData[0]),M=parseInt(b.curData[1].toString().replace(/^0/,""));switch(k){case"prev":M==1&&(x-=1),M=M==1?12:--M;break;case"next":M==12&&(x+=1),M=M==12?1:++M;break}return[x+"",re.getNumTwoBit(M),re.getMonthDays(String(x),String(M))+""]},V=(k,b,x)=>{let{year:M,month:X}=x;return b=="prev"&&k>=7&&(k-=7),Array.from(Array(k),(ne,T)=>({day:String(T+1),type:b,year:M,month:X}))},N=(k,b,x,M)=>{k=k-e.firstDayOfWeek;let{year:X,month:ne}=x;return b=="prev"&&k>=7&&(k-=7),Array.from(Array(M),(Y,ee)=>({day:String(ee+1),type:b,year:X,month:ne})).slice(M-k)},U=(k,b)=>{const x=re.getMonthPreDay(+k[0],+k[1]);let M=Number(k[1])-1,X=Number(k[0]);M<=0&&(M=12,X+=1);const ne=re.getMonthDays(String(k[0]),String(k[1])),T=re.getMonthDays(X+"",M+""),Y={year:k[0],month:k[1]},ee={curData:k,title:o("monthTitle",{year:Y.year,month:Y.month}),monthData:[...N(x,"prev",{month:String(M),year:String(X)},T),...V(ne,"curr",Y)],cssHeight:0,cssScrollHeight:0},ae=ee.monthData.length>35?6:5;ee.cssHeight=vo+wo*ae;let te=0;f.monthsData.length>0&&(te=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),ee.cssScrollHeight=te,b=="next"?(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${k[0]}-${k[1]}-${k[2]}`))&&f.monthsData.push(ee):!f.startData||!re.compareDate(`${k[0]}-${k[1]}-${k[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(ee):f.unLoadPrev=!0},P=()=>{let k=e.startDate?e.startDate:re.getDay(0),b=e.endDate?e.endDate:re.getDay(365);f.propStartDate=k,f.propEndDate=b,f.startData=R(k),f.endData=R(b),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const x={year:Number(f.startData[0]),month:Number(f.startData[1])},M={year:Number(f.endData[0]),month:Number(f.endData[1])};let X=M.month-x.month;M.year-x.year>0&&(X=X+12*(M.year-x.year)),X<=0&&(X=1),U(f.startData,"next");let ne=1;do U(D("next"),"next");while(ne++<X);if(f.monthsNum=X,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(k&&re.compareDate(f.currDate[0],k)&&f.currDate.splice(0,1,k),b&&re.compareDate(b,f.currDate[1])&&f.currDate.splice(1,1,b),f.defaultData=[...R(f.currDate[0]),...R(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let T=[],Y={};f.currDate.forEach(ee=>{k&&!re.compareDate(ee,k)&&b&&!re.compareDate(b,ee)&&(Object.hasOwnProperty.call(Y,ee)||(T.push(ee),Y[ee]=ee))}),f.currDate=[...T],f.defaultData=[...R(T[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[T,Y,ee]=R(f.currDate[0]),ae=re.getWeekDate(T,Y,ee,e.firstDayOfWeek);f.currDate=ae,k&&re.compareDate(f.currDate[0],k)&&f.currDate.splice(0,1,k),b&&re.compareDate(b,f.currDate[1])&&f.currDate.splice(1,1,b),f.defaultData=[...R(f.currDate[0]),...R(f.currDate[1])]}}else f.currDate&&(k&&re.compareDate(f.currDate,k)?f.currDate=k:b&&!re.compareDate(f.currDate,b)&&(f.currDate=b),f.defaultData=[...R(f.currDate)])};pe({scrollToDate:k=>{re.compareDate(k,f.propStartDate)?k=f.propStartDate:re.compareDate(k,f.propEndDate)||(k=f.propEndDate);let b=R(k);f.monthsData.forEach((x,M)=>{if(x.title==o("monthTitle",{year:b[0],month:b[1]})&&h.value){let X=f.monthsData[M].cssScrollHeight-h.value.scrollTop;if(e.toDateAnimation){let ne=0,T=setInterval(()=>{if(ne++,h.value){let Y=X/10;h.value.scrollTop=h.value.scrollTop+Y}ne>=10&&(clearInterval(T),h.value&&(h.value.scrollTop=f.monthsData[M].cssScrollHeight))},40)}else h.value.scrollTop=f.monthsData[M].cssScrollHeight}})},initPosition:()=>{h?.value&&(h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let k=0,b=0;f.defaultData.length>0&&f.monthsData.forEach((X,ne)=>{X.title==o("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(k=ne),(e.type=="range"||e.type=="week")&&X.title==o("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(b=ne)}),le(f.monthsNum,k),f.currentIndex=k,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?($({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),$({day:f.defaultData[5],type:"curr"},f.monthsData[b],!0)):e.type=="week"?$({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(X=>{let ne=R(X),T=f.currentIndex;f.monthsData.forEach((Y,ee)=>{Y.title==o("monthTitle",{year:ne[0],month:ne[1]})&&(T=ee)}),$({day:ne[2],type:"curr"},f.monthsData[T],!0)}):$({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let x=f.monthsData[f.monthsData.length-1],M=x.cssHeight+x.cssScrollHeight;kn(()=>{h?.value&&c?.value&&E?.value&&(y.value=h.value.clientHeight,c.value.style.height=`${M}px`,h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(M/(f.monthsNum+1))}});const le=(k,b)=>{k>=3?b>0&&b<k?f.defaultRange=[b-1,b+3]:b==0?f.defaultRange=[b,b+4]:b==k&&(f.defaultRange=[b-2,b+2]):f.defaultRange=[0,k+2];let x=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=x},_=(k,b)=>(e.type=="range"||e.type=="week")&&k.type=="curr"&&I(k,b)=="fox-calendar__day--active",O=(k,b)=>_(k,b)&&z(B(k,b)),K=(k,b)=>f.currDate.length>=2&&q(B(k,b))?_(k,b):!1,H=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},A=k=>{const b=`${k.year}-${k.month}-${Number(k.day)<10?"0"+k.day:k.day}`;return re.isEqual(b,re.date2Str(new Date))},G=k=>{if(f.monthsData.length<=1)return;const b=k.target.scrollTop;let x=Math.floor(b/f.avgHeight);if(x==0)b>=f.monthsData[x+1].cssScrollHeight&&(x+=1);else if(x>0&&x<f.monthsNum-1)b>=f.monthsData[x+1].cssScrollHeight&&(x+=1),b<f.monthsData[x].cssScrollHeight&&(x-=1);else{const M=Math.round(b+y.value);M<f.monthsData[x].cssScrollHeight+f.monthsData[x].cssHeight&&b>f.monthsData[x-1].cssScrollHeight&&(x-=1),x+1<=f.monthsNum&&M>=f.monthsData[x+1].cssScrollHeight+f.monthsData[x+1].cssHeight&&(x+=1),x>=1&&b<f.monthsData[x-1].cssScrollHeight&&(x-=1)}f.currentIndex!==x&&(f.currentIndex=x,le(f.monthsNum,x)),f.yearMonthTitle=f.monthsData[x].title},W=()=>{f.chooseData.splice(0),f.monthsData.splice(0),P()};return P(),t.watch(()=>e.defaultValue,k=>{k&&e.poppable&&W()}),{dayTitleStyle:i,dayCellStyle:s,weeks:d,compConthsData:m,showTopBtn:p,topInfo:S,bottomInfo:g,rangeTip:H,mothsViewScroll:G,getClass:I,isStartTip:O,isEndTip:K,chooseDay:$,isCurrDay:A,confirm:C,months:h,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:c,weeksPanel:w,viewArea:E}}}),Eu={class:"fox-calendar__header"},Iu={key:0,class:"fox-calendar__header-title"},Vu={key:1,class:"fox-calendar__header-slot"},Ou={key:2,class:"fox-calendar__header-subtitle"},Au={class:"fox-calendar__weekdays",ref:"weeksPanel"},Fu={class:"fox-calendar__panel",ref:"monthsPanel"},Bu={class:"fox-calendar__days"},Mu=["onClick"],Ru={class:"fox-calendar__day-value"},Lu={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},_u={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Pu={key:2,class:"fox-calendar__day-tips--curr"},qu={key:4,class:"fox-calendar__day-tip"},zu={key:0,class:"fox-calendar__footer"};function ju(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",Eu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Iu,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Vu,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Ou,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Au,[(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",Fu,[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",Bu,[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",Ru,[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",Lu,[t.renderSlot(e.$slots,"top-info",{date:u.type=="curr"?u:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",_u,[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",Pu,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",qu,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Mu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",zu,[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 Hu=De(Nu,[["render",ju]]),{create:Ku}=se("calendar-picker"),Yu=Ku({components:{CalendarPane:Hu,Popup:gt},props:{...ul},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"]),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 c=()=>{n("update:visible",!1)},w=()=>{n("close"),n("update:visible",!1)};return{popClasses:h,closePopup:()=>{w()},update:c,close:w,select:p=>{n("select",p)},choose:p=>{w(),n("choose",p)},calendarRef:s,showTopBtn:l,topInfo:o,dayInfo:r,bottomInfo:i}}});function Wu(e,n,a,l,o,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 hn=De(Yu,[["render",Wu]]),fl=(e,n)=>{let a;return Je(e)?a=e:typeof e=="string"&&ze(e)>0?a=re.parser(e,n):a=new Date,a},yt=(e,n,a)=>(Je(n)||(n=new Date),re.format(n,a)),pt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,l=`${e.getDate()}`,o=re.date2Str(e),r=re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,l,o,r]},So={...ul,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 Uu(e,n,a){return{props:{...we,...ke,...So},emits:["change","update:modelValue","blur","focus","clear"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:s}=xe({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(n),d=u(l,["placeholder"]);let h=de(l,"hintText"),c=t.ref(!1);const w=t.ref(!1),E=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=(P,Q="one",Z="YYYY-MM-DD")=>{if(Xs(P)){m();return}if(E.value&&Array.isArray(P)&&P.length==2){let J,le;typeof P[0]=="string"?(J=fl(P[0],Z),le=fl(P[1],Z)):(J=P[0],le=P[1]);let _=pt(J),O=pt(le);(y.startDate===null||y.startDate.getTime()!==J.getTime()||y.endDate?.getTime()!==le.getTime())&&(y.startDate=J,y.startArray=_,y.endDate=le,y.endArray=O)}else{let J;typeof P=="string"?J=fl(P,Z):J=P;let le=pt(J);(y.startDate===null||y.startDate.getTime()!==J.getTime())&&(y.startDate=J,y.startArray=le)}};p(l.modelValue,l.type,l.valueFormat),t.watch(()=>l.modelValue,P=>{p(P,l.type,l.valueFormat)});const S=t.computed(()=>{if(y.startDate===null)return"";if(E.value){let P=yt(l,y.startDate,l.format),Q=yt(l,y.endDate,l.format);return`${P} ${l.rangeSeparator} ${Q}`}else{let P=yt(l,y.startDate,l.format);return l.showWeek&&(P=`${P} ${y.startArray[4]}`),P}}),g=t.computed(()=>{if(y.startDate===null)return null;if(E.value){let P=re.date2Str(y.startDate),Q=re.date2Str(y.endDate??new Date);return[P,Q]}else return re.date2Str(y.startDate)}),f="fox-input-item",R=t.computed(()=>({[f]:!0,[`${f}__disabled`]:r.value})),z=Ee(t.computed(()=>l.textAlign),"textAlign"),q=t.computed(()=>({textAlign:z.value??"right"})),j=t.ref(!1),B=()=>{i.value||r.value||(j.value=!0)},I=()=>{j.value=!1},C=P=>{j.value=P},$=P=>{if(P){if(E.value&&Array.isArray(P)){let Q=P[0],Z=he(Q[0]),J=he(Q[1]),le=he(Q[2]),_=new Date(Z,J-1,le),O=P[1];Z=he(O[0]),J=he(O[1]),le=he(O[2]);let K=new Date(Z,J-1,le);if(y.startDate=_,y.startArray=pt(_),y.endDate=K,y.endArray=pt(K),l.valueFormat){let H=yt(l,_,l.valueFormat),A=yt(l,K,l.valueFormat);s("update:modelValue",[H,A],{})}else s("update:modelValue",[_,K],{})}else{let Q=P,Z=he(Q[0]),J=he(Q[1]),le=he(Q[2]),_=new Date(Z,J-1,le);if(y.startDate=_,y.startArray=pt(_),l.valueFormat){let O=yt(l,_,l.valueFormat);s("update:modelValue",O,{})}else s("update:modelValue",_,{})}s("change",P,{})}},L=P=>{let Z=P.target.value;w.value=!0,s("focus",Z,P)},D=P=>{setTimeout(()=>{w.value=!1},0);let Z=P.target.value;l.maxLength&&Z.length>Number(l.maxLength)&&(Z=Z.slice(0,Number(l.maxLength))),s("blur",Z,P)},V=t.computed(()=>ze(l.unit)>0),N=P=>{m(),s("update:modelValue",null,P),s("change","",P),s("clear","")},U=t.ref();return pe({showPicker:B,hidePicker:I,focus:()=>{U?.value.focus()},blur:()=>{U?.value.blur()},select:()=>{U?.value.select()}}),()=>{const P={class:R.value,style:q.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:l.clearable,value:S.value,onClick:B,onFocus:L,onBlur:D,onClear:N},Q={};o.slots.prepend&&(Q.prepend=o.slots.prepend),o.slots.append&&(Q.append=o.slots.append),o.slots.prefix?Q.prefix=o.slots.prefix:Q.prefix=()=>t.h(F.ElIcon,{},{default:()=>t.h(Ce.Calendar)}),o.slots.suffix?Q.suffix=o.slots.suffix:V.value&&(Q.suffix=()=>[l.unit]);const Z=[],J=t.h(F.ElInput,P,Q);Z.push(J);const le={default:()=>Z};o.slots.default&&(le.label=o.slots.default),o.slots.fixedTip&&(le.fixedTip=o.slots.fixedTip);const _=Ct(l,ul);_.visible=j.value,_["onUpdate:visible"]=C,_["default-value"]=g.value,_.onChoose=$;const O={};if(o.slots.btn){const W=o.slots.btn();O.btn=()=>W}o.slots.day&&(O.day=o.slots.day),o.slots.topInfo&&(O.topInfo=o.slots.topInfo),o.slots.bottomInfo&&(O.bottomInfo=o.slots.bottomInfo);const K=t.h(hn,_,O);le.hide=()=>[K];const A={...$e(l,So),hintText:h.value,hintVisible:c.value,prop:`${l.prop??o.attrs.name}_item`};return t.h(a,A,le)}}}}const{componentName:Gu,create:Xu,scope:Zu}=se("calendar-item"),dl=Xu(Uu(Gu,Zu,Se)),To={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ju(e,n,a){return{props:{...we,...ke,...To},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:s}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue"),w=e,E=t.computed(()=>({[w]:!0})),y=q=>{c.value=q,s("update:modelValue",q),s("change",q)};let m=de(l,"hintText"),p=t.ref(!1);const S=q=>{let B=q.target.value;h.value=!0,ye(m.value)||(p.value=!0),s("focus",B,q)},g=q=>{setTimeout(()=>{p.value&&(p.value=!1),h.value=!1},0);let B=q.target.value;l.maxLength&&B.length>Number(l.maxLength)&&(B=B.slice(0,Number(l.maxLength))),s("blur",B,q)},f=()=>{s("clear","")},R=q=>{s("visible-change",q)},z=t.ref();return pe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},handleOpen:()=>{z?.value.handleOpen()},handleClose:()=>{z?.value.handleClose()}}),()=>{const j={...o.attrs,ref:z,class:E.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":y,onClear:f,onFocus:S,onBlur:g,onVisibleChange:R},B={},I=[],C=t.h(F.ElTimePicker,j,B);I.push(C);const $={default:()=>I};o.slots.default&&($.label=o.slots.default),o.slots.fixedTip&&($.fixedTip=o.slots.fixedTip);const D={...$e(l,To),hintText:m.value,hintVisible:p.value,prop:`${l.prop}_item`};return t.h(a,D,$)}}}}const{componentName:Qu,create:ec,scope:tc}=se("time-item"),hl=ec(Ju(Qu,tc,Se)),xo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function nc(e,n,a){return{props:{...we,...ke,...xo},emits:["change","update:modelValue","blur","focus","clear"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:s}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue"),w=e,E=t.computed(()=>({[w]:!0})),y=z=>{c.value=z,s("update:modelValue",z),s("change",z)};let m=de(l,"hintText"),p=t.ref(!1);const S=z=>{let j=z.target.value;h.value=!0,ye(m.value)||(p.value=!0),s("focus",j,z)},g=z=>{setTimeout(()=>{p.value&&(p.value=!1),h.value=!1},0);let j=z.target.value;l.maxLength&&j.length>Number(l.maxLength)&&(j=j.slice(0,Number(l.maxLength))),s("blur",j,z)},f=()=>{s("clear","")},R=t.ref();return pe({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()}}),()=>{const q={...o.attrs,ref:R,class:E.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":y,onClear:f,onFocus:S,onBlur:g},j={},B=[],I=t.h(F.ElTimeSelect,q,j);B.push(I);const C={default:()=>B};o.slots.default&&(C.label=o.slots.default),o.slots.fixedTip&&(C.fixedTip=o.slots.fixedTip);const L={...$e(l,xo),hintText:m.value,hintVisible:p.value,prop:`${l.prop}_item`};return t.h(a,L,C)}}}}const{componentName:lc,create:ac,scope:oc}=se("time-select-item"),ml=ac(nc(lc,oc,Se));function Co(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 $o(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=ha(`${e}`,`${n}`);return Co(l)}else{let l=Fn(`${e}`,ma(`${n}`),20);return Co(l)}}function rc(e,n=-1,a=!1,l=3,o=","){return qt(e,n,a,l,o)}function ko(e,n,a,l,o=!0){if(e=="")return"";if(e=ga(e),n=he(n),n==1)return e;if(l)e=$o(e,n),a&&(e=="0"&&o?e=`${e}.`.padEnd(he(a)+2,"0"):e=Fn(e,1,he(a)));else{let r=-1*n;e=$o(e,r)}return e}function Do(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ce(n.minInclude),o=Bn(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=ce(n.maxInclude),o=Bn(e,n.max);(l&&o==1||!l&&(o==0||o==1))&&(a.maxValid=!1)}return a}const No={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 ic(e,n,a){return{props:{...we,...ke,...No},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:s}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),u=t.ref(!1),d=de(l,"modelValue"),h=t.ref("");t.watch([()=>d.value,()=>l.rates,()=>l.precision],([D,V,N])=>{if(ye(D)){h.value="";return}const U=ko(D,V,N,!1);h.value!==U&&(h.value=U)},{immediate:!0});const c=t.computed(()=>{let D="";return u.value&&(D=h.value),D}),{t:w}=ve.useFoxI18n(n),E=t.computed(()=>{let D=l.placeholder??"";return!u.value&&!ye(h.value)?D=rc(h.value,l.decimalLength,l.autoPadding,l.digits,l.separator):D=w(["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(()=>u.value?{textAlign:"left"}:{textAlign:p.value??"right"});const S=t.ref(""),g=t.computed(()=>{let D=S.value;return ye(D)&&(D=l.errorTip??""),D}),f=t.ref(""),R=t.ref(!1),z=(D,V)=>{if(D=`${D}`,ye(D)){h.value="",d.value="",V.forEach(N=>{s(N,"")}),ce(l.showTip)&&R.value&&(R.value=!1);return}if(D.length>=2){let N=D;if(N.charAt(0)=="-"&&(N=N.substring(1)),N.length>=2&&N.charAt(0)=="0"&&N.charAt(1)!="."){t.triggerRef(h);return}}if(D!="-"){if(!xa(D)){t.triggerRef(h);return}if(l.integerLength!=-1&&Ca(D)>Number(l.integerLength)){t.triggerRef(h);return}if(l.decimalLength&&l.decimalLength!=-1&&$a(D)>Number(l.decimalLength)){t.triggerRef(h);return}let N=Do(D,l);if(N.maxValid===!1){S.value=N.message,t.triggerRef(h);return}}else if(l.min!=null&&he(l.min)>=0){t.triggerRef(h);return}f.value=D,ce(l.showTip)&&(R.value=D.length>0),h.value=D,d.value=ko(D,l.rates,l.precision,!0),V.forEach(N=>{s(N,d.value)})},q=D=>{z(D,["update:modelValue","input"])},j=D=>{z(D,["update:modelValue","change"])},B=D=>{if(u.value=!0,ce(l.showTip)){let V=h.value;ye(V)&&(V=l.hintText),ye(V)||(f.value=V,R.value=!0)}S.value="",s("focus",d.value,D)},I=D=>{if(setTimeout(()=>{u.value=!1,ce(l.showTip)&&R.value===!0&&(R.value=!1)},0),!ye(h.value)){let V=Do(h.value,l);if(V.minValid===!1||V.maxValid===!1){S.value=V.message;return}}s("update:modelValue",d.value,D),s("blur",d.value,D)},C=()=>{s("clear","")},$=t.computed(()=>ze(l.unit)>0),L=t.ref();return pe({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const V={...He(o.attrs),ref:L,class:m.value,type:"digit",maxlength:l.maxLength,placeholder:E.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:C,onInput:q,onChange:j,onFocus:B,onBlur:I},N={};o.slots.prepend&&(N.prepend=o.slots.prepend),o.slots.append&&(N.append=o.slots.append),o.slots.prefix&&(N.prefix=o.slots.prefix),o.slots.suffix?N.suffix=o.slots.suffix:$.value&&(N.suffix=()=>[l.unit]);const U=[],P=t.h(F.ElInput,V,N);U.push(P);const Q={default:()=>U};o.slots.default&&(Q.label=o.slots.default),o.slots.fixedTip&&(Q.fixedTip=o.slots.fixedTip);const J={...$e(l,No),errorTip:g.value,hintText:f.value,hintVisible:R.value,hintType:"number",prop:`${l.prop}_item`};return t.h(a,J,Q)}}}}const{componentName:sc,create:uc,scope:cc}=se("money-item"),gl=uc(ic(sc,cc,Se)),Eo={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 fc(e,n,a){return{props:{...we,...ke,...Eo},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:s}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue"),w=e,E=t.computed(()=>({[w]:!0,[`${w}__append`]:q.value})),y=t.computed(()=>({[`${w}__unit`]:!0})),m=B=>{c.value=B,s("update:modelValue",B),s("input",B)},p=B=>{s("change",B)};let S=de(l,"hintText"),g=t.ref(!1);const f=B=>{let C=B.target.value;h.value=!0,ye(S.value)||(g.value=!0),s("focus",C,B)},R=B=>{setTimeout(()=>{g.value&&(g.value=!1),h.value=!1},0);let C=B.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),s("blur",C,B)},z=()=>{s("clear","")},q=t.computed(()=>ze(l.unit)>0),j=t.ref();return pe({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const I={...He(o.attrs),ref:j,class:E.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:z,onChange:p,onInput:m,onFocus:f,onBlur:R},C={},$=[],L=t.h(F.ElInputNumber,I,C);$.push(L);const D={default:()=>$};o.slots.default&&(D.label=o.slots.default),o.slots.fixedTip&&(D.fixedTip=o.slots.fixedTip);const N={...$e(l,Eo),hintText:S.value,hintVisible:g.value,prop:`${l.prop}_item`};if(o.slots.append)D.append=o.slots.append;else if(q.value){const P={class:y.value},Q=t.h("div",P,[l.unit]);D.append=()=>Q}return t.h(a,N,D)}}}}const{componentName:dc,create:hc,scope:mc}=se("input-number-item"),yl=hc(fc(dc,mc,Se));function Ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function it(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function gc(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let yc=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l,o);const r=Fe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(a,l,o))}};function pc(){const e=t.getCurrentInstance();return new yc(e.proxy)}function pl(e,n,a){const l=Ze(e,n),o=Ze(e,a);if(l!==o)return!1;const r=it(e,n),i=it(e,a);return r===i}function Io(e,n,a,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];let r=l;for(let i=0;Array.isArray(r)&&i<n.length;i++){const s=n[i];if(Array.isArray(s)){const u=Io(e,s,a,l);o.push(u)}else{let u=!1;for(let d of r){if(a==="text")u=Ze(e,d)===s;else if(a==="item")u=pl(e,d,s);else{let h=it(e,d);h==null&&(h=Ze(e,d)),u=h===s}if(u){o.push(d),r=gc(e,d);break}}if(!u)break}}return o}function bc(e){return{text:e,value:e}}const Vo={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function vc(e,n,a){return{props:{...we,...ke,...Vo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:s}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(null),c=t.ref([]),w=t.computed(()=>c.value?c.value.map(k=>Array.isArray(k)?k.map(x=>Ze(l,x)).join(" "):Ze(l,k)).join(" "):""),E=(W,k,b,x=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(h.value===W)return;h.value=W;const T=t.toRaw(W);if(x){const Y=G?.value.getCheckedNodes();if(Y)if(l.multiple){const ee=[];Y.forEach(ae=>{const oe=(ae.pathNodes??[]).map(ie=>ie.data);ee.push(oe)}),s("update:pathNodes",ee)}else{const ae=(Y[0]?.pathNodes??[]).map(te=>te.data);s("update:pathNodes",ae)}s("update:modelValue",T),s("change",T)}return}const M=Io(l,W,k,b);if(M===null){if(c.value.length===0||c.value===null)return;c.value=[],h.value=null,x&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const X=M[M.length-1];if(C.value.checkStrictly!==!0&&!Array.isArray(X)&&Array.isArray(X.children)&&X.children.length>0){const T=[];M.forEach(Y=>{const ee=`${Ze(l,Y)}`;T.push(ee)}),T.length>0&&(I.value=T.join(l.separator))}else I.value=null;let ne=!0;if(M.length!==c.value.length)ne=!1;else for(let T=0;T<M.length;T++){const Y=M[T],ee=c.value[T];if(Array.isArray(Y)){if(!Array.isArray(ee)||Y.length!==ee.length)ne=!1;else for(let ae=0;ae<Y.length;ae++)if(!pl(l,Y[ae],ee[ae])){ne=!1;break}}else pl(l,Y,ee)||(ne=!1);if(!ne)break}if(!ne){c.value=M;let T=[],Y=[];M.forEach(ae=>{if(Array.isArray(ae)){let te=[],oe=[];for(let ie of ae)te.push(it(l,ie)),l.valueType==="text"?oe.push(Ze(l,ie)):l.valueType==="item"?oe.push(ie):oe.push(it(l,ie));T.push(te),Y.push(oe)}else T.push(it(l,ae)),l.valueType==="text"?Y.push(Ze(l,ae)):l.valueType==="item"?Y.push(ae):Y.push(it(l,ae))}),h.value=T;const ee=t.toRaw(Y);x&&(s("update:pathNodes",M),s("update:modelValue",ee),s("change",ee))}},y=t.ref([]),m=Ee(t.computed(()=>l.lazyLoad),"lazyLoad",Le.Near,W=>ce(W)),p=pc(),S=async(W,k)=>{if(W){const b=await p.load("cascader",W,k);if(b.length>0)if(typeof b[0]=="string"){let X=b.map(ne=>bc(ne));y.value=X}else y.value=b}};t.watch([()=>l.source,()=>l.params],async([W,k])=>{S(W,k)},{immediate:!(m.value||l.lazy)});let g=!1;const f=()=>{g||(g=!0,S(l.source,l.params))};t.watch([()=>y.value,()=>l.modelValue],([W,k])=>{E(k,l.valueType,W,!1)}),l.lazy&&E(l.modelValue,"value",[],!1);let R=null,z=t.ref(!1);typeof l.remoteMethod=="function"&&(R=async W=>{if(W!=null){z.value=!0;try{const k=await l.remoteMethod(W);y.value=k}catch(k){console.error(k)}z.value=!1}});const q=t.ref(!1),j=e,B=t.computed(()=>({[j]:!0})),I=t.ref(null),C=t.computed(()=>{let W={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(W.multiple=!0),l.props&&Object.assign(W,l.props),l.lazy&&(W.lazy=!0,W.lazyLoad=async(k,b)=>{const x=await p.load("cascader",l.source,k,!0);if(k?.config?.checkStrictly!==!0&&Array.isArray(h.value)&&h.value.length===k.level){const M=k.pathLabels??[];let X=[];M.forEach(ne=>{ne&&X.push(ne)}),X.length>0&&(I.value=X.join(l.separator))}else I.value=null;b(x)}),W}),$=W=>{l.allowCreate?(s("update:modelValue",W),s("change",W),h.value=W):E(W,"value",y.value,!0)};let L=de(l,"hintText"),D=t.ref(!1);const V=W=>{let b=W.target.value;q.value=!0,ye(L.value)||(D.value=!0),s("focus",b,W)},N=W=>{setTimeout(()=>{D.value&&(D.value=!1),q.value=!1},0);let b=W.target.value;l.maxLength&&b.length>Number(l.maxLength)&&(b=b.slice(0,Number(l.maxLength))),O.value||s("blur",b,W)},U=()=>{s("clear","")},P=t.ref(!1);let Q=null;const Z=()=>{l.showTooltip&&P.value===!1&&(Q&&clearTimeout(Q),Q=setTimeout(()=>{P.value=!0},150))},J=()=>{Q&&(clearTimeout(Q),P.value=!1,Q=null)},le=t.computed(()=>P.value||D.value),_=t.computed(()=>P.value?w.value:L.value),O=t.ref(!1),K=W=>{O.value=W,s("visible-change",W),W||s("selected")},H=W=>{s("remove-tag",W)},A=W=>{s("expand-change",W)},G=t.ref();return pe({focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()},getCheckedNodes:()=>G?.value.getCheckedNodes()}),()=>{const k={...o.attrs,ref:G,class:B.value,props:C.value,clearable:l.clearable,placeholder:I.value||d.placeholder.value,disabled:r.value||i.value,options:y.value,modelValue:h.value,separator:l.separator,onClear:U,onChange:$,onFocus:V,onBlur:N,onVisibleChange:K,onRemoveTag:H,expandChange:A};typeof R=="function"&&(k["remote-method"]=R,k.loading=z.value);const b={};o.slots.option&&(b.default=o.slots.option),o.slots.empty&&(b.empty=o.slots.empty);const x=[],M=t.h(F.ElCascader,k,b);x.push(M);const X={default:()=>x};o.slots.default&&(X.label=o.slots.default),o.slots.fixedTip&&(X.fixedTip=o.slots.fixedTip);const T={...$e(l,Vo),hintText:_.value,hintVisible:le.value,prop:`${l.prop??o.attrs.name}_item`,onMouseover:Z,onMouseleave:J};return m.value&&!l.lazy&&(T["appear-listen"]=!0,T.onAppear=f),t.h(a,T,X)}}}}const{componentName:wc,create:Sc,scope:Tc}=se("cascader-item"),bl=Sc(vc(wc,Tc,Se)),Oo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function xc(e,n,a){return{props:{...we,...ke,...Oo},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:s}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue"),w=e,E=t.computed(()=>({[w]:!0})),y=j=>{c.value=j,s("update:modelValue",j),s("input",j)},m=j=>{s("change",j)},p=j=>{s("select",j)};let S=de(l,"hintText"),g=t.ref(!1);const f=j=>{let I=j.target.value;h.value=!0,ye(S.value)||(g.value=!0),s("focus",I,j)},R=j=>{setTimeout(()=>{g.value&&(g.value=!1),h.value=!1},0);let I=j.target.value;l.maxLength&&I.length>Number(l.maxLength)&&(I=I.slice(0,Number(l.maxLength))),s("blur",I,j)},z=()=>{s("clear","")},q=t.ref();return pe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const B={...o.attrs,ref:q,class:E.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,onClear:z,onChange:m,onInput:y,onFocus:f,onBlur:R,onSelect:p},I={};o.slots.prepend&&(I.prepend=o.slots.prepend),o.slots.append&&(I.append=o.slots.append),o.slots.prefix&&(I.prefix=o.slots.prefix),o.slots.suffix&&(I.suffix=o.slots.suffix),o.slots.option&&(I.default=o.slots.option);const C=[],$=t.h(F.ElAutocomplete,B,I);C.push($);const L={default:()=>C};o.slots.default&&(L.label=o.slots.default),o.slots.fixedTip&&(L.fixedTip=o.slots.fixedTip);const V={...$e(l,Oo),hintText:S.value,hintVisible:g.value,prop:`${l.prop}_item`};return t.h(a,V,L)}}}}const{componentName:Cc,create:$c,scope:kc}=se("autocomplete-item"),vl=$c(xc(Cc,kc,Se));function Dc(e,n,a,l,o){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[o]){let u=n;for(let d=0;u&&d<r.length;d++){let h=r[d],c=u.find(w=>w[l]===h);if(!c)break;i.push(c[a])}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 c=d.find(w=>w[l]===h);if(!c)break;i.push(c[a])}else{let u=n;for(let d=0;u&&d<r.length;d++){let h=r[d],c=u.find(w=>w[l]===h);if(!c)break;i.push(c[a]),u=c[o]}}return i}let Nc=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`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function Ec(){const e=t.getCurrentInstance();return new Nc(e.proxy)}const Ao={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 Ic(e,n){return{props:{...Ao},setup(a,{attrs:l,slots:o}){const r=Ec(),i=t.ref([]);t.watch([()=>a.source,()=>a.params],async([d,h])=>{i.value=await r.load(a.sourceType,d,h)},{immediate:!0});const s=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=Dc(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)}),u=a.resolveTag?t.resolveComponent(a.tag):a.tag;return()=>{const d={...l};return o.default?o.default({text:s.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===s.value?t.h(a.emptyTag??"span",{...l,class:a.emptyClass},s.value):t.h(u,d,{default:()=>s.value}):t.h(u,d,s.value)}}}}const{componentName:jg,create:Vc,scope:Hg}=se("mapping"),At=Vc(Ic());function Oc(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],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 c=r.substring(0,s);l=l[c][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 Ac(e,n){return{props:{...Ao},setup(a,{attrs:l,slots:o}){return()=>{const r={default:i=>{const s=Oc(i.row,i.column.property);return o.default?t.h(At,{...a,modelValue:s},{default:o.default}):t.h(At,{...a,modelValue:s})}};return t.h(F.ElTableColumn,{...l},r)}}}}const{componentName:Kg,create:Fc,scope:Yg}=se("table-mapping-column"),wl=Fc(Ac()),Bc=Symbol.for("TableStateKey");function Fo(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],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 c=r.substring(0,s);l=l[c][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 Mc(e,n){return{props:{},setup(a,{attrs:l}){const o=t.inject(Bc,{});return()=>{const r=o.currentRow?o.currentRow.value:null,i={default:s=>{const u=Fo(s.row,s.column.property),d=r?Fo(r,s.column.property):null,h=u===d,c={class:{"el-radio__input":!0,"is-checked":h}},w=t.h("span",c,[t.h("span",{class:{"el-radio__inner":!0}})]),E={class:{"el-radio":!0,"is-checked":h}};return t.h("label",E,[w])}};return t.h(F.ElTableColumn,{...l},i)}}}}const{componentName:Wg,create:Rc,scope:Ug}=se("table-radio-column"),Sl=Rc(Mc()),Lc={},_c={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"},Pc=[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 qc(e,n){return t.openBlock(),t.createElementBlock("svg",_c,Pc)}const zc=De(Lc,[["render",qc]]),{componentName:Xg,create:jc,scope:Zg}=se("table-setting"),Hc={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:"不固定"}},Kc=jc({components:{FoxPopover:F.ElPopover,FoxCheckbox:F.ElCheckbox,FoxCheckboxGroup:F.ElCheckboxGroup,FoxButton:F.ElButton,FoxIcon:F.ElIcon,DragIcon:zc,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...Hc},setup(e,{emit:n,attrs:a}){let l=[];const o=t.ref([]),r=t.computed(()=>o.value.filter(A=>A.label===""||A.type?!1:A.fixed===""||A.fixed===!0||A.fixed==="left")),i=t.computed(()=>o.value.filter(A=>A.label===""||A.type?!1:A.fixed==="right")),s=t.computed(()=>o.value.filter(A=>!(A.label===""||A.type||A.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),c=A=>A.length>1,w=(A,G)=>{Array.isArray(A)&&Array.isArray(G)&&A.forEach(b=>{G.some(x=>x.prop===b.prop?(b.label=x.label,!0):!1)});const W=[];o.value=A.map((b,x)=>(!(b.label===""||b.type)&&b.visible!==!1&&W.push(b.prop),{...b,sortIndex:x})),s.value.length+r.value.length+i.value.length===W.length?g.value=!0:W.length>0&&(f.value=!0),q.value=W},E=A=>A?A.type?A.type:A.label?A.prop:"":"",y=(A,G)=>{if(A.length!==G.length)return!1;const W=A.map(k=>E(k));for(let k of G){const b=E(k);if(W.indexOf(b)===-1)return!1}return!0},m=A=>{if(!A){const G=e.tableRef.getColumnSetting(),W=G.srcColumnPropertyList;l=W.map((k,b)=>({...k,sortIndex:b})),A=G.columnPropertyList,A&&A.length>0&&y(W,A)||(A=W)}w(A,l)},p=()=>{e.tableRef.setColumnSetting(o.value)},S=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),f=t.ref(!1),R=A=>{const G=[];o.value.forEach(k=>{A&&!(k.label===""||k.type)&&G.push(k.prop),k.visible=A}),g.value=!1,f.value=!1,s.value.length+r.value.length+i.value.length===G.length?g.value=!0:G.length>0&&(f.value=!0),q.value=G,p()},z=()=>{m(l),p()},q=t.ref([]),j=A=>{o.value.forEach(W=>{if(W.label===""||W.type)return;const k=A.indexOf(W.prop)!==-1;W.visible=k}),g.value=!1,f.value=!1;const G=s.value.length+r.value.length+i.value.length;A.length===G?g.value=!0:A.length>0&&(f.value=!0),p()},B=()=>{m()};t.onMounted(()=>{setTimeout(()=>{m()},50)});const I={currentRow:null,index:null,roleType:null},C=A=>A?A.dataset&&A.dataset.role==="row"?A:A.tagName.toLowerCase()!=="body"?(A=A.parentElement,C(A)):null:null,$=A=>{const G=A.currentTarget;G&&G.dataset&&(I.roleType=G.dataset.roleType,I.index=G.dataset.index)},L=A=>{I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null),I.index=null,I.roleType=null},D=A=>{const G=A.currentTarget;A.relatedTarget;const W=C(G);if(!W)return;const k=W.dataset&&W.dataset.roleType;I.roleType===k&&(A.preventDefault(),I.currentRow&&I.currentRow!==W&&I.currentRow.classList.remove("is-dragover"),W.classList.add("is-dragover"),I.currentRow=W)},V=A=>{A.preventDefault(),I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null)},N=A=>{const G=A.currentTarget,W=C(G);if(!W)return;const k=W.dataset&&W.dataset.roleType;if(I.roleType!==k)return;A.preventDefault();const b=Number(I.index),x=Number(W.dataset.index);if(b!==x){if(b<x){const M=o.value[b];o.value.splice(b,1),o.value.splice(x,0,M)}else{const M=o.value[b];o.value.splice(b,1),o.value.splice(x+1,0,M)}w(o.value,l),p()}},U=A=>{const G=o.value[A];G.fixed="left",p()},P=A=>{const G=o.value[A];G.fixed="right",p()},Q=A=>{const G=o.value[A];G.fixed=void 0,p()},Z=new Map;let J=null;function le(A){const G=document.createRange();return G.setStart(A,0),G.setEnd(A,A.childNodes.length),G.getBoundingClientRect().width}return{attrs:a,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:h,isDraggble:c,isCheckAll:g,isIndeterminate:f,handleCheckAllChange:R,handleReset:z,checkedValue:q,handleCheckChange:j,onShow:B,onDragStart:$,onDragEnd:L,onDragOver:D,onDragLeave:V,onDrop:N,toLeftFixed:U,toRightFixed:P,toUnFixed:Q,checkboxLabelStyle:S,onMouseOverForOverflowText:(A,G,W)=>{const k=A.currentTarget;if(k){const b=Math.floor(k.offsetWidth);if(Math.floor(le(k))>b){let M=Z.get(G);if(M){if(M===J)return;Be.hide(M)}M=Be.show(k,W,{type:"text",placement:"top",closeOnClick:!1}),Z.set(G,M),J=M}}},onMouseLeaveForOverflowText:(A,G)=>{const W=Z.get(G);W&&(Be.hide(W),W===J&&(J=null))},onMouseOverForTip:(A,G)=>{const W=A.currentTarget;W&&(J&&Be.hide(J),J=Be.show(W,G,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:A=>{J&&(Be.hide(J),J=null)}}}}),Yc={class:"fox-table-setting"},Wc={class:"fox-table-setting__header"},Uc={class:"fox-table-setting__body"},Gc={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Xc={key:0,class:"fox-table-setting__body-title"},Zc=["data-index","draggable"],Jc=["onMouseover","onMouseleave"],Qc={class:"tools-item"},ef={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},tf={key:0,class:"fox-table-setting__body-title"},nf=["data-index","draggable"],lf=["onMouseover","onMouseleave"],af={class:"tools-item"},of={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},rf={key:0,class:"fox-table-setting__body-title"},sf=["data-index","draggable"],uf=["onMouseover","onMouseleave"],cf={class:"tools-item"};function ff(e,n,a,l,o,r){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),u=t.resolveComponent("DragIcon"),d=t.resolveComponent("RefreshLeft"),h=t.resolveComponent("FoxIcon"),c=t.resolveComponent("Download"),w=t.resolveComponent("fox-checkbox"),E=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",Yc,[t.createElementVNode("div",Wc,[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(s,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Uc,[t.createVNode(E,{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",Gc,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",Xc,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(u,{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,Jc)]),_:2},1032,["label"]),t.createElementVNode("div",Qc,[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(c)]),_:2},1032,["onClick"])])],40,Zc))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",ef,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",tf,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(u,{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,lf)]),_:2},1032,["label"]),t.createElementVNode("div",af,[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(c)]),_: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(c)]),_:2},1032,["onClick"])])],40,nf))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",of,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",rf,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(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(w,{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,uf)]),_:2},1032,["label"]),t.createElementVNode("div",cf,[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(c)]),_:2},1032,["onClick"])])],40,sf))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const mn=De(Kc,[["render",ff]]);let df=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o,r,i,s){if(Array.isArray(a)){let d=(l-1)*o,h=d+o;h>a.length&&(h=a.length);const c=a.slice(d,h);return{totalSize:a.length,page:c}}if(typeof a=="function")return await Reflect.apply(a,null,[l,o,r,i,s]);const u=Fe(this.proxy,n);return u===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Re(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(u,null,[a,l,o,r,i,s]))}};function hf(){const e=t.getCurrentInstance();return new df(e.proxy)}let mf=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 gf(){const e=t.getCurrentInstance();return new mf(e.proxy)}const yf=Symbol.for("TableStateKey"),Bo={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"}},Mo={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}},Tl={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:"不固定"}},pf={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function bf(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],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 c=r.substring(0,s);l=l[c][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 xl(e,n){return e.filter(l=>{for(let o in n){const r=n[o],i=bf(l,o);if(r!==i)return!1}return!0})}function vf(e,n,a){return{inheritAttrs:!1,props:{...we,...ke,...Bo,...Mo,...Tl,...pf},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}=xe({componentName:e,validateHandler:{getValue(...te){return q.value}}},l.prop??o.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})),c=t.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${l.paginationAlign}`]:!0})),w=t.shallowRef({}),E=t.computed(()=>({...w.value,...l.params??{},...l.baseParams??{}})),y=t.ref(l.infiniteLoad===!0?0:l.pageIndex),m=t.ref(l.pageSize),p=ce(l.infiniteLoad);p||(t.watch(()=>l.pageIndex,te=>{y.value=te}),t.watch(()=>l.pageSize,te=>{m.value=te}),t.watch([y,m],([te,oe],[ie,ue])=>{oe!==ue&&(y.value=1,te=1),C(l.data,te,oe,E.value)}));const S=()=>Array.isArray(l.data)?!0:ce(l.autoLoad);S()&&t.watch([()=>l.data,E],async([te,oe],[ie,ue])=>{S()&&(te!==ie&&(B=!0),!(!Array.isArray(te)&&_e(te,ie)&&_e(oe,ue))&&(p?(y.value=0,R.value=!0,q.value=[],L()):y.value===1?C(te,y.value,m.value,oe):y.value=1))},{deep:!0});const g=te=>{y.value=te,i("page-index-change",te)},f=te=>{m.value=te,i("page-size-change",te)},R=t.ref(!0),z=t.ref(0),q=t.ref(),j=hf();let B=!0;const I=Ee(t.computed(()=>l.lazyLoad),"lazyLoad",Le.Near,te=>ce(te)),C=async(te,oe,ie,ue,be)=>{B=!1;try{if(be===!0){if(!R.value)return!1;const ge=await j.load("table",te,oe,ie,ue,B,r.value);return z.value=ge.totalSize,!ge.page||!Array.isArray(ge.page)||(Reflect.apply([].push,q.value,ge.page),setTimeout(()=>{i("loaded-data")},250),(q.value?.length??0)>=z.value)||ge.page.length<ie?(R.value=!1,!1):!0}else{const ge=await j.load("table",te,oe,ie,ue,B,r.value);return z.value=ge.totalSize,q.value=ge.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ge){console.error("[FoxUI] Load Table Data Fail",ge),z.value=0,q.value=[]}return!1};let $=!1;const L=async()=>{if(!$){if($=!0,!R.value){$=!1;return}y.value+=1,await C(l.data,y.value,m.value,E.value,!0),$=!1}},D=(te={},oe=!1)=>new Promise(async ie=>{w.value=t.toRaw(te??{}),oe||(y.value=l.pageIndex??1),p===!0?(y.value=0,q.value=[],R.value=!0,await L()):await C(l.data,y.value,m.value,E.value),ie()}),V=()=>{z.value=0,q.value=[],p===!0&&(y.value=0,R.value=!0)};let N=!1;const U=()=>{N||(N=!0,D())},P=t.ref(null);if(p===!0){let te=null;const oe=()=>{P.value&&(te=new IntersectionObserver(ue=>{let be=!1;for(let ge of ue)if(ge.intersectionRatio>0){be=!0;break}be&&L()}),te.observe(P.value))},ie=()=>{!te||!P.value||(te.unobserve(P.value),te=null)};t.onMounted(oe),t.onBeforeUnmount(ie)}S()&&!I.value&&D();const Q=t.ref(null);t.provide(yf,{currentRow:Q});const Z=(te,oe)=>{Q.value=te,i("current-change",te,oe)},J=(te,oe,ie)=>{i("row-click",te,oe,ie),ce(l.rowClickSelectable)===!0&&ae?.value.toggleRowSelection(te)},le=[],_=(te,oe)=>{if(i("expand-change",te,oe),ce(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ie=le.length;le.splice(0,ie)}else{le.forEach(ue=>{ue!==te&&ae?.value.toggleRowExpansion(ue,!1)});const ie=le.length;le.splice(0,ie,te)}},O=o.attrs.id??l.prop??o.attrs.name,K=gf(),H=t.ref([]);let A=[];const G=()=>({srcColumnPropertyList:A.map(oe=>({...oe})),columnPropertyList:H.value}),W=te=>{H.value=[...te],b()},k=async()=>{const te=await K.load(O);te&&(H.value=te)},b=()=>{K.save(O,H.value)},x=()=>{K.remove(O)};k();const M=te=>te?te.type?te.type:te.label?te.prop:"":"",X=t.computed(()=>{if(typeof o.slots.default=="function"){const te=o.slots.default(),oe=new Map;if(A=[],te.forEach(ie=>{const ue=ie;if(!ue.props)return;const be=M(ue.props);oe.set(be,ie);const ge={label:"",prop:""};Object.assign(ge,ue.props),A.push(ge)}),H.value.length===A.length){const ie=[];for(let ue of H.value){const be=M(ue),ge=oe.get(be);if(!ge)return te;if(ue.visible===!1)continue;const nt=ge;nt.props.fixed=ue.fixed,ie.push(nt)}return ie}return te}return[]}),ne=t.shallowRef(new Map),T=({column:te,rowIndex:oe})=>{const ie=`${oe}_${te.property}`;return ne.value.get(ie)??""},Y=te=>typeof te=="function"?oe=>{const ie=[];let ue=T(oe);return ue&&ie.push(ue),ue=te(oe),ue&&ie.push(ue),ie.length===0?"":ie.join(" ")}:T,ee=(te,oe,ie)=>{const ue=`${te}_${oe}`;ie?ne.value.set(ue,ie):ne.value.delete(ue),t.triggerRef(ne)},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(!q.value)return;const ie=xl(q.value,te);ie.length!==0&&ie.forEach(ue=>{ae?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{ae?.value.toggleAllSelection()},toggleRowExpansion:(te,oe)=>{ae?.value.toggleRowExpansion(te,oe)},toggleRowExpansionByProp:(te,oe)=>{if(!q.value)return;const ie=xl(q.value,te);ie.length!==0&&ie.forEach(ue=>{ae?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:te=>{ae?.value.setCurrentRow(te)},setCurrentRowByProp:te=>{if(!q.value)return;const oe=xl(q.value,te);oe.length!==0&&ae?.value.setCurrentRow(oe[0])},getCurrentRow:()=>Q.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:D,clearData:V,getData(){return q.value},getTotalSize(){return z.value},getPageIndex(){return y.value},getPageSize(){return m.value},getColumnSetting:G,setColumnSetting:W,removeColumnSetting:x,setCellClassName:ee}),()=>{const oe={...He(o.attrs),onCurrentChange:Z,onRowClick:J,onExpandChange:_,data:q.value,ref:ae,class:u.value,"cell-class-name":Y(l.cellClassName)},ie={};if(o.slots.default&&(ie.default=()=>X.value),o.slots.append&&(ie.append=()=>o.slots.append),o.slots.empty&&(ie.empty=()=>o.slots.empty),p===!0){const qe=[];if(R.value){const Lt=t.h(Ce.Loading,{class:`${s}__infinite-icon`});qe.push(Lt);const ia=t.h("span",{class:`${s}__infinite-text`},[l.loadText]);qe.push(ia)}else{const Lt=t.h("span",{class:`${s}__infinite-text`},[l.loadMoreText]);qe.push(Lt)}const ct={ref:P,class:`${s}__infinite`},ra=t.h("div",ct,qe);ie.append=()=>ra}const ue=t.h(F.ElTable,oe,ie),be=[];if(be.push(ue),!p){let qe=null;if(typeof o.slots.pagination=="function")qe=o.slots.pagination();else if(l.showPagination){const ct={class:c.value,total:z.value,pageSize:m.value,"onUpdate:pageSize":f,pageSizes:l.pageSizes,currentPage:y.value,"onUpdate:currentPage":g,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};qe=t.h(F.ElPagination,ct)}if(l.showSetting){const ct=[];qe&&ct.push(qe);const ra=t.h(F.ElIcon,{class:d.value},{default:()=>t.h(Ce.Setting)}),Lt=Ct(l,Tl),ia=t.h(mn,{...Lt,tableRef:{getColumnSetting:G,setColumnSetting:W,removeColumnSetting:x}},{default:()=>ra});ct.push(ia);const Mg=t.h("div",{class:h.value},ct);be.push(Mg)}else qe&&be.push(qe)}const ge={default:()=>be},Rt={...$e(l,Bo,Mo,Tl),prop:`${l.prop}_item`};return Rt.contentClass=`${s}__wrap`,Rt.errorMarkClass="is-table-error",I.value&&S()&&(Rt["appear-listen"]=!0,Rt.onAppear=U),t.h(a,Rt,ge)}}}}const{componentName:wf,create:Sf,scope:Tf}=se("table-item"),Cl=Sf(vf(wf,Tf,Se));function bt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function xf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Cf=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`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function $f(){const e=t.getCurrentInstance();return new Cf(e.proxy)}function Ro(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const l=bt(e,n),o=bt(e,a);if(l!==o)return!1;const r=Ft(e,n),i=Ft(e,a);return r===i}function kf(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=bt(e,r)===n;else if(a==="item")i=Ro(e,r,n);else{let s=Ft(e,r);s==null&&(s=bt(e,r)),i=s===n}if(i){o=r;break}}return o}function Df(e){return{text:e,value:e}}function Nf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const Lo={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 Ef(e,n,a){return{inheritAttrs:!0,props:{...we,...ke,...Lo},emits:["change","update:modelValue"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:s}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),u=t.ref(null),d=t.ref(null),h=(j,B,I,C=!0)=>{const $=kf(l,j,B,I);if($===null){if(d.value===null)return;d.value=null,u.value=null,C&&(s("update:modelValue",null),s("change",null));return}if(!Ro(l,$,d.value)){u.value=j;const D=t.toRaw($);d.value=D;let V=null;l.valueType==="text"?V=bt(l,D):l.valueType==="item"?V=D:V=Ft(l,D),C&&(s("update:modelValue",V),s("change",V))}},c=t.ref([]),w=Ee(t.computed(()=>l.lazyLoad),"lazyLoad",Le.Near,j=>ce(j)),E=$f(),y=async(j,B)=>{if(j){const I=await E.load("radio",j,B);if(I.length>0)if(typeof I[0]=="string"){let L=I.map(D=>Df(D));c.value=L}else c.value=I}};t.watch([()=>l.source,()=>l.params],async([j,B])=>{y(j,B)},{immediate:!w.value});let m=!1;const p=()=>{m||(m=!0,y(l.source,l.params))};t.watch([()=>c.value,()=>l.modelValue],([j,B])=>{h(B,l.valueType,j,!1)});const S=e,g=t.computed(()=>({[S]:!0,[`is-${l.direction}`]:!0})),f=j=>{h(j,"value",c.value,!0)};let R=de(l,"hintText"),z=de(l,"hintVisible");const q=(j,B)=>{const I=[];return j.forEach((C,$)=>{const L=Ft(l,C),D=bt(l,C);let V=xf(l,C);r.value===!0&&(V=r.value),i.value===!0&&(V=i.value);const N=Nf(l,C,$)??{},U=`${L}_${$}`,P={...N,key:U,label:L,size:l.size,border:ce(l.border)};V&&(P.disabled=V),l.itemType==="button"?I.push(t.h(F.ElRadioButton,P,{default:()=>[D]})):typeof B=="function"?I.push(t.h(F.ElRadio,P,{default:()=>B(C)})):I.push(t.h(F.ElRadio,P,{default:()=>[D]}))}),I};return()=>{const B={...He(o.attrs),class:g.value,disabled:r.value||i.value,modelValue:u.value,"text-color":l.textColor,fill:l.fill,onChange:f},I=[],C={};o.slots.options?C.default=o.slots.options:C.default=()=>q(c.value,o.slots.text);const $=t.h(F.ElRadioGroup,B,C);I.push($);const L={default:()=>I};o.slots.default&&(L.label=o.slots.default),o.slots.fixedTip&&(L.fixedTip=o.slots.fixedTip);const V={...$e(l,Lo),hintText:R.value,hintVisible:z.value,prop:`${l.prop??o.attrs.name}_item`};return w.value&&(V["appear-listen"]=!0,V.onAppear=p),t.h(a,V,L)}}}}const{componentName:If,create:Vf,scope:Of}=se("radio-item"),$l=Vf(Ef(If,Of,Se));function vt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function wt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Af(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Ff=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`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function Bf(){const e=t.getCurrentInstance();return new Ff(e.proxy)}function _o(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const l=vt(e,n),o=vt(e,a);if(l!==o)return!1;const r=wt(e,n),i=wt(e,a);return r===i}function Mf(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 s=!1;if(a==="text")s=vt(e,i)===r;else if(a==="item")s=_o(e,i,r);else{let u=wt(e,i);u==null&&(u=vt(e,i)),s=u===r}if(s){o.push(i);break}}}),o}function Rf(e){return{text:e,value:e}}function Lf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const Po={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 _f(e,n,a){return{inheritAttrs:!0,props:{...we,...ke,...Po},emits:["change","update:modelValue"],setup(l,o){const r=Ve(t.computed(()=>l.disabled)),i=Ie(t.computed(()=>l.readonly)),{emitEvent:s}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),u=t.ref([]),d=t.ref([]),h=(j,B,I,C=!0)=>{const $=Mf(l,j,B,I);if($===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],C&&(s("update:modelValue",[]),s("change",[]));return}let L=!0;if($.length!==d.value.length)L=!1;else for(let D=0;D<$.length;D++){const V=$[D],N=d.value[D];if(!_o(l,V,N)){L=!1;break}}if(!L){d.value=$;let D=[],V=[];$.forEach(U=>{D.push(wt(l,U)),l.valueType==="text"?V.push(vt(l,U)):l.valueType==="item"?V.push(U):V.push(wt(l,U))}),u.value=D;const N=t.toRaw(V);C&&(s("update:modelValue",N),s("change",N))}},c=t.ref([]),w=Ee(t.computed(()=>l.lazyLoad),"lazyLoad",Le.Near,j=>ce(j)),E=Bf(),y=async(j,B)=>{if(j){const I=await E.load("checkbox",j,B);if(I.length>0)if(typeof I[0]=="string"){let L=I.map(D=>Rf(D));c.value=L}else c.value=I}};t.watch([()=>l.source,()=>l.params],async([j,B])=>{y(j,B)},{immediate:!w.value});let m=!1;const p=()=>{m||(m=!0,y(l.source,l.params))};t.watch([()=>c.value,()=>l.modelValue],([j,B])=>{h(B,l.valueType,j,!1)});const S=e,g=t.computed(()=>({[S]:!0,[`is-${l.direction}`]:!0})),f=j=>{h(j,"value",c.value,!0)};let R=de(l,"hintText"),z=de(l,"hintVisible");const q=(j,B)=>{const I=[];return j.forEach((C,$)=>{const L=wt(l,C),D=vt(l,C);let V=Af(l,C);r.value===!0&&(V=r.value),i.value===!0&&(V=i.value);const N=Lf(l,C,$)??{},U=`${L}_${$}`,P={...N,key:U,class:l.itemClass,label:L,size:l.size,border:ce(l.border)};V&&(P.disabled=V),l.itemType==="button"?I.push(t.h(F.ElCheckboxButton,P,{default:()=>[D]})):typeof B=="function"?I.push(t.h(F.ElCheckbox,P,{default:()=>B(C)})):I.push(t.h(F.ElCheckbox,P,{default:()=>[D]}))}),I};return()=>{const B={...He(o.attrs),class:g.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:f},I=[],C={};o.slots.options?C.default=o.slots.options:C.default=()=>q(c.value,o.slots.text);const $=t.h(F.ElCheckboxGroup,B,C);I.push($);const L={default:()=>I};o.slots.default&&(L.label=o.slots.default),o.slots.fixedTip&&(L.fixedTip=o.slots.fixedTip);const V={...$e(l,Po),hintText:R.value,hintVisible:z.value,prop:`${l.prop??o.attrs.name}_item`};return w.value&&(V["appear-listen"]=!0,V.onAppear=p),t.h(a,V,L)}}}}const{componentName:Pf,create:qf,scope:zf}=se("checkbox-item"),kl=qf(_f(Pf,zf,Se)),qo={modelValue:{type:[Number,String],required:!1}};function jf(e,n,a){return{props:{...we,...ke,...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:s}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),u=de(l,"modelValue",m=>he(m)),d=e,h=t.computed(()=>({[d]:!0})),c=m=>{s("update:modelValue",m),s("change",m)};let w=de(l,"hintText"),E=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:u.value,onChange:c},S={},g=[],f=t.h(F.ElRate,p,S);g.push(f);const R={default:()=>g};o.slots.default&&(R.label=o.slots.default),o.slots.fixedTip&&(R.fixedTip=o.slots.fixedTip);const q={...$e(l,qo),hintText:w.value,hintVisible:E.value,prop:`${l.prop}_item`};return t.h(a,q,R)}}}}const{componentName:Hf,create:Kf,scope:Yf}=se("rate-item"),Dl=Kf(jf(Hf,Yf,Se)),zo={modelValue:{type:[Boolean,String,Number],required:!1}};function Wf(e,n,a){return{props:{...we,...ke,...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:s}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),u=de(l,"modelValue"),d=e,h=t.computed(()=>({[d]:!0})),c=m=>{s("update:modelValue",m),s("change",m)};let w=de(l,"hintText"),E=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:u.value,onChange:c},S={},g=[],f=t.h(F.ElSwitch,p,S);g.push(f);const R={default:()=>g};o.slots.default&&(R.label=o.slots.default),o.slots.fixedTip&&(R.fixedTip=o.slots.fixedTip);const q={...$e(l,zo),hintText:w.value,hintVisible:E.value,prop:`${l.prop}_item`};return t.h(a,q,R)}}}}const{componentName:Uf,create:Gf,scope:Xf}=se("switch-item"),Nl=Gf(Wf(Uf,Xf,Se)),jo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Zf(e,n,a){return{props:{...we,...ke,...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)),s=t.ref(!1),{emitEvent:u}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),d=de(l,"modelValue"),h=e,c=t.computed(()=>({[h]:!0})),w=z=>{u("update:modelValue",z),u("change",z)};let E=de(l,"hintText"),y=t.ref(!1);const m=z=>{let j=z.target.value;s.value=!0,ye(E.value)||(y.value=!0),u("focus",j,z)},p=z=>{setTimeout(()=>{y.value&&(y.value=!1),s.value=!1},0);let j=z.target.value;l.maxLength&&j.length>Number(l.maxLength)&&(j=j.slice(0,Number(l.maxLength))),g.value||u("blur",j,z)},S=()=>{u("clear","")},g=t.ref(!1),f=z=>{g.value=z,u("visible-change",z),z||u("selected")},R=t.ref();return pe({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()}}),()=>{const q={...He(o.attrs),ref:R,class:c.value,disabled:r.value||i.value,modelValue:d.value,"onUpdate:modelValue":w,onClear:S,onFocus:m,onBlur:p,onVisibleChange:f},j={};o.slots.option&&(j.default=o.slots.option);const B=[],I=t.h(F.ElTreeSelect,q,j);B.push(I);const C={default:()=>B};o.slots.default&&(C.label=o.slots.default),o.slots.fixedTip&&(C.fixedTip=o.slots.fixedTip);const L={...$e(l,jo),hintText:E.value,hintVisible:y.value,prop:`${l.prop}_item`};return t.h(a,L,C)}}}}const{componentName:Jf,create:Qf,scope:ed}=se("tree-select-item"),El=Qf(Zf(Jf,ed,Se));class td{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 nd(){const e=t.getCurrentInstance();return new td(e.proxy)}const ld={},ad={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"},od=[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 rd(e,n){return t.openBlock(),t.createElementBlock("svg",ad,od)}const id=De(ld,[["render",rd]]),{componentName:Qg,create:sd,scope:ey}=se("group-setting"),ud={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:"到底部"}},cd=sd({components:{FoxPopover:F.ElPopover,FoxCheckbox:F.ElCheckbox,FoxCheckboxGroup:F.ElCheckboxGroup,FoxButton:F.ElButton,FoxIcon:F.ElIcon,DragIcon:id,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...ud},emits:["change"],setup(e,{emit:n,attrs:a,expose:l}){let o=null;const r=t.ref([]),i=nd(),s=_=>_.length>1,u=()=>{const _=[],O=[...r.value];r.value=O.map((H,A)=>(H.visible!==!1&&_.push(H.prop),{...H,sortIndex:A})),r.value.length===_.length?m.value=!0:_.length>0&&(p.value=!0),f.value=_},d=_=>{let O=null;if(typeof _=="string")O=document.querySelectorAll(`.fox-group[prop="${_}"] > div > .fox-item[prop]`);else if(_&&typeof _=="object"){const H=_.$el??_;typeof H.querySelectorAll=="function"&&(O=H.querySelectorAll(".fox-item[prop]"))}if(!O)return[];const K=[];return O.forEach(H=>{const A=H.querySelector(".label--string");let G="";A&&(G=A.textContent??"");const W=H.getAttribute("prop")??"",b=window.getComputedStyle(H,null).getPropertyValue("display");K.push({label:G,prop:W,sortIndex:0,visible:b!=="none"})}),K},h=()=>{if(!o){const _=d(e.groupRef??e.groupProp);if(_.length===0)return!1;o=_}return!0},c=async(_=!1)=>{const O=await i.load(e.groupProp),K=H=>{if(!H||!o)return;const A=o.map(G=>({...G}));Array.isArray(O)&&O.forEach(G=>{A.some(W=>{if(W.prop===G.prop){const k=W.label;return Object.assign(W,G),W.label=k,!0}return!1})}),r.value=A.sort((G,W)=>G.sortIndex-W.sortIndex),u(),_&&E(!1)};o?K(!0):Gt(h,e.initDelay,5,50,!1,K)},w=()=>{const _=o??[];r.value=_.map(O=>({...O})),u(),E()},E=(_=!0)=>{_&&i.save(e.groupProp,r.value);const O=r.value.map(K=>({...K}));n("change",O)},y=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=t.ref(!1),p=t.ref(!1),S=_=>{const O=[];r.value.forEach(H=>{_&&O.push(H.prop),H.visible=_}),m.value=!1,p.value=!1,r.value.length===O.length?m.value=!0:O.length>0&&(p.value=!0),f.value=O,E()},g=()=>{w()},f=t.ref([]),R=_=>{r.value.forEach(K=>{const H=_.indexOf(K.prop)!==-1;K.visible=H}),m.value=!1,p.value=!1;const O=r.value.length;_.length===O?m.value=!0:_.length>0&&(p.value=!0),E()},z=()=>{c()};t.onMounted(()=>{c(!0)});const q={currentRow:null,index:null},j=_=>_?_.dataset&&_.dataset.role==="row"?_:_.tagName.toLowerCase()!=="body"?(_=_.parentElement,j(_)):null:null,B=_=>{const O=_.currentTarget;O&&O.dataset&&(q.index=O.dataset.index)},I=_=>{q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null),q.index=null},C=_=>{const O=_.currentTarget;_.relatedTarget;const K=j(O);K&&(_.preventDefault(),q.currentRow&&q.currentRow!==K&&q.currentRow.classList.remove("is-dragover"),K.classList.add("is-dragover"),q.currentRow=K)},$=_=>{_.preventDefault(),q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null)},L=_=>{const O=_.currentTarget,K=j(O);if(!K)return;_.preventDefault();const H=Number(q.index),A=Number(K.dataset.index);if(H!==A){if(H<A){const G=r.value[H];r.value.splice(H,1),r.value.splice(A,0,G)}else{const G=r.value[H];r.value.splice(H,1),r.value.splice(A+1,0,G)}u(),E()}},D=_=>{const O=r.value[_];r.value.splice(_,1),r.value.splice(0,0,O),u(),E()},V=_=>{const O=r.value[_];r.value.splice(_,1),r.value.push(O),u(),E()};l({refresh:()=>{o=null,c(!1)}});const N=new Map;let U=null;function P(_){const O=document.createRange();return O.setStart(_,0),O.setEnd(_,_.childNodes.length),O.getBoundingClientRect().width}return{attrs:a,itemPropertyList:r,isDraggble:s,isCheckAll:m,isIndeterminate:p,handleCheckAllChange:S,handleReset:g,checkedValue:f,handleCheckChange:R,onShow:z,onDragStart:B,onDragEnd:I,onDragOver:C,onDragLeave:$,onDrop:L,checkboxLabelStyle:y,toTop:D,toBottom:V,onMouseOverForOverflowText:(_,O,K)=>{const H=_.currentTarget;if(H){const A=Math.floor(H.offsetWidth);if(Math.floor(P(H))>A){let W=N.get(O);if(W){if(W===U)return;Be.hide(W)}W=Be.show(H,K,{type:"text",placement:"top",closeOnClick:!1}),N.set(O,W),U=W}}},onMouseLeaveForOverflowText:(_,O)=>{const K=N.get(O);K&&(Be.hide(K),K===U&&(U=null))},onMouseOverForTip:(_,O)=>{const K=_.currentTarget;K&&(U&&Be.hide(U),U=Be.show(K,O,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:_=>{U&&(Be.hide(U),U=null)}}}}),fd={class:"fox-group-setting"},dd={class:"fox-group-setting__header"},hd={class:"fox-group-setting__body"},md={class:"fox-group-setting__body-list","data-role":"container"},gd=["data-index","draggable"],yd=["onMouseover","onMouseleave"],pd={class:"tools-item"};function bd(e,n,a,l,o,r){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),u=t.resolveComponent("DragIcon"),d=t.resolveComponent("Download"),h=t.resolveComponent("FoxIcon"),c=t.resolveComponent("FoxCheckboxGroup"),w=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(w,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",fd,[t.createElementVNode("div",dd,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=E=>e.isCheckAll=E),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",hd,[t.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=E=>e.checkedValue=E),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",md,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,E=>(t.openBlock(),t.createElementBlock("div",{key:E.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":E.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:E.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,E.prop,E.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,E.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(E.label),45,yd)]),_:2},1032,["label"]),t.createElementVNode("div",pd,[t.createVNode(h,{onClick:y=>e.toTop(E.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(E.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,gd))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Il=De(cd,[["render",bd]]),gn={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 vd(e,n,a,l="value"){for(let o=0;o<n.length;o++){let r=n[o];if(l==="text"){if(yn(e,r)===a)return o}else if(l==="item"){if(_e(a,r))return o}else if(Ko(e,r)===a)return o}return-1}function yn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ho(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Ko(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function wd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Sd(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Td=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o,r,i,s){if(Array.isArray(a)){let d=a;typeof s=="function"&&(d=d.filter(s));let h=(l-1)*o,c=h+o;c>d.length&&(c=d.length);const w=d.slice(h,c);return{totalSize:d.length,page:w}}if(typeof a=="function")return await Reflect.apply(a,null,[l,o,r,i]);const u=Fe(this.proxy,n);return u===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Re(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(u,null,[a,l,o,r]))}};function xd(){const e=t.getCurrentInstance();return new Td(e.proxy)}function Cd(e,n,a,l,o,r,i,s,u,d,h){return{props:{...gn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,{emit:w,slots:E}){const{toLocaleRefs:y}=ve.useFoxI18n(n),m=y(c,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),p=xd(),S=t.ref([]),g=t.ref(0),f=t.ref(""),R=t.shallowRef(null),z=t.computed(()=>{const b={};return c.params&&Object.assign(b,c.params),ye(f.value)||(b[`${c.searchKey}`]=f.value),R.value&&Object.assign(b,R.value),b});let q=!0;const j=async(b,x,M)=>{try{if(I.value===!1)return;let X=null;ye(f.value)||(X=T=>{const Y=yn(c,T);if(typeof Y=="string"&&Y.includes(f.value))return!0;const ee=Ho(c,T);return!!(typeof ee=="string"&&ee.includes(f.value))});const ne=await p.load("actionsheet",b,x,M,z.value,q,X??void 0);q=!1,Array.isArray(ne)?(S.value=ne,g.value=1,I.value=!1):!Array.isArray(ne.page)||ne.page.length===0?(console.warn("[FoxUI] can not load more data"),I.value=!1):(Reflect.apply([].push,S.value,ne.page),g.value=Math.ceil(S.value.length/c.pageSize),(ne.totalSize&&S.value.length>=ne.totalSize||M<ne.page.length)&&(I.value=!1)),B.value=!1}catch(X){console.error("[FoxUI] ActionSheet load more data fail",X),I.value=!0,g.value=0,S.value=[]}setTimeout(()=>{w("loaded-data")},250)},B=t.ref(!1),I=t.ref(!0),C=async()=>{if(!c.source){B.value=!1;return}await j(c.source,g.value+1,c.pageSize)};t.watch(()=>f.value,(b,x)=>{ye(b)&&!ye(x)&&C()}),t.watch([()=>c.source,()=>c.pageSize,()=>c.params],async([b,x,M])=>{c.source&&C()},{immediate:!0});const $=t.computed(()=>!c.multiple&&c.isAutoBackFill),L=t.ref([]);let D=null;const V=t.ref(c.visible);t.watch(()=>c.visible,b=>{V.value!==b&&(V.value=b),b?D=[...L.value]:D=null});const N=(b,x)=>{const M=[];return Array.isArray(b)||(b=[b]),b.forEach(X=>{let ne=vd(c,x,X,c.valueType);ne!==-1&&M.push(ne)}),_e(M,L.value)?!1:(L.value=M,!0)};t.watch([()=>c.modelValue,()=>S.value],([b,x],[M,X])=>{if(N(b,x)){const T=U();P(T)}},{deep:!0});const U=()=>{const b=[],x=[],M=[];for(let Y of L.value){const ee=S.value[Y];x.push(ee);const ae=yn(c,ee);if(M.push(ae),c.valueType==="item")b.push(ee);else if(c.valueType==="text")b.push(ae);else{const te=Ko(c,ee);b.push(te)}}let X=null,ne=null,T=null;return c.multiple?(X=b,ne=M,T=x):(X=b[0]??null,ne=M[0]??null,T=x[0]??null),{value:X,text:ne,item:T}},P=b=>{w("update:modelValue",b.value),w("update:text",b.text),w("change",b.value,b.item,b.text)},Q=()=>{D&&(L.value=D)},Z=b=>{const x=L.value.indexOf(b);c.multiple?x===-1?L.value.push(b):L.value.splice(x,1):x===-1?L.value=[b]:L.value=[],($.value||!c.poppable&&!c.showFooter)&&_()},J=b=>{V.value=b,w("update:visible",b)},le=()=>{const b=()=>{Q(),J(!1)},x=c.beforeMethod??c.beforeClose;if(typeof x=="function"){const M=x("close");zt(M)?M.then(X=>{X!==!1&&b()}).catch(()=>{b()}):M!==!1&&b()}else b()},_=()=>{const b=U(),x=()=>{P(b),J(!1)},M=c.beforeMethod??c.beforeClose;if(typeof M=="function"){const X=M("confirm",b.value,b.item,b.text);zt(X)?X.then(ne=>{ne!==!1&&x()}).catch(()=>{x()}):X!==!1&&x()}else x()},O=()=>{I.value=!0,g.value=0,S.value=[],c.source&&C()},K=()=>{let b=m.title.value??"";E.title&&(b=E.title());const x=t.h("view",{class:["fox-actionsheet__header-title"]},[b]),M=t.h(u,{class:["fox-actionsheet__header-icon"],onClick:le});return t.h("view",{class:["fox-actionsheet__header"]},[x,M])},H=()=>{let b=null;if(E.search)b=E.search();else{const x={onSearch:O,placeholder:m.seachPlaceholder.value,disabled:c.disabled,modelValue:f.value,"onUpdate:modelValue":M=>{f.value=M}};b=t.h(r,x,{leftin:()=>t.h(d)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[b])},A=(b,x,M,X,ne)=>{if(E.optionLabel)return E.optionLabel({text:b,checked:x,disabled:M,subText:X,item:ne});const T=[],Y=t.h("view",{class:"fox-actionsheet__list-item-text"},[b]);if(T.push(Y),X){const ee=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[X]);T.push(ee)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},T)},G=(b,x,M,X)=>{if(E.optionIcon)return E.optionIcon({checked:b,disabled:x,iconSize:M,item:X});if(b){if(E.checkedIcon)return E.checkedIcon({disabled:x,item:X});{const ne=c.checkedIcon??s;return t.h(ne,{width:M,height:M,class:["fox-actionsheet__list-item-icon"]})}}else{if(E.icon)return E.icon({disabled:x,item:X});{const ne=c.icon??i;return t.h(ne,{width:M,height:M,class:["fox-actionsheet__list-item-icon"]})}}},W=()=>{const b=[];for(let x=0;x<S.value.length;x++){const M=S.value[x],X=yn(c,M),ne=Ho(c,M),T=["fox-actionsheet__list-item"],Y={};let ee=wd(c,M),ae=c.iconSize?me(c.iconSize):null;const te=Sd(c,M,x);te&&(ee=ee||te.disabled,te.class&&T.push(te.class),te.style&&Object.assign(Y,te.style)),ee=!!(c.disabled||ee);const oe=L.value.includes(x);ee&&T.push("is-disabled"),oe&&T.push("is-checked");const ie={class:T,style:Y,key:`${x}`,onClick:()=>{ee||Z(x)}};let ue=[];if(E.option)ue.push(E.option({item:M,checked:oe,disabled:ee}));else{const ge=A(X,oe,ee,ne,M);ue.push(ge);const nt=G(oe,ee,ae,M);ue.push(nt)}const be=t.h("view",ie,ue);b.push(be)}return b},k=()=>{let b=[];if(E.buttons)b=E.buttons();else{const M=t.h(o,{type:"primary",block:"block",onClick:_,disabled:c.disabled},{default:()=>m.confirmText.value});b.push(M)}return t.h("view",{class:"fox-actionsheet__footer"},[b])};return pe({search:async(b=null,x=!0)=>{R.value=b&&t.toRaw(b),t.triggerRef(R),x&&(I.value=!0,g.value=0,S.value=[]),t.nextTick(()=>{C()})},clear:()=>{I.value=!0,g.value=0,S.value=[]},confirm:()=>{_()},cancel:()=>{le()}}),()=>{const b=[];if(c.showHeader){const ae=K();b.push(ae)}if(c.showSearchbar){const ae=H();b.push(ae)}let x=null;if(E.content)x=E.content();else{const ae=W(),te={hasMore:I.value,loadText:m.loadText.value,loadMoreText:m.loadMoreText.value,modelValue:B.value,"onUpdate:modelValue":oe=>{B.value=oe},onLoadMore:C};x=t.h(l,te,{default:()=>ae})}const M={};c.optionsHeight&&(M.height=c.optionsHeight);const X={"fox-actionsheet__list":!0};c.poppable||(X["fox-actionsheet__list--inner"]=!0);const ne=t.h("view",{class:X,style:M},[x]);if(b.push(ne),c.showFooter&&!$.value){const ae=k();b.push(ae)}const T=t.h("view",{class:"fox-actionsheet"},b);if(!c.poppable)return T;const Y=["fox-actionsheet__popup"];c.popClass&&Y.push(c.popClass);const ee={popClass:Y.join(" "),visible:V.value,closeable:!1,"onUpdate:visible":J,position:c.position,round:"round",onClickOverlay:le,closeOnClickOverlay:c.closeOnClickOverlay};return t.h(a,ee,{default:()=>T})}}}}const{componentName:$d,create:kd,scope:Dd}=se("actionsheet-pane"),pn=kd(Cd($d,Dd,!1)),Yo={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 Nd(e,n,a,l,o){return{props:{...we,...ke,...Yo,...gn},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(r,i){const s=Ve(t.computed(()=>r.disabled)),u=Ie(t.computed(()=>r.readonly)),{emitEvent:d}=xe({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}=ve.useFoxI18n(n),c=h(r,["placeholder"]),w=t.ref(!1),E=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`]:s.value})),g=Ee(t.computed(()=>r.textAlign),"textAlign"),f=t.computed(()=>{const N={};return g.value&&(N["text-align"]=g.value),N}),R=t.ref(!1),z=()=>{R.value=!0},q=N=>{R.value=N},j=N=>{E.value=N,d("update:modelValue",N)},B=(N,U)=>{d("change",N,U)},I=N=>{let P=N.target.value;w.value=!0,d("focus",P,N)},C=N=>{setTimeout(()=>{w.value=!1},0);let P=N.target.value;r.maxLength&&P.length>Number(r.maxLength)&&(P=P.slice(0,Number(r.maxLength))),d("blur",P,N)},$=N=>{y.value=N,d("update:text",N)},L=t.computed(()=>ze(r.unit)>0),D=t.ref(),V=t.ref(null);return pe({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()},search:N=>{V.value&&V.value.search(N)},clear:()=>{V.value&&V.value.clear},confirm:N=>{V.value&&V.value.confirm()},cancel:()=>{V.value&&V.value.cancel()}}),()=>{const N={ref:D,class:S.value,style:f.value,type:"text",maxlength:r.maxLength,placeholder:c.placeholder.value,readonly:!0,value:m.value,onClick:z,onFocus:I,onBlur:C},U={};i.slots.prepend&&(U.prepend=i.slots.prepend),i.slots.append&&(U.append=i.slots.append),i.slots.prefix&&(U.prefix=i.slots.prefix),i.slots.suffix?U.suffix=i.slots.suffix:L.value?U.suffix=()=>[r.unit]:U.suffix=()=>t.h(F.ElIcon,{},{default:()=>t.h(Ce.ArrowDown)});const P=[],Q=t.h(F.ElInput,N,U);P.push(Q);const Z={default:()=>P};Z.label=i.slots.default,Z.prepend=i.slots.prepend,Z.append=i.slots.append,Z.fixedPreTip=i.slots.fixedPreTip,Z.fixedTip=i.slots.fixedTip;const J=Ct(r,gn);J.ref=V,J.class=r.actionsheetProps,J.disabled=s.value||u.value,J.visible=R.value,J["onUpdate:visible"]=q,J.modelValue=E.value,J["onUpdate:modelValue"]=j,J.text=y.value,J["onUpdate:text"]=$,J.onChange=B,J.poppable=!0;const le={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,J,le);Z.hide=()=>[_];const O=$e(r,Yo,gn);return t.h(a,{...O,prop:`${r.prop}_item`},Z)}}}}const{componentName:Ed,create:Id,scope:Vd}=se("actionsheet-item"),Vl=Id(Nd(Ed,Vd,Se,pn)),Wo={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}},Ol={...cl,...Wo,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 Od(e){return e===window}const Al=e=>{const n=t.unref(e);if(Od(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}},Uo=10;function Go(e,n){return e>n&&e>Uo?"horizontal":n>e&&n>Uo?"vertical":""}function Fl(){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",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 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=Go(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:a,state:e}}function Xo(){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),s=t.ref(0),u=t.ref(0),d=t.ref(0),h=t.ref(""),c=()=>h.value==="vertical",w=()=>h.value==="horizontal",E=()=>{i.value=0,s.value=0,u.value=0,d.value=0,h.value="",a.value=0};return{move:p=>{if(p.touches){const f=p.touches[0];i.value=f.clientX-e.value,s.value=f.clientY-n.value,o.value=f.clientX,r.value=f.clientY}else{const g=p;i.value=g.clientX-e.value,s.value=g.clientY-n.value,o.value=g.clientX,r.value=g.clientY}u.value=Math.abs(i.value),d.value=Math.abs(s.value),l.value=Date.now()-a.value,h.value||(h.value=Go(u.value,d.value))},start:p=>{if(E(),p.touches){const f=p.touches[0];e.value=f.clientX,n.value=f.clientY}else{const g=p;e.value=g.clientX,n.value=g.clientY}a.value=Date.now()},reset:E,startX:e,startY:n,startTime:a,duration:l,moveX:o,moveY:r,deltaX:i,deltaY:s,offsetX:u,offsetY:d,direction:h,isVertical:c,isHorizontal:w}}let Zo=36;function Ad(){return Zo}function Fd(e){Zo=e}function Ye(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ml(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Bd(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Jo(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Md=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`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function Rd(){const e=t.getCurrentInstance();return new Md(e.proxy)}function Qo(e,n,a){const l=Ye(e,n),o=Ye(e,a);if(l!==o)return!1;const r=st(e,n),i=st(e,a);return r===i}function Ld(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 s=n[i];let d=a[i].findIndex(h=>{if(r==="text")return Ye(e,h)===s;if(r==="value"){let c=st(e,h);return c==null&&(c=Ye(e,h)),c===s}else if(r==="item")return Qo(e,h,s)});if(d==-1)break;o.push(d)}else{let i=a[0];for(let s=0;s<n.length;s++){const u=n[s];let d=i.findIndex(c=>{if(r==="text")return Ye(e,c)===u;if(r==="value"){let w=st(e,c);return w==null&&(w=Ye(e,c)),w===u}else if(r==="item")return Qo(e,c,u)});if(d==-1)break;o.push(d);const h=Ml(e,i[d]);if(!Array.isArray(h))break;i=h}}return o}function er(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 s=a[i];let u=n[i];u<0&&u>=s.length&&(u=0);const d=s[u],h=Ye(e,d);if(o.texts.push(h),o.items.push(d),r==="text")o.values.push(h);else if(r==="value"){let c=st(e,d);c==null&&(c=h),o.values.push(c)}else o.values.push(d)}else{let i=a[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=Ye(e,d),c=Object.assign({},d);if(c.children=null,o.texts.push(h),o.items.push(c),r==="text")o.values.push(h);else if(r==="value"){let w=st(e,d);w==null&&(w=h),o.values.push(w)}else o.values.push(c);if(!Array.isArray(d.children))break;i=d.children}}return o}function tr(e){return{text:e,value:e}}const _d=15,Pd=300,qd=200,{create:zd}=se("picker-column");function jd(e){e.stopPropagation()}function Hd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&jd(e)}const Kd=zd({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},...Wo},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=B=>B>=c.currIndex+8||B<=c.currIndex-8,s=t.computed(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${r.value}px`})),u=B=>`transform: rotate3d(1, 0, 0, ${-c.rotation*B}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+r.value}px, 0)`})),h=t.ref(null),c=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),w=t.toRef(e,"source"),E=B=>Ye(e,B),y=B=>st(e,B),m=Xo(),p=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},S=(B,I=!1,C=!1)=>{if(c.currIndex=B,I){const $=()=>{c.moving=!1,n("update:modelValue",B),n("change",B)};C?c.transitionEndTrigger=$:$()}},g=(B,I,C)=>{let $=B+c.startDistance;if(I==="end"){const L=-(w.value.length-1)*e.itemHeight;$<L&&($=L,(!C||C<=0)&&(C=e.swipeDuration)),$>0&&($=0,(!C||C<=0)&&(C=e.swipeDuration));let D=Math.abs(Math.round(-$/e.itemHeight));const V=-D*e.itemHeight,N=`${(D+1)*c.rotation}deg`,U=C?C>0:!1;S(D,!0,U),f(V,I,C,N)}else{let L=(-$/e.itemHeight+1)*c.rotation;const D=(w.value.length+1)*c.rotation,V=0;if(L=Math.min(Math.max(L,V),D),e.threeDimensional&&(L<V||L>D))return;f($,null,void 0,`${L}deg`)}},f=(B=0,I,C=qd,$)=>{I==="end"?c.scrollTime=C:c.scrollTime=0,c.deg=$,c.scrollDistance=B},R=(B,I)=>(B=Math.abs(B/I)/.003*(B<0?-1:1),B),z=B=>{if(!e.readonly){if(c.moving){const I=h.value,{transform:C}=window.getComputedStyle(I);c.scrollDistance=+C.slice(7,C.length-1).split(", ")[5]}c.startDistance=c.scrollDistance,m.start(B),c.transitionEndTrigger=null}},q=B=>{e.readonly||(c.moving=!0,m.move(B),m.isVertical()&&(c.moving=!0,Hd(B,!0)),g(m.deltaY.value,"",0))},j=()=>{if(e.readonly)return;const B=m.deltaY.value,I=m.duration.value;if(I<Pd&&Math.abs(B)>_d){const $=R(B,I);g($,"end",e.swipeDuration)}else g(B,"end",0)};return t.watch(()=>e.modelValue,B=>{if(c.currIndex!==B){c.currIndex=B;const I=-B*e.itemHeight;g(I)}}),t.onMounted(()=>{const B=-e.modelValue*e.itemHeight;g(B)}),{classes:a,styles:l,contentClasses:o,source:w,itemText:E,itemValue:y,...t.toRefs(c),roller:h,getItemText:Ye,onTouchStart:z,onTouchMove:q,onTouchEnd:j,isHidden:i,setRollerStyle:u,touchRollerStyle:s,touchTileStyle:d,stopMomentum:p}}}),Yd={key:1,class:"fox-picker__item-tile"};function Wd(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,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",Yd,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Ud=De(Kd,[["render",Wd]]),{create:Gd,componentName:Xd,scope:Zd}=se("picker"),Jd=Gd({components:{PickerColumn:Ud,Popup:gt},props:{...Ol},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:l}=ve.useFoxI18n(Zd),o=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(Ad());t.watch(()=>e.visible,C=>{C&&i.value<=0&&setTimeout(()=>{if(r.value){const $=Al(r.value);i.value=$.height,Fd(i.value)}},50)});const s=t.computed(()=>({[Xd]:!0})),u=Rd(),d=t.ref("singleColumn");let h=t.ref([]);t.watch([()=>e.source,()=>e.params],async([C,$])=>{if(C){let L=await u.load("select",C,$);if(L.length>0){let D=L[0];if(Array.isArray(D)){if(typeof D[0]=="string"){let V=L,N=[];V.forEach(U=>{let P=U.map(Q=>tr(Q));N.push(P)}),h.value=N}else h.value=L;d.value="multipleColumn"}else if(typeof D=="string"){let V=L,N=[],U=V.map(P=>tr(P));N.push(U),h.value=N,d.value="singleColumn"}else{const V=Ml(e,D);Array.isArray(V)?(d.value="cascade",h.value=[L]):(d.value="singleColumn",h.value=[L])}}else h.value=[]}},{immediate:!0});const c=t.ref([]),w=t.ref(e.modelValue),E=t.ref([]),y=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([C,$])=>{let L=Ld(e,C,$,d.value);if(!_e(L,y.value)){y.value=L;let D=er(e,L,$,d.value);D&&(c.value=D.texts,n("update:text",c.value))}});const m=t.ref(e.visible);t.watch(()=>e.visible,C=>{m.value=C});const p=C=>{let $=Jo(e,C);return Re($)?$.defaultIndex??0:0},S=C=>{if(e.readonly===!0)return!0;let $=Jo(e,C);return Re($)?$.readonly??!1:!1},g=(C,$)=>{let L=y.value;L[C]=$;for(let V=0;V<C;V++)L[V]==null&&(L[V]=p(V));if(d.value==="cascade")for(let V=C+1;V<R.value.length;V++){let N=p(V);V<L.length?L[V]=N:L.push(N)}else for(let V=L.length;V<R.value.length;V++){let N=p(V);L.push(N)}y.value=L;let D=er(e,L,h.value,d.value);D&&(c.value=D.texts,w.value=D.values,E.value=D.items)},f=C=>C<y.value.length?y.value[C]:p(C),R=t.computed(()=>{if(h.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return h.value;let C=[],$=0,L=h.value[0],D=0;for(;;){let V=L.map(P=>{let Q=Object.assign({},P);return Bd(e,Q,null),Q});C.push(V),$>=y.value.length?D=0:D=y.value[$],(D<0||D>=L.length)&&(D=0);let N=L[D];const U=Ml(e,N);if(!Array.isArray(U))break;L=U,$++}return C}),z=t.computed(()=>he(+e.visibleItemCount-1)/2*i.value);return{...o,pickerLineRef:r,classes:s,columns:R,dataType:d,show:m,itemHeight:i,top:z,isReadonly:S,getIndex:f,change:(C,$)=>{g(C,$)},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 $=w.value.length>0?w.value[0]:"",L=E.value.length>0?E.value[0]:null;e.readonly||(n("update:modelValue",$),n("update:text",c.value),n("change",$,L)),n("confirm",$)}else e.readonly||(n("update:modelValue",w.value),n("update:text",c.value),n("change",w.value,E.value)),n("confirm",w.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)}}}}),Qd={class:"fox-picker__bar"},eh={class:"fox-picker__title"},th={class:"fox-picker__bar__action"},nh={class:"fox-picker__column"};function lh(e,n,a,l,o,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",Qd,[t.createElementVNode("view",eh,t.toDisplayString(e.title),1),t.createElementVNode("view",th,[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",nh,[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,{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,["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 Bt=De(Jd,[["render",lh]]),nr={...Ol,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 ah(e,n,a){return{props:{...we,...ke,...nr},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:s}=xe({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(n),d=u(l,["placeholder"]),h=t.ref(!1),c=e,w=t.computed(()=>({[c]:!0})),E=Ee(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>({textAlign:E.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),f=()=>{g.value=!0},R=N=>{g.value=N},z=N=>{m.value=N,s("update:modelValue",N)},q=N=>{p.value=N,Array.isArray(N)&&N.length===0?s("update:text",N[0]):s("update:text",N)},j=(N,U)=>{s("change",N,U)};let B=de(l,"hintText"),I=t.ref(!1);const C=N=>{let P=N.target.value;h.value=!0,ye(B.value)||(I.value=!0),s("focus",P,N)},$=N=>{setTimeout(()=>{I.value&&(I.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))),g.value?setTimeout(()=>{s("blur",P,N)},50):s("blur",P,N)},L=()=>{s("clear","")},D=t.computed(()=>ze(l.unit)>0),V=t.ref();return pe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()}}),()=>{const N={class:w.value,style:y.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,clearable:ce(l.clearable),readonly:!0,value:S.value,onClick:f,onFocus:C,onBlur:$},U={};o.slots.prepend&&(U.prepend=o.slots.prepend),o.slots.append&&(U.append=o.slots.append),o.slots.prefix&&(U.prefix=o.slots.prefix),o.slots.suffix?U.suffix=o.slots.suffix:D.value?U.suffix=()=>[l.unit]:U.suffix=()=>t.h(F.ElIcon,{},{default:()=>t.h(Ce.ArrowDown)});const P=[],Q=t.h(F.ElInput,N,U);P.push(Q);const Z={default:()=>P};o.slots.default&&(Z.label=o.slots.default),o.slots.fixedTip&&(Z.fixedTip=o.slots.fixedTip);const J=Ct(l,Ol);J.disabled=!1,J.readonly=r.value||i.value,J.visible=g.value,J["onUpdate:visible"]=R,J.modelValue=m.value,J["onUpdate:modelValue"]=z,J.text=p.value,J["onUpdate:text"]=q,J.onClear=L,J.onChange=j;const le=t.h(Bt,J);Z.hide=()=>[le];const O={...$e(l,nr),hintText:B.value,hintVisible:I.value,prop:`${l.prop??o.attrs.name}_item`};return t.h(a,O,Z)}}}}const{componentName:oh,create:rh,scope:ih}=se("picker-item"),Rl=rh(ah(oh,ih,Se)),sh={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}},lr=(e,n)=>n[e.textKey],Mt=(e,n)=>n[e.valueKey],uh=(e,n)=>n[e.visibleKey],ar=(e,n)=>n[e.disabledKey],ch=(e,n)=>{const a=n[e.doitKey];return ce(a)},fh=(e,n)=>{const a=n[e.numKey];return a==null?null:he(n[a])},or=(e,n,a)=>{const l=e.itemOptions;return typeof l=="function"?l(n,a):l||null};function dh(e,n,a,l=!1){return{props:{...sh},emits:["update:modelValue","change"],setup(o,{slots:r,emit:i}){const s=t.computed(()=>{const _={};return _[`${e}`]=!0,_}),u=t.computed(()=>{const _={};return _[`${e}__titles`]=!0,_[`${o.direction}`]=!0,o.align==="left"&&(_.left=!0),o.scroll===!0&&(_.scrollable=!0),o.shape&&(_[`${o.shape}`]=!0),_}),d=t.computed(()=>({})),h=t.computed(()=>{if(!o.gutter)return 0;const _=me(o.gutter);return _<=0?0:_}),c=t.ref(o.modelValue);t.watch(()=>o.modelValue,_=>{c.value!==_&&(c.value=_,P(!1))});const w=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),E=t.computed(()=>{const _={};return m.value||(_.display="none"),_}),y=t.ref(),m=t.ref(!1),p=()=>{const _=!m.value;S(_)},S=_=>{const O=_;O?(m.value=O,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.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(),f=t.ref([]),R=(_,O)=>{f.value[O]=_},z=_=>O=>{R(O,_)},q=(_,O)=>{const K=g.value,H=f.value;if(!K||!H||!H[_])return;const A=H[_];let G=0;o.direction==="vertical"?G=A.offsetTop-(K.offsetHeight-A.offsetHeight)/2:G=A.offsetLeft-(K.offsetWidth-A.offsetWidth)/2,j(K,G,O?0:.3,o.direction)},j=(_,O,K,H)=>{let A=0;const G=H==="horizontal"?_.scrollLeft:_.scrollTop,W=K===0?1:Math.round(K*1e3/16);function k(){H==="horizontal"?_.scrollLeft+=(O-G)/W:_.scrollTop+=(O-G)/W,++A<W&&Mn(k)}k()},B=(_,O)=>{const K=Mt(o,_),H={};return H[`${e}__titles-item`]=!0,H.disabled=ar(o,_),H.active=K===c.value,o.shape&&(H[`${o.shape}`]=!0),o.ellipsis&&(H.ellipsis=!0),O&&(O.class&&(H[`${O.class}`]=!0),O.disabled===!0&&(H.disabled=O.disabled)),H},I=(_,O)=>{const K={};if(h.value>0){const H=Math.abs(h.value/2);o.direction==="vertical"?(K["margin-top"]=`${H}px`,K["margin-bottom"]=`${H}px`):(K["margin-left"]=`${H}px`,K["margin-right"]=`${H}px`)}return O&&O.style&&Object.assign(K,O.style),K},C=(_,O)=>`${Mt(o,_)??O}`,$=(_,O)=>{const K=Mt(o,_),H={};H[`${e}__popup-item`]=!0,H.disabled=ar(o,_),H.active=K===c.value,o.shape&&(H[`${o.shape}`]=!0);const A=or(o,_,O);return A&&A.disabled===!0&&(H.disabled=A.disabled),H},L=t.computed(()=>(o.data??[]).filter(O=>uh(o,O)!==!1)),D=(_,O)=>{const K=Mt(o,_);if(c.value==K)return;const H=()=>{c.value=K,o.scroll&&q(O,!1),i("update:modelValue",K),i("change",_,O)};if(typeof o.beforeChange=="function"){const A=o.beforeChange(_,O);zt(A)?A.then(G=>{G!==!1&&H()}).catch(()=>{H()}):A!==!1&&H()}else H()},V=(_,O)=>function(){D(_,O)},N=(_,O)=>{D(_,O),S(!1)},U=(_,O)=>function(){N(_,O)},P=_=>{if(!Array.isArray(o.data)||!o.scroll)return;const O=o.data.findIndex(K=>Mt(o,K)===c.value);O!==-1&&q(O,_)};t.watch(()=>o.data,()=>{setTimeout(P,0)}),t.onMounted(()=>{P(!0)});const Q=(_,O)=>{if(r.item)return r.item({item:_,index:O});const K=or(o,_,O),H=[];if(r.text){const k=r.text({item:_,index:O});H.push(k)}else{const k=[];if(K?.doit===!0||ch(o,_)){const X={class:[`${e}__titles-item-tip`,"doit"]},ne=t.h("view",X);k.push(ne)}const b=K?.num??fh(o,_);if(b){let X="";const ne=he(b);ne>=100?X="99+":X=`${ne}`;const T={class:[`${e}__titles-item-tip`,"num"]},Y=t.h("view",T,[X]);k.push(Y)}const x={class:`${e}__titles-item-text`};k.push(lr(o,_));const M=t.h("view",x,k);H.push(M)}const A={class:`${e}__titles-item-line`},G=t.h("view",A);H.push(G);const W={ref:z(O),class:B(_,K),style:I(_,K),key:C(_,O),onClick:V(_,O)};return t.h("view",W,H)},Z=()=>{const _=r.default?r.default():[];if(_.length===0)for(let K=0;K<L.value.length;K++){const H=L.value[K],A=Q(H,K);_.push(A)}const O={ref:g,class:u.value,style:d.value};return t.h("view",O,_)},J=()=>{let _=null;r.navigation?_=r.navigation():_=t.h(a);const O={class:`${e}__navigation`,onClick:p};return t.h("view",O,[_])},le=()=>{const _=[];for(let K=0;K<L.value.length;K++){const H=L.value[K];let A=null;r.popupItem?A=r.popupItem({item:H,index:K}):A=lr(o,H);const G={class:$(H,K),key:C(H,K),onClick:U(H,K)},W=t.h("view",G,[A]);_.push(W)}const O={class:w.value,style:E.value};return t.h("view",O,_)};return()=>{const _=[],O=Z();if(_.push(O),o.showQuickNavigation){const H=J();_.push(H);const A=le();_.push(A)}const K={class:s.value};return t.h("view",K,_)}}}}const{create:hh,componentName:mh,scope:gh}=se("tabs-bar"),bn=hh(dh(mh,gh,iu,!1)),rr=Symbol("TabsStatesKey"),yh={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function ph(e,n,a=!1){return{props:{...yh},emits:["update:modelValue","change"],setup(l,{emit:o,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:m=>{const p={name:m};s.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?s.current.value?i.value[p].loaded??!1:p===0:!1}};t.provide(rr,s);const u=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])=>{s.current.value!==m&&(s.current.value=m??"",u(m??"")),s.direction.value!==p&&(s.direction.value=p)});const d=t.ref(null),h=t.ref(null),c=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let w=!0;const E=t.computed(()=>{const m={},p=i.value.length;if(p<=0)return m;const S=i.value.findIndex(g=>g.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(m.height=`${p*s.tabHeight.value}px`,S!==-1&&(m.transform=`translate(0, -${S*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(m.width=`${p*s.tabWidth.value}px`,S!==-1&&(m.transform=`translate(-${S*s.tabWidth.value}px, 0)`)),w&&(w=!1,m.transition="transform 0s ease"),m});let y=null;return t.onMounted(()=>{if(!d.value)return;const m=()=>{const p=tn(d.value);s.tabWidth.value=p.width,s.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:E.value,ref:h},p=t.h("view",m,[r?.default?.()]),S={class:c.value,ref:d};return t.h("view",S,[p])}}}}const{create:bh,componentName:vh,scope:wh}=se("tabs-container"),vn=bh(ph(vh,wh,!1)),Sh={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Th(e,n,a){return{props:{...Sh},setup(l,{emit:o,slots:r}){const i=t.inject(rr);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 c={class:`${e}__empty-icon`},w=l.emptyIcon??a,E=t.h(w,c),y={class:`${e}__empty-text`},m=l.emptyText??"Loading",p=t.h("view",y,[m]),S={class:`${e}__empty`},g=t.h("view",S,[E,p]);d.push(g)}const h={class:`${e}`,style:s.value};return t.h("view",h,d)}}}}const{create:xh,componentName:Ch,scope:$h}=se("tabs-pane"),wn=xh(Th(Ch,$h,dn)),kh={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 Dh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ir(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function sr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Nh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Ll(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function ur(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function cr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function _l(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}class Eh{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`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(o,null,[a,l]))}}function Ih(){const e=t.getCurrentInstance();return new Eh(e.proxy)}function Vh(e,n,a,l){return{props:{...kh},emits:["update:modelValue","change","loaded-data"],setup(o,{slots:r,emit:i}){const s=e,u=Ih(),d=t.ref([]),h=t.computed(()=>d.value.filter(O=>Nh(o,O)!==!1)),c=t.ref(-1),w=()=>{const O=o.modelValue,K=h.value.findIndex(H=>ir(o,H)===O);c.value!==K&&(c.value=K,o.scroll&&le(K,!1))};t.watch([()=>o.modelValue,h],()=>{w()});const E=O=>c.value===O,y=O=>{if(O<0&&O>=h.value.length)return!1;const K=h.value[O],A=(_l(o,K,O)??{}).status??Ll(o,K);return E(O)||A},m=t.computed(()=>{const O={[s]:!0};return o.mode?O[`is-${o.mode}`]=!0:o.direction&&(O[`is-${o.direction}`]=!0),o.scroll&&(O["is-scroll"]=!0),O}),p=t.computed(()=>({})),S=(O,K,H,A,G)=>{const W={[`${s}__step`]:!0};return G&&(W[`${G}`]=!0),W[`${g.value}`]=!0,A&&(W["is-doit"]=!0),O===c.value?W["is-active"]=!0:K==="done"?W["is-done"]=!0:K==="error"?W["is-error"]=!0:K==="half"?W["is-half"]=!0:H?W["is-disabled"]=!0:W["is-normal"]=!0,W},g=t.computed(()=>{if(o.mode==="simple")return"start";let O=o.align;return O||(o.direction==="vertical"?O="start":O="center"),O}),f=(O,K={})=>{const H={...K};return g.value==="start"&&O===h.value.length-1?H.flex="0 0 auto":o.step?o.direction==="vertical"?H.height=o.step:H.width=o.step:H.flex="1 1 100%",H},R=(O,K)=>{let H={};if(K<h.value.length-1){const A=K+1;y(K)&&y(A)?o.direction==="vertical"?H.height="100%":H.width="100%":H.opacity="0"}return H},z=O=>h.value.length-1===O,q=(O,K)=>{if(o.clickNavigatePolicy==="disabled"||(o.clickNavigatePolicy==="only-back"||o.clickNavigatePolicy==="only-back-reset")&&K>c.value||c.value===K)return;const H=c.value,A=K;c.value=K,o.scroll&&le(K,!1);const G=ir(o,O);i("update:modelValue",G);const W={fromIndex:H,currentIndex:A,item:O,items:h.value,clickNavigatePolicy:o.clickNavigatePolicy};i("change",G,W)},j=t.ref(!0),B=async(O,K)=>{try{const H=await u.load("stesbar",O,K);Array.isArray(H)&&(d.value=H),j.value=!1}catch(H){console.error("[FoxUI] Load StepsBar Data Fail",H),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>o.data,()=>o.params],async([O,K])=>{O&&B(O,K)},{immediate:!0});const I=(O,K,H,A,G)=>{let W=null;if(r.icon)W=r.icon({item:O,index:K,status:A});else if(A==="done"){const b={};o.iconSize&&(b.width=o.iconSize,b.height=o.iconSize);const x=o.icon??a;W=t.h(x,b)}else{const b=H??`${K+1}`;W=t.h("span",{},[b])}const k={class:"fox-steps-bar__icon",onClick:()=>{G||q(O,K)}};return t.h("view",k,[W])},C=(O,K,H)=>{const A=t.h("i",{class:"fox-steps-bar__line-inner",style:R(O,K)});return t.h("view",{class:"fox-steps-bar__line"},[A])},$=()=>{let O=null;if(r.markIcon)O=r.markIcon();else{const H={};o.iconSize&&(H.width=o.markIconSize,H.height=o.markIconSize);const A=o.markIcon??l;O=t.h(A,H)}return t.h("view",{class:"fox-steps-bar__mark"},[O])},L=(O,K,H,A,G)=>{const W=[];if(!z(K)){const x=C(O,K);W.push(x)}const k=I(O,K,H,A,G);W.push(k);const b={class:"fox-steps-bar__head"};return t.h("view",b,W)},D=(O,K,H,A)=>{let G=null;r.main?G=r.main({item:O,index:K,status:H}):G=Dh(o,O);const W={class:"fox-steps-bar__main",onClick:()=>{A||q(O,K)}};return t.h("view",W,[G])},V=(O,K,H)=>{let A=null;if(r.sub){A=r.sub({item:O,index:K,status:H});const G={class:"fox-steps-bar__sub"};return t.h("view",G,[A])}return null},N=(O,K)=>{const H=_l(o,O,K)??{},A=H.status??Ll(o,O);let G=sr(o,O);H.disabled===!0&&(G=!0),o.disabled===!0&&(G=!0);const W=H.label??cr(o,O),k=[],b=I(O,K,W,A,G);b&&k.push(b);const x=D(O,K,A,G);if(x&&k.push(x),!z(K)){const ee=C(O,K);ee&&k.push(ee)}const M=t.h("view",{class:"fox-steps-bar__head"},k),X=H.class,ne=H.style??{};let T=ur(o,O);H.doit===!0&&(T=!0);const Y={ref:J(K),class:S(K,A,G,T,X),style:f(K,ne)};return t.h("view",Y,[M])},U=(O,K)=>{const H=_l(o,O,K)??{},A=H.status??Ll(o,O);let G=sr(o,O);H.disabled===!0&&(G=!0),o.disabled===!0&&(G=!0);const W=H.label??cr(o,O),k=[],b=o.layout;for(let T of b)if(T==="head"){const Y=L(O,K,W,A,G);k.push(Y)}else if(T==="main"){const Y=D(O,K,A,G);k.push(Y)}else if(T==="sub"){const Y=V(O,K,A);k.push(Y)}else if(T==="mark"){const Y=$();k.push(Y)}const x=H.class,M=H.style??{};let X=ur(o,O);H.doit===!0&&(X=!0);const ne={ref:J(K),class:S(K,A,G,X,x),style:f(K,M)};return t.h("view",ne,k)},P=t.ref(),Q=t.ref([]),Z=(O,K)=>{Q.value[K]=O},J=O=>K=>{Z(K,O)},le=(O,K)=>{const H=P.value,A=Q.value;if(!H||!A||!A[O])return;const G=A[O];let W=0;o.direction==="vertical"?W=G.offsetTop-(H.offsetHeight-G.offsetHeight)/2:W=G.offsetLeft-(H.offsetWidth-G.offsetWidth)/2,_(H,W,K?0:.3,o.direction)},_=(O,K,H,A)=>{let G=0;const W=A==="horizontal"?O.scrollLeft:O.scrollTop,k=H===0?1:Math.round(H*1e3/16);function b(){A==="horizontal"?O.scrollLeft+=(K-W)/k:O.scrollTop+=(K-W)/k,++G<k&&Mn(b)}b()};return()=>{const O=[];if(o.mode==="simple")for(let H=0;H<h.value.length;H++){const A=h.value[H],G=N(A,H);O.push(G)}else for(let H=0;H<h.value.length;H++){const A=h.value[H],G=U(A,H);O.push(G)}const K={ref:P,class:m.value,style:p.value};return t.h("view",K,O)}}}}const{componentName:Oh,create:Ah,scope:Fh}=se("steps-bar"),Pl=Ah(Vh(Oh,Fh,bo,Su)),fr=new Date().getFullYear(),Bh={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"},dr=(e,n,a)=>{let l;if(Je(n)?l=n:typeof n=="string"&&ze(n)>0?l=re.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)},Mh=(e,n,a)=>{Je(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),re.format(new Date(l),a)};let Rh={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(fr-10,0,1),validator:Je},maxDate:{type:Date,default:()=>new Date(fr+10,11,31),validator:Je},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:Lh,scope:_h}=se("date-picker"),Ph=Lh({components:{Picker:Bt},props:{...Rh},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=ve.useFoxI18n(_h),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 f=e[`${S}Date`],R=f.getFullYear();let z=1,q=1,j=0,B=0;S==="max"&&(z=12,q=r(g.getFullYear(),g.getMonth()+1),j=23,B=59);const I=B;return g.getFullYear()===R&&(z=f.getMonth()+1,g.getMonth()+1===z&&(q=f.getDate(),g.getDate()===q&&(j=f.getHours(),g.getHours()===j&&(B=f.getMinutes())))),{[`${S}Year`]:R,[`${S}Month`]:z,[`${S}Date`]:q,[`${S}Hour`]:j,[`${S}Minute`]:B,[`${S}Seconds`]:I}},s=t.computed(()=>{if(!w.value)return[];const{maxYear:S,maxDate:g,maxMonth:f,maxHour:R,maxMinute:z,maxSeconds:q}=i("max",w.value),{minYear:j,minDate:B,minMonth:I,minHour:C,minMinute:$,minSeconds:L}=i("min",w.value);let D=[{type:"year",range:[j,S]},{type:"month",range:[I,f]},{type:"day",range:[B,g]},{type:"hour",range:[C,R]},{type:"minute",range:[$,z]},{type:"seconds",range:[L,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}),u=(S,g,f)=>{if(!(g>S))return null;const R=[];for(;S<=g;)e.isShowChinese?R.push({text:S+l[f],value:S}):R.push({text:`${S}`,value:S}),f==="minute"?S+=e.minuteStep:S++;return R},d=t.computed(()=>{let S=[];return s.value.forEach(g=>{let f=u(g.range[0],g.range[1],g.type);f&&S.push(f)}),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,c=t.ref(),w=t.ref(null);t.watchEffect(()=>{let S,g=e.modelValue;if(typeof g=="string"?g.length==0?S=new Date:e.valueFormat?S=dr(e,e.modelValue,e.valueFormat):S=dr(e,g,Bh[e.type]):Je(g)?S=g:S=new Date,!!S&&(!w.value||S.getTime()!==w.value.getTime())){w.value=S;let f=[];s.value.forEach(R=>{let z=h(R.type,S);f.push(z)}),c.value=f}});const E=S=>{if(e.type==="date"){let g=S;w.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;w.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,f=w.value??new Date,R=new Date(f.getFullYear(),f.getMonth(),f.getDate(),g[0],g[1],g[2]);w.value=R}else if(e.type==="year-month"){let g=S,f=new Date(g[0],g[1]-1);w.value=f}else if(e.type==="month-day"){let g=S,f=w.value??new Date,R=new Date(f.getFullYear(),g[0]-1,g[1]);w.value=R}else if(e.type==="datehour"){let g=S;w.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,f=w.value??new Date,R=new Date(f.getFullYear(),f.getMonth(),f.getDate(),g[0],g[1]);w.value=R}c.value=S};return{columns:d,dateIndexs:c,show:o,onClose:()=>{o.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:S=>{E(S),o.value=!1;let g=w.value??new Date;if(e.valueFormat){let f=Mh(e,g,e.valueFormat);n("update:modelValue",f)}else n("update:modelValue",g);n("update:visible",!1),n("confirm",S)},onClear:()=>{n("clear")}}}});function qh(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 ql=De(Ph,[["render",qh]]),Sn=(e,n,a)=>e.map(l=>{const{value:o="value",text:r="text",children:i="children"}=a??{},{[o]:s,[r]:u,[i]:d,...h}=l,c={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:s,text:u,children:d,_parent:n};return c.children&&c.children.length&&(c.children=Sn(c.children,c,a)),c}),hr=(e,n)=>{let a=0,l;for(;(l=e[a++])&&n(l)!==!0;)l.children&&l.children.length&&hr(l.children,n)},zh={topId:null,idKey:"id",pidKey:"pid",sortKey:""},jh=(e,n)=>{const a={...zh,...n||{}},{topId:l,idKey:o,pidKey:r,sortKey:i}=a;let s=[],u={};return e.forEach(d=>{d={...d};const{[o]:h,[r]:c}=d,w=u[c]=u[c]||[];!s.length&&c===l&&(s=w),w.push(d),d.children=u[h]||(u[h]=[])}),i&&Object.keys(u).forEach(d=>{u[d].length>1&&u[d].sort((h,c)=>h[i]-c[i])}),u=null,s};class mr{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=Sn(n,null,this.config)}updateChildren(n,a){a?a.children=Sn(n,a,this.config):this.nodes=Sn(n,null,this.config)}getNodeByValue(n){let a;return hr(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:Hh,scope:Kh}=se("cascader-pane"),Yh=Hh({components:{Loading:dn,Checklist:bo,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:a}=ve.useFoxI18n(Kh),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),s=t.ref(new mr([],{})),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((g,f)=>({text:g.selectedNode?g.selectedNode.text:a("select"),value:f}))),c=new Map;let w;const E=async()=>{c.clear(),u.value=[],o.value=0,r.value=!1,w=null;let{options:g}=e;l.value.convertConfig&&(g=jh(g,l.value.convertConfig)),s.value=new mr(g,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),d.value&&!s.value.nodes.length&&await m({root:!0,loading:!0,text:"",value:""}),u.value=[{nodes:s.value.nodes,selectedNode:null}],y()},y=async()=>{const g=i.value;if(g===void 0||!s.value.nodes.length)return;if(g.length===0){o.value=0,u.value=[{nodes:s.value.nodes,selectedNode:null}];return}let f=g;if(d.value&&Array.isArray(g)&&g.length){f=[];let R=s.value.nodes.find(z=>z.value===g[0]);if(R){f=[R.value],r.value=!0;const z=await g.slice(1).reduce(async(q,j)=>{const B=await q;await m(B);const I=B?.children?.find(C=>C.value===j);return I&&f.push(j),Promise.resolve(I)},Promise.resolve(R));await m(z),r.value=!1}}f.length&&g===e.modelValue&&s.value.getPathNodesByValue(f).map((z,q)=>{o.value=q,S.handleNode(z,!0)})},m=async g=>{if(!g)return;if(!l.value.lazyLoad){g.leaf=!0;return}if(s.value.isLeaf(g,d.value)||s.value.hasChildren(g,d.value))return;g.loading=!0;const f=g.root?null:g;let R=c.get(g);R||(R=new Promise(q=>{l.value.lazyLoad?.(g,q)}),c.set(g,R));const z=await R;Array.isArray(z)&&z.length>0?s.value.updateChildren(z,f):g.leaf=!0,g.loading=!1,c.delete(g)},p=g=>{const f=g.map(R=>R.value);i.value=f,n("change",f,g),n("update:modelValue",f,g)},S={async handleNode(g,f){const{disabled:R,loading:z}=g;if(!(!f&&R||!u.value[o.value])){if(s.value.isLeaf(g,d.value)){if(g.leaf=!0,u.value[o.value].selectedNode=g,u.value=u.value.slice(0,g.level+1),!f){const q=u.value.map(j=>j.selectedNode);p(q),n("pathChange",q)}return}if(s.value.hasChildren(g,d.value)){const q=g.level+1;if(u.value[o.value].selectedNode=g,u.value=u.value.slice(0,q),u.value.push({nodes:g.children||[],selectedNode:null}),o.value=q,!f){const j=u.value.map(B=>B.selectedNode);n("pathChange",j)}return}w=g,!z&&(await m(g),w===g&&(u.value[o.value].selectedNode=g,S.handleNode(g,f)))}},handleTabChange(g,f){w=null},formatTabTitle(g){return g.selectedNode?g.selectedNode.text:a("select")},isSelected(g,f){return g.selectedNode&&g.selectedNode.value===f.value}};return t.watch([l,()=>e.options],()=>{E()},{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:u,panesTitles:h,initLoading:r,tabsCursor:o,...S}}}),Wh={class:"fox-cascader"},Uh={role:"menu",class:"fox-cascader__pane"},Gh=["aria-checked","aria-disabled","onClick"],Xh={class:"fox-cascader__item__title"},Zh=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Jh(e,n,a,l,o,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",Wh,[t.createVNode(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),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]=c=>e.tabsCursor=c)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(c,w)=>(t.openBlock(),t.createBlock(d,{"pane-key":w,key:w},{default:t.withCtx(()=>[t.createElementVNode("view",Uh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.nodes,E=>(t.openBlock(),t.createElementBlock("view",{key:E.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(c,E),disabled:E.disabled}]),"aria-checked":e.isSelected(c,E),"aria-disabled":E.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(E,!1)},[t.createElementVNode("view",Xh,t.toDisplayString(E.text),1),E.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,Gh))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(d,{key:1,"pane-key":0},{default:t.withCtx(()=>[Zh]),_:1}))]),_:1},8,["modelValue"])])}const Qh=De(Yh,[["render",Jh]]),{create:em}=se("cascader-picker"),tm=em({components:{FoxCascaderPane:Qh,FoxPopup:gt},props:{...cl,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,s)=>{a.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!==a.value&&(a.value=i)}),{onChange:o,onPathChange:r,innerValue:a,innerVisible:l}}}),nm=["innerHTML"];function lm(e,n,a,l,o,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,nm)):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 zl=De(tm,[["render",lm]]),am=Symbol.for("InnerPageScopeKey"),om=Symbol.for("PageWrapperKey");function rm(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(am,!0);const o={};t.provide(om,o);const r=u=>{typeof o.beforeClose=="function"&&o.beforeClose()},i=t.ref(!0),s=u=>{i.value=u};return()=>{const d={...l.attrs,title:a.title,draggable:a.draggable,modelValue:i.value,"onUpdate:modelValue":s,"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 c=l.slots.default();h.default=()=>c}return t.h(F.ElDialog,d,h)}}}}const{componentName:ty,create:im,scope:ny}=se("dialog-item"),jl=im(rm()),{create:sm}=se("toast"),um=sm({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))},s=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,E=>{E&&i()});const u=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const E=me(e.iconSize);return t.h(e.icon,{width:E,height:E,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]),c=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:c,onAfterLeave:()=>{o(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),cm={key:1,class:"fox-toast-title"},fm=["innerHTML"];function dm(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",cm,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,fm)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Hl=De(um,[["render",dm]]),hm={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"}},mm=(e,n,a)=>({props:{...hm},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),s=i(l,["placeholder"]),u=t.reactive({active:!1}),d=t.computed(()=>({background:l.background})),h=t.computed(()=>({background:l.inputBackground})),c=I=>{let $=I.target.value;l.maxLength&&$.length>Number(l.maxLength)&&($=$.slice(0,Number(l.maxLength))),o("update:modelValue",$,I),o("change",$,I)},w=t.ref({}),E=I=>{let $=I.target.value;u.active=!0,w.value=l.focusStyle,o("focus",$,I)},y=I=>{setTimeout(()=>{u.active=!1},0);let $=I.target.value;l.maxLength&&$.length>Number(l.maxLength)&&($=$.slice(0,Number(l.maxLength))),w.value={},o("blur",$,I)},m=I=>{o("update:modelValue","",I),o("change","",I),o("clear","")},p=t.computed(()=>String(l.modelValue).length>0),S=t.computed(()=>{const I={};return p.value||(I.display="none"),I}),g=()=>{o("search",l.modelValue)},f=I=>{o("keyup-input",I),I.key.toLocaleUpperCase()==="ENTER"&&g()},R=I=>{o("click-input",I)},z=I=>{o("click-left-icon",l.modelValue,I)},q=t.computed(()=>({textAlign:l.inputAlign})),j=t.ref(null);t.onMounted(()=>{l.autofocus&&j.value.focus()});const B=()=>{const I=[];if(r.leftin){const V={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:z},N=t.h("view",V,[r.leftin()]);I.push(N)}const C={ref:j,class:[`${e}__input-inner`],style:q.value,type:l.inputType,maxlengt:l.maxLength,placeholder:s.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:R,onInput:c,onFocus:E,onBlur:y,onkeyup:f},$=t.h("input",C);I.push($);const L=[];if(l.clearable){const V={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:S.value,onClick:m},N=r?.clear?.()??l.clearIcon??a,U=t.h("view",V,[t.h(N)]);L.push(U)}if(r.rightin){const V={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},N=t.h("view",V,[r.rightin()]);L.push(N)}if(L.length>0){const V={class:`${e}__input-inner-right`},N=t.h("view",V,L);I.push(N)}const D={class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...w.value}};return t.h("view",D,I)};return()=>{const I=[];if(l.label){const L={class:`${e}__search-label`},D=t.h("span",L,[l.label]);I.push(D)}if(r.leftout){const L={class:[`${e}__search-icon`,`${e}__left-search-icon`]},D=t.h("view",L,[r.leftout()]);I.push(D)}const C=B();if(I.push(C),r.rightout){const L={class:[`${e}__search-icon`,`${e}__right-search-icon`]},D=t.h("view",L,[r.rightout()]);I.push(D)}const $={class:`${e}`,style:d.value};return t.h("view",$,I)}}}),{componentName:gm,create:ym,scope:pm}=se("searchbar"),Kl=ym(mm(gm,pm,Ce.CircleClose)),bm=/scroll|auto|overlay/i,gr=window;function vm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function wm(e,n=gr){let a=e;for(;a&&a!==n&&vm(a);){const{overflowY:l}=window.getComputedStyle(a);if(bm.test(l))return a;a=a.parentNode}return n}function yr(e,n=gr){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=wm(e.value,n))}),a}const pr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Sm={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,a){return{props:{...Sm},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),s=i(l,["pullText","loadText","loadMoreText"]),u=t.ref(),d=yr(u),h=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[e]:!0})),w=g=>g?g.offsetTop+w(g.offsetParent):0,E=()=>{let g=0,f=0,R="down";if(d.value==window){const z=pr();u.value&&(g=w(u.value)+u.value.offsetHeight-z-window.innerHeight),f=z}else{const{scrollHeight:z,clientHeight:q,scrollTop:j}=d.value;g=z-q-j,f=j}return h.beforeScrollTop>f?R="up":R="down",h.beforeScrollTop=f,o("scroll-change",f),g<=l.threshold&&R=="down"},y=()=>{kn(()=>{if(!E()||!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"},f=t.h("view",g,[r?.default?.()]),R=[];if(h.isInfiniting){let B=r?.loading?.()??null;if(!B){let $=r?.loadingIcon?.()??null;if(!$){const V={class:["fox-infinite__bottom-box__img"]};$=t.h(a,V)}const L={class:"fox-infinite__bottom-box__text"},D=t.h("view",L,[s.loadText.value]);B=[$,D]}const I={class:"fox-infinite__bottom-box"},C=t.h("view",I,B);R.push(C)}else if(!l.hasMore){let B=r?.finished?.()??null;if(!B){const I={class:"fox-infinite__bottom-tips"};B=t.h("view",I,[s.loadMoreText.value]),R.push(B)}}const z={class:"fox-infinite__bottom"},q=t.h("view",z,R),j={class:c.value,ref:u};return t.h("view",j,[f,q])}}}}const{componentName:xm,create:Cm,scope:$m}=se("infinite-loading"),Yl=Cm(Tm(xm,$m,dn)),km={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}},Dm=(e,n,a)=>({props:{...km},emits:["change","refresh","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),s=i(l,["pullingText","loosingText","loadingText"]),u=Bl(),d=t.ref(),h=yr(d),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),w=t.computed(()=>({[e]:!0})),E=t.computed(()=>{switch(c.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:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),m=t.computed(()=>{const j={};return l.headHeight!=50&&(j.height=Ae(l.headHeight)),j}),p=j=>{const B=+(l.pullDistance||l.headHeight);let I=j;return j>B&&(j<B*2?I=(j+B)/2:I=B+j/4),Math.round(I)},S=(j,B)=>{const I=+(l.pullDistance||l.headHeight);c.distance=j,B?c.status="loading":j===0?c.status="normal":j<I?c.status="pulling":c.status="loosing",o("change",{status:c.status,distance:j})},g=()=>c.status!=="loading"&&c.status!=="complete",f=()=>h.value==window?pr()==0:h.value&&h.value.scrollTop==0,R=j=>{g()&&(f()?(u.start(j),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},z=j=>{g()&&c.moving&&(u.move(j),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(j.cancelable&&j.preventDefault(),S(p(u.state.deltaY))))},q=()=>{c.moving=!1,c.isPullRefresh&&g()&&u.state.deltaY&&(c.status==="loosing"?(S(+l.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):S(0)),setTimeout(()=>{u.reset()},0)};return t.watch(()=>l.modelValue,j=>{j?S(+l.headHeight,!0):S(0)}),()=>{const j=[];let B=null;if(c.status==="loading"){if(B=r?.loading?.()??null,!B){const U={class:["fox-pull-refresh-container-topbox-icon"]};B=t.h(a,U)}}else c.status==="pulling"?B=r?.pulling?.()??null:c.status==="loosing"&&(B=r?.loosing?.()??null);B&&j.push(B);const I={class:["fox-pull-refresh-container-topbox-text"]},C=t.h("dive",I,[E.value]);j.push(C);const $={class:["fox-pull-refresh-container-topbox"],style:m.value},L=t.h("div",$,j),D={class:"fox-pull-refresh-container",style:y.value},V=t.h("div",D,[L,r?.default?.()]),N={ref:d,class:w.value};return Fl()?Object.assign(N,{onTouchstart:R,onTouchmove:z,onTouchend:q}):Object.assign(N,{onMousedown:R,onMousemove:z,onMouseup:q}),t.h("div",N,[V])}}}),{componentName:Nm,create:Em,scope:Im}=se("pull-refresh"),Wl=Em(Dm(Nm,Im,dn));function Vm(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}),s=t.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),u=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:s.value};h=t.h(a.icon??"div",m)}const c={class:u.value,style:d.value},w=l.default?l.default():[],E=t.h("div",c,w),y={class:r.value};return a.textPosition==="right"?t.h("div",y,[h,E]):t.h("div",y,[E,h])}}}}const{componentName:Om,create:Am,scope:ly}=se("indicator"),Ul=Am(Vm(Om));function Fm(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 Bm={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,a,l=!1){return{props:{...Bm},emits:["click"],setup(o,r){const i=t.ref(null),s=t.computed(()=>{const f={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(f[`${e}--${o.type??"default"}`]=!0),o.size&&(f[`${e}--${o.size}`]=!0),f}),u=t.computed(()=>{const f={},R=o.textColor??o.color;return R&&(f.color=R),f}),d=(f,R)=>{let z=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const q=o.highlightFilter;if(f.indexOf(q)!==-1){const B=f.replace(new RegExp(q,"g"),`<span>${q}</span>`);R.innerHTML=B,R.class["is-highlight"]=!0,z=t.h(o.tag,R)}}else if(typeof o.highlightFilter=="function"){const q=o.highlightFilter(f);q&&(R.innerHTML=q,R.class["is-highlight"]=!0,z=t.h(o.tag,R))}return z},h=f=>{r.emit("click",f)};let c="";const w=()=>{const f=i.value;if(!f)return;const R=f.clientWidth;Fm(f,z=>{const q=f.innerHTML??"";ye(q)||z<R||(c?a?.show(f,q,{type:"text",id:c,showArrow:o.showArrow},!0):c=a?.show(f,q,{type:"text",showArrow:o.showArrow},!0)??"")})},E=()=>{c&&a?.hide(c)};let y=null;const m=f=>{y||(y=setTimeout(()=>{w(),y=null},o.showAfter??0))},p=f=>{y&&(clearTimeout(y),y=null),setTimeout(()=>{E()},o.hideAfter??0)},S=()=>{const f=i.value;f&&(f.addEventListener("mouseover",m),f.addEventListener("mouseleave",p))},g=()=>{const f=i.value;f&&(f.removeEventListener("mouseover",m),f.removeEventListener("mouseleave",p))};return t.onMounted(()=>{!ce(o.showOverflowTooltip)||!a||S()}),t.onBeforeUnmount(()=>{!ce(o.showOverflowTooltip)||!a||g()}),()=>{const f={onClick:h,class:s.value,style:u.value,ref:i};let R=null;if(ce(o.numberFormat)&&typeof r.slots.default=="function"){const B=r.slots.default();if(Array.isArray(B)&&B.length===1){const I=B[0].type.toString();if(I==="Symbol(Text)"||I==="Symbol(v-txt)"){const C=he(o.digits),$=he(o.decimalLength),L=ce(o.autoPadding);let D=`${B[0].children}`,V=D.split("").reverse().join("");V=qt(V,$,L,C,o.separator),D=V.split("").reverse().join(""),o.highlightFilter!==void 0&&(R=d(D,f)),R||(f.innerHTML=D,R=t.h(o.tag,f))}}}else{if(o.highlightFilter!==void 0&&typeof r.slots.default=="function"){const B=r.slots.default();if(Array.isArray(B)&&B.length===1){const I=B[0].type.toString();if(I==="Symbol(Text)"||I==="Symbol(v-txt)"){const C=`${B[0].children}`;R=d(C,f),R||(f.innerHTML=C,R=t.h(o.tag,f))}}}R||(R=t.h(o.tag,f,{default:r.slots.default}))}if(!o.mark&&!o.icon&&!r.slots.mark)return R;let q=null;if(o.icon){const B={[`${e}__mark-wrap`]:!0};o.type&&(B[`${e}__mark-wrap--${o.type}`]=!0);const I={},C=o.color;C&&(I.color=C);const $={class:B,style:I};q=t.h("view",$,t.h(o.icon))}else if(r.slots.mark){const B={[`${e}__mark-wrap`]:!0};o.type&&(B[`${e}__mark-wrap--${o.type}`]=!0);const I={},C=o.color;C&&(I.color=C);const $={class:B,style:I};q=t.h("view",$,{default:r.slots.mark})}else{const B={[`${e}__mark`]:!0};o.type&&(B[`${e}__mark--${o.type??"default"}`]=!0);const I={},C=o.color;C&&(I["background-color"]=C);const $={class:B,style:I};q=t.h("view",$)}const j={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}};return t.h("view",j,[q,R])}}}}const{componentName:Rm,create:Lm,scope:_m}=se("text"),Gl=Lm(Mm(Rm,_m,Be,!1)),Pm={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:Ce.ArrowUp}};function qm(e,n,a){return{props:{...Pm},emits:["click","update:modelValue"],setup(l,{emit:o}){const r=t.computed(()=>{const c={[`${e}`]:!0};return l.disabled?c[`${e}__disabled`]=!0:c[`${e}__${l.type}`]=!0,c}),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=()=>{o("update:modelValue",!i.value)};return()=>{const c=[];if(s.value){const m={class:u.value},p=t.h("span",m,[s.value]);c.push(p)}const w={class:d.value},E=a(l.icon,w);return E&&c.push(E),t.h("div",{class:r.value,onClick:h},c)}}}}const{componentName:zm,create:jm,scope:Hm}=se("more-button"),Xl=jm(qm(zm,Hm,(e,n)=>(e=e??Ce.ArrowUp,t.h(F.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:Km,create:Ym,scope:oy}=se("tour"),Wm=Ym({components:{Close:Ce.Close,ElPopover:F.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=Km,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:f,top:R}=o.value,z=e.steps[l.active].offset??y,q=[f+S/2,R+g/2],j=Number(m||S),B=Number(p||g);return{width:`${j+ +z.left+z.right}px`,height:`${B+z.top+z.bottom}px`,top:`${q[1]-B/2-+z.top}px`,left:`${q[0]-j/2-+z.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}`),m=Al(y);o.value={x:m.left,y:m.top,top:m.top,left:m.left,width:m.width,height:m.height}},c=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},w=()=>{e.closeOnClickOverlay&&c()},E=(y,m=0)=>{y&&h(),e.steps,l.active=m,l.showTour=y,l.showPopup=y};return t.onMounted(()=>{E(e.modelValue,e.current)}),t.watch(()=>e.modelValue,y=>{E(y)}),{...t.toRefs(l),classes:r,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:w}}}),Um={key:0,class:"fox-tour__content"},Gm={key:0,class:"fox-tour__content-top"},Xm={class:"fox-tour__content-inner"},Zm={class:"fox-tour__content-bottom"},Jm={class:"fox-tour__content-bottom-init"},Qm={class:"fox-tour__content-bottom-operate"},eg={key:1,class:"fox-tour__content fox-tour__content-tile"},tg={class:"fox-tour__content-inner"};function ng(e,n,a,l,o,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",Um,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",Gm,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...c)=>e.close&&e.close(...c))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Xm,t.toDisplayString(d.content),1),t.createElementVNode("div",Zm,[t.createElementVNode("div",Jm,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",Qm,[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]=c=>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]=c=>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",eg,[t.createElementVNode("div",tg,t.toDisplayString(d.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const Zl=De(Wm,[["render",ng]]),Me=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ut=e=>e==null;class lg{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=Fl()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=Bl(),l=(o,r,i,s)=>{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 br(e,n){return new lg(e,n)}var vr;const Jl=typeof window<"u";Jl&&((vr=window?.navigator)!=null&&vr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let St=[];const wr=e=>{const n=e;n.key==="Escape"&&St.forEach(a=>a(n))},ag=e=>{t.onMounted(()=>{St.length===0&&document.addEventListener("keydown",wr),Jl&&St.push(e)}),t.onBeforeUnmount(()=>{St=St.filter(n=>n!==e),St.length===0&&Jl&&document.removeEventListener("keydown",wr)})},Ql="fox-focus-trap.focus-after-trapped",ea="fox-focus-trap.focus-after-released",og="fox-focus-trap.focusout-prevented",Sr={cancelable:!0,bubbles:!1},rg={cancelable:!0,bubbles:!1},Tr="foxFocusAfterTrapped",xr="foxFocusAfterReleased",ig=Symbol("foxFocusTrap"),ta=t.ref(),Tn=t.ref(0),na=t.ref(0);let xn=0;const Cr=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},$r=(e,n)=>{for(const a of e)if(!sg(a,n))return a},ug=e=>{const n=Cr(e),a=$r(n,e),l=$r(n.reverse(),e);return[a,l]},cg=e=>e instanceof HTMLInputElement&&"select"in e,tt=(e,n)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),na.value=window.performance.now(),e!==a&&cg(e)&&n&&e.select()}};function kr(e,n){const a=[...e],l=e.indexOf(n);return l!==-1&&a.splice(l,1),a}const fg=()=>{let e=[];return{push:l=>{const o=e[0];o&&l!==o&&o.pause(),e=kr(e,l),e.unshift(l)},remove:l=>{e=kr(e,l),e[0]?.resume?.()}}},dg=(e,n=!1)=>{const a=document.activeElement;for(const l of e)if(tt(l,n),document.activeElement!==a)return},Dr=fg(),hg=()=>Tn.value>na.value,Cn=()=>{ta.value="pointer",Tn.value=window.performance.now()},Nr=()=>{ta.value="keyboard",Tn.value=window.performance.now()},mg=()=>(t.onMounted(()=>{xn===0&&(document.addEventListener("mousedown",Cn),document.addEventListener("touchstart",Cn),document.addEventListener("keydown",Nr)),xn++}),t.onBeforeUnmount(()=>{xn--,xn<=0&&(document.removeEventListener("mousedown",Cn),document.removeEventListener("touchstart",Cn),document.removeEventListener("keydown",Nr))}),{focusReason:ta,lastUserFocusTimestamp:Tn,lastAutomatedFocusTimestamp:na}),$n=e=>new CustomEvent(og,{...rg,detail:e}),{componentName:ry,create:gg,scope:iy}=se("focus-trap"),yg=gg({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:[Tr,xr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:a}){const l=t.ref();let o,r;const{focusReason:i}=mg();ag(m=>{ce(e.trapped)&&!s.paused&&a("release-requested",m)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=m=>{if(!e.loop&&!ce(e.trapped)||s.paused)return;const{key:p,altKey:S,ctrlKey:g,metaKey:f,currentTarget:R,shiftKey:z}=m,{loop:q}=e,j=p==="Tab"&&!S&&!g&&!f,B=document.activeElement;if(j&&B){const I=R,[C,$]=ug(I);if(C&&$){if(!z&&B===$){const D=$n({focusReason:i.value});a("focusout-prevented",D),D.defaultPrevented||(m.preventDefault(),q&&tt(C,!0))}else if(z&&[C,I].includes(B)){const D=$n({focusReason:i.value});a("focusout-prevented",D),D.defaultPrevented||(m.preventDefault(),q&&tt($,!0))}}else if(B===I){const D=$n({focusReason:i.value});a("focusout-prevented",D),D.defaultPrevented||m.preventDefault()}}};t.provide(ig,{focusTrapRef:l,onKeydown:u}),t.watch(()=>e.focusTrapEl,m=>{m&&(l.value=m)},{immediate:!0}),t.watch([l],([m],[p])=>{m&&(m.addEventListener("keydown",u),m.addEventListener("focusin",c),m.addEventListener("focusout",w)),p&&(p.removeEventListener("keydown",u),p.removeEventListener("focusin",c),p.removeEventListener("focusout",w))});const d=m=>{a(Tr,m)},h=m=>a(xr,m),c=m=>{const p=t.unref(l);if(!p)return;const S=m.target,g=m.relatedTarget,f=S&&p.contains(S);ce(e.trapped)||g&&p.contains(g)||(o=g),f&&a("focusin",m),!s.paused&&ce(e.trapped)&&(f?r=S:tt(r,!0))},w=m=>{const p=t.unref(l);if(!(s.paused||!p))if(!e.escape&&ce(e.trapped)){const S=m.relatedTarget;!qn(S)&&!p.contains(S)&&setTimeout(()=>{if(!s.paused&&ce(e.trapped)){const g=$n({focusReason:i.value});a("focusout-prevented",g),g.defaultPrevented||tt(r,!0)}},0)}else{const S=m.target;S&&p.contains(S)||a("focusout",m)}};async function E(){await t.nextTick();const m=t.unref(l);if(m){Dr.push(s);const p=m.contains(document.activeElement)?o:document.activeElement;if(o=p,!m.contains(p)){const g=new Event(Ql,Sr);m.addEventListener(Ql,d),m.dispatchEvent(g),g.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;ya(f)||(tt(f),document.activeElement!==f&&(f="first")),f==="first"&&dg(Cr(m),!0),(document.activeElement===p||f==="container")&&tt(m)})}}}function y(){const m=t.unref(l);if(m){m.removeEventListener(Ql,d);const p=new CustomEvent(ea,{...Sr,detail:{focusReason:i.value}});m.addEventListener(ea,h),m.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!hg())&&tt(o??document.body,!0),m.removeEventListener(ea,d),Dr.remove(s)}}return t.onMounted(()=>{ce(e.trapped)&&E(),t.watch(()=>e.trapped,m=>{ce(m)?E():y()})}),t.onBeforeUnmount(()=>{ce(e.trapped)&&y()}),()=>typeof n.default=="function"?n.default({"handle-keydown":u}):null}}),{componentName:pg,create:bg,scope:uy}=se("floating-window"),vg=Symbol.for("InnerPageScopeKey"),wg=Symbol.for("PageWrapperKey"),Sg={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=bg({inheritAttrs:!1,components:{FoxIcon:F.ElIcon,FocusTrap:yg},props:{...Sg},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const a=pg,l=t.ref(e.modelValue),o=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,T=>{l.value=T});const r=t.computed(()=>l.value===!1?!1:!B.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 T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),c=t.computed(()=>{const T={};return ut(i.value)?T.left="auto":T.left=Me(i.value),ut(s.value)?T.top="auto":T.top=Me(s.value),ut(u.value)?T.right="auto":T.right=Me(u.value),ut(d.value)?T.bottom="auto":T.bottom=Me(d.value),ut(e.zIndex)||(T["z-index"]=Me(e.zIndex)),ut(q.value)||(T.height=q.value),ut(j.value)||(T.width=j.value),T}),w=t.computed(()=>e.closeIcon??Ce.Close),E=t.computed(()=>e.collapseIcon??Ce.ArrowUp),y=t.computed(()=>e.collapseText??""),m=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ce.ArrowRight:e.expandIcon??Ce.ArrowLeft),p=t.computed(()=>e.expandText??e.title??"展开"),S=t.computed(()=>({[`${a}__collapse-text`]:!0})),g=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),f=t.ref(),R=t.ref(null),z=t.ref(null),q=t.computed(()=>Me(e.height)||""),j=t.computed(()=>Me(e.width)||""),B=t.ref(ce(e.collapse)),I=(T,Y=!0)=>{B.value!==T&&(B.value=T,T?O():K(),n("update:collapse",T),T&&typeof L.onHide=="function"?L.onHide():!T&&typeof L.onShow=="function"&&L.onShow())};t.watch(()=>e.collapse,T=>{I(T)});const C=()=>{$()},$=T=>{T=T??!B.value,I(T)};t.provide(vg,!0);const L={setCollapse:I,setFixedNavVisible:T=>{J.value=T}};t.provide(wg,L);const D=()=>{typeof L.beforeClose=="function"?L.beforeClose(()=>{l.value=!1}):l.value=!1},V=t.ref(null),N=t.computed(()=>!e.fixedNavTeleport),U=t.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),P=t.ref(""),Q=t.computed(()=>{const T={};return P.value?T.top=P.value:e.collapseTop&&(T.top=e.collapseTop),T}),Z=t.ref(B.value),J=t.computed({set:T=>{Z.value=T},get:()=>l.value===!1?!1:Z.value});let le=null;const _=()=>{typeof le=="function"&&(le(),le=null)},O=()=>{V.value&&V.value.classList.add("slide-in"),J.value=!0,le=()=>{V.value&&V.value.classList.remove("slide-in")}},K=()=>{V.value&&V.value.classList.add("slide-out"),le=()=>{V.value&&V.value.classList.remove("slide-out"),J.value=!1}},H=()=>{i.value=null,s.value=null,u.value=null,d.value=null},A={x:0,y:0},k=br(T=>{if(!f.value)return;const Y=f.value;if(H(),e.origin==="left-top")i.value=Y.offsetLeft,s.value=Y.offsetTop,A.x=i.value,A.y=s.value;else if(e.origin==="left-bottom"){const ee=document.documentElement.clientHeight||document.body.clientHeight;i.value=Y.offsetLeft,d.value=ee-(Y.offsetTop+Y.offsetHeight),A.x=i.value,A.y=d.value}else if(e.origin==="right-bottom"){const ee=document.documentElement.clientWidth||document.body.clientWidth,ae=document.documentElement.clientHeight||document.body.clientHeight;u.value=ee-(Y.offsetLeft+Y.offsetWidth),d.value=ae-(Y.offsetTop+Y.offsetHeight),A.x=u.value,A.y=d.value}else{const ee=document.documentElement.clientWidth||document.body.clientWidth;u.value=ee-(Y.offsetLeft+Y.offsetWidth),s.value=Y.offsetTop,A.x=u.value,A.y=s.value}},T=>{if(!f.value)return;const Y=f.value;H(),e.origin==="left-top"?(i.value=A.x+T.x,s.value=A.y+T.y,Y.style.left=Me(i.value),Y.style.top=Me(s.value)):e.origin==="left-bottom"?(i.value=A.x+T.x,d.value=A.y-T.y,Y.style.left=Me(i.value),Y.style.bottom=Me(d.value)):e.origin==="right-bottom"?(u.value=A.x-T.x,d.value=A.y-T.y,Y.style.right=Me(u.value),Y.style.bottom=Me(d.value)):(u.value=A.x-T.x,s.value=A.y+T.y,Y.style.right=Me(u.value),Y.style.top=Me(s.value))}),b={x:0,y:0},X=br(T=>{V.value&&(b.x=V.value.offsetLeft,b.y=V.value.offsetTop)},T=>{if(!V.value)return;const Y=b.y+T.y;P.value=`${Y}px`}),ne=()=>{if(f.value){const T=f.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");z.value=T}};return t.onMounted(()=>{if(e.draggable&&f.value){const T=[];R.value&&T.push(R.value),e.footerDraggable&&(ne(),z.value&&T.push(z.value)),k.open(T)}e.collapse===!0&&I(e.collapse,!1),V.value&&X.open(V.value)}),t.onBeforeUnmount(()=>{e.draggable&&R.value&&k.close(),V.value&&X.close()}),{classes:h,styles:c,isShow:r,closeIcon:w,onClose:D,dialogRef:f,headerRef:R,onClickToggle:C,collapseIcon:E,collapseText:y,collapseTextClasses:S,collapseIconClasses:g,expandIcon:m,expandText:p,isShowFixedNav:J,fixedNavRef:V,fixedNavClasses:U,fixedNavStyles:Q,onAnimationEnd:_,teleportDisabled:o,fixedNavTeleportDisabled:N}}}),xg={ref:"headerRef",class:"fox-floating-window__header"},Cg={class:"fox-floating-window__title"},$g={class:"fox-floating-window__tools"},kg={class:"fox-floating-window__body"},Dg={class:"fox-floating-window__fixednav__text"};function Ng(e,n,a,l,o,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",xg,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Cg,t.toDisplayString(e.title),1),t.createElementVNode("div",$g,[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",kg,[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",Dg,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const la=De(Tg,[["render",Ng]]);function Eg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:l}){return Ba(a.name,()=>a.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:cy,create:Ig,scope:fy}=se("domain-provider"),aa=Ig(Eg()),Vg={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 Og(e,n){return{inheritAttrs:!1,props:Vg,setup(a,{slots:l}){if(ot&&window.IntersectionObserver){const o=new WeakMap;let r=new Map;const i=(w,E)=>{if(h===null){r.set(w,{visible:null,callback:E});return}o.has(w)&&h.unobserve(w),o.set(w,{visible:null,callback:E}),h.observe(w)},s=w=>{if(h===null){r.delete(w);return}o.has(w)&&(o.delete(w),h.unobserve(w))};let u=a.initialVisibleObserverSize;Fi({acquire:()=>{const w=u>0;return u--,w},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:i,unobserve:s});let h=null;const c=(w,E,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(f){console.error(f)}}},{root:w,rootMargin:E,threshold:y}),r.forEach((m,p)=>{o.set(p,m),h?.observe(p)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([w,E])=>{if(E||!w||h)return;let y=null;typeof w=="string"?y=document.querySelector(w):y=w,y&&c(y,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:dy,create:Ag,scope:hy}=se("rolling-provider"),oa=Ag(Og()),Fg=[Un,Xn,Zn,Jn,tl,Se,al,ol,It,rl,il,sl,dl,hl,ml,gl,yl,bl,vl,wl,Sl,mn,Cl,$l,kl,Dl,Nl,El,Il,pn,Vl,Rl,bn,vn,wn,Pl,Bt,ql,hn,zl,jl,fn,gt,Hl,Kl,Yl,Wl,At,un,Ul,Gl,Xl,Zl,la,aa,oa],Bg=new fi(Fg,[mi],"4.0.0");Object.defineProperty(v,"FoxAffix",{enumerable:!0,get:()=>F.ElAffix}),Object.defineProperty(v,"FoxAlert",{enumerable:!0,get:()=>F.ElAlert}),Object.defineProperty(v,"FoxAside",{enumerable:!0,get:()=>F.ElAside}),Object.defineProperty(v,"FoxAutoResizer",{enumerable:!0,get:()=>F.ElAutoResizer}),Object.defineProperty(v,"FoxAutocomplete",{enumerable:!0,get:()=>F.ElAutocomplete}),Object.defineProperty(v,"FoxAvatar",{enumerable:!0,get:()=>F.ElAvatar}),Object.defineProperty(v,"FoxBacktop",{enumerable:!0,get:()=>F.ElBacktop}),Object.defineProperty(v,"FoxBadge",{enumerable:!0,get:()=>F.ElBadge}),Object.defineProperty(v,"FoxBreadcrumb",{enumerable:!0,get:()=>F.ElBreadcrumb}),Object.defineProperty(v,"FoxBreadcrumbItem",{enumerable:!0,get:()=>F.ElBreadcrumbItem}),Object.defineProperty(v,"FoxButton",{enumerable:!0,get:()=>F.ElButton}),Object.defineProperty(v,"FoxButtonGroup",{enumerable:!0,get:()=>F.ElButtonGroup}),Object.defineProperty(v,"FoxCalendar",{enumerable:!0,get:()=>F.ElCalendar}),Object.defineProperty(v,"FoxCard",{enumerable:!0,get:()=>F.ElCard}),Object.defineProperty(v,"FoxCarousel",{enumerable:!0,get:()=>F.ElCarousel}),Object.defineProperty(v,"FoxCarouselItem",{enumerable:!0,get:()=>F.ElCarouselItem}),Object.defineProperty(v,"FoxCascader",{enumerable:!0,get:()=>F.ElCascader}),Object.defineProperty(v,"FoxCascaderPanel",{enumerable:!0,get:()=>F.ElCascaderPanel}),Object.defineProperty(v,"FoxCheckTag",{enumerable:!0,get:()=>F.ElCheckTag}),Object.defineProperty(v,"FoxCheckbox",{enumerable:!0,get:()=>F.ElCheckbox}),Object.defineProperty(v,"FoxCheckboxButton",{enumerable:!0,get:()=>F.ElCheckboxButton}),Object.defineProperty(v,"FoxCheckboxGroup",{enumerable:!0,get:()=>F.ElCheckboxGroup}),Object.defineProperty(v,"FoxCol",{enumerable:!0,get:()=>F.ElCol}),Object.defineProperty(v,"FoxCollapse",{enumerable:!0,get:()=>F.ElCollapse}),Object.defineProperty(v,"FoxCollapseItem",{enumerable:!0,get:()=>F.ElCollapseItem}),Object.defineProperty(v,"FoxCollapseTransition",{enumerable:!0,get:()=>F.ElCollapseTransition}),Object.defineProperty(v,"FoxColorPicker",{enumerable:!0,get:()=>F.ElColorPicker}),Object.defineProperty(v,"FoxConfigProvider",{enumerable:!0,get:()=>F.ElConfigProvider}),Object.defineProperty(v,"FoxContainer",{enumerable:!0,get:()=>F.ElContainer}),Object.defineProperty(v,"FoxDatePicker",{enumerable:!0,get:()=>F.ElDatePicker}),Object.defineProperty(v,"FoxDescriptions",{enumerable:!0,get:()=>F.ElDescriptions}),Object.defineProperty(v,"FoxDescriptionsItem",{enumerable:!0,get:()=>F.ElDescriptionsItem}),Object.defineProperty(v,"FoxDialog",{enumerable:!0,get:()=>F.ElDialog}),Object.defineProperty(v,"FoxDivider",{enumerable:!0,get:()=>F.ElDivider}),Object.defineProperty(v,"FoxDrawer",{enumerable:!0,get:()=>F.ElDrawer}),Object.defineProperty(v,"FoxDropdown",{enumerable:!0,get:()=>F.ElDropdown}),Object.defineProperty(v,"FoxDropdownItem",{enumerable:!0,get:()=>F.ElDropdownItem}),Object.defineProperty(v,"FoxDropdownMenu",{enumerable:!0,get:()=>F.ElDropdownMenu}),Object.defineProperty(v,"FoxEmpty",{enumerable:!0,get:()=>F.ElEmpty}),Object.defineProperty(v,"FoxFooter",{enumerable:!0,get:()=>F.ElFooter}),Object.defineProperty(v,"FoxForm",{enumerable:!0,get:()=>F.ElForm}),Object.defineProperty(v,"FoxFormItem",{enumerable:!0,get:()=>F.ElFormItem}),Object.defineProperty(v,"FoxHeader",{enumerable:!0,get:()=>F.ElHeader}),Object.defineProperty(v,"FoxIcon",{enumerable:!0,get:()=>F.ElIcon}),Object.defineProperty(v,"FoxImage",{enumerable:!0,get:()=>F.ElImage}),Object.defineProperty(v,"FoxImageViewer",{enumerable:!0,get:()=>F.ElImageViewer}),Object.defineProperty(v,"FoxInput",{enumerable:!0,get:()=>F.ElInput}),Object.defineProperty(v,"FoxInputNumber",{enumerable:!0,get:()=>F.ElInputNumber}),Object.defineProperty(v,"FoxLink",{enumerable:!0,get:()=>F.ElLink}),Object.defineProperty(v,"FoxMain",{enumerable:!0,get:()=>F.ElMain}),Object.defineProperty(v,"FoxMenu",{enumerable:!0,get:()=>F.ElMenu}),Object.defineProperty(v,"FoxMenuItem",{enumerable:!0,get:()=>F.ElMenuItem}),Object.defineProperty(v,"FoxMenuItemGroup",{enumerable:!0,get:()=>F.ElMenuItemGroup}),Object.defineProperty(v,"FoxOption",{enumerable:!0,get:()=>F.ElOption}),Object.defineProperty(v,"FoxOptionGroup",{enumerable:!0,get:()=>F.ElOptionGroup}),Object.defineProperty(v,"FoxPageHeader",{enumerable:!0,get:()=>F.ElPageHeader}),Object.defineProperty(v,"FoxPagination",{enumerable:!0,get:()=>F.ElPagination}),Object.defineProperty(v,"FoxPopconfirm",{enumerable:!0,get:()=>F.ElPopconfirm}),Object.defineProperty(v,"FoxPopover",{enumerable:!0,get:()=>F.ElPopover}),Object.defineProperty(v,"FoxPopper",{enumerable:!0,get:()=>F.ElPopper}),Object.defineProperty(v,"FoxProgress",{enumerable:!0,get:()=>F.ElProgress}),Object.defineProperty(v,"FoxRadio",{enumerable:!0,get:()=>F.ElRadio}),Object.defineProperty(v,"FoxRadioButton",{enumerable:!0,get:()=>F.ElRadioButton}),Object.defineProperty(v,"FoxRadioGroup",{enumerable:!0,get:()=>F.ElRadioGroup}),Object.defineProperty(v,"FoxRate",{enumerable:!0,get:()=>F.ElRate}),Object.defineProperty(v,"FoxResult",{enumerable:!0,get:()=>F.ElResult}),Object.defineProperty(v,"FoxRow",{enumerable:!0,get:()=>F.ElRow}),Object.defineProperty(v,"FoxScrollbar",{enumerable:!0,get:()=>F.ElScrollbar}),Object.defineProperty(v,"FoxSelect",{enumerable:!0,get:()=>F.ElSelect}),Object.defineProperty(v,"FoxSelectV2",{enumerable:!0,get:()=>F.ElSelectV2}),Object.defineProperty(v,"FoxSkeleton",{enumerable:!0,get:()=>F.ElSkeleton}),Object.defineProperty(v,"FoxSkeletonItem",{enumerable:!0,get:()=>F.ElSkeletonItem}),Object.defineProperty(v,"FoxSlider",{enumerable:!0,get:()=>F.ElSlider}),Object.defineProperty(v,"FoxSpace",{enumerable:!0,get:()=>F.ElSpace}),Object.defineProperty(v,"FoxStep",{enumerable:!0,get:()=>F.ElStep}),Object.defineProperty(v,"FoxSteps",{enumerable:!0,get:()=>F.ElSteps}),Object.defineProperty(v,"FoxSubMenu",{enumerable:!0,get:()=>F.ElSubMenu}),Object.defineProperty(v,"FoxSwitch",{enumerable:!0,get:()=>F.ElSwitch}),Object.defineProperty(v,"FoxTabPane",{enumerable:!0,get:()=>F.ElTabPane}),Object.defineProperty(v,"FoxTable",{enumerable:!0,get:()=>F.ElTable}),Object.defineProperty(v,"FoxTableColumn",{enumerable:!0,get:()=>F.ElTableColumn}),Object.defineProperty(v,"FoxTableV2",{enumerable:!0,get:()=>F.ElTableV2}),Object.defineProperty(v,"FoxTabs",{enumerable:!0,get:()=>F.ElTabs}),Object.defineProperty(v,"FoxTag",{enumerable:!0,get:()=>F.ElTag}),Object.defineProperty(v,"FoxTimePicker",{enumerable:!0,get:()=>F.ElTimePicker}),Object.defineProperty(v,"FoxTimeSelect",{enumerable:!0,get:()=>F.ElTimeSelect}),Object.defineProperty(v,"FoxTimeline",{enumerable:!0,get:()=>F.ElTimeline}),Object.defineProperty(v,"FoxTimelineItem",{enumerable:!0,get:()=>F.ElTimelineItem}),Object.defineProperty(v,"FoxTooltip",{enumerable:!0,get:()=>F.ElTooltip}),Object.defineProperty(v,"FoxTransfer",{enumerable:!0,get:()=>F.ElTransfer}),Object.defineProperty(v,"FoxTree",{enumerable:!0,get:()=>F.ElTree}),Object.defineProperty(v,"FoxTreeSelect",{enumerable:!0,get:()=>F.ElTreeSelect}),Object.defineProperty(v,"FoxTreeV2",{enumerable:!0,get:()=>F.ElTreeV2}),Object.defineProperty(v,"FoxUpload",{enumerable:!0,get:()=>F.ElUpload}),v.ActionsheetItem=Vl,v.ActionsheetPane=pn,v.AutocompleteItem=vl,v.Broadcast=zn,v.BroadcastKey=Ne,v.CalendarItem=dl,v.CascaderItem=bl,v.CheckboxItem=kl,v.Content=Jn,v.DataItemsKey=ft,v.DateItem=sl,v.DateUtils=re,v.DialogItem=jl,v.Domain=Xt,v.DomainKey=Pe,v.DomainProvider=aa,v.FloatingWindow=la,v.FooterBar=Zn,v.FoxActionsheetItem=Vl,v.FoxActionsheetPane=pn,v.FoxAutocompleteItem=vl,v.FoxCalendarItem=dl,v.FoxCascaderItem=bl,v.FoxCheckboxItem=kl,v.FoxContent=Jn,v.FoxDateItem=sl,v.FoxDialogItem=jl,v.FoxDomainProvider=aa,v.FoxFloatingWindow=la,v.FoxFooterBar=Zn,v.FoxGroup=tl,v.FoxGroupSetting=Il,v.FoxHeaderBar=Xn,v.FoxHintText=It,v.FoxIndicator=Ul,v.FoxInfiniteLoading=Yl,v.FoxInputItem=rl,v.FoxInputNumberItem=yl,v.FoxItem=Se,v.FoxMapping=At,v.FoxMoneyItem=gl,v.FoxMoreButton=Xl,v.FoxOverLay=fn,v.FoxPage=Un,v.FoxPickerItem=Rl,v.FoxPopup=gt,v.FoxPrice=un,v.FoxPullRefresh=Wl,v.FoxRadioItem=$l,v.FoxRateItem=Dl,v.FoxRollingProvider=oa,v.FoxRowItem=ol,v.FoxSearchBar=Kl,v.FoxSelectItem=il,v.FoxSlotItem=al,v.FoxStepsBar=Pl,v.FoxSwitchItem=Nl,v.FoxTableItem=Cl,v.FoxTableMappingColumn=wl,v.FoxTableRadioColumn=Sl,v.FoxTableSetting=mn,v.FoxTabsBar=bn,v.FoxTabsContainer=vn,v.FoxTabsPane=wn,v.FoxText=Gl,v.FoxTimeItem=hl,v.FoxTimeSelectItem=ml,v.FoxToast=Hl,v.FoxTour=Zl,v.FoxTreeSelectItem=El,v.Foxcalendarpicker=hn,v.Foxcascaderpicker=zl,v.Foxdatepicker=ql,v.Foxpicker=Bt,v.Group=tl,v.GroupSetting=Il,v.HeaderBar=Xn,v.HintText=It,v.Indicator=Ul,v.InfiniteLoading=Yl,v.InputItem=rl,v.InputNumberItem=yl,v.Item=Se,v.Mapping=At,v.MoneyItem=gl,v.MoreButton=Xl,v.OverLay=fn,v.Page=Un,v.PickerItem=Rl,v.Popup=gt,v.Price=un,v.PriorityPolicy=Le,v.PullRefresh=Wl,v.RadioItem=$l,v.RateItem=Dl,v.RollingProvider=oa,v.RowItem=ol,v.SearchBar=Kl,v.SelectItem=il,v.SlotItem=al,v.StepsBar=Pl,v.SwitchItem=Nl,v.TableItem=Cl,v.TableMappingColumn=wl,v.TableRadioColumn=Sl,v.TableSetting=mn,v.TabsBar=bn,v.TabsContainer=vn,v.TabsPane=wn,v.Text=Gl,v.TimeItem=hl,v.TimeSelectItem=ml,v.Toast=Hl,v.Tour=Zl,v.TreeSelectItem=El,v.UniqueID=Xa,v.ValidateSchema=Oa,v.ValidateSchemaKey=We,v.calendarpicker=hn,v.cancelRaf=Vr,v.cascaderpicker=zl,v.clearNonNumber=zr,v.clone=_n,v.compareTo=Bn,v.createBroadcast=Yt,v.createValidateSchema=Ut,v.datepicker=ql,v.debounce=Dt,v.debounceRef=ti,v.decimalLength=$a,v.default=Bg,v.defineBroadcast=Yr,v.defineConfigDomain=Ba,v.defineDataItem=Ra,v.defineDomain=Hn,v.defineItem=xe,v.definePageState=La,v.deleteGlobalValidator=Xr,v.disabledProperty=Ve,v.divide=Fn,v.excludeProps=$e,v.extend=at,v.floatData=Kr,v.getGlobalValidateCheckEvents=Ea,v.getGlobalValidateResetEvents=Va,v.getPageContentAreaHeight=Jt,v.getPageContentAreaWidth=Qt,v.getPageFooterAreaHeight=Et,v.getPageHeaderAreaHeight=Nt,v.getRootDomain=dt,v.hasSymbol=ba,v.includeProps=Ct,v.indexOf=jr,v.installRules=Ma,v.integerLength=Ca,v.isArray=Ar,v.isArrayLike=wa,v.isBrowser=ot,v.isDate=Je,v.isESModule=Rr,v.isEmptyString=ye,v.isEqual=_e,v.isFunction=Rn,v.isHidden=Kt,v.isInnerPage=ai,v.isMap=Fr,v.isNil=qn,v.isNumberString=xa,v.isObject=Re,v.isPlainObject=Ln,v.isPromise=zt,v.isRegExp=Ta,v.isSet=Br,v.isString=ya,v.isSubPage=oi,v.isSymbol=Mr,v.isTouch=Fl,v.isWindow=va,v.lastIndexOf=Hr,v.makeArray=qr,v.merge=Sa,v.multiply=ha,v.negate=ma,v.nextTick=_r,v.numberFormat=qt,v.objectToString=pa,v.once=ni,v.picker=Bt,v.property=Ee,v.raf=Mn,v.readonlyProperty=Ie,v.setGlobalValidateCheckEvents=Zr,v.setGlobalValidateHandler=Ur,v.setGlobalValidateMessages=Qr,v.setGlobalValidateResetEvents=Jr,v.setGlobalValidator=Gr,v.throttle=Fa,v.toBoolean=ce,v.toNumber=he,v.toPadding=je,v.toPx=me,v.toPxDesc=Ae,v.toTypeString=jt,v.toValue=de,v.tryTimes=Gt,v.typeOf=Ht,v.unNumberFormat=ga,v.updatePageState=Kn,v.useBroadcast=$t,v.useDomain=Ue,v.useExpose=pe,v.useInnerSize=Gn,v.usePageState=Zt,v.usePosition=Wa,v.useRawTouch=Bl,v.useRect=Al,v.useSize=tn,v.useTouch=Xo,v.valueLength=ze,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|