@fox-js/foxui-pad 4.0.1-21 → 4.0.1-22

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.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(w,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):(w=typeof globalThis<"u"?globalThis:w||self,t(w.FoxUI={},w.Vue,w.FoxValidator,w.ElementPlus,w.ElementPlusIconsVue,w.FoxI18n))})(this,function(w,t,Ge,T,ye,Ee){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Tue Mar 12 2024 21:43:01 GMT+0800 (中国标准时间)
3
- */const At=window,Ua=typeof window<"u";function Ga(){return typeof At<"u"?At.requestAnimationFrame||At.webkitRequestAnimationFrame||function(e){At.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Xa(e){Ua?cancelAnimationFrame(e):clearTimeout(e)}const qo=Ga();/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Tue Mar 26 2024 08:12:08 GMT+0800 (中国标准时间)
3
+ */const At=window,Ur=typeof window<"u";function Gr(){return typeof At<"u"?At.requestAnimationFrame||At.webkitRequestAnimationFrame||function(e){At.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Xr(e){Ur?cancelAnimationFrame(e):clearTimeout(e)}const zo=Gr();/*!
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 a=zo(e,n);return l?l==2?"-"+ke(a):e.length<a.length?ke(a.substring(1)):"-"+ke(gn(a)):ke(a)}function gn(e){let n="",l=e.length,o=e.split(".")[1],a=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 r=a>0?"0."+new Array(a).join("0")+"1":"1";return zo(n,r)}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("."),a=l[0].length,r=o[0].length;return a>r?o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""):l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""),a=l[1]?l[1].length:0,r=o[1]?o[1].length:0,(a||r)&&(a>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function zo(e,n){[e,n]=pn(e,n);let l="",o=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){l="."+l;continue}let r=parseInt(e[a])+parseInt(n[a])+o;l=r%10+l,o=Math.floor(r/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 a=e.split("."),r=a[0],i=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+i,c=mt(e,0,l),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,jo(a[1],r,o,l)?(o?"-":"")+yn(r):(o?"-":"")+r;if(a[1]){if(a[1].length<n)return(o?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");i=a[1].substring(0,n);let s=a[1].substring(n);return s&&jo(s,i,o,l)&&(i=yn(i),i.length>n)?(o?"-":"")+yn(r,parseInt(i[0]))+"."+i.substring(1):(o?"-":"")+r+"."+i}function jo(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 a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)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 a=l;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,o+=r}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,a=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=o+a;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(Ja(d,r)),l==1&&(d="-"+d),d}function Ja(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 a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=ke(n.replace(".","")),a>=0){let u=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(u==-1)e=ke(e+new Array(a+1).join("0"));else if(a>u)e=e.replace(".",""),e=ke(e+new Array(a-u+1).join("0"));else if(a<u){e=e.replace(".","");let d=e.length-u+a;e=ke(e.substring(0,d)+"."+e.substring(d))}else a==u&&(e=ke(e.replace(".","")))}let r=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")),r=u,s="0."+new Array(u).join("0")}for(l=l+2;r<=l;){let u=0;for(;parseInt(c)>=parseInt(n);)c=Ft(c,"-"+n),u++;s+=u,e?(e[0]=="."&&(s+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(s+="."),r++,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 _o(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ho(e),Ho(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 Ho(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ko(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 re{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 a="";l[0]=="-"&&(a="-",l=l.substring(1)),l.indexOf(".")>=0?(o=parseInt(o)+l.indexOf("."),l=l.replace(".","")):o=parseInt(o)+l.length,l.length<o?n=a+l+new Array(o-l.length+1).join("0"):l.length>=o&&o>0?n=a+ke(l.substring(0,o))+(l.length>o?"."+l.substring(o):""):n=a+"0."+new Array(-o+1).join("0")+l}return n}constructor(n="0"){this.value=re.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=re.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",s=r;s>0;)s<l?(l=s,s=0):s-=l,i=n.substring(s,s+l)+(s<r-l&&s>=0?o:"")+i;return(a?"-":"")+i+n.substring(r)}getPrettyValue(n,l){return re.getPrettyValue(this.value,n,l)}static round(n,l=0,o=he.HALF_EVEN){if(n=re.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 re(mt(this.value,n,l))}static floor(n){return n=re.validate(n),n.indexOf(".")===-1?n:re.round(n,0,he.FLOOR)}floor(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,he.FLOOR)}static ceil(n){return n=re.validate(n),n.indexOf(".")===-1?n:re.round(n,0,he.CEILING)}ceil(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,he.CEILING)}static add(n,l){return n=re.validate(n),l=re.validate(l),Ft(n,l)}add(n){return new re(Ft(this.value,n.getValue()))}static subtract(n,l){return n=re.validate(n),l=re.validate(l),Sn(n,l)}subtract(n){return new re(Sn(this.value,n.getValue()))}static multiply(n,l){return n=re.validate(n),l=re.validate(l),bn(n,l)}multiply(n){return new re(bn(this.value,n.getValue()))}static divide(n,l,o){return n=re.validate(n),l=re.validate(l),wn(n,l,o)}divide(n,l){return new re(wn(this.value,n.getValue(),l))}static modulus(n,l){return n=re.validate(n),l=re.validate(l),_o(n,l)}modulus(n){return new re(_o(this.value,n.getValue()))}static compareTo(n,l){return n=re.validate(n),l=re.validate(l),Ko(n,l)}compareTo(n){return Ko(this.value,n.getValue())}static negate(n){return n=re.validate(n),vn(n)}negate(){return new re(vn(this.value))}}function Wo(e,n){return re.multiply(`${e}`,`${n}`)}function Cn(e,n,l=8){return re.divide(`${e}`,`${n}`,l)}function Tn(e,n){return e=`${e}`,n=`${n}`,re.compareTo(e,n)}function Yo(e){return re.negate(e)}function Rt(e,n=-1,l=!1,o=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let s=r,c="",u=r.indexOf(".");u!=-1&&(s=r.substring(0,u),c=r.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?a:"");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 Uo(e){let n=`${e}`,l=n.charAt(0);l=="-"?n=n.substring(1):l="";let o=n.replace(/[^\d\.-]/g,"");return`${l}${o}`}const Go=qo,Za=Array.isArray,Qa=e=>Mt(e)==="[object Map]",er=e=>Mt(e)==="[object Set]",Le=e=>e instanceof Date,kn=e=>typeof e=="function",Xo=e=>typeof e=="string",tr=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",nr=e=>Be(e)&&kn(e.then)&&kn(e.catch),Jo=Object.prototype.toString,Mt=e=>Jo.call(e),$n=e=>Mt(e)==="[object Object]",Zo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function or(e){return e.__esModule||Zo&&e[Symbol.toStringTag]==="Module"}const lr=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,a=!1;for(typeof n=="boolean"&&(a=n,n=e[l]??{},l++),typeof n!="object"&&(n={});l<o;l++)if(e[l]!==null&&e[l]!==void 0){let r=e[l];for(let i in r){let s=n[i],c=r[i];if(s!==c)if(a===!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(a,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 a in n){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!$n(i))continue;r=Dn(r,i,l),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}const o=Object.getOwnPropertySymbols(n);for(let a of o){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!$n(i))continue;r=Dn(r,i,l),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}}return e}const xn=lr?Promise.resolve():null;function ar(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 ae(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 rr={"[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):rr[l]||"object"}function Qo(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 el(e){let n=!!e&&"length"in e&&e.length,l=nt(e);return l==="function"||Qo(e)?!1:l==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function tl(e,n){let l=+n.length,o=0,a=e.length;for(;o<l;o++)e[a++]=n[o];return e.length=a,e}function ir(e,n=[]){let l=n;return e!=null&&(el(Object(e))?tl(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 a=Object.keys(e),r=Object.keys(n);if(a.length!==r.length)return!1;for(let i=0;i<a.length;i++){let s=a[i],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 a=0;a<e.length;a++){let r=e[a],i=n[a];if(!Pe(r,i))return!1}return!0}return!1}const Je=typeof window<"u";function En(e){return e==null}function nl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const be=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function ol(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 ll(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 rl(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 sr(e,n=!0,l=!0){n?e=rl(e,".",/\./g):e=e.replace(/\./g,""),l?e=rl(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function cr(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(l=>{if(Pe(e,l))return!0}):n.indexOf(e)}function ur(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 a in o)l[a]=e[a]}),l}function ve(e,...n){const l=[];n.forEach(a=>{Reflect.apply([].push,l,Reflect.ownKeys(a))});const o={};for(const a in e)l.includes(a)||(o[a]=e[a]);return o}const fr=(e,n,l)=>{const o=Object.assign({},e),a=Object.assign({},l);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(o[r]=n[a[r]]):n[r]&&(o[r]=n[r])}),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 a=!1;!n.name||n.name==="*"?a=!0:!n.name||n.name==="+"?(a=!1,n.name="*"):nl(n.name)&&this.name&&n.name.test(this.name)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(a=!0);const r=[];if(a){const i=this.callbacks.get(l);if(typeof i=="function"){const c=Reflect.apply(i,this.proxy,[...o]);c!=null&&r.push(c)}const s=this.proxy??{};if(typeof s[l]=="function"){const c=Reflect.apply(s[l],s,[...o]);c!=null&&r.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,r,[...s])}),r}emitToChildren(n,l,...o){const a=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},l,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(n,l){this.callbacks.set(n,l)}}function Pt(e,n,l,o){const a=new Nn(n,e,l);if(o&&typeof o=="object")for(const r in o)a.on(r,o[r]);return a}function dr(e,n,l){const o=l;if(o[we])return o[we];const a=t.inject(we,null),r=new Nn(a,l,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return o[we]=r,t.provide(we,r),t.onUnmounted(()=>{r.destroy(),o[we]=void 0}),r}function yt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[we]??t.inject(we,null):t.inject(we,null)}const Ze=e=>e.default??e;class hr{error(n,l){const o=l,a=yt(l);a?a.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 a=o,r=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?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!s&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let il=new hr;function mr(e){il=e}function gr(e,n){Ze(Ge).setValidator(e,n)}function pr(e){Ze(Ge).deleteValidator(e)}let sl=["blur","clear"];function yr(e){sl=e}function cl(){return sl}let ul=["focus","change"];function br(e){ul=e}function fl(){return ul}function wr(e){Ze(Ge).messages(e)}function bt(...e){const n=[];return e.forEach(l=>{l.forEach(o=>{const a=n.findIndex(r=>r.type===o.type);a!==-1&&n.splice(a,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 dl{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 r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let c={type:r};i!==null&&typeof i=="object"&&Object.assign(c,i),o.push(c);continue}let s=this.getValidator(r);if(s!==null){let c={type:r,validator:s};o.push(c)}}this.attrRules=qt(o);const a=bt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,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 a=il;return a&&typeof a[n]=="function"?Reflect.apply(a[n],a,[...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?Ze(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?Ze(Ge).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,l=!1){if(l)return Ze(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 a={[`${o}`]:l},r=this.getValue(),i={[`${o}`]:r},s=Ze(Ge),c=new s(a),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 a=l.valueName;l.validateHandler={getValue(r){return r[a]}}}return new dl(n,l,e)}const hl=Symbol.for("EventEmitterKey");class Sr{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 a=o.findIndex(r=>r===l);a!==-1&&o.splice(a,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(a=>{try{Reflect.apply(a,null,[n,...l])}catch(r){console.error(r.message,r)}}),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 ml(e,n){let l=0;return function(...o){const a=new Date().getTime();a-l<n||(l=a,Reflect.apply(e,null,[...o]))}}function vr(e,n){const l=wt((o,a)=>{e=o,a()},n);return t.customRef((o,a)=>({get(){return o(),e},set(r){l(r,a)}}))}function Cr(e){let n=!1;return function(...l){n||(n=!0,Reflect.apply(e,null,[...l]))}}function jt(e,n,l,o=0,a=!0,r){let i=n,s=0;if(a){const u=e();if(s++,u){typeof r=="function"&&r(!0);return}if(s>l){typeof r=="function"&&r(!1);return}}const c=()=>{const u=e();if(s++,u){typeof r=="function"&&r(!0);return}if(s>l){typeof r=="function"&&r(!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 a=n[o];l.length>0&&l.indexOf(a)!==-1||(this._props[o]=a)}}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 a=o._props[n];l.push(a)}o=o._parent}return l}}const Tr=new _t;function lt(){return Tr}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 a=t.getCurrentInstance(),r=a?.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=>{r[Vn]||p(g),c.set("modelValue",g)},d=()=>c.getForSelf("modelValue")??null,h=()=>r[Vn]??null,p=g=>{const S={};Xe(!0,S,t.toRaw(g)),r[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),r[Ie]=c,t.provide(Ie,c);let $=null,m=null;if(a!==null){const g=t.inject(we,null);$=Pt(r,g,s,o),c.broadcast=$,r[we]=$,t.provide(we,$),r.broadcast=(y,b,...f)=>Reflect.apply($.emit,$,[y,b,...f]);const S=t.inject(qe,null);m=zt(r,S,{componentName:""}),c.validateSchema=m,r[qe]=m,t.provide(qe,m),r[ot]=new Map,r.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})},r.setNameValidateRules=(y,b=!0,f=!1)=>{if(f===!0){Reflect.ownKeys(y).forEach(I=>{let q=String(I);const B=yl(c,q,{componentName:"",fieldName:q,pureDataValidate:!0},$,m);r[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)}},r.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)},r.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);r.clearValidate(y)},r.setModelValue=(y,b)=>{!b||b===s?u(y):$?.emitToChildren({name:b},"setModelValue",y)},r.getModelValue=()=>d()}return t.onUnmounted(()=>{c.destroy(),r[Ie]=void 0,r[ot]&&(r[ot].clear(),r[ot]=void 0),$!==null&&($.destroy(),r[we]=void 0),m!==null&&(m.destroy(),r[qe]=void 0)}),c}function gl(e,n,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(Ie,null);r===null&&(r=lt());const i=e||n.prop||n.name,s=new _t(i);return s.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{s.merge(c,l)},{immediate:!0}):s.merge(n,l),a[Ie]=s,t.provide(Ie,s),t.onUnmounted(()=>{s.destroy(),a[Ie]=void 0}),s}function pl(e,n,l){const a=ze(e)?.get("rules");if(!a)return;let r=a[l];r&&(Array.isArray(r)||(r=[r]),r.forEach(i=>{n.setRule(i)}))}function Se(e,n,l){const a=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(we,null),s=Pt(a,i,r,l);a[we]=s,t.provide(we,s),a.broadcast=(m,g,...S)=>Reflect.apply(s.emit,s,[m,g,...S]);const c=t.inject(qe,null);e.fieldName=e.fieldName??r;const u=zt(a,c,e);a[qe]=u,t.provide(qe,u),pl(a,u,r),a.validate=(m=null)=>{const g=[];let S=!1,y=!1;if(Array.isArray(m)&&m.indexOf(r)!==-1)y=!0,S=!0;else if(m&&typeof m=="object"){const b=m;b.ignoreHidden===!0&&Lt(a.$el)?y=!1:(Array.isArray(b.include)&&b.include.indexOf(r)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(r),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})},a.setValidateRule=m=>u?.setRule(m),a.setNameValidateRules=(m,g=!1)=>{const S=m[r];if(S&&u?.setRule(S),g){const y={name:b=>Reflect.ownKeys(m).includes(b)};s.emitToChildren(y,"setNameValidateRules",m,!1)}},a.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 Sr(a);a[hl]=d;const h=wt((m="validate")=>{m==="reset"?u.clear():u.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:cl()).forEach(m=>{d.on(m,g=>{h("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:fl()).forEach(m=>{d.on(m,g=>{h("reset")})}),t.onUnmounted(()=>{s.destroy(),a[we]=void 0,u.destroy(),a[qe]=void 0,d.destroy(),a[hl]=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 yl(e,n,l,o,a){const r={},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({},a,l);r.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})},r.setValidateRule=d=>c?.setRule(d),r.setNameValidateRules=d=>{const h=d[i];h&&c?.setRule(h)};const u=Pt(null,o,i,r);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 a=Number(e.substring(0,l)),r=1;if(Je){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(r=Number(i.substring(0,s)))}return a*=r,a}if(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,a=-1,r=-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,r):e.height=ce(r)-ce(i,r)-ce(s,r),e.width=ce(l.width??n.width??0,a)}}function bl(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},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(o.safeAreaTop=ce(a.top),o.safeAreaBottom=ce(a.bottom),o.safeAreaLeft=ce(a.left),o.safeAreaRight=ce(a.right));const r=e.get("pageLayout");if(!r)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,r,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 kr(e,n){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[n,e]):!1}function $r(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 a=ze();return a==null?e:l===0?t.computed(()=>{const r=a.getAll(n);for(let s=r.length-1;s>=0;s--){const c=r[s];if(Bn(c,o))return c}const i=e.value;return Bn(i,o)?i:null}):t.computed(()=>{const r=e.value;return Bn(r,o)?r:a?.get(n)})}function $e(e){return Ve(e,"readonly",0,function(l){return ae(l)})}function De(e){return Ve(e,"disabled",0,function(l){return ae(l)})}function ie(e,n="modelValue",l){const o=t.toRef(e,n);let a=o.value;typeof l=="function"&&(a=l(o.value));const r=t.ref(a);return t.watch(o,i=>{if(typeof l=="function"){const s=l(i);s!==r.value&&(r.value=s)}else i!==r.value&&(r.value=i)}),r}const wl=new Map,Yt=new Map;let An=null;function Dr(e){An=e}function Sl(e,n,l){if(l){let o=Yt.get(l);o||(o=new Map,Yt.set(l,o)),o.set(e,n)}else wl.set(e,n)}function Fe(e,n,l){!l&&An&&(l=An(e)??void 0);let o=null;if(l){let a=Yt.get(l);a&&(o=a.get(n))}return o||(o=wl.get(n)),o}function xr(e,n){for(let l in e){const o=e[l];Sl(l,o,n)}}function Er(e){Yt.delete(e)}function Nr(){return{top:0,left:0,bottom:0,right:0}}function Vr(e=0,n=0){if(Je){const l=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,a={width:l,height:o-ce(e,o)-ce(n,o)};return{rootWidth:l,rootHeight:o,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class Ir{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(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=lt();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=ml(()=>{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,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in l)o.indexOf(r)===-1&&a.set(r,l[r])}initPageLayout(n,l){const o=n.headerBarHeight??0,a=n.footerBarHeight??0,r=Xe({},Nr(),n.safeAreaInset),i=Vr(o,a),s=Xe({},i.pageLayout,n.pageLayout);l=l??lt(),l.set("safeAreaInset",r),l.set("headerBarHeight",o),l.set("footerBarHeight",a),l.set("pageLayout",s),l.set("rootWidth",i.rootWidth),l.set("rootHeight",i.rootHeight)}setScopeGetter(n){Dr(n)}setAPI(n,l,o){Sl(n,l,o)}getAPI(n,l,o){return Fe(n,l,o)}batchSetAPI(n,l){xr(n,l)}clearScopeAPI(n){Er(n)}getRootDomain(){return lt()}}const Or=[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],Br=[T.ElInfiniteScroll,T.ElLoading,T.ElMessage,T.ElMessageBox,T.ElNotification,T.ElPopoverDirective],Ar=e=>{Or.forEach(n=>{let l=n.name;typeof l=="string"?(l=`Fox${l.slice(2)}`,e.component(l,n)):e.use(n)}),Br.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}},vl={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}},Cl={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}},Tl=[];for(const e in Cl)Tl.push(e);function me(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}const Fr=Symbol.for("InnerPageScopeKey"),Rr=(e,n)=>({inheritAttrs:!0,props:{...ge,...vl,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 a=In(l.name,l);if(a){const u=bl(a,l);me({getPageContentHeight:()=>Kt(a,u),getPageContentWidth:()=>Wt(a,u),getPageHeaderHeight:()=>St(a,u),getPageFooterHeight:()=>vt(a,u)});const d=t.inject(Fr,!1);u&&d&&(u.contentHeight="100%")}const r=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:r,styles:i}}}),{componentName:Mr,create:Lr,scope:Qh}=le("page"),Pr=Lr(Rr(Mr));function qr(e,n,l,o,a,r){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,a]of n)l[o]=a;return l},Fn=ue(Pr,[["render",qr]]);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")),a=parseFloat(l.getPropertyValue("padding-right")),r=parseFloat(l.getPropertyValue("padding-top")),i=parseFloat(l.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-a,height:n.clientHeight-r-i}}const zr=(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(a,r){const i=ze(),s=i?Ht(i):null;s&&(s.headerMounted=!0);const c=e,u=t.computed(()=>({[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed,[`${c}--safe-area-inset-top`]:a.safeAreaInsetTop})),d=t.computed(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),h=a.height!==null&&a.height!==void 0?ce(a.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(a.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),a.padding){const k=Ae(a.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(){r.emit("back")}function f(){r.emit("click-title")}function F(){r.emit("click-right")}function I(){r.emit("click-right-text")}const q=()=>{if(!a.leftShow)return null;const v=[];if(r.slots.left)v.push(r.slots.left());else{if(r.slots.leftIcon){const k=t.h("view",{class:"left-icon",onClick:b},[r.slots.leftIcon()]);v.push(k)}else if(a.leftIcon){const k=t.h("view",{class:"left-icon",onClick:b},[t.h(a.leftIcon)]);v.push(k)}if(a.leftText){const k=t.h("view",{class:"left-text",onClick:b},[a.leftText]);v.push(k)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__left"},v)},L=()=>{if(!a.rightShow)return null;const v=[];if(r.slots.right)v.push(r.slots.right());else{if(a.rightText){const k=t.h("view",{class:"right-text",onClick:I},[a.rightText]);v.push(k)}if(r.slots.rightIcon){const k=t.h("view",{class:"right-icon",onClick:F},[r.slots.rightIcon()]);v.push(k)}else if(a.rightIcon){const k=t.h("view",{class:"right-icon",onClick:F},[t.h(a.rightIcon)]);v.push(k)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__right"},v)},B=()=>{if(!a.titleShow)return null;const v=[],k=r.slots.default?r.slots.default():null;if(k)v.push(k);else{if(a.title){const A=t.h("view",{class:"title-text"},[a.title]);v.push(A)}if(r.slots.titleIcon){const A=t.h("view",{class:"title-icon",onClick:f},[r.slots.titleIcon()]);v.push(A)}else if(a.titleIcon){const A=t.h("view",{class:"title-icon",onClick:f},[t.h(a.titleIcon)]);v.push(A)}}return v.length===0?null:t.h("view",{class:"fox-header-bar__title"},v)},N=()=>{const v=[],k=r.slots.bottom?r.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(r.slots.all)v.push(r.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:jr,create:_r,scope:Hr}=le("header-bar"),Ln=_r(zr(jr,Hr,ye.ArrowLeft));function Kr(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,a){const r=ze(),i=r?Ht(r):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(r&&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=a.slots.default?a.slots.default():[],g={ref:d,class:s.value,style:$.value};return t.h("view",g,m)}}}}const{componentName:Wr,create:Yr,scope:em}=le("footer-bar"),Pn=Yr(Kr(Wr));function Ur(e,n){return{props:{padding:{type:[Object],required:!1}},setup(l){const o=ze(),a=t.computed(()=>({[e]:!0})),r=o?Ht(o):null,i=t.computed(()=>{const u={};if(o&&r){if(l.padding){const $=Ae(l.padding);Object.assign(r.contentPadding,$)}const d=St(o,r),h=vt(o,r);let p="";if(r.contentHeight?p=`${r.contentHeight}`:p=`${r.height}px`,r.contentPadding,u.height=p,r.contentPadding.top||d>0){const $=(r&&r.contentPadding&&r.contentPadding.top)??0;u.paddingTop=`${d+$}px`}if(r.contentPadding.bottom||h>0){const $=(r&&r.contentPadding&&r.contentPadding.bottom)??0;u.paddingBottom=`${h+$}px`}return r.contentPadding.left&&(u.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(u.paddingRight=`${r.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(r&&s.value){const u=Mn(s.value);r.contentInnerHeight=u.height,r.contentInnerWidth=u.width}};return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>St(o),()=>vt(o)],([])=>{c()}),{contentRef:s,classes:a,styles:i}}}}const{componentName:Gr,create:Xr,scope:tm}=le("content"),Jr=Xr(Ur(Gr));function Zr(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const qn=ue(Jr,[["render",Zr]]),at="GroupStateKey",kl=Symbol.for("GroupScopeKey");function Ut(){return t.inject(kl,!1)}function Gt(e=!0){t.provide(kl,e)}function Qr(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const a=n[o];En(a)||(e[o]=a)})}function ei(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Qr(o,n);const a=t.shallowRef(o),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(at,r),r}function zn(e,n,l=-1,o=-1,a=!1,r,i,s){const c=e.get(at);if(!c)return;const u=e.get("groupLayout")??{};l===-1&&(l=u.column??1),o===-1&&(o=u.gutter??0),r||(r=u.minItemWidth??-1),i||(i=u.maxItemWidth??-1);const d=ce(r),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(a)p();else{const $=++c.passport;setTimeout(()=>{$===c.passport&&p()},50)}}function Xt(e,n=!1){let l;return n?l=e.getForParent(at):l=e.get(at),l.layout}function Jt(e,n=!1){let l;return n?l=e.getForParent(at):l=e.get(at),l.order}function $l(e,n=1){if(n==="stretch")return-1;const l=se(n);return l===-1?100:100*l/e}function Zt(e,n,l=1,o=0,a){const r={};let i=0;a?i=ce(a):i=$l(n.column,l),i>0&&(r.width=`${i}%`);const s=$l(n.column,o);s>0&&(r["margin-left"]=`${s}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}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 a=se(l);if(a===-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(a>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 r=se(o)%n.column;let i=(e.index+r)%n.column,s=i+a;return s>n.column?(i=0,s=i+a,e.index=e.index+(n.column-i)+a):e.index=e.index+r+a,r>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Dl=Symbol("RollingStateKey");function ti(e){t.provide(Dl,e)}function ni(){return t.inject(Dl,null)}function jn(e){let n=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(l.getPropertyValue("padding-top")),r=parseFloat(l.getPropertyValue("padding-bottom"));n=e.clientHeight-a-r}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 ai={...ge,...vl,...Cl};function ri(e,n,l){return{props:ai,emits:["update:collapse"],setup(o,a){const r=In(o.name,o,Tl),i=ei(r,{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&&r?Xt(r,!0).value:null),p=t.getCurrentInstance(),$=(z,Y=!1)=>{const J=p?.proxy;J&&typeof J.setNameValidateRules=="function"&&J.setNameValidateRules(z,!0,Y)};t.watch([()=>o.rules,()=>o.pureDataRules],([z,Y],[J,W])=>{if(z&&J){const O=t.toRaw(J),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?Jt(r,!0):null;if(h.value&&Y){if(h.value.type==="grid"){const J=Qt(Y,h.value,o.span,o.offset);Object.assign(z,J)}else if(h.value.type==="flow"){const J=Zt(Y,h.value,o.span,o.offset,o.width);Object.assign(z,J)}}else if(o.width){const J=Ce(o.width);z.width=J}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 J=li(B.value,i.layout.value.column,i.layout.value.gutter);Y=`repeat(${i.layout.value.column}, ${J})`}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:ae(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(r,B.value,f.value,b.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([B,f,b],([z,Y,J])=>{i.order.index=0,zn(r,z,Y,J,!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 J=C.value;if(J&&M.value!==z){if(R=R===-1?oi(J):R,H.value=!0,Y)if(J.style["will-change"]="height",J.ontransitionend=function(){J.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,a.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(r,B.value,f.value,b.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let Z=null,ne=!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(Je&&(z&&j(ae(o.collapse),!1),o.autoLayout&&Array.isArray(I)&&I.length>0)){const Y=I[0];N(Y),window.ResizeObserver&&(Z=new window.ResizeObserver(()=>{N(Y)}),Z.observe(Y))}},Q=()=>{Z?.disconnect(),Z=null},te=!d.value||c?.acquire();te&&(u.value=d.value?!0:null),t.onMounted(()=>{if(te&&(P(ne),ne=!1),d.value&&c){let z=null,Y=c.initialHeight;c.observe(C.value,J=>{if(J!==u.value)if(J)u.value=!0,M.value||(V.value=""),z=setTimeout(()=>{z=null,u.value!==!1&&(P(ne),ne=!1)},100);else{if(z!==null&&clearTimeout(z),u.value=!1,!M.value)if(ne)V.value=c.initialHeight;else{let W=jn(C.value);W<=0?V.value=Y:(V.value=`${W}px`,Y=V.value)}ne||Q()}})}}),t.onUnmounted(()=>{Z?.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 J={class:A.value},W=l(o.collapseIcon,J);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,J,W)=>{const O={...S.value};return Y===0&&(O[`${m}__first`]=!0),J>=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(a.slots.header){const O={key:`${Y++}`,ref:D,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},U=t.h("div",O,[a.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||a.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(a.slots.title){const ee=t.h("div",{class:{[`${m}__header-title`]:!0}},[a.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(a.slots.toolbar&&O.push(a.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 J=a.slots.default?a.slots.default():[],W=i.layout.value.type;if(W==="grid"){const O=_(J,Y++,0,J.length);z.push(O)}else if(W==="flow"){const O=_(J,Y++,0,J.length);z.push(O)}else for(let O=0;O<J.length;O++){const U=J[O],ee=_([U],Y++,O,J.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(ri(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\((.+)\)/,xl=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,a=n;for(;a!==null;)l+=a.offsetLeft,o+=a.offsetTop,a=a.offsetParent;let r=0,i=0,s=0,c=0;for(a=n;a!==document;){i+=a.scrollTop,r+=a.scrollLeft;const{transform:u}=window.getComputedStyle(a);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]))}}a=a.parentNode}return l-=r,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 a=document.body.parentNode;for(;o&&o!==a;){let r=this.monitorRegister.get(o);r||(r=new di,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(l),o=o.parentNode}}unwatch(n,l){let o=n.parentNode;const a=document.body.parentNode;for(;o&&o!==a;){let r=this.monitorRegister.get(o);r&&(r.remove(l),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const El=new hi,Nl={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},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:{...Nl},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)),a=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),r=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:a,decimalText:r}}}),yi=["innerHTML"],bi=["innerHTML"];function wi(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,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:{...Nl,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}),a=t.ref(0),r=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 Z=j[X];if(K[0]=Z,R[1]&&(K[1]=R[1]),Z==="top"){const ne=A.y-M-e.arrowSize-e.offset;if(ne>=0){G.top=ne;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(Z==="bottom"){const ne=A.y+D+e.arrowSize+e.offset;if(ne+M<=H){G.top=ne;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(Z==="left"){const ne=A.x-E-e.arrowSize-e.offset;if(ne>=0){G.left=ne;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(Z==="right"){const ne=A.x+C+e.arrowSize+e.offset;if(ne+E<=V){G.left=ne;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(!Je||A===!1||!k)return;o.value=xl(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const D=c.value.offsetHeight,E=c.value.offsetWidth,{bestPlacement:M,bestInsetRect:V}=u(e.placement,o.value,a.value,r.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),El.watch(e.reference,p),y.observe(e.reference)}),t.onBeforeMount(()=>{El.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"]=`${a.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,a,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock(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 Vl{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 Vl,rt=new Map,tn=e=>{if(e){const n=document.getElementById(e);rt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of rt.keys()){const l=document.getElementById(n);l&&l.parentNode?.removeChild(l)}rt.clear()}},ki=e=>{e.unmount=tn;const n=document.getElementById(e.id);if(n){const l=rt.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,rt.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 a=l.id;return a&&rt.has(a)?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:Il,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:Il,validate:!1},l);const o=ze(),a=Ut();Gt(!1);const r=t.computed(()=>a&&o?Xt(o,!1).value:null),i=Il,s=t.ref(null),c=t.computed(()=>{const x={[i]:!0,[`${i}__gutter`]:r.value&&r.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:ae(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={},_=a&&o?Jt(o,!1):null;if(r.value&&_)if(r.value.type==="grid"){const z=Qt(_,r.value,e.span,e.offset);Object.assign(x,z)}else if(r.value.type==="flow"){const z=Zt(_,r.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??ae(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})),Z=t.ref();let ne="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([x,_,z,Y])=>{Z.value&&(x&&!be(_)?ne?xe.show(Z.value,_,{...Y,id:ne,type:z},!0):ne=xe.show(Z.value,_,{...Y,type:z},!0):xe.hide(ne))});let P=null;const Q=()=>{P||!Z.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(Z.value))},te=()=>{!P||!Z.value||(P.unobserve(Z.value),P=null)};return t.watch(()=>ae(e.appearListen),x=>{x?Q():te()}),t.onMounted(()=>{ae(e.appearListen)&&Q()}),t.onUnmounted(te),{classes:c,styles:d,mainClasses:S,hasLabel:$,labelClasses:y,labelStyles:f,labelStringClasses:F,contentClasses:I,contentStyles:q,contentRef:Z,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,a,r){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 a=ze(),r=Ut();Gt(!1);const i=t.computed(()=>r&&a?Xt(a,!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=r&&a?Jt(a,!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=Zt(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 a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:l.span==="stretch",[`${a}__${l.align}`]:!0})),i=ze(),s=Ut();Gt(!1);const c=t.computed(()=>{const u={};if(s&&i){const d=Xt(i,!1),h=Jt(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=Zt(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:{[`${a}__divide`]:!0}});u.push($)}u.push(h[p])}else Reflect.apply([].push,u,h)}const d={class:r.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},Ol={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,...Ol},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,a){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.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`]:r.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(a.attrs),ref:A,class:$.value,placeholder:u.placeholder.value,clearable:o.clearable,disabled:r.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={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:k.value&&(E.suffix=()=>[o.unit]);const M=[],V=t.h(T.ElInput,D,E);M.push(V);const H={default:()=>M};a.slots.default&&(H.label=a.slots.default),a.slots.default&&(H.fixedTip=a.slots.fixedTip);const j={...ve(o,Ol),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],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:{}}},Bl=2e3;let Al=Bl;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 a=t.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),r=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:a.zIndex,transitionDuration:`${l.duration}s`,...l.style})),s=t.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),c=()=>{l.zIndex!==Bl&&(Al=Number(l.zIndex)),o("update:visible",!0),a.zIndex=++Al,l.destroyOnClose&&(a.showSlot=!0),o("open")},u=()=>{o("update:visible",!1),o("close"),l.destroyOnClose&&setTimeout(()=>{a.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(()=>{a.closed=l.closeable}),{...t.toRefs(a),popStyle:i,transitionName:s,classes:r,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}},Xn={...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=()=>Je?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),a=t.computed(()=>({[Ki]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watchEffect(()=>{e.visible?l():o()}),{classes:a,style:r,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ui(e,n,l,o,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const 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),Ji=[Xi],Zi=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,a=c=>{o("click",c)},r=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=r(l.height)??r(l.size),c.width=r(l.width)??r(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:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ji,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,a=c=>{o("click",c)},r=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=r(l.height)??r(l.size),c.width=r(l.width)??r(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:a,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),as=[ls],rs=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,a=c=>{o("click",c)},r=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=r(l.height)??r(l.size),c.width=r(l.width)??r(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:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},as,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,a=c=>{o("click",c)},r=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=r(l.height)??r(l.size),c.width=r(l.width)??r(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:a,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:rs}));function ms(e,n,l,o,a,r){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),a=t.ref(0),r=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,a.value=y.clientX,r.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:a,moveY:r,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 Zn(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 a=Fe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function Ss(){const e=t.getCurrentInstance();return new ws(e.proxy)}function zl(e,n,l){const o=Re(e,n),a=Re(e,l);if(o!==a)return!1;const r=et(e,n),i=et(e,l);return r===i}function vs(e,n,l,o){if(l.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=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(r==="text")return Re(e,d)===s;if(r==="value"){let h=et(e,d);return h==null&&(h=Re(e,d)),h===s}else if(r==="item")return zl(e,d,s)});if(u==-1)break;a.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(r==="text")return Re(e,h)===c;if(r==="value"){let p=et(e,h);return p==null&&(p=Re(e,h)),p===c}else if(r==="item")return zl(e,h,c)});if(u==-1)break;a.push(u);const d=Zn(e,i[u]);if(!Array.isArray(d))break;i=d}}return a}function jl(e,n,l,o){if(l.length==0)return null;const a={texts:[],values:[],items:[]},r=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(a.texts.push(d),a.items.push(u),r==="text")a.values.push(d);else if(r==="value"){let h=et(e,u);h==null&&(h=d),a.values.push(h)}else a.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,a.texts.push(d),a.items.push(h),r==="text")a.values.push(d);else if(r==="value"){let p=et(e,u);p==null&&(p=d),a.values.push(p)}else a.values.push(h);if(!Array.isArray(u.children))break;i=u.children}}return a}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`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=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:`${r.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+r.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:a,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,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${s}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(s+1)}]),style:t.normalizeStyle(e.setRollerStyle(s+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",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:{...Xn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:l,t:o}=Ee.useFoxI18n(Bs),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(ps());t.watch(()=>e.visible,v=>{v&&i.value<=0&&setTimeout(()=>{if(r.value){const k=Qe(r.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=Zn(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=Zn(e,E);if(!Array.isArray(M))break;A=M,k++}return v}),I=t.computed(()=>se(+e.visibleItemCount-1)/2*i.value);return{...a,pickerLineRef:r,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,a,r){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={...Xn,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}};function qs(e,n,l){return{props:{...ge,...Te,...Kl},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(o,a){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.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:ae(o.clearable),readonly:!0,value:y.value,onClick:f,onFocus:v,onBlur:k},M={};a.slots.prepend&&(M.prepend=a.slots.prepend),a.slots.append&&(M.append=a.slots.append),a.slots.prefix&&(M.prefix=a.slots.prefix),a.slots.suffix?M.suffix=a.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};a.slots.default&&(R.label=a.slots.default),a.slots.fixedTip&&(R.fixedTip=a.slots.fixedTip);const j=pt(o,Xn);j.disabled=!1,j.readonly=r.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??a.attrs.name}_item`};return t.h(l,X,R)}}}}const{componentName:zs,create:js,scope:_s}=le("select-item"),Qn=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,a=36e5,r="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:r,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(te,x){var _=v.w(V.$u?Date.UTC(V.$y,x,te):new Date(V.$y,x,te),V);return H?_:_.endOf(u)},G=function(te,x){return v.w(V.toDate()[te].apply(V.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(x)),V)},K=this.$W,X=this.$M,Z=this.$D,ne="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?Z-Q:Z+(6-Q),X);case u:case m:return G(ne+"Hours",0);case c:return G(ne+"Minutes",1);case s:return G(ne+"Seconds",2);case i:return G(ne+"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[r]=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 Z=N(H);return v.w(Z.date(Z.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]=a,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,Z=V.months,ne=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},te={YY:String(this.$y).slice(-2),YYYY:this.$y,M:K+1,MM:v.s(K+1,2,"0"),MMM:ne(V.monthsShort,K,Z,3),MMMM:ne(Z,K),D:this.$D,DD:v.s(this.$D,2,"0"),d:String(this.$W),dd:ne(V.weekdaysMin,this.$W,X,2),ddd:ne(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 _||te[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/a,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",r],["$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,a=/\d\d/,r=/\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:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[a,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:[r,u("month")],MM:[a,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:[a,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,Z=R.minutes,ne=R.seconds,P=R.milliseconds,Q=R.zone,te=new Date,x=K||(j||G?1:te.getDate()),_=j||te.getFullYear(),z=0;j&&!G||(z=G>0?G-1:te.getMonth());var Y=X||0,J=Z||0,W=ne||0,O=P||0;return Q?new Date(Date.UTC(_,z,x,Y,J,W,O+60*Q.offset*1e3)):H?new Date(Date.UTC(_,z,x,Y,J,W,O)):new Date(_,z,x,Y,J,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,a){var r=o.prototype,i=r.format;a.en.ordinal=function(s){var c=["th","st","nd","rd"],u=s%100;return"["+s+(c[(u-20)%10]||c[u]||c[0])+"]"},r.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,a){var r=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 a.Ls[a.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}};r.localeData=function(){return d.bind(this)()},a.localeData=function(){var h=c();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(p){return u(h,p)},meridiem:h.meridiem,ordinal:h.ordinal}},a.months=function(){return s(c(),"months")},a.monthsShort=function(){return s(c(),"monthsShort","months",3)},a.weekdays=function(h){return s(c(),"weekdays",null,null,h)},a.weekdaysShort=function(h){return s(c(),"weekdaysShort","weekdays",3,h)},a.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(a,r,i){var s=r.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 Js=Xl.exports;const Zs=Ke(Js);var Jl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o){o.prototype.weekYear=function(){var a=this.month(),r=this.week(),i=this.year();return r===1&&a===11?i+1:a===0&&r>=52?i-1:i}}})})(Jl);var Qs=Jl.exports;const ec=Ke(Qs);var Zl={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o,a){o.prototype.dayOfYear=function(r){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})})(Zl);var tc=Zl.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(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(Ql);var oc=Ql.exports;const lc=Ke(oc);var ea={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o){o.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(ea);var ac=ea.exports;const rc=Ke(ac);Me.extend(Xs),Me.extend(Us),Me.extend(Ws),Me.extend(Zs),Me.extend(ec),Me.extend(nc),Me.extend(lc),Me.extend(rc);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 a=new Date(e+"/"+n+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},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),a=this.getNumTwoBit(e.getDate());return[l,o,a].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 a=new Date(Number(e),parseInt(n)-1,Number(l));let r=a.getDay(),i=a.getDate(),s=6-r;return o!==0&&(r=r==0?7:r,s=7-r),Math.ceil((i+s)/7)},getYearWeek:function(e,n,l,o=0){const a=new Date(Number(e),parseInt(n)-1,Number(l)),r=new Date(Number(e),0,1),i=Math.round((a.valueOf()-r.valueOf())/864e5);let s=a.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 a=new Date(Number(e),parseInt(n)-1,Number(l)),r=a.getTime();let i=a.getDay();if(o===0){const c=r-i*864e5,u=r+(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=r-(i-1)*s,u=r+(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)),a=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i},inScope4Month(e,n,l){const o=new Date(new Date(n).setMonth(n.getMonth()+l)),a=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i}},ta=new Date().getFullYear(),eo={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 a=Math.max(o.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},to=(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 no={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(ta-10,0,1),validator:Le},maxDate:{type:Date,default:()=>new Date(ta+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:{...no},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")},a=t.ref(!1);t.watch(()=>e.visible,y=>{a.value=y});function r(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=r(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,eo[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],r(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],r(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],r(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:a,onClose:()=>{a.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:y=>{$(y),a.value=!1;let b=p.value??new Date;if(e.valueFormat){let f=to(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,a,r){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=eo[l]}return n}const na={...no,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function dc(e,n,l){return{props:{...ge,...Te,...na,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,a){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.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,eo[o.type])??R:Le(R)?R:null),$=t.computed(()=>{if(!p.value)return"";const R=fc(o);return to(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=to(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(ae(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=ae(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={};a.slots.prepend&&(j.prepend=a.slots.prepend),a.slots.append&&(j.append=a.slots.append),a.slots.prefix?j.prefix=a.slots.prefix:j.prefix=()=>t.h(T.ElIcon,{},{default:()=>t.h(ye.Calendar)}),a.slots.suffix?j.suffix=a.slots.suffix:A.value&&(j.suffix=()=>[o.unit]);const G=[],K=t.h(T.ElInput,R,j);G.push(K);const X={default:()=>G};a.slots.default&&(X.label=a.slots.default),a.slots.fixedTip&&(X.fixedTip=a.slots.fixedTip);const Z=pt(o,no);Z.valueFormat=null,Z.disabled=!1,Z.readonly=r.value||i.value||E.value,Z.visible=F.value,Z["onUpdate:visible"]=L,Z.modelValue=p.value,Z["onUpdate:modelValue"]=B,Z.onClear=k;const ne={};if(a.slots.top){const _=a.slots.top();ne.top=()=>_}if(a.slots.bottom){const _=a.slots.bottom();ne.default=()=>_}const P=t.h(on,Z,ne);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 te={...ve(o,na),class:{[`${m}__wrapper`]:!0,"has-append":V},hintText:b.value,hintVisible:f.value,prop:`${o.prop??a.attrs.name}_item`};return t.h(l,te,X)}}}}const{componentName:hc,create:mc,scope:gc}=le("date-item"),oo=mc(dc(hc,gc,pe)),pc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),lo={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"}}},oa=39,la=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:a}=Ee.useFoxI18n(bc),r=o(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${oa}px`})),s=t.computed(()=>({height:`${la}px`})),c=JSON.parse(a("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[J,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(J,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:J}=z;return _=="prev"&&x>=7&&(x-=7),Array.from(Array(x),(W,O)=>({day:String(O+1),type:_,year:Y,month:J}))},E=(x,_,z,Y)=>{x=x-e.firstDayOfWeek;let{year:J,month:W}=z;return _=="prev"&&x>=7&&(x-=7),Array.from(Array(Y),(U,ee)=>({day:String(ee+1),type:_,year:J,month:W})).slice(Y-x)},M=(x,_)=>{const z=oe.getMonthPreDay(+x[0],+x[1]);let Y=Number(x[1])-1,J=Number(x[0]);Y<=0&&(Y=12,J+=1);const W=oe.getMonthDays(String(x[0]),String(x[1])),O=oe.getMonthDays(J+"",Y+""),U={year:x[0],month:x[1]},ee={curData:x,title:a("monthTitle",{year:U.year,month:U.month}),monthData:[...E(z,"prev",{month:String(Y),year:String(J)},O),...D(W,"curr",U)],cssHeight:0,cssScrollHeight:0},fe=ee.monthData.length>35?6:5;ee.cssHeight=oa+la*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 J=Y.month-z.month;Y.year-z.year>0&&(J=J+12*(Y.year-z.year)),J<=0&&(J=1),M(f.startData,"next");let W=1;do M(C("next"),"next");while(W++<J);if(f.monthsNum=J,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==a("monthTitle",{year:_[0],month:_[1]})&&d.value){let J=f.monthsData[Y].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let W=0,O=setInterval(()=>{if(W++,d.value){let U=J/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((J,W)=>{J.title==a("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(x=W),(e.type=="range"||e.type=="week")&&J.title==a("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(J=>{let W=F(J),O=f.currentIndex;f.monthsData.forEach((U,ee)=>{U.title==a("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;qo(()=>{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,_)),Z=(x,_)=>f.currDate.length>=2&&q(B(x,_))?K(x,_):!1,ne=()=>{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},te=()=>{f.chooseData.splice(0),f.monthsData.splice(0),V()};return V(),t.watch(()=>e.defaultValue,x=>{x&&e.poppable&&te()}),{dayTitleStyle:i,dayCellStyle:s,weeks:u,compConthsData:g,showTopBtn:S,topInfo:y,bottomInfo:b,rangeTip:ne,mothsViewScroll:Q,getClass:N,isStartTip:X,isEndTip:Z,chooseDay:k,isCurrDay:P,confirm:v,months:d,...t.toRefs(f),...t.toRefs(e),...r,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,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",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 aa=ue(wc,[["render",Ac]]),{create:Fc}=le("calendar-picker"),Rc=Fc({components:{[aa.name]:aa,[_e.name]:_e},props:{...lo},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:l}){const o=t.computed(()=>l.btn),a=t.computed(()=>l["top-info"]),r=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:a,dayInfo:r,bottomInfo:i}}});function Mc(e,n,l,o,a,r){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()}`,a=oe.date2Str(e),r=oe.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,l,o,a,r]},ra={...lo,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,...ra},emits:["change","update:modelValue","blur","focus","clear"],setup(o,a){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.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`]:r.value})),I=Ve(t.computed(()=>o.textAlign),"textAlign"),q=t.computed(()=>({textAlign:I.value??"right"})),L=t.ref(!1),B=()=>{i.value||r.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 Z=new Date(R,j-1,G);if(m.startDate=K,m.startArray=ct(K),m.endDate=Z,m.endArray=ct(Z),o.valueFormat){let ne=st(o,K,o.valueFormat),P=st(o,Z,o.valueFormat);s("update:modelValue",[ne,P],{})}else s("update:modelValue",[K,Z],{})}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={};a.slots.prepend&&(H.prepend=a.slots.prepend),a.slots.append&&(H.append=a.slots.append),a.slots.prefix?H.prefix=a.slots.prefix:H.prefix=()=>t.h(T.ElIcon,{},{default:()=>t.h(ye.Calendar)}),a.slots.suffix?H.suffix=a.slots.suffix:D.value&&(H.suffix=()=>[o.unit]);const R=[],j=t.h(T.ElInput,V,H);R.push(j);const G={default:()=>R};a.slots.default&&(G.label=a.slots.default),a.slots.fixedTip&&(G.fixedTip=a.slots.fixedTip);const K=pt(o,lo);K.visible=L.value,K["onUpdate:visible"]=v,K["default-value"]=b.value,K.onChoose=k;const X={};if(a.slots.btn){const te=a.slots.btn();X.btn=()=>te}a.slots.day&&(X.day=a.slots.day),a.slots.topInfo&&(X.topInfo=a.slots.topInfo),a.slots.bottomInfo&&(X.bottomInfo=a.slots.bottomInfo);const Z=t.h(ln,K,X);G.hide=()=>[Z];const P={...ve(o,ra),hintText:d.value,hintVisible:h.value,prop:`${o.prop??a.attrs.name}_item`};return t.h(l,P,G)}}}}const{componentName:Pc,create:qc,scope:zc}=le("calendar-item"),ro=qc(Lc(Pc,zc,pe)),ia={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,...ia},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(o,a){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.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={...a.attrs,ref:I,class:$.value,placeholder:u.placeholder.value,disabled:r.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};a.slots.default&&(k.label=a.slots.default),a.slots.fixedTip&&(k.fixedTip=a.slots.fixedTip);const C={...ve(o,ia),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"),io=Hc(jc(_c,Kc,pe)),sa={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,...sa},emits:["change","update:modelValue","blur","focus","clear"],setup(o,a){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.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={...a.attrs,ref:F,class:$.value,placeholder:u.placeholder.value,disabled:r.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};a.slots.default&&(v.label=a.slots.default),a.slots.fixedTip&&(v.fixedTip=a.slots.fixedTip);const A={...ve(o,sa),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"),so=Uc(Wc(Yc,Gc,pe));function ca(e,n=0){let l=`${e}`,o=l.indexOf(".");if(o==-1)return l;let a=o;for(let r=l.length-1;r>=o;r--)if(l.charAt(r)!="0"){a=r;break}return a-o<n?a=o+n+1:a!=o&&(a+=1),a>l.length?l=l.padEnd(a,"0"):l=l.substring(0,a),l}function ua(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=Wo(`${e}`,`${n}`);return ca(o)}else{let o=Cn(`${e}`,Yo(`${n}`),20);return ca(o)}}function Xc(e,n=-1,l=!1,o=3,a=","){return Rt(e,n,l,o,a)}function fa(e,n,l,o,a=!0){if(e=="")return"";if(e=Uo(e),n=se(n),n==1)return e;if(o)e=ua(e,n),l&&(e=="0"&&a?e=`${e}.`.padEnd(se(l)+2,"0"):e=Cn(e,1,se(l)));else{let r=-1*n;e=ua(e,r)}return e}function da(e,n){let l={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=ae(n.minInclude),a=Tn(e,n.min);if(o&&a==-1||!o&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";l.message=r.replace("{0}",n.min),l.minValid=!1}}if(n.max!=null){let o=ae(n.maxInclude),a=Tn(e,n.max);(o&&a==1||!o&&(a==0||a==1))&&(l.maxValid=!1)}return l}const ha={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Jc(e,n,l){return{props:{...ge,...Te,...ha},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,a){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.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=fa(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`]:r.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,"")}),ae(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(!ol(C)){t.triggerRef(d);return}if(o.integerLength!=-1&&ll(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=da(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,ae(o.showTip)&&(F.value=C.length>0),d.value=C,u.value=fa(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,ae(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,ae(o.showTip)&&F.value===!0&&(F.value=!1)},0),!be(d.value)){let D=da(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(a.attrs),ref:A,class:g.value,type:"digit",maxlength:o.maxLength,placeholder:$.value,clearable:o.clearable,disabled:r.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={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:k.value&&(E.suffix=()=>[o.unit]);const M=[],V=t.h(T.ElInput,D,E);M.push(V);const H={default:()=>M};a.slots.default&&(H.label=a.slots.default),a.slots.fixedTip&&(H.fixedTip=a.slots.fixedTip);const j={...ve(o,ha),errorTip:b.value,hintText:f.value,hintVisible:F.value,hintType:"number",prop:`${o.prop}_item`};return t.h(l,j,H)}}}}const{componentName:Zc,create:Qc,scope:eu}=le("money-item"),co=Qc(Jc(Zc,eu,pe)),ma={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,...ma},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,a){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.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(a.attrs),ref:L,class:$.value,placeholder:u.placeholder.value,clearable:o.clearable,disabled:r.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};a.slots.default&&(C.label=a.slots.default),a.slots.fixedTip&&(C.fixedTip=a.slots.fixedTip);const E={...ve(o,ma),hintText:y.value,hintVisible:b.value,prop:`${o.prop}_item`};if(a.slots.append)C.append=a.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"),uo=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 ga(e,n){const l=e.childrenKey??"children";return n[l]}function an(e,n=[]){const l={texts:[],values:[]};for(let o=0;o<n.length;o++){const a=n[o],r=$t(e,a),i=Dt(e,a);l.texts.push(r),l.values.push(i??"")}return l}function pa(e,n,l,o,a=[]){if(!l)return;const r=l[o];for(let i=0;i<n.length;i++)if($t(e,n[i])===r){const c=Dt(e,n[i])??"",u={[e.textKey]:r,[e.valueKey]:c};a.push(u);const d=ga(e,n[i]);Array.isArray(d)&&pa(e,d,l,o+1,a);return}}function ya(e,n,l,o,a=[]){if(!l)return;const r=l[o];for(let i=0;i<n.length;i++)if(Dt(e,n[i])===r){const c=$t(e,n[i])??"",u={[e.textKey]:c,[e.valueKey]:r};a.push(u);const d=ga(e,n[i]);Array.isArray(d)&&ya(e,d,l,o+1,a);return}}function fo(e,n,l){if(n===l)return!0;if(n.length!==l.length)return!1;for(let o=0;o<n.length;o++){const a=$t(e,n[o]),r=$t(e,l[o]);if(a!==r)return!1;const i=Dt(e,n[o]),s=Dt(e,l[o]);if(i!==s)return!1}return!0}let au=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 a=Fe(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(n,l))}};function ru(){const e=t.getCurrentInstance();return new au(e.proxy)}const rn=(e,n,l)=>e.map(o=>{const{value:a="value",text:r="text",children:i="children"}=l??{},{[a]:s,[r]: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=rn(h.children,h,l)),h}),ba=(e,n)=>{let l=0,o;for(;(o=e[l++])&&n(o)!==!0;)o.children&&o.children.length&&ba(o.children,n)},iu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},su=(e,n)=>{const l={...iu,...n||{}},{topId:o,idKey:a,pidKey:r,sortKey:i}=l;let s=[],c={};return e.forEach(u=>{u={...u};const{[a]:d,[r]: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 wa(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(),a=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),i=t.computed(()=>a.fixed?{height:`${a.height}px`}:{}),s=t.computed(()=>a.fixed?{[e.position]:`${r.value}px`,transform:a.transform?`translate3d(0, ${a.transform}px, 0)`:void 0,position:a.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);a.height=d.height;const m=()=>{let S=!1;if(e.position==="top")S=u?r.value>d.top&&$.bottom>0:r.value>d.top;else{const y=document.documentElement.clientHeight;S=u?$.bottom>0&&y-r.value-p.height>$.top:y-r.value<d.bottom}return S},g=()=>{if(u)if(e.position==="top"){const S=$.bottom-r.value-p.height;return S<0?S:0}else{const S=document.documentElement.clientHeight,y=$.bottom-(S-r.value);return y<0?y:0}return 0};a.transform=g(),a.fixed=m()};return t.watch(()=>a.fixed,u=>{n("change",u)}),t.onMounted(()=>{c(),wa(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{wa(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:i,stickyRef:o,stickyStyle:s}}});function mu(e,n,l,o,a,r){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 a=t.ref(),r=t.ref({width:0,height:0}),i=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let p=await o(a,l);r.value.width=p.width||0,r.value.height=p.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.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)/r.value.width*100):(u=$>0?"bottom":"top",m=$,m=Math.abs(m)/r.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:a}};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 a;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=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}r.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=r.value.findIndex(k=>k.paneKey==N);r.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&&Go(M)}M()},m=(N=l.default?.())=>{r.value=[],N=N?.filter(v=>typeof v.children!="string"),N&&N.length&&i(N),c(e.modelValue),t.nextTick(()=>{p()})},g=N=>{a=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(),a){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==r.value.length-1,next:()=>{s.value+=1,y.updateValue(r.value[s.value])},prev:()=>{s.value-=1,y.updateValue(r.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:r,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,a,r){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,a,r){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 Sa{nodes;config;constructor(n,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=rn(n,null,this.config)}updateChildren(n,l){l?l.children=rn(n,l,this.config):this.nodes=rn(n,null,this.config)}getNodeByValue(n){let l;return ba(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 a=o.find(r=>r.value===n[r.level]);if(!a)break;l.push(a),o=a.children}return l}isLeaf(n,l){const{leaf:o,children:a}=n,r=Array.isArray(a)&&!!a.length;return o||!r&&!l}hasChildren(n,l){if(this.isLeaf(n,l))return!1;const{children:a}=n;return Array.isArray(a)&&!!a.length}}const{create:$u,scope:Du}=le("cascader-pane"),xu=$u({components:{Loading:Zi,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),a=t.ref(!1),r=t.ref(e.modelValue),i=t.ref(new Sa([],{})),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,a.value=!1,d=null;let{options:y}=e;l.value.convertConfig&&(y=su(y,l.value.convertConfig)),i.value=new Sa(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=r.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],a.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),a.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);r.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!==r.value&&(r.value=y,p())}),t.watch(()=>e.visible,y=>{y&&Array.isArray(r.value)&&r.value.length>0&&p()}),{panes:s,initLoading:a,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,a,r){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 va=ue(xu,[["render",Ou]]),{create:Bu}=le("cascader-picker"),Au=Bu({components:{[va.name]:va,[_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)}}),a=(i,s)=>{l.value=i,o.value=!1,n("change",i,s),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==l.value&&(l.value=i)}),{onChange:a,onPathChange:r,innerValue:l,innerVisible:o}}}),Fu=["innerHTML"];function Ru(e,n,l,o,a,r){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]]),Ca={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,...Ca},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(o,a){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.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),$=ru(),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(!fo(o,H,b.value)){b.value=H;let R=an(o,H);g.value=R.texts,y.value=R.values}}else if(o.valueType==="text"){let H=M,R=[];if(pa(o,V,H,0,R),!fo(o,R,b.value)){b.value=R;let j=an(o,R);H.value=j.texts,y.value=j.values}}else{let H=M,R=[];if(ya(o,V,H,0,R),!fo(o,R,b.value)){b.value=R;let j=an(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=()=>{r.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=an(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&&!r.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={};a.slots.prepend&&(V.prepend=a.slots.prepend),a.slots.append&&(V.append=a.slots.append),a.slots.prefix&&(V.prefix=a.slots.prefix),a.slots.suffix?V.suffix=a.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};a.slots.default&&(j.label=a.slots.default),a.slots.fixedTip&&(j.fixedTip=a.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 Z={...ve(o,Ca),hintText:d.value,hintVisible:h.value,prop:`${o.prop??a.attrs.name}_item`};return t.h(l,Z,j)}}}}const{componentName:Lu,create:Pu,scope:qu}=le("cascader-item"),ho=Pu(Mu(Lu,qu,pe)),Ta={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,...Ta},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(o,a){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.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={...a.attrs,ref:q,class:$.value,placeholder:u.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:i.value,modelValue:h.value,onClear:I,onChange:g,onInput:m,onFocus:f,onBlur:F,onSelect:S},N={};a.slots.prepend&&(N.prepend=a.slots.prepend),a.slots.append&&(N.append=a.slots.append),a.slots.prefix&&(N.prefix=a.slots.prefix),a.slots.suffix&&(N.suffix=a.slots.suffix),a.slots.option&&(N.default=a.slots.option);const v=[],k=t.h(T.ElAutocomplete,B,N);v.push(k);const A={default:()=>v};a.slots.default&&(A.label=a.slots.default),a.slots.fixedTip&&(A.fixedTip=a.slots.fixedTip);const D={...ve(o,Ta),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"),mo=_u(zu(ju,Hu,pe));function Ku(e,n,l,o,a){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[a]){let c=n;for(let u=0;c&&u<r.length;u++){let d=r[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<r.length;c++){let u=n[c],d=r[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<r.length;u++){let d=r[u],h=c.find(p=>p[o]===d);if(!h)break;i.push(h[l]),c=h[a]}}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 a=Fe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function Yu(){const e=t.getCurrentInstance();return new Wu(e.proxy)}const ka={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:{...ka},setup(l,{attrs:o,slots:a}){const r=Yu(),i=t.ref([]);t.watch([()=>l.source,()=>l.params],async([u,d])=>{i.value=await r.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 a.default?a.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:am,create:Gu,scope:rm}=le("mapping"),Vt=Gu(Uu());function Xu(e,n){let l=n.split("."),o=e;for(let a=0;a<l.length;a++){let r=l[a],i=0,s=r.indexOf("["),c=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&c!==-1;){let u=r.substring(s+1,c);if(/^\d+$/.test(u)){let d=parseInt(u);if(i==0){let h=r.substring(0,s);o=o[h][d]}else o=o[d];i++}s=r.indexOf("[",c),c=s==-1?-1:r.indexOf("]",s)}i===0&&(o=o[r])}return o}function Ju(e,n){return{props:{...ka},setup(l,{attrs:o,slots:a}){return()=>{const r={default:i=>{const s=Xu(i.row,i.column.property);return a.default?t.h(Vt,{...l,modelValue:s},{default:a.default}):t.h(Vt,{...l,modelValue:s})}};return t.h(T.ElTableColumn,{...o},r)}}}}const{componentName:im,create:Zu,scope:sm}=le("table-mapping-column"),go=Zu(Ju()),Qu=Symbol.for("TableStateKey");function $a(e,n){let l=n.split("."),o=e;for(let a=0;a<l.length;a++){let r=l[a],i=0,s=r.indexOf("["),c=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&c!==-1;){let u=r.substring(s+1,c);if(/^\d+$/.test(u)){let d=parseInt(u);if(i==0){let h=r.substring(0,s);o=o[h][d]}else o=o[d];i++}s=r.indexOf("[",c),c=s==-1?-1:r.indexOf("]",s)}i===0&&(o=o[r])}return o}function ef(e,n){return{props:{},setup(l,{attrs:o}){const a=t.inject(Qu,{});return()=>{const r=a.currentRow?a.currentRow.value:null,i={default:s=>{const c=$a(s.row,s.column.property),u=r?$a(r,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"),po=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 af(e,n){return t.openBlock(),t.createElementBlock("svg",of,lf)}const rf=ue(nf,[["render",af]]),{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:rf,Download:ye.Download,RefreshLeft:ye.RefreshLeft},props:{...cf},setup(e,{emit:n,attrs:l}){let o=[];const a=t.ref([]),r=t.computed(()=>a.value.filter(P=>P.label===""||P.type?!1:P.fixed===""||P.fixed===!0||P.fixed==="left")),i=t.computed(()=>a.value.filter(P=>P.label===""||P.type?!1:P.fixed==="right")),s=t.computed(()=>a.value.filter(P=>!(P.label===""||P.type||P.fixed!==void 0))),c=t.computed(()=>(r.value.length>0||i.value.length>0)&&s.value.length>0),u=t.computed(()=>r.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 te=[];a.value=P.map((_,z)=>(!(_.label===""||_.type)&&_.visible!==!1&&te.push(_.prop),{..._,sortIndex:z})),s.value.length+r.value.length+i.value.length===te.length?b.value=!0:te.length>0&&(f.value=!0),q.value=te},$=P=>P?P.type?P.type:P.label?P.prop:"":"",m=(P,Q)=>{if(P.length!==Q.length)return!1;const te=P.map(x=>$(x));for(let x of Q){const _=$(x);if(te.indexOf(_)===-1)return!1}return!0},g=P=>{if(!P){const Q=e.tableRef.getColumnSetting(),te=Q.srcColumnPropertyList;o=te.map((x,_)=>({...x,sortIndex:_})),P=Q.columnPropertyList,P&&P.length>0&&m(te,P)||(P=te)}p(P,o)},S=()=>{e.tableRef.setColumnSetting(a.value)},y=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=t.ref(!1),f=t.ref(!1),F=P=>{const Q=[];a.value.forEach(x=>{P&&!(x.label===""||x.type)&&Q.push(x.prop),x.visible=P}),b.value=!1,f.value=!1,s.value.length+r.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=>{a.value.forEach(te=>{if(te.label===""||te.type)return;const x=P.indexOf(te.prop)!==-1;te.visible=x}),b.value=!1,f.value=!1;const Q=s.value.length+r.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 te=v(Q);if(!te)return;const x=te.dataset&&te.dataset.roleType;N.roleType===x&&(P.preventDefault(),N.currentRow&&N.currentRow!==te&&N.currentRow.classList.remove("is-dragover"),te.classList.add("is-dragover"),N.currentRow=te)},D=P=>{P.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},E=P=>{const Q=P.currentTarget,te=v(Q);if(!te)return;const x=te.dataset&&te.dataset.roleType;if(N.roleType!==x)return;P.preventDefault();const _=Number(N.index),z=Number(te.dataset.index);if(_!==z){if(_<z){const Y=a.value[_];a.value.splice(_,1),a.value.splice(z,0,Y)}else{const Y=a.value[_];a.value.splice(_,1),a.value.splice(z+1,0,Y)}p(a.value,o),S()}},M=P=>{const Q=a.value[P];Q.fixed="left",S()},V=P=>{const Q=a.value[P];Q.fixed="right",S()},H=P=>{const Q=a.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:r,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,te)=>{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,te,{type:"text",placement:"top",closeOnClick:!1}),R.set(Q,Y),j=Y}}},onMouseLeaveForOverflowText:(P,Q)=>{const te=R.get(Q);te&&(xe.hide(te),te===j&&(j=null))},onMouseOverForTip:(P,Q)=>{const te=P.currentTarget;te&&(j&&xe.hide(j),j=xe.show(te,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,a,r){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,a,r,i,s){if(Array.isArray(l)){let u=(o-1)*a,d=u+a;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,a,r,i,s]);const c=Fe(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Be(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[l,o,a,r,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 Da(){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 a=0;a<l.length;a++){let r=l[a],i=0,s=r.indexOf("["),c=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&c!==-1;){let u=r.substring(s+1,c);if(/^\d+$/.test(u)){let d=parseInt(u);if(i==0){let h=r.substring(0,s);o=o[h][d]}else o=o[d];i++}s=r.indexOf("[",c),c=s==-1?-1:r.indexOf("]",s)}i===0&&(o=o[r])}return o}function yo(e,n){return e.filter(o=>{for(let a in n){const r=n[a],i=Af(o,a);if(r!==i)return!1}return!0})}const xa={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"}},Ea={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}},bo={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,...xa,...Ea,...bo},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(o,a){const{locale:r}=Ee.useFoxI18n(n),{emitEvent:i}=Se({componentName:e,validateHandler:{getValue(...W){return f.value}}},o.prop??a.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:ae(o.autoLoad),L=Ve(t.computed(()=>o.lazyLoad),"lazyLoad",Ye.Near,W=>ae(W)),B=async(W,O,U,ee)=>{try{const fe=await F.load("table",W,O,U,ee,I,r.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),ae(o.rowClickSelectable)===!0&&J?.value.toggleRowSelection(W)},M=[],V=(W,O)=>{if(i("expand-change",W,O),ae(o.uniqueExpansion))if(Array.isArray(O)&&O.length==0){const U=M.length;M.splice(0,U)}else{M.forEach(ee=>{ee!==W&&J?.value.toggleRowExpansion(ee,!1)});const U=M.length;M.splice(0,U,W)}},H=a.attrs.id??o.prop??a.attrs.name,R=Da(),j=t.ref([]);let G=[];const K=()=>({srcColumnPropertyList:G.map(O=>({...O})),columnPropertyList:j.value}),X=W=>{j.value=[...W],ne()},Z=async()=>{const W=await R.load(H);W&&(j.value=W)},ne=()=>{R.save(H,j.value)},P=()=>{R.remove(H)};Z();const Q=W=>W?W.type?W.type:W.label?W.prop:"":"",te=t.computed(()=>{if(typeof a.slots.default=="function"){const W=a.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)},J=t.ref();return me({clearSelection:()=>J?.value.clearSelection(),getSelectionRows:()=>J?.value.getSelectionRows(),toggleRowSelection:(W,O)=>{J?.value.toggleRowSelection(W,O)},toggleRowSelectionByProp:(W,O)=>{if(!f.value)return;const U=yo(f.value,W);U.length!==0&&U.forEach(ee=>{J?.value.toggleRowSelection(ee,O)})},toggleAllSelection:()=>{J?.value.toggleAllSelection()},toggleRowExpansion:(W,O)=>{J?.value.toggleRowExpansion(W,O)},toggleRowExpansionByProp:(W,O)=>{if(!f.value)return;const U=yo(f.value,W);U.length!==0&&U.forEach(ee=>{J?.value.toggleRowExpansion(ee,O)})},setCurrentRow:W=>{J?.value.setCurrentRow(W)},setCurrentRowByProp:W=>{if(!f.value)return;const O=yo(f.value,W);O.length!==0&&J?.value.setCurrentRow(O[0])},getCurrentRow:()=>C.value,clearSort:()=>{J?.value.clearSort()},clearFilter:W=>{J?.value.clearFilter(W)},doLayout:()=>{J?.value.doLayout()},sort:(W,O)=>{J?.value.sort(W,O)},scrollTo:(W,O)=>{J?.value.scrollTo(W,O)},setScrollTop:W=>{J?.value.setScrollTop(W)},setScrollLeft:W=>{J?.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(a.attrs),onCurrentChange:D,onRowClick:E,onExpandChange:V,data:f.value,ref:J,class:c.value,"cell-class-name":z(o.cellClassName)},U={};a.slots.default&&(U.default=()=>te.value),a.slots.append&&(U.append=a.slots.append),a.slots.empty&&(U.empty=a.slots.empty);const ee=[],fe=t.h(T.ElTable,O,U);ee.push(fe);let de=null;if(typeof a.slots.pagination=="function")de=a.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,bo),Jh=t.h(cn,{...Xh,tableRef:{getColumnSetting:K,setColumnSetting:X,removeColumnSetting:P}},{default:()=>Gh});Bt.push(Jh);const Zh=t.h("div",{class:d.value},Bt);ee.push(Zh)}else de&&ee.push(de);const mn={default:()=>ee},Ot={...ve(o,xa,Ea,bo),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"),wo=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 a=Fe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function zf(){const e=t.getCurrentInstance();return new qf(e.proxy)}function Na(e,n,l){if(n===l)return!0;if(n===null||l===null)return!1;const o=ut(e,n),a=ut(e,l);if(o!==a)return!1;const r=It(e,n),i=It(e,l);return r===i}function jf(e,n,l,o){if(o.length==0||n===""||n===null||n===void 0)return null;let a=null;for(let r of o){let i=!1;if(l==="text")i=ut(e,r)===n;else if(l==="item")i=Na(e,r,n);else{let s=It(e,r);s==null&&(s=ut(e,r)),i=s===n}if(i){a=r;break}}return a}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 Va={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,...Va},emits:["change","update:modelValue"],setup(o,a){const r=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!r.value&&!i.value}},o.prop??a.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(!Na(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=>ae(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);r.value===!0&&(D=r.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:ae(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(a.attrs),class:b.value,disabled:r.value||i.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,onChange:f},N=[],v={};a.slots.options?v.default=a.slots.options:v.default=()=>q(h.value,a.slots.text);const k=t.h(T.ElRadioGroup,B,v);N.push(k);const A={default:()=>N};a.slots.default&&(A.label=a.slots.default),a.slots.fixedTip&&(A.fixedTip=a.slots.fixedTip);const D={...ve(o,Va),hintText:F.value,hintVisible:I.value,prop:`${o.prop??a.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"),So=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 a=Fe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}}function Jf(){const e=t.getCurrentInstance();return new Xf(e.proxy)}function Ia(e,n,l){if(n===l)return!0;if(n===null||l===null)return!1;const o=ft(e,n),a=ft(e,l);if(o!==a)return!1;const r=dt(e,n),i=dt(e,l);return r===i}function Zf(e,n,l,o){if(o.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(r=>{for(let i of o){let s=!1;if(l==="text")s=ft(e,i)===r;else if(l==="item")s=Ia(e,i,r);else{let c=dt(e,i);c==null&&(c=ft(e,i)),s=c===r}if(s){a.push(i);break}}}),a}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 Oa={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,...Oa},emits:["change","update:modelValue"],setup(o,a){const r=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!r.value&&!i.value}},o.prop??a.attrs.name),c=t.ref([]),u=t.ref([]),d=(L,B,N,v=!0)=>{const k=Zf(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(!Ia(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=>ae(L)),$=Jf(),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);r.value===!0&&(D=r.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:ae(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(a.attrs),class:b.value,disabled:r.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={};a.slots.options?v.default=a.slots.options:v.default=()=>q(h.value,a.slots.text);const k=t.h(T.ElCheckboxGroup,B,v);N.push(k);const A={default:()=>N};a.slots.default&&(A.label=a.slots.default),a.slots.fixedTip&&(A.fixedTip=a.slots.fixedTip);const D={...ve(o,Oa),hintText:F.value,hintVisible:I.value,prop:`${o.prop??a.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"),vo=od(td(nd,ld,pe)),Ba={modelValue:{type:[Number,String],required:!1}};function ad(e,n,l){return{props:{...ge,...Te,...Ba},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,a){const r=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!r.value&&!i.value}},o.prop??a.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(a.attrs),ref:m,class:d.value,readonly:i.value||r.value,modelValue:c.value,onChange:h},y={},b=[],f=t.h(T.ElRate,S,y);b.push(f);const F={default:()=>b};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const q={...ve(o,Ba),hintText:p.value,hintVisible:$.value,prop:`${o.prop}_item`};return t.h(l,q,F)}}}}const{componentName:rd,create:id,scope:sd}=le("rate-item"),Co=id(ad(rd,sd,pe)),Aa={modelValue:{type:[Boolean,String,Number],required:!1}};function cd(e,n,l){return{props:{...ge,...Te,...Aa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,a){const r=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!r.value&&!i.value}},o.prop??a.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(a.attrs),ref:m,class:d.value,readonly:i.value,disabled:r.value,modelValue:c.value,onChange:h},y={},b=[],f=t.h(T.ElSwitch,S,y);b.push(f);const F={default:()=>b};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const q={...ve(o,Aa),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"),To=fd(cd(ud,dd,pe)),Fa={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function hd(e,n,l){return{props:{...ge,...Te,...Fa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,a){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),s=t.ref(!1),{emitEvent:c}=Se({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??a.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(a.attrs),ref:F,class:h.value,disabled:r.value||i.value,modelValue:u.value,"onUpdate:modelValue":p,onClear:y,onFocus:g,onBlur:S,onVisibleChange:f},L={};a.slots.option&&(L.default=a.slots.option);const B=[],N=t.h(T.ElTreeSelect,q,L);B.push(N);const v={default:()=>B};a.slots.default&&(v.label=a.slots.default),a.slots.fixedTip&&(v.fixedTip=a.slots.fixedTip);const A={...ve(o,Fa),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"),ko=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]},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 a=null;const r=t.ref([]),i=Da(),s=K=>K.length>1,c=()=>{const K=[],X=[...r.value];r.value=X.map((ne,P)=>(ne.visible!==!1&&K.push(ne.prop),{...ne,sortIndex:P})),r.value.length===K.length?g.value=!0:K.length>0&&(S.value=!0),f.value=K},u=K=>{const X=document.querySelectorAll(`.fox-group[prop="${K}"] > div > .fox-item[prop]`),Z=[];return X.forEach(ne=>{const P=ne.querySelector(".label--string");let Q="";P&&(Q=P.textContent??"");const te=ne.getAttribute("prop")??"",_=window.getComputedStyle(ne,null).getPropertyValue("display");Z.push({label:Q,prop:te,sortIndex:0,visible:_!=="none"})}),Z},d=()=>{if(!a){const K=u(e.groupProp);if(K.length===0)return!1;a=K}return!0},h=async(K=!1)=>{const X=await i.load(e.groupProp),Z=ne=>{if(!ne||!a)return;const P=a.map(Q=>({...Q}));Array.isArray(X)&&X.forEach(Q=>{P.some(te=>{if(te.prop===Q.prop){const x=te.label;return Object.assign(te,Q),te.label=x,!0}return!1})}),r.value=P.sort((Q,te)=>Q.sortIndex-te.sortIndex),c(),K&&$(!1)};a?Z(!0):jt(d,e.initDelay,5,50,!1,Z)},p=()=>{const K=a??[];r.value=K.map(X=>({...X})),c(),$()},$=(K=!0)=>{K&&i.save(e.groupProp,r.value);const X=r.value.map(Z=>({...Z}));n("change",X)},m=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),S=t.ref(!1),y=K=>{const X=[];r.value.forEach(ne=>{K&&X.push(ne.prop),ne.visible=K}),g.value=!1,S.value=!1,r.value.length===X.length?g.value=!0:X.length>0&&(S.value=!0),f.value=X,$()},b=()=>{p()},f=t.ref([]),F=K=>{r.value.forEach(Z=>{const ne=K.indexOf(Z.prop)!==-1;Z.visible=ne}),g.value=!1,S.value=!1;const X=r.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 Z=L(X);Z&&(K.preventDefault(),q.currentRow&&q.currentRow!==Z&&q.currentRow.classList.remove("is-dragover"),Z.classList.add("is-dragover"),q.currentRow=Z)},k=K=>{K.preventDefault(),q.currentRow&&(q.currentRow.classList.remove("is-dragover"),q.currentRow=null)},A=K=>{const X=K.currentTarget,Z=L(X);if(!Z)return;K.preventDefault();const ne=Number(q.index),P=Number(Z.dataset.index);if(ne!==P){if(ne<P){const Q=r.value[ne];r.value.splice(ne,1),r.value.splice(P,0,Q)}else{const Q=r.value[ne];r.value.splice(ne,1),r.value.splice(P+1,0,Q)}c(),$()}},C=K=>{const X=r.value[K];r.value.splice(K,1),r.value.splice(0,0,X),c(),$()},D=K=>{const X=r.value[K];r.value.splice(K,1),r.value.push(X),c(),$()};o({refresh:()=>{a=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:r,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,Z)=>{const ne=K.currentTarget;if(ne){const P=Math.floor(ne.offsetWidth);if(Math.floor(V(ne))>P){let te=E.get(X);if(te){if(te===M)return;xe.hide(te)}te=xe.show(ne,Z,{type:"text",placement:"top",closeOnClick:!1}),E.set(X,te),M=te}}},onMouseLeaveForOverflowText:(K,X)=>{const Z=E.get(X);Z&&(xe.hide(Z),Z===M&&(M=null))},onMouseOverForTip:(K,X)=>{const Z=K.currentTarget;Z&&(M&&xe.hide(M),M=xe.show(Z,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,a,r){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 $o=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 a={};t.provide(Ad,a);const r=c=>{typeof a.beforeClose=="function"&&a.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":r},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"),Do=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 a=e,r=t.computed(()=>({[a]:!0})),i=t.computed(()=>l.icon?{[`${a}__icon`]:!0,[`${a}__icon-${l.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${l.type}`]:!0}),s=t.computed(()=>l.color?l.icon?{color:l.color}:{background:l.color}:null),c=t.computed(()=>{const d={[`${a}__text`]:!0,[`${a}__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:r.value};return l.textPosition==="right"?t.h("div",m,[d,$]):t.h("div",m,[$,d])}}}}const{componentName:Ld,create:Pd,scope:wm}=le("indicator"),xo=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 a=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},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 a=t.ref(!0),r=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&&ae(l.showOverflowTooltip)){const h=d.clientWidth;qd(d,p=>{a.value=p<=h})}};let c=null;t.onMounted(()=>{if(!ae(l.showOverflowTooltip))return;const d=r.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:r};let p=null;if(ae(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=ae(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:a.value};return d.content=o.slots.default,t.h(T.ElTooltip,m,d)}}}}const{componentName:_d,create:Hd,scope:Sm}=le("text"),Eo=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 a=()=>{l&&(clearTimeout(l),l=null)},r=()=>{o.mounted=!1},i=()=>{a(),e.duration&&(l=setTimeout(()=>{r()},e.duration))},s=()=>{e.closeOnClickOverlay&&(r(),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:r,clickCover:s,renderIcon:u,hasIcon:c,toastBodyClass:d,toastIconWrapperClass:h,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Yd={key:1,class:"fox-toast-title"},Ud=["innerHTML"];function Gd(e,n,l,o,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",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 No=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 Jd(e,n,l){return{props:{...Xd},emits:["click","update:modelValue"],setup(o,{emit:a}){const r=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=()=>{a("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:r.value,onClick:d},h)}}}}const{componentName:Zd,create:Qd,scope:eh}=le("more-button"),Vo=Qd(Jd(Zd,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}),a=t.ref({}),r=t.computed(()=>`${l}`),i=t.computed(()=>{const{offset:m,maskWidth:g,maskHeight:S}=e,{width:y,height:b,left:f,top:F}=a.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);a.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:r,maskStyle:i,changeStep:s,popoverWidth:c,popoverLocation:u,close:h,handleClickMask:p}}}),lh={key:0,class:"fox-tour__content"},ah={key:0,class:"fox-tour__content-top"},rh={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,a,r){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",ah,[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",rh,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 Io=ue(oh,[["render",dh]]),Ne=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,tt=e=>e==null,Ra=10;function hh(e,n){return e>n&&e>Ra?"horizontal":n>e&&n>Ra?"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=(a,r,i,s)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(l.start(a),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=a=>{this.moving&&(l.move(a),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(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Ma(e,n){return new ph(e,n)}var La;const Oo=typeof window<"u";Oo&&((La=window?.navigator)!=null&&La.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ht=[];const Pa=e=>{const n=e;n.key==="Escape"&&ht.forEach(l=>l(n))},yh=e=>{t.onMounted(()=>{ht.length===0&&document.addEventListener("keydown",Pa),Oo&&ht.push(e)}),t.onBeforeUnmount(()=>{ht=ht.filter(n=>n!==e),ht.length===0&&Oo&&document.removeEventListener("keydown",Pa)})},Bo="fox-focus-trap.focus-after-trapped",Ao="fox-focus-trap.focus-after-released",bh="fox-focus-trap.focusout-prevented",qa={cancelable:!0,bubbles:!1},wh={cancelable:!0,bubbles:!1},za="foxFocusAfterTrapped",ja="foxFocusAfterReleased",Sh=Symbol("foxFocusTrap"),Fo=t.ref(),un=t.ref(0),Ro=t.ref(0);let fn=0;const _a=e=>{const n=[],l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?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},Ha=(e,n)=>{for(const l of e)if(!vh(l,n))return l},Ch=e=>{const n=_a(e),l=Ha(n,e),o=Ha(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}),Ro.value=window.performance.now(),e!==l&&Th(e)&&n&&e.select()}};function Ka(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 a=e[0];a&&o!==a&&a.pause(),e=Ka(e,o),e.unshift(o)},remove:o=>{e=Ka(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},Wa=kh(),Dh=()=>un.value>Ro.value,dn=()=>{Fo.value="pointer",un.value=window.performance.now()},Ya=()=>{Fo.value="keyboard",un.value=window.performance.now()},xh=()=>(t.onMounted(()=>{fn===0&&(document.addEventListener("mousedown",dn),document.addEventListener("touchstart",dn),document.addEventListener("keydown",Ya)),fn++}),t.onBeforeUnmount(()=>{fn--,fn<=0&&(document.removeEventListener("mousedown",dn),document.removeEventListener("touchstart",dn),document.removeEventListener("keydown",Ya))}),{focusReason:Fo,lastUserFocusTimestamp:un,lastAutomatedFocusTimestamp:Ro}),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:[za,ja,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:l}){const o=t.ref();let a,r;const{focusReason:i}=xh();yh(g=>{ae(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&&!ae(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(za,g)},d=g=>l(ja,g),h=g=>{const S=t.unref(o);if(!S)return;const y=g.target,b=g.relatedTarget,f=y&&S.contains(y);ae(e.trapped)||b&&S.contains(b)||(a=b),f&&l("focusin",g),!s.paused&&ae(e.trapped)&&(f?r=y:Ue(r,!0))},p=g=>{const S=t.unref(o);if(!(s.paused||!S))if(!e.escape&&ae(e.trapped)){const y=g.relatedTarget;!En(y)&&!S.contains(y)&&setTimeout(()=>{if(!s.paused&&ae(e.trapped)){const b=hn({focusReason:i.value});l("focusout-prevented",b),b.defaultPrevented||Ue(r,!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){Wa.push(s);const S=g.contains(document.activeElement)?a:document.activeElement;if(a=S,!g.contains(S)){const b=new Event(Bo,qa);g.addEventListener(Bo,u),g.dispatchEvent(b),b.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;Xo(f)||(Ue(f),document.activeElement!==f&&(f="first")),f==="first"&&$h(_a(g),!0),(document.activeElement===S||f==="container")&&Ue(g)})}}}function m(){const g=t.unref(o);if(g){g.removeEventListener(Bo,u);const S=new CustomEvent(Ao,{...qa,detail:{focusReason:i.value}});g.addEventListener(Ao,d),g.dispatchEvent(S),!S.defaultPrevented&&(i.value=="keyboard"||!Dh())&&Ue(a??document.body,!0),g.removeEventListener(Ao,u),Wa.remove(s)}}return t.onMounted(()=>{ae(e.trapped)&&$(),t.watch(()=>e.trapped,g=>{ae(g)?$():m()})}),t.onBeforeUnmount(()=>{ae(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),a=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,O=>{o.value=O});const r=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(ae(e.collapse)),N=(O,U=!0)=>{B.value!==O&&(B.value=O,O?X():Z(),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")}},Z=()=>{D.value&&D.value.classList.add("slide-out"),G=()=>{D.value&&D.value.classList.remove("slide-out"),j.value=!1}},ne=()=>{i.value=null,s.value=null,c.value=null,u.value=null},P={x:0,y:0},x=Ma(O=>{if(!f.value)return;const U=f.value;if(ne(),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;ne(),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},J=Ma(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&&J.open(D.value)}),t.onBeforeUnmount(()=>{e.draggable&&F.value&&x.close(),D.value&&J.close()}),{classes:d,styles:h,isShow:r,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:a,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,a,r){const i=t.resolveComponent("FoxIcon"),s=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",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 Mo=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 gl(l.name,()=>l.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:xm,create:_h,scope:Em}=le("domain-provider"),Lo=_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(Je&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const i=(p,$)=>{if(d===null){r.set(p,{visible:null,callback:$});return}a.has(p)&&d.unobserve(p),a.set(p,{visible:null,callback:$}),d.observe(p)},s=p=>{if(d===null){r.delete(p);return}a.has(p)&&(a.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=a.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}),r.forEach((g,S)=>{a.set(S,g),d?.observe(S)}),r.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"),Po=Wh(Kh()),Yh=[Fn,Ln,Pn,qn,_n,pe,Wn,Yn,Ct,Un,Qn,oo,ro,io,so,co,uo,ho,mo,go,po,cn,wo,So,vo,Co,To,ko,$o,Do,Vt,en,xo,Eo,No,kt,_e,it,on,ln,Nt,Et,sn,Vo,Io,xt,Mo,Lo,Po],Uh=new Ir(Yh,[Ar],"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=mo,w.Broadcast=Nn,w.BroadcastKey=we,w.CalendarItem=ro,w.CalendarPicker=ln,w.CascaderItem=ho,w.CascaderPicker=sn,w.CheckboxItem=vo,w.Content=qn,w.DataItemsKey=ot,w.DateItem=oo,w.DatePicker=on,w.DateUtils=oe,w.DialogItem=Do,w.Domain=_t,w.DomainKey=Ie,w.DomainProvider=Lo,w.ExtTabPane=Nt,w.ExtTabs=Et,w.FloatingWindow=Mo,w.FooterBar=Pn,w.FoxAutocompleteItem=mo,w.FoxCalendarItem=ro,w.FoxCalendarPicker=ln,w.FoxCascaderItem=ho,w.FoxCascaderPicker=sn,w.FoxCheckboxItem=vo,w.FoxContent=qn,w.FoxDateItem=oo,w.FoxDatePicker=on,w.FoxDialogItem=Do,w.FoxDomainProvider=Lo,w.FoxExtTabPane=Nt,w.FoxExtTabs=Et,w.FoxFloatingWindow=Mo,w.FoxFooterBar=Pn,w.FoxGroup=_n,w.FoxGroupSetting=$o,w.FoxHeaderBar=Ln,w.FoxHintText=Ct,w.FoxIndicator=xo,w.FoxInputItem=Un,w.FoxInputNumberItem=uo,w.FoxItem=pe,w.FoxMapping=Vt,w.FoxMoneyItem=co,w.FoxMoreButton=Vo,w.FoxOverlay=kt,w.FoxPage=Fn,w.FoxPicker=it,w.FoxPopup=_e,w.FoxPrice=en,w.FoxRadioItem=So,w.FoxRateItem=Co,w.FoxRollingProvider=Po,w.FoxRowItem=Yn,w.FoxSelectItem=Qn,w.FoxSlotItem=Wn,w.FoxSwitchItem=To,w.FoxTableItem=wo,w.FoxTableMappingColumn=go,w.FoxTableRadioColumn=po,w.FoxTableSetting=cn,w.FoxText=Eo,w.FoxTimeItem=io,w.FoxTimeSelectItem=so,w.FoxToast=No,w.FoxTour=Io,w.FoxTreeSelectItem=ko,w.Foxsticky=xt,w.Group=_n,w.GroupSetting=$o,w.HeaderBar=Ln,w.HintText=Ct,w.Indicator=xo,w.InputItem=Un,w.InputNumberItem=uo,w.Item=pe,w.Mapping=Vt,w.MoneyItem=co,w.MoreButton=Vo,w.Overlay=kt,w.Page=Fn,w.Picker=it,w.Popup=_e,w.Price=en,w.PriorityPolicy=Ye,w.RadioItem=So,w.RateItem=Co,w.RollingProvider=Po,w.RowItem=Yn,w.SelectItem=Qn,w.SlotItem=Wn,w.SwitchItem=To,w.TableItem=wo,w.TableMappingColumn=go,w.TableRadioColumn=po,w.TableSetting=cn,w.Text=Eo,w.TimeItem=io,w.TimeSelectItem=so,w.Toast=No,w.Tour=Io,w.TreeSelectItem=ko,w.UniqueID=Vl,w.ValidateSchema=dl,w.ValidateSchemaKey=qe,w.cancelRaf=Xa,w.clearNonNumber=sr,w.clone=Dn,w.compareTo=Tn,w.createBroadcast=Pt,w.createValidateSchema=zt,w.debounce=wt,w.debounceRef=vr,w.decimalLength=al,w.default=Uh,w.defineBroadcast=dr,w.defineConfigDomain=gl,w.defineDataItem=yl,w.defineDomain=In,w.defineItem=Se,w.definePageState=bl,w.deleteGlobalValidator=pr,w.disabledProperty=De,w.divide=Cn,w.excludeProps=ve,w.extend=Xe,w.floatData=fr,w.getGlobalValidateCheckEvents=cl,w.getGlobalValidateResetEvents=fl,w.getPageContentAreaHeight=Kt,w.getPageContentAreaWidth=Wt,w.getPageFooterAreaHeight=vt,w.getPageHeaderAreaHeight=St,w.getRootDomain=lt,w.hasSymbol=Zo,w.includeProps=pt,w.indexOf=cr,w.installRules=pl,w.integerLength=ll,w.isArray=Za,w.isArrayLike=el,w.isBrowser=Je,w.isDate=Le,w.isESModule=or,w.isEmptyString=be,w.isEqual=Pe,w.isFunction=kn,w.isHidden=Lt,w.isInnerPage=kr,w.isMap=Qa,w.isNil=En,w.isNumberString=ol,w.isObject=Be,w.isPlainObject=$n,w.isPromise=nr,w.isRegExp=nl,w.isSet=er,w.isString=Xo,w.isSubPage=$r,w.isSymbol=tr,w.isWindow=Qo,w.lastIndexOf=ur,w.makeArray=ir,w.merge=tl,w.multiply=Wo,w.negate=Yo,w.nextTick=ar,w.numberFormat=Rt,w.objectToString=Jo,w.once=Cr,w.property=Ve,w.raf=Go,w.readonlyProperty=$e,w.setGlobalValidateCheckEvents=yr,w.setGlobalValidateHandler=mr,w.setGlobalValidateMessages=wr,w.setGlobalValidateResetEvents=br,w.setGlobalValidator=gr,w.sticky=xt,w.throttle=ml,w.toBoolean=ae,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=Uo,w.updatePageState=On,w.useBroadcast=yt,w.useDomain=ze,w.useExpose=me,w.useInnerSize=Mn,w.usePageState=Ht,w.usePosition=xl,w.useRect=Qe,w.useSize=Rn,w.useTouch=Jn,w.valueLength=Oe,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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:"&yen;"},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"}})});