@fox-js/foxui-pad 4.0.1-22 → 4.0.1-23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +12100 -9510
- package/dist/index.umd.js +4 -4
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +108 -40
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Mon Apr 01 2024 00:15:36 GMT+0800 (中国标准时间)
|
|
3
|
+
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),nt=require("@fox-js/validator"),P=require("element-plus"),Se=require("@element-plus/icons-vue"),ye=require("@fox-js/i18n"),Mt=window,Pr=typeof window<"u";function Or(){return typeof Mt<"u"?Mt.requestAnimationFrame||Mt.webkitRequestAnimationFrame||function(e){Mt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ar(e){Pr?cancelAnimationFrame(e):clearTimeout(e)}const rl=Or();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function zt(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=Ce(e),n=Ce(n),[e,n]=_n(Ce(e),Ce(n)),l==1&&(o==1?e=hn(e):n=hn(n));let r=Hl(e,n);return l?l==2?"-"+Ce(r):e.length<r.length?Ce(r.substring(1)):"-"+Ce(hn(r)):Ce(r)}function hn(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 Hl(n,a)}function Ce(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 _n(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 Hl(e,n){[e,n]=_n(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 de=(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))(de||{});function bt(e,n=0,l=de.HALF_EVEN){if(l===de.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 u=a.substr(0,a.length-n);return e=u+"."+a.substr(a.length-n)+i,u=bt(e,0,l),(o?"-":"")+u+new Array(n+1).join("0")}}if(n==0)return a.length,qo(r[1],a,o,l)?(o?"-":"")+pn(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&&qo(s,i,o,l)&&(i=pn(i),i.length>n)?(o?"-":"")+pn(a,parseInt(i[0]))+"."+i.substring(1):(o?"-":"")+a+"."+i}function qo(e,n,l,o){if(!e||e===new Array(e.length+1).join("0")||o===de.DOWN||!l&&o===de.FLOOR||l&&o===de.CEILING)return!1;if(o===de.UP||l&&o===de.FLOOR||!l&&o===de.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 de.HALF_DOWN:return!1;case de.HALF_UP:return!0;case de.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function pn(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 En(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=pt(e),n=pt(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=pt(e.replace(".","")),n=pt(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let i=n.length,s=0,u=[],c=i-1,d="";for(let m=0;m<i;m++)u[m]=e.length-1;for(let m=0;m<2*e.length;m++){let g=0;for(let T=n.length-1;T>=c&&T>=0;T--)u[T]>-1&&u[T]<e.length&&(g+=parseInt(e[u[T]--])*parseInt(n[T]));g+=s,s=Math.floor(g/10),d=g%10+d,c--}return d=pt(ea(d,a)),l==1&&(d="-"+d),d}function ea(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 pt(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 Nn(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=Ce(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Ce(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Ce(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=Ce(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Ce(e.replace(".","")))}let a=0,i=n.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let c=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(c+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=c,s="0."+new Array(c).join("0")}for(l=l+2;a<=l;){let c=0;for(;parseInt(u)>=parseInt(n);)u=zt(u,"-"+n),c++;s+=c,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(o==1?"-":"")+Ce(bt(s,l-2))}function Vn(e,n){return e=e.toString(),n=n.toString(),n=Pn(n),zt(e,n)}function Pn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function zo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),jo(e),jo(n);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=Vn(e,En(n,bt(Nn(e,n),0,de.FLOOR)));return l+o}function jo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function _o(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]=_n(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=de;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=Ce(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+Ce(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=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 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 re.getPrettyValue(this.value,n,l)}static round(n,l=0,o=de.HALF_EVEN){if(n=re.validate(n),isNaN(l))throw Error("Precision is not a number: "+l);return bt(n,l,o)}round(n=0,l=de.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new re(bt(this.value,n,l))}static floor(n){return n=re.validate(n),n.indexOf(".")===-1?n:re.round(n,0,de.FLOOR)}floor(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,de.FLOOR)}static ceil(n){return n=re.validate(n),n.indexOf(".")===-1?n:re.round(n,0,de.CEILING)}ceil(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,de.CEILING)}static add(n,l){return n=re.validate(n),l=re.validate(l),zt(n,l)}add(n){return new re(zt(this.value,n.getValue()))}static subtract(n,l){return n=re.validate(n),l=re.validate(l),Vn(n,l)}subtract(n){return new re(Vn(this.value,n.getValue()))}static multiply(n,l){return n=re.validate(n),l=re.validate(l),En(n,l)}multiply(n){return new re(En(this.value,n.getValue()))}static divide(n,l,o){return n=re.validate(n),l=re.validate(l),Nn(n,l,o)}divide(n,l){return new re(Nn(this.value,n.getValue(),l))}static modulus(n,l){return n=re.validate(n),l=re.validate(l),zo(n,l)}modulus(n){return new re(zo(this.value,n.getValue()))}static compareTo(n,l){return n=re.validate(n),l=re.validate(l),_o(n,l)}compareTo(n){return _o(this.value,n.getValue())}static negate(n){return n=re.validate(n),Pn(n)}negate(){return new re(Pn(this.value))}}function Kl(e,n){return re.multiply(`${e}`,`${n}`)}function Hn(e,n,l=8){return re.divide(`${e}`,`${n}`,l)}function In(e,n){return e=`${e}`,n=`${n}`,re.compareTo(e,n)}function Wl(e){return re.negate(e)}function Yt(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,u="",c=a.indexOf(".");c!=-1&&(s=a.substring(0,c),u=a.substring(c+1)),n!=-1&&(n<u.length?u=u.substring(0,n):l&&n>u.length&&(u=u.padEnd(n,"0")));let d;if(o>0){let m="",g=s.split("").reverse();for(let T=0;T<g.length;T++)m+=g[T]+((T+1)%o==0&&T+1!=g.length?r:"");u.length==0?d=`${i}${m.split("").reverse().join("")}`:d=`${i}${m.split("").reverse().join("")}.${u}`}else u.length==0?d=`${i}${s}`:d=`${i}${s}.${u}`;return d}function Yl(e){let n=`${e}`,l=n.charAt(0);l=="-"?n=n.substring(1):l="";let o=n.replace(/[^\d\.-]/g,"");return`${l}${o}`}const Ul=_l,ta=Array.isArray,na=e=>Ut(e)==="[object Map]",oa=e=>Ut(e)==="[object Set]",Me=e=>e instanceof Date,On=e=>typeof e=="function",Gl=e=>typeof e=="string",la=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",ra=e=>Ae(e)&&On(e.then)&&On(e.catch),Xl=Object.prototype.toString,Ut=e=>Xl.call(e),Bn=e=>Ut(e)==="[object Object]",Zl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function aa(e){return e.__esModule||Zl&&e[Symbol.toStringTag]==="Module"}const ia=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Je(...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],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let c;Array.isArray(u)?c=s&&Array.isArray(s)?s:[]:c=s&&typeof s=="object"?s:{},n[i]=Je(r,c,u)}else u!==void 0&&(n[i]=u)}}return n}function An(e,n,l=!1){if(!l)Je(!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)&&!Bn(i))continue;a=An(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)&&!Bn(i))continue;a=An(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const gn=ia?Promise.resolve():null;function sa(e,...n){gn!==null?n&&n.length>0?gn.then(()=>{e(n)}):gn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function le(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ie(e){return typeof e=="number"?e:Number(e)}const ua={"[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 st(e){let l=Object.prototype.toString.call(e);return e==null?String(e):ua[l]||"object"}function Jl(e){return e&&typeof e=="object"&&"setInterval"in e}function Gt(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Ql(e){let n=!!e&&"length"in e&&e.length,l=st(e);return l==="function"||Jl(e)?!1:l==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function er(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 ca(e,n=[]){let l=n;return e!=null&&(Ql(Object(e))?er(l,typeof e=="string"?[e]:e):l.push(e)),l}function Le(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let l=st(e),o=st(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],u=e[s],c=n[s];if(!Le(u,c))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(!Le(a,i))return!1}return!0}return!1}const et=typeof window<"u";function Kn(e){return e==null}function tr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function nr(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function or(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 lr(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 Ho(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 fa(e,n=!0,l=!0){n?e=Ho(e,".",/\./g):e=e.replace(/\./g,""),l?e=Ho(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function da(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(l=>{if(Le(e,l))return!0}):n.indexOf(e)}function ma(e,n){if(typeof e=="object"||Array.isArray(e)){let l=n.reverse().findIndex(o=>{if(Le(e,o))return!0});return l!==-1&&(l=n.length-1-l),l}return n.lastIndexOf(e)}function Pe(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 Se(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 ha=(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},ye=Symbol.for("BroadcastKey");class Wn{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="*"):tr(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 u=Reflect.apply(i,this.proxy,[...o]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[l]=="function"){const u=Reflect.apply(s[l],s,[...o]);u!=null&&a.push(u)}}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 Xt(e,n,l,o){const r=new Wn(n,e,l);if(o&&typeof o=="object")for(const a in o)r.on(a,o[a]);return r}function pa(e,n,l){const o=l;if(o[ye])return o[ye];const r=t.inject(ye,null),a=new Wn(r,l,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return o[ye]=a,t.provide(ye,a),t.onUnmounted(()=>{a.destroy(),o[ye]=void 0}),a}function vt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ye]??t.inject(ye,null):t.inject(ye,null)}const Xe=e=>e.default??e;class ga{error(n,l){const o=l,r=vt(l);r?r.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const l=n,o=vt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(n){const l=n,o=vt(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=vt(o),i=l.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=n.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?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 rr=new ga;function ya(e){rr=e}function va(e,n){Xe(Ge).setValidator(e,n)}function ba(e){Xe(Ge).deleteValidator(e)}let ar=["blur","clear"];function wa(e){ar=e}function ir(){return ar}let sr=["focus","change"];function Sa(e){sr=e}function ur(){return sr}function xa(e){Xe(Ge).messages(e)}function gt(...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 At(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 Re=Symbol("ValidateSchemaKey");class cr{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=At(gt(this.attrRules,this.rules)),o=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),o.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};o.push(u)}}this.attrRules=At(o);const r=gt(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=rr;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?Xe(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?Xe(Ge).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,l=!1){if(l)return Xe(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=gt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=At(n):this.rules=At([n]);const o=gt(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=gt(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=Xe(Ge),u=new s(r),c=this.proxy??i;return u.validate(i,{context:c}).then(m=>{if(m.pass)this.success();else{let g="error";Array.isArray(m.errors)&&m.errors.length>0&&(g=m.errors[0].message??g,m.errors=[m.errors[0]],m.errors[0].ref=c),this.error(g)}return m}).catch(m=>{const g=m.message??`${m}`;return this.error(g),m})}}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 cr(n,l,e)}const Ko=Symbol.for("EventEmitterKey");class Ca{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 fr(e,n){let l=0;return function(...o){const r=new Date().getTime();r-l<n||(l=r,Reflect.apply(e,null,[...o]))}}function Ta(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 ka(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 c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}}const u=()=>{const c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}i+=o,setTimeout(u,i)};setTimeout(u,i)}const Ve=Symbol("DomainKey"),ot=Symbol("DataItemsKey");class Qt{_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 $a=new Qt;function rt(){return $a}function ze(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ve]??t.inject(Ve,null):t.inject(Ve,null)}const yn=Symbol("OriginalDateKey");function Yn(e,n,l=[],o){const r=t.getCurrentInstance(),a=r?.proxy;let i=t.inject(Ve,null);i===null&&(i=rt());const s=e||n.prop||n.name,u=new Qt(s);u.parent=i;const c=p=>{a[yn]||g(p),u.set("modelValue",p)},d=()=>u.getForSelf("modelValue")??null,m=()=>a[yn]??null,g=p=>{const b={};Je(!0,b,t.toRaw(p)),a[yn]=b};t.isReactive(n)||typeof n=="function"?t.watch(n,p=>{u.merge(p,l)},{immediate:!0}):u.merge(n,l),n.modelValue&&g(n.modelValue),a[Ve]=u,t.provide(Ve,u);let T=null,h=null;if(r!==null){const p=t.inject(ye,null);T=Xt(a,p,s,o),u.broadcast=T,a[ye]=T,t.provide(ye,T),a.broadcast=(y,v,...f)=>Reflect.apply(T.emit,T,[y,v,...f]);const b=t.inject(Re,null);h=Zt(a,b,{componentName:""}),u.validateSchema=h,a[Re]=h,t.provide(Re,h),a[ot]=new Map,a.validate=(y=!0)=>{const v=[];let f=null;const B={deep:!1};if(y===!0)f={name:"*"};else if(Array.isArray(y)&&y.length>0){const V=y;f={name:L=>L?V.indexOf(L)!==-1:!1}}else if(y!=null&&typeof y=="object"){const V=y;if(B.ignoreHidden=V.ignoreHidden,Array.isArray(V.include)&&V.include.length>0){const L=V.include;f={name:R=>R?L.indexOf(R)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const L=V.exclude;f={name:R=>R?L.indexOf(R)===-1:!1}}else f={name:"*"}}if(f){const V=T?.emitToChildren(f,"validate",B);V&&Reflect.apply([].push,v,V)}return v.length==1?v[0]:v.length>1?Promise.all(v).then(V=>{let L=[];return V.forEach(R=>{R.pass===!1&&Array.isArray(R.errors)&&(L=[...L,...R.errors])}),L.length>0?{pass:!1,errors:L}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(y,v=!0,f=!1)=>{if(f===!0){Reflect.ownKeys(y).forEach(V=>{let L=String(V);const I=hr(u,L,{componentName:"",fieldName:L,pureDataValidate:!0},T,h);a[ot].set(L,I);const E=y[L];E&&I.validateSchema.setRule(E)});return}if(v){const B=Reflect.ownKeys(y),V={name:L=>B.includes(L)};T?.emitToChildren(V,"setNameValidateRules",y,!1)}},a.clearValidate=(y=!0)=>{let v=null;if(y===!0)v={name:"*"};else if(Array.isArray(y)&&y.length>0){const f=y;v={name:B=>B?f.indexOf(B)!==-1:!1}}else if(y!=null&&typeof y=="object"){const f=y;if(Array.isArray(f.include)&&f.include.length>0){const B=f.include;v={name:V=>V?B.indexOf(V)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const B=f.exclude;v={name:V=>V?B.indexOf(V)===-1:!1}}else v={name:"*"}}v&&T?.emitToChildren(v,"clearValidate",!1)},a.resetFields=y=>{const v=d();if(!v)return;const f={};if(Je(!0,f,m()??{}),Array.isArray(y))y.forEach(B=>{v[B]=f[B]});else if(y&&Array.isArray(y.include))(y.include??[]).forEach(V=>{v[V]=f[V]});else if(y&&Array.isArray(y.exclude)){let B=y.exclude??[];Reflect.ownKeys(f).forEach(V=>{B.includes(V)||(v[V]=f[V])})}else Object.assign(v,f);a.clearValidate(y)},a.setModelValue=(y,v)=>{!v||v===s?c(y):T?.emitToChildren({name:v},"setModelValue",y)},a.getModelValue=()=>d()}return t.onUnmounted(()=>{u.destroy(),a[Ve]=void 0,a[ot]&&(a[ot].clear(),a[ot]=void 0),T!==null&&(T.destroy(),a[ye]=void 0),h!==null&&(h.destroy(),a[Re]=void 0)}),u}function dr(e,n,l=[]){const r=t.getCurrentInstance()?.proxy;let a=t.inject(Ve,null);a===null&&(a=rt());const i=e||n.prop||n.name,s=new Qt(i);return s.parent=a,t.isReactive(n)||typeof n=="function"?t.watch(n,u=>{s.merge(u,l)},{immediate:!0}):s.merge(n,l),r[Ve]=s,t.provide(Ve,s),t.onUnmounted(()=>{s.destroy(),r[Ve]=void 0}),s}function mr(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 be(e,n,l){const r=t.getCurrentInstance()?.proxy,a=n??"",i=t.inject(ye,null),s=Xt(r,i,a,l);r[ye]=s,t.provide(ye,s),r.broadcast=(h,p,...b)=>Reflect.apply(s.emit,s,[h,p,...b]);const u=t.inject(Re,null);e.fieldName=e.fieldName??a;const c=Zt(r,u,e);r[Re]=c,t.provide(Re,c),mr(r,c,a),r.validate=(h=null)=>{const p=[];let b=!1,y=!1;if(Array.isArray(h)&&h.indexOf(a)!==-1)y=!0,b=!0;else if(h&&typeof h=="object"){const v=h;v.ignoreHidden===!0&&Gt(r.$el)?y=!1:(Array.isArray(v.include)&&v.include.indexOf(a)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(a),y=!0),b=v.deep??!1}else typeof h=="boolean"&&(b=h),y=!0;if(y){const v=c?.validate();p.push(v)}if(b){let v=null;const f={deep:!1};if(h===!0)v={name:"*"};else if(Array.isArray(h)&&h.length>0){const B=h;v={name:V=>V?B.indexOf(V)!==-1:!1}}else if(h!=null&&typeof h=="object"){const B=h;if(f.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const V=B.include;v={name:L=>L?V.indexOf(L)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const V=B.exclude;v={name:L=>L?V.indexOf(L)===-1:!1}}else v={name:"*"}}if(v){const B=s.emitToChildren(v,"validate",f);Reflect.apply([].push,p,B)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(v=>{let f=[];return v.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(f=[...f,...B.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>c?.setRule(h),r.setNameValidateRules=(h,p=!1)=>{const b=h[a];if(b&&c?.setRule(b),p){const y={name:v=>Reflect.ownKeys(h).includes(v)};s.emitToChildren(y,"setNameValidateRules",h,!1)}},r.clearValidate=(h=null)=>{(!Array.isArray(h)||h.indexOf(n??"")!==-1)&&c?.clear();let p=null;if(h===!0)p={name:"*"};else if(Array.isArray(h)&&h.length>0){const b=h;p={name:y=>y?b.indexOf(y)!==-1:!1}}else if(h!=null&&typeof h=="object"){const b=h;if(Array.isArray(b.include)&&b.include.length>0){const y=b.include;p={name:v=>v?y.indexOf(v)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const y=b.exclude;p={name:v=>v?y.indexOf(v)===-1:!1}}else p={name:"*"}}p&&s.emitToChildren(p,"clearValidate",!1)};const d=new Ca(r);r[Ko]=d;const m=wt((h="validate")=>{h==="reset"?c.clear():c.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ir()).forEach(h=>{d.on(h,p=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ur()).forEach(h=>{d.on(h,p=>{m("reset")})}),t.onUnmounted(()=>{s.destroy(),r[ye]=void 0,c.destroy(),r[Re]=void 0,d.destroy(),r[Ko]=void 0}),{broadcast:s,validateSchema:c,emitEvent:(h,...p)=>{Reflect.apply(d.emit,d,[h,...p])},onEvent:(h,p)=>{Reflect.apply(d.on,d,[p])},offEvent:(h,p)=>{Reflect.apply(d.off,d,[p])}}}function hr(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 u=Zt({},r,l);a.validate=(d=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const m=[];let g=!1,T=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)T=!0,g=!0;else if(d&&typeof d=="object"){const h=d;Array.isArray(h.include)&&h.include.indexOf(i)!==-1||Array.isArray(h.exclude)&&h.exclude.indexOf(i),T=!0,g=h.deep??!1}else typeof d=="boolean"&&(g=d),T=!0;if(T){const h=u?.validate();m.push(h)}if(g){let h=null;const p={deep:!1};if(d===!0)h={name:"*"};else if(Array.isArray(d)&&d.length>0){const b=d;h={name:y=>y?b.indexOf(y)!==-1:!1}}else if(d!=null&&typeof d=="object"){const b=d;if(Array.isArray(b.include)&&b.include.length>0){const y=b.include;h={name:v=>v?y.indexOf(v)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const y=b.exclude;h={name:v=>v?y.indexOf(v)===-1:!1}}else h={name:"*"}}if(h){const b=c.emitToChildren(h,"validate",p);Reflect.apply([].push,m,b)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(h=>{let p=[];return h.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(p=[...p,...b.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>u?.setRule(d),a.setNameValidateRules=d=>{const m=d[i];m&&u?.setRule(m)};const c=Xt(null,o,i,a);return{broadcast:c,validateSchema:u}}const we=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${se(e,n)}px`:"";function se(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(et){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 Oe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=se(e.top)),e.left!==null&&e.left!==void 0&&(n.left=se(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=se(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=se(e.right))),n}function Fn(e,n,l={},o=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=se(l.headerHeight??n.headerHeight??-1),e.headerPadding=Oe(l.headerPadding??n.headerPadding),e.footerHeight=se(l.footerHeight??n.footerHeight??-1),e.footerPadding=Oe(l.footerPadding??n.footerPadding),e.contentPadding=Oe(l.contentPadding??n.contentPadding),o){const u=l.height??n.height;u?e.height=se(u,a):e.height=se(a)-se(i,a)-se(s,a),e.width=se(l.width??n.width??0,r)}}function pr(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=se(r.top),o.safeAreaBottom=se(r.bottom),o.safeAreaLeft=se(r.left),o.safeAreaRight=se(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;Fn(o,a,n,!0,i,s,u,c);const d=t.reactive(o),m=e.getForParent(We);m&&(o.height=jt(e,m),o.width=_t(e,m),t.watch([()=>jt(e,m),()=>_t(e,m)],([T,h])=>{d.height=T,d.width=h}));const g=!m;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([T,h,p=-1,b=-1,y=0,v=0])=>{Fn(d,h,n,g,p,b,y,v)}),e.set(We,d),d}function en(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 xt(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 jt(e,n){if(n=n??e.get(We),n){if(n.contentInnerHeight)return n.contentInnerHeight;const l=St(e,n),o=xt(e,n);return n.height-l-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function _t(e,n){return n=n??e.get(We),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Da(e,n){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[n,e]):!1}function Ea(e){return!!e.getForParent(We)}var Ye=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ye||{});function vn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ne(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 u=a[s];if(vn(u,o))return u}const i=e.value;return vn(i,o)?i:null}):t.computed(()=>{const a=e.value;return vn(a,o)?a:r?.get(n)})}function ke(e){return Ne(e,"readonly",0,function(l){return le(l)})}function $e(e){return Ne(e,"disabled",0,function(l){return le(l)})}function ae(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 gr=new Map,Ht=new Map;let Rn=null;function Na(e){Rn=e}function yr(e,n,l){if(l){let o=Ht.get(l);o||(o=new Map,Ht.set(l,o)),o.set(e,n)}else gr.set(e,n)}function Be(e,n,l){!l&&Rn&&(l=Rn(e)??void 0);let o=null;if(l){let r=Ht.get(l);r&&(o=r.get(n))}return o||(o=gr.get(n)),o}function Va(e,n){for(let l in e){const o=e[l];yr(l,o,n)}}function Pa(e){Ht.delete(e)}function Ia(){return{top:0,left:0,bottom:0,right:0}}function Oa(e=0,n=0){if(et){const l=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,r={width:l,height:o-se(e,o)-se(n,o)};return{rootWidth:l,rootHeight:o,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class Ba{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=rt();if(this.initPageLayout(l,r),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=fr(()=>{const s={...l},u=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=c,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=Je({},Ia(),n.safeAreaInset),i=Oa(o,r),s=Je({},i.pageLayout,n.pageLayout);l=l??rt(),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){Na(n)}setAPI(n,l,o){yr(n,l,o)}getAPI(n,l,o){return Be(n,l,o)}batchSetAPI(n,l){Va(n,l)}clearScopeAPI(n){Pa(n)}getRootDomain(){return rt()}}const Aa=[x.ElAffix,x.ElAlert,x.ElAutocomplete,x.ElAutoResizer,x.ElAvatar,x.ElBacktop,x.ElBadge,x.ElBreadcrumb,x.ElBreadcrumbItem,x.ElButton,x.ElButtonGroup,x.ElCalendar,x.ElCard,x.ElCarousel,x.ElCarouselItem,x.ElCascader,x.ElCascaderPanel,x.ElCheckTag,x.ElCheckbox,x.ElCheckboxButton,x.ElCheckboxGroup,x.ElCol,x.ElCollapse,x.ElCollapseItem,x.ElCollapseTransition,x.ElColorPicker,x.ElConfigProvider,x.ElContainer,x.ElAside,x.ElFooter,x.ElHeader,x.ElMain,x.ElDatePicker,x.ElDescriptions,x.ElDescriptionsItem,x.ElDialog,x.ElDivider,x.ElDrawer,x.ElDropdown,x.ElDropdownItem,x.ElDropdownMenu,x.ElEmpty,x.ElForm,x.ElFormItem,x.ElIcon,x.ElImage,x.ElImageViewer,x.ElInput,x.ElInputNumber,x.ElLink,x.ElMenu,x.ElSubMenu,x.ElMenuItem,x.ElMenuItemGroup,x.ElPageHeader,x.ElPagination,x.ElPopconfirm,x.ElPopover,x.ElPopper,x.ElProgress,x.ElRadio,x.ElRadioButton,x.ElRadioGroup,x.ElRate,x.ElResult,x.ElRow,x.ElScrollbar,x.ElSelect,x.ElOption,x.ElOptionGroup,x.ElSelectV2,x.ElSkeleton,x.ElSkeletonItem,x.ElSlider,x.ElSpace,x.ElSteps,x.ElStep,x.ElSwitch,x.ElTable,x.ElTableColumn,x.ElTableV2,x.ElTabs,x.ElTabPane,x.ElTag,x.ElTimePicker,x.ElTimeSelect,x.ElTimeline,x.ElTimelineItem,x.ElTooltip,x.ElTransfer,x.ElTree,x.ElTreeSelect,x.ElTreeV2,x.ElUpload],Fa=[x.ElInfiniteScroll,x.ElLoading,x.ElMessage,x.ElMessageBox,x.ElNotification,x.ElPopoverDirective],Ra=e=>{Aa.forEach(n=>{let l=n.name;typeof l=="string"?(l=`Fox${l.slice(2)}`,e.component(l,n)):e.use(n)}),Fa.forEach(n=>{e.use(n)})};function oe(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 he={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}},xe={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}},vr={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}},br={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}},wr=[];for(const e in br)wr.push(e);function me(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}const Ma=Symbol.for("InnerPageScopeKey"),La=(e,n)=>({inheritAttrs:!0,props:{...he,...vr,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=Yn(l.name,l);if(r){const c=pr(r,l);me({getPageContentHeight:()=>jt(r,c),getPageContentWidth:()=>_t(r,c),getPageHeaderHeight:()=>St(r,c),getPageFooterHeight:()=>xt(r,c)});const d=t.inject(Ma,!1);c&&d&&(c.contentHeight="100%")}const a=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),s=t.getCurrentInstance(),u=(c,d=!1)=>{const m=s?.proxy;m&&typeof m.setNameValidateRules=="function"&&m.setNameValidateRules(c,!0,d)};return t.watch([()=>l.rules,()=>l.pureDataRules],([c,d],[m,g])=>{if(c&&m){const T=t.toRaw(m),h=t.toRaw(c),p=h?Reflect.ownKeys(h):[];(T?Reflect.ownKeys(T):[]).forEach(y=>{p.includes(y)||(h[y]=[])}),u(h)}if(d&&g){const T=t.toRaw(g),h=t.toRaw(d),p=h?Reflect.ownKeys(h):[];(T?Reflect.ownKeys(T):[]).forEach(y=>{p.includes(y)||(h[y]=[])}),u(h,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const c=t.toRaw(l.rules);u(c)}if(l.pureDataRules){const c=t.toRaw(l.pureDataRules);u(c,!0)}}),t.onBeforeUnmount(()=>{}),{classes:a,styles:i}}}),{componentName:qa,create:za,scope:rh}=oe("page"),ja=za(La(qa));function _a(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 ce=(e,n)=>{const l=e.__vccOpts||e;for(const[o,r]of n)l[o]=r;return l},Un=ce(ja,[["render",_a]]);function Gn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Xn(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 Ha=(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?en(i):null;s&&(s.headerMounted=!0);const u=e,c=t.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),d=t.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),m=r.height!==null&&r.height!==void 0?se(r.height):null,g=t.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const C=Oe(r.padding??s.headerPadding);return Object.assign(w,C),m&&(s.headerHeight=m),s.headerHeight>0&&(w.height=s.headerHeight),w.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,w.safeAreaTop>0&&(w.top=w.safeAreaTop+(C.top??0),w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)),w}if(m&&(w.height=m),r.padding){const C=Oe(r.padding);Object.assign(w,C)}return w}),T=t.ref(null),h=()=>{if(s&&T.value&&!Gt(T.value)){if(!o){const w=Gn(T.value);s.headerAllHeight=w.height}return s.headerMounted=!0,!0}return!1};let p=null;t.onMounted(()=>{s&&(Jt(h,50,5,50,!0),window.ResizeObserver&&T.value&&(p=new window.ResizeObserver(()=>{h()}),p.observe(T.value)))}),t.onUnmounted(()=>{s&&(s.headerMounted=!1,p&&(p.disconnect(),p=null))});const b=t.computed(()=>{const w={};return g.value.height!==null&&g.value.height!==void 0&&(w.height=`${g.value.height}px`),g.value.top!==null&&g.value.top!==void 0&&(w.paddingTop=`${g.value.top}px`),g.value.left!==null&&g.value.left!==void 0&&(w.paddingLeft=`${g.value.left}px`),g.value.right!==null&&g.value.right!==void 0&&(w.paddingRight=`${g.value.right}px`),g.value.bottom!==null&&g.value.bottom!==void 0&&(w.paddingBottom=`${g.value.bottom}px`),w}),y=t.computed(()=>!(g.value.height!==null&&g.value.height!==void 0&&g.value.height<=0));function v(){a.emit("back")}function f(){a.emit("click-title")}function B(){a.emit("click-right")}function V(){a.emit("click-right-text")}const L=()=>{if(!r.leftShow)return null;const w=[];if(a.slots.left)w.push(a.slots.left());else{if(a.slots.leftIcon){const C=t.h("view",{class:"left-icon",onClick:v},[a.slots.leftIcon()]);w.push(C)}else if(r.leftIcon){const C=t.h("view",{class:"left-icon",onClick:v},[t.h(r.leftIcon)]);w.push(C)}if(r.leftText){const C=t.h("view",{class:"left-text",onClick:v},[r.leftText]);w.push(C)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__left"},w)},R=()=>{if(!r.rightShow)return null;const w=[];if(a.slots.right)w.push(a.slots.right());else{if(r.rightText){const C=t.h("view",{class:"right-text",onClick:V},[r.rightText]);w.push(C)}if(a.slots.rightIcon){const C=t.h("view",{class:"right-icon",onClick:B},[a.slots.rightIcon()]);w.push(C)}else if(r.rightIcon){const C=t.h("view",{class:"right-icon",onClick:B},[t.h(r.rightIcon)]);w.push(C)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__right"},w)},I=()=>{if(!r.titleShow)return null;const w=[],C=a.slots.default?a.slots.default():null;if(C)w.push(C);else{if(r.title){const O=t.h("view",{class:"title-text"},[r.title]);w.push(O)}if(a.slots.titleIcon){const O=t.h("view",{class:"title-icon",onClick:f},[a.slots.titleIcon()]);w.push(O)}else if(r.titleIcon){const O=t.h("view",{class:"title-icon",onClick:f},[t.h(r.titleIcon)]);w.push(O)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__title"},w)},E=()=>{const w=[],C=a.slots.bottom?a.slots.bottom():null;return C&&w.push(C),w.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},w)};return()=>{if(!y.value)return null;const w=[];if(a.slots.all)w.push(a.slots.all());else{const O=[],S=L();S&&O.push(S);const k=I();k&&O.push(k);const D=R();if(D&&O.push(D),O.length>0){const N=t.h("view",{class:d.value},O);w.push(N)}const F=E();F&&w.push(F)}if(w.length===0)return null;const C={class:c.value,style:b.value,ref:T};return t.h("view",C,w)}}}),{componentName:Ka,create:Wa,scope:Ya}=oe("header-bar"),Zn=Wa(Ha(Ka,Ya,ve.ArrowLeft));function Ua(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?en(a):null,s=t.computed(()=>{const h=e;return{[h]:!0,[`${h}--${o.align}`]:!0,[`${h}--border`]:o.border,[`${h}--fixed`]:o.fixed,[`${h}--safe-area-inset-bottom`]:o.safeAreaInsetBottom}}),u=o.height!==null&&o.height!==void 0?se(o.height):null,c=t.computed(()=>{const h={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const p=Oe(o.padding??i.footerPadding);return Object.assign(h,p),u&&(i.footerHeight=u),i.footerHeight>0&&(h.height=i.footerHeight),h.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,h.safeAreaBottom>0&&(h.bottom=h.safeAreaBottom+(p.bottom??0),h.height&&h.height>0&&(h.height=h.height+h.safeAreaBottom)),h}if(u&&(h.height=u),o.padding){const p=Oe(o.padding);Object.assign(h,p)}return h}),d=t.ref(null),m=()=>{if(i&&d.value&&!Gt(d.value)){if(!l){const h=Gn(d.value);i.footerAllHeight=h.height}return i.footerMounted=!0,!0}return!1};let g=null;t.onMounted(()=>{i&&(Jt(m,50,5,50,!0),window.ResizeObserver&&(g=new window.ResizeObserver(()=>{m()}),g.observe(d.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,g&&(g.disconnect(),g=null))});const T=t.computed(()=>{const h={};return c.value.height!==null&&c.value.height!==void 0&&(h.height=we(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(h.paddingTop=we(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(h.paddingLeft=we(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(h.paddingRight=we(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(h.paddingBottom=we(c.value.bottom)),h});return()=>{const h=r.slots.default?r.slots.default():[],p={ref:d,class:s.value,style:T.value};return t.h("view",p,h)}}}}const{componentName:Ga,create:Xa,scope:ah}=oe("footer-bar"),Jn=Xa(Ua(Ga));function Za(e,n){return{props:{padding:{type:[Object],required:!1}},setup(l){const o=ze(),r=t.computed(()=>({[e]:!0})),a=o?en(o):null,i=t.computed(()=>{const c={};if(o&&a){if(l.padding){const T=Oe(l.padding);Object.assign(a.contentPadding,T)}const d=St(o,a),m=xt(o,a);let g="";if(a.contentHeight?g=`${a.contentHeight}`:g=`${a.height}px`,a.contentPadding,c.height=g,a.contentPadding.top||d>0){const T=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${d+T}px`}if(a.contentPadding.bottom||m>0){const T=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${m+T}px`}return a.contentPadding.left&&(c.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(c.paddingRight=`${a.contentPadding.right}px`),c}if(l.padding){const d=Oe(l.padding);d.left&&(c.paddingLeft=`${d.left}px`),d.top&&(c.paddingTop=`${d.top}px`),d.right&&(c.paddingRight=`${d.right}px`),d.bottom&&(c.paddingBottom=`${d.bottom}px`)}return c}),s=t.ref(null),u=()=>{if(a&&s.value){const c=Xn(s.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return t.onMounted(()=>{u()}),o&&a&&t.watch([()=>St(o),()=>xt(o)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:Ja,create:Qa,scope:ih}=oe("content"),ei=Qa(Za(Ja));function ti(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=ce(ei,[["render",ti]]),ut="GroupStateKey",Sr=Symbol.for("GroupScopeKey");function tn(){return t.inject(Sr,!1)}function nn(e=!0){t.provide(Sr,e)}function ni(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const r=n[o];Kn(r)||(e[o]=r)})}function oi(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ni(o,n);const r=t.shallowRef(o),a=t.markRaw({layout:r,passport:0,order:{index:0}});return e.set(ut,a),a}function bn(e,n,l=-1,o=-1,r=!1,a,i,s){const u=e.get(ut);if(!u)return;const c=e.get("groupLayout")??{};l===-1&&(l=c.column??1),o===-1&&(o=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=se(a),m=se(i);s||(s=c.type??"grid");const g=()=>{const T=n===""||n===-1,h=se(n);let p=ie(l);const b=se(o);if(!T){let f=(h-(p-1)*b)/p;for(;m!==-1&&f>m;)p++,f=(h-(p-1)*b)/p;for(;d!==-1&&p>1&&f<d;)p--,f=(h-(p-1)*b)/p}let y=!1;const v=u.layout;v.value.width=n,v.value.column!==p&&(v.value.column=p,y=!0),v.value.gutter!==b&&(v.value.gutter=b,y=!0),v.value.type!==s&&(v.value.type=s,y=!0),y&&t.triggerRef(v)};if(r)g();else{const T=++u.passport;setTimeout(()=>{T===u.passport&&g()},50)}}function on(e,n=!1){let l;return n?l=e.getForParent(ut):l=e.get(ut),l.layout}function ln(e,n=!1){let l;return n?l=e.getForParent(ut):l=e.get(ut),l.order}function Wo(e,n=1){if(n==="stretch")return-1;const l=ie(n);return l===-1?100:100*l/e}function rn(e,n,l=1,o=0,r){const a={};let i=0;r?i=se(r):i=Wo(n.column,l),i>0&&(a.width=`${i}%`);const s=Wo(n.column,o);s>0&&(a["margin-left"]=`${s}%`);const u=n.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function an(e,n,l=1,o=0){if(l==="stretch"){const u=e.index%n.column,c=u+(n.column-u);return e.index=e.index+(c-u),{"grid-column":`${u+1} / -1`}}let r=ie(l);if(r===-1){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}const a=ie(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 xr=Symbol("RollingStateKey");function li(e){t.provide(xr,e)}function ri(){return t.inject(xr,null)}function Mn(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 ai(e){let n=Mn(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=Mn(l),document.body.removeChild(l)}return n}function ii(e,n,l){if(e<=0)return"1fr";const o=(e-(n-1)*l)/n;return o>0?`${o}px`:"1fr"}const si={...he,...vr,...br};function ui(e,n,l){return{props:si,emits:["update:collapse"],setup(o,r){const a=Yn(o.name,o,wr),i=oi(a,{type:o.type}),s=tn();nn(!0);const u=o.rollingDisplay?ri():null,c=t.ref(null),d=t.computed(()=>o.rollingDisplay?u&&!u.disabled:!1),m=t.computed(()=>s&&a?on(a,!0).value:null),g=t.getCurrentInstance(),T=(q,W=!1)=>{const X=g?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(q,!0,W)};t.watch([()=>o.rules,()=>o.pureDataRules],([q,W],[X,K])=>{if(q&&X){const P=t.toRaw(X),Y=t.toRaw(q),Q=Y?Reflect.ownKeys(Y):[];(P?Reflect.ownKeys(P):[]).forEach(fe=>{Q.includes(fe)||(Y[fe]=[])}),T(Y)}if(W&&K){const P=t.toRaw(K),Y=t.toRaw(W),Q=Y?Reflect.ownKeys(Y):[];(P?Reflect.ownKeys(P):[]).forEach(fe=>{Q.includes(fe)||(Y[fe]=[])}),T(Y,!0)}},{deep:!0});const h=e,p=t.computed(()=>{const q={};q.height=D.value;const W=s?ln(a,!0):null;if(m.value&&W){if(m.value.type==="grid"){const X=an(W,m.value,o.span,o.offset);Object.assign(q,X)}else if(m.value.type==="flow"){const X=rn(W,m.value,o.span,o.offset,o.width);Object.assign(q,X)}}else if(o.width){const X=we(o.width);q.width=X}return q}),b=t.computed(()=>{const q=i.layout.value.type;return q==="grid"||q==="flow"?{[`${h}--${q}`]:!0,[`${h}--${q}-justify-${o.justify}`]:!0,[`${h}--${q}-align-${o.align}`]:!0,[`${h}--gutter`]:!0}:{[`${h}--${q}`]:!0,[`${h}--gutter`]:!0}}),y=t.computed(()=>{if(i.layout.value.type==="grid"){let W="";if(o.columnWidth)W=`repeat(auto-fill, ${o.columnWidth})`;else{const X=ii(I.value,i.layout.value.column,i.layout.value.gutter);W=`repeat(${i.layout.value.column}, ${X})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":W}}}),v=t.toRef(o,"gutter"),f=t.toRef(o,"column"),B=t.computed(()=>s||d.value?!0:le(o.isWrap)),V=[],L=q=>{V.push(q)},R=()=>{let q=V.length;V.splice(0,q)},I=t.ref(-1),E=q=>{const W=Xn(q).width;W>0&&W!==I.value&&(I.value=W)};bn(a,I.value,f.value,v.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([I,f,v],([q,W,X])=>{i.order.index=0,bn(a,q,W,X,!1,o.minItemWidth,o.maxItemWidth,o.type)});const w=t.computed(()=>F.value?o.expandText??"":o.collapseText??""),C=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),O=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!F.value,"is-collapse":F.value})),S=t.ref(),k=t.ref(),D=t.computed(()=>N.value||we(o.height)||""),F=t.ref(!1),N=t.ref(""),_=t.ref(!1);let A=-1;const z=(q,W=!0)=>{const X=S.value;if(X&&F.value!==q){if(A=A===-1?ai(X):A,_.value=!0,W)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",q||(N.value="",_.value=!1)},q){let K=0;o.collapseHeight?K=o.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(K=k.value.offsetHeight),N.value=`${A}px`,t.nextTick(()=>{N.value=`${K}px`})}else N.value=`${A}px`;else if(q){let K=0;o.collapseHeight?K=o.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(K=k.value.offsetHeight),N.value=`${K}px`}else _.value=!1,N.value=`${A}px`;F.value=q,r.emit("update:collapse",q)}};t.watch(()=>o.collapse,q=>{z(q)});const U=()=>{H()},H=q=>{q=q??!F.value,z(q)};me({toggleCollapse:H,doLayout:()=>{V[0]&&(E(V[0]),bn(a,I.value,f.value,v.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let Z=null,ee=!0;const M=q=>{if(o.rules){const W=t.toRaw(o.rules);T(W)}if(o.pureDataRules){const W=t.toRaw(o.pureDataRules);T(W,!0)}if(et&&(q&&z(le(o.collapse),!1),o.autoLayout&&Array.isArray(V)&&V.length>0)){const W=V[0];E(W),window.ResizeObserver&&(Z=new window.ResizeObserver(()=>{E(W)}),Z.observe(W))}},J=()=>{Z?.disconnect(),Z=null},te=!d.value||u?.acquire();te&&(c.value=d.value?!0:null),t.onMounted(()=>{if(te&&(M(ee),ee=!1),d.value&&u){let q=null,W=u.initialHeight;u.observe(S.value,X=>{if(X!==c.value)if(X)c.value=!0,F.value||(N.value=""),q=setTimeout(()=>{q=null,c.value!==!1&&(M(ee),ee=!1)},100);else{if(q!==null&&clearTimeout(q),c.value=!1,!F.value)if(ee)N.value=u.initialHeight;else{let K=Mn(S.value);K<=0?N.value=W:(N.value=`${K}px`,W=N.value)}ee||J()}})}}),t.onUnmounted(()=>{Z?.disconnect(),u&&u.unobserve(S.value)});const $=(q="right")=>{const W=[];if(w.value){const P={class:C.value},Y=t.h("span",P,[w.value]);W.push(Y)}const X={class:O.value},K=l(o.collapseIcon,X);return K&&W.push(K),W.length>0?t.h("div",{class:{[`${h}__header-collapse`]:!0,[`is-${q}`]:!0},onClick:U},W):null},j=(q,W,X,K)=>{const P={...b.value};return W===0&&(P[`${h}__first`]=!0),X>=K-1&&(P[`${h}__last`]=!0),t.h("div",{ref:L,key:`${W}`,class:P,style:y.value},q)};return()=>{if(d.value&&c.value!==!0){const P=o.tag||"div";return t.h(P,{ref:S,prop:o.name,class:{[`${h}`]:!0,"is-collapse":_.value},style:p.value},[])}i.order.index=0;const q=[];let W=0;if(r.slots.header){const P={key:`${W++}`,ref:k,class:{[`${h}__header`]:!0,[`${h}__first`]:!0}},Y=t.h("div",P,[r.slots.header()]);q.push(Y)}else{const P=[],Y=o.collapsePosition==="left";if(Y&&o.showCollapse){const Q=$("left");Q&&P.push(Q)}if(o.title||r.slots.title){if(o.showMark){const Q={class:{[`${h}__header-mark`]:!0}};o.markColor&&(Q.style={background:o.markColor});const ue=t.h("div",Q);P.push(ue)}if(r.slots.title){const Q=t.h("div",{class:{[`${h}__header-title`]:!0}},[r.slots.title()]);P.push(Q)}else if(o.title){const Q=t.h("div",{class:{[`${h}__header-title`]:!0}},[o.title]);P.push(Q)}}if(r.slots.toolbar&&P.push(r.slots.toolbar()),!Y&&o.showCollapse){const Q=$("right");Q&&P.push(Q)}if(P.length>0){const Q={key:`${W++}`,ref:k,class:{[`${h}__header`]:!0,[`${h}__first`]:!0}},ue=t.h("div",Q,P);q.push(ue)}}R();const X=r.slots.default?r.slots.default():[],K=i.layout.value.type;if(K==="grid"){const P=j(X,W++,0,X.length);q.push(P)}else if(K==="flow"){const P=j(X,W++,0,X.length);q.push(P)}else for(let P=0;P<X.length;P++){const Y=X[P],Q=j([Y],W++,P,X.length);q.push(Q)}if(B.value){const P=o.tag||"div";return t.h(P,{ref:S,prop:o.name,class:{[`${h}`]:!0,"is-collapse":_.value},style:p.value},[q])}else return q}}}}const{componentName:ci,create:fi,scope:di}=oe("group"),mi=(e,n)=>(e=e??ve.ArrowUp,t.h(x.ElIcon,n,{default:()=>[t.h(e)]})),eo=fi(ui(ci,di,mi));function hi(e){return e===window}const pi=/matrix\((.+)\)/,Cr=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(hi(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,u=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const d=pi.exec(c);if(d){let g=d[1].split(/\s*,\s*/);g.length==6&&(s+=Number(g[4]),u+=Number(g[5]))}}r=r.parentNode}return l-=a,o-=i,l+=s,o+=u,{x:l,y:o}};class gi{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 yi{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 gi,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 Yo=new yi,Tr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:vi,create:bi}=oe("price"),wi=bi({props:{...Tr},setup(e){const n=t.computed(()=>({[vi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>Pe(e.price)==0?"":Yt(e.price,e.decimalLength,!0,ie(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}}}),Si=["innerHTML"],xi=["innerHTML"];function Ci(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,Si)):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,xi)):t.createCommentVNode("",!0)],2)}const sn=ce(wi,[["render",Ci]]),{componentName:wn,create:Ti}=oe("hint-text"),ki=Ti({components:{Price:sn},props:{...Tr,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),u=t.ref(null),c=(C,O,S,k,D,F)=>{const N=document.documentElement.clientWidth||document.body.clientWidth,_=document.documentElement.clientHeight||document.body.clientHeight,A=C.split("-");let z=[];A[0]==="top"?z=["top","bottom","right","left"]:A[0]==="bottom"?z=["bottom","top","right","left"]:A[0]==="left"?z=["left","top","bottom","right"]:A[0]==="right"&&(z=["right","top","bottom","left"]);const U={top:null,right:null,bottom:null,left:null},H=[];for(let G=0;G<z.length;G++){const Z=z[G];if(H[0]=Z,A[1]&&(H[1]=A[1]),Z==="top"){const ee=O.y-F-e.arrowSize-e.offset;if(ee>=0){U.top=ee;let M=0;A[1]==="start"?M=O.x:A[1]==="end"?M=O.x+S-D:M=O.x+S/2-D/2;const J=N-M-D;J<0?(M+=J,m.value=-J):m.value=0,U.left=M<0?0:M;break}}else if(Z==="bottom"){const ee=O.y+k+e.arrowSize+e.offset;if(ee+F<=_){U.top=ee;let M=0;A[1]==="start"?M=O.x:A[1]==="end"?M=O.x+S-D:M=O.x+S/2-D/2;const J=N-M-D;J<0?(M+=J,m.value=-J):m.value=0,U.left=M<0?0:M;break}}else if(Z==="left"){const ee=O.x-D-e.arrowSize-e.offset;if(ee>=0){U.left=ee;let M=0;A[1]==="start"?M=O.y:A[1]==="end"?M=O.y+k-F:M=O.y+k/2-F/2,U.top=M<0?0:M;break}}else if(Z==="right"){const ee=O.x+S+e.arrowSize+e.offset;if(ee+D<=N){U.left=ee;let M=0;A[1]==="start"?M=O.y:A[1]==="end"?M=O.y+k-F:M=O.y+k/2-F/2,U.top=M<0?0:M;break}}}return{bestPlacement:H.join("-"),bestInsetRect:U}},d=(C,O,S=10)=>{if(!et||O===!1||!C)return;o.value=Cr(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const k=u.value.offsetHeight,D=u.value.offsetWidth,{bestPlacement:F,bestInsetRect:N}=c(e.placement,o.value,r.value,a.value,D,k);i.value=F,l.value=N,s.value=!0},m=t.ref(0),g=wt(()=>{d(e.message,e.visible)},10),T=t.ref(e.visible);t.watch(()=>e.visible,C=>{T.value=C});const h=t.computed(()=>T.value&&p.value),p=t.ref(!0),b=wt(C=>{const O=C[0];O&&(p.value=O.isIntersecting)},10),y=new IntersectionObserver(b);t.watch([()=>e.message,()=>e.visible],([C,O])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Yo.watch(e.reference,g),y.observe(e.reference)}),t.onBeforeMount(()=>{Yo.unwatch(e.reference,g),y.unobserve(e.reference),y.disconnect()});const v=t.computed(()=>{const C={[wn]:!0};return i.value.startsWith("top")?C["is-top"]=!0:i.value.startsWith("right")?C["is-right"]=!0:i.value.startsWith("bottom")?C["is-bottom"]=!0:i.value.startsWith("right")&&(C["is-right"]=!0),e.size==="small"?C["is-small"]=!0:e.size==="large"&&(C["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(C[`${e.customClass}`]=!0),C}),f=t.computed(()=>{const C={};l.value.top!==null&&(C.top=`${l.value.top}px`),l.value.right!==null&&(C.right=`${l.value.right}px`),l.value.bottom!==null&&(C.bottom=`${l.value.bottom}px`),l.value.left!==null&&(C.left=`${l.value.left}px`),e.autoFit&&(C["min-width"]=`${r.value}px`);const O=document.documentElement.clientWidth||document.body.clientWidth;return C["max-width"]=`${O}px`,s.value&&(C.opacity="1"),e.transition||(C.transition="none"),e.zIndex&&(C["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(C,e.customStyle),C}),B=t.computed(()=>{const C=[`${wn}__content`];return e.customTextClass&&C.push(e.customTextClass),C}),V=t.computed(()=>{const C={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(C,e.customTextStyle),C}),L=t.computed(()=>({[`${wn}__arrow`]:!0})),R=t.computed(()=>{const C={};return e.showArrow?(C.width=`${e.arrowSize}px`,C.height=`${e.arrowSize}px`,i.value==="top"?(C.left="50%",C.bottom=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):i.value==="top-start"?(C.left=`${e.arrowOffset+m.value}px`,C.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(C.right=`${e.arrowOffset-m.value}px`,C.bottom=`-${e.arrowSize}px`):i.value==="right"?(C.left=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):i.value==="right-start"?(C.left=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):i.value==="right-end"?(C.left=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(C.left="50%",C.top=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(C.left=`${e.arrowOffset+m.value}px`,C.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(C.right=`${e.arrowOffset-m.value}px`,C.top=`-${e.arrowSize}px`):i.value==="left"?(C.right=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):i.value==="left-start"?(C.right=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):i.value==="left-end"&&(C.right=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`),C):{display:"none"}}),I=t.computed(()=>h.value&&e.closeOnClick),E=t.computed(()=>{const C={};return e.zIndex&&(C["z-index"]=`${e.zIndex}`),C});return{show:h,tipRef:u,classes:v,styles:f,textClasses:B,textStyles:V,arrowClasses:L,arrowStyles:R,overlayShow:I,overlayStyle:E,onClickOverlay:()=>{T.value=!1,n.emit("update:visible",!1)}}}});function $i(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 It=ce(ki,[["render",$i]]);class kr{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 Ln={},Di=new kr,at=new Map,Kt=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()}},Ei=e=>{e.unmount=Kt;const n=document.getElementById(e.id);if(n){const l=at.get(e.id);l?e={...Ln,...l,...e}:e={...Ln,...e},e.transition=!1;const o=t.createVNode(It,e);return t.render(o,n),e.id}},Ni=e=>{e.unmount=Kt;let n=e.id??`hinttext_${Di.get()}`;e={...Ln,...e},e.id=n,at.set(n,e);const l=document.createElement("div");l.id=e.id;const o=t.createVNode(It,e);return t.render(o,l),document.body.appendChild(l),n},Vi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Te={show(e,n,l={},o=!0){Vi(n);const r=l.id;return r&&at.has(r)?Ei({...l,message:n,reference:e}):(o&&Kt(),Ni({...l,message:n,reference:e}))},hide(e){Kt(e)},install(e){e.config.globalProperties.$hintText=Te}},{componentName:Uo,create:Pi}=oe("item"),Ii=Pi({inheritAttrs:!0,props:{...he,...xe},emits:["appear","disappear"],setup(e,n){const l=e.prop??n.attrs.name;be({componentName:Uo,validate:!1},l);const o=ze(),r=tn();nn(!1);const a=t.computed(()=>r&&o?on(o,!1).value:null),i=Uo,s=t.ref(null),u=t.computed(()=>{const $={[i]:!0,[`${i}__gutter`]:a.value&&a.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:le(e.hasBorder)};if($[e.errorMarkClass]=!!O.value,$[e.warnMarkClass]=!!w.value,$[e.infoMarkClass]=!!I.value,typeof s.value=="function"){const j=s.value(l);$[j]=!0}else if(typeof s.value=="string"){const j=s.value;$[j]=!0}return $}),c=t.ref(null),d=t.computed(()=>{const $={},j=r&&o?ln(o,!1):null;if(a.value&&j)if(a.value.type==="grid"){const q=an(j,a.value,e.span,e.offset);Object.assign($,q)}else if(a.value.type==="flow"){const q=rn(j,a.value,e.span,e.offset,e.width);Object.assign($,q)}else return e.width&&($.width=we(e.width)),$;else e.width&&($.width=we(e.width));if(typeof c.value=="function"){const q=c.value(l);q&&Object.assign($,q)}else if(c.value&&typeof c.value=="object"){const q=c.value;Object.assign($,q)}return $}),m=t.ref(null),g=t.computed({get:()=>m.value??le(e.isRequired),set:$=>{m.value=$}}),T=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),h=Ne(t.toRef(e,"labelPosition"),"labelPosition",Ye.Near),p=t.computed(()=>h&&h.value==="top"?"top":h&&h.value==="right"?"right":"left"),b=t.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${p.value}`]:!0})),y=t.computed(()=>({label:!0,[`label--${p.value}`]:!0})),v=Ne(t.toRef(e,"labelWidth"),"labelWidth",Ye.Near),f=t.computed(()=>v&&v.value?{width:we(v.value)}:{}),B=t.computed(()=>({"label--string":!0,"label--required":g.value})),V=t.computed(()=>({content:!0,[e.contentClass]:!0})),L=t.computed(()=>({...e.contentStyle})),R=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});me({setRequired($){g.value=$},setErrorTip($){R.errorTip=$},setErrorIcon($){R.errorIcon=$},setWarnTip($){R.warnTip=$},setWarnIcon($){R.warnIcon=$},setInfoTip($){R.infoTip=$},setInfoIcon($){R.infoIcon=$},setCustomClassName($){s.value=$},setCustomStyle($){c.value=$}});const I=t.computed(()=>e.infoTip||R.infoTip),E=t.computed(()=>e.infoIcon||R.infoIcon),w=t.computed(()=>e.warnTip||R.warnTip),C=t.computed(()=>e.warnIcon||R.warnIcon),O=t.computed(()=>e.errorTip||R.errorTip),S=t.computed(()=>e.errorIcon||R.errorIcon),k=t.computed(()=>O.value?"error":w.value?"warn":I.value?"info":""),D=t.computed(()=>k.value.length>0),F=t.computed(()=>k.value==="error"?O.value:k.value==="warn"?w.value:k.value==="info"?I.value:""),N=t.computed(()=>k.value==="error"?S.value:k.value==="warn"?C.value:k.value==="info"?E.value:null),_=t.computed(()=>{let $={[`${i}__tip`]:!0,[`${i}__tip--${k.value}`]:!0};return k.value==="error"&&e.errorClass?$[`${e.errorClass}`]=!0:k.value==="warn"&&e.warnClass?$[`${e.warnClass}`]=!0:k.value==="info"&&e.infoClass&&($[`${e.infoClass}`]=!0),$}),A=t.computed(()=>{let $={};return h&&h.value==="top"||!T.value?$["padding-left"]="0px":v&&v.value&&($["padding-left"]=we(v.value)),$}),z=()=>{const $=N.value;return $?typeof $=="function"?t.h("div",{class:"fox-item__tip--icon"},[$()]):t.h("div",{class:"fox-item__tip--icon"},[t.h($)]):null},U=()=>{const $=F.value;return $?typeof $=="function"?t.h("div",{class:"fox-item__tip--text"},[$()]):t.h("div",{class:"fox-item__tip--text"},[$]):null},H=t.computed(()=>n.slots.fixedTip),G=t.computed(()=>({[`${i}__fixed-tip`]:!0})),Z=t.ref();let ee="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([$,j,q,W])=>{Z.value&&($&&!ge(j)?ee?Te.show(Z.value,j,{...W,id:ee,type:q},!0):ee=Te.show(Z.value,j,{...W,type:q},!0):Te.hide(ee))});let M=null;const J=()=>{M||!Z.value||(M=new IntersectionObserver($=>{let j=!1;for(let q of $)if(q.intersectionRatio>0){j=!0,j&&n.emit("appear",q);break}j||n.emit("disappear")}),M.observe(Z.value))},te=()=>{!M||!Z.value||(M.unobserve(Z.value),M=null)};return t.watch(()=>le(e.appearListen),$=>{$?J():te()}),t.onMounted(()=>{le(e.appearListen)&&J()}),t.onUnmounted(te),{classes:u,styles:d,mainClasses:b,hasLabel:T,labelClasses:y,labelStyles:f,labelStringClasses:B,contentClasses:V,contentStyles:L,contentRef:Z,hasTip:D,mTip:F,mIcon:N,renderIcon:z,renderTip:U,tipClasses:_,tipStyles:A,hasFixedTip:H,fixedTipClasses:G}}}),Oi=["prop"];function Bi(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,Oi)}const pe=ce(Ii,[["render",Bi]]);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}},setup(l,o){const r=ze(),a=tn();nn(!1);const i=t.computed(()=>a&&r?on(r,!1).value:null),s=e,u=t.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:l.span==="stretch"})),c=t.computed(()=>{const d={},m=a&&r?ln(r,!1):null;if(i.value&&m)if(i.value.type==="grid"){const g=an(m,i.value,l.span,l.offset);Object.assign(d,g)}else if(i.value.type==="flow"){const g=rn(m,i.value,l.span,l.offset,l.width);Object.assign(d,g)}else return l.width&&(d.width=we(l.width)),d;else l.width&&(d.width=we(l.width));return d});return()=>{const d={class:u.value,style:c.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",d,o.slots.default()):t.h("div",d)}}}}const{componentName:Fi,create:Ri,scope:sh}=oe("slot-item"),to=Ri(Ai(Fi));function Mi(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=tn();nn(!1);const u=t.computed(()=>{const c={};if(s&&i){const d=on(i,!1),m=ln(i,!1);if(d.value&&m)if(d.value.type==="grid"){const g=an(m,d.value,l.span,l.offset);Object.assign(c,g)}else if(d.value.type==="flow"){const g=rn(m,d.value,l.span,l.offset,l.width);Object.assign(c,g)}else l.width&&(c.width=we(l.width))}else l.width&&(c.width=we(l.width));return c});return()=>{const c=[];if(o.slots.default){const m=o.slots.default();if(l.divide)for(let g=0;g<m.length;g++){if(g>0){const T=t.h("div",{class:{[`${r}__divide`]:!0}});c.push(T)}c.push(m[g])}else Reflect.apply([].push,c,m)}const d={class:a.value,style:u.value};return t.h("div",d,c)}}}}const{componentName:Li,create:qi,scope:uh}=oe("row-item"),no=qi(Mi(Li)),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},Go={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 zi(e,n,l){return{props:{...he,...xe,...Go},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),m=ae(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__readonly`]:i.value})),h=S=>{m.value=S,s("update:modelValue",S),s("input",S)},p=S=>{s("change",S)};let b=ae(o,"hintText"),y=t.ref(!1);const v=S=>{let D=S.target.value;d.value=!0,ge(b.value)||(y.value=!0),s("focus",D,S)},f=S=>{setTimeout(()=>{y.value&&(y.value=!1),d.value=!1},0);let D=S.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),s("blur",D,S)},B=()=>{s("clear","")},V=t.ref(!1);let L=null;const R=()=>{o.showTooltip&&V.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{V.value=!0},150))},I=()=>{L&&(clearTimeout(L),V.value=!1,L=null)},E=t.computed(()=>V.value||y.value),w=t.computed(()=>V.value?m.value:b.value),C=t.computed(()=>Pe(o.unit)>0),O=t.ref();return me({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},select:()=>{O?.value.select()}}),()=>{const k={...je(r.attrs),ref:O,class:T.value,placeholder:c.placeholder.value,clearable:o.clearable,disabled:a.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:B,onChange:p,onInput:h,onFocus:v,onBlur:f,onMouseover:R,onMouseleave:I},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:C.value&&(D.suffix=()=>[o.unit]);const F=[],N=t.h(x.ElInput,k,D);F.push(N);const _={default:()=>F};r.slots.default&&(_.label=r.slots.default),r.slots.default&&(_.fixedTip=r.slots.fixedTip);const z={...Se(o,Go),hintText:w.value,hintVisible:E.value,prop:`${o.prop}_item`};return t.h(l,z,_)}}}}const{componentName:ji,create:_i,scope:Hi}=oe("input-item"),oo=_i(zi(ji,Hi,pe)),lo={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:{}}},$r=2500;let Sn=$r;const Ki=(e,n)=>({components:n,props:{...lo},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??Sn,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}`),u=()=>{l.zIndex&&l.zIndex!==$r&&(Sn=Number(l.zIndex)),o("update:visible",!0),r.zIndex=++Sn,l.destroyOnClose&&(r.showSlot=!0),o("open")},c=()=>{o("update:visible",!1),o("close"),l.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+l.duration*1e3)},d=p=>{o("click-pop",p)},m=p=>{p.stopPropagation(),o("click-close-icon",p),o("update:visible",!1)},g=p=>{o("click-overlay",p),l.closeOnClickOverlay&&o("update:visible",!1)},T=p=>{o("opend",p)},h=p=>{o("closed",p)};return t.watch(()=>l.visible,p=>{l.visible?u():c()}),t.watchEffect(()=>{r.closed=l.closeable}),{...t.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:d,onClickCloseIcon:m,onClickOverlay:g,onOpened:T,onClosed:h}}}),Dr={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}},ro={...lo,...Dr,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 Wi(e){return e===window}const Ze=e=>{const n=t.unref(e);if(Wi(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 yt=0;const Xo="fox-overflow-hidden",Zo=()=>et?document.body:{classList:[]},Yi=e=>[()=>{if(e())try{!yt&&Zo().classList.add(Xo),yt++}catch{}},()=>{if(e()&&yt)try{yt--,!yt&&Zo().classList.remove(Xo)}catch{}}],Ui={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:Gi,create:Xi}=oe("overlay"),Zi=Xi({props:{...Ui},emits:["click","update:visible"],setup(e,{emit:n}){const[l,o]=Yi(()=>e.lockScroll),r=t.computed(()=>({[Gi]:!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 Ji(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 Ct=ce(Zi,[["render",Ji]]),Qi=["aria-labelledby"],es=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),ts=[es],ns=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=u=>{o("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,c)=>(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"},ts,14,Qi))}}),os=["aria-labelledby"],ls=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),rs=[ls],as=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=u=>{o("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,c)=>(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"},rs,14,os))}}),is=["aria-labelledby"],ss=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),us=[ss],cs=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=u=>{o("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,c)=>(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"},us,14,is))}}),fs=["aria-labelledby"],ds=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),ms=[ds],hs=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=u=>{o("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=t.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=t.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,c)=>(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"},ms,14,fs))}}),{componentName:ps,create:gs}=oe("popup"),ys=gs(Ki(ps,{[Ct.name]:Ct,Close:cs}));function vs(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]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(s,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const qe=ce(ys,[["render",vs]]),Jo=10;function bs(e,n){return e>n&&e>Jo?"horizontal":n>e&&n>Jo?"vertical":""}function ao(){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),u=t.ref(0),c=t.ref(0),d=t.ref(""),m=()=>d.value==="vertical",g=()=>d.value==="horizontal",T=()=>{i.value=0,s.value=0,u.value=0,c.value=0,d.value="",l.value=0};return{move:b=>{const y=b.touches[0];i.value=y.clientX-e.value,s.value=y.clientY-n.value,r.value=y.clientX,a.value=y.clientY,u.value=Math.abs(i.value),c.value=Math.abs(s.value),o.value=Date.now()-l.value,d.value||(d.value=bs(u.value,c.value))},start:b=>{T(),e.value=b.touches[0].clientX,n.value=b.touches[0].clientY,l.value=Date.now()},reset:T,startX:e,startY:n,startTime:l,duration:o,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:c,direction:d,isVertical:m,isHorizontal:g}}let Er=36;function ws(){return Er}function Ss(e){Er=e}function Ie(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 xs(e,n,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=l),n.children=l}function Qe(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Qo(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Cs=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=Be(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(l,o))}};function Ts(){const e=t.getCurrentInstance();return new Cs(e.proxy)}function el(e,n,l){const o=Ie(e,n),r=Ie(e,l);if(o!==r)return!1;const a=Qe(e,n),i=Qe(e,l);return a===i}function ks(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 c=l[i].findIndex(d=>{if(a==="text")return Ie(e,d)===s;if(a==="value"){let m=Qe(e,d);return m==null&&(m=Ie(e,d)),m===s}else if(a==="item")return el(e,d,s)});if(c==-1)break;r.push(c)}else{let i=l[0];for(let s=0;s<n.length;s++){const u=n[s];let c=i.findIndex(m=>{if(a==="text")return Ie(e,m)===u;if(a==="value"){let g=Qe(e,m);return g==null&&(g=Ie(e,m)),g===u}else if(a==="item")return el(e,m,u)});if(c==-1)break;r.push(c);const d=qn(e,i[c]);if(!Array.isArray(d))break;i=d}}return r}function tl(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 u=n[i];u<0&&u>=s.length&&(u=0);const c=s[u],d=Ie(e,c);if(r.texts.push(d),r.items.push(c),a==="text")r.values.push(d);else if(a==="value"){let m=Qe(e,c);m==null&&(m=d),r.values.push(m)}else r.values.push(c)}else{let i=l[0];for(let s=0;s<n.length;s++){let u=n[s];u<0&&u>=i.length&&(u=0);const c=i[u],d=Ie(e,c),m=Object.assign({},c);if(m.children=null,r.texts.push(d),r.items.push(m),a==="text")r.values.push(d);else if(a==="value"){let g=Qe(e,c);g==null&&(g=d),r.values.push(g)}else r.values.push(m);if(!Array.isArray(c.children))break;i=c.children}}return r}function nl(e){return{text:e,value:e}}const $s=15,Ds=300,Es=200,{create:Ns}=oe("picker-column");function Vs(e){e.stopPropagation()}function Ps(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Vs(e)}const Is=Ns({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},...Dr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const l=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${ie(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=I=>I>=m.currIndex+8||I<=m.currIndex-8,s=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${m.deg})`,top:`${a.value}px`})),u=I=>`transform: rotate3d(1, 0, 0, ${-m.rotation*I}deg) translate3d(0px, 0px, 104px)`,c=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${m.scrollDistance+a.value}px, 0)`})),d=t.ref(null),m=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=t.toRef(e,"source"),T=I=>Ie(e,I),h=I=>Qe(e,I),p=ao(),b=()=>{m.transitionEndTrigger&&(m.transitionEndTrigger(),m.transitionEndTrigger=null)},y=(I,E=!1,w=!1)=>{if(m.currIndex=I,E){const C=()=>{m.moving=!1,n("update:modelValue",I),n("change",I)};w?m.transitionEndTrigger=C:C()}},v=(I,E,w)=>{let C=I+m.startDistance;if(E==="end"){const O=-(g.value.length-1)*e.itemHeight;C<O&&(C=O,(!w||w<=0)&&(w=e.swipeDuration)),C>0&&(C=0,(!w||w<=0)&&(w=e.swipeDuration));let S=Math.abs(Math.round(-C/e.itemHeight));const k=-S*e.itemHeight,D=`${(S+1)*m.rotation}deg`,F=w?w>0:!1;y(S,!0,F),f(k,E,w,D)}else{let O=(-C/e.itemHeight+1)*m.rotation;const S=(g.value.length+1)*m.rotation,k=0;if(O=Math.min(Math.max(O,k),S),e.threeDimensional&&(O<k||O>S))return;f(C,null,void 0,`${O}deg`)}},f=(I=0,E,w=Es,C)=>{E==="end"?m.scrollTime=w:m.scrollTime=0,m.deg=C,m.scrollDistance=I},B=(I,E)=>(I=Math.abs(I/E)/.003*(I<0?-1:1),I),V=I=>{if(!e.readonly){if(m.moving){const E=d.value,{transform:w}=window.getComputedStyle(E);m.scrollDistance=+w.slice(7,w.length-1).split(", ")[5]}m.startDistance=m.scrollDistance,p.start(I),m.transitionEndTrigger=null}},L=I=>{e.readonly||(m.moving=!0,p.move(I),p.isVertical()&&(m.moving=!0,Ps(I,!0)),v(p.deltaY.value,"",0))},R=()=>{if(e.readonly)return;const I=p.deltaY.value,E=p.duration.value;if(E<Ds&&Math.abs(I)>$s){const C=B(I,E);v(C,"end",e.swipeDuration)}else v(I,"end",0)};return t.watch(()=>e.modelValue,I=>{if(m.currIndex!==I){m.currIndex=I;const E=-I*e.itemHeight;v(E)}}),t.onMounted(()=>{const I=-e.modelValue*e.itemHeight;v(I)}),{classes:l,styles:o,contentClasses:r,source:g,itemText:T,itemValue:h,...t.toRefs(m),roller:d,getItemText:Ie,onTouchStart:V,onTouchMove:L,onTouchEnd:R,isHidden:i,setRollerStyle:u,touchRollerStyle:s,touchTileStyle:c,stopMomentum:b}}}),Os={key:1,class:"fox-picker__item-tile"};function Bs(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",Os,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const ol=ce(Is,[["render",Bs]]),{create:As,componentName:Fs,scope:Rs}=oe("picker"),Ms=As({components:{[ol.name]:ol,[qe.name]:qe},props:{...ro},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:l,t:o}=Ee.useFoxI18n(Rs),r=l(e,["title","cancelText","clearText","confirmText"]),a=t.ref(null),i=t.ref(ws());t.watch(()=>e.visible,w=>{w&&i.value<=0&&setTimeout(()=>{if(a.value){const C=Ze(a.value);i.value=C.height,Ss(i.value)}},50)});const s=t.computed(()=>({[Fs]:!0})),u=Ts(),c=t.ref("singleColumn");let d=t.ref([]);t.watch([()=>e.source,()=>e.params],async([w,C])=>{if(w){let O=await u.load("select",w,C);if(O.length>0){let S=O[0];if(Array.isArray(S)){if(typeof S[0]=="string"){let k=O,D=[];k.forEach(F=>{let N=F.map(_=>nl(_));D.push(N)}),d.value=D}else d.value=O;c.value="multipleColumn"}else if(typeof S=="string"){let k=O,D=[],F=k.map(N=>nl(N));D.push(F),d.value=D,c.value="singleColumn"}else{const k=qn(e,S);Array.isArray(k)?(c.value="cascade",d.value=[O]):(c.value="singleColumn",d.value=[O])}}else d.value=[]}},{immediate:!0});const m=t.ref([]),g=t.ref(e.modelValue),T=t.ref([]),h=t.ref([]);t.watch([()=>e.modelValue,()=>d.value],([w,C])=>{let O=ks(e,w,C,c.value);if(!Le(O,h.value)){h.value=O;let S=tl(e,O,C,c.value);S&&(m.value=S.texts,n("update:text",m.value))}});const p=t.ref(e.visible);t.watch(()=>e.visible,w=>{p.value=w});const b=w=>{let C=Qo(e,w);return Ae(C)?C.defaultIndex??0:0},y=w=>{if(e.readonly===!0)return!0;let C=Qo(e,w);return Ae(C)?C.readonly??!1:!1},v=(w,C)=>{let O=h.value;O[w]=C;for(let k=0;k<w;k++)O[k]==null&&(O[k]=b(k));if(c.value==="cascade")for(let k=w+1;k<B.value.length;k++){let D=b(k);k<O.length?O[k]=D:O.push(D)}else for(let k=O.length;k<B.value.length;k++){let D=b(k);O.push(D)}h.value=O;let S=tl(e,O,d.value,c.value);S&&(m.value=S.texts,g.value=S.values,T.value=S.items)},f=w=>w<h.value.length?h.value[w]:b(w),B=t.computed(()=>{if(d.value.length==0)return[];if(c.value=="singleColumn"||c.value=="multipleColumn")return d.value;let w=[],C=0,O=d.value[0],S=0;for(;;){let k=O.map(N=>{let _=Object.assign({},N);return xs(e,_,null),_});w.push(k),C>=h.value.length?S=0:S=h.value[C],(S<0||S>=O.length)&&(S=0);let D=O[S];const F=qn(e,D);if(!Array.isArray(F))break;O=F,C++}return w}),V=t.computed(()=>ie(+e.visibleItemCount-1)/2*i.value);return{...r,pickerLineRef:a,classes:s,columns:B,dataType:c,show:p,itemHeight:i,top:V,isReadonly:y,getIndex:f,change:(w,C)=>{v(w,C)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let w=d.value.length-1;for(;w>=0&&!(h.value[w]===null||h.value[w]===void 0);w--);if(w>=0&&v(w,0),c.value==="singleColumn"){let C=g.value.length>0?g.value[0]:"",O=T.value.length>0?T.value[0]:null;e.readonly||(n("update:modelValue",C),n("update:text",m.value),n("change",C,O)),n("confirm",C)}else e.readonly||(n("update:modelValue",g.value),n("update:text",m.value),n("change",g.value,T.value)),n("confirm",g.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}c.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),Ls={class:"fox-picker__bar"},qs={class:"fox-picker__title"},zs={class:"fox-picker__bar__action"},js={class:"fox-picker__column"};function _s(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]=u=>e.show=u),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",Ls,[t.createElementVNode("view",qs,t.toDisplayString(e.title),1),t.createElementVNode("view",zs,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...u)=>e.close&&e.close(...u))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...u)=>e.confirm&&e.confirm(...u))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...u)=>e.clear&&e.clear(...u))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",js,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(u,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:"fox-picker__columnitem"},[t.createVNode(i,{source:u,readonly:e.isReadonly(c),"column-index":c,modelValue:e.getIndex(c),"onUpdate:modelValue":d=>e.change(c,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 ct=ce(Ms,[["render",_s]]),ll={...ro,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 Hs(e,n,l){return{props:{...he,...xe,...ll},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),m=e,g=t.computed(()=>({[m]:!0})),T=Ne(t.computed(()=>o.textAlign),"textAlign"),h=t.computed(()=>({textAlign:T.value??"right"})),p=ae(o,"modelValue"),b=t.ref([]),y=t.computed(()=>Array.isArray(b.value)?b.value.join(" "):b.value),v=t.ref(!1),f=()=>{v.value=!0},B=D=>{v.value=D},V=D=>{p.value=D,s("update:modelValue",D)},L=D=>{b.value=D,Array.isArray(D)&&D.length===0?s("update:text",D[0]):s("update:text",D)},R=(D,F)=>{Array.isArray(F)&&F.length==1?s("change",D,F[0]):s("change",D,F)};let I=ae(o,"hintText"),E=t.ref(!1);const w=D=>{let N=D.target.value;d.value=!0,ge(I.value)||(E.value=!0),s("focus",N,D)},C=D=>{setTimeout(()=>{E.value&&(E.value=!1),d.value=!1},0);let N=D.target.value;o.maxLength&&N.length>Number(o.maxLength)&&(N=N.slice(0,Number(o.maxLength))),v.value?setTimeout(()=>{s("blur",N,D)},50):s("blur",N,D)},O=()=>{s("clear","")},S=t.computed(()=>Pe(o.unit)>0),k=t.ref();return me({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()}}),()=>{const D={class:g.value,style:h.value,type:"text",maxlength:o.maxLength,placeholder:c.placeholder.value,clearable:le(o.clearable),readonly:!0,value:y.value,onClick:f,onFocus:w,onBlur:C},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:S.value?F.suffix=()=>[o.unit]:F.suffix=()=>t.h(x.ElIcon,{},{default:()=>t.h(ve.ArrowDown)});const N=[],_=t.h(x.ElInput,D,F);N.push(_);const A={default:()=>N};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const z=Pt(o,ro);z.disabled=!1,z.readonly=a.value||i.value,z.visible=v.value,z["onUpdate:visible"]=B,z.modelValue=p.value,z.onUpdateModel=V,z.text=b.value,z["onUpdate:text"]=L,z.onClear=O,z.onChange=R;const U=t.h(ct,z);A.hide=()=>[U];const G={...Se(o,ll),hintText:I.value,hintVisible:E.value,prop:`${o.prop??r.attrs.name}_item`};return t.h(l,G,A)}}}}const{componentName:Ks,create:Ws,scope:Ys}=oe("select-item"),io=Ws(Hs(Ks,Ys,pe));var _e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){var l=1e3,o=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",c="day",d="week",m="month",g="quarter",T="year",h="date",p="Invalid Date",b=/^(\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,v={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(S,k,D){var F=String(S);return!F||F.length>=k?S:""+Array(k+1-F.length).join(D)+S},B={s:f,z:function(S){var k=-S.utcOffset(),D=Math.abs(k),F=Math.floor(D/60),N=D%60;return(k<=0?"+":"-")+f(F,2,"0")+":"+f(N,2,"0")},m:function S(k,D){if(k.date()<D.date())return-S(D,k);var F=12*(D.year()-k.year())+(D.month()-k.month()),N=k.clone().add(F,m),_=D-N<0,A=k.clone().add(F+(_?-1:1),m);return+(-(F+(D-N)/(_?N-A:A-N))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:m,y:T,w:d,d:c,D:h,h:u,m:s,s:i,ms:a,Q:g}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},V="en",L={};L[V]=v;var R=function(S){return S instanceof C},I=function S(k,D,F){var N;if(!k)return V;if(typeof k=="string"){var _=k.toLowerCase();L[_]&&(N=_),D&&(L[_]=D,N=_);var A=k.split("-");if(!N&&A.length>1)return S(A[0])}else{var z=k.name;L[z]=k,N=z}return!F&&N&&(V=N),N||!F&&V},E=function(S,k){if(R(S))return S.clone();var D=typeof k=="object"?k:{};return D.date=S,D.args=arguments,new C(D)},w=B;w.l=I,w.i=R,w.w=function(S,k){return E(S,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var C=function(){function S(D){this.$L=I(D.locale,null,!0),this.parse(D)}var k=S.prototype;return k.parse=function(D){this.$d=function(F){var N=F.date,_=F.utc;if(N===null)return new Date(NaN);if(w.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var A=N.match(b);if(A){var z=A[2]-1||0,U=(A[7]||"0").substring(0,3);return _?new Date(Date.UTC(A[1],z,A[3]||1,A[4]||0,A[5]||0,A[6]||0,U)):new Date(A[1],z,A[3]||1,A[4]||0,A[5]||0,A[6]||0,U)}}return new Date(N)}(D),this.$x=D.x||{},this.init()},k.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},k.$utils=function(){return w},k.isValid=function(){return this.$d.toString()!==p},k.isSame=function(D,F){var N=E(D);return this.startOf(F)<=N&&N<=this.endOf(F)},k.isAfter=function(D,F){return E(D)<this.startOf(F)},k.isBefore=function(D,F){return this.endOf(F)<E(D)},k.$g=function(D,F,N){return w.u(D)?this[F]:this.set(N,D)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(D,F){var N=this,_=!!w.u(F)||F,A=w.p(D),z=function(te,$){var j=w.w(N.$u?Date.UTC(N.$y,$,te):new Date(N.$y,$,te),N);return _?j:j.endOf(c)},U=function(te,$){return w.w(N.toDate()[te].apply(N.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice($)),N)},H=this.$W,G=this.$M,Z=this.$D,ee="set"+(this.$u?"UTC":"");switch(A){case T:return _?z(1,0):z(31,11);case m:return _?z(1,G):z(0,G+1);case d:var M=this.$locale().weekStart||0,J=(H<M?H+7:H)-M;return z(_?Z-J:Z+(6-J),G);case c:case h:return U(ee+"Hours",0);case u:return U(ee+"Minutes",1);case s:return U(ee+"Seconds",2);case i:return U(ee+"Milliseconds",3);default:return this.clone()}},k.endOf=function(D){return this.startOf(D,!1)},k.$set=function(D,F){var N,_=w.p(D),A="set"+(this.$u?"UTC":""),z=(N={},N[c]=A+"Date",N[h]=A+"Date",N[m]=A+"Month",N[T]=A+"FullYear",N[u]=A+"Hours",N[s]=A+"Minutes",N[i]=A+"Seconds",N[a]=A+"Milliseconds",N)[_],U=_===c?this.$D+(F-this.$W):F;if(_===m||_===T){var H=this.clone().set(h,1);H.$d[z](U),H.init(),this.$d=H.set(h,Math.min(this.$D,H.daysInMonth())).$d}else z&&this.$d[z](U);return this.init(),this},k.set=function(D,F){return this.clone().$set(D,F)},k.get=function(D){return this[w.p(D)]()},k.add=function(D,F){var N,_=this;D=Number(D);var A=w.p(F),z=function(G){var Z=E(_);return w.w(Z.date(Z.date()+Math.round(G*D)),_)};if(A===m)return this.set(m,this.$M+D);if(A===T)return this.set(T,this.$y+D);if(A===c)return z(1);if(A===d)return z(7);var U=(N={},N[s]=o,N[u]=r,N[i]=l,N)[A]||1,H=this.$d.getTime()+D*U;return w.w(H,this)},k.subtract=function(D,F){return this.add(-1*D,F)},k.format=function(D){var F=this,N=this.$locale();if(!this.isValid())return N.invalidDate||p;var _=D||"YYYY-MM-DDTHH:mm:ssZ",A=w.z(this),z=this.$H,U=this.$m,H=this.$M,G=N.weekdays,Z=N.months,ee=function($,j,q,W){return $&&($[j]||$(F,_))||q[j].slice(0,W)},M=function($){return w.s(z%12||12,$,"0")},J=N.meridiem||function($,j,q){var W=$<12?"AM":"PM";return q?W.toLowerCase():W},te={YY:String(this.$y).slice(-2),YYYY:this.$y,M:H+1,MM:w.s(H+1,2,"0"),MMM:ee(N.monthsShort,H,Z,3),MMMM:ee(Z,H),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:ee(N.weekdaysMin,this.$W,G,2),ddd:ee(N.weekdaysShort,this.$W,G,3),dddd:G[this.$W],H:String(z),HH:w.s(z,2,"0"),h:M(1),hh:M(2),a:J(z,U,!0),A:J(z,U,!1),m:String(U),mm:w.s(U,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:A};return _.replace(y,function($,j){return j||te[$]||A.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(D,F,N){var _,A=w.p(F),z=E(D),U=(z.utcOffset()-this.utcOffset())*o,H=this-z,G=w.m(this,z);return G=(_={},_[T]=G/12,_[m]=G,_[g]=G/3,_[d]=(H-U)/6048e5,_[c]=(H-U)/864e5,_[u]=H/r,_[s]=H/o,_[i]=H/l,_)[A]||H,N?G:w.a(G)},k.daysInMonth=function(){return this.endOf(m).$D},k.$locale=function(){return L[this.$L]},k.locale=function(D,F){if(!D)return this.$L;var N=this.clone(),_=I(D,F,!0);return _&&(N.$L=_),N},k.clone=function(){return w.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},S}(),O=C.prototype;return E.prototype=O,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",c],["$M",m],["$y",T],["$D",h]].forEach(function(S){O[S[1]]=function(k){return this.$g(k,S[0],S[1])}}),E.extend=function(S,k){return S.$i||(S(k,C,E),S.$i=!0),E},E.locale=I,E.isDayjs=R,E.unix=function(S){return E(1e3*S)},E.en=L[V],E.Ls=L,E.p={},E})})(Nr);var Us=Nr.exports;const Fe=He(Us);var Vr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,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={},u=function(p){return(p=+p)+(p>68?1900:2e3)},c=function(p){return function(b){this[p]=+b}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),v=60*y[1]+(+y[2]||0);return v===0?0:y[0]==="+"?-v:v}(p)}],m=function(p){var b=s[p];return b&&(b.indexOf?b:b.s.concat(b.f))},g=function(p,b){var y,v=s.meridiem;if(v){for(var f=1;f<=24;f+=1)if(p.indexOf(v(f,0,b))>-1){y=f>12;break}}else y=p===(b?"pm":"PM");return y},T={A:[i,function(p){this.afternoon=g(p,!1)}],a:[i,function(p){this.afternoon=g(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[r,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[i,function(p){var b=s.ordinal,y=p.match(/\d+/);if(this.day=y[0],b)for(var v=1;v<=31;v+=1)b(v).replace(/\[|\]/g,"")===p&&(this.day=v)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(p){var b=m("months"),y=(m("monthsShort")||b.map(function(v){return v.slice(0,3)})).indexOf(p)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[i,function(p){var b=m("months").indexOf(p)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(p){this.year=u(p)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function h(p){var b,y;b=p,y=s&&s.formats;for(var v=(p=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,w,C){var O=C&&C.toUpperCase();return w||y[C]||l[C]||y[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,k,D){return k||D.slice(1)})})).match(o),f=v.length,B=0;B<f;B+=1){var V=v[B],L=T[V],R=L&&L[0],I=L&&L[1];v[B]=I?{regex:R,parser:I}:V.replace(/^\[|\]$/g,"")}return function(E){for(var w={},C=0,O=0;C<f;C+=1){var S=v[C];if(typeof S=="string")O+=S.length;else{var k=S.regex,D=S.parser,F=E.slice(O),N=k.exec(F)[0];D.call(w,N),E=E.replace(N,"")}}return function(_){var A=_.afternoon;if(A!==void 0){var z=_.hours;A?z<12&&(_.hours+=12):z===12&&(_.hours=0),delete _.afternoon}}(w),w}}return function(p,b,y){y.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var v=b.prototype,f=v.parse;v.parse=function(B){var V=B.date,L=B.utc,R=B.args;this.$u=L;var I=R[1];if(typeof I=="string"){var E=R[2]===!0,w=R[3]===!0,C=E||w,O=R[2];w&&(O=R[2]),s=this.$locale(),!E&&O&&(s=y.Ls[O]),this.$d=function(F,N,_){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*F);var A=h(N)(F),z=A.year,U=A.month,H=A.day,G=A.hours,Z=A.minutes,ee=A.seconds,M=A.milliseconds,J=A.zone,te=new Date,$=H||(z||U?1:te.getDate()),j=z||te.getFullYear(),q=0;z&&!U||(q=U>0?U-1:te.getMonth());var W=G||0,X=Z||0,K=ee||0,P=M||0;return J?new Date(Date.UTC(j,q,$,W,X,K,P+60*J.offset*1e3)):_?new Date(Date.UTC(j,q,$,W,X,K,P)):new Date(j,q,$,W,X,K,P)}catch{return new Date("")}}(V,I,L),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),C&&V!=this.format(I)&&(this.$d=new Date("")),s={}}else if(I instanceof Array)for(var S=I.length,k=1;k<=S;k+=1){R[1]=I[k-1];var D=y.apply(this,R);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}k===S&&(this.$d=new Date(""))}else f.call(this,B)}}})})(Vr);var Gs=Vr.exports;const Xs=He(Gs);var Pr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){return function(l,o,r){var a=o.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],c=s%100;return"["+s+(u[(c-20)%10]||u[c]||u[0])+"]"},a.format=function(s){var u=this,c=this.$locale();if(!this.isValid())return i.bind(this)(s);var d=this.$utils(),m=(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(g){switch(g){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),g==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),g==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return g}});return i.bind(this)(m)}}})})(Pr);var Zs=Pr.exports;const Js=He(Zs);var Ir={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){return function(l,o,r){var a=o.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},s=function(m,g,T,h,p){var b=m.name?m:m.$locale(),y=i(b[g]),v=i(b[T]),f=y||v.map(function(V){return V.slice(0,h)});if(!p)return f;var B=b.weekStart;return f.map(function(V,L){return f[(L+(B||0))%7]})},u=function(){return r.Ls[r.locale()]},c=function(m,g){return m.formats[g]||function(T){return T.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,p,b){return p||b.slice(1)})}(m.formats[g.toUpperCase()])},d=function(){var m=this;return{months:function(g){return g?g.format("MMMM"):s(m,"months")},monthsShort:function(g){return g?g.format("MMM"):s(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):s(m,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):s(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):s(m,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return c(m.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var m=u();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(g){return c(m,g)},meridiem:m.meridiem,ordinal:m.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(m){return s(u(),"weekdays",null,null,m)},r.weekdaysShort=function(m){return s(u(),"weekdaysShort","weekdays",3,m)},r.weekdaysMin=function(m){return s(u(),"weekdaysMin","weekdays",2,m)}}})})(Ir);var Qs=Ir.exports;const eu=He(Qs);var Or={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){var l="week",o="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(o).add(1,o).date(c),m=i(this).endOf(l);if(d.isBefore(m))return 1}var g=i(this).startOf(o).date(c).startOf(l).subtract(1,"millisecond"),T=this.diff(g,l,!0);return T<0?i(this).startOf("week").week():Math.ceil(T)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Or);var tu=Or.exports;const nu=He(tu);var Br={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,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}}})})(Br);var ou=Br.exports;const lu=He(ou);var Ar={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,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")}}})})(Ar);var ru=Ar.exports;const au=He(ru);var Fr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){return function(l,o){o.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Fr);var iu=Fr.exports;const su=He(iu);var Rr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(_e,function(){return function(l,o){o.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Rr);var uu=Rr.exports;const cu=He(uu);Fe.extend(eu);Fe.extend(Js);Fe.extend(Xs);Fe.extend(nu);Fe.extend(lu);Fe.extend(au);Fe.extend(su);Fe.extend(cu);const ne={format(e,n){return Fe(e).format(n)},parser(e,n){return Fe(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(),u=6-s;return o!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/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 u=a-i*864e5,c=a+(6-i)*864e5,d=this.date2Str(new Date(u)),m=this.date2Str(new Date(c));return[d,m]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,c=a+(7-i)*s,d=this.date2Str(new Date(u)),m=this.date2Str(new Date(c));return[d,m]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ne.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ne.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}},rl=new Date().getFullYear(),so={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"},Wt=(e,n,l)=>{let o;if(Me(n)?o=n:typeof n=="string"&&Pe(n)>0?o=ne.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)},zn=(e,n,l)=>{Me(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),ne.format(new Date(o),l)};let uo={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(rl-10,0,1),validator:Me},maxDate:{type:Date,default:()=>new Date(rl+10,11,31),validator:Me},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:fu,scope:du}=oe("date-picker"),mu=fu({components:{[ct.name]:ct},props:{...uo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:l}=Ee.useFoxI18n(du),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,v){return new Date(y,v,0).getDate()}const i=(y,v)=>{const f=e[`${y}Date`],B=f.getFullYear();let V=1,L=1,R=0,I=0;y==="max"&&(V=12,L=a(v.getFullYear(),v.getMonth()+1),R=23,I=59);const E=I;return v.getFullYear()===B&&(V=f.getMonth()+1,v.getMonth()+1===V&&(L=f.getDate(),v.getDate()===L&&(R=f.getHours(),v.getHours()===R&&(I=f.getMinutes())))),{[`${y}Year`]:B,[`${y}Month`]:V,[`${y}Date`]:L,[`${y}Hour`]:R,[`${y}Minute`]:I,[`${y}Seconds`]:E}},s=t.computed(()=>{if(!g.value)return[];const{maxYear:y,maxDate:v,maxMonth:f,maxHour:B,maxMinute:V,maxSeconds:L}=i("max",g.value),{minYear:R,minDate:I,minMonth:E,minHour:w,minMinute:C,minSeconds:O}=i("min",g.value);let S=[{type:"year",range:[R,y]},{type:"month",range:[E,f]},{type:"day",range:[I,v]},{type:"hour",range:[w,B]},{type:"minute",range:[C,V]},{type:"seconds",range:[O,L]}];switch(e.type){case"date":S=S.slice(0,3);break;case"datetime":S=S.slice(0,5);break;case"time":S=S.slice(3,6);break;case"year-month":S=S.slice(0,2);break;case"month-day":S=S.slice(1,3);break;case"datehour":S=S.slice(0,4);break;case"hour-minute":S=S.slice(3,5);break}return S}),u=(y,v,f)=>{if(!(v>y))return null;const B=[];for(;y<=v;)e.isShowChinese?B.push({text:y+o[f],value:y}):B.push({text:`${y}`,value:y}),f==="minute"?y+=e.minuteStep:y++;return B},c=t.computed(()=>{let y=[];return s.value.forEach(v=>{let f=u(v.range[0],v.range[1],v.type);f&&y.push(f)}),y}),d=(y,v)=>y==="year"?v.getFullYear():y==="month"?v.getMonth()+1:y==="day"?v.getDate():y==="hour"?v.getHours():y==="minute"?v.getMinutes():y==="seconds"?v.getSeconds():0,m=t.ref(),g=t.ref(null);t.watchEffect(()=>{let y,v=e.modelValue;if(typeof v=="string"?v.length==0?y=new Date:e.valueFormat?y=Wt(e,e.modelValue,e.valueFormat):y=Wt(e,v,so[e.type]):Me(v)?y=v:y=new Date,!!y&&(!g.value||y.getTime()!==g.value.getTime())){g.value=y;let f=[];s.value.forEach(B=>{let V=d(B.type,y);f.push(V)}),m.value=f}});const T=y=>{if(e.type==="date"){let v=y;g.value=new Date(v[0],v[1]-1,Math.min(v[2],a(v[0],v[1])))}else if(e.type==="datetime"){let v=y;g.value=new Date(v[0],v[1]-1,Math.min(v[2],a(v[0],v[1])),v[3],v[4])}else if(e.type==="time"){let v=y,f=g.value??new Date,B=new Date(f.getFullYear(),f.getMonth(),f.getDate(),v[0],v[1],v[2]);g.value=B}else if(e.type==="year-month"){let v=y,f=new Date(v[0],v[1]-1);g.value=f}else if(e.type==="month-day"){let v=y,f=g.value??new Date,B=new Date(f.getFullYear(),v[0]-1,v[1]);g.value=B}else if(e.type==="datehour"){let v=y;g.value=new Date(v[0],v[1]-1,Math.min(v[2],a(v[0],v[1])),v[3])}else if(e.type==="hour-minute"){let v=y,f=g.value??new Date,B=new Date(f.getFullYear(),f.getMonth(),f.getDate(),v[0],v[1]);g.value=B}m.value=y};return{columns:c,dateIndexs:m,show:r,onClose:()=>{r.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:y=>{T(y),r.value=!1;let v=g.value??new Date;if(e.valueFormat){let f=zn(e,v,e.valueFormat);n("update:modelValue",f)}else n("update:modelValue",v);n("update:visible",!1),n("confirm",y)},onClear:()=>{n("clear")}}}});function hu(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 un=ce(mu,[["render",hu]]);function pu(e){let n=e.format;if(!n){let l=e.type??"date";n=so[l]}return n}const al={...uo,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function gu(e,n,l){return{props:{...he,...xe,...al,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=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),g=ae(o,"modelValue",A=>A==null?null:typeof A=="string"?A.length==0?null:o.valueFormat?Wt(o,A,o.valueFormat)??A:Wt(o,A,so[o.type])??A:Me(A)?A:null),T=t.computed(()=>{if(!g.value)return"";const A=pu(o);return zn(o,g.value,A)}),h=e,p=t.computed(()=>({[`${h}__input`]:!0})),b=Ne(t.computed(()=>o.textAlign),"textAlign"),y=t.computed(()=>({textAlign:b.value??"right"}));let v=ae(o,"hintText"),f=t.ref(!1);const B=t.ref(!1),V=()=>{B.value=!0},L=()=>{B.value=!1},R=A=>{B.value=A},I=A=>{if(g.value=A,o.valueFormat){let z=zn(o,A,o.valueFormat);s("update:modelValue",z,{}),s("change",z,{})}else s("update:modelValue",A,{}),s("change",A,{})},E=A=>{let U=A.target.value;d.value=!0,s("focus",U,A)},w=A=>{setTimeout(()=>{d.value=!1},0);let U=A.target.value;o.maxLength&&U.length>Number(o.maxLength)&&(U=U.slice(0,Number(o.maxLength))),s("blur",U,A)},C=A=>{g.value="",s("update:modelValue","",A),s("change","",A),s("clear",""),L()},O=t.computed(()=>Pe(o.unit)>0),S=Ne(t.computed(()=>o.longTermValue),"longTermValue",Ye.Near);let k=null;const D=t.ref(le(o.longTerm)),F=A=>{if(D.value=A,s("update:longTerm",A),A){let z="";Array.isArray(S.value)?z=S.value.map((U,H)=>U||(Array.isArray(g.value)&&g.value[H]?g.value[H]:o.valueFormat?ne.format(new Date,o.valueFormat):new Date)):z=S.value,k=g.value,s("update:modelValue",z)}else s("update:modelValue",k)},N=le(o.isLongTerm);if(N){const A=()=>{if(D.value===!0){let z="";Array.isArray(S.value)?z=S.value.map((U,H)=>U||(Array.isArray(g.value)&&g.value[H]?g.value[H]:o.valueFormat?ne.format(new Date,o.valueFormat):new Date)):z=S.value,k=g.value,s("update:modelValue",z)}else Le(S.value,g.value)&&(D.value=!0)};A(),t.watch([()=>o.longTerm],([z])=>{D.value!==z&&A()})}const _=t.ref();return me({showPicker:V,hidePicker:L,focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const A={class:p.value,style:y.value,type:"text",maxlength:o.maxLength,placeholder:c.placeholder.value,readonly:!0,clearable:o.clearable,value:T.value,onClick:V,onFocus:E,onBlur:w},z={};r.slots.prepend&&(z.prepend=r.slots.prepend),r.slots.append&&(z.append=r.slots.append),r.slots.prefix?z.prefix=r.slots.prefix:z.prefix=()=>t.h(x.ElIcon,{},{default:()=>t.h(ve.Calendar)}),r.slots.suffix?z.suffix=r.slots.suffix:O.value&&(z.suffix=()=>[o.unit]);const U=[],H=t.h(x.ElInput,A,z);U.push(H);const G={default:()=>U};r.slots.default&&(G.label=r.slots.default),r.slots.fixedTip&&(G.fixedTip=r.slots.fixedTip);const Z=Pt(o,uo);Z.valueFormat=null,Z.disabled=!1,Z.readonly=a.value||i.value||D.value,Z.visible=B.value,Z["onUpdate:visible"]=R,Z.modelValue=g.value,Z["onUpdate:modelValue"]=I,Z.onClear=C;const ee={};if(r.slots.top){const j=r.slots.top();ee.top=()=>j}if(r.slots.bottom){const j=r.slots.bottom();ee.default=()=>j}const M=t.h(un,Z,ee);if(G.hide=()=>[M],N){const j={label:o.longTermText,modelValue:D.value,"onUpdate:modelValue":F},q=t.h(x.ElCheckbox,j),W=t.h("div",{class:{[`${h}__append`]:!0}},[q]);G.append=()=>W}const te={...Se(o,al),class:{[`${h}__wrapper`]:!0,"has-append":N},hintText:v.value,hintVisible:f.value,prop:`${o.prop??r.attrs.name}_item`};return t.h(l,te,G)}}}}const{componentName:yu,create:vu,scope:bu}=oe("date-item"),co=vu(gu(yu,bu,pe)),wu=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),fo={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"}}},il=39,sl=64,{create:Su,scope:xu}=oe("calendar-pane"),Cu=Su({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:ne.getDay(0)},endDate:{type:String,default:ne.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(xu),a=o(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${il}px`})),s=t.computed(()=>({height:`${sl}px`})),u=JSON.parse(r("weekdays")),c=t.ref([...u.slice(e.firstDayOfWeek,7),...u.slice(0,e.firstDayOfWeek)]),d=t.ref(null),m=t.ref(null),g=t.ref(null),T=t.ref(null),h=t.ref(0),p=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),b=t.computed(()=>l.btn),y=t.computed(()=>l["top-info"]),v=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}),B=$=>$.split("-"),V=$=>ne.isEqual(f.currDate[0],$),L=$=>ne.isEqual(f.currDate[1],$),R=$=>f.currDate?.length>0?f.currDate?.some(j=>ne.isEqual(j,$)):!1,I=($,j)=>j.curData[0]+"-"+j.curData[1]+"-"+ne.getNumTwoBit(+$.day),E=($,j)=>{const q=I($,j),{type:W}=e;return $.type=="curr"?ne.isEqual(f.currDate,q)||(W=="range"||W=="week")&&(V(q)||L(q))||W=="multiple"&&R(q)?`${f.dayPrefix}--active`:f.propStartDate&&ne.compareDate(q,f.propStartDate)||f.propEndDate&&ne.compareDate(f.propEndDate,q)?`${f.dayPrefix}--disabled`:(W=="range"||W=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ne.compareDate(f.currDate[0],q)&&ne.compareDate(q,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},w=()=>{const{type:$}=e;if($=="range"&&f.chooseData.length==2||$!="range"){let j=f.chooseData.slice(0);$=="week"&&(j={weekDate:[O(f.chooseData[0]),O(f.chooseData[1])]}),n("choose",j),e.poppable&&n("update")}},C=($,j,q=!1)=>{if(E($,j)!=`${f.dayPrefix}--disabled`){const{type:W}=e;let[X,K]=j.curData,P=[...j.curData];if(P[2]=ne.getNumTwoBit(Number($.day)),P[3]=`${P[0]}-${P[1]}-${P[2]}`,P[4]=ne.getWhatDay(+P[0],+P[1],+P[2]),W=="multiple")if(f.currDate?.length>0){let Y;f.currDate?.forEach((Q,ue)=>{Q==P[3]&&(Y=ue)}),q?f.chooseData.push([...P]):Y!==void 0?(f.currDate.splice(Y,1),f.chooseData.splice(Y,1)):(f.currDate.push(P[3]),f.chooseData.push([...P]))}else f.currDate=[P[3]],f.chooseData=[[...P]];else if(W=="range"){let Y=Object.values(f.currDate).length;Y==2||Y==0?f.currDate=[P[3]]:ne.compareDate(f.currDate[0],P[3])?Array.isArray(f.currDate)&&f.currDate.push(P[3]):Array.isArray(f.currDate)&&f.currDate.unshift(P[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...P]]:ne.compareDate(f.chooseData[0][3],P[3])?f.chooseData=[...f.chooseData,[...P]]:f.chooseData=[[...P],...f.chooseData]}else if(W=="week"){let Y=ne.getWeekDate(X,K,$.day,e.firstDayOfWeek);f.propStartDate&&ne.compareDate(Y[0],f.propStartDate)&&Y.splice(0,1,f.propStartDate),f.propEndDate&&ne.compareDate(f.propEndDate,Y[1])&&Y.splice(1,1,f.propEndDate),f.currDate=Y,f.chooseData=[ne.formatResultDate(Y[0]),ne.formatResultDate(Y[1])]}else f.currDate=P[3],f.chooseData=[...P];if(!q){let Y=f.chooseData;W=="week"&&(Y={weekDate:[O(f.chooseData[0]),O(f.chooseData[1])]}),n("select",Y),(e.isAutoBackFill||!e.poppable)&&w()}}},O=$=>{let[j,q,W]=$;return{date:$,monthWeekNum:ne.getMonthWeek(j,q,W,e.firstDayOfWeek),yearWeekNum:ne.getYearWeek(j,q,W,e.firstDayOfWeek)}},S=$=>{const j=$=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let q=parseInt(j.curData[0]),W=parseInt(j.curData[1].toString().replace(/^0/,""));switch($){case"prev":W==1&&(q-=1),W=W==1?12:--W;break;case"next":W==12&&(q+=1),W=W==12?1:++W;break}return[q+"",ne.getNumTwoBit(W),ne.getMonthDays(String(q),String(W))+""]},k=($,j,q)=>{let{year:W,month:X}=q;return j=="prev"&&$>=7&&($-=7),Array.from(Array($),(K,P)=>({day:String(P+1),type:j,year:W,month:X}))},D=($,j,q,W)=>{$=$-e.firstDayOfWeek;let{year:X,month:K}=q;return j=="prev"&&$>=7&&($-=7),Array.from(Array(W),(Y,Q)=>({day:String(Q+1),type:j,year:X,month:K})).slice(W-$)},F=($,j)=>{const q=ne.getMonthPreDay(+$[0],+$[1]);let W=Number($[1])-1,X=Number($[0]);W<=0&&(W=12,X+=1);const K=ne.getMonthDays(String($[0]),String($[1])),P=ne.getMonthDays(X+"",W+""),Y={year:$[0],month:$[1]},Q={curData:$,title:r("monthTitle",{year:Y.year,month:Y.month}),monthData:[...D(q,"prev",{month:String(W),year:String(X)},P),...k(K,"curr",Y)],cssHeight:0,cssScrollHeight:0},ue=Q.monthData.length>35?6:5;Q.cssHeight=il+sl*ue;let fe=0;f.monthsData.length>0&&(fe=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),Q.cssScrollHeight=fe,j=="next"?(!f.endData||!ne.compareDate(`${f.endData[0]}-${f.endData[1]}-${ne.getMonthDays(f.endData[0],f.endData[1])}`,`${$[0]}-${$[1]}-${$[2]}`))&&f.monthsData.push(Q):!f.startData||!ne.compareDate(`${$[0]}-${$[1]}-${$[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(Q):f.unLoadPrev=!0},N=()=>{let $=e.startDate?e.startDate:ne.getDay(0),j=e.endDate?e.endDate:ne.getDay(365);f.propStartDate=$,f.propEndDate=j,f.startData=B($),f.endData=B(j),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const q={year:Number(f.startData[0]),month:Number(f.startData[1])},W={year:Number(f.endData[0]),month:Number(f.endData[1])};let X=W.month-q.month;W.year-q.year>0&&(X=X+12*(W.year-q.year)),X<=0&&(X=1),F(f.startData,"next");let K=1;do F(S("next"),"next");while(K++<X);if(f.monthsNum=X,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&($&&ne.compareDate(f.currDate[0],$)&&f.currDate.splice(0,1,$),j&&ne.compareDate(j,f.currDate[1])&&f.currDate.splice(1,1,j),f.defaultData=[...B(f.currDate[0]),...B(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let P=[],Y={};f.currDate.forEach(Q=>{$&&!ne.compareDate(Q,$)&&j&&!ne.compareDate(j,Q)&&(Object.hasOwnProperty.call(Y,Q)||(P.push(Q),Y[Q]=Q))}),f.currDate=[...P],f.defaultData=[...B(P[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[P,Y,Q]=B(f.currDate[0]),ue=ne.getWeekDate(P,Y,Q,e.firstDayOfWeek);f.currDate=ue,$&&ne.compareDate(f.currDate[0],$)&&f.currDate.splice(0,1,$),j&&ne.compareDate(j,f.currDate[1])&&f.currDate.splice(1,1,j),f.defaultData=[...B(f.currDate[0]),...B(f.currDate[1])]}}else f.currDate&&($&&ne.compareDate(f.currDate,$)?f.currDate=$:j&&!ne.compareDate(f.currDate,j)&&(f.currDate=j),f.defaultData=[...B(f.currDate)])};me({scrollToDate:$=>{ne.compareDate($,f.propStartDate)?$=f.propStartDate:ne.compareDate($,f.propEndDate)||($=f.propEndDate);let j=B($);f.monthsData.forEach((q,W)=>{if(q.title==r("monthTitle",{year:j[0],month:j[1]})&&d.value){let X=f.monthsData[W].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let K=0,P=setInterval(()=>{if(K++,d.value){let Y=X/10;d.value.scrollTop=d.value.scrollTop+Y}K>=10&&(clearInterval(P),d.value&&(d.value.scrollTop=f.monthsData[W].cssScrollHeight))},40)}else d.value.scrollTop=f.monthsData[W].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let $=0,j=0;f.defaultData.length>0&&f.monthsData.forEach((X,K)=>{X.title==r("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&($=K),(e.type=="range"||e.type=="week")&&X.title==r("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(j=K)}),U(f.monthsNum,$),f.currentIndex=$,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(C({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),C({day:f.defaultData[5],type:"curr"},f.monthsData[j],!0)):e.type=="week"?C({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(X=>{let K=B(X),P=f.currentIndex;f.monthsData.forEach((Y,Q)=>{Y.title==r("monthTitle",{year:K[0],month:K[1]})&&(P=Q)}),C({day:K[2],type:"curr"},f.monthsData[P],!0)}):C({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let q=f.monthsData[f.monthsData.length-1],W=q.cssHeight+q.cssScrollHeight;_l(()=>{d?.value&&m?.value&&T?.value&&(h.value=d.value.clientHeight,m.value.style.height=`${W}px`,d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(W/(f.monthsNum+1))}});const U=($,j)=>{$>=3?j>0&&j<$?f.defaultRange=[j-1,j+3]:j==0?f.defaultRange=[j,j+4]:j==$&&(f.defaultRange=[j-2,j+2]):f.defaultRange=[0,$+2];let q=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=q},H=($,j)=>(e.type=="range"||e.type=="week")&&$.type=="curr"&&E($,j)=="fox-calendar__day--active",G=($,j)=>H($,j)&&V(I($,j)),Z=($,j)=>f.currDate.length>=2&&L(I($,j))?H($,j):!1,ee=()=>{if(f.currDate.length>=2)return ne.isEqual(f.currDate[0],f.currDate[1])},M=$=>{const j=`${$.year}-${$.month}-${Number($.day)<10?"0"+$.day:$.day}`;return ne.isEqual(j,ne.date2Str(new Date))},J=$=>{if(f.monthsData.length<=1)return;const j=$.target.scrollTop;let q=Math.floor(j/f.avgHeight);if(q==0)j>=f.monthsData[q+1].cssScrollHeight&&(q+=1);else if(q>0&&q<f.monthsNum-1)j>=f.monthsData[q+1].cssScrollHeight&&(q+=1),j<f.monthsData[q].cssScrollHeight&&(q-=1);else{const W=Math.round(j+h.value);W<f.monthsData[q].cssScrollHeight+f.monthsData[q].cssHeight&&j>f.monthsData[q-1].cssScrollHeight&&(q-=1),q+1<=f.monthsNum&&W>=f.monthsData[q+1].cssScrollHeight+f.monthsData[q+1].cssHeight&&(q+=1),q>=1&&j<f.monthsData[q-1].cssScrollHeight&&(q-=1)}f.currentIndex!==q&&(f.currentIndex=q,U(f.monthsNum,q)),f.yearMonthTitle=f.monthsData[q].title},te=()=>{f.chooseData.splice(0),f.monthsData.splice(0),N()};return N(),t.watch(()=>e.defaultValue,$=>{$&&e.poppable&&te()}),{dayTitleStyle:i,dayCellStyle:s,weeks:c,compConthsData:p,showTopBtn:b,topInfo:y,bottomInfo:v,rangeTip:ee,mothsViewScroll:J,getClass:E,isStartTip:G,isEndTip:Z,chooseDay:C,isCurrDay:M,confirm:w,months:d,...t.toRefs(f),...t.toRefs(e),...a,monthsPanel:m,weeksPanel:g,viewArea:T}}}),Tu={class:"fox-calendar__header"},ku={key:0,class:"fox-calendar__header-title"},$u={key:1,class:"fox-calendar__header-slot"},Du={key:2,class:"fox-calendar__header-subtitle"},Eu={class:"fox-calendar__weekdays",ref:"weeksPanel"},Nu={class:"fox-calendar__panel",ref:"monthsPanel"},Vu={class:"fox-calendar__days"},Pu=["onClick"],Iu={class:"fox-calendar__day-value"},Ou={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Bu={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Au={key:2,class:"fox-calendar__day-tips--curr"},Fu={key:4,class:"fox-calendar__day-tip"},Ru={key:0,class:"fox-calendar__footer"};function Mu(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",Tu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",ku,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",$u,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Du,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Eu,[(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",Nu,[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",Vu,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.monthData,(u,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-calendar__day",e.getClass(u,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:d=>e.chooseDay(u,i)},[t.createElementVNode("view",Iu,[t.renderSlot(e.$slots,"day",{date:u.type=="curr"?u:""},()=>[t.createTextVNode(t.toDisplayString(u.type=="curr"?u.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Ou,[t.renderSlot(e.$slots,"top-info",{date:u.type=="curr"?u:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Bu,[t.renderSlot(e.$slots,"bottom-info",{date:u.type=="curr"?u:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(u)?(t.openBlock(),t.createElementBlock("view",Au,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(u,i)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(u,i)?(t.openBlock(),t.createElementBlock("view",Fu,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Pu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Ru,[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 ul=ce(Cu,[["render",Mu]]),{create:Lu}=oe("calendar-picker"),qu=Lu({components:{[ul.name]:ul,[qe.name]:qe},props:{...fo},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),u=p=>{s.value?.scrollToDate(p)},c=()=>{s.value?.initPosition()};t.watch(()=>e.visible,p=>{p&&t.nextTick(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),me({scrollToDate:u,initPosition:c});const d=()=>{n("update:visible",!1)},m=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{m()},update:d,close:m,select:p=>{n("select",p)},choose:p=>{m(),n("choose",p)},calendarRef:s,showTopBtn:o,topInfo:r,dayInfo:a,bottomInfo:i}}});function zu(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(u=>[t.renderSlot(e.$slots,"day",{date:u.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"top-info",{date:u.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"bottom-info",{date:u.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","style"])):(t.openBlock(),t.createBlock(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"day",{date:u.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"top-info",{date:u.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(u=>[t.renderSlot(e.$slots,"bottom-info",{date:u.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const cn=ce(qu,[["render",zu]]),xn=(e,n)=>{let l;return Me(e)?l=e:typeof e=="string"&&Pe(e)>0?l=ne.parser(e,n):l=new Date,l},tt=(e,n,l)=>(Me(n)||(n=new Date),ne.format(n,l)),nt=e=>{let n=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,o=`${e.getDate()}`,r=ne.date2Str(e),a=ne.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,l,o,r,a]},cl={...fo,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 ju(e,n,l){return{props:{...he,...xe,...cl},emits:["change","update:modelValue","blur","focus","clear"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]);let d=ae(o,"hintText"),m=t.ref(!1);const g=t.ref(!1),T=t.computed(()=>o.type==="range"),h=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),p=()=>{h.startDate!==null&&(h.startDate=null,h.endDate=null,h.startArray=[],h.endArray=[])},b=(N,_="one",A="YYYY-MM-DD")=>{if(wu(N)){p();return}if(T.value&&Array.isArray(N)&&N.length==2){let z,U;typeof N[0]=="string"?(z=xn(N[0],A),U=xn(N[1],A)):(z=N[0],U=N[1]);let H=nt(z),G=nt(U);(h.startDate===null||h.startDate.getTime()!==z.getTime()||h.endDate?.getTime()!==U.getTime())&&(h.startDate=z,h.startArray=H,h.endDate=U,h.endArray=G)}else{let z;typeof N=="string"?z=xn(N,A):z=N;let U=nt(z);(h.startDate===null||h.startDate.getTime()!==z.getTime())&&(h.startDate=z,h.startArray=U)}};b(o.modelValue,o.type,o.valueFormat),t.watch(()=>o.modelValue,N=>{b(N,o.type,o.valueFormat)});const y=t.computed(()=>{if(h.startDate===null)return"";if(T.value){let N=tt(o,h.startDate,o.format),_=tt(o,h.endDate,o.format);return`${N} ${o.rangeSeparator} ${_}`}else{let N=tt(o,h.startDate,o.format);return o.showWeek&&(N=`${N} ${h.startArray[4]}`),N}}),v=t.computed(()=>{if(h.startDate===null)return null;if(T.value){let N=ne.date2Str(h.startDate),_=ne.date2Str(h.endDate??new Date);return[N,_]}else return ne.date2Str(h.startDate)}),f="fox-input-item",B=t.computed(()=>({[f]:!0,[`${f}__disabled`]:a.value})),V=Ne(t.computed(()=>o.textAlign),"textAlign"),L=t.computed(()=>({textAlign:V.value??"right"})),R=t.ref(!1),I=()=>{i.value||a.value||(R.value=!0)},E=()=>{R.value=!1},w=N=>{R.value=N},C=N=>{if(N){if(T.value&&Array.isArray(N)){let _=N[0],A=ie(_[0]),z=ie(_[1]),U=ie(_[2]),H=new Date(A,z-1,U),G=N[1];A=ie(G[0]),z=ie(G[1]),U=ie(G[2]);let Z=new Date(A,z-1,U);if(h.startDate=H,h.startArray=nt(H),h.endDate=Z,h.endArray=nt(Z),o.valueFormat){let ee=tt(o,H,o.valueFormat),M=tt(o,Z,o.valueFormat);s("update:modelValue",[ee,M],{})}else s("update:modelValue",[H,Z],{})}else{let _=N,A=ie(_[0]),z=ie(_[1]),U=ie(_[2]),H=new Date(A,z-1,U);if(h.startDate=H,h.startArray=nt(H),o.valueFormat){let G=tt(o,H,o.valueFormat);s("update:modelValue",G,{})}else s("update:modelValue",H,{})}s("change",N,{})}},O=N=>{let A=N.target.value;g.value=!0,s("focus",A,N)},S=N=>{setTimeout(()=>{g.value=!1},0);let A=N.target.value;o.maxLength&&A.length>Number(o.maxLength)&&(A=A.slice(0,Number(o.maxLength))),s("blur",A,N)},k=t.computed(()=>Pe(o.unit)>0),D=N=>{p(),s("update:modelValue",null,N),s("change","",N),s("clear","")},F=t.ref();return me({showPicker:I,hidePicker:E,focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const N={class:B.value,style:L.value,type:"text",maxlength:o.maxLength,placeholder:c.placeholder.value,readonly:!0,clearable:o.clearable,value:y.value,onClick:I,onFocus:O,onBlur:S,onClear:D},_={};r.slots.prepend&&(_.prepend=r.slots.prepend),r.slots.append&&(_.append=r.slots.append),r.slots.prefix?_.prefix=r.slots.prefix:_.prefix=()=>t.h(x.ElIcon,{},{default:()=>t.h(ve.Calendar)}),r.slots.suffix?_.suffix=r.slots.suffix:k.value&&(_.suffix=()=>[o.unit]);const A=[],z=t.h(x.ElInput,N,_);A.push(z);const U={default:()=>A};r.slots.default&&(U.label=r.slots.default),r.slots.fixedTip&&(U.fixedTip=r.slots.fixedTip);const H=Pt(o,fo);H.visible=R.value,H["onUpdate:visible"]=w,H["default-value"]=v.value,H.onChoose=C;const G={};if(r.slots.btn){const te=r.slots.btn();G.btn=()=>te}r.slots.day&&(G.day=r.slots.day),r.slots.topInfo&&(G.topInfo=r.slots.topInfo),r.slots.bottomInfo&&(G.bottomInfo=r.slots.bottomInfo);const Z=t.h(cn,H,G);U.hide=()=>[Z];const M={...Se(o,cl),hintText:d.value,hintVisible:m.value,prop:`${o.prop??r.attrs.name}_item`};return t.h(l,M,U)}}}}const{componentName:_u,create:Hu,scope:Ku}=oe("calendar-item"),mo=Hu(ju(_u,Ku,pe)),fl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Wu(e,n,l){return{props:{...he,...xe,...fl},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),m=ae(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0})),h=L=>{m.value=L,s("update:modelValue",L),s("change",L)};let p=ae(o,"hintText"),b=t.ref(!1);const y=L=>{let I=L.target.value;d.value=!0,ge(p.value)||(b.value=!0),s("focus",I,L)},v=L=>{setTimeout(()=>{b.value&&(b.value=!1),d.value=!1},0);let I=L.target.value;o.maxLength&&I.length>Number(o.maxLength)&&(I=I.slice(0,Number(o.maxLength))),s("blur",I,L)},f=()=>{s("clear","")},B=L=>{s("visible-change",L)},V=t.ref();return me({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const R={...r.attrs,ref:V,class:T.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:m.value,"onUpdate:modelValue":h,onClear:f,onFocus:y,onBlur:v,onVisibleChange:B},I={},E=[],w=t.h(x.ElTimePicker,R,I);E.push(w);const C={default:()=>E};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const S={...Se(o,fl),hintText:p.value,hintVisible:b.value,prop:`${o.prop}_item`};return t.h(l,S,C)}}}}const{componentName:Yu,create:Uu,scope:Gu}=oe("time-item"),ho=Uu(Wu(Yu,Gu,pe)),dl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Xu(e,n,l){return{props:{...he,...xe,...dl},emits:["change","update:modelValue","blur","focus","clear"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),m=ae(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0})),h=V=>{m.value=V,s("update:modelValue",V),s("change",V)};let p=ae(o,"hintText"),b=t.ref(!1);const y=V=>{let R=V.target.value;d.value=!0,ge(p.value)||(b.value=!0),s("focus",R,V)},v=V=>{setTimeout(()=>{b.value&&(b.value=!1),d.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)},f=()=>{s("clear","")},B=t.ref();return me({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const L={...r.attrs,ref:B,class:T.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:m.value,"onUpdate:modelValue":h,onClear:f,onFocus:y,onBlur:v},R={},I=[],E=t.h(x.ElTimeSelect,L,R);I.push(E);const w={default:()=>I};r.slots.default&&(w.label=r.slots.default),r.slots.fixedTip&&(w.fixedTip=r.slots.fixedTip);const O={...Se(o,dl),hintText:p.value,hintVisible:b.value,prop:`${o.prop}_item`};return t.h(l,O,w)}}}}const{componentName:Zu,create:Ju,scope:Qu}=oe("time-select-item"),po=Ju(Xu(Zu,Qu,pe));function ml(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 hl(e,n,l=20){if(typeof n=="string"&&(n=ie(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Kl(`${e}`,`${n}`);return ml(o)}else{let o=Hn(`${e}`,Wl(`${n}`),20);return ml(o)}}function ec(e,n=-1,l=!1,o=3,r=","){return Yt(e,n,l,o,r)}function pl(e,n,l,o,r=!0){if(e=="")return"";if(e=Yl(e),n=ie(n),n==1)return e;if(o)e=hl(e,n),l&&(e=="0"&&r?e=`${e}.`.padEnd(ie(l)+2,"0"):e=Hn(e,1,ie(l)));else{let a=-1*n;e=hl(e,a)}return e}function gl(e,n){let l={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=le(n.minInclude),r=In(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=le(n.maxInclude),r=In(e,n.max);(o&&r==1||!o&&(r==0||r==1))&&(l.maxValid=!1)}return l}const yl={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 tc(e,n,l){return{props:{...he,...xe,...yl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),u=t.ref(!1),c=ae(o,"modelValue"),d=t.ref("");t.watch([()=>c.value,()=>o.rates,()=>o.precision],([S,k,D])=>{if(ge(S)){d.value="";return}const F=pl(S,k,D,!1);d.value!==F&&(d.value=F)},{immediate:!0});const m=t.computed(()=>{let S="";return u.value&&(S=d.value),S}),{t:g}=Ee.useFoxI18n(n),T=t.computed(()=>{let S=o.placeholder??"";return!u.value&&!ge(d.value)?S=ec(d.value,o.decimalLength,o.autoPadding,o.digits,o.separator):S=g(["placeholder",S]),S}),h=e,p=t.computed(()=>({[h]:!0,[`${h}__disabled`]:a.value,[`${h}__placeholder`]:d.value.length>0})),b=Ne(t.computed(()=>o.textAlign),"textAlign");t.computed(()=>u.value?{textAlign:"left"}:{textAlign:b.value??"right"});const y=t.ref(""),v=t.computed(()=>{let S=y.value;return ge(S)&&(S=o.errorTip??""),S}),f=t.ref(""),B=t.ref(!1),V=(S,k)=>{if(S=`${S}`,ge(S)){d.value="",c.value="",k.forEach(D=>{s(D,"")}),le(o.showTip)&&B.value&&(B.value=!1);return}if(S.length>=2){let D=S;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){t.triggerRef(d);return}}if(S!="-"){if(!nr(S)){t.triggerRef(d);return}if(o.integerLength!=-1&&or(S)>Number(o.integerLength)){t.triggerRef(d);return}if(o.decimalLength&&o.decimalLength!=-1&&lr(S)>Number(o.decimalLength)){t.triggerRef(d);return}let D=gl(S,o);if(D.maxValid===!1){y.value=D.message,t.triggerRef(d);return}}else if(o.min!=null&&ie(o.min)>=0){t.triggerRef(d);return}f.value=S,le(o.showTip)&&(B.value=S.length>0),d.value=S,c.value=pl(S,o.rates,o.precision,!0),k.forEach(D=>{s(D,c.value)})},L=S=>{V(S,["update:modelValue","input"])},R=S=>{V(S,["update:modelValue","change"])},I=S=>{if(u.value=!0,le(o.showTip)){let k=d.value;ge(k)&&(k=o.hintText),ge(k)||(f.value=k,B.value=!0)}y.value="",s("focus",c.value,S)},E=S=>{if(setTimeout(()=>{u.value=!1,le(o.showTip)&&B.value===!0&&(B.value=!1)},0),!ge(d.value)){let k=gl(d.value,o);if(k.minValid===!1||k.maxValid===!1){y.value=k.message;return}}s("update:modelValue",c.value,S),s("blur",c.value,S)},w=()=>{s("clear","")},C=t.computed(()=>Pe(o.unit)>0),O=t.ref();return me({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},select:()=>{O?.value.select()}}),()=>{const k={...je(r.attrs),ref:O,class:p.value,type:"digit",maxlength:o.maxLength,placeholder:T.value,clearable:o.clearable,disabled:a.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:w,onInput:L,onChange:R,onFocus:I,onBlur:E},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:C.value&&(D.suffix=()=>[o.unit]);const F=[],N=t.h(x.ElInput,k,D);F.push(N);const _={default:()=>F};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const z={...Se(o,yl),errorTip:v.value,hintText:f.value,hintVisible:B.value,hintType:"number",prop:`${o.prop}_item`};return t.h(l,z,_)}}}}const{componentName:nc,create:oc,scope:lc}=oe("money-item"),go=oc(tc(nc,lc,pe)),vl={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 rc(e,n,l){return{props:{...he,...xe,...vl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),m=ae(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0,[`${g}__append`]:L.value})),h=t.computed(()=>({[`${g}__unit`]:!0})),p=I=>{m.value=I,s("update:modelValue",I),s("input",I)},b=I=>{s("change",I)};let y=ae(o,"hintText"),v=t.ref(!1);const f=I=>{let w=I.target.value;d.value=!0,ge(y.value)||(v.value=!0),s("focus",w,I)},B=I=>{setTimeout(()=>{v.value&&(v.value=!1),d.value=!1},0);let w=I.target.value;o.maxLength&&w.length>Number(o.maxLength)&&(w=w.slice(0,Number(o.maxLength))),s("blur",w,I)},V=()=>{s("clear","")},L=t.computed(()=>Pe(o.unit)>0),R=t.ref();return me({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()}}),()=>{const E={...je(r.attrs),ref:R,class:T.value,placeholder:c.placeholder.value,clearable:o.clearable,disabled:a.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:V,onChange:b,onInput:p,onFocus:f,onBlur:B},w={},C=[],O=t.h(x.ElInputNumber,E,w);C.push(O);const S={default:()=>C};r.slots.default&&(S.label=r.slots.default),r.slots.fixedTip&&(S.fixedTip=r.slots.fixedTip);const D={...Se(o,vl),hintText:y.value,hintVisible:v.value,prop:`${o.prop}_item`};if(r.slots.append)S.append=r.slots.append;else if(L.value){const N={class:h.value},_=t.h("div",N,[o.unit]);S.append=()=>_}return t.h(l,D,S)}}}}const{componentName:ac,create:ic,scope:sc}=oe("input-number-item"),yo=ic(rc(ac,sc,pe));function Tt(e,n){const l=e.textKey??"text";return n[l]??""}function kt(e,n){const l=e.valueKey??"value";return n[l]}function Mr(e,n){const l=e.childrenKey??"children";return n[l]}function Ft(e,n=[]){const l={texts:[],values:[]};for(let o=0;o<n.length;o++){const r=n[o],a=Tt(e,r),i=kt(e,r);l.texts.push(a),l.values.push(i??"")}return l}function Lr(e,n,l,o,r=[]){if(!l)return;const a=l[o];for(let i=0;i<n.length;i++)if(Tt(e,n[i])===a){const u=kt(e,n[i])??"",c={[e.textKey]:a,[e.valueKey]:u};r.push(c);const d=Mr(e,n[i]);Array.isArray(d)&&Lr(e,d,l,o+1,r);return}}function qr(e,n,l,o,r=[]){if(!l)return;const a=l[o];for(let i=0;i<n.length;i++)if(kt(e,n[i])===a){const u=Tt(e,n[i])??"",c={[e.textKey]:u,[e.valueKey]:a};r.push(c);const d=Mr(e,n[i]);Array.isArray(d)&&qr(e,d,l,o+1,r);return}}function Cn(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=Tt(e,n[o]),a=Tt(e,l[o]);if(r!==a)return!1;const i=kt(e,n[o]),s=kt(e,l[o]);if(i!==s)return!1}return!0}let uc=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=Be(this.proxy,o);return r===null?(console.error(`${o} component not found api function`),[]):(Ae(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(n,l))}};function cc(){const e=t.getCurrentInstance();return new uc(e.proxy)}const qt=(e,n,l)=>e.map(o=>{const{value:r="value",text:a="text",children:i="children"}=l??{},{[r]:s,[a]:u,[i]:c,...d}=o,m={loading:!1,...d,level:n?(n&&n.level||0)+1:0,value:s,text:u,children:c,_parent:n};return m.children&&m.children.length&&(m.children=qt(m.children,m,l)),m}),zr=(e,n)=>{let l=0,o;for(;(o=e[l++])&&n(o)!==!0;)o.children&&o.children.length&&zr(o.children,n)},fc={topId:null,idKey:"id",pidKey:"pid",sortKey:""},dc=(e,n)=>{const l={...fc,...n||{}},{topId:o,idKey:r,pidKey:a,sortKey:i}=l;let s=[],u={};return e.forEach(c=>{c={...c};const{[r]:d,[a]:m}=c,g=u[m]=u[m]||[];!s.length&&m===o&&(s=g),g.push(c),c.children=u[d]||(u[d]=[])}),i&&Object.keys(u).forEach(c=>{u[c].length>1&&u[c].sort((d,m)=>d[i]-m[i])}),u=null,s},mc=/scroll|auto|overlay/i,hc=window;function pc(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function bl(e,n=hc){let l=e;for(;l&&l!==n&&pc(l);){const{overflowY:o}=window.getComputedStyle(l);if(mc.test(o))return l;l=l.parentNode}return n}const{create:gc}=oe("sticky"),yc=gc({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)}:{}),u=()=>{const c=e.container;if(!l.value&&!c)return;const d=Ze(l),m=o.value,g=Ze(m),T=Ze(c);r.height=d.height;const h=()=>{let b=!1;if(e.position==="top")b=c?a.value>d.top&&T.bottom>0:a.value>d.top;else{const y=document.documentElement.clientHeight;b=c?T.bottom>0&&y-a.value-g.height>T.top:y-a.value<d.bottom}return b},p=()=>{if(c)if(e.position==="top"){const b=T.bottom-a.value-g.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,y=T.bottom-(b-a.value);return y<0?y:0}return 0};r.transform=p(),r.fixed=h()};return t.watch(()=>r.fixed,c=>{n("change",c)}),t.onMounted(()=>{u(),bl(l.value).addEventListener("scroll",u,!0)}),t.onUnmounted(()=>{bl(l.value).removeEventListener("scroll",u)}),{rootRef:l,rootStyle:i,stickyRef:o,stickyStyle:s}}});function vc(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 $t=ce(yc,[["render",vc]]),bc=(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 g=await o(r,l);a.value.width=g.width||0,a.value.height=g.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}),u=ao();let c="";const d=(g,T)=>{let h=g;switch(e.direction=="horizontal"?(c=g>0?"right":"left",h=Math.abs(h)/a.value.width*100):(c=T>0?"bottom":"top",h=T,h=Math.abs(h)/a.value?.height*100),h>85&&(h=85),c){case"left":case"top":n.isEnd()&&(h=0,s.moving=!1);break;case"right":case"bottom":h=-h,n.isBegin()&&(h=0,s.moving=!1);break}s.offset=h};return{touchMethods:{onTouchStart(g){e.swipeable&&u.start(g)},onTouchMove(g){e.swipeable&&(u.move(g),s.moving=!0,d(u.deltaX.value,u.deltaY.value),e.direction=="horizontal"&&u.isHorizontal()&&(g.preventDefault(),g.stopPropagation()),e.direction=="vertical"&&u.isVertical()&&(g.preventDefault(),g.stopPropagation()))},onTouchEnd(){if(s.moving)switch(s.moving=!1,c){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 wc{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Sc}=oe("ext-tabs"),xc=Sc({components:{[$t.name]:$t,JoySmile:as},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=E=>{E.forEach((w,C)=>{let O=w.type;if(O=O.name||O,O=="fox-ext-tab-pane"){let S=new wc;if(w.props?.title||w.props?.["pane-key"]||w.props?.paneKey){let k=st(w.props?.["pane-key"]),D=k=="number"||k=="string"?String(w.props?.["pane-key"]):null,F=st(w.props?.paneKey),N=F=="number"||F=="string"?String(w.props?.paneKey):null;S.title=w.props?.title,S.paneKey=D||N||String(C),S.disabled=w.props?.disabled}a.value.push(S)}else{if(w.children==" ")return;Array.isArray(w.children)&&i(w.children)}})},s=t.ref(e.modelValue||0),u=E=>{let w=a.value.findIndex(C=>C.paneKey==E);a.value.length==0||w==-1||(s.value=w)},c=t.computed(()=>e.titleScroll&&e.direction==="vertical"),d=t.ref(),m=t.ref([]),g=E=>{const w=d.value,C=m.value;if(!w||!C||!C[s.value])return;const O=C[s.value];let S=0;e.direction==="vertical"?S=O.offsetTop-w.offsetTop+10-(w.offsetHeight-O.offsetHeight)/2:S=O.offsetLeft-(w.offsetWidth-O.offsetWidth)/2,T(w,S,E?0:.3,e.direction)},T=(E,w,C,O)=>{let S=0;const k=O==="horizontal"?E.scrollLeft:E.scrollTop,D=C===0?1:Math.round(C*1e3/16);function F(){O==="horizontal"?E.scrollLeft+=(w-k)/D:E.scrollTop+=(w-k)/D,++S<D&&Ul(F)}F()},h=(E=l.default?.())=>{a.value=[],E=E?.filter(w=>typeof w.children!="string"),E&&E.length&&i(E),u(e.modelValue),t.nextTick(()=>{g()})},p=E=>{r=E.fixed};t.watch(()=>l.default?.(),E=>{h(E)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,E=>{if(u(E),g(),r){let w=Ze(o.value).top+b(),C=Math.ceil(w-e.top);window.scrollTo({top:C,behavior:"smooth"})}}),t.onMounted(h),t.onActivated(h);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:E=>{n("update:modelValue",E.paneKey),n("change",E)},tabChange:(E,w)=>{n("click",E),!(E.disabled||s.value==w)&&(s.value=w,y.updateValue(E))},setTabItemRef:(E,w)=>{m.value[w]=E}},{tabsContentRef:v,touchState:f,touchMethods:B}=bc(e,y),V=t.computed(()=>{let E=s.value*100;f.moving&&(E+=f.offset);let w={transform:e.direction=="horizontal"?`translate3d(-${E}%, 0, 0)`:`translate3d( 0,-${E}%, 0)`,transitionDuration:f.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(w={}),w}),L=t.computed(()=>({background:e.background})),R=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),I=t.computed(()=>{if(!e.titleGutter)return{};const E=we(e.titleGutter);return e.direction==="vertical"?{marginTop:E,marginBottom:E}:{marginLeft:E,marginRight:E}});return{navRef:d,tabsContentRef:v,titles:a,contentStyle:V,tabsNavStyle:L,titleStyle:I,tabsActiveStyle:R,container:o,getScrollY:c,onStickyScroll:p,...y,...B}}}),Cc=["onClick"],Tc=["onClick"];function kc(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,(u,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:u.paneKey==e.modelValue,disabled:u.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:d=>e.tabChange(u,c),key:u.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(u.title),3)],14,Cc))),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,(u,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:u.paneKey==e.modelValue,disabled:u.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:d=>e.tabChange(u,c),key:u.paneKey,ref_for:!0,ref:d=>e.setTabItemRef(d,c)},[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(u.title),3)],14,Tc))),128))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...u)=>e.onTouchStart&&e.onTouchStart(...u)),onTouchmove:n[1]||(n[1]=(...u)=>e.onTouchMove&&e.onTouchMove(...u)),onTouchend:n[2]||(n[2]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u)),onTouchcancel:n[3]||(n[3]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u))},[t.renderSlot(e.$slots,"default")],36)],2)}const Dt=ce(xc,[["render",kc]]),{create:$c}=oe("ext-tab-pane"),Dc=$c({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 Ec(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 Et=ce(Dc,[["render",Ec]]);class wl{nodes;config;constructor(n,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=qt(n,null,this.config)}updateChildren(n,l){l?l.children=qt(n,l,this.config):this.nodes=qt(n,null,this.config)}getNodeByValue(n){let l;return zr(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:Nc,scope:Vc}=oe("cascader-pane"),Pc=Nc({components:{Loading:ns,Checklist:hs,[Dt.name]:Dt,[Et.name]:Et},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 wl([],{})),s=t.ref([]),u=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),c=new Map;let d;const m=async()=>{c.clear(),s.value=[],o.value=0,r.value=!1,d=null;let{options:y}=e;l.value.convertConfig&&(y=dc(y,l.value.convertConfig)),i.value=new wl(y,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),u.value&&!i.value.nodes.length&&await T({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:i.value.nodes,selectedNode:null}],g()},g=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 v=y;if(u.value&&Array.isArray(y)&&y.length){v=[];let f=i.value.nodes.find(B=>B.value===y[0]);if(f){v=[f.value],r.value=!0;const B=await y.slice(1).reduce(async(V,L)=>{const R=await V;await T(R);const I=R?.children?.find(E=>E.value===L);return I&&v.push(L),Promise.resolve(I)},Promise.resolve(f));await T(B),r.value=!1}}v.length&&y===e.modelValue&&i.value.getPathNodesByValue(v).map((B,V)=>{o.value=V,b.handleNode(B,!0)})},T=async y=>{if(!y)return;if(!l.value.lazyLoad){y.leaf=!0;return}if(i.value.isLeaf(y,u.value)||i.value.hasChildren(y,u.value))return;y.loading=!0;const v=y.root?null:y;let f=c.get(y);f||(f=new Promise(V=>{l.value.lazyLoad?.(y,V)}),c.set(y,f));const B=await f;Array.isArray(B)&&B.length>0?i.value.updateChildren(B,v):y.leaf=!0,y.loading=!1,c.delete(y)},h=y=>{const v=y.map(f=>f.value);a.value=v,n("change",v,y),n("update:modelValue",v,y)},{t:p}=Ee.useFoxI18n(Vc),b={async handleNode(y,v){const{disabled:f,loading:B}=y;if(!(!v&&f||!s.value[o.value])){if(i.value.isLeaf(y,u.value)){if(y.leaf=!0,s.value[o.value].selectedNode=y,s.value=s.value.slice(0,y.level+1),!v){const V=s.value.map(L=>L.selectedNode);h(V),n("pathChange",V)}return}if(i.value.hasChildren(y,u.value)){const V=y.level+1;if(s.value[o.value].selectedNode=y,s.value=s.value.slice(0,V),s.value.push({nodes:y.children||[],selectedNode:null}),o.value=V,!v){const L=s.value.map(R=>R.selectedNode);n("pathChange",L)}return}d=y,!B&&(await T(y),d===y&&(s.value[o.value].selectedNode=y,b.handleNode(y,v)))}},handleTabClick(y){d=null,o.value=Number(y.paneKey)},formatTabTitle(y){return y.selectedNode?y.selectedNode.text:p("select")},isSelected(y,v){return y.selectedNode&&y.selectedNode.value===v.value}};return t.watch([l,()=>e.options],()=>{m()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,y=>{y!==a.value&&(a.value=y,g())}),t.watch(()=>e.visible,y=>{y&&Array.isArray(a.value)&&a.value.length>0&&g()}),{panes:s,initLoading:r,tabsCursor:o,...b}}}),Ic={role:"menu",class:"fox-cascader__pane"},Oc=["aria-checked","aria-disabled","onClick"],Bc={class:"fox-cascader__item__title"},Ac=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Fc(e,n,l,o,r,a){const i=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),u=t.resolveComponent("fox-ext-tab-pane"),c=t.resolveComponent("fox-ext-tabs");return t.openBlock(),t.createBlock(c,{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,m)=>(t.openBlock(),t.createBlock(u,{title:e.formatTabTitle(d),key:m},{default:t.withCtx(()=>[t.createElementVNode("view",Ic,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,g=>(t.openBlock(),t.createElementBlock("view",{key:g.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,g),disabled:g.disabled}]),"aria-checked":e.isSelected(d,g),"aria-disabled":g.disabled||void 0,role:"menuitemradio",onClick:T=>e.handleNode(g,!1)},[t.createElementVNode("view",Bc,t.toDisplayString(g.text),1),g.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,Oc))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(u,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Ac]),_:1}))]),_:1},8,["modelValue","onClick"])}const Sl=ce(Pc,[["render",Fc]]),{create:Rc}=oe("cascader-picker"),Mc=Rc({components:{[Sl.name]:Sl,[qe.name]:qe},props:{...lo,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}}}),Lc=["innerHTML"];function qc(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]=u=>e.innerVisible=u),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Lc)):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 fn=ce(Mc,[["render",qc]]),xl={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 zc(e,n,l){return{props:{...he,...xe,...xl},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]);let d=ae(o,"hintText"),m=t.ref(!1);const g=t.ref(!1),T=cc(),h=t.ref([]);t.watch([()=>o.source,()=>o.params],async([F,N])=>{F&&(h.value=await T.load(F,N))},{immediate:!0});const p=t.ref([]),b=t.computed(()=>Array.isArray(p.value)?p.value.join(" "):p.value),y=t.ref([]),v=t.ref([]);t.watch([()=>o.modelValue,h],async([F,N])=>{if(o.lazy===!0){v.value.length==0&&(p.value=Array.isArray(F)?F:[],y.value=Array.isArray(F)?F:[]);return}if(o.valueType==="item"){let _=F;if(!Cn(o,_,v.value)){v.value=_;let A=Ft(o,_);p.value=A.texts,y.value=A.values}}else if(o.valueType==="text"){let _=F,A=[];if(Lr(o,N,_,0,A),!Cn(o,A,v.value)){v.value=A;let z=Ft(o,A);_.value=z.texts,y.value=z.values}}else{let _=F,A=[];if(qr(o,N,_,0,A),!Cn(o,A,v.value)){v.value=A;let z=Ft(o,A);p.value=z.texts,_.value=z.values}}});const f=e,B=t.computed(()=>({[f]:!0})),V=Ne(t.computed(()=>o.textAlign),"textAlign"),L=t.computed(()=>({textAlign:V.value??"right"})),R=t.ref(!1),I=()=>{a.value===!0||i.value===!0||(R.value=!0)},E=F=>{R.value=F},w=(F,N)=>{let _=N.map(z=>{if(z==null)return z;let U={...z};return Reflect.deleteProperty(U,"text"),U[o.textKey]=z.text??"",Reflect.deleteProperty(U,"value"),U[o.valueKey]=z.value??"",U});v.value=_;let A=Ft(o,_);p.value=A.texts,y.value=A.values,o.valueType==="text"?(s("change",p.value,_),s("update:modelValue",p.value)):o.valueType==="item"?(s("change",_,_),s("update:modelValue",_)):(s("change",y.value,_),s("update:modelValue",y.value)),s("update:pathNodes",_)},C=F=>{let N=F.map(_=>{if(_==null)return _;let A={..._};return Reflect.deleteProperty(A,"text"),A[o.textKey]=_.text??"",Reflect.deleteProperty(A,"value"),A[o.valueKey]=_.value??"",A});s("pathChange",N)},O=F=>{g.value=!0,s("focus",y.value,F)},S=F=>{setTimeout(()=>{g.value=!1},0),s("blur",y.value,F)},k=t.computed(()=>Pe(o.unit)>0);t.computed(()=>o.clearable&&!a.value&&!i.value);const D=t.ref();return me({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()}}),()=>{const F={class:B.value,style:L.value,type:"text",maxlength:o.maxLength,placeholder:c.placeholder.value,readonly:!0,value:b.value,onClick:I,onFocus:O,onBlur: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:k.value?N.suffix=()=>[o.unit]:N.suffix=()=>t.h(x.ElIcon,{},{default:()=>t.h(ve.ArrowDown)});const _=[],A=t.h(x.ElInput,F,N);_.push(A);const z={default:()=>_};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);let U={};U.visible=R.value,U["onUpdate:visible"]=E,U.modelValue=y.value,U.onChange=w,U.onPathChange=C,U.options=h.value,U.title=o.title,U.lazy=o.lazy,U.lazyLoad=o.lazyLoad,U.valueKey=o.valueKey,U.textKey=o.textKey,U.childrenKey=o.childrenKey,U.convertConfig=o.convertConfig;const H=t.h(fn,U);z.hide=()=>[H];const Z={...Se(o,xl),hintText:d.value,hintVisible:m.value,prop:`${o.prop??r.attrs.name}_item`};return t.h(l,Z,z)}}}}const{componentName:jc,create:_c,scope:Hc}=oe("cascader-item"),vo=_c(zc(jc,Hc,pe)),Cl={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Kc(e,n,l){return{props:{...he,...xe,...Cl},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),{toLocaleRefs:u}=Ee.useFoxI18n(n),c=u(o,["placeholder"]),d=t.ref(!1),m=ae(o,"modelValue"),g=e,T=t.computed(()=>({[g]:!0})),h=R=>{m.value=R,s("update:modelValue",R),s("input",R)},p=R=>{s("change",R)},b=R=>{s("select",R)};let y=ae(o,"hintText"),v=t.ref(!1);const f=R=>{let E=R.target.value;d.value=!0,ge(y.value)||(v.value=!0),s("focus",E,R)},B=R=>{setTimeout(()=>{v.value&&(v.value=!1),d.value=!1},0);let E=R.target.value;o.maxLength&&E.length>Number(o.maxLength)&&(E=E.slice(0,Number(o.maxLength))),s("blur",E,R)},V=()=>{s("clear","")},L=t.ref();return me({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const I={...r.attrs,ref:L,class:T.value,placeholder:c.placeholder.value,clearable:o.clearable,disabled:a.value,readonly:i.value,modelValue:m.value,onClear:V,onChange:p,onInput:h,onFocus:f,onBlur:B,onSelect: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),r.slots.option&&(E.default=r.slots.option);const w=[],C=t.h(x.ElAutocomplete,I,E);w.push(C);const O={default:()=>w};r.slots.default&&(O.label=r.slots.default),r.slots.fixedTip&&(O.fixedTip=r.slots.fixedTip);const k={...Se(o,Cl),hintText:y.value,hintVisible:v.value,prop:`${o.prop}_item`};return t.h(l,k,O)}}}}const{componentName:Wc,create:Yc,scope:Uc}=oe("autocomplete-item"),bo=Yc(Kc(Wc,Uc,pe));function Gc(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 u=n;for(let c=0;u&&c<a.length;c++){let d=a[c],m=u.find(g=>g[o]===d);if(!m)break;i.push(m[l])}return i}if(Array.isArray(s))for(let u=0;u<n.length&&u<a.length;u++){let c=n[u],d=a[u];const m=c.find(g=>g[o]===d);if(!m)break;i.push(m[l])}else{let u=n;for(let c=0;u&&c<a.length;c++){let d=a[c],m=u.find(g=>g[o]===d);if(!m)break;i.push(m[l]),u=m[r]}}return i}let Xc=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=Be(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(l,o))}};function Zc(){const e=t.getCurrentInstance();return new Xc(e.proxy)}const jr={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 Jc(e,n){return{props:{...jr},setup(l,{attrs:o,slots:r}){const a=Zc(),i=t.ref([]);t.watch([()=>l.source,()=>l.params],async([c,d])=>{i.value=await a.load(l.sourceType,c,d)},{immediate:!0});const s=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=Gc(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return c.length==0?l.emptyText??"":c.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${c[0]}`:c[0]:c.join(l.separator)}),u=l.resolveTag?t.resolveComponent(l.tag):l.tag;return()=>{const c={...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(u,c,{default:()=>s.value}):t.h(u,c,s.value)}}}}const{componentName:mh,create:Qc,scope:hh}=oe("mapping"),Nt=Qc(Jc());function ef(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("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,s);o=o[m][d]}else o=o[d];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(o=o[a])}return o}function tf(e,n){return{props:{...jr},setup(l,{attrs:o,slots:r}){return()=>{const a={default:i=>{const s=ef(i.row,i.column.property);return r.default?t.h(Nt,{...l,modelValue:s},{default:r.default}):t.h(Nt,{...l,modelValue:s})}};return t.h(x.ElTableColumn,{...o},a)}}}}const{componentName:ph,create:nf,scope:gh}=oe("table-mapping-column"),wo=nf(tf()),of=Symbol.for("TableStateKey");function Tl(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("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,s);o=o[m][d]}else o=o[d];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(o=o[a])}return o}function lf(e,n){return{props:{},setup(l,{attrs:o}){const r=t.inject(of,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=Tl(s.row,s.column.property),c=a?Tl(a,s.column.property):null,d=u===c,m={class:{"el-radio__input":!0,"is-checked":d}},g=t.h("span",m,[t.h("span",{class:{"el-radio__inner":!0}})]),T={class:{"el-radio":!0,"is-checked":d}};return t.h("label",T,[g])}};return t.h(x.ElTableColumn,{...o},i)}}}}const{componentName:yh,create:rf,scope:vh}=oe("table-radio-column"),So=rf(lf()),af={},sf={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"},uf=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),cf=[uf];function ff(e,n){return t.openBlock(),t.createElementBlock("svg",sf,cf)}const df=ce(af,[["render",ff]]),{componentName:bh,create:mf,scope:wh}=oe("table-setting"),hf={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:"不固定"}},pf=mf({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:df,Download:ve.Download,RefreshLeft:ve.RefreshLeft},props:{...hf},setup(e,{emit:n,attrs:l}){let o=[];const r=t.ref([]),a=t.computed(()=>r.value.filter(M=>M.label===""||M.type?!1:M.fixed===""||M.fixed===!0||M.fixed==="left")),i=t.computed(()=>r.value.filter(M=>M.label===""||M.type?!1:M.fixed==="right")),s=t.computed(()=>r.value.filter(M=>!(M.label===""||M.type||M.fixed!==void 0))),u=t.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),c=t.computed(()=>a.value.length>0),d=t.computed(()=>i.value.length>0),m=M=>M.length>1,g=(M,J)=>{Array.isArray(M)&&Array.isArray(J)&&M.forEach(j=>{J.some(q=>q.prop===j.prop?(j.label=q.label,!0):!1)});const te=[];r.value=M.map((j,q)=>(!(j.label===""||j.type)&&j.visible!==!1&&te.push(j.prop),{...j,sortIndex:q})),s.value.length+a.value.length+i.value.length===te.length?v.value=!0:te.length>0&&(f.value=!0),L.value=te},T=M=>M?M.type?M.type:M.label?M.prop:"":"",h=(M,J)=>{if(M.length!==J.length)return!1;const te=M.map($=>T($));for(let $ of J){const j=T($);if(te.indexOf(j)===-1)return!1}return!0},p=M=>{if(!M){const J=e.tableRef.getColumnSetting(),te=J.srcColumnPropertyList;o=te.map(($,j)=>({...$,sortIndex:j})),M=J.columnPropertyList,M&&M.length>0&&h(te,M)||(M=te)}g(M,o)},b=()=>{e.tableRef.setColumnSetting(r.value)},y=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),v=t.ref(!1),f=t.ref(!1),B=M=>{const J=[];r.value.forEach($=>{M&&!($.label===""||$.type)&&J.push($.prop),$.visible=M}),v.value=!1,f.value=!1,s.value.length+a.value.length+i.value.length===J.length?v.value=!0:J.length>0&&(f.value=!0),L.value=J,b()},V=()=>{p(o),b()},L=t.ref([]),R=M=>{r.value.forEach(te=>{if(te.label===""||te.type)return;const $=M.indexOf(te.prop)!==-1;te.visible=$}),v.value=!1,f.value=!1;const J=s.value.length+a.value.length+i.value.length;M.length===J?v.value=!0:M.length>0&&(f.value=!0),b()},I=()=>{p()};t.onMounted(()=>{setTimeout(()=>{p()},50)});const E={currentRow:null,index:null,roleType:null},w=M=>M?M.dataset&&M.dataset.role==="row"?M:M.tagName.toLowerCase()!=="body"?(M=M.parentElement,w(M)):null:null,C=M=>{const J=M.currentTarget;J&&J.dataset&&(E.roleType=J.dataset.roleType,E.index=J.dataset.index)},O=M=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},S=M=>{const J=M.currentTarget;M.relatedTarget;const te=w(J);if(!te)return;const $=te.dataset&&te.dataset.roleType;E.roleType===$&&(M.preventDefault(),E.currentRow&&E.currentRow!==te&&E.currentRow.classList.remove("is-dragover"),te.classList.add("is-dragover"),E.currentRow=te)},k=M=>{M.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},D=M=>{const J=M.currentTarget,te=w(J);if(!te)return;const $=te.dataset&&te.dataset.roleType;if(E.roleType!==$)return;M.preventDefault();const j=Number(E.index),q=Number(te.dataset.index);if(j!==q){if(j<q){const W=r.value[j];r.value.splice(j,1),r.value.splice(q,0,W)}else{const W=r.value[j];r.value.splice(j,1),r.value.splice(q+1,0,W)}g(r.value,o),b()}},F=M=>{const J=r.value[M];J.fixed="left",b()},N=M=>{const J=r.value[M];J.fixed="right",b()},_=M=>{const J=r.value[M];J.fixed=void 0,b()},A=new Map;let z=null;function U(M){const J=document.createRange();return J.setStart(M,0),J.setEnd(M,M.childNodes.length),J.getBoundingClientRect().width}return{attrs:l,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:m,isCheckAll:v,isIndeterminate:f,handleCheckAllChange:B,handleReset:V,checkedValue:L,handleCheckChange:R,onShow:I,onDragStart:C,onDragEnd:O,onDragOver:S,onDragLeave:k,onDrop:D,toLeftFixed:F,toRightFixed:N,toUnFixed:_,checkboxLabelStyle:y,onMouseOverForOverflowText:(M,J,te)=>{const $=M.currentTarget;if($){const j=Math.floor($.offsetWidth);if(Math.floor(U($))>j){let W=A.get(J);if(W){if(W===z)return;Te.hide(W)}W=Te.show($,te,{type:"text",placement:"top",closeOnClick:!1}),A.set(J,W),z=W}}},onMouseLeaveForOverflowText:(M,J)=>{const te=A.get(J);te&&(Te.hide(te),te===z&&(z=null))},onMouseOverForTip:(M,J)=>{const te=M.currentTarget;te&&(z&&Te.hide(z),z=Te.show(te,J,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:M=>{z&&(Te.hide(z),z=null)}}}}),gf={class:"fox-table-setting"},yf={class:"fox-table-setting__header"},vf={class:"fox-table-setting__body"},bf={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},wf={key:0,class:"fox-table-setting__body-title"},Sf=["data-index","draggable"],xf=["onMouseover","onMouseleave"],Cf={class:"tools-item"},Tf={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},kf={key:0,class:"fox-table-setting__body-title"},$f=["data-index","draggable"],Df=["onMouseover","onMouseleave"],Ef={class:"tools-item"},Nf={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Vf={key:0,class:"fox-table-setting__body-title"},Pf=["data-index","draggable"],If=["onMouseover","onMouseleave"],Of={class:"tools-item"};function Bf(e,n,l,o,r,a){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),u=t.resolveComponent("DragIcon"),c=t.resolveComponent("RefreshLeft"),d=t.resolveComponent("FoxIcon"),m=t.resolveComponent("Download"),g=t.resolveComponent("fox-checkbox"),T=t.resolveComponent("FoxCheckboxGroup"),h=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(h,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",gf,[t.createElementVNode("div",yf,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=p=>e.isCheckAll=p),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",vf,[t.createVNode(T,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=p=>e.checkedValue=p),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",bf,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",wf,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":p.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...b)=>e.onDragStart&&e.onDragStart(...b)),onDragend:n[6]||(n[6]=(...b)=>e.onDragEnd&&e.onDragEnd(...b)),onDrop:n[7]||(n[7]=(...b)=>e.onDrop&&e.onDrop(...b)),onDragover:n[8]||(n[8]=(...b)=>e.onDragOver&&e.onDragOver(...b)),onDragleave:n[9]||(n[9]=(...b)=>e.onDragLeave&&e.onDragLeave(...b))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:b=>e.onMouseOverForOverflowText(b,p.prop,p.label),onMouseleave:b=>e.onMouseLeaveForOverflowText(b,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,xf)]),_:2},1032,["label"]),t.createElementVNode("div",Cf,[t.createVNode(d,{onClick:b=>e.toUnFixed(p.sortIndex),onMouseover:n[1]||(n[1]=b=>e.onMouseOverForTip(b,e.unFixedText)),onMouseleave:n[2]||(n[2]=b=>e.onMouseLeaveForTip(b))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:b=>e.toRightFixed(p.sortIndex),onMouseover:n[3]||(n[3]=b=>e.onMouseOverForTip(b,e.fixedRightText)),onMouseleave:n[4]||(n[4]=b=>e.onMouseLeaveForTip(b))},{default:t.withCtx(()=>[t.createVNode(m)]),_:2},1032,["onClick"])])],40,Sf))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Tf,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",kf,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":p.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...b)=>e.onDragStart&&e.onDragStart(...b)),onDragend:n[15]||(n[15]=(...b)=>e.onDragEnd&&e.onDragEnd(...b)),onDrop:n[16]||(n[16]=(...b)=>e.onDrop&&e.onDrop(...b)),onDragover:n[17]||(n[17]=(...b)=>e.onDragOver&&e.onDragOver(...b)),onDragleave:n[18]||(n[18]=(...b)=>e.onDragLeave&&e.onDragLeave(...b))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:b=>e.onMouseOverForOverflowText(b,p.prop,p.label),onMouseleave:b=>e.onMouseLeaveForOverflowText(b,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,Df)]),_:2},1032,["label"]),t.createElementVNode("div",Ef,[t.createVNode(d,{onClick:b=>e.toLeftFixed(p.sortIndex),onMouseover:n[10]||(n[10]=b=>e.onMouseOverForTip(b,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=b=>e.onMouseLeaveForTip(b)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(m)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:b=>e.toRightFixed(p.sortIndex),onMouseover:n[12]||(n[12]=b=>e.onMouseOverForTip(b,e.fixedRightText)),onMouseleave:n[13]||(n[13]=b=>e.onMouseLeaveForTip(b))},{default:t.withCtx(()=>[t.createVNode(m)]),_:2},1032,["onClick"])])],40,$f))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Nf,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Vf,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,p=>(t.openBlock(),t.createElementBlock("div",{key:p.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":p.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...b)=>e.onDragStart&&e.onDragStart(...b)),onDragend:n[24]||(n[24]=(...b)=>e.onDragEnd&&e.onDragEnd(...b)),onDrop:n[25]||(n[25]=(...b)=>e.onDrop&&e.onDrop(...b)),onDragover:n[26]||(n[26]=(...b)=>e.onDragOver&&e.onDragOver(...b)),onDragleave:n[27]||(n[27]=(...b)=>e.onDragLeave&&e.onDragLeave(...b))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(g,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:b=>e.onMouseOverForOverflowText(b,p.prop,p.label),onMouseleave:b=>e.onMouseLeaveForOverflowText(b,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,If)]),_:2},1032,["label"]),t.createElementVNode("div",Of,[t.createVNode(d,{onClick:b=>e.toUnFixed(p.sortIndex),onMouseover:n[19]||(n[19]=b=>e.onMouseOverForTip(b,e.unFixedText)),onMouseleave:n[20]||(n[20]=b=>e.onMouseLeaveForTip(b))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:b=>e.toLeftFixed(p.sortIndex),onMouseover:n[21]||(n[21]=b=>e.onMouseOverForTip(b,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=b=>e.onMouseLeaveForTip(b)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(m)]),_:2},1032,["onClick"])])],40,Pf))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const dn=ce(pf,[["render",Bf]]);let Af=class{proxy;constructor(n){this.proxy=n}async load(n,l,o,r,a,i,s){if(Array.isArray(l)){let c=(o-1)*r,d=c+r;d>l.length&&(d=l.length);const m=l.slice(c,d);return{totalSize:l.length,page:m}}if(typeof l=="function")return await Reflect.apply(l,null,[o,r,a,i,s]);const u=Be(this.proxy,n);return u===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ae(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await Reflect.apply(u,null,[l,o,r,a,i,s]))}};function Ff(){const e=t.getCurrentInstance();return new Af(e.proxy)}class Rf{proxy;constructor(n){this.proxy=n}async load(n){let l=null;const o=Be(this.proxy,"tableSetting");return typeof o=="function"&&(l=await Reflect.apply(o,null,["load",n])),l}save(n,l){const o=Be(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["save",n,l])}remove(n){const l=Be(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",n])}}function _r(){const e=t.getCurrentInstance();return new Rf(e.proxy)}const Mf=Symbol.for("TableStateKey");function Lf(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("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,s);o=o[m][d]}else o=o[d];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(o=o[a])}return o}function Tn(e,n){return e.filter(o=>{for(let r in n){const a=n[r],i=Lf(o,r);if(a!==i)return!1}return!0})}const kl={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"}},$l={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}},kn={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 qf(e,n,l){return{inheritAttrs:!1,props:{...he,...xe,...kl,...$l,...kn},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}=be({componentName:e,validateHandler:{getValue(...K){return f.value}}},o.prop??r.attrs.name),s=e,u=t.computed(()=>({[s]:!0})),c=t.computed(()=>({[`${s}__setting`]:!0})),d=t.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${o.footerAlign}`]:!0})),m=t.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${o.paginationAlign}`]:!0})),g=t.ref(o.pageIndex);t.watch(()=>o.pageIndex,K=>{g.value=K});const T=K=>{g.value=K,i("page-index-change",K)},h=t.ref(o.pageSize);t.watch(()=>o.pageSize,K=>{h.value=K});const p=K=>{h.value=K,i("page-size-change",K)},b=t.shallowRef({}),y=t.computed(()=>({...b.value,...o.params??{},...o.baseParams??{}})),v=t.ref(0),f=t.ref(),B=Ff();let V=!0;const L=()=>Array.isArray(o.data)?!0:le(o.autoLoad),R=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",Ye.Near,K=>le(K)),I=async(K,P,Y,Q)=>{try{const ue=await B.load("table",K,P,Y,Q,V,a.value);v.value=ue.totalSize,f.value=ue.page}catch(ue){console.error("[FoxUI] Load Table Data Fail",ue),v.value=0,f.value=[]}V=!1,setTimeout(()=>{i("loaded-data")},250)};t.watch([g,h],([K,P],[Y,Q])=>{P!==Q&&(g.value=1,K=1),I(o.data,K,P,y.value)}),t.watch([()=>o.data,y],([K,P],[Y,Q])=>{L()&&(K!==Y&&(V=!0),!(!Array.isArray(K)&&Le(K,Y)&&Le(P,Q))&&I(K,g.value,h.value,P))},{deep:!0});const E=(K={},P=!1)=>new Promise(Y=>{b.value=t.toRaw(K??{}),t.triggerRef(b),P||(g.value=o.pageIndex??1),t.nextTick(async()=>{await I(o.data,g.value,h.value,y.value),Y()})}),w=()=>{v.value=0,f.value=[]};let C=!1;const O=()=>{C||(C=!0,E())};L()&&!R.value&&E();const S=t.ref(null);t.provide(Mf,{currentRow:S});const k=(K,P)=>{S.value=K,i("current-change",K,P)},D=(K,P,Y)=>{i("row-click",K,P,Y),le(o.rowClickSelectable)===!0&&X?.value.toggleRowSelection(K)},F=[],N=(K,P)=>{if(i("expand-change",K,P),le(o.uniqueExpansion))if(Array.isArray(P)&&P.length==0){const Y=F.length;F.splice(0,Y)}else{F.forEach(Q=>{Q!==K&&X?.value.toggleRowExpansion(Q,!1)});const Y=F.length;F.splice(0,Y,K)}},_=r.attrs.id??o.prop??r.attrs.name,A=_r(),z=t.ref([]);let U=[];const H=()=>({srcColumnPropertyList:U.map(P=>({...P})),columnPropertyList:z.value}),G=K=>{z.value=[...K],ee()},Z=async()=>{const K=await A.load(_);K&&(z.value=K)},ee=()=>{A.save(_,z.value)},M=()=>{A.remove(_)};Z();const J=K=>K?K.type?K.type:K.label?K.prop:"":"",te=t.computed(()=>{if(typeof r.slots.default=="function"){const K=r.slots.default(),P=new Map;if(U=[],K.forEach(Y=>{const Q=Y;if(!Q.props)return;const ue=J(Q.props);P.set(ue,Y);const fe={label:"",prop:""};Object.assign(fe,Q.props),U.push(fe)}),z.value.length===U.length){const Y=[];for(let Q of z.value){const ue=J(Q),fe=P.get(ue);if(!fe)return K;if(Q.visible===!1)continue;const Ot=fe;Ot.props.fixed=Q.fixed,Y.push(Ot)}return Y}return K}return[]}),$=t.shallowRef(new Map),j=({column:K,rowIndex:P})=>{const Y=`${P}_${K.property}`;return $.value.get(Y)??""},q=K=>typeof K=="function"?P=>{const Y=[];let Q=j(P);return Q&&Y.push(Q),Q=K(P),Q&&Y.push(Q),Y.length===0?"":Y.join(" ")}:j,W=(K,P,Y)=>{const Q=`${K}_${P}`;Y?$.value.set(Q,Y):$.value.delete(Q),t.triggerRef($)},X=t.ref();return me({clearSelection:()=>X?.value.clearSelection(),getSelectionRows:()=>X?.value.getSelectionRows(),toggleRowSelection:(K,P)=>{X?.value.toggleRowSelection(K,P)},toggleRowSelectionByProp:(K,P)=>{if(!f.value)return;const Y=Tn(f.value,K);Y.length!==0&&Y.forEach(Q=>{X?.value.toggleRowSelection(Q,P)})},toggleAllSelection:()=>{X?.value.toggleAllSelection()},toggleRowExpansion:(K,P)=>{X?.value.toggleRowExpansion(K,P)},toggleRowExpansionByProp:(K,P)=>{if(!f.value)return;const Y=Tn(f.value,K);Y.length!==0&&Y.forEach(Q=>{X?.value.toggleRowExpansion(Q,P)})},setCurrentRow:K=>{X?.value.setCurrentRow(K)},setCurrentRowByProp:K=>{if(!f.value)return;const P=Tn(f.value,K);P.length!==0&&X?.value.setCurrentRow(P[0])},getCurrentRow:()=>S.value,clearSort:()=>{X?.value.clearSort()},clearFilter:K=>{X?.value.clearFilter(K)},doLayout:()=>{X?.value.doLayout()},sort:(K,P)=>{X?.value.sort(K,P)},scrollTo:(K,P)=>{X?.value.scrollTo(K,P)},setScrollTop:K=>{X?.value.setScrollTop(K)},setScrollLeft:K=>{X?.value.setScrollLeft(K)},loadData:E,clearData:w,getData(){return f.value},getTotalSize(){return v.value},getPageIndex(){return g.value},getPageSize(){return h.value},getColumnSetting:H,setColumnSetting:G,removeColumnSetting:M,setCellClassName:W}),()=>{const P={...je(r.attrs),onCurrentChange:k,onRowClick:D,onExpandChange:N,data:f.value,ref:X,class:u.value,"cell-class-name":q(o.cellClassName)},Y={};r.slots.default&&(Y.default=()=>te.value),r.slots.append&&(Y.append=r.slots.append),r.slots.empty&&(Y.empty=r.slots.empty);const Q=[],ue=t.h(x.ElTable,P,Y);Q.push(ue);let fe=null;if(typeof r.slots.pagination=="function")fe=r.slots.pagination();else if(o.showPagination){const ht={class:m.value,total:v.value,pageSize:h.value,"onUpdate:pageSize":p,pageSizes:o.pageSizes,currentPage:g.value,"onUpdate:currentPage":T,hideOnSinglePage:o.hideOnSinglePage,layout:o.paginationLayout,small:!0};fe=t.h(x.ElPagination,ht)}if(o.showSetting){const ht=[];fe&&ht.push(fe);const Yr=t.h(x.ElIcon,{class:c.value},{default:()=>t.h(ve.Setting)}),Ur=Pt(o,kn),Gr=t.h(dn,{...Ur,tableRef:{getColumnSetting:H,setColumnSetting:G,removeColumnSetting:M}},{default:()=>Yr});ht.push(Gr);const Xr=t.h("div",{class:d.value},ht);Q.push(Xr)}else fe&&Q.push(fe);const Ot={default:()=>Q},mt={...Se(o,kl,$l,kn),prop:`${o.prop}_item`};return mt.contentClass=`${s}__wrap`,mt.errorMarkClass="is-table-error",R.value&&L()&&(mt["appear-listen"]=!0,mt.onAppear=O),t.h(l,mt,Ot)}}}}const{componentName:zf,create:jf,scope:_f}=oe("table-item"),xo=jf(qf(zf,_f,pe));function ft(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Vt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Hf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Kf=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=Be(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(l,o))}};function Wf(){const e=t.getCurrentInstance();return new Kf(e.proxy)}function Hr(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=Vt(e,n),i=Vt(e,l);return a===i}function Yf(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=ft(e,a)===n;else if(l==="item")i=Hr(e,a,n);else{let s=Vt(e,a);s==null&&(s=ft(e,a)),i=s===n}if(i){r=a;break}}return r}function Uf(e){return{text:e,value:e}}function Gf(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}const Dl={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 Xf(e,n,l){return{inheritAttrs:!0,props:{...he,...xe,...Dl},emits:["change","update:modelValue"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),u=t.ref(null),c=t.ref(null),d=(R,I,E,w=!0)=>{const C=Yf(o,R,I,E);if(C===null){if(c.value===null)return;c.value=null,u.value=null,w&&(s("update:modelValue",null),s("change",null));return}if(!Hr(o,C,c.value)){u.value=R;const S=t.toRaw(C);c.value=S;let k=null;o.valueType==="text"?k=ft(o,S):o.valueType==="item"?k=S:k=Vt(o,S),w&&(s("update:modelValue",k),s("change",k))}},m=t.ref([]),g=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",Ye.Near,R=>le(R)),T=Wf(),h=async(R,I)=>{if(R){const E=await T.load("radio",R,I);if(E.length>0)if(typeof E[0]=="string"){let O=E.map(S=>Uf(S));m.value=O}else m.value=E}};t.watch([()=>o.source,()=>o.params],async([R,I])=>{h(R,I)},{immediate:!g.value});let p=!1;const b=()=>{p||(p=!0,h(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([R,I])=>{d(I,o.valueType,R,!1)});const y=e,v=t.computed(()=>({[y]:!0,[`is-${o.direction}`]:!0})),f=R=>{d(R,"value",m.value,!0)};let B=ae(o,"hintText"),V=ae(o,"hintVisible");const L=(R,I)=>{const E=[];return R.forEach((w,C)=>{const O=Vt(o,w),S=ft(o,w);let k=Hf(o,w);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=Gf(o,w,C)??{},F=`${O}_${C}`,N={...D,key:F,label:O,size:o.size,border:le(o.border)};k&&(N.disabled=k),o.itemType==="button"?E.push(t.h(x.ElRadioButton,N,{default:()=>[S]})):typeof I=="function"?E.push(t.h(x.ElRadio,N,{default:()=>I(w)})):E.push(t.h(x.ElRadio,N,{default:()=>[S]}))}),E};return()=>{const I={...je(r.attrs),class:v.value,disabled:a.value||i.value,modelValue:u.value,"text-color":o.textColor,fill:o.fill,onChange:f},E=[],w={};r.slots.options?w.default=r.slots.options:w.default=()=>L(m.value,r.slots.text);const C=t.h(x.ElRadioGroup,I,w);E.push(C);const O={default:()=>E};r.slots.default&&(O.label=r.slots.default),r.slots.fixedTip&&(O.fixedTip=r.slots.fixedTip);const k={...Se(o,Dl),hintText:B.value,hintVisible:V.value,prop:`${o.prop??r.attrs.name}_item`};return g.value&&(k["appear-listen"]=!0,k.onAppear=b),t.h(l,k,O)}}}}const{componentName:Zf,create:Jf,scope:Qf}=oe("radio-item"),Co=Jf(Xf(Zf,Qf,pe));function dt(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 ed(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}class td{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=Be(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(l,o))}}function nd(){const e=t.getCurrentInstance();return new td(e.proxy)}function Kr(e,n,l){if(n===l)return!0;if(n===null||l===null)return!1;const o=dt(e,n),r=dt(e,l);if(o!==r)return!1;const a=it(e,n),i=it(e,l);return a===i}function od(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=dt(e,i)===a;else if(l==="item")s=Kr(e,i,a);else{let u=it(e,i);u==null&&(u=dt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function ld(e){return{text:e,value:e}}function rd(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}const El={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 ad(e,n,l){return{inheritAttrs:!0,props:{...he,...xe,...El},emits:["change","update:modelValue"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),u=t.ref([]),c=t.ref([]),d=(R,I,E,w=!0)=>{const C=od(o,R,I,E);if(C===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],w&&(s("update:modelValue",[]),s("change",[]));return}let O=!0;if(C.length!==c.value.length)O=!1;else for(let S=0;S<C.length;S++){const k=C[S],D=c.value[S];if(!Kr(o,k,D)){O=!1;break}}if(!O){c.value=C;let S=[],k=[];C.forEach(F=>{S.push(it(o,F)),o.valueType==="text"?k.push(dt(o,F)):o.valueType==="item"?k.push(F):k.push(it(o,F))}),u.value=S;const D=t.toRaw(k);w&&(s("update:modelValue",D),s("change",D))}},m=t.ref([]),g=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",Ye.Near,R=>le(R)),T=nd(),h=async(R,I)=>{if(R){const E=await T.load("checkbox",R,I);if(E.length>0)if(typeof E[0]=="string"){let O=E.map(S=>ld(S));m.value=O}else m.value=E}};t.watch([()=>o.source,()=>o.params],async([R,I])=>{h(R,I)},{immediate:!g.value});let p=!1;const b=()=>{p||(p=!0,h(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([R,I])=>{d(I,o.valueType,R,!1)});const y=e,v=t.computed(()=>({[y]:!0,[`is-${o.direction}`]:!0})),f=R=>{d(R,"value",m.value,!0)};let B=ae(o,"hintText"),V=ae(o,"hintVisible");const L=(R,I)=>{const E=[];return R.forEach((w,C)=>{const O=it(o,w),S=dt(o,w);let k=ed(o,w);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=rd(o,w,C)??{},F=`${O}_${C}`,N={...D,key:F,class:o.itemClass,label:O,size:o.size,border:le(o.border)};k&&(N.disabled=k),o.itemType==="button"?E.push(t.h(x.ElCheckboxButton,N,{default:()=>[S]})):typeof I=="function"?E.push(t.h(x.ElCheckbox,N,{default:()=>I(w)})):E.push(t.h(x.ElCheckbox,N,{default:()=>[S]}))}),E};return()=>{const I={...je(r.attrs),class:v.value,disabled:a.value||i.value,modelValue:u.value,"text-color":o.textColor,fill:o.fill,max:ie(o.max),min:ie(o.min),onChange:f},E=[],w={};r.slots.options?w.default=r.slots.options:w.default=()=>L(m.value,r.slots.text);const C=t.h(x.ElCheckboxGroup,I,w);E.push(C);const O={default:()=>E};r.slots.default&&(O.label=r.slots.default),r.slots.fixedTip&&(O.fixedTip=r.slots.fixedTip);const k={...Se(o,El),hintText:B.value,hintVisible:V.value,prop:`${o.prop??r.attrs.name}_item`};return g.value&&(k["appear-listen"]=!0,k.onAppear=b),t.h(l,k,O)}}}}const{componentName:id,create:sd,scope:ud}=oe("checkbox-item"),To=sd(ad(id,ud,pe)),Nl={modelValue:{type:[Number,String],required:!1}};function cd(e,n,l){return{props:{...he,...xe,...Nl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),u=ae(o,"modelValue",p=>ie(p)),c=e,d=t.computed(()=>({[c]:!0})),m=p=>{s("update:modelValue",p),s("change",p)};let g=ae(o,"hintText"),T=t.ref(!1);const h=t.ref();return me({}),()=>{const b={...je(r.attrs),ref:h,class:d.value,readonly:i.value||a.value,modelValue:u.value,onChange:m},y={},v=[],f=t.h(x.ElRate,b,y);v.push(f);const B={default:()=>v};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const L={...Se(o,Nl),hintText:g.value,hintVisible:T.value,prop:`${o.prop}_item`};return t.h(l,L,B)}}}}const{componentName:fd,create:dd,scope:md}=oe("rate-item"),ko=dd(cd(fd,md,pe)),Vl={modelValue:{type:[Boolean,String,Number],required:!1}};function hd(e,n,l){return{props:{...he,...xe,...Vl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),{emitEvent:s}=be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),u=ae(o,"modelValue"),c=e,d=t.computed(()=>({[c]:!0})),m=p=>{s("update:modelValue",p),s("change",p)};let g=ae(o,"hintText"),T=ae(o,"hintVisible");const h=t.ref();return me({}),()=>{const b={...je(r.attrs),ref:h,class:d.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:m},y={},v=[],f=t.h(x.ElSwitch,b,y);v.push(f);const B={default:()=>v};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const L={...Se(o,Vl),hintText:g.value,hintVisible:T.value,prop:`${o.prop}_item`};return t.h(l,L,B)}}}}const{componentName:pd,create:gd,scope:yd}=oe("switch-item"),$o=gd(hd(pd,yd,pe)),Pl={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function vd(e,n,l){return{props:{...he,...xe,...Pl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,r){const a=$e(t.computed(()=>o.disabled)),i=ke(t.computed(()=>o.readonly)),s=t.ref(!1),{emitEvent:u}=be({componentName:e,get validate(){return!a.value&&!i.value}},o.prop??r.attrs.name),c=ae(o,"modelValue"),d=e,m=t.computed(()=>({[d]:!0})),g=V=>{u("update:modelValue",V),u("change",V)};let T=ae(o,"hintText"),h=t.ref(!1);const p=V=>{let R=V.target.value;s.value=!0,ge(T.value)||(h.value=!0),u("focus",R,V)},b=V=>{setTimeout(()=>{h.value&&(h.value=!1),s.value=!1},0);let R=V.target.value;o.maxLength&&R.length>Number(o.maxLength)&&(R=R.slice(0,Number(o.maxLength))),v.value||u("blur",R,V)},y=()=>{u("clear","")},v=t.ref(!1),f=V=>{v.value=V,u("visible-change",V),V||u("selected")},B=t.ref();return me({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const L={...je(r.attrs),ref:B,class:m.value,disabled:a.value||i.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:y,onFocus:p,onBlur:b,onVisibleChange:f},R={};r.slots.option&&(R.default=r.slots.option);const I=[],E=t.h(x.ElTreeSelect,L,R);I.push(E);const w={default:()=>I};r.slots.default&&(w.label=r.slots.default),r.slots.fixedTip&&(w.fixedTip=r.slots.fixedTip);const O={...Se(o,Pl),hintText:T.value,hintVisible:h.value,prop:`${o.prop}_item`};return t.h(l,O,w)}}}}const{componentName:bd,create:wd,scope:Sd}=oe("tree-select-item"),Do=wd(vd(bd,Sd,pe)),xd={},Cd={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},Td=t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),kd=[Td];function $d(e,n){return t.openBlock(),t.createElementBlock("svg",Cd,kd)}const Dd=ce(xd,[["render",$d]]),{componentName:Ch,create:Ed,scope:Th}=oe("group-setting"),Nd={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:"到底部"}},Vd=Ed({components:{FoxPopover:x.ElPopover,FoxCheckbox:x.ElCheckbox,FoxCheckboxGroup:x.ElCheckboxGroup,FoxButton:x.ElButton,FoxIcon:x.ElIcon,DragIcon:Dd,Download:ve.Download,RefreshLeft:ve.RefreshLeft},props:{...Nd},emits:["change"],setup(e,{emit:n,attrs:l,expose:o}){let r=null;const a=t.ref([]),i=_r(),s=H=>H.length>1,u=()=>{const H=[],G=[...a.value];a.value=G.map((ee,M)=>(ee.visible!==!1&&H.push(ee.prop),{...ee,sortIndex:M})),a.value.length===H.length?p.value=!0:H.length>0&&(b.value=!0),f.value=H},c=H=>{let G=null;if(typeof H=="string")G=document.querySelectorAll(`.fox-group[prop="${H}"] > div > .fox-item[prop]`);else if(H&&typeof H=="object"){const ee=H.$el??H;typeof ee.querySelectorAll=="function"&&(G=ee.querySelectorAll(".fox-item[prop]"))}if(!G)return[];const Z=[];return G.forEach(ee=>{const M=ee.querySelector(".label--string");let J="";M&&(J=M.textContent??"");const te=ee.getAttribute("prop")??"",j=window.getComputedStyle(ee,null).getPropertyValue("display");Z.push({label:J,prop:te,sortIndex:0,visible:j!=="none"})}),Z},d=()=>{if(!r){const H=c(e.groupRef??e.groupProp);if(H.length===0)return!1;r=H}return!0},m=async(H=!1)=>{const G=await i.load(e.groupProp),Z=ee=>{if(!ee||!r)return;const M=r.map(J=>({...J}));Array.isArray(G)&&G.forEach(J=>{M.some(te=>{if(te.prop===J.prop){const $=te.label;return Object.assign(te,J),te.label=$,!0}return!1})}),a.value=M.sort((J,te)=>J.sortIndex-te.sortIndex),u(),H&&T(!1)};r?Z(!0):Jt(d,e.initDelay,5,50,!1,Z)},g=()=>{const H=r??[];a.value=H.map(G=>({...G})),u(),T()},T=(H=!0)=>{H&&i.save(e.groupProp,a.value);const G=a.value.map(Z=>({...Z}));n("change",G)},h=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),p=t.ref(!1),b=t.ref(!1),y=H=>{const G=[];a.value.forEach(ee=>{H&&G.push(ee.prop),ee.visible=H}),p.value=!1,b.value=!1,a.value.length===G.length?p.value=!0:G.length>0&&(b.value=!0),f.value=G,T()},v=()=>{g()},f=t.ref([]),B=H=>{a.value.forEach(Z=>{const ee=H.indexOf(Z.prop)!==-1;Z.visible=ee}),p.value=!1,b.value=!1;const G=a.value.length;H.length===G?p.value=!0:H.length>0&&(b.value=!0),T()},V=()=>{m()};t.onMounted(()=>{m(!0)});const L={currentRow:null,index:null},R=H=>H?H.dataset&&H.dataset.role==="row"?H:H.tagName.toLowerCase()!=="body"?(H=H.parentElement,R(H)):null:null,I=H=>{const G=H.currentTarget;G&&G.dataset&&(L.index=G.dataset.index)},E=H=>{L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null),L.index=null},w=H=>{const G=H.currentTarget;H.relatedTarget;const Z=R(G);Z&&(H.preventDefault(),L.currentRow&&L.currentRow!==Z&&L.currentRow.classList.remove("is-dragover"),Z.classList.add("is-dragover"),L.currentRow=Z)},C=H=>{H.preventDefault(),L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null)},O=H=>{const G=H.currentTarget,Z=R(G);if(!Z)return;H.preventDefault();const ee=Number(L.index),M=Number(Z.dataset.index);if(ee!==M){if(ee<M){const J=a.value[ee];a.value.splice(ee,1),a.value.splice(M,0,J)}else{const J=a.value[ee];a.value.splice(ee,1),a.value.splice(M+1,0,J)}u(),T()}},S=H=>{const G=a.value[H];a.value.splice(H,1),a.value.splice(0,0,G),u(),T()},k=H=>{const G=a.value[H];a.value.splice(H,1),a.value.push(G),u(),T()};o({refresh:()=>{r=null,m(!1)}});const D=new Map;let F=null;function N(H){const G=document.createRange();return G.setStart(H,0),G.setEnd(H,H.childNodes.length),G.getBoundingClientRect().width}return{attrs:l,itemPropertyList:a,isDraggble:s,isCheckAll:p,isIndeterminate:b,handleCheckAllChange:y,handleReset:v,checkedValue:f,handleCheckChange:B,onShow:V,onDragStart:I,onDragEnd:E,onDragOver:w,onDragLeave:C,onDrop:O,checkboxLabelStyle:h,toTop:S,toBottom:k,onMouseOverForOverflowText:(H,G,Z)=>{const ee=H.currentTarget;if(ee){const M=Math.floor(ee.offsetWidth);if(Math.floor(N(ee))>M){let te=D.get(G);if(te){if(te===F)return;Te.hide(te)}te=Te.show(ee,Z,{type:"text",placement:"top",closeOnClick:!1}),D.set(G,te),F=te}}},onMouseLeaveForOverflowText:(H,G)=>{const Z=D.get(G);Z&&(Te.hide(Z),Z===F&&(F=null))},onMouseOverForTip:(H,G)=>{const Z=H.currentTarget;Z&&(F&&Te.hide(F),F=Te.show(Z,G,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:H=>{F&&(Te.hide(F),F=null)}}}}),Pd={class:"fox-group-setting"},Id={class:"fox-group-setting__header"},Od={class:"fox-group-setting__body"},Bd={class:"fox-group-setting__body-list","data-role":"container"},Ad=["data-index","draggable"],Fd=["onMouseover","onMouseleave"],Rd={class:"tools-item"};function Md(e,n,l,o,r,a){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),u=t.resolveComponent("DragIcon"),c=t.resolveComponent("Download"),d=t.resolveComponent("FoxIcon"),m=t.resolveComponent("FoxCheckboxGroup"),g=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(g,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",Pd,[t.createElementVNode("div",Id,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=T=>e.isCheckAll=T),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",Od,[t.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=T=>e.checkedValue=T),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",Bd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,T=>(t.openBlock(),t.createElementBlock("div",{key:T.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":T.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[6]||(n[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[7]||(n[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[8]||(n[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[9]||(n[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(u,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:T.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,T.prop,T.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,T.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(T.label),45,Fd)]),_:2},1032,["label"]),t.createElementVNode("div",Rd,[t.createVNode(d,{onClick:h=>e.toTop(T.sortIndex),onMouseover:n[1]||(n[1]=h=>e.onMouseOverForTip(h,e.toTopText)),onMouseleave:n[2]||(n[2]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:h=>e.toBottom(T.sortIndex),onMouseover:n[3]||(n[3]=h=>e.onMouseOverForTip(h,e.toBottomText)),onMouseleave:n[4]||(n[4]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,Ad))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Eo=ce(Vd,[["render",Md]]),Ld=Symbol.for("InnerPageScopeKey"),qd=Symbol.for("PageWrapperKey");function zd(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(Ld,!0);const r={};t.provide(qd,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=t.ref(!0),s=u=>{i.value=u};return()=>{const c={...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 m=o.slots.default();d.default=()=>m}return t.h(x.ElDialog,c,d)}}}}const{componentName:kh,create:jd,scope:$h}=oe("dialog-item"),No=jd(zd());function _d(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),u=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}),c=t.computed(()=>l.color?{color:l.color}:null);return()=>{let d=null;if(o.mark)d=o.mark()[0];else{const p={class:i.value,style:s.value};d=t.h(l.icon??"div",p)}const m={class:u.value,style:c.value},g=o.default?o.default():[],T=t.h("div",m,g),h={class:a.value};return l.textPosition==="right"?t.h("div",h,[d,T]):t.h("div",h,[T,d])}}}}const{componentName:Hd,create:Kd,scope:Dh}=oe("indicator"),Vo=Kd(_d(Hd));function Wd(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 Yd={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 Ud(e,n){return{props:{...Yd},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(g=>{d[g]=!0}),l.type&&(d[`${e}--${l.type}`]=!0),l.size&&(d[`${e}--${l.size}`]=!0),d}),s=d=>{if(d&&le(l.showOverflowTooltip)){const m=d.clientWidth;Wd(d,g=>{r.value=g<=m})}};let u=null;t.onMounted(()=>{if(!le(l.showOverflowTooltip))return;const d=a.value;s(d),d&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(d)}),u.observe(d))}),t.onUnmounted(()=>{u?.disconnect()});const c=(d,m)=>{let g=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const T=l.highlightFilter;if(d.indexOf(T)!==-1){const p=d.replace(new RegExp(T,"g"),`<span>${T}</span>`);m.innerHTML=p,m.class["is-highlight"]=!0,g=t.h(l.tag,m)}}else if(typeof l.highlightFilter=="function"){const T=l.highlightFilter(d);T&&(m.innerHTML=T,m.class["is-highlight"]=!0,g=t.h(l.tag,m))}return g};return()=>{const d={},m={...o.attrs,class:{...i.value},ref:a};let g=null;if(le(l.numberFormat)&&typeof o.slots.default=="function"){const b=o.slots.default();if(Array.isArray(b)&&b.length===1){const y=b[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const v=ie(l.digits),f=ie(l.decimalLength),B=le(l.autoPadding);let V=`${b[0].children}`,L=V.split("").reverse().join("");L=Yt(L,f,B,v,l.separator),V=L.split("").reverse().join(""),l.highlightFilter!==void 0&&(g=c(V,m)),g||(m.innerHTML=V,g=t.h(l.tag,m))}}}else{if(l.highlightFilter!==void 0&&typeof o.slots.default=="function"){const b=o.slots.default();if(Array.isArray(b)&&b.length===1){const y=b[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const v=`${b[0].children}`;g=c(v,m),g||(m.innerHTML=v,g=t.h(l.tag,m))}}}g||(g=t.h(l.tag,m,{default:o.slots.default}))}if(!l.mark&&!l.icon&&!o.slots.mark)d.default=()=>g;else{let b=null;if(l.icon){const f={[`${e}__mark-wrap`]:!0};l.type&&(f[`${e}__mark-wrap--${l.type}`]=!0);const B={},V=l.color;V&&(B.color=V);const L={class:f,style:B};b=t.h("div",L,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 B={},V=l.color;V&&(B.color=V);const L={class:f,style:B};b=t.h("div",L,{default:o.slots.mark})}else{const f={[`${e}__mark`]:!0};l.type&&(f[`${e}__mark--${l.type??"default"}`]=!0);const B={},V=l.color;V&&(B["background-color"]=V);const L={class:f,style:B};b=t.h("div",L)}const y={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}},v=t.h("view",y,[b,g]);d.default=()=>v}const h={disabled:r.value};return d.content=o.slots.default,t.h(x.ElTooltip,h,d)}}}}const{componentName:Gd,create:Xd,scope:Eh}=oe("text"),Po=Xd(Ud(Gd)),{create:Zd}=oe("toast"),Jd=Zd({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,T=>{T&&i()});const u=t.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const T=se(e.iconSize);return t.h(e.icon,{width:T,height:T,color:e.iconColor})},d=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),m=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:a,clickCover:s,renderIcon:c,hasIcon:u,toastBodyClass:d,toastIconWrapperClass:m,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Qd={key:1,class:"fox-toast-title"},em=["innerHTML"];function tm(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",Qd,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,em)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Io=ce(Jd,[["render",tm]]),nm={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:ve.ArrowUp}};function om(e,n,l){return{props:{...nm},emits:["click","update:modelValue"],setup(o,{emit:r}){const a=t.computed(()=>{const m={[`${e}`]:!0};return o.disabled?m[`${e}__disabled`]=!0:m[`${e}__${o.type}`]=!0,m}),i=ae(o,"modelValue"),s=t.computed(()=>i.value?o.expandText??"":o.collapseText??""),u=t.computed(()=>({[`${e}__text`]:!0})),c=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const m=[];if(s.value){const p={class:u.value},b=t.h("span",p,[s.value]);m.push(b)}const g={class:c.value},T=l(o.icon,g);return T&&m.push(T),t.h("div",{class:a.value,onClick:d},m)}}}}const{componentName:lm,create:rm,scope:am}=oe("more-button"),im=(e,n)=>(e=e??ve.ArrowUp,t.h(x.ElIcon,n,{default:()=>[t.h(e)]})),Oo=rm(om(lm,am,im)),{componentName:sm,create:um,scope:Nh}=oe("tour"),cm=um({components:{Close:ve.Close,ElPopover:x.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=sm,o=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=t.ref({}),a=t.computed(()=>`${l}`),i=t.computed(()=>{const{offset:h,maskWidth:p,maskHeight:b}=e,{width:y,height:v,left:f,top:B}=r.value,V=e.steps[o.active].offset??h,L=[f+y/2,B+v/2],R=Number(p||y),I=Number(b||v);return{width:`${R+ +V.left+V.right}px`,height:`${I+V.top+V.bottom}px`,top:`${L[1]-I/2-+V.top}px`,left:`${L[0]-R/2-+V.left}px`}}),s=h=>{h=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,t.nextTick(()=>{o.showPopup=!0,d()}),n("change",o.active)},u=h=>h.popoverWidth??e.width,c=h=>h.location??e.location,d=()=>{const h=document.querySelector(`${e.steps[o.active].target}`),p=Ze(h);r.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},m=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},g=()=>{e.closeOnClickOverlay&&m()},T=(h,p=0)=>{h&&d(),e.steps,o.active=p,o.showTour=h,o.showPopup=h};return t.onMounted(()=>{T(e.modelValue,e.current)}),t.watch(()=>e.modelValue,h=>{T(h)}),{...t.toRefs(o),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:c,close:m,handleClickMask:g}}}),fm={key:0,class:"fox-tour__content"},dm={key:0,class:"fox-tour__content-top"},mm={class:"fox-tour__content-inner"},hm={class:"fox-tour__content-bottom"},pm={class:"fox-tour__content-bottom-init"},gm={class:"fox-tour__content-bottom-operate"},ym={key:1,class:"fox-tour__content fox-tour__content-tile"},vm={class:"fox-tour__content-inner"};function bm(e,n,l,o,r,a){const i=t.resolveComponent("Close"),s=t.resolveComponent("fox-button"),u=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{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",fm,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",dm,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",mm,t.toDisplayString(c.content),1),t.createElementVNode("div",hm,[t.createElementVNode("div",pm,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",gm,[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]=m=>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]=m=>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",ym,[t.createElementVNode("div",vm,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const Bo=ce(cm,[["render",bm]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Ue=e=>e==null,Il=10;function wm(e,n){return e>n&&e>Il?"horizontal":n>e&&n>Il?"vertical":""}function Sm(){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=wm(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 xm(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}class Cm{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=xm()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const l=Sm(),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 Ol(e,n){return new Cm(e,n)}var Bl;const jn=typeof window<"u";jn&&((Bl=window?.navigator)!=null&&Bl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let lt=[];const Al=e=>{const n=e;n.key==="Escape"&<.forEach(l=>l(n))},Tm=e=>{t.onMounted(()=>{lt.length===0&&document.addEventListener("keydown",Al),jn&<.push(e)}),t.onBeforeUnmount(()=>{lt=lt.filter(n=>n!==e),lt.length===0&&jn&&document.removeEventListener("keydown",Al)})},$n="fox-focus-trap.focus-after-trapped",Dn="fox-focus-trap.focus-after-released",km="fox-focus-trap.focusout-prevented",Fl={cancelable:!0,bubbles:!1},$m={cancelable:!0,bubbles:!1},Rl="foxFocusAfterTrapped",Ml="foxFocusAfterReleased",Dm=Symbol("foxFocusTrap"),Ao=t.ref(),mn=t.ref(0),Fo=t.ref(0);let Rt=0;const Wr=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},Em=(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},Ll=(e,n)=>{for(const l of e)if(!Em(l,n))return l},Nm=e=>{const n=Wr(e),l=Ll(n,e),o=Ll(n.reverse(),e);return[l,o]},Vm=e=>e instanceof HTMLInputElement&&"select"in e,Ke=(e,n)=>{if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),Fo.value=window.performance.now(),e!==l&&Vm(e)&&n&&e.select()}};function ql(e,n){const l=[...e],o=e.indexOf(n);return o!==-1&&l.splice(o,1),l}const Pm=()=>{let e=[];return{push:o=>{const r=e[0];r&&o!==r&&r.pause(),e=ql(e,o),e.unshift(o)},remove:o=>{e=ql(e,o),e[0]?.resume?.()}}},Im=(e,n=!1)=>{const l=document.activeElement;for(const o of e)if(Ke(o,n),document.activeElement!==l)return},zl=Pm(),Om=()=>mn.value>Fo.value,Mt=()=>{Ao.value="pointer",mn.value=window.performance.now()},jl=()=>{Ao.value="keyboard",mn.value=window.performance.now()},Bm=()=>(t.onMounted(()=>{Rt===0&&(document.addEventListener("mousedown",Mt),document.addEventListener("touchstart",Mt),document.addEventListener("keydown",jl)),Rt++}),t.onBeforeUnmount(()=>{Rt--,Rt<=0&&(document.removeEventListener("mousedown",Mt),document.removeEventListener("touchstart",Mt),document.removeEventListener("keydown",jl))}),{focusReason:Ao,lastUserFocusTimestamp:mn,lastAutomatedFocusTimestamp:Fo}),Lt=e=>new CustomEvent(km,{...$m,detail:e}),{componentName:Vh,create:Am,scope:Ph}=oe("focus-trap"),Fm={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"}},Rm=Am({props:Fm,emits:[Rl,Ml,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:l}){const o=t.ref();let r,a;const{focusReason:i}=Bm();Tm(p=>{le(e.trapped)&&!s.paused&&l("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=p=>{if(!e.loop&&!le(e.trapped)||s.paused)return;const{key:b,altKey:y,ctrlKey:v,metaKey:f,currentTarget:B,shiftKey:V}=p,{loop:L}=e,R=b==="Tab"&&!y&&!v&&!f,I=document.activeElement;if(R&&I){const E=B,[w,C]=Nm(E);if(w&&C){if(!V&&I===C){const S=Lt({focusReason:i.value});l("focusout-prevented",S),S.defaultPrevented||(p.preventDefault(),L&&Ke(w,!0))}else if(V&&[w,E].includes(I)){const S=Lt({focusReason:i.value});l("focusout-prevented",S),S.defaultPrevented||(p.preventDefault(),L&&Ke(C,!0))}}else if(I===E){const S=Lt({focusReason:i.value});l("focusout-prevented",S),S.defaultPrevented||p.preventDefault()}}};t.provide(Dm,{focusTrapRef:o,onKeydown:u}),t.watch(()=>e.focusTrapEl,p=>{p&&(o.value=p)},{immediate:!0}),t.watch([o],([p],[b])=>{p&&(p.addEventListener("keydown",u),p.addEventListener("focusin",m),p.addEventListener("focusout",g)),b&&(b.removeEventListener("keydown",u),b.removeEventListener("focusin",m),b.removeEventListener("focusout",g))});const c=p=>{l(Rl,p)},d=p=>l(Ml,p),m=p=>{const b=t.unref(o);if(!b)return;const y=p.target,v=p.relatedTarget,f=y&&b.contains(y);le(e.trapped)||v&&b.contains(v)||(r=v),f&&l("focusin",p),!s.paused&&le(e.trapped)&&(f?a=y:Ke(a,!0))},g=p=>{const b=t.unref(o);if(!(s.paused||!b))if(!e.escape&&le(e.trapped)){const y=p.relatedTarget;!Kn(y)&&!b.contains(y)&&setTimeout(()=>{if(!s.paused&&le(e.trapped)){const v=Lt({focusReason:i.value});l("focusout-prevented",v),v.defaultPrevented||Ke(a,!0)}},0)}else{const y=p.target;y&&b.contains(y)||l("focusout",p)}};async function T(){await t.nextTick();const p=t.unref(o);if(p){zl.push(s);const b=p.contains(document.activeElement)?r:document.activeElement;if(r=b,!p.contains(b)){const v=new Event($n,Fl);p.addEventListener($n,c),p.dispatchEvent(v),v.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;Gl(f)||(Ke(f),document.activeElement!==f&&(f="first")),f==="first"&&Im(Wr(p),!0),(document.activeElement===b||f==="container")&&Ke(p)})}}}function h(){const p=t.unref(o);if(p){p.removeEventListener($n,c);const b=new CustomEvent(Dn,{...Fl,detail:{focusReason:i.value}});p.addEventListener(Dn,d),p.dispatchEvent(b),!b.defaultPrevented&&(i.value=="keyboard"||!Om())&&Ke(r??document.body,!0),p.removeEventListener(Dn,c),zl.remove(s)}}return t.onMounted(()=>{le(e.trapped)&&T(),t.watch(()=>e.trapped,p=>{le(p)?T():h()})}),t.onBeforeUnmount(()=>{le(e.trapped)&&h()}),()=>typeof n.default=="function"?n.default({"handle-keydown":u}):null}}),{componentName:Mm,create:Lm,scope:Ih}=oe("floating-window"),qm=Symbol.for("InnerPageScopeKey"),zm=Symbol.for("PageWrapperKey"),jm={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}},_m=Lm({inheritAttrs:!1,components:{FoxIcon:x.ElIcon,FocusTrap:Rm},props:{...jm},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const l=Mm,o=t.ref(e.modelValue),r=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,P=>{o.value=P});const a=t.computed(()=>o.value===!1?!1:!I.value),i=t.ref(e.left),s=t.ref(e.top),u=t.ref(e.right),c=t.ref(e.bottom),d=t.computed(()=>{const P=["fox-floating-window"];return e.customClass&&P.push(e.customClass),P}),m=t.computed(()=>{const P={};return Ue(i.value)?P.left="auto":P.left=De(i.value),Ue(s.value)?P.top="auto":P.top=De(s.value),Ue(u.value)?P.right="auto":P.right=De(u.value),Ue(c.value)?P.bottom="auto":P.bottom=De(c.value),Ue(e.zIndex)||(P["z-index"]=De(e.zIndex)),Ue(L.value)||(P.height=L.value),Ue(R.value)||(P.width=R.value),P}),g=t.computed(()=>e.closeIcon??ve.Close),T=t.computed(()=>e.collapseIcon??ve.ArrowUp),h=t.computed(()=>e.collapseText??""),p=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??ve.ArrowRight:e.expandIcon??ve.ArrowLeft),b=t.computed(()=>e.expandText??e.title??"展开"),y=t.computed(()=>({[`${l}__collapse-text`]:!0})),v=t.computed(()=>({[`${l}__collapse-icon`]:!0,"is-expand":!I.value,"is-collapse":I.value})),f=t.ref(),B=t.ref(null),V=t.ref(null),L=t.computed(()=>De(e.height)||""),R=t.computed(()=>De(e.width)||""),I=t.ref(le(e.collapse)),E=(P,Y=!0)=>{I.value!==P&&(I.value=P,P?G():Z(),n("update:collapse",P),P&&typeof O.onHide=="function"?O.onHide():!P&&typeof O.onShow=="function"&&O.onShow())};t.watch(()=>e.collapse,P=>{E(P)});const w=()=>{C()},C=P=>{P=P??!I.value,E(P)};t.provide(qm,!0);const O={setCollapse:E,setFixedNavVisible:P=>{z.value=P}};t.provide(zm,O);const S=()=>{typeof O.beforeClose=="function"?O.beforeClose(()=>{o.value=!1}):o.value=!1},k=t.ref(null),D=t.computed(()=>!e.fixedNavTeleport),F=t.computed(()=>{const P=["fox-floating-window__fixednav"];return e.expandClass&&P.push(e.expandClass),e.collapsePosition==="left"?P.push("is-left"):e.collapsePosition==="right"&&P.push("is-right"),P}),N=t.ref(""),_=t.computed(()=>{const P={};return N.value?P.top=N.value:e.collapseTop&&(P.top=e.collapseTop),P}),A=t.ref(I.value),z=t.computed({set:P=>{A.value=P},get:()=>o.value===!1?!1:A.value});let U=null;const H=()=>{typeof U=="function"&&(U(),U=null)},G=()=>{k.value&&k.value.classList.add("slide-in"),z.value=!0,U=()=>{k.value&&k.value.classList.remove("slide-in")}},Z=()=>{k.value&&k.value.classList.add("slide-out"),U=()=>{k.value&&k.value.classList.remove("slide-out"),z.value=!1}},ee=()=>{i.value=null,s.value=null,u.value=null,c.value=null},M={x:0,y:0},$=Ol(P=>{if(!f.value)return;const Y=f.value;if(ee(),e.origin==="left-top")i.value=Y.offsetLeft,s.value=Y.offsetTop,M.x=i.value,M.y=s.value;else if(e.origin==="left-bottom"){const Q=document.documentElement.clientHeight||document.body.clientHeight;i.value=Y.offsetLeft,c.value=Q-(Y.offsetTop+Y.offsetHeight),M.x=i.value,M.y=c.value}else if(e.origin==="right-bottom"){const Q=document.documentElement.clientWidth||document.body.clientWidth,ue=document.documentElement.clientHeight||document.body.clientHeight;u.value=Q-(Y.offsetLeft+Y.offsetWidth),c.value=ue-(Y.offsetTop+Y.offsetHeight),M.x=u.value,M.y=c.value}else{const Q=document.documentElement.clientWidth||document.body.clientWidth;u.value=Q-(Y.offsetLeft+Y.offsetWidth),s.value=Y.offsetTop,M.x=u.value,M.y=s.value}},P=>{if(!f.value)return;const Y=f.value;ee(),e.origin==="left-top"?(i.value=M.x+P.x,s.value=M.y+P.y,Y.style.left=De(i.value),Y.style.top=De(s.value)):e.origin==="left-bottom"?(i.value=M.x+P.x,c.value=M.y-P.y,Y.style.left=De(i.value),Y.style.bottom=De(c.value)):e.origin==="right-bottom"?(u.value=M.x-P.x,c.value=M.y-P.y,Y.style.right=De(u.value),Y.style.bottom=De(c.value)):(u.value=M.x-P.x,s.value=M.y+P.y,Y.style.right=De(u.value),Y.style.top=De(s.value))}),j={x:0,y:0},X=Ol(P=>{k.value&&(j.x=k.value.offsetLeft,j.y=k.value.offsetTop)},P=>{if(!k.value)return;const Y=j.y+P.y;N.value=`${Y}px`}),K=()=>{if(f.value){const P=f.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");V.value=P}};return t.onMounted(()=>{if(e.draggable&&f.value){const P=[];B.value&&P.push(B.value),e.footerDraggable&&(K(),V.value&&P.push(V.value)),$.open(P)}e.collapse===!0&&E(e.collapse,!1),k.value&&X.open(k.value)}),t.onBeforeUnmount(()=>{e.draggable&&B.value&&$.close(),k.value&&X.close()}),{classes:d,styles:m,isShow:a,closeIcon:g,onClose:S,dialogRef:f,headerRef:B,onClickToggle:w,collapseIcon:T,collapseText:h,collapseTextClasses:y,collapseIconClasses:v,expandIcon:p,expandText:b,isShowFixedNav:z,fixedNavRef:k,fixedNavClasses:F,fixedNavStyles:_,onAnimationEnd:H,teleportDisabled:r,fixedNavTeleportDisabled:D}}}),Hm={ref:"headerRef",class:"fox-floating-window__header"},Km={class:"fox-floating-window__title"},Wm={class:"fox-floating-window__tools"},Ym={class:"fox-floating-window__body"},Um={class:"fox-floating-window__fixednav__text"};function Gm(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",Hm,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Km,t.toDisplayString(e.title),1),t.createElementVNode("div",Wm,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",Ym,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Um,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Ro=ce(_m,[["render",Gm]]);function Xm(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:o}){return dr(l.name,()=>l.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:Oh,create:Zm,scope:Bh}=oe("domain-provider"),Mo=Zm(Xm()),Jm={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 Qm(e,n){return{inheritAttrs:!1,props:Jm,setup(l,{slots:o}){if(et&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(g,T)=>{if(d===null){a.set(g,{visible:null,callback:T});return}r.has(g)&&d.unobserve(g),r.set(g,{visible:null,callback:T}),d.observe(g)},s=g=>{if(d===null){a.delete(g);return}r.has(g)&&(r.delete(g),d.unobserve(g))};let u=l.initialVisibleObserverSize;li({acquire:()=>{const g=u>0;return u--,g},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:s});let d=null;const m=(g,T,h)=>{d=new IntersectionObserver(p=>{for(let b of p){let y=!1;b.intersectionRatio>0&&(y=!0);const v=r.get(b.target);if(v)try{if(l.loadPolicy==="lazy"&&!y&&v.visible!==null)return;v.visible=y,v.callback(y)}catch(f){console.error(f)}}},{root:g,rootMargin:T,threshold:h}),a.forEach((p,b)=>{r.set(b,p),d?.observe(b)}),a.clear()};t.watch([()=>l.root,()=>l.disabled],([g,T])=>{if(T||!g||d)return;let h=null;typeof g=="string"?h=document.querySelector(g):h=g,h&&m(h,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:Ah,create:eh,scope:Fh}=oe("rolling-provider"),Lo=eh(Qm()),th=[Un,Zn,Jn,Qn,eo,pe,to,no,It,oo,io,co,mo,ho,po,go,yo,vo,bo,wo,So,dn,xo,Co,To,ko,$o,Do,Eo,No,Nt,sn,Vo,Po,Io,Ct,qe,ct,un,cn,Et,Dt,fn,Oo,Bo,$t,Ro,Mo,Lo],nh=new Ba(th,[Ra],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>x.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>x.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>x.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>x.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>x.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>x.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>x.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>x.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>x.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>x.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>x.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>x.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>x.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>x.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>x.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>x.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>x.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>x.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>x.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>x.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>x.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>x.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>x.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>x.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>x.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>x.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>x.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>x.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>x.ElContainer});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>x.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>x.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>x.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>x.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>x.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>x.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>x.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>x.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>x.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>x.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>x.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>x.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>x.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>x.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>x.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>x.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>x.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>x.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>x.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>x.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>x.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>x.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>x.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>x.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>x.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>x.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>x.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>x.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>x.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>x.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>x.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>x.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>x.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>x.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>x.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>x.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>x.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>x.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>x.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>x.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>x.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>x.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>x.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>x.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>x.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>x.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>x.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>x.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>x.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>x.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>x.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>x.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>x.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>x.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>x.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>x.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>x.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>x.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>x.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>x.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>x.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>x.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>x.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>x.ElUpload});exports.AutocompleteItem=bo;exports.Broadcast=Wn;exports.BroadcastKey=ye;exports.CalendarItem=mo;exports.CalendarPicker=cn;exports.CascaderItem=vo;exports.CascaderPicker=fn;exports.CheckboxItem=To;exports.Content=Qn;exports.DataItemsKey=ot;exports.DateItem=co;exports.DatePicker=un;exports.DateUtils=ne;exports.DialogItem=No;exports.Domain=Qt;exports.DomainKey=Ve;exports.DomainProvider=Mo;exports.ExtTabPane=Et;exports.ExtTabs=Dt;exports.FloatingWindow=Ro;exports.FooterBar=Jn;exports.FoxAutocompleteItem=bo;exports.FoxCalendarItem=mo;exports.FoxCalendarPicker=cn;exports.FoxCascaderItem=vo;exports.FoxCascaderPicker=fn;exports.FoxCheckboxItem=To;exports.FoxContent=Qn;exports.FoxDateItem=co;exports.FoxDatePicker=un;exports.FoxDialogItem=No;exports.FoxDomainProvider=Mo;exports.FoxExtTabPane=Et;exports.FoxExtTabs=Dt;exports.FoxFloatingWindow=Ro;exports.FoxFooterBar=Jn;exports.FoxGroup=eo;exports.FoxGroupSetting=Eo;exports.FoxHeaderBar=Zn;exports.FoxHintText=It;exports.FoxIndicator=Vo;exports.FoxInputItem=oo;exports.FoxInputNumberItem=yo;exports.FoxItem=pe;exports.FoxMapping=Nt;exports.FoxMoneyItem=go;exports.FoxMoreButton=Oo;exports.FoxOverlay=Ct;exports.FoxPage=Un;exports.FoxPicker=ct;exports.FoxPopup=qe;exports.FoxPrice=sn;exports.FoxRadioItem=Co;exports.FoxRateItem=ko;exports.FoxRollingProvider=Lo;exports.FoxRowItem=no;exports.FoxSelectItem=io;exports.FoxSlotItem=to;exports.FoxSwitchItem=$o;exports.FoxTableItem=xo;exports.FoxTableMappingColumn=wo;exports.FoxTableRadioColumn=So;exports.FoxTableSetting=dn;exports.FoxText=Po;exports.FoxTimeItem=ho;exports.FoxTimeSelectItem=po;exports.FoxToast=Io;exports.FoxTour=Bo;exports.FoxTreeSelectItem=Do;exports.Foxsticky=$t;exports.Group=eo;exports.GroupSetting=Eo;exports.HeaderBar=Zn;exports.HintText=It;exports.Indicator=Vo;exports.InputItem=oo;exports.InputNumberItem=yo;exports.Item=pe;exports.Mapping=Nt;exports.MoneyItem=go;exports.MoreButton=Oo;exports.Overlay=Ct;exports.Page=Un;exports.Picker=ct;exports.Popup=qe;exports.Price=sn;exports.PriorityPolicy=Ye;exports.RadioItem=Co;exports.RateItem=ko;exports.RollingProvider=Lo;exports.RowItem=no;exports.SelectItem=io;exports.SlotItem=to;exports.SwitchItem=$o;exports.TableItem=xo;exports.TableMappingColumn=wo;exports.TableRadioColumn=So;exports.TableSetting=dn;exports.Text=Po;exports.TimeItem=ho;exports.TimeSelectItem=po;exports.Toast=Io;exports.Tour=Bo;exports.TreeSelectItem=Do;exports.UniqueID=kr;exports.ValidateSchema=cr;exports.ValidateSchemaKey=Re;exports.cancelRaf=Qr;exports.clearNonNumber=fa;exports.clone=An;exports.compareTo=In;exports.createBroadcast=Xt;exports.createValidateSchema=Zt;exports.debounce=wt;exports.debounceRef=Ta;exports.decimalLength=lr;exports.default=nh;exports.defineBroadcast=pa;exports.defineConfigDomain=dr;exports.defineDataItem=hr;exports.defineDomain=Yn;exports.defineItem=be;exports.definePageState=pr;exports.deleteGlobalValidator=ba;exports.disabledProperty=$e;exports.divide=Hn;exports.excludeProps=Se;exports.extend=Je;exports.floatData=ha;exports.getGlobalValidateCheckEvents=ir;exports.getGlobalValidateResetEvents=ur;exports.getPageContentAreaHeight=jt;exports.getPageContentAreaWidth=_t;exports.getPageFooterAreaHeight=xt;exports.getPageHeaderAreaHeight=St;exports.getRootDomain=rt;exports.hasSymbol=Zl;exports.includeProps=Pt;exports.indexOf=da;exports.installRules=mr;exports.integerLength=or;exports.isArray=ta;exports.isArrayLike=Ql;exports.isBrowser=et;exports.isDate=Me;exports.isESModule=aa;exports.isEmptyString=ge;exports.isEqual=Le;exports.isFunction=On;exports.isHidden=Gt;exports.isInnerPage=Da;exports.isMap=na;exports.isNil=Kn;exports.isNumberString=nr;exports.isObject=Ae;exports.isPlainObject=Bn;exports.isPromise=ra;exports.isRegExp=tr;exports.isSet=oa;exports.isString=Gl;exports.isSubPage=Ea;exports.isSymbol=la;exports.isWindow=Jl;exports.lastIndexOf=ma;exports.makeArray=ca;exports.merge=er;exports.multiply=Kl;exports.negate=Wl;exports.nextTick=sa;exports.numberFormat=Yt;exports.objectToString=Xl;exports.once=ka;exports.property=Ne;exports.raf=Ul;exports.readonlyProperty=ke;exports.setGlobalValidateCheckEvents=wa;exports.setGlobalValidateHandler=ya;exports.setGlobalValidateMessages=xa;exports.setGlobalValidateResetEvents=Sa;exports.setGlobalValidator=va;exports.sticky=$t;exports.throttle=fr;exports.toBoolean=le;exports.toNumber=ie;exports.toPadding=Oe;exports.toPx=se;exports.toPxDesc=we;exports.toTypeString=Ut;exports.toValue=ae;exports.tryTimes=Jt;exports.typeOf=st;exports.unNumberFormat=Yl;exports.updatePageState=Fn;exports.useBroadcast=vt;exports.useDomain=ze;exports.useExpose=me;exports.useInnerSize=Xn;exports.usePageState=en;exports.usePosition=Cr;exports.useRect=Ze;exports.useSize=Gn;exports.useTouch=ao;exports.valueLength=Pe;
|
|
5
|
+
*/function Yt(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Ie(e),n=Ie(n),[e,n]=il(Ie(e),Ie(n)),o==1&&(l==1?e=Vn(e):n=Vn(n));let a=ya(e,n);return o?o==2?"-"+Ie(a):e.length<a.length?Ie(a.substring(1)):"-"+Ie(Vn(a)):Ie(a)}function Vn(e){let n="",o=e.length,l=e.split(".")[1],a=l?l.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return ya(n,r)}function Ie(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 il(e,n){let o=e.split("."),l=n.split("."),a=o[0].length,r=l[0].length;return a>r?l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,r=l[1]?l[1].length:0,(a||r)&&(a>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function ya(e,n){[e,n]=il(e,n);let o="",l=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let r=parseInt(e[a])+parseInt(n[a])+l;o=r%10+o,l=Math.floor(r/10)}return l?l.toString()+o:o}var xe=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(xe||{});function Dt(e,n=0,o=xe.HALF_EVEN){if(o===xe.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let a=e.split("."),r=a[0],i=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let s=r.substr(0,r.length-n);return e=s+"."+r.substr(r.length-n)+i,s=Dt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,so(a[1],r,l,o)?(l?"-":"")+In(r):(l?"-":"")+r;if(a[1]){if(a[1].length<n)return(l?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=a[1].substring(0,n);let u=a[1].substring(n);return u&&so(u,i,l,o)&&(i=In(i),i.length>n)?(l?"-":"")+In(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function so(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===xe.DOWN||!o&&l===xe.FLOOR||o&&l===xe.CEILING)return!1;if(l===xe.UP||o&&l===xe.FLOOR||!o&&l===xe.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(l){case xe.HALF_DOWN:return!1;case xe.HALF_UP:return!0;case xe.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function In(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let a=o;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function Kn(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=St(e),n=St(n);let l=0,a=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=l+a;if(e=St(e.replace(".","")),n=St(n.replace(".","")),e.length<n.length){let f=e;e=n,n=f}if(n=="0")return"0";let i=n.length,u=0,s=[],d=i-1,h="";for(let f=0;f<i;f++)s[f]=e.length-1;for(let f=0;f<2*e.length;f++){let y=0;for(let A=n.length-1;A>=d&&A>=0;A--)s[A]>-1&&s[A]<e.length&&(y+=parseInt(e[s[A]--])*parseInt(n[A]));y+=u,u=Math.floor(y/10),h=y%10+h,d--}return h=St(Fr(h,r)),o==1&&(h="-"+h),h}function Fr(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 St(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 Yn(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ie(n.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ie(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Ie(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let h=e.length-d+a;e=Ie(e.substring(0,h)+"."+e.substring(h))}else a==d&&(e=Ie(e.replace(".","")))}let r=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(d+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=d,u="0."+new Array(d).join("0")}for(o=o+2;r<=o;){let d=0;for(;parseInt(s)>=parseInt(n);)s=Yt(s,"-"+n),d++;u+=d,e?(e[0]=="."&&(u+=".",r++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(r||(u+="."),r++,s=s+"0")}return(l==1?"-":"")+Ie(Dt(u,o-2))}function Wn(e,n){return e=e.toString(),n=n.toString(),n=Un(n),Yt(e,n)}function Un(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function uo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),co(e),co(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Wn(e,Kn(n,Dt(Yn(e,n),0,xe.FLOOR)));return o+l}function co(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function fo(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=il(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}class ce{value;static RoundingModes=xe;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=Ie(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=a+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=a+Ie(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=a+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=ce.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ce.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="",u=r;u>0;)u<o?(o=u,u=0):u-=o,i=n.substring(u,u+o)+(u<r-o&&u>=0?l:"")+i;return(a?"-":"")+i+n.substring(r)}getPrettyValue(n,o){return ce.getPrettyValue(this.value,n,o)}static round(n,o=0,l=xe.HALF_EVEN){if(n=ce.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Dt(n,o,l)}round(n=0,o=xe.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(Dt(this.value,n,o))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,xe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,xe.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,xe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,xe.CEILING)}static add(n,o){return n=ce.validate(n),o=ce.validate(o),Yt(n,o)}add(n){return new ce(Yt(this.value,n.getValue()))}static subtract(n,o){return n=ce.validate(n),o=ce.validate(o),Wn(n,o)}subtract(n){return new ce(Wn(this.value,n.getValue()))}static multiply(n,o){return n=ce.validate(n),o=ce.validate(o),Kn(n,o)}multiply(n){return new ce(Kn(this.value,n.getValue()))}static divide(n,o,l){return n=ce.validate(n),o=ce.validate(o),Yn(n,o,l)}divide(n,o){return new ce(Yn(this.value,n.getValue(),o))}static modulus(n,o){return n=ce.validate(n),o=ce.validate(o),uo(n,o)}modulus(n){return new ce(uo(this.value,n.getValue()))}static compareTo(n,o){return n=ce.validate(n),o=ce.validate(o),fo(n,o)}compareTo(n){return fo(this.value,n.getValue())}static negate(n){return n=ce.validate(n),Un(n)}negate(){return new ce(Un(this.value))}}function ba(e,n){return ce.multiply(`${e}`,`${n}`)}function sl(e,n,o=8){return ce.divide(`${e}`,`${n}`,o)}function Gn(e,n){return e=`${e}`,n=`${n}`,ce.compareTo(e,n)}function wa(e){return ce.negate(e)}function Jt(e,n=-1,o=!1,l=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let u=r,s="",d=r.indexOf(".");d!=-1&&(u=r.substring(0,d),s=r.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let f="",y=u.split("").reverse();for(let A=0;A<y.length;A++)f+=y[A]+((A+1)%l==0&&A+1!=y.length?a:"");s.length==0?h=`${i}${f.split("").reverse().join("")}`:h=`${i}${f.split("").reverse().join("")}.${s}`}else s.length==0?h=`${i}${u}`:h=`${i}${u}.${s}`;return h}function xa(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}const ul=rl,Br=Array.isArray,Rr=e=>en(e)==="[object Map]",Mr=e=>en(e)==="[object Set]",Qe=e=>e instanceof Date,Xn=e=>typeof e=="function",Sa=e=>typeof e=="string",Lr=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",Wt=e=>Be(e)&&Xn(e.then)&&Xn(e.catch),Ta=Object.prototype.toString,en=e=>Ta.call(e),Zn=e=>en(e)==="[object Object]",Ca=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function _r(e){return e.__esModule||Ca&&e[Symbol.toStringTag]==="Module"}const qr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ot(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let r=e[o];for(let i in r){let u=n[i],s=r[i];if(u!==s)if(a===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[i]=ot(a,d,s)}else s!==void 0&&(n[i]=s)}}return n}function Qn(e,n,o=!1){if(!o)ot(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let a in n){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Zn(i))continue;r=Qn(r,i,o),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}const l=Object.getOwnPropertySymbols(n);for(let a of l){let r=e[a],i=n[a];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Zn(i))continue;r=Qn(r,i,o),e[a]=r}else{if(typeof i=="function")continue;e[a]=i}}}return e}const Pn=qr?Promise.resolve():null;function zr(e,...n){Pn!==null?n&&n.length>0?Pn.then(()=>{e(n)}):Pn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function de(e){return typeof e=="number"?e:Number(e)}const jr={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Ut(e){let o=Object.prototype.toString.call(e);return e==null?String(e):jr[o]||"object"}function $a(e){return e&&typeof e=="object"&&"setInterval"in e}function tn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function ka(e){let n=!!e&&"length"in e&&e.length,o=Ut(e);return o==="function"||$a(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Da(e,n){let o=+n.length,l=0,a=e.length;for(;l<o;l++)e[a++]=n[l];return e.length=a,e}function Hr(e,n=[]){let o=n;return e!=null&&(ka(Object(e))?Da(o,typeof e=="string"?[e]:e):o.push(e)),o}function Le(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Ut(e),l=Ut(n);if(o!==l)return!1;if(o==="object"){let a=Object.keys(e),r=Object.keys(n);if(a.length!==r.length)return!1;for(let i=0;i<a.length;i++){let u=a[i],s=e[u],d=n[u];if(!Le(s,d))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],i=n[a];if(!Le(r,i))return!1}return!0}return!1}const rt=typeof window<"u";function cl(e){return e==null}function Na(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Ea(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Va(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function Ia(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function ho(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function Kr(e,n=!0,o=!0){n?e=ho(e,".",/\./g):e=e.replace(/\./g,""),o?e=ho(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Yr(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Le(e,o))return!0}):n.indexOf(e)}function Wr(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Le(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function qe(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function pt(e,...n){const o={};return n.forEach(l=>{for(const a in l)o[a]=e[a]}),o}function Ne(e,...n){const o=[];n.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const l={};for(const a in e)o.includes(a)||(l[a]=e[a]);return l}const Ur=(e,n,o)=>{const l=Object.assign({},e),a=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(l[r]=n[a[r]]):n[r]&&(l[r]=n[r])}),l):e},ke=Symbol.for("BroadcastKey");class fl{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,o,l){this.parent=n,this.proxy=o,this.name=l,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,o,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let a=!1;!n.name||n.name==="*"?a=!0:!n.name||n.name==="+"?(a=!1,n.name="*"):Na(n.name)&&this.name&&n.name.test(this.name)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(a=!0);const r=[];if(a){const i=this.callbacks.get(o);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...l]);s!=null&&r.push(s)}const u=this.proxy??{};if(typeof u[o]=="function"){const s=Reflect.apply(u[o],u,[...l]);s!=null&&r.push(s)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},o,...l]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,r,[...u])}),r}emitToChildren(n,o,...l){const a=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},o,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(n,o){this.callbacks.set(n,o)}}function nn(e,n,o,l){const a=new fl(n,e,o);if(l&&typeof l=="object")for(const r in l)a.on(r,l[r]);return a}function Gr(e,n,o){const l=o;if(l[ke])return l[ke];const a=t.inject(ke,null),r=new fl(a,o,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return l[ke]=r,t.provide(ke,r),t.onUnmounted(()=>{r.destroy(),l[ke]=void 0}),r}function kt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ke]??t.inject(ke,null):t.inject(ke,null)}const lt=e=>e.default??e;class Xr{error(n,o){const l=o,a=kt(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const o=n,l=kt(n);l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,l=kt(n);l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,l){Array.isArray(n)||(n=[n]);const a=l,r=kt(l),i=o.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!u&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let Pa=new Xr;function Zr(e){Pa=e}function Qr(e,n){lt(nt).setValidator(e,n)}function Jr(e){lt(nt).deleteValidator(e)}let Oa=["blur","clear"];function ei(e){Oa=e}function Aa(){return Oa}let Fa=["focus","change"];function ti(e){Fa=e}function Ba(){return Fa}function ni(e){lt(nt).messages(e)}function Tt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const a=n.findIndex(r=>r.type===l.type);a!==-1&&n.splice(a,1),n.push(l)})}),n}function Lt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Ye=Symbol("ValidateSchemaKey");class Ra{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,l){this.parent=n,this.descriptor=o,this.proxy=l,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const o=Lt(Tt(this.attrRules,this.rules)),l=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let s={type:r};i!==null&&typeof i=="object"&&Object.assign(s,i),l.push(s);continue}let u=this.getValidator(r);if(u!==null){let s={type:r,validator:u};l.push(s)}}this.attrRules=Lt(l);const a=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...o]);const a=Pa;return a&&typeof a[n]=="function"?Reflect.apply(a[n],a,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,o,l=!1){l?lt(nt).setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?lt(nt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return lt(nt).hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}setRule(n){const o=Tt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Lt(n):this.rules=Lt([n]);const l=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=Tt(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${l}`]:o},r=this.getValue(),i={[`${l}`]:r},u=lt(nt),s=new u(a),d=this.proxy??i;return s.validate(i,{context:d}).then(f=>{if(f.pass)this.success();else{let y="error";Array.isArray(f.errors)&&f.errors.length>0&&(y=f.errors[0].message??y,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(y)}return f}).catch(f=>{const y=f.message??`${f}`;return this.error(y),f})}}return Promise.resolve({pass:!0})}}function ln(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(r){return r[a]}}}return new Ra(n,o,e)}const mo=Symbol.for("EventEmitterKey");class li{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let l=this.register.get(n);if(l&&Array.isArray(l)){let a=l.findIndex(r=>r===o);a!==-1&&l.splice(a,1)}}on(n,o){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(o)}emit(n,...o){const l=this.register.get(n);l&&l.forEach(a=>{try{Reflect.apply(a,null,[n,...o])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function Nt(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function Ma(e,n){let o=0;return function(...l){const a=new Date().getTime();a-o<n||(o=a,Reflect.apply(e,null,[...l]))}}function oi(e,n){const o=Nt((l,a)=>{e=l,a()},n);return t.customRef((l,a)=>({get(){return l(),e},set(r){o(r,a)}}))}function ai(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function on(e,n,o,l=0,a=!0,r){let i=n,u=0;if(a){const d=e();if(u++,d){typeof r=="function"&&r(!0);return}if(u>o){typeof r=="function"&&r(!1);return}}const s=()=>{const d=e();if(u++,d){typeof r=="function"&&r(!0);return}if(u>o){typeof r=="function"&&r(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const Re=Symbol("DomainKey"),ft=Symbol("DataItemsKey");class an{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const l in n){const a=n[l];o.length>0&&o.indexOf(a)!==-1||(this._props[l]=a)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const a=l._props[n];o.push(a)}l=l._parent}return o}}const ri=new an;function ht(){return ri}function We(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Re]??t.inject(Re,null):t.inject(Re,null)}const On=Symbol("OriginalDateKey");function dl(e,n,o=[],l){const a=t.getCurrentInstance(),r=a?.proxy;let i=t.inject(Re,null);i===null&&(i=ht());const u=e||n.prop||n.name,s=new an(u);s.parent=i;const d=m=>{r[On]||y(m),s.set("modelValue",m)},h=()=>s.getForSelf("modelValue")??null,f=()=>r[On]??null,y=m=>{const v={};ot(!0,v,t.toRaw(m)),r[On]=v};t.isReactive(n)||typeof n=="function"?t.watch(n,m=>{s.merge(m,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&y(n.modelValue),r[Re]=s,t.provide(Re,s);let A=null,p=null;if(a!==null){const m=t.inject(ke,null);A=nn(r,m,u,l),s.broadcast=A,r[ke]=A,t.provide(ke,A),r.broadcast=(w,g,...c)=>Reflect.apply(A.emit,A,[w,g,...c]);const v=t.inject(Ye,null);p=ln(r,v,{componentName:""}),s.validateSchema=p,r[Ye]=p,t.provide(Ye,p),r[ft]=new Map,r.validate=(w=!0)=>{const g=[];let c=null;const B={deep:!1};if(w===!0)c={name:"*"};else if(Array.isArray(w)&&w.length>0){const j=w;c={name:_=>_?j.indexOf(_)!==-1:!1}}else if(w!=null&&typeof w=="object"){const j=w;if(B.ignoreHidden=j.ignoreHidden,Array.isArray(j.include)&&j.include.length>0){const _=j.include;c={name:z=>z?_.indexOf(z)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const _=j.exclude;c={name:z=>z?_.indexOf(z)===-1:!1}}else c={name:"*"}}if(c){const j=A?.emitToChildren(c,"validate",B);j&&Reflect.apply([].push,g,j)}return g.length==1?g[0]:g.length>1?Promise.all(g).then(j=>{let _=[];return j.forEach(z=>{z.pass===!1&&Array.isArray(z.errors)&&(_=[..._,...z.errors])}),_.length>0?{pass:!1,errors:_}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(w,g=!0,c=!1)=>{if(c===!0){Reflect.ownKeys(w).forEach(j=>{let _=String(j);const F=qa(s,_,{componentName:"",fieldName:_,pureDataValidate:!0},A,p);r[ft].set(_,F);const O=w[_];O&&F.validateSchema.setRule(O)});return}if(g){const B=Reflect.ownKeys(w),j={name:_=>B.includes(_)};A?.emitToChildren(j,"setNameValidateRules",w,!1)}},r.clearValidate=(w=!0)=>{let g=null;if(w===!0)g={name:"*"};else if(Array.isArray(w)&&w.length>0){const c=w;g={name:B=>B?c.indexOf(B)!==-1:!1}}else if(w!=null&&typeof w=="object"){const c=w;if(Array.isArray(c.include)&&c.include.length>0){const B=c.include;g={name:j=>j?B.indexOf(j)!==-1:!1}}else if(Array.isArray(c.exclude)&&c.exclude.length>0){const B=c.exclude;g={name:j=>j?B.indexOf(j)===-1:!1}}else g={name:"*"}}g&&A?.emitToChildren(g,"clearValidate",!1)},r.resetFields=w=>{const g=h();if(!g)return;const c={};if(ot(!0,c,f()??{}),Array.isArray(w))w.forEach(B=>{g[B]=c[B]});else if(w&&Array.isArray(w.include))(w.include??[]).forEach(j=>{g[j]=c[j]});else if(w&&Array.isArray(w.exclude)){let B=w.exclude??[];Reflect.ownKeys(c).forEach(j=>{B.includes(j)||(g[j]=c[j])})}else Object.assign(g,c);r.clearValidate(w)},r.setModelValue=(w,g)=>{!g||g===u?d(w):A?.emitToChildren({name:g},"setModelValue",w)},r.getModelValue=()=>h()}return t.onUnmounted(()=>{s.destroy(),r[Re]=void 0,r[ft]&&(r[ft].clear(),r[ft]=void 0),A!==null&&(A.destroy(),r[ke]=void 0),p!==null&&(p.destroy(),r[Ye]=void 0)}),s}function La(e,n,o=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(Re,null);r===null&&(r=ht());const i=e||n.prop||n.name,u=new an(i);return u.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,s=>{u.merge(s,o)},{immediate:!0}):u.merge(n,o),a[Re]=u,t.provide(Re,u),t.onUnmounted(()=>{u.destroy(),a[Re]=void 0}),u}function _a(e,n,o){const a=We(e)?.get("rules");if(!a)return;let r=a[o];r&&(Array.isArray(r)||(r=[r]),r.forEach(i=>{n.setRule(i)}))}function Ce(e,n,o){const a=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(ke,null),u=nn(a,i,r,o);a[ke]=u,t.provide(ke,u),a.broadcast=(p,m,...v)=>Reflect.apply(u.emit,u,[p,m,...v]);const s=t.inject(Ye,null);e.fieldName=e.fieldName??r;const d=ln(a,s,e);a[Ye]=d,t.provide(Ye,d),_a(a,d,r),a.validate=(p=null)=>{const m=[];let v=!1,w=!1;if(Array.isArray(p)&&p.indexOf(r)!==-1)w=!0,v=!0;else if(p&&typeof p=="object"){const g=p;g.ignoreHidden===!0&&tn(a.$el)?w=!1:(Array.isArray(g.include)&&g.include.indexOf(r)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(r),w=!0),v=g.deep??!1}else typeof p=="boolean"&&(v=p),w=!0;if(w){const g=d?.validate();m.push(g)}if(v){let g=null;const c={deep:!1};if(p===!0)g={name:"*"};else if(Array.isArray(p)&&p.length>0){const B=p;g={name:j=>j?B.indexOf(j)!==-1:!1}}else if(p!=null&&typeof p=="object"){const B=p;if(c.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const j=B.include;g={name:_=>_?j.indexOf(_)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const j=B.exclude;g={name:_=>_?j.indexOf(_)===-1:!1}}else g={name:"*"}}if(g){const B=u.emitToChildren(g,"validate",c);Reflect.apply([].push,m,B)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(g=>{let c=[];return g.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(c=[...c,...B.errors])}),c.length>0?{pass:!1,errors:c}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=p=>d?.setRule(p),a.setNameValidateRules=(p,m=!1)=>{const v=p[r];if(v&&d?.setRule(v),m){const w={name:g=>Reflect.ownKeys(p).includes(g)};u.emitToChildren(w,"setNameValidateRules",p,!1)}},a.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&d?.clear();let m=null;if(p===!0)m={name:"*"};else if(Array.isArray(p)&&p.length>0){const v=p;m={name:w=>w?v.indexOf(w)!==-1:!1}}else if(p!=null&&typeof p=="object"){const v=p;if(Array.isArray(v.include)&&v.include.length>0){const w=v.include;m={name:g=>g?w.indexOf(g)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const w=v.exclude;m={name:g=>g?w.indexOf(g)===-1:!1}}else m={name:"*"}}m&&u.emitToChildren(m,"clearValidate",!1)};const h=new li(a);a[mo]=h;const f=Nt((p="validate")=>{p==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Aa()).forEach(p=>{h.on(p,m=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ba()).forEach(p=>{h.on(p,m=>{f("reset")})}),t.onUnmounted(()=>{u.destroy(),a[ke]=void 0,d.destroy(),a[Ye]=void 0,h.destroy(),a[mo]=void 0}),{broadcast:u,validateSchema:d,emitEvent:(p,...m)=>{Reflect.apply(h.emit,h,[p,...m])},onEvent:(p,m)=>{Reflect.apply(h.on,h,[m])},offEvent:(p,m)=>{Reflect.apply(h.off,h,[m])}}}function qa(e,n,o,l,a){const r={},i=n??"",u={getValue(){const h=e.getForSelf("modelValue");return h?h[i]:null},isExist(){const h=e.getForSelf("modelValue");return h?Reflect.has(h,i):!1}};o.fieldName=i,o.validateHandler={getValue(h){return u.getValue()}};const s=ln({},a,o);r.validate=(h=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const f=[];let y=!1,A=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)A=!0,y=!0;else if(h&&typeof h=="object"){const p=h;Array.isArray(p.include)&&p.include.indexOf(i)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(i),A=!0,y=p.deep??!1}else typeof h=="boolean"&&(y=h),A=!0;if(A){const p=s?.validate();f.push(p)}if(y){let p=null;const m={deep:!1};if(h===!0)p={name:"*"};else if(Array.isArray(h)&&h.length>0){const v=h;p={name:w=>w?v.indexOf(w)!==-1:!1}}else if(h!=null&&typeof h=="object"){const v=h;if(Array.isArray(v.include)&&v.include.length>0){const w=v.include;p={name:g=>g?w.indexOf(g)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const w=v.exclude;p={name:g=>g?w.indexOf(g)===-1:!1}}else p={name:"*"}}if(p){const v=d.emitToChildren(p,"validate",m);Reflect.apply([].push,f,v)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(p=>{let m=[];return p.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(m=[...m,...v.errors])}),m.length>0?{pass:!1,errors:m}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>s?.setRule(h),r.setNameValidateRules=h=>{const f=h[i];f&&s?.setRule(f)};const d=nn(null,l,i,r);return{broadcast:d,validateSchema:s}}const Pe=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,n)}px`:"";function he(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),r=1;if(rt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(r=Number(i.substring(0,u)))}return a*=r,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*n;const l=Number(e);return isNaN(l)?0:l}const Je="PageStateKey";function je(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=he(e.top)),e.left!==null&&e.left!==void 0&&(n.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=he(e.right))),n}function Jn(e,n,o={},l=!0,a=-1,r=-1,i=0,u=0){if(e.headerHeight=he(o.headerHeight??n.headerHeight??-1),e.headerPadding=je(o.headerPadding??n.headerPadding),e.footerHeight=he(o.footerHeight??n.footerHeight??-1),e.footerPadding=je(o.footerPadding??n.footerPadding),e.contentPadding=je(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=he(s,r):e.height=he(r)-he(i,r)-he(u,r),e.width=he(o.width??n.width??0,a)}}function za(e,n={}){const o={top:null,left:null,bottom:null,right:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(l.safeAreaTop=he(a.top),l.safeAreaBottom=he(a.bottom),l.safeAreaLeft=he(a.left),l.safeAreaRight=he(a.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Jn(l,r,n,!0,i,u,s,d);const h=t.reactive(l),f=e.getForParent(Je);f&&(l.height=Gt(e,f),l.width=Xt(e,f),t.watch([()=>Gt(e,f),()=>Xt(e,f)],([A,p])=>{h.height=A,h.width=p}));const y=!f;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([A,p,m=-1,v=-1,w=0,g=0])=>{Jn(h,p,n,y,m,v,w,g)}),e.set(Je,h),h}function rn(e){return e.get(Je)}function Et(e,n){if(n=n??e.get(Je),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Vt(e,n){if(n=n??e.get(Je),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Gt(e,n){if(n=n??e.get(Je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Et(e,n),l=Vt(e,n);return n.height-o-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Xt(e,n){return n=n??e.get(Je),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function ii(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function si(e){return!!e.getForParent(Je)}var Me=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Me||{});function An(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function De(e,n,o=1,l){const a=We();return a==null?e:o===0?t.computed(()=>{const r=a.getAll(n);for(let u=r.length-1;u>=0;u--){const s=r[u];if(An(s,l))return s}const i=e.value;return An(i,l)?i:null}):t.computed(()=>{const r=e.value;return An(r,l)?r:a?.get(n)})}function Ee(e){return De(e,"readonly",0,function(o){return se(o)})}function Ve(e){return De(e,"disabled",0,function(o){return se(o)})}function fe(e,n="modelValue",o){const l=t.toRef(e,n);let a=l.value;typeof o=="function"&&(a=o(l.value));const r=t.ref(a);return t.watch(l,i=>{if(typeof o=="function"){const u=o(i);u!==r.value&&(r.value=u)}else i!==r.value&&(r.value=i)}),r}const ja=new Map,Zt=new Map;let el=null;function ui(e){el=e}function Ha(e,n,o){if(o){let l=Zt.get(o);l||(l=new Map,Zt.set(o,l)),l.set(e,n)}else ja.set(e,n)}function Oe(e,n,o){!o&&el&&(o=el(e)??void 0);let l=null;if(o){let a=Zt.get(o);a&&(l=a.get(n))}return l||(l=ja.get(n)),l}function ci(e,n){for(let o in e){const l=e[o];Ha(o,l,n)}}function fi(e){Zt.delete(e)}function di(){return{top:0,left:0,bottom:0,right:0}}function hi(e=0,n=0){if(rt){const o=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:l-he(e,l)-he(n,l)};return{rootWidth:o,rootHeight:l,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class mi{packages;installers;_version;get version(){return this._version}constructor(n,o,l){this.packages=n,this.installers=o,this._version=l}install(n,o={}){o?.install!==!1&&(this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=ht();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Ma(()=>{const u={...o},s=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=d,this.initPageLayout(u,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in o)l.indexOf(r)===-1&&a.set(r,o[r])}initPageLayout(n,o){const l=n.headerBarHeight??0,a=n.footerBarHeight??0,r=ot({},di(),n.safeAreaInset),i=hi(l,a),u=ot({},i.pageLayout,n.pageLayout);o=o??ht(),o.set("safeAreaInset",r),o.set("headerBarHeight",l),o.set("footerBarHeight",a),o.set("pageLayout",u),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){ui(n)}setAPI(n,o,l){Ha(n,o,l)}getAPI(n,o,l){return Oe(n,o,l)}batchSetAPI(n,o){ci(n,o)}clearScopeAPI(n){fi(n)}getRootDomain(){return ht()}}const gi=[P.ElAffix,P.ElAlert,P.ElAutocomplete,P.ElAutoResizer,P.ElAvatar,P.ElBacktop,P.ElBadge,P.ElBreadcrumb,P.ElBreadcrumbItem,P.ElButton,P.ElButtonGroup,P.ElCalendar,P.ElCard,P.ElCarousel,P.ElCarouselItem,P.ElCascader,P.ElCascaderPanel,P.ElCheckTag,P.ElCheckbox,P.ElCheckboxButton,P.ElCheckboxGroup,P.ElCol,P.ElCollapse,P.ElCollapseItem,P.ElCollapseTransition,P.ElColorPicker,P.ElConfigProvider,P.ElContainer,P.ElAside,P.ElFooter,P.ElHeader,P.ElMain,P.ElDatePicker,P.ElDescriptions,P.ElDescriptionsItem,P.ElDialog,P.ElDivider,P.ElDrawer,P.ElDropdown,P.ElDropdownItem,P.ElDropdownMenu,P.ElEmpty,P.ElForm,P.ElFormItem,P.ElIcon,P.ElImage,P.ElImageViewer,P.ElInput,P.ElInputNumber,P.ElLink,P.ElMenu,P.ElSubMenu,P.ElMenuItem,P.ElMenuItemGroup,P.ElPageHeader,P.ElPagination,P.ElPopconfirm,P.ElPopover,P.ElPopper,P.ElProgress,P.ElRadio,P.ElRadioButton,P.ElRadioGroup,P.ElRate,P.ElResult,P.ElRow,P.ElScrollbar,P.ElSelect,P.ElOption,P.ElOptionGroup,P.ElSelectV2,P.ElSkeleton,P.ElSkeletonItem,P.ElSlider,P.ElSpace,P.ElSteps,P.ElStep,P.ElSwitch,P.ElTable,P.ElTableColumn,P.ElTableV2,P.ElTabs,P.ElTabPane,P.ElTag,P.ElTimePicker,P.ElTimeSelect,P.ElTimeline,P.ElTimelineItem,P.ElTooltip,P.ElTransfer,P.ElTree,P.ElTreeSelect,P.ElTreeV2,P.ElUpload],pi=[P.ElInfiniteScroll,P.ElLoading,P.ElMessage,P.ElMessageBox,P.ElNotification,P.ElPopoverDirective],vi=e=>{gi.forEach(n=>{let o=n.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,n)):e.use(n)}),pi.forEach(n=>{e.use(n)})};function ae(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},t.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,t.defineComponent(o)}}}function pe(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const ve={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Te={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Ka={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}},Ya={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}},Wa=[];for(const e in Ya)Wa.push(e);const yi=Symbol.for("InnerPageScopeKey"),bi={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},wi=(e,n)=>({inheritAttrs:!0,props:{...ve,...Ka,...bi},setup(o,{slots:l}){const a=dl(o.name,o),r=t.inject(yi,!1);if(a){const h=za(a,o);pe({getPageContentHeight:()=>Gt(a,h),getPageContentWidth:()=>Xt(a,h),getPageHeaderHeight:()=>Et(a,h),getPageFooterHeight:()=>Vt(a,h)}),h&&r&&(h.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),u=t.computed(()=>({})),s=t.getCurrentInstance(),d=(h,f=!1)=>{const y=s?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(h,!0,f)};return t.watch([()=>o.rules,()=>o.pureDataRules],([h,f],[y,A])=>{if(h&&y){const p=t.toRaw(y),m=t.toRaw(h),v=m?Reflect.ownKeys(m):[];(p?Reflect.ownKeys(p):[]).forEach(g=>{v.includes(g)||(m[g]=[])}),d(m)}if(f&&A){const p=t.toRaw(A),m=t.toRaw(f),v=m?Reflect.ownKeys(m):[];(p?Reflect.ownKeys(p):[]).forEach(g=>{v.includes(g)||(m[g]=[])}),d(m,!0)}},{deep:!0}),t.onMounted(()=>{if(o.rules){const h=t.toRaw(o.rules);d(h)}if(o.pureDataRules){const h=t.toRaw(o.pureDataRules);d(h,!0)}}),()=>{const h={class:i.value,style:u.value};return t.h("div",h,[l?.default?.()])}}}),{componentName:xi,create:Si,scope:tp}=ae("page"),hl=Si(wi(xi));function sn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function ml(e){const n=t.unref(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),r=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-a,height:n.clientHeight-r-i}}const Ti=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const i=We(),u=i?rn(i):null;u&&(u.headerMounted=!0);const s=e,d=t.computed(()=>({[s]:!0,[`${s}--border`]:a.border,[`${s}--fixed`]:a.fixed,[`${s}--safe-area-inset-top`]:a.safeAreaInsetTop})),h=t.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${a.align}`]:!0})),f=a.height!==null&&a.height!==void 0?he(a.height):null,y=t.computed(()=>{const T={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const S=je(a.padding??u.headerPadding);return Object.assign(T,S),f&&(u.headerHeight=f),u.headerHeight>0&&(T.height=u.headerHeight),T.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,T.safeAreaTop>0&&(T.top=T.safeAreaTop+(S.top??0),T.height&&T.height>0&&(T.height=T.height+T.safeAreaTop)),T}if(f&&(T.height=f),a.padding){const S=je(a.padding);Object.assign(T,S)}return T}),A=t.ref(null),p=()=>{if(u&&A.value&&!tn(A.value)){if(!l){const T=sn(A.value);u.headerAllHeight=T.height}return u.headerMounted=!0,!0}return!1};let m=null;t.onMounted(()=>{u&&(on(p,50,5,50,!0),window.ResizeObserver&&A.value&&(m=new window.ResizeObserver(()=>{p()}),m.observe(A.value)))}),t.onUnmounted(()=>{u&&(u.headerMounted=!1,m&&(m.disconnect(),m=null))});const v=t.computed(()=>{const T={};return y.value.height!==null&&y.value.height!==void 0&&(T.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(T.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(T.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(T.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(T.paddingBottom=`${y.value.bottom}px`),T}),w=t.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function g(){r.emit("back")}function c(){r.emit("click-title")}function B(){r.emit("click-right")}function j(){r.emit("click-right-text")}const _=()=>{if(!a.leftShow)return null;const T=[];if(r.slots.left)T.push(r.slots.left());else{if(r.slots.leftIcon){const S=t.h("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);T.push(S)}else if(a.leftIcon){const S=t.h("view",{class:"left-icon",onClick:g},[t.h(a.leftIcon)]);T.push(S)}if(a.leftText){const S=t.h("view",{class:"left-text",onClick:g},[a.leftText]);T.push(S)}}return T.length===0?null:t.h("view",{class:"fox-header-bar__left"},T)},z=()=>{if(!a.rightShow)return null;const T=[];if(r.slots.right)T.push(r.slots.right());else{if(a.rightText){const S=t.h("view",{class:"right-text",onClick:j},[a.rightText]);T.push(S)}if(r.slots.rightIcon){const S=t.h("view",{class:"right-icon",onClick:B},[r.slots.rightIcon()]);T.push(S)}else if(a.rightIcon){const S=t.h("view",{class:"right-icon",onClick:B},[t.h(a.rightIcon)]);T.push(S)}}return T.length===0?null:t.h("view",{class:"fox-header-bar__right"},T)},F=()=>{if(!a.titleShow)return null;const T=[],S=r.slots.default?r.slots.default():null;if(S)T.push(S);else{if(a.title){const q=t.h("view",{class:"title-text"},[a.title]);T.push(q)}if(r.slots.titleIcon){const q=t.h("view",{class:"title-icon",onClick:c},[r.slots.titleIcon()]);T.push(q)}else if(a.titleIcon){const q=t.h("view",{class:"title-icon",onClick:c},[t.h(a.titleIcon)]);T.push(q)}}return T.length===0?null:t.h("view",{class:"fox-header-bar__title"},T)},O=()=>{const T=[],S=r.slots.bottom?r.slots.bottom():null;return S&&T.push(S),T.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},T)};return()=>{if(!w.value)return null;const T=[];if(r.slots.all)T.push(r.slots.all());else{const q=[],k=_();k&&q.push(k);const E=F();E&&q.push(E);const $=z();if($&&q.push($),q.length>0){const M=t.h("view",{class:h.value},q);T.push(M)}const H=O();H&&T.push(H)}if(T.length===0)return null;const S={class:d.value,style:v.value,ref:A};return t.h("view",S,T)}}}),{componentName:Ci,create:$i,scope:ki}=ae("header-bar"),gl=$i(Ti(Ci,ki,Se.ArrowLeft));function Di(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,a){const r=We(),i=r?rn(r):null,u=t.computed(()=>{const p=e;return{[p]:!0,[`${p}--${l.align}`]:!0,[`${p}--border`]:l.border,[`${p}--fixed`]:l.fixed,[`${p}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),s=l.height!==null&&l.height!==void 0?he(l.height):null,d=t.computed(()=>{const p={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const m=je(l.padding??i.footerPadding);return Object.assign(p,m),s&&(i.footerHeight=s),i.footerHeight>0&&(p.height=i.footerHeight),p.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,p.safeAreaBottom>0&&(p.bottom=p.safeAreaBottom+(m.bottom??0),p.height&&p.height>0&&(p.height=p.height+p.safeAreaBottom)),p}if(s&&(p.height=s),l.padding){const m=je(l.padding);Object.assign(p,m)}return p}),h=t.ref(null),f=()=>{if(i&&h.value&&!tn(h.value)){if(!o){const p=sn(h.value);i.footerAllHeight=p.height}return i.footerMounted=!0,!0}return!1};let y=null;t.onMounted(()=>{i&&(on(f,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{f()}),y.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const A=t.computed(()=>{const p={};return d.value.height!==null&&d.value.height!==void 0&&(p.height=Pe(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(p.paddingTop=Pe(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(p.paddingLeft=Pe(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(p.paddingRight=Pe(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(p.paddingBottom=Pe(d.value.bottom)),p});return()=>{const p=a.slots.default?a.slots.default():[],m={ref:h,class:u.value,style:A.value};return t.h("view",m,p)}}}}const{componentName:Ni,create:Ei,scope:np}=ae("footer-bar"),pl=Ei(Di(Ni));function Vi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const l=We(),a=t.computed(()=>({[e]:!0})),r=l?rn(l):null,i=t.computed(()=>{const d={};if(l&&r){if(o.padding){const A=je(o.padding);Object.assign(r.contentPadding,A)}const h=Et(l,r),f=Vt(l,r);let y="";if(r.contentHeight?y=`${r.contentHeight}`:y=`${r.height}px`,r.contentPadding,d.height=y,r.contentPadding.top||h>0){const A=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${h+A}px`}if(r.contentPadding.bottom||f>0){const A=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${f+A}px`}return r.contentPadding.left&&(d.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(d.paddingRight=`${r.contentPadding.right}px`),d}if(o.padding){const h=je(o.padding);h.left&&(d.paddingLeft=`${h.left}px`),h.top&&(d.paddingTop=`${h.top}px`),h.right&&(d.paddingRight=`${h.right}px`),h.bottom&&(d.paddingBottom=`${h.bottom}px`)}return d}),u=t.ref(null),s=()=>{if(r&&u.value){const d=ml(u.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}};return t.onMounted(()=>{s()}),l&&r&&t.watch([()=>Et(l),()=>Vt(l)],([])=>{s()}),{contentRef:u,classes:a,styles:i}}}}const{componentName:Ii,create:Pi,scope:lp}=ae("content"),Oi=Pi(Vi(Ii));function Ai(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const $e=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},vl=$e(Oi,[["render",Ai]]),vt="GroupStateKey",Ua=Symbol.for("GroupScopeKey");function un(){return t.inject(Ua,!1)}function cn(e=!0){t.provide(Ua,e)}function Fi(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const a=n[l];cl(a)||(e[l]=a)})}function Bi(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Fi(l,n);const a=t.shallowRef(l),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(vt,r),r}function Fn(e,n,o=-1,l=-1,a=!1,r,i,u){const s=e.get(vt);if(!s)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const h=he(r),f=he(i);u||(u=d.type??"grid");const y=()=>{const A=n===""||n===-1,p=he(n);let m=de(o);const v=he(l);if(!A){let c=(p-(m-1)*v)/m;for(;f!==-1&&c>f;)m++,c=(p-(m-1)*v)/m;for(;h!==-1&&m>1&&c<h;)m--,c=(p-(m-1)*v)/m}let w=!1;const g=s.layout;g.value.width=n,g.value.column!==m&&(g.value.column=m,w=!0),g.value.gutter!==v&&(g.value.gutter=v,w=!0),g.value.type!==u&&(g.value.type=u,w=!0),w&&t.triggerRef(g)};if(a)y();else{const A=++s.passport;setTimeout(()=>{A===s.passport&&y()},50)}}function fn(e,n=!1){let o;return n?o=e.getForParent(vt):o=e.get(vt),o.layout}function dn(e,n=!1){let o;return n?o=e.getForParent(vt):o=e.get(vt),o.order}function go(e,n=1){if(n==="stretch")return-1;const o=de(n);return o===-1?100:100*o/e}function hn(e,n,o=1,l=0,a){const r={};let i=0;a?i=he(a):i=go(n.column,o),i>0&&(r.width=`${i}%`);const u=go(n.column,l);u>0&&(r["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(r["padding-left"]=`${s}px`,r["padding-right"]=`${s}px`),r}function mn(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let a=de(o);if(a===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const r=de(l)%n.column;let i=(e.index+r)%n.column,u=i+a;return u>n.column?(i=0,u=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 Ga=Symbol("RollingStateKey");function Ri(e){t.provide(Ga,e)}function Mi(){return t.inject(Ga,null)}function tl(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(o.getPropertyValue("padding-top")),r=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-a-r}else n=e.offsetHeight;return n}function Li(e){let n=tl(e);if(n<=0){const o=e.cloneNode(!0),l=e.offsetWidth;o.style=`width: ${l}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=tl(o),document.body.removeChild(o)}return n}function _i(e,n,o){if(e<=0)return"1fr";const l=(e-(n-1)*o)/n;return l>0?`${l}px`:"1fr"}const qi={...ve,...Ka,...Ya};function zi(e,n,o){return{props:qi,emits:["update:collapse"],setup(l,a){const r=dl(l.name,l,Wa),i=Bi(r,{type:l.type}),u=un();cn(!0);const s=l.rollingDisplay?Mi():null,d=t.ref(null),h=t.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),f=t.computed(()=>u&&r?fn(r,!0).value:null),y=t.getCurrentInstance(),A=(L,K=!1)=>{const ee=y?.proxy;ee&&typeof ee.setNameValidateRules=="function"&&ee.setNameValidateRules(L,!0,K)};t.watch([()=>l.rules,()=>l.pureDataRules],([L,K],[ee,ne])=>{if(L&&ee){const N=t.toRaw(ee),X=t.toRaw(L),te=X?Reflect.ownKeys(X):[];(N?Reflect.ownKeys(N):[]).forEach(J=>{te.includes(J)||(X[J]=[])}),A(X)}if(K&&ne){const N=t.toRaw(ne),X=t.toRaw(K),te=X?Reflect.ownKeys(X):[];(N?Reflect.ownKeys(N):[]).forEach(J=>{te.includes(J)||(X[J]=[])}),A(X,!0)}},{deep:!0});const p=e,m=t.computed(()=>{const L={};L.height=$.value;const K=u?dn(r,!0):null;if(f.value&&K){if(f.value.type==="grid"){const ee=mn(K,f.value,l.span,l.offset);Object.assign(L,ee)}else if(f.value.type==="flow"){const ee=hn(K,f.value,l.span,l.offset,l.width);Object.assign(L,ee)}}else if(l.width){const ee=Pe(l.width);L.width=ee}return L}),v=t.computed(()=>{const L=i.layout.value.type;return L==="grid"||L==="flow"?{[`${p}--${L}`]:!0,[`${p}--${L}-justify-${l.justify}`]:!0,[`${p}--${L}-align-${l.align}`]:!0,[`${p}--gutter`]:!0}:{[`${p}--${L}`]:!0,[`${p}--gutter`]:!0}}),w=t.computed(()=>{if(i.layout.value.type==="grid"){let K="";if(l.columnWidth)K=`repeat(auto-fill, ${l.columnWidth})`;else{const ee=_i(F.value,i.layout.value.column,i.layout.value.gutter);K=`repeat(${i.layout.value.column}, ${ee})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":K}}}),g=t.toRef(l,"gutter"),c=t.toRef(l,"column"),B=t.computed(()=>u||h.value?!0:se(l.isWrap)),j=[],_=L=>{j.push(L)},z=()=>{let L=j.length;j.splice(0,L)},F=t.ref(-1),O=L=>{const K=ml(L).width;K>0&&K!==F.value&&(F.value=K)};Fn(r,F.value,c.value,g.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([F,c,g],([L,K,ee])=>{i.order.index=0,Fn(r,L,K,ee,!1,l.minItemWidth,l.maxItemWidth,l.type)});const T=t.computed(()=>H.value?l.expandText??"":l.collapseText??""),S=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!H.value,"is-collapse":H.value})),k=t.ref(),E=t.ref(),$=t.computed(()=>M.value||Pe(l.height)||""),H=t.ref(!1),M=t.ref(""),U=t.ref(!1);let Y=-1;const G=(L,K=!0)=>{const ee=k.value;if(ee&&H.value!==L){if(Y=Y===-1?Li(ee):Y,U.value=!0,K)if(ee.style["will-change"]="height",ee.ontransitionend=function(){ee.ontransitionend=null,this.style["will-change"]="auto",L||(M.value="",U.value=!1)},L){let ne=0;l.collapseHeight?ne=l.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(ne=E.value.offsetHeight),M.value=`${Y}px`,t.nextTick(()=>{M.value=`${ne}px`})}else M.value=`${Y}px`;else if(L){let ne=0;l.collapseHeight?ne=l.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(ne=E.value.offsetHeight),M.value=`${ne}px`}else U.value=!1,M.value=`${Y}px`;H.value=L,a.emit("update:collapse",L)}};t.watch(()=>l.collapse,L=>{G(L)});const Q=()=>{b()},b=L=>{L=L??!H.value,G(L)};pe({toggleCollapse:b,doLayout:()=>{j[0]&&(O(j[0]),Fn(r,F.value,c.value,g.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let I=null,R=!0;const C=L=>{if(l.rules){const K=t.toRaw(l.rules);A(K)}if(l.pureDataRules){const K=t.toRaw(l.pureDataRules);A(K,!0)}if(rt&&(L&&G(se(l.collapse),!1),l.autoLayout&&Array.isArray(j)&&j.length>0)){const K=j[0];O(K),window.ResizeObserver&&(I=new window.ResizeObserver(()=>{O(K)}),I.observe(K))}},W=()=>{I?.disconnect(),I=null},Z=!h.value||s?.acquire();Z&&(d.value=h.value?!0:null),t.onMounted(()=>{if(Z&&(C(R),R=!1),h.value&&s){let L=null,K=s.initialHeight;s.observe(k.value,ee=>{if(ee!==d.value)if(ee)d.value=!0,H.value||(M.value=""),L=setTimeout(()=>{L=null,d.value!==!1&&(C(R),R=!1)},100);else{if(L!==null&&clearTimeout(L),d.value=!1,!H.value)if(R)M.value=s.initialHeight;else{let ne=tl(k.value);ne<=0?M.value=K:(M.value=`${ne}px`,K=M.value)}R||W()}})}}),t.onUnmounted(()=>{I?.disconnect(),s&&s.unobserve(k.value)});const D=(L="right")=>{const K=[];if(T.value){const N={class:S.value},X=t.h("span",N,[T.value]);K.push(X)}const ee={class:q.value},ne=o(l.collapseIcon,ee);return ne&&K.push(ne),K.length>0?t.h("div",{class:{[`${p}__header-collapse`]:!0,[`is-${L}`]:!0},onClick:Q},K):null},V=(L,K,ee,ne)=>{const N={...v.value};return K===0&&(N[`${p}__first`]=!0),ee>=ne-1&&(N[`${p}__last`]=!0),t.h("div",{ref:_,key:`${K}`,class:N,style:w.value},L)};return()=>{if(h.value&&d.value!==!0){const N=l.tag||"div";return t.h(N,{ref:k,prop:l.name,class:{[`${p}`]:!0,"is-collapse":U.value},style:m.value},[])}i.order.index=0;const L=[];let K=0;if(a.slots.header){const N={key:`${K++}`,ref:E,class:{[`${p}__header`]:!0,[`${p}__first`]:!0}},X=t.h("div",N,[a.slots.header()]);L.push(X)}else{const N=[],X=l.collapsePosition==="left";if(X&&l.showCollapse){const te=D("left");te&&N.push(te)}if(l.title||a.slots.title){if(l.showMark){const te={class:{[`${p}__header-mark`]:!0}};l.markColor&&(te.style={background:l.markColor});const re=t.h("div",te);N.push(re)}if(a.slots.title){const te=t.h("div",{class:{[`${p}__header-title`]:!0}},[a.slots.title()]);N.push(te)}else if(l.title){const te=t.h("div",{class:{[`${p}__header-title`]:!0}},[l.title]);N.push(te)}}if(a.slots.toolbar&&N.push(a.slots.toolbar()),!X&&l.showCollapse){const te=D("right");te&&N.push(te)}if(N.length>0){const te={key:`${K++}`,ref:E,class:{[`${p}__header`]:!0,[`${p}__first`]:!0}},re=t.h("div",te,N);L.push(re)}}z();const ee=a.slots.default?a.slots.default():[],ne=i.layout.value.type;if(ne==="grid"){const N=V(ee,K++,0,ee.length);L.push(N)}else if(ne==="flow"){const N=V(ee,K++,0,ee.length);L.push(N)}else for(let N=0;N<ee.length;N++){const X=ee[N],te=V([X],K++,N,ee.length);L.push(te)}if(B.value){const N=l.tag||"div";return t.h(N,{ref:k,prop:l.name,class:{[`${p}`]:!0,"is-collapse":U.value},style:m.value},[L])}else return L}}}}const{componentName:ji,create:Hi,scope:Ki}=ae("group"),Yi=(e,n)=>(e=e??Se.ArrowUp,t.h(P.ElIcon,n,{default:()=>[t.h(e)]})),yl=Hi(zi(ji,Ki,Yi));function Wi(e){return e===window}const Ui=/matrix\((.+)\)/,Xa=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Wi(n))return{x:0,y:0};let o=0,l=0,a=n;for(;a!==null;)o+=a.offsetLeft,l+=a.offsetTop,a=a.offsetParent;let r=0,i=0,u=0,s=0;for(a=n;a!==document;){i+=a.scrollTop,r+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const h=Ui.exec(d);if(h){let y=h[1].split(/\s*,\s*/);y.length==6&&(u+=Number(y[4]),s+=Number(y[5]))}}a=a.parentNode}return o-=r,l-=i,o+=u,l+=s,{x:o,y:l}};class Gi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Xi{monitorRegister=new WeakMap;watch(n,o){let l=n.parentNode;const a=document.body.parentNode;for(;l&&l!==a;){let r=this.monitorRegister.get(l);r||(r=new Gi,l.addEventListener("scroll",r.listen),l===document.body&&l.addEventListener("resize",r.listen),this.monitorRegister.set(l,r)),r.add(o),l=l.parentNode}}unwatch(n,o){let l=n.parentNode;const a=document.body.parentNode;for(;l&&l!==a;){let r=this.monitorRegister.get(l);r&&(r.remove(o),r.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",r.listen),l===document.body&&l.removeEventListener("resize",r.listen))),l=l.parentNode}}}const po=new Xi,Za={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Zi,create:Qi}=ae("price"),Ji=Qi({props:{...Za},setup(e){const n=t.computed(()=>({[Zi]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>qe(e.price)==0?"":Jt(e.price,e.decimalLength,!0,de(e.digits),e.separator)),a=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),r=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:o,intText:a,decimalText:r}}}),es=["innerHTML"],ts=["innerHTML"];function ns(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,es)):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,ts)):t.createCommentVNode("",!0)],2)}const gn=$e(Ji,[["render",ns]]),{componentName:Bn,create:ls}=ae("hint-text"),os=ls({components:{Price:gn},props:{...Za,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=t.ref({top:null,right:null,bottom:null,left:null}),l=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),i=t.ref(e.placement),u=t.ref(!1),s=t.ref(null),d=(S,q,k,E,$,H)=>{const M=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,Y=S.split("-");let G=[];Y[0]==="top"?G=["top","bottom","right","left"]:Y[0]==="bottom"?G=["bottom","top","right","left"]:Y[0]==="left"?G=["left","top","bottom","right"]:Y[0]==="right"&&(G=["right","top","bottom","left"]);const Q={top:null,right:null,bottom:null,left:null},b=[];for(let x=0;x<G.length;x++){const I=G[x];if(b[0]=I,Y[1]&&(b[1]=Y[1]),I==="top"){const R=q.y-H-e.arrowSize-e.offset;if(R>=0){Q.top=R;let C=0;Y[1]==="start"?C=q.x:Y[1]==="end"?C=q.x+k-$:C=q.x+k/2-$/2;const W=M-C-$;W<0?(C+=W,f.value=-W):f.value=0,Q.left=C<0?0:C;break}}else if(I==="bottom"){const R=q.y+E+e.arrowSize+e.offset;if(R+H<=U){Q.top=R;let C=0;Y[1]==="start"?C=q.x:Y[1]==="end"?C=q.x+k-$:C=q.x+k/2-$/2;const W=M-C-$;W<0?(C+=W,f.value=-W):f.value=0,Q.left=C<0?0:C;break}}else if(I==="left"){const R=q.x-$-e.arrowSize-e.offset;if(R>=0){Q.left=R;let C=0;Y[1]==="start"?C=q.y:Y[1]==="end"?C=q.y+E-H:C=q.y+E/2-H/2,Q.top=C<0?0:C;break}}else if(I==="right"){const R=q.x+k+e.arrowSize+e.offset;if(R+$<=M){Q.left=R;let C=0;Y[1]==="start"?C=q.y:Y[1]==="end"?C=q.y+E-H:C=q.y+E/2-H/2,Q.top=C<0?0:C;break}}}return{bestPlacement:b.join("-"),bestInsetRect:Q}},h=(S,q,k=10)=>{if(!rt||q===!1||!S)return;l.value=Xa(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const E=s.value.offsetHeight,$=s.value.offsetWidth,{bestPlacement:H,bestInsetRect:M}=d(e.placement,l.value,a.value,r.value,$,E);i.value=H,o.value=M,u.value=!0},f=t.ref(0),y=Nt(()=>{h(e.message,e.visible)},10),A=t.ref(e.visible);t.watch(()=>e.visible,S=>{A.value=S});const p=t.computed(()=>A.value&&m.value),m=t.ref(!0),v=Nt(S=>{const q=S[0];q&&(m.value=q.isIntersecting)},10),w=new IntersectionObserver(v);t.watch([()=>e.message,()=>e.visible],([S,q])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{h(e.message,e.visible)},0),po.watch(e.reference,y),w.observe(e.reference)}),t.onBeforeMount(()=>{po.unwatch(e.reference,y),w.unobserve(e.reference),w.disconnect()});const g=t.computed(()=>{const S={[Bn]:!0};return i.value.startsWith("top")?S["is-top"]=!0:i.value.startsWith("right")?S["is-right"]=!0:i.value.startsWith("bottom")?S["is-bottom"]=!0:i.value.startsWith("right")&&(S["is-right"]=!0),e.size==="small"?S["is-small"]=!0:e.size==="large"&&(S["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(S[`${e.customClass}`]=!0),S}),c=t.computed(()=>{const S={};o.value.top!==null&&(S.top=`${o.value.top}px`),o.value.right!==null&&(S.right=`${o.value.right}px`),o.value.bottom!==null&&(S.bottom=`${o.value.bottom}px`),o.value.left!==null&&(S.left=`${o.value.left}px`),e.autoFit&&(S["min-width"]=`${a.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return S["max-width"]=`${q}px`,u.value&&(S.opacity="1"),e.transition||(S.transition="none"),e.zIndex&&(S["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(S,e.customStyle),S}),B=t.computed(()=>{const S=[`${Bn}__content`];return e.customTextClass&&S.push(e.customTextClass),S}),j=t.computed(()=>{const S={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(S,e.customTextStyle),S}),_=t.computed(()=>({[`${Bn}__arrow`]:!0})),z=t.computed(()=>{const S={};return e.showArrow?(S.width=`${e.arrowSize}px`,S.height=`${e.arrowSize}px`,i.value==="top"?(S.left="50%",S.bottom=`-${e.arrowSize}px`,S.transform=" translate(-50%, 0%)"):i.value==="top-start"?(S.left=`${e.arrowOffset+f.value}px`,S.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(S.right=`${e.arrowOffset-f.value}px`,S.bottom=`-${e.arrowSize}px`):i.value==="right"?(S.left=`-${e.arrowSize}px`,S.top="50%",S.transform=" translate(0%, -50%)"):i.value==="right-start"?(S.left=`-${e.arrowSize}px`,S.top=`${e.arrowOffset}px`):i.value==="right-end"?(S.left=`-${e.arrowSize}px`,S.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(S.left="50%",S.top=`-${e.arrowSize}px`,S.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(S.left=`${e.arrowOffset+f.value}px`,S.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(S.right=`${e.arrowOffset-f.value}px`,S.top=`-${e.arrowSize}px`):i.value==="left"?(S.right=`-${e.arrowSize}px`,S.top="50%",S.transform=" translate(0%, -50%)"):i.value==="left-start"?(S.right=`-${e.arrowSize}px`,S.top=`${e.arrowOffset}px`):i.value==="left-end"&&(S.right=`-${e.arrowSize}px`,S.bottom=`-${e.arrowOffset}px`),S):{display:"none"}}),F=t.computed(()=>p.value&&e.closeOnClick),O=t.computed(()=>{const S={};return e.zIndex&&(S["z-index"]=`${e.zIndex}`),S});return{show:p,tipRef:s,classes:g,styles:c,textClasses:B,textStyles:j,arrowClasses:_,arrowStyles:z,overlayShow:F,overlayStyle:O,onClickOverlay:()=>{A.value=!1,n.emit("update:visible",!1)}}}}),as=["innerHTML"];function rs(e,n,o,l,a,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,as))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Bt=$e(os,[["render",rs]]);class Qa{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 nl={},is=new Qa,mt=new Map,Qt=e=>{if(e){const n=document.getElementById(e);mt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of mt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}mt.clear()}},ss=e=>{e.unmount=Qt;const n=document.getElementById(e.id);if(n){const o=mt.get(e.id);o?e={...nl,...o,...e}:e={...nl,...e},e.transition=!1;const l=t.createVNode(Bt,e);return t.render(l,n),e.id}},us=e=>{e.unmount=Qt;let n=e.id??`hinttext_${is.get()}`;e={...nl,...e},e.id=n,mt.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(Bt,e);return t.render(l,o),document.body.appendChild(o),n},cs=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Fe={show(e,n,o={},l=!0){cs(n);const a=o.id;return a&&mt.has(a)?ss({...o,message:n,reference:e}):(l&&Qt(),us({...o,message:n,reference:e}))},hide(e){Qt(e)},install(e){e.config.globalProperties.$hintText=Fe}};function fs(e,n,o,l=!1){return{inheritAttrs:!0,props:{...ve,...Te},emits:["appear","disappear"],setup(a,r){const i=a.prop??r.attrs.name;Ce({componentName:e,validate:!1},i);const u=We(),s=un();cn(!1);const d=t.computed(()=>s&&u?fn(u,!1).value:null),h=e,f=t.ref(null),y=t.computed(()=>{const N={[h]:!0,[`${h}__gutter`]:d.value&&d.value.type!=="flow",[`${h}__stretch`]:a.span==="stretch",[`${h}__input--border`]:se(a.hasBorder)};if(N[a.errorMarkClass]=!!H.value,N[a.warnMarkClass]=!!E.value,N[a.infoMarkClass]=!!q.value,typeof f.value=="function"){const X=f.value(i);N[X]=!0}else if(typeof f.value=="string"){const X=f.value;N[X]=!0}return N}),A=t.ref(null),p=t.computed(()=>{const N={};if(a.width)a.width!=="auto"&&(N.width=Pe(a.width));else{const X=s&&u?dn(u,!1):null;if(d.value&&X){if(d.value.type==="grid"){const te=mn(X,d.value,a.span,a.offset);Object.assign(N,te)}else if(d.value.type==="flow"){const te=hn(X,d.value,a.span,a.offset,a.width);Object.assign(N,te)}}}if(typeof A.value=="function"){const X=A.value(i);X&&Object.assign(N,X)}else if(A.value&&typeof A.value=="object"){const X=A.value;Object.assign(N,X)}return N}),m=t.ref(null),v=t.computed({get:()=>m.value??se(a.isRequired),set:N=>{m.value=N}}),w=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",g=De(t.toRef(a,"labelPosition"),"labelPosition",Me.Near),c=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),B=t.computed(()=>({[`${h}__main`]:!0,[`${h}__main--${c.value}`]:!0})),j=t.computed(()=>({label:!0,[`label--${c.value}`]:!0})),_=De(t.toRef(a,"labelWidth"),"labelWidth",Me.Near),z=t.computed(()=>_&&_.value?{width:Pe(_.value)}:{}),F=t.computed(()=>({"label--string":!0,"label--required":v.value})),O=t.computed(()=>({content:!0,[a.contentClass]:!0})),T=t.computed(()=>({...a.contentStyle})),S=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});pe({setRequired(N){v.value=N},setErrorTip(N){S.errorTip=N},setErrorIcon(N){S.errorIcon=N},setWarnTip(N){S.warnTip=N},setWarnIcon(N){S.warnIcon=N},setInfoTip(N){S.infoTip=N},setInfoIcon(N){S.infoIcon=N},setCustomClassName(N){f.value=N},setCustomStyle(N){A.value=N}});const q=t.computed(()=>a.infoTip||S.infoTip),k=t.computed(()=>a.infoIcon||S.infoIcon),E=t.computed(()=>a.warnTip||S.warnTip),$=t.computed(()=>a.warnIcon||S.warnIcon),H=t.computed(()=>a.errorTip||S.errorTip),M=t.computed(()=>a.errorIcon||S.errorIcon),U=t.computed(()=>H.value?"error":E.value?"warn":q.value?"info":""),Y=()=>U.value.length>0,G=t.computed(()=>U.value==="error"?H.value:U.value==="warn"?E.value:U.value==="info"?q.value:""),Q=t.computed(()=>U.value==="error"?M.value:U.value==="warn"?$.value:U.value==="info"?k.value:null),b=t.computed(()=>{const N={[`${h}__tip`]:!0,[`${h}__tip--${U.value}`]:!0,[`${h}--animate`]:!0};return U.value==="error"&&a.errorClass?N[`${a.errorClass}`]=!0:U.value==="warn"&&a.warnClass?N[`${a.warnClass}`]=!0:U.value==="info"&&a.infoClass&&(N[`${a.infoClass}`]=!0),N}),x=t.computed(()=>{const N={};return g&&g.value==="top"||!w()?N["padding-left"]="0px":_&&_.value&&(N["padding-left"]=Pe(_.value)),N}),I=t.ref();let R="";t.watch([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([N,X,te,re])=>{I.value&&(N&&!ge(X)?R?o.show(I.value,X,{...re,id:R,type:te},!0):R=o.show(I.value,X,{...re,type:te},!0):o.hide(R))});let C=null;const W=()=>{C||!I.value||(C=new IntersectionObserver(N=>{let X=!1;for(let te of N)if(te.intersectionRatio>0){X=!0,X&&r.emit("appear",te);break}X||r.emit("disappear")}),C.observe(I.value))},Z=()=>{!C||!I.value||(C.unobserve(I.value),C=null)};t.watch(()=>se(a.appearListen),N=>{N?W():Z()}),t.onMounted(()=>{se(a.appearListen)&&W()}),t.onUnmounted(Z);const D=()=>{if(!w())return null;const N=[],X=r.slots?.label?.()??a.label,te={class:F.value},re=t.h("div",te,[X]);if(N.push(re),r.slots.fixedPreTip){const oe=r.slots.fixedPreTip();N.push(oe)}const J={class:j.value,style:z.value};return t.h("div",J,N)},V=()=>{const N=[];if(r.slots.prepend){const te=r.slots.prepend();N.push(te)}if(r.slots.default){const te=r.slots.default();N.push(te)}if(r.slots.append){const te=r.slots.append();N.push(te)}if(r.slots.fixedTip){const te={class:[`${h}__fixed-tip`]},re=t.h("div",te,[r.slots.fixedTip()]);N.push(re)}const X={ref:I,class:O.value,style:T.value};return t.h("div",X,N)},L=()=>{const N=Q.value;return N?typeof N=="function"?t.h("div",{class:"fox-item__tip--icon"},[N()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(N)]):null},K=()=>{const N=G.value;return N?typeof N=="function"?t.h("div",{class:"fox-item__tip--text"},[N()]):t.h("div",{class:"fox-item__tip--text"},[N]):null},ee=()=>{if(!Y())return null;const N=[],X=L();X&&N.push(X);const te=K();te&&N.push(te);const re={class:b.value,style:x.value};return t.h("div",re,N)},ne=()=>r.slots?.hide?.()??null;return()=>{const N=[],X=[],te=D();te&&X.push(te);const re=V();re&&X.push(re);const J={class:B.value},oe=t.h("div",J,X);N.push(oe);const ie=ee();ie&&N.push(ie);const ue=ne();ue&&N.push(ue);const we={class:y.value,style:p.value,prop:a.prop};return t.h("div",we,N)}}}}const{componentName:ds,create:hs,scope:ms}=ae("item"),be=hs(fs(ds,ms,Fe,!1));function gs(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,l){const a=We(),r=un();cn(!1);const i=t.computed(()=>r&&a?fn(a,!1).value:null),u=e,s=t.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),d=t.computed(()=>{const h={},f=r&&a?dn(a,!1):null;if(i.value&&f)if(i.value.type==="grid"){const y=mn(f,i.value,o.span,o.offset);Object.assign(h,y)}else if(i.value.type==="flow"){const y=hn(f,i.value,o.span,o.offset,o.width);Object.assign(h,y)}else return o.width&&(h.width=Pe(o.width)),h;else o.width&&(h.width=Pe(o.width));return h});return()=>{const h={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",h,l.slots.default()):t.h("div",h)}}}}const{componentName:ps,create:vs,scope:op}=ae("slot-item"),bl=vs(gs(ps));function ys(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,l){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=We(),u=un();cn(!1);const s=t.computed(()=>{const d={};if(u&&i){const h=fn(i,!1),f=dn(i,!1);if(h.value&&f)if(h.value.type==="grid"){const y=mn(f,h.value,o.span,o.offset);Object.assign(d,y)}else if(h.value.type==="flow"){const y=hn(f,h.value,o.span,o.offset,o.width);Object.assign(d,y)}else o.width&&(d.width=Pe(o.width))}else o.width&&(d.width=Pe(o.width));return d});return()=>{const d=[];if(l.slots.default){const f=l.slots.default();if(o.divide)for(let y=0;y<f.length;y++){if(y>0){const A=t.h("div",{class:{[`${a}__divide`]:!0}});d.push(A)}d.push(f[y])}else Reflect.apply([].push,d,f)}const h={class:r.value,style:s.value};return t.h("div",h,d)}}}}const{componentName:bs,create:ws,scope:ap}=ae("row-item"),wl=ws(ys(bs)),Ke=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(l=>{typeof l=="string"&&l.indexOf("data-fox")!==0&&(n[l]=e[l])}),n},vo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function xs(e,n,o){return{props:{...ve,...Te,...vo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=fe(l,"modelValue"),y=e,A=t.computed(()=>({[y]:!0,[`${y}__disabled`]:r.value,[`${y}__readonly`]:i.value})),p=k=>{f.value=k,u("update:modelValue",k),u("input",k)},m=k=>{u("change",k)};let v=fe(l,"hintText"),w=t.ref(!1);const g=k=>{let $=k.target.value;h.value=!0,ge(v.value)||(w.value=!0),u("focus",$,k)},c=k=>{setTimeout(()=>{w.value&&(w.value=!1),h.value=!1},0);let $=k.target.value;l.maxLength&&$.length>Number(l.maxLength)&&($=$.slice(0,Number(l.maxLength))),u("blur",$,k)},B=()=>{u("clear","")},j=t.ref(!1);let _=null;const z=()=>{l.showTooltip&&j.value===!1&&(_&&clearTimeout(_),_=setTimeout(()=>{j.value=!0},150))},F=()=>{_&&(clearTimeout(_),j.value=!1,_=null)},O=t.computed(()=>j.value||w.value),T=t.computed(()=>j.value?f.value:v.value),S=t.computed(()=>qe(l.unit)>0),q=t.ref();return pe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const E={...Ke(a.attrs),ref:q,class:A.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:f.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:B,onChange:m,onInput:p,onFocus:g,onBlur:c,onMouseover:z,onMouseleave:F},$={};a.slots.prepend&&($.prepend=a.slots.prepend),a.slots.append&&($.append=a.slots.append),a.slots.prefix&&($.prefix=a.slots.prefix),a.slots.suffix?$.suffix=a.slots.suffix:S.value&&($.suffix=()=>[l.unit]);const H=[],M=t.h(P.ElInput,E,$);H.push(M);const U={default:()=>H};a.slots.default&&(U.label=a.slots.default),a.slots.default&&(U.fixedTip=a.slots.fixedTip);const G={...Ne(l,vo),hintText:T.value,hintVisible:O.value,prop:`${l.prop}_item`};return t.h(o,G,U)}}}}const{componentName:Ss,create:Ts,scope:Cs}=ae("input-item"),xl=Ts(xs(Ss,Cs,be));function Ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function It(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ja(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function $s(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let ks=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Ds(){const e=t.getCurrentInstance();return new ks(e.proxy)}function er(e,n,o){const l=Ze(e,n),a=Ze(e,o);if(l!==a)return!1;const r=It(e,n),i=It(e,o);return r===i}function tr(e,n,o,l){if(l.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(r=>{for(let i of l){const u=Ja(e,i);if(Array.isArray(u)&&u.length>0){const s=tr(e,r,o,u)??[];Reflect.apply([].push,a,s)}else{let s=!1;if(o==="text")s=Ze(e,i)===r;else if(o==="item")s=er(e,i,r);else{let d=It(e,i);d==null&&(d=Ze(e,i)),s=d===r}if(s){a.push(i);break}}}}),a}function Ns(e){return{text:e,value:e}}const yo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Es(e,n,o){return{props:{...ve,...Te,...yo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(null),f=t.ref([]),y=t.computed(()=>f.value?f.value.map(L=>Ze(l,L)).join(" "):""),A=(V,L,K,ee=!0)=>{const ne=tr(l,V,L,K);if(ne===null){if(f.value===null||f.value.length===0)return;h.value=null,f.value=[],ee&&(u("update:modelValue",null),u("update:text",null),u("change",null));return}let N=!0;if(ne.length!==f.value.length)N=!1;else for(let X=0;X<ne.length;X++){const te=ne[X],re=f.value[X];if(!er(l,te,re)){N=!1;break}}if(!N){f.value=ne;let X=[],te=[],re=[];ne.forEach(ue=>{const we=It(l,ue),me=Ze(l,ue);X.push(we),re.push(me),l.valueType==="text"?te.push(me):l.valueType==="item"?te.push(ue):te.push(we)});let J,oe,ie;se(l.multiple)?(h.value=X,J=t.toRaw(te),oe=re,ie=t.toRaw(ne)):(h.value=X[0]??"",J=t.toRaw(te[0]??""),oe=re[0]??"",ie=t.toRaw(ne[0])),ee&&(u("update:modelValue",J),u("change",J,ie)),u("update:text",oe)}},p=t.ref(null),m=t.ref(null),v=t.computed(()=>m.value??p.value??[]),w=De(t.computed(()=>l.lazyLoad),"lazyLoad",Me.Near,V=>se(V)),g=Ds(),c=async(V,L)=>{if(V){const K=await g.load("select",V,L);if(K.length>0)if(typeof K[0]=="string"){let N=K.map(X=>Ns(X));p.value=N}else p.value=K;else p.value=null}};t.watch([()=>l.source,()=>l.params],([V,L])=>{m.value=null,c(V,L)},{immediate:!w.value});let B=!1;const j=()=>{B||(B=!0,c(l.source,l.params))};t.watch([()=>p.value,()=>l.modelValue],([V,L])=>{if(O()&&se(l.multiple)){Le(L,h.value)||(h.value=L);return}A(L,l.valueType,v.value,!1)});let _=null,z=t.ref(!1);typeof l.remoteMethod=="function"&&(_=async V=>{if(V==null){m.value=null;return}z.value=!0;try{const L=await l.remoteMethod(V);L&&(m.value=L)}catch(L){m.value=null,console.error(L)}z.value=!1});let F=null;typeof l.filterMethod=="function"&&(F=async V=>{if(V==null){m.value=null;return}z.value=!0;try{const L=await l.filterMethod(V,p.value);L&&(m.value=L)}catch(L){m.value=null,console.error(L)}z.value=!1});const O=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",T=t.ref(!1),S=e,q=t.computed(()=>({[S]:!0})),k=V=>{l.allowCreate||O()&&se(l.multiple)?(u("update:modelValue",V),u("change",V),u("update:text",V),h.value=V):A(V,"value",v.value,!0)};let E=fe(l,"hintText"),$=t.ref(!1);const H=V=>{let K=V.target.value;T.value=!0,ge(E.value)||($.value=!0),u("focus",K,V)},M=V=>{setTimeout(()=>{$.value&&($.value=!1),T.value=!1},0);let K=V.target.value;l.maxLength&&K.length>Number(l.maxLength)&&(K=K.slice(0,Number(l.maxLength))),R.value||u("blur",K,V)},U=()=>{u("clear","")},Y=t.ref(!1);let G=null;const Q=()=>{l.showTooltip&&Y.value===!1&&(G&&clearTimeout(G),G=setTimeout(()=>{Y.value=!0},150))},b=()=>{G&&(clearTimeout(G),Y.value=!1,G=null)},x=t.computed(()=>Y.value||$.value),I=t.computed(()=>Y.value?y.value:E.value),R=t.ref(!1),C=V=>{R.value=V,u("visible-change",V),V||u("selected")},W=V=>{u("remove-tag",V)},Z=(V,L)=>{const K=[];return V.forEach((ee,ne)=>{const N=Ja(l,ee);if(Array.isArray(N)&&N.length>0){const X=Z(N,L),te=Ze(l,ee),J={key:`${te}_${ne}`,label:te};K.push(t.h(P.ElOptionGroup,J,{default:()=>X}))}else{const X=It(l,ee),te=Ze(l,ee),re=$s(l,ee),oe={key:`${X}_${ne}`,label:te,disabled:re,value:X};if(typeof L=="function")K.push(t.h(P.ElOption,oe,{default:()=>L(ee)}));else if(l.optionType==="item"){const ie={class:{"fox-select-item__option-left":!0}},ue=t.h("span",ie,[X]),we={class:{"fox-select-item__option-right":!0}},me=t.h("span",we,[te]),st=t.h("div",{class:{"fox-select-item__option":!0}},[ue,me]);K.push(t.h(P.ElOption,oe,{default:()=>st}))}else l.optionType==="value"?K.push(t.h(P.ElOption,oe,{default:()=>[X]})):K.push(t.h(P.ElOption,oe))}}),K},D=t.ref();return pe({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()}}),()=>{const L={...Ke(a.attrs),ref:D,class:q.value,clearable:l.clearable,multiple:l.multiple,placeholder:d.placeholder.value,disabled:r.value||i.value,modelValue:h.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:U,onChange:k,onFocus:H,onBlur:M,onVisibleChange:C,onRemoveTag:W};typeof _=="function"&&(L["remote-method"]=_,L.loading=z.value),typeof F=="function"&&(L["filter-method"]=F,L.loading=z.value);const K={};a.slots.prefix&&(K.prefix=a.slots.prefix),a.slots.empty&&(K.empty=a.slots.empty),a.slots.options?K.default=a.slots.options:K.default=()=>Z(v.value,a.slots.option);const ee=[],ne=t.h(P.ElSelect,L,K);ee.push(ne);const N={default:()=>ee};a.slots.default&&(N.label=a.slots.default),a.slots.fixedTip&&(N.fixedTip=a.slots.fixedTip);const te={...Ne(l,yo),hintText:I.value,hintVisible:x.value,prop:`${l.prop??a.attrs.name}_item`,onMouseover:Q,onMouseleave:b};return w.value&&(te["appear-listen"]=!0,te.onAppear=j),t.h(o,te,N)}}}}const{componentName:Vs,create:Is,scope:Ps}=ae("select-item"),Sl=Is(Es(Vs,Ps,be));var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){var o=1e3,l=6e4,a=36e5,r="millisecond",i="second",u="minute",s="hour",d="day",h="week",f="month",y="quarter",A="year",p="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},c=function(k,E,$){var H=String(k);return!H||H.length>=E?k:""+Array(E+1-H.length).join($)+k},B={s:c,z:function(k){var E=-k.utcOffset(),$=Math.abs(E),H=Math.floor($/60),M=$%60;return(E<=0?"+":"-")+c(H,2,"0")+":"+c(M,2,"0")},m:function k(E,$){if(E.date()<$.date())return-k($,E);var H=12*($.year()-E.year())+($.month()-E.month()),M=E.clone().add(H,f),U=$-M<0,Y=E.clone().add(H+(U?-1:1),f);return+(-(H+($-M)/(U?M-Y:Y-M))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:f,y:A,w:h,d,D:p,h:s,m:u,s:i,ms:r,Q:y}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},j="en",_={};_[j]=g;var z=function(k){return k instanceof S},F=function k(E,$,H){var M;if(!E)return j;if(typeof E=="string"){var U=E.toLowerCase();_[U]&&(M=U),$&&(_[U]=$,M=U);var Y=E.split("-");if(!M&&Y.length>1)return k(Y[0])}else{var G=E.name;_[G]=E,M=G}return!H&&M&&(j=M),M||!H&&j},O=function(k,E){if(z(k))return k.clone();var $=typeof E=="object"?E:{};return $.date=k,$.args=arguments,new S($)},T=B;T.l=F,T.i=z,T.w=function(k,E){return O(k,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var S=function(){function k($){this.$L=F($.locale,null,!0),this.parse($)}var E=k.prototype;return E.parse=function($){this.$d=function(H){var M=H.date,U=H.utc;if(M===null)return new Date(NaN);if(T.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var Y=M.match(v);if(Y){var G=Y[2]-1||0,Q=(Y[7]||"0").substring(0,3);return U?new Date(Date.UTC(Y[1],G,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,Q)):new Date(Y[1],G,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,Q)}}return new Date(M)}($),this.$x=$.x||{},this.init()},E.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},E.$utils=function(){return T},E.isValid=function(){return this.$d.toString()!==m},E.isSame=function($,H){var M=O($);return this.startOf(H)<=M&&M<=this.endOf(H)},E.isAfter=function($,H){return O($)<this.startOf(H)},E.isBefore=function($,H){return this.endOf(H)<O($)},E.$g=function($,H,M){return T.u($)?this[H]:this.set(M,$)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function($,H){var M=this,U=!!T.u(H)||H,Y=T.p($),G=function(Z,D){var V=T.w(M.$u?Date.UTC(M.$y,D,Z):new Date(M.$y,D,Z),M);return U?V:V.endOf(d)},Q=function(Z,D){return T.w(M.toDate()[Z].apply(M.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(D)),M)},b=this.$W,x=this.$M,I=this.$D,R="set"+(this.$u?"UTC":"");switch(Y){case A:return U?G(1,0):G(31,11);case f:return U?G(1,x):G(0,x+1);case h:var C=this.$locale().weekStart||0,W=(b<C?b+7:b)-C;return G(U?I-W:I+(6-W),x);case d:case p:return Q(R+"Hours",0);case s:return Q(R+"Minutes",1);case u:return Q(R+"Seconds",2);case i:return Q(R+"Milliseconds",3);default:return this.clone()}},E.endOf=function($){return this.startOf($,!1)},E.$set=function($,H){var M,U=T.p($),Y="set"+(this.$u?"UTC":""),G=(M={},M[d]=Y+"Date",M[p]=Y+"Date",M[f]=Y+"Month",M[A]=Y+"FullYear",M[s]=Y+"Hours",M[u]=Y+"Minutes",M[i]=Y+"Seconds",M[r]=Y+"Milliseconds",M)[U],Q=U===d?this.$D+(H-this.$W):H;if(U===f||U===A){var b=this.clone().set(p,1);b.$d[G](Q),b.init(),this.$d=b.set(p,Math.min(this.$D,b.daysInMonth())).$d}else G&&this.$d[G](Q);return this.init(),this},E.set=function($,H){return this.clone().$set($,H)},E.get=function($){return this[T.p($)]()},E.add=function($,H){var M,U=this;$=Number($);var Y=T.p(H),G=function(x){var I=O(U);return T.w(I.date(I.date()+Math.round(x*$)),U)};if(Y===f)return this.set(f,this.$M+$);if(Y===A)return this.set(A,this.$y+$);if(Y===d)return G(1);if(Y===h)return G(7);var Q=(M={},M[u]=l,M[s]=a,M[i]=o,M)[Y]||1,b=this.$d.getTime()+$*Q;return T.w(b,this)},E.subtract=function($,H){return this.add(-1*$,H)},E.format=function($){var H=this,M=this.$locale();if(!this.isValid())return M.invalidDate||m;var U=$||"YYYY-MM-DDTHH:mm:ssZ",Y=T.z(this),G=this.$H,Q=this.$m,b=this.$M,x=M.weekdays,I=M.months,R=function(D,V,L,K){return D&&(D[V]||D(H,U))||L[V].slice(0,K)},C=function(D){return T.s(G%12||12,D,"0")},W=M.meridiem||function(D,V,L){var K=D<12?"AM":"PM";return L?K.toLowerCase():K},Z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:b+1,MM:T.s(b+1,2,"0"),MMM:R(M.monthsShort,b,I,3),MMMM:R(I,b),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:R(M.weekdaysMin,this.$W,x,2),ddd:R(M.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(G),HH:T.s(G,2,"0"),h:C(1),hh:C(2),a:W(G,Q,!0),A:W(G,Q,!1),m:String(Q),mm:T.s(Q,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:Y};return U.replace(w,function(D,V){return V||Z[D]||Y.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function($,H,M){var U,Y=T.p(H),G=O($),Q=(G.utcOffset()-this.utcOffset())*l,b=this-G,x=T.m(this,G);return x=(U={},U[A]=x/12,U[f]=x,U[y]=x/3,U[h]=(b-Q)/6048e5,U[d]=(b-Q)/864e5,U[s]=b/a,U[u]=b/l,U[i]=b/o,U)[Y]||b,M?x:T.a(x)},E.daysInMonth=function(){return this.endOf(f).$D},E.$locale=function(){return _[this.$L]},E.locale=function($,H){if(!$)return this.$L;var M=this.clone(),U=F($,H,!0);return U&&(M.$L=U),M},E.clone=function(){return T.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},k}(),q=S.prototype;return O.prototype=q,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",d],["$M",f],["$y",A],["$D",p]].forEach(function(k){q[k[1]]=function(E){return this.$g(E,k[0],k[1])}}),O.extend=function(k,E){return k.$i||(k(E,S,O),k.$i=!0),O},O.locale=F,O.isDayjs=z,O.unix=function(k){return O(1e3*k)},O.en=_[j],O.Ls=_,O.p={},O})})(nr);var Os=nr.exports;const He=Ge(Os);var lr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(v){this[m]=+v}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var w=v.match(/([+-]|\d\d)/g),g=60*w[1]+(+w[2]||0);return g===0?0:w[0]==="+"?-g:g}(m)}],f=function(m){var v=u[m];return v&&(v.indexOf?v:v.s.concat(v.f))},y=function(m,v){var w,g=u.meridiem;if(g){for(var c=1;c<=24;c+=1)if(m.indexOf(g(c,0,v))>-1){w=c>12;break}}else w=m===(v?"pm":"PM");return w},A={A:[i,function(m){this.afternoon=y(m,!1)}],a:[i,function(m){this.afternoon=y(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[a,d("day")],Do:[i,function(m){var v=u.ordinal,w=m.match(/\d+/);if(this.day=w[0],v)for(var g=1;g<=31;g+=1)v(g).replace(/\[|\]/g,"")===m&&(this.day=g)}],M:[r,d("month")],MM:[a,d("month")],MMM:[i,function(m){var v=f("months"),w=(f("monthsShort")||v.map(function(g){return g.slice(0,3)})).indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[i,function(m){var v=f("months").indexOf(m)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(m){this.year=s(m)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function p(m){var v,w;v=m,w=u&&u.formats;for(var g=(m=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,T,S){var q=S&&S.toUpperCase();return T||w[S]||o[S]||w[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,E,$){return E||$.slice(1)})})).match(l),c=g.length,B=0;B<c;B+=1){var j=g[B],_=A[j],z=_&&_[0],F=_&&_[1];g[B]=F?{regex:z,parser:F}:j.replace(/^\[|\]$/g,"")}return function(O){for(var T={},S=0,q=0;S<c;S+=1){var k=g[S];if(typeof k=="string")q+=k.length;else{var E=k.regex,$=k.parser,H=O.slice(q),M=E.exec(H)[0];$.call(T,M),O=O.replace(M,"")}}return function(U){var Y=U.afternoon;if(Y!==void 0){var G=U.hours;Y?G<12&&(U.hours+=12):G===12&&(U.hours=0),delete U.afternoon}}(T),T}}return function(m,v,w){w.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(s=m.parseTwoDigitYear);var g=v.prototype,c=g.parse;g.parse=function(B){var j=B.date,_=B.utc,z=B.args;this.$u=_;var F=z[1];if(typeof F=="string"){var O=z[2]===!0,T=z[3]===!0,S=O||T,q=z[2];T&&(q=z[2]),u=this.$locale(),!O&&q&&(u=w.Ls[q]),this.$d=function(H,M,U){try{if(["x","X"].indexOf(M)>-1)return new Date((M==="X"?1e3:1)*H);var Y=p(M)(H),G=Y.year,Q=Y.month,b=Y.day,x=Y.hours,I=Y.minutes,R=Y.seconds,C=Y.milliseconds,W=Y.zone,Z=new Date,D=b||(G||Q?1:Z.getDate()),V=G||Z.getFullYear(),L=0;G&&!Q||(L=Q>0?Q-1:Z.getMonth());var K=x||0,ee=I||0,ne=R||0,N=C||0;return W?new Date(Date.UTC(V,L,D,K,ee,ne,N+60*W.offset*1e3)):U?new Date(Date.UTC(V,L,D,K,ee,ne,N)):new Date(V,L,D,K,ee,ne,N)}catch{return new Date("")}}(j,F,_),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),S&&j!=this.format(F)&&(this.$d=new Date("")),u={}}else if(F instanceof Array)for(var k=F.length,E=1;E<=k;E+=1){z[1]=F[E-1];var $=w.apply(this,z);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}E===k&&(this.$d=new Date(""))}else c.call(this,B)}}})})(lr);var As=lr.exports;const Fs=Ge(As);var or={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l,a){var r=l.prototype,i=r.format;a.en.ordinal=function(u){var s=["th","st","nd","rd"],d=u%100;return"["+u+(s[(d-20)%10]||s[d]||s[0])+"]"},r.format=function(u){var s=this,d=this.$locale();if(!this.isValid())return i.bind(this)(u);var h=this.$utils(),f=(u||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(y){switch(y){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return d.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return d.ordinal(s.week(),"W");case"w":case"ww":return h.s(s.week(),y==="w"?1:2,"0");case"W":case"WW":return h.s(s.isoWeek(),y==="W"?1:2,"0");case"k":case"kk":return h.s(String(s.$H===0?24:s.$H),y==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return y}});return i.bind(this)(f)}}})})(or);var Bs=or.exports;const Rs=Ge(Bs);var ar={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l,a){var r=l.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},u=function(f,y,A,p,m){var v=f.name?f:f.$locale(),w=i(v[y]),g=i(v[A]),c=w||g.map(function(j){return j.slice(0,p)});if(!m)return c;var B=v.weekStart;return c.map(function(j,_){return c[(_+(B||0))%7]})},s=function(){return a.Ls[a.locale()]},d=function(f,y){return f.formats[y]||function(A){return A.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,m,v){return m||v.slice(1)})}(f.formats[y.toUpperCase()])},h=function(){var f=this;return{months:function(y){return y?y.format("MMMM"):u(f,"months")},monthsShort:function(y){return y?y.format("MMM"):u(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):u(f,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):u(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):u(f,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return d(f.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},a.localeData=function(){var f=s();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(y){return d(f,y)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return u(s(),"months")},a.monthsShort=function(){return u(s(),"monthsShort","months",3)},a.weekdays=function(f){return u(s(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return u(s(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return u(s(),"weekdaysMin","weekdays",2,f)}}})})(ar);var Ms=ar.exports;const Ls=Ge(Ms);var rr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){var o="week",l="year";return function(a,r,i){var u=r.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(l).add(1,l).date(d),f=i(this).endOf(o);if(h.isBefore(f))return 1}var y=i(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),A=this.diff(y,o,!0);return A<0?i(this).startOf("week").week():Math.ceil(A)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(rr);var _s=rr.exports;const qs=Ge(_s);var ir={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){l.prototype.weekYear=function(){var a=this.month(),r=this.week(),i=this.year();return r===1&&a===11?i+1:a===0&&r>=52?i-1:i}}})})(ir);var zs=ir.exports;const js=Ge(zs);var sr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l,a){l.prototype.dayOfYear=function(r){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})})(sr);var Hs=sr.exports;const Ks=Ge(Hs);var ur={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){l.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(ur);var Ys=ur.exports;const Ws=Ge(Ys);var cr={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){l.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(cr);var Us=cr.exports;const Gs=Ge(Us);He.extend(Ls);He.extend(Rs);He.extend(Fs);He.extend(qs);He.extend(js);He.extend(Ks);He.extend(Ws);He.extend(Gs);const le={format(e,n){return He(e).format(n)},parser(e,n){return He(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const a=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[o,l,a].join(n)},getDay(e,n){e=e||0;let o=n??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),this.date2Str(o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(o>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let l;return typeof n=="string"?l=new Date(n).getTime():l=n,o==l},getMonthWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o));let r=a.getDay(),i=a.getDate(),u=6-r;return l!==0&&(r=r==0?7:r,u=7-r),Math.ceil((i+u)/7)},getYearWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=new Date(Number(e),0,1),i=Math.round((a.valueOf()-r.valueOf())/864e5);let u=a.getDay(),s=6-u;return l!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=a.getTime();let i=a.getDay();if(l===0){const s=r-i*864e5,d=r+(6-i)*864e5,h=this.date2Str(new Date(s)),f=this.date2Str(new Date(d));return[h,f]}else{i=i==0?7:i;const u=24*60*60*1e3,s=r-(i-1)*u,d=r+(7-i)*u,h=this.date2Str(new Date(s)),f=this.date2Str(new Date(d));return[h,f]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=le.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=le.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const l=new Date(new Date(n).setDate(n.getDate()+o)),a=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i},inScope4Month(e,n,o){const l=new Date(new Date(n).setMonth(n.getMonth()+o)),a=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?a>=i&&a<=r:a>=r&&a<=i}},bo={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},wo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Xs(e,n,o){return{props:{...ve,...Te,...bo,...wo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,get validate(){return!r.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=fe(l,"modelValue"),y=t.computed(()=>$.value&&Array.isArray(f.value)&&f.value.length==2?f.value[0]:f.value),A=t.computed(()=>$.value?"longTermKey":"normalKey"),p=D=>{if($.value&&l.type==="daterange"){const V=[...f.value];V[0]=D,f.value=V}else f.value=D;u("update:modelValue",f.value),u("change",f.value)},m=t.computed(()=>$.value&&l.type==="daterange"?"date":l.type),v=e,w=t.computed(()=>({[`${v}`]:!0,"is-long":$.value,"is-readonly":i.value,"is-disabled":r.value}));let g=fe(l,"hintText"),c=t.ref(!1);const B=D=>{let L=D.target.value;h.value=!0,ge(g.value)||(c.value=!0),u("focus",L,D)},j=D=>{setTimeout(()=>{c.value&&(c.value=!1),h.value=!1},0);let L=D.target.value;l.maxLength&&L.length>Number(l.maxLength)&&(L=L.slice(0,Number(l.maxLength))),u("blur",L,D)},_=()=>{u("clear","")},z=D=>{u("calendar-change",D)},F=(D,V,L)=>{u("panel-change",D,V,L)},O=D=>{u("visible-change",D)},T=De(t.computed(()=>l.longTermText),"longTermText",Me.Near),S=De(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",Me.Near),q=De(t.computed(()=>l.longTermValue),"longTermValue",Me.Near),k=De(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let E=null;const $=t.ref(se(l.longTerm)),H=D=>{if($.value=D,u("update:longTerm",D),D){if(E=f.value,l.type==="daterange"){const V=[];Array.isArray(q.value)?(V[0]=f.value?f.value[0]??q.value[0]:null,V[1]=q.value[1]??q.value[0]):(V[0]=f.value?f.value[0]??q.value:null,V[1]=$.value),V[0]||(V[0]=l.valueFormat?le.format(new Date,l.valueFormat):new Date),V[1]||(V[1]=l.valueFormat?le.format(new Date,l.valueFormat):new Date),f.value=V}else Array.isArray(q.value)?f.value=q.value[1]??q.value[0]:f.value=q.value,f.value||(f.value=l.valueFormat?le.format(new Date,l.valueFormat):new Date);u("update:modelValue",f.value)}else{if(l.type==="daterange"){const V=[];V[0]=Array.isArray(f.value)?f.value[0]:f.value,Array.isArray(E)?V[1]=E[1]:V[1]=E,V[0]||(V[0]=l.valueFormat?le.format(new Date,l.valueFormat):new Date),V[1]||(V[1]=l.valueFormat?le.format(new Date,l.valueFormat):new Date),f.value=V}else f.value=E;u("update:modelValue",f.value),setTimeout(()=>{W()},100)}},M=se(l.isLongTerm);if(M){const D=()=>{if($.value===!0){if(E=f.value,l.type==="daterange"){const V=[f.value[0]];Array.isArray(q.value)?V[1]=q.value[1]??q.value[0]:V[1]=$.value,V[0]||(V[0]=l.valueFormat?le.format(new Date,l.valueFormat):new Date),V[1]||(V[1]=l.valueFormat?le.format(new Date,l.valueFormat):new Date),f.value=V}else f.value=q.value;u("update:modelValue",f.value)}else Le(q.value,f.value)&&($.value=!0)};D(),t.watch([()=>l.longTerm],([V])=>{$.value!==V&&D()}),t.watch([()=>f.value],([V])=>{let L=!1;if(l.type==="daterange"&&Array.isArray(V))try{let K=V[1];if(!K)return;typeof K!="string"&&l.valueFormat&&(K=le.format(K,l.valueFormat));let ee=Array.isArray(q.value)?q.value[1]:q.value;(K===ee||Array.isArray(k.value)&&k.value.findIndex(N=>K==N)!==-1)&&(L=!0)}catch(K){console.error(K)}$.value!==L&&($.value=L)},{immediate:!0})}const U=t.computed(()=>({"fox-date-item__long":!0,"is-active":h.value})),Y=t.ref(),G=t.ref(),Q=/^\d+$/,b=(D,V)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(D,V):Q.test(D)&&D.length===l.flashFillThreshold,x=(D,V)=>{let L;if(typeof l.flashFillFormat=="function")L=l.flashFillFormat(D,V);else{const ee=l.flashFillFormat??"YYYYMMDD";L=le.parser(D,ee)}const K=l.valueFormat??"YYYY-MM-DD";return le.format(L,K)},I=D=>D?D.endsWith("range"):!1,R=D=>{if(!D.target)return;const V=D.target.value??"";if(b(V,l.type)){const L=x(V,l.type);if(I(l.type)){const K=Array.isArray(f.value)?[...f.value]:[];K[0]=L,p(K)}else p(L)}},C=D=>{if(!D.target)return;const V=D.target.value??"";if(b(V,l.type)){const L=x(V,l.type);if(I(l.type)){const K=Array.isArray(f.value)?[...f.value]:[];K[1]=L,p(K)}else p(L)}},W=()=>{if(l.flashFill&&Y.value&&Y.value.$el)if(I(l.type)){const D=Y.value.$el.querySelectorAll("input.el-range-input");D[0]&&D[0].addEventListener("input",R),D[1]&&D[1].addEventListener("input",C)}else{const D=Y.value.$el.querySelector("input.el-input__inner");D&&D.addEventListener("input",R)}},Z=()=>{if(l.flashFill&&Y.value&&Y.value.$el)if(I(l.type)){const D=Y.value.$el.querySelectorAll("input.el-range-input");D[0]&&D[0].removeEventListener("input",R),D[1]&&D[1].removeEventListener("input",C)}else{const D=Y.value.$el.querySelector("input.el-input__inner");D&&D.removeEventListener("input",R)}};return t.onMounted(W),t.onBeforeUnmount(Z),pe({focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()},handleOpen:()=>{G?.value.handleOpen()},handleClose:()=>{G?.value.handleClose()}}),()=>{const V={...a.attrs,key:A.value,type:m.value,ref:G,class:w.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:y.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":p,onClear:_,onFocus:B,onBlur:j,onCalendarChange:z,onPanelChange:F,onVisibleChange:O},L={};a.slots["range-separator"]&&(L["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(L.default=a.slots.cell);const K=[],ee=t.h(P.ElDatePicker,V,L);K.push(ee);const ne={default:()=>K};if(a.slots.default&&(ne.label=a.slots.default),a.slots.fixedTip&&(ne.fixedTip=a.slots.fixedTip),M){if($.value){const re=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),J=t.h("input",{class:["fox-date-item__long-text"],value:T.value,readonly:!0}),oe={class:U.value},ie=t.h("div",oe,{default:()=>[re,J]});K.push(ie)}if(!i.value&&!r.value){const re={label:S.value||T.value,disabled:i.value||r.value,modelValue:$.value,"onUpdate:modelValue":H},J=t.h(P.ElCheckbox,re),oe=t.h("div",{class:{[`${v}__append`]:!0}},[J]);ne.append=()=>oe}}const X={...Ne(l,bo,wo),ref:Y,class:{[`${v}__wrapper`]:!0,"has-append":M},hintText:g.value,hintVisible:c.value,prop:`${l.prop}_item`};return t.h(o,X,ne)}}}}const{componentName:Zs,create:Qs,scope:Js}=ae("date-item"),Tl=Qs(Xs(Zs,Js,be)),eu=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Cl={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popClass:{type:String},popStyle:{type:Object}},$l={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:{}}},fr=2e3;let xo=fr;const tu=(e,n)=>({components:n,props:{...$l},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const a=t.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),r=t.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=t.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{o.zIndex!==fr&&(xo=Number(o.zIndex)),l("update:visible",!0),a.zIndex=++xo,o.destroyOnClose&&(a.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},h=m=>{l("click-pop",m)},f=m=>{m.stopPropagation(),l("click-close-icon",m),l("update:visible",!1)},y=m=>{l("click-overlay",m),o.closeOnClickOverlay&&l("update:visible",!1)},A=m=>{l("opend",m)},p=m=>{l("closed",m)};return t.watch(()=>o.visible,m=>{o.visible?s():d()}),t.watch(()=>o.closeable,m=>{a.closed=m}),{...t.toRefs(a),popStyle:i,transitionName:u,classes:r,onClick:h,onClickCloseIcon:f,onClickOverlay:y,onOpened:A,onClosed:p}}});let Ct=0;const So="fox-overflow-hidden",To=()=>rt?document.body:{classList:[]},nu=e=>[()=>{if(e())try{!Ct&&To().classList.add(So),Ct++}catch{}},()=>{if(e()&&Ct)try{Ct--,!Ct&&To().classList.remove(So)}catch{}}],lu={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:ou,create:au}=ae("overlay"),ru=au({props:{...lu},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=nu(()=>e.lockScroll),a=t.computed(()=>({[ou]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,u=>{u?o():l()}),{classes:a,style:r,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function iu(e,n,o,l,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const pn=$e(ru,[["render",iu]]),su=["aria-labelledby"],uu=t.createElementVNode("path",{d:"M512 1024C228.43 1024 0 795.57 0 512S228.43 0 512 0s512 228.43 512 512-228.43 512-512 512zm0-945.23C273.067 78.77 78.77 273.066 78.77 512S273.066 945.23 512 945.23 945.23 750.934 945.23 512 750.934 78.77 512 78.77zM984.615 1024c-10.502 0-21.005-2.626-28.882-10.503L824.451 882.215c-15.754-15.753-15.754-39.384 0-55.138s39.385-15.754 55.139 0l131.282 131.282c15.754 15.754 15.754 39.385 0 55.138-5.251 7.877-15.754 10.503-26.257 10.503z",fill:"currentColor","fill-opacity":"0.9"},null,-1),cu=[uu],fu=t.defineComponent({__name:"Search2",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},cu,14,su))}}),du=["aria-labelledby"],hu=t.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),mu=[hu],gu=t.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},mu,14,du))}}),pu=["aria-labelledby"],vu=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),yu=[vu],vn=t.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},yu,14,pu))}}),bu=["aria-labelledby"],wu=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),xu=[wu],dr=t.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},xu,14,bu))}}),Su=["aria-labelledby"],Tu=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),Cu=[Tu],hr=t.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Cu,14,Su))}}),$u=["aria-labelledby"],ku=t.createElementVNode("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0zm281.6 369.778C779.378 381.156 600.178 500.622 472.178 691.2c0 0 0 2.844-2.845 2.844-8.533 5.69-48.355 36.978-88.177-8.533-39.823-51.2-62.578-99.555-142.223-142.222-2.844 0-2.844-2.845-2.844-2.845-8.533-11.377-39.822-56.888 19.911-56.888 45.511 0 91.022 11.377 162.133 73.955 5.69 5.689 14.223 5.689 17.067 0C469.333 517.69 608.711 366.933 768 318.578c0 0 19.911-2.845 31.289 14.222 5.689 11.378 11.378 22.756-5.689 36.978z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Du=[ku],Nu=t.defineComponent({__name:"Checked",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Du,14,$u))}}),Eu=["aria-labelledby"],Vu=t.createElementVNode("path",{d:"M512 1024c-136.533 0-264.533-54.044-361.244-150.756C54.044 776.534 0 648.534 0 512c0-136.533 54.044-264.533 150.756-361.244C247.466 54.044 375.466 0 512 0c136.533 0 264.533 54.044 361.244 150.756C969.956 247.466 1024 375.466 1024 512s-54.044 264.533-150.756 361.244C776.534 969.956 648.534 1024 512 1024zm0-938.667c-113.778 0-221.867 45.511-301.511 125.156S85.333 398.222 85.333 512s45.511 221.867 125.156 301.511S398.222 938.667 512 938.667s221.867-45.511 301.511-125.156S938.667 625.778 938.667 512 893.156 290.133 813.51 210.489 625.778 85.333 512 85.333z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Iu=[Vu],Pu=t.defineComponent({__name:"CheckNormal",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Iu,14,Eu))}}),Ou=["aria-labelledby"],Au=t.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Fu=[Au],Bu=t.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const o=e,l=n,a=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=r(o.height)??r(o.size),s.width=r(o.width)??r(o.size),s.color=o.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Fu,14,Ou))}}),{componentName:Ru,create:Mu}=ae("popup"),Lu=Mu(tu(Ru,{FoxOverLay:pn,Close:dr}));function _u(e,n,o,l,a,r){const i=t.resolveComponent("FoxOverLay"),u=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(u)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const it=$e(Lu,[["render",_u]]),Co=39,$o=64,{create:qu,scope:zu}=ae("calendar-pane"),ju=qu({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:le.getDay(0)},endDate:{type:String,default:le.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l,t:a}=ye.useFoxI18n(zu),r=l(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${Co}px`})),u=t.computed(()=>({height:`${$o}px`})),s=JSON.parse(a("weekdays")),d=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),h=t.ref(null),f=t.ref(null),y=t.ref(null),A=t.ref(null),p=t.ref(0),m=t.computed(()=>c.monthsData.slice(c.defaultRange[0],c.defaultRange[1])),v=t.computed(()=>o.btn),w=t.computed(()=>o["top-info"]),g=t.computed(()=>o["bottom-info"]),c=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),B=D=>D.split("-"),j=D=>le.isEqual(c.currDate[0],D),_=D=>le.isEqual(c.currDate[1],D),z=D=>c.currDate?.length>0?c.currDate?.some(V=>le.isEqual(V,D)):!1,F=(D,V)=>V.curData[0]+"-"+V.curData[1]+"-"+le.getNumTwoBit(+D.day),O=(D,V)=>{const L=F(D,V),{type:K}=e;return D.type=="curr"?le.isEqual(c.currDate,L)||(K=="range"||K=="week")&&(j(L)||_(L))||K=="multiple"&&z(L)?`${c.dayPrefix}--active`:c.propStartDate&&le.compareDate(L,c.propStartDate)||c.propEndDate&&le.compareDate(c.propEndDate,L)?`${c.dayPrefix}--disabled`:(K=="range"||K=="week")&&Array.isArray(c.currDate)&&Object.values(c.currDate).length==2&&le.compareDate(c.currDate[0],L)&&le.compareDate(L,c.currDate[1])?`${c.dayPrefix}--choose`:null:`${c.dayPrefix}--disabled`},T=()=>{const{type:D}=e;if(D=="range"&&c.chooseData.length==2||D!="range"){let V=c.chooseData.slice(0);D=="week"&&(V={weekDate:[q(c.chooseData[0]),q(c.chooseData[1])]}),n("choose",V),e.poppable&&n("update")}},S=(D,V,L=!1)=>{if(O(D,V)!=`${c.dayPrefix}--disabled`){const{type:K}=e;let[ee,ne]=V.curData,N=[...V.curData];if(N[2]=le.getNumTwoBit(Number(D.day)),N[3]=`${N[0]}-${N[1]}-${N[2]}`,N[4]=le.getWhatDay(+N[0],+N[1],+N[2]),K=="multiple")if(c.currDate?.length>0){let X;c.currDate?.forEach((te,re)=>{te==N[3]&&(X=re)}),L?c.chooseData.push([...N]):X!==void 0?(c.currDate.splice(X,1),c.chooseData.splice(X,1)):(c.currDate.push(N[3]),c.chooseData.push([...N]))}else c.currDate=[N[3]],c.chooseData=[[...N]];else if(K=="range"){let X=Object.values(c.currDate).length;X==2||X==0?c.currDate=[N[3]]:le.compareDate(c.currDate[0],N[3])?Array.isArray(c.currDate)&&c.currDate.push(N[3]):Array.isArray(c.currDate)&&c.currDate.unshift(N[3]),c.chooseData.length==2||!c.chooseData.length?c.chooseData=[[...N]]:le.compareDate(c.chooseData[0][3],N[3])?c.chooseData=[...c.chooseData,[...N]]:c.chooseData=[[...N],...c.chooseData]}else if(K=="week"){let X=le.getWeekDate(ee,ne,D.day,e.firstDayOfWeek);c.propStartDate&&le.compareDate(X[0],c.propStartDate)&&X.splice(0,1,c.propStartDate),c.propEndDate&&le.compareDate(c.propEndDate,X[1])&&X.splice(1,1,c.propEndDate),c.currDate=X,c.chooseData=[le.formatResultDate(X[0]),le.formatResultDate(X[1])]}else c.currDate=N[3],c.chooseData=[...N];if(!L){let X=c.chooseData;K=="week"&&(X={weekDate:[q(c.chooseData[0]),q(c.chooseData[1])]}),n("select",X),(e.isAutoBackFill||!e.poppable)&&T()}}},q=D=>{let[V,L,K]=D;return{date:D,monthWeekNum:le.getMonthWeek(V,L,K,e.firstDayOfWeek),yearWeekNum:le.getYearWeek(V,L,K,e.firstDayOfWeek)}},k=D=>{const V=D=="prev"?c.monthsData[0]:c.monthsData[c.monthsData.length-1];let L=parseInt(V.curData[0]),K=parseInt(V.curData[1].toString().replace(/^0/,""));switch(D){case"prev":K==1&&(L-=1),K=K==1?12:--K;break;case"next":K==12&&(L+=1),K=K==12?1:++K;break}return[L+"",le.getNumTwoBit(K),le.getMonthDays(String(L),String(K))+""]},E=(D,V,L)=>{let{year:K,month:ee}=L;return V=="prev"&&D>=7&&(D-=7),Array.from(Array(D),(ne,N)=>({day:String(N+1),type:V,year:K,month:ee}))},$=(D,V,L,K)=>{D=D-e.firstDayOfWeek;let{year:ee,month:ne}=L;return V=="prev"&&D>=7&&(D-=7),Array.from(Array(K),(X,te)=>({day:String(te+1),type:V,year:ee,month:ne})).slice(K-D)},H=(D,V)=>{const L=le.getMonthPreDay(+D[0],+D[1]);let K=Number(D[1])-1,ee=Number(D[0]);K<=0&&(K=12,ee+=1);const ne=le.getMonthDays(String(D[0]),String(D[1])),N=le.getMonthDays(ee+"",K+""),X={year:D[0],month:D[1]},te={curData:D,title:a("monthTitle",{year:X.year,month:X.month}),monthData:[...$(L,"prev",{month:String(K),year:String(ee)},N),...E(ne,"curr",X)],cssHeight:0,cssScrollHeight:0},re=te.monthData.length>35?6:5;te.cssHeight=Co+$o*re;let J=0;c.monthsData.length>0&&(J=c.monthsData[c.monthsData.length-1].cssScrollHeight+c.monthsData[c.monthsData.length-1].cssHeight),te.cssScrollHeight=J,V=="next"?(!c.endData||!le.compareDate(`${c.endData[0]}-${c.endData[1]}-${le.getMonthDays(c.endData[0],c.endData[1])}`,`${D[0]}-${D[1]}-${D[2]}`))&&c.monthsData.push(te):!c.startData||!le.compareDate(`${D[0]}-${D[1]}-${D[2]}`,`${c.startData[0]}-${c.startData[1]}-01`)?c.monthsData.unshift(te):c.unLoadPrev=!0},M=()=>{let D=e.startDate?e.startDate:le.getDay(0),V=e.endDate?e.endDate:le.getDay(365);c.propStartDate=D,c.propEndDate=V,c.startData=B(D),c.endData=B(V),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(c.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const L={year:Number(c.startData[0]),month:Number(c.startData[1])},K={year:Number(c.endData[0]),month:Number(c.endData[1])};let ee=K.month-L.month;K.year-L.year>0&&(ee=ee+12*(K.year-L.year)),ee<=0&&(ee=1),H(c.startData,"next");let ne=1;do H(k("next"),"next");while(ne++<ee);if(c.monthsNum=ee,e.type=="range"&&Array.isArray(c.currDate))c.currDate.length>0&&(D&&le.compareDate(c.currDate[0],D)&&c.currDate.splice(0,1,D),V&&le.compareDate(V,c.currDate[1])&&c.currDate.splice(1,1,V),c.defaultData=[...B(c.currDate[0]),...B(c.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let N=[],X={};c.currDate.forEach(te=>{D&&!le.compareDate(te,D)&&V&&!le.compareDate(V,te)&&(Object.hasOwnProperty.call(X,te)||(N.push(te),X[te]=te))}),c.currDate=[...N],c.defaultData=[...B(N[0])]}}else if(e.type=="week"&&Array.isArray(c.currDate)){if(c.currDate.length>0){let[N,X,te]=B(c.currDate[0]),re=le.getWeekDate(N,X,te,e.firstDayOfWeek);c.currDate=re,D&&le.compareDate(c.currDate[0],D)&&c.currDate.splice(0,1,D),V&&le.compareDate(V,c.currDate[1])&&c.currDate.splice(1,1,V),c.defaultData=[...B(c.currDate[0]),...B(c.currDate[1])]}}else c.currDate&&(D&&le.compareDate(c.currDate,D)?c.currDate=D:V&&!le.compareDate(c.currDate,V)&&(c.currDate=V),c.defaultData=[...B(c.currDate)])};pe({scrollToDate:D=>{le.compareDate(D,c.propStartDate)?D=c.propStartDate:le.compareDate(D,c.propEndDate)||(D=c.propEndDate);let V=B(D);c.monthsData.forEach((L,K)=>{if(L.title==a("monthTitle",{year:V[0],month:V[1]})&&h.value){let ee=c.monthsData[K].cssScrollHeight-h.value.scrollTop;if(e.toDateAnimation){let ne=0,N=setInterval(()=>{if(ne++,h.value){let X=ee/10;h.value.scrollTop=h.value.scrollTop+X}ne>=10&&(clearInterval(N),h.value&&(h.value.scrollTop=c.monthsData[K].cssScrollHeight))},40)}else h.value.scrollTop=c.monthsData[K].cssScrollHeight}})},initPosition:()=>{h?.value&&(h.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)},doLayout:()=>{let D=0,V=0;c.defaultData.length>0&&c.monthsData.forEach((ee,ne)=>{ee.title==a("monthTitle",{year:c.defaultData[0],month:c.defaultData[1]})&&(D=ne),(e.type=="range"||e.type=="week")&&ee.title==a("monthTitle",{year:c.defaultData[3],month:c.defaultData[4]})&&(V=ne)}),Q(c.monthsNum,D),c.currentIndex=D,c.yearMonthTitle=c.monthsData[c.currentIndex].title,c.defaultData.length>0&&(c.isRange?(S({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0),S({day:c.defaultData[5],type:"curr"},c.monthsData[V],!0)):e.type=="week"?S({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0):e.type=="multiple"?[...c.currDate].forEach(ee=>{let ne=B(ee),N=c.currentIndex;c.monthsData.forEach((X,te)=>{X.title==a("monthTitle",{year:ne[0],month:ne[1]})&&(N=te)}),S({day:ne[2],type:"curr"},c.monthsData[N],!0)}):S({day:c.defaultData[2],type:"curr"},c.monthsData[c.currentIndex],!0));let L=c.monthsData[c.monthsData.length-1],K=L.cssHeight+L.cssScrollHeight;rl(()=>{h?.value&&f?.value&&A?.value&&(p.value=h.value.clientHeight,f.value.style.height=`${K}px`,h.value.scrollTop=c.monthsData[c.currentIndex].cssScrollHeight)}),c.avgHeight=Math.floor(K/(c.monthsNum+1))}});const Q=(D,V)=>{D>=3?V>0&&V<D?c.defaultRange=[V-1,V+3]:V==0?c.defaultRange=[V,V+4]:V==D&&(c.defaultRange=[V-2,V+2]):c.defaultRange=[0,D+2];let L=c.monthsData[c.defaultRange[0]].cssScrollHeight;c.translateY=L},b=(D,V)=>(e.type=="range"||e.type=="week")&&D.type=="curr"&&O(D,V)=="fox-calendar__day--active",x=(D,V)=>b(D,V)&&j(F(D,V)),I=(D,V)=>c.currDate.length>=2&&_(F(D,V))?b(D,V):!1,R=()=>{if(c.currDate.length>=2)return le.isEqual(c.currDate[0],c.currDate[1])},C=D=>{const V=`${D.year}-${D.month}-${Number(D.day)<10?"0"+D.day:D.day}`;return le.isEqual(V,le.date2Str(new Date))},W=D=>{if(c.monthsData.length<=1)return;const V=D.target.scrollTop;let L=Math.floor(V/c.avgHeight);if(L==0)V>=c.monthsData[L+1].cssScrollHeight&&(L+=1);else if(L>0&&L<c.monthsNum-1)V>=c.monthsData[L+1].cssScrollHeight&&(L+=1),V<c.monthsData[L].cssScrollHeight&&(L-=1);else{const K=Math.round(V+p.value);K<c.monthsData[L].cssScrollHeight+c.monthsData[L].cssHeight&&V>c.monthsData[L-1].cssScrollHeight&&(L-=1),L+1<=c.monthsNum&&K>=c.monthsData[L+1].cssScrollHeight+c.monthsData[L+1].cssHeight&&(L+=1),L>=1&&V<c.monthsData[L-1].cssScrollHeight&&(L-=1)}c.currentIndex!==L&&(c.currentIndex=L,Q(c.monthsNum,L)),c.yearMonthTitle=c.monthsData[L].title},Z=()=>{c.chooseData.splice(0),c.monthsData.splice(0),M()};return M(),t.watch(()=>e.defaultValue,D=>{D&&e.poppable&&Z()}),{dayTitleStyle:i,dayCellStyle:u,weeks:d,compConthsData:m,showTopBtn:v,topInfo:w,bottomInfo:g,rangeTip:R,mothsViewScroll:W,getClass:O,isStartTip:x,isEndTip:I,chooseDay:S,isCurrDay:C,confirm:T,months:h,...t.toRefs(c),...t.toRefs(e),...r,monthsPanel:f,weeksPanel:y,viewArea:A}}}),Hu={class:"fox-calendar__header"},Ku={key:0,class:"fox-calendar__header-title"},Yu={key:1,class:"fox-calendar__header-slot"},Wu={key:2,class:"fox-calendar__header-subtitle"},Uu={class:"fox-calendar__weekdays",ref:"weeksPanel"},Gu={class:"fox-calendar__panel",ref:"monthsPanel"},Xu={class:"fox-calendar__days"},Zu=["onClick"],Qu={class:"fox-calendar__day-value"},Ju={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},ec={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},tc={key:2,class:"fox-calendar__day-tips--curr"},nc={key:4,class:"fox-calendar__day-tip"},lc={key:0,class:"fox-calendar__footer"};function oc(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Hu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Ku,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Yu,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Wu,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Uu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:u},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",Gu,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:u},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(i.title),5),t.createElementVNode("view",Xu,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.monthData,(s,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(s,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:h=>e.chooseDay(s,i)},[t.createElementVNode("view",Qu,[t.renderSlot(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[t.createTextVNode(t.toDisplayString(s.type=="curr"?s.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Ju,[t.renderSlot(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",ec,[t.renderSlot(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?(t.openBlock(),t.createElementBlock("view",tc,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(s,i)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(s,i)?(t.openBlock(),t.createElementBlock("view",nc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Zu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",lc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const ac=$e(ju,[["render",oc]]),{create:rc}=ae("calendar-picker"),ic=rc({components:{CalendarPane:ac,Popup:it},props:{...Cl},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=t.computed(()=>o.btn),a=t.computed(()=>o["top-info"]),r=t.computed(()=>o.day),i=t.computed(()=>o["bottom-info"]),u=t.ref(null),s=v=>{u.value?.scrollToDate(v)},d=()=>{u.value?.initPosition()},h=t.computed(()=>{const v=["fox-calendar__popup"];return e.popClass&&v.push(e.popClass),v});t.watch(()=>e.visible,v=>{v&&t.nextTick(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),pe({scrollToDate:s,initPosition:d});const f=()=>{n("update:visible",!1)},y=()=>{n("close"),n("update:visible",!1)};return{popClasses:h,closePopup:()=>{y()},update:f,close:y,select:v=>{n("select",v)},choose:v=>{y(),n("choose",v)},calendarRef:u,showTopBtn:l,topInfo:a,dayInfo:r,bottomInfo:i}}});function sc(e,n,o,l,a,r){const i=t.resolveComponent("CalendarPane"),u=t.resolveComponent("Popup");return e.poppable?(t.openBlock(),t.createBlock(u,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"pop-class":e.popClasses,style:e.popStyle}),{default:t.withCtx(()=>[t.createVNode(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","pop-class","style"])):(t.openBlock(),t.createBlock(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const yn=$e(ic,[["render",sc]]),Rn=(e,n)=>{let o;return Qe(e)?o=e:typeof e=="string"&&qe(e)>0?o=le.parser(e,n):o=new Date,o},ut=(e,n,o)=>(Qe(n)||(n=new Date),le.format(n,o)),ct=e=>{let n=`${e.getFullYear()}`,o=`${e.getMonth()+1}`,l=`${e.getDate()}`,a=le.date2Str(e),r=le.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,o,l,a,r]},ko={...Cl,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 uc(e,n,o){return{props:{...ve,...Te,...ko},emits:["change","update:modelValue","blur","focus","clear"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]);let h=fe(l,"hintText"),f=t.ref(!1);const y=t.ref(!1),A=t.computed(()=>l.type==="range"),p=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),m=()=>{p.startDate!==null&&(p.startDate=null,p.endDate=null,p.startArray=[],p.endArray=[])},v=(M,U="one",Y="YYYY-MM-DD")=>{if(eu(M)){m();return}if(A.value&&Array.isArray(M)&&M.length==2){let G,Q;typeof M[0]=="string"?(G=Rn(M[0],Y),Q=Rn(M[1],Y)):(G=M[0],Q=M[1]);let b=ct(G),x=ct(Q);(p.startDate===null||p.startDate.getTime()!==G.getTime()||p.endDate?.getTime()!==Q.getTime())&&(p.startDate=G,p.startArray=b,p.endDate=Q,p.endArray=x)}else{let G;typeof M=="string"?G=Rn(M,Y):G=M;let Q=ct(G);(p.startDate===null||p.startDate.getTime()!==G.getTime())&&(p.startDate=G,p.startArray=Q)}};v(l.modelValue,l.type,l.valueFormat),t.watch(()=>l.modelValue,M=>{v(M,l.type,l.valueFormat)});const w=t.computed(()=>{if(p.startDate===null)return"";if(A.value){let M=ut(l,p.startDate,l.format),U=ut(l,p.endDate,l.format);return`${M} ${l.rangeSeparator} ${U}`}else{let M=ut(l,p.startDate,l.format);return l.showWeek&&(M=`${M} ${p.startArray[4]}`),M}}),g=t.computed(()=>{if(p.startDate===null)return null;if(A.value){let M=le.date2Str(p.startDate),U=le.date2Str(p.endDate??new Date);return[M,U]}else return le.date2Str(p.startDate)}),c="fox-input-item",B=t.computed(()=>({[c]:!0,[`${c}__disabled`]:r.value})),j=De(t.computed(()=>l.textAlign),"textAlign"),_=t.computed(()=>({textAlign:j.value??"right"})),z=t.ref(!1),F=()=>{i.value||r.value||(z.value=!0)},O=()=>{z.value=!1},T=M=>{z.value=M},S=M=>{if(M){if(A.value&&Array.isArray(M)){let U=M[0],Y=de(U[0]),G=de(U[1]),Q=de(U[2]),b=new Date(Y,G-1,Q),x=M[1];Y=de(x[0]),G=de(x[1]),Q=de(x[2]);let I=new Date(Y,G-1,Q);if(p.startDate=b,p.startArray=ct(b),p.endDate=I,p.endArray=ct(I),l.valueFormat){let R=ut(l,b,l.valueFormat),C=ut(l,I,l.valueFormat);u("update:modelValue",[R,C],{})}else u("update:modelValue",[b,I],{})}else{let U=M,Y=de(U[0]),G=de(U[1]),Q=de(U[2]),b=new Date(Y,G-1,Q);if(p.startDate=b,p.startArray=ct(b),l.valueFormat){let x=ut(l,b,l.valueFormat);u("update:modelValue",x,{})}else u("update:modelValue",b,{})}u("change",M,{})}},q=M=>{let Y=M.target.value;y.value=!0,u("focus",Y,M)},k=M=>{setTimeout(()=>{y.value=!1},0);let Y=M.target.value;l.maxLength&&Y.length>Number(l.maxLength)&&(Y=Y.slice(0,Number(l.maxLength))),u("blur",Y,M)},E=t.computed(()=>qe(l.unit)>0),$=M=>{m(),u("update:modelValue",null,M),u("change","",M),u("clear","")},H=t.ref();return pe({showPicker:F,hidePicker:O,focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const M={class:B.value,style:_.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:l.clearable,value:w.value,onClick:F,onFocus:q,onBlur:k,onClear:$},U={};a.slots.prepend&&(U.prepend=a.slots.prepend),a.slots.append&&(U.append=a.slots.append),a.slots.prefix?U.prefix=a.slots.prefix:U.prefix=()=>t.h(P.ElIcon,{},{default:()=>t.h(Se.Calendar)}),a.slots.suffix?U.suffix=a.slots.suffix:E.value&&(U.suffix=()=>[l.unit]);const Y=[],G=t.h(P.ElInput,M,U);Y.push(G);const Q={default:()=>Y};a.slots.default&&(Q.label=a.slots.default),a.slots.fixedTip&&(Q.fixedTip=a.slots.fixedTip);const b=pt(l,Cl);b.visible=z.value,b["onUpdate:visible"]=T,b["default-value"]=g.value,b.onChoose=S;const x={};if(a.slots.btn){const Z=a.slots.btn();x.btn=()=>Z}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 I=t.h(yn,b,x);Q.hide=()=>[I];const C={...Ne(l,ko),hintText:h.value,hintVisible:f.value,prop:`${l.prop??a.attrs.name}_item`};return t.h(o,C,Q)}}}}const{componentName:cc,create:fc,scope:dc}=ae("calendar-item"),kl=fc(uc(cc,dc,be)),Do={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function hc(e,n,o){return{props:{...ve,...Te,...Do},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=fe(l,"modelValue"),y=e,A=t.computed(()=>({[y]:!0})),p=_=>{f.value=_,u("update:modelValue",_),u("change",_)};let m=fe(l,"hintText"),v=t.ref(!1);const w=_=>{let F=_.target.value;h.value=!0,ge(m.value)||(v.value=!0),u("focus",F,_)},g=_=>{setTimeout(()=>{v.value&&(v.value=!1),h.value=!1},0);let F=_.target.value;l.maxLength&&F.length>Number(l.maxLength)&&(F=F.slice(0,Number(l.maxLength))),u("blur",F,_)},c=()=>{u("clear","")},B=_=>{u("visible-change",_)},j=t.ref();return pe({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},handleOpen:()=>{j?.value.handleOpen()},handleClose:()=>{j?.value.handleClose()}}),()=>{const z={...a.attrs,ref:j,class:A.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":p,onClear:c,onFocus:w,onBlur:g,onVisibleChange:B},F={},O=[],T=t.h(P.ElTimePicker,z,F);O.push(T);const S={default:()=>O};a.slots.default&&(S.label=a.slots.default),a.slots.fixedTip&&(S.fixedTip=a.slots.fixedTip);const k={...Ne(l,Do),hintText:m.value,hintVisible:v.value,prop:`${l.prop}_item`};return t.h(o,k,S)}}}}const{componentName:mc,create:gc,scope:pc}=ae("time-item"),Dl=gc(hc(mc,pc,be)),No={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function vc(e,n,o){return{props:{...ve,...Te,...No},emits:["change","update:modelValue","blur","focus","clear"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=fe(l,"modelValue"),y=e,A=t.computed(()=>({[y]:!0})),p=j=>{f.value=j,u("update:modelValue",j),u("change",j)};let m=fe(l,"hintText"),v=t.ref(!1);const w=j=>{let z=j.target.value;h.value=!0,ge(m.value)||(v.value=!0),u("focus",z,j)},g=j=>{setTimeout(()=>{v.value&&(v.value=!1),h.value=!1},0);let z=j.target.value;l.maxLength&&z.length>Number(l.maxLength)&&(z=z.slice(0,Number(l.maxLength))),u("blur",z,j)},c=()=>{u("clear","")},B=t.ref();return pe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const _={...a.attrs,ref:B,class:A.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":p,onClear:c,onFocus:w,onBlur:g},z={},F=[],O=t.h(P.ElTimeSelect,_,z);F.push(O);const T={default:()=>F};a.slots.default&&(T.label=a.slots.default),a.slots.fixedTip&&(T.fixedTip=a.slots.fixedTip);const q={...Ne(l,No),hintText:m.value,hintVisible:v.value,prop:`${l.prop}_item`};return t.h(o,q,T)}}}}const{componentName:yc,create:bc,scope:wc}=ae("time-select-item"),Nl=bc(vc(yc,wc,be));function Eo(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let a=l;for(let r=o.length-1;r>=l;r--)if(o.charAt(r)!="0"){a=r;break}return a-l<n?a=l+n+1:a!=l&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function Vo(e,n,o=20){if(typeof n=="string"&&(n=de(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=ba(`${e}`,`${n}`);return Eo(l)}else{let l=sl(`${e}`,wa(`${n}`),20);return Eo(l)}}function xc(e,n=-1,o=!1,l=3,a=","){return Jt(e,n,o,l,a)}function Io(e,n,o,l,a=!0){if(e=="")return"";if(e=xa(e),n=de(n),n==1)return e;if(l)e=Vo(e,n),o&&(e=="0"&&a?e=`${e}.`.padEnd(de(o)+2,"0"):e=sl(e,1,de(o)));else{let r=-1*n;e=Vo(e,r)}return e}function Po(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=se(n.minInclude),a=Gn(e,n.min);if(l&&a==-1||!l&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";o.message=r.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let l=se(n.maxInclude),a=Gn(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(o.maxValid=!1)}return o}const Oo={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Sc(e,n,o){return{props:{...ve,...Te,...Oo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),s=t.ref(!1),d=fe(l,"modelValue"),h=t.ref("");t.watch([()=>d.value,()=>l.rates,()=>l.precision],([k,E,$])=>{if(ge(k)){h.value="";return}const H=Io(k,E,$,!1);h.value!==H&&(h.value=H)},{immediate:!0});const f=t.computed(()=>{let k="";return s.value&&(k=h.value),k}),{t:y}=ye.useFoxI18n(n),A=t.computed(()=>{let k=l.placeholder??"";return!s.value&&!ge(h.value)?k=xc(h.value,l.decimalLength,l.autoPadding,l.digits,l.separator):k=y(["placeholder",k]),k}),p=e,m=t.computed(()=>({[p]:!0,[`${p}__disabled`]:r.value,[`${p}__placeholder`]:h.value.length>0})),v=De(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>s.value?{textAlign:"left"}:{textAlign:v.value??"right"});const w=t.ref(""),g=t.computed(()=>{let k=w.value;return ge(k)&&(k=l.errorTip??""),k}),c=t.ref(""),B=t.ref(!1),j=(k,E)=>{if(k=`${k}`,ge(k)){h.value="",d.value="",E.forEach($=>{u($,"")}),se(l.showTip)&&B.value&&(B.value=!1);return}if(k.length>=2){let $=k;if($.charAt(0)=="-"&&($=$.substring(1)),$.length>=2&&$.charAt(0)=="0"&&$.charAt(1)!="."){t.triggerRef(h);return}}if(k!="-"){if(!Ea(k)){t.triggerRef(h);return}if(l.integerLength!=-1&&Va(k)>Number(l.integerLength)){t.triggerRef(h);return}if(l.decimalLength&&l.decimalLength!=-1&&Ia(k)>Number(l.decimalLength)){t.triggerRef(h);return}let $=Po(k,l);if($.maxValid===!1){w.value=$.message,t.triggerRef(h);return}}else if(l.min!=null&&de(l.min)>=0){t.triggerRef(h);return}c.value=k,se(l.showTip)&&(B.value=k.length>0),h.value=k,d.value=Io(k,l.rates,l.precision,!0),E.forEach($=>{u($,d.value)})},_=k=>{j(k,["update:modelValue","input"])},z=k=>{j(k,["update:modelValue","change"])},F=k=>{if(s.value=!0,se(l.showTip)){let E=h.value;ge(E)&&(E=l.hintText),ge(E)||(c.value=E,B.value=!0)}w.value="",u("focus",d.value,k)},O=k=>{if(setTimeout(()=>{s.value=!1,se(l.showTip)&&B.value===!0&&(B.value=!1)},0),!ge(h.value)){let E=Po(h.value,l);if(E.minValid===!1||E.maxValid===!1){w.value=E.message;return}}u("update:modelValue",d.value,k),u("blur",d.value,k)},T=()=>{u("clear","")},S=t.computed(()=>qe(l.unit)>0),q=t.ref();return pe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const E={...Ke(a.attrs),ref:q,class:m.value,type:"digit",maxlength:l.maxLength,placeholder:A.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:f.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:T,onInput:_,onChange:z,onFocus:F,onBlur:O},$={};a.slots.prepend&&($.prepend=a.slots.prepend),a.slots.append&&($.append=a.slots.append),a.slots.prefix&&($.prefix=a.slots.prefix),a.slots.suffix?$.suffix=a.slots.suffix:S.value&&($.suffix=()=>[l.unit]);const H=[],M=t.h(P.ElInput,E,$);H.push(M);const U={default:()=>H};a.slots.default&&(U.label=a.slots.default),a.slots.fixedTip&&(U.fixedTip=a.slots.fixedTip);const G={...Ne(l,Oo),errorTip:g.value,hintText:c.value,hintVisible:B.value,hintType:"number",prop:`${l.prop}_item`};return t.h(o,G,U)}}}}const{componentName:Tc,create:Cc,scope:$c}=ae("money-item"),El=Cc(Sc(Tc,$c,be)),Ao={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 kc(e,n,o){return{props:{...ve,...Te,...Ao},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=fe(l,"modelValue"),y=e,A=t.computed(()=>({[y]:!0,[`${y}__append`]:_.value})),p=t.computed(()=>({[`${y}__unit`]:!0})),m=F=>{f.value=F,u("update:modelValue",F),u("input",F)},v=F=>{u("change",F)};let w=fe(l,"hintText"),g=t.ref(!1);const c=F=>{let T=F.target.value;h.value=!0,ge(w.value)||(g.value=!0),u("focus",T,F)},B=F=>{setTimeout(()=>{g.value&&(g.value=!1),h.value=!1},0);let T=F.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),u("blur",T,F)},j=()=>{u("clear","")},_=t.computed(()=>qe(l.unit)>0),z=t.ref();return pe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const O={...Ke(a.attrs),ref:z,class:A.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:f.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:j,onChange:v,onInput:m,onFocus:c,onBlur:B},T={},S=[],q=t.h(P.ElInputNumber,O,T);S.push(q);const k={default:()=>S};a.slots.default&&(k.label=a.slots.default),a.slots.fixedTip&&(k.fixedTip=a.slots.fixedTip);const $={...Ne(l,Ao),hintText:w.value,hintVisible:g.value,prop:`${l.prop}_item`};if(a.slots.append)k.append=a.slots.append;else if(_.value){const M={class:p.value},U=t.h("div",M,[l.unit]);k.append=()=>U}return t.h(o,$,k)}}}}const{componentName:Dc,create:Nc,scope:Ec}=ae("input-number-item"),Vl=Nc(kc(Dc,Ec,be));function Pt(e,n){const o=e.textKey??"text";return n[o]??""}function Ot(e,n){const o=e.valueKey??"value";return n[o]}function mr(e,n){const o=e.childrenKey??"children";return n[o]}function _t(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const a=n[l],r=Pt(e,a),i=Ot(e,a);o.texts.push(r),o.values.push(i??"")}return o}function gr(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let i=0;i<n.length;i++)if(Pt(e,n[i])===r){const s=Ot(e,n[i])??"",d={[e.textKey]:r,[e.valueKey]:s};a.push(d);const h=mr(e,n[i]);Array.isArray(h)&&gr(e,h,o,l+1,a);return}}function pr(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let i=0;i<n.length;i++)if(Ot(e,n[i])===r){const s=Pt(e,n[i])??"",d={[e.textKey]:s,[e.valueKey]:r};a.push(d);const h=mr(e,n[i]);Array.isArray(h)&&pr(e,h,o,l+1,a);return}}function Mn(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++){const a=Pt(e,n[l]),r=Pt(e,o[l]);if(a!==r)return!1;const i=Ot(e,n[l]),u=Ot(e,o[l]);if(i!==u)return!1}return!0}let Vc=class{proxy;constructor(n){this.proxy=n}async load(n,o){const l="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const a=Oe(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(n,o))}};function Ic(){const e=t.getCurrentInstance();return new Vc(e.proxy)}const Ht=(e,n,o)=>e.map(l=>{const{value:a="value",text:r="text",children:i="children"}=o??{},{[a]:u,[r]:s,[i]:d,...h}=l,f={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return f.children&&f.children.length&&(f.children=Ht(f.children,f,o)),f}),vr=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&vr(l.children,n)},Pc={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Oc=(e,n)=>{const o={...Pc,...n||{}},{topId:l,idKey:a,pidKey:r,sortKey:i}=o;let u=[],s={};return e.forEach(d=>{d={...d};const{[a]:h,[r]:f}=d,y=s[f]=s[f]||[];!u.length&&f===l&&(u=y),y.push(d),d.children=s[h]||(s[h]=[])}),i&&Object.keys(s).forEach(d=>{s[d].length>1&&s[d].sort((h,f)=>h[i]-f[i])}),s=null,u},Ac={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Fo=(e,n)=>n[e.textKey],$t=(e,n)=>n[e.valueKey],Fc=(e,n)=>n[e.visibleKey],Bo=(e,n)=>n[e.disabledKey],Bc=(e,n)=>{const o=n[e.doitKey];return se(o)},Rc=(e,n)=>{const o=n[e.numKey];return o==null?null:de(n[o])},Ro=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function Mc(e,n,o,l=!1){return{props:{...Ac},emits:["update:modelValue","change"],setup(a,{slots:r,emit:i}){const u=t.computed(()=>{const b={};return b[`${e}`]=!0,b}),s=t.computed(()=>{const b={};return b[`${e}__titles`]=!0,b[`${a.direction}`]=!0,a.align==="left"&&(b.left=!0),a.scroll===!0&&(b.scrollable=!0),a.shape&&(b[`${a.shape}`]=!0),b}),d=t.computed(()=>({})),h=t.computed(()=>{if(!a.gutter)return 0;const b=he(a.gutter);return b<=0?0:b}),f=t.ref(a.modelValue);t.watch(()=>a.modelValue,b=>{f.value!==b&&(f.value=b,M(!1))});const y=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),A=t.computed(()=>{const b={};return m.value||(b.display="none"),b}),p=t.ref(),m=t.ref(!1),v=()=>{const b=!m.value;w(b)},w=b=>{const x=b;x?(m.value=x,setTimeout(()=>{y.value["fox-tabs-bar__popup--show"]=!0,y.value["fox-tabs-bar__popup--hide"]=!1},0)):(y.value["fox-tabs-bar__popup--show"]=!1,y.value["fox-tabs-bar__popup--hide"]=!0,p.value?p.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},g=t.ref(),c=t.ref([]),B=(b,x)=>{c.value[x]=b},j=b=>x=>{B(x,b)},_=(b,x)=>{const I=g.value,R=c.value;if(!I||!R||!R[b])return;const C=R[b];let W=0;a.direction==="vertical"?W=C.offsetTop-(I.offsetHeight-C.offsetHeight)/2:W=C.offsetLeft-(I.offsetWidth-C.offsetWidth)/2,z(I,W,x?0:.3,a.direction)},z=(b,x,I,R)=>{let C=0;const W=R==="horizontal"?b.scrollLeft:b.scrollTop,Z=I===0?1:Math.round(I*1e3/16);function D(){R==="horizontal"?b.scrollLeft+=(x-W)/Z:b.scrollTop+=(x-W)/Z,++C<Z&&ul(D)}D()},F=(b,x)=>{const I=$t(a,b),R={};return R[`${e}__titles-item`]=!0,R.disabled=Bo(a,b),R.active=I===f.value,a.shape&&(R[`${a.shape}`]=!0),a.ellipsis&&(R.ellipsis=!0),x&&(x.class&&(R[`${x.class}`]=!0),x.disabled===!0&&(R.disabled=x.disabled)),R},O=(b,x)=>{const I={};if(h.value>0){const R=Math.abs(h.value/2);a.direction==="vertical"?(I["margin-top"]=`${R}px`,I["margin-bottom"]=`${R}px`):(I["margin-left"]=`${R}px`,I["margin-right"]=`${R}px`)}return x&&x.style&&Object.assign(I,x.style),I},T=(b,x)=>`${$t(a,b)??x}`,S=(b,x)=>{const I=$t(a,b),R={};R[`${e}__popup-item`]=!0,R.disabled=Bo(a,b),R.active=I===f.value,a.shape&&(R[`${a.shape}`]=!0);const C=Ro(a,b,x);return C&&C.disabled===!0&&(R.disabled=C.disabled),R},q=t.computed(()=>(a.data??[]).filter(x=>Fc(a,x)!==!1)),k=(b,x)=>{const I=$t(a,b);if(f.value==I)return;const R=()=>{f.value=I,a.scroll&&_(x,!1),i("update:modelValue",I),i("change",b,x)};if(typeof a.beforeChange=="function"){const C=a.beforeChange(b,x);Wt(C)?C.then(W=>{W!==!1&&R()}).catch(()=>{R()}):C!==!1&&R()}else R()},E=(b,x)=>function(){k(b,x)},$=(b,x)=>{k(b,x),w(!1)},H=(b,x)=>function(){$(b,x)},M=b=>{if(!Array.isArray(a.data)||!a.scroll)return;const x=a.data.findIndex(I=>$t(a,I)===f.value);x!==-1&&_(x,b)};t.watch(()=>a.data,()=>{setTimeout(M,0)}),t.onMounted(()=>{M(!0)});const U=(b,x)=>{if(r.item)return r.item({item:b,index:x});const I=Ro(a,b,x),R=[];if(r.text){const D=r.text({item:b,index:x});R.push(D)}else{const D=[];if(I?.doit===!0||Bc(a,b)){const ee={class:[`${e}__titles-item-tip`,"doit"]},ne=t.h("view",ee);D.push(ne)}const V=I?.num??Rc(a,b);if(V){let ee="";const ne=de(V);ne>=100?ee="99+":ee=`${ne}`;const N={class:[`${e}__titles-item-tip`,"num"]},X=t.h("view",N,[ee]);D.push(X)}const L={class:`${e}__titles-item-text`};D.push(Fo(a,b));const K=t.h("view",L,D);R.push(K)}const C={class:`${e}__titles-item-line`},W=t.h("view",C);R.push(W);const Z={ref:j(x),class:F(b,I),style:O(b,I),key:T(b,x),onClick:E(b,x)};return t.h("view",Z,R)},Y=()=>{const b=r.default?r.default():[];if(b.length===0)for(let I=0;I<q.value.length;I++){const R=q.value[I],C=U(R,I);b.push(C)}const x={ref:g,class:s.value,style:d.value};return t.h("view",x,b)},G=()=>{let b=null;r.navigation?b=r.navigation():b=t.h(o);const x={class:`${e}__navigation`,onClick:v};return t.h("view",x,[b])},Q=()=>{const b=[];for(let I=0;I<q.value.length;I++){const R=q.value[I];let C=null;r.popupItem?C=r.popupItem({item:R,index:I}):C=Fo(a,R);const W={class:S(R,I),key:T(R,I),onClick:H(R,I)},Z=t.h("view",W,[C]);b.push(Z)}const x={class:y.value,style:A.value};return t.h("view",x,b)};return()=>{const b=[],x=Y();if(b.push(x),a.showQuickNavigation){const R=G();b.push(R);const C=Q();b.push(C)}const I={class:u.value};return t.h("view",I,b)}}}}const{create:Lc,componentName:_c,scope:qc}=ae("tabs-bar"),bn=Lc(Mc(_c,qc,gu,!1)),yr=Symbol("TabsStatesKey"),zc={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function jc(e,n,o=!1){return{props:{...zc},emits:["update:modelValue","change"],setup(l,{emit:a,slots:r}){const i=t.shallowRef([]),u={current:t.ref(l.modelValue??""),direction:t.ref(l.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:m=>{const v={name:m};u.current.value===m&&(v.loaded=!0),i.value.push(v),t.triggerRef(i)},remove:m=>{const v=i.value.findIndex(w=>w.name===m);v!==-1&&i.value.splice(v,1)},isLoaded:m=>{if(!l.lazy)return!0;const v=i.value.findIndex(w=>w.name===m);return v!==-1?u.current.value?i.value[v].loaded??!1:v===0:!1}};t.provide(yr,u);const s=m=>{const v=i.value.findIndex(w=>w.name===m);v!==-1&&(i.value[v].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([m,v])=>{u.current.value!==m&&(u.current.value=m??"",s(m??"")),u.direction.value!==v&&(u.direction.value=v)});const d=t.ref(null),h=t.ref(null),f=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let y=!0;const A=t.computed(()=>{const m={},v=i.value.length;if(v<=0)return m;const w=i.value.findIndex(g=>g.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(m.height=`${v*u.tabHeight.value}px`,w!==-1&&(m.transform=`translate(0, -${w*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(m.width=`${v*u.tabWidth.value}px`,w!==-1&&(m.transform=`translate(-${w*u.tabWidth.value}px, 0)`)),y&&(y=!1,m.transition="transform 0s ease;"),m});let p=null;return t.onMounted(()=>{if(!d.value)return;const m=()=>{const v=sn(d.value);u.tabWidth.value=v.width,u.tabHeight.value=v.height};window.ResizeObserver&&(p=new window.ResizeObserver(m),p.observe(d.value)),m()}),t.onBeforeUnmount(()=>{p&&(p.disconnect(),p=null)}),()=>{const m={class:`${e}__panes`,style:A.value,ref:h},v=t.h("view",m,[r?.default?.()]),w={class:f.value,ref:d};return t.h("view",w,[v])}}}}const{create:Hc,componentName:Kc,scope:Yc}=ae("tabs-container"),wn=Hc(jc(Kc,Yc,!1)),Wc={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Uc(e,n,o){return{props:{...Wc},setup(l,{emit:a,slots:r}){const i=t.inject(yr);t.onMounted(()=>{i.add(l.paneKey)}),t.onBeforeUnmount(()=>{i.remove(l.paneKey)});const u=t.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),s=t.computed(()=>l.loaded!=null?se(l.loaded):i.isLoaded(l.paneKey));return()=>{let d=[];if(s.value)d=r?.default?.()??[];else if(r.empty)d=r.empty();else{const f={class:`${e}__empty-icon`},y=l.emptyIcon??o,A=t.h(y,f),p={class:`${e}__empty-text`},m=l.emptyText??"Loading",v=t.h("view",p,[m]),w={class:`${e}__empty`},g=t.h("view",w,[A,v]);d.push(g)}const h={class:`${e}`,style:u.value};return t.h("view",h,d)}}}}const{create:Gc,componentName:Xc,scope:Zc}=ae("tabs-pane"),xn=Gc(Uc(Xc,Zc,vn));class Mo{nodes;config;constructor(n,o){this.config={value:"value",text:"text",children:"children",...o||{}},this.nodes=Ht(n,null,this.config)}updateChildren(n,o){o?o.children=Ht(n,o,this.config):this.nodes=Ht(n,null,this.config)}getNodeByValue(n){let o;return vr(this.nodes,l=>{if(l.value===n)return o=l,!0}),o}getPathNodesByValue(n){if(!n.length)return[];const o=[];let l=this.nodes;for(;l&&l.length;){const a=l.find(r=>r.value===n[r.level]);if(!a)break;o.push(a),l=a.children}return o}isLeaf(n,o){const{leaf:l,children:a}=n,r=Array.isArray(a)&&!!a.length;return l||!r&&!o}hasChildren(n,o){if(this.isLeaf(n,o))return!1;const{children:a}=n;return Array.isArray(a)&&!!a.length}}const{create:Qc,scope:Jc}=ae("cascader-pane"),ef=Qc({components:{Loading:vn,Checklist:hr,TabsBar:bn,TabsContainer:wn,TabsPane:xn},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:o}=ye.useFoxI18n(Jc),l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=t.ref(0),r=t.ref(!1),i=t.ref(e.modelValue),u=t.ref(new Mo([],{})),s=t.ref([]),d=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),h=t.computed(()=>r.value==!0||s.value.length==0?[{text:"Loading",value:0}]:s.value.map((g,c)=>({text:g.selectedNode?g.selectedNode.text:o("select"),value:c}))),f=new Map;let y;const A=async()=>{f.clear(),s.value=[],a.value=0,r.value=!1,y=null;let{options:g}=e;l.value.convertConfig&&(g=Oc(g,l.value.convertConfig)),u.value=new Mo(g,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),d.value&&!u.value.nodes.length&&await m({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:u.value.nodes,selectedNode:null}],p()},p=async()=>{const g=i.value;if(g===void 0||!u.value.nodes.length)return;if(g.length===0){a.value=0,s.value=[{nodes:u.value.nodes,selectedNode:null}];return}let c=g;if(d.value&&Array.isArray(g)&&g.length){c=[];let B=u.value.nodes.find(j=>j.value===g[0]);if(B){c=[B.value],r.value=!0;const j=await g.slice(1).reduce(async(_,z)=>{const F=await _;await m(F);const O=F?.children?.find(T=>T.value===z);return O&&c.push(z),Promise.resolve(O)},Promise.resolve(B));await m(j),r.value=!1}}c.length&&g===e.modelValue&&u.value.getPathNodesByValue(c).map((j,_)=>{a.value=_,w.handleNode(j,!0)})},m=async g=>{if(!g)return;if(!l.value.lazyLoad){g.leaf=!0;return}if(u.value.isLeaf(g,d.value)||u.value.hasChildren(g,d.value))return;g.loading=!0;const c=g.root?null:g;let B=f.get(g);B||(B=new Promise(_=>{l.value.lazyLoad?.(g,_)}),f.set(g,B));const j=await B;Array.isArray(j)&&j.length>0?u.value.updateChildren(j,c):g.leaf=!0,g.loading=!1,f.delete(g)},v=g=>{const c=g.map(B=>B.value);i.value=c,n("change",c,g),n("update:modelValue",c,g)},w={async handleNode(g,c){const{disabled:B,loading:j}=g;if(!(!c&&B||!s.value[a.value])){if(u.value.isLeaf(g,d.value)){if(g.leaf=!0,s.value[a.value].selectedNode=g,s.value=s.value.slice(0,g.level+1),!c){const _=s.value.map(z=>z.selectedNode);v(_),n("pathChange",_)}return}if(u.value.hasChildren(g,d.value)){const _=g.level+1;if(s.value[a.value].selectedNode=g,s.value=s.value.slice(0,_),s.value.push({nodes:g.children||[],selectedNode:null}),a.value=_,!c){const z=s.value.map(F=>F.selectedNode);n("pathChange",z)}return}y=g,!j&&(await m(g),y===g&&(s.value[a.value].selectedNode=g,w.handleNode(g,c)))}},handleTabChange(g,c){y=null},formatTabTitle(g){return g.selectedNode?g.selectedNode.text:o("select")},isSelected(g,c){return g.selectedNode&&g.selectedNode.value===c.value}};return t.watch([l,()=>e.options],()=>{A()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,g=>{g!==i.value&&(i.value=g,p())}),t.watch(()=>e.visible,g=>{g&&Array.isArray(i.value)&&i.value.length>0&&p()}),{panes:s,panesTitles:h,initLoading:r,tabsCursor:a,...w}}}),tf={class:"fox-cascader"},nf={role:"menu",class:"fox-cascader__pane"},lf=["aria-checked","aria-disabled","onClick"],of={class:"fox-cascader__item__title"},af=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function rf(e,n,o,l,a,r){const i=t.resolveComponent("TabsBar"),u=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),h=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",tf,[t.createVNode(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=f=>e.tabsCursor=f),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(h,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=f=>e.tabsCursor=f)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(f,y)=>(t.openBlock(),t.createBlock(d,{"pane-key":y,key:y},{default:t.withCtx(()=>[t.createElementVNode("view",nf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.nodes,A=>(t.openBlock(),t.createElementBlock("view",{key:A.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(f,A),disabled:A.disabled}]),"aria-checked":e.isSelected(f,A),"aria-disabled":A.disabled||void 0,role:"menuitemradio",onClick:p=>e.handleNode(A,!1)},[t.createElementVNode("view",of,t.toDisplayString(A.text),1),A.loading?(t.openBlock(),t.createBlock(u,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,lf))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(d,{key:1,"pane-key":0},{default:t.withCtx(()=>[af]),_:1}))]),_:1},8,["modelValue"])])}const sf=$e(ef,[["render",rf]]),{create:uf}=ae("cascader-picker"),cf=uf({components:{FoxCascaderPane:sf,FoxPopup:it},props:{...$l,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const o=t.ref(e.modelValue),l=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),a=(i,u)=>{o.value=i,l.value=!1,n("change",i,u),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==o.value&&(o.value=i)}),{onChange:a,onPathChange:r,innerValue:o,innerVisible:l}}}),ff=["innerHTML"];function df(e,n,o,l,a,r){const i=t.resolveComponent("FoxCascaderPane"),u=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(u,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,ff)):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=$e(cf,[["render",df]]),Lo={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 hf(e,n,o){return{props:{...ve,...Te,...Lo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]);let h=fe(l,"hintText"),f=t.ref(!1);const y=t.ref(!1),A=Ic(),p=t.ref([]);t.watch([()=>l.source,()=>l.params],async([H,M])=>{H&&(p.value=await A.load(H,M))},{immediate:!0});const m=t.ref([]),v=t.computed(()=>Array.isArray(m.value)?m.value.join(" "):m.value),w=t.ref([]),g=t.ref([]);t.watch([()=>l.modelValue,p],async([H,M])=>{if(l.lazy===!0){g.value.length==0&&(m.value=Array.isArray(H)?H:[],w.value=Array.isArray(H)?H:[]);return}if(l.valueType==="item"){let U=H;if(!Mn(l,U,g.value)){g.value=U;let Y=_t(l,U);m.value=Y.texts,w.value=Y.values}}else if(l.valueType==="text"){let U=H,Y=[];if(gr(l,M,U,0,Y),!Mn(l,Y,g.value)){g.value=Y;let G=_t(l,Y);U.value=G.texts,w.value=G.values}}else{let U=H,Y=[];if(pr(l,M,U,0,Y),!Mn(l,Y,g.value)){g.value=Y;let G=_t(l,Y);m.value=G.texts,U.value=G.values}}});const c=e,B=t.computed(()=>({[c]:!0})),j=De(t.computed(()=>l.textAlign),"textAlign"),_=t.computed(()=>({textAlign:j.value??"right"})),z=t.ref(!1),F=()=>{r.value===!0||i.value===!0||(z.value=!0)},O=H=>{z.value=H},T=(H,M)=>{let U=M.map(G=>{if(G==null)return G;let Q={...G};return Reflect.deleteProperty(Q,"text"),Q[l.textKey]=G.text??"",Reflect.deleteProperty(Q,"value"),Q[l.valueKey]=G.value??"",Q});g.value=U;let Y=_t(l,U);m.value=Y.texts,w.value=Y.values,l.valueType==="text"?(u("change",m.value,U),u("update:modelValue",m.value)):l.valueType==="item"?(u("change",U,U),u("update:modelValue",U)):(u("change",w.value,U),u("update:modelValue",w.value)),u("update:pathNodes",U)},S=H=>{let M=H.map(U=>{if(U==null)return U;let Y={...U};return Reflect.deleteProperty(Y,"text"),Y[l.textKey]=U.text??"",Reflect.deleteProperty(Y,"value"),Y[l.valueKey]=U.value??"",Y});u("pathChange",M)},q=H=>{y.value=!0,u("focus",w.value,H)},k=H=>{setTimeout(()=>{y.value=!1},0),u("blur",w.value,H)},E=t.computed(()=>qe(l.unit)>0);t.computed(()=>l.clearable&&!r.value&&!i.value);const $=t.ref();return pe({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()}}),()=>{const H={class:B.value,style:_.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,value:v.value,onClick:F,onFocus:q,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:E.value?M.suffix=()=>[l.unit]:M.suffix=()=>t.h(P.ElIcon,{},{default:()=>t.h(Se.ArrowDown)});const U=[],Y=t.h(P.ElInput,H,M);U.push(Y);const G={default:()=>U};G.label=a.slots.default,G.prepend=a.slots.prepend,G.append=a.slots.append,G.fixedPreTip=a.slots.fixedPreTip,G.fixedTip=a.slots.fixedTip;let Q={};Q.visible=z.value,Q["onUpdate:visible"]=O,Q.modelValue=w.value,Q.onChange=T,Q.onPathChange=S,Q.options=p.value,Q.title=l.title,Q.lazy=l.lazy,Q.lazyLoad=l.lazyLoad,Q.valueKey=l.valueKey,Q.textKey=l.textKey,Q.childrenKey=l.childrenKey,Q.convertConfig=l.convertConfig;const b=t.h(Sn,Q);G.hide=()=>[b];const I={...Ne(l,Lo),hintText:h.value,hintVisible:f.value,prop:`${l.prop??a.attrs.name}_item`};return t.h(o,I,G)}}}}const{componentName:mf,create:gf,scope:pf}=ae("cascader-item"),Il=gf(hf(mf,pf,be)),_o={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function vf(e,n,o){return{props:{...ve,...Te,..._o},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=fe(l,"modelValue"),y=e,A=t.computed(()=>({[y]:!0})),p=z=>{f.value=z,u("update:modelValue",z),u("input",z)},m=z=>{u("change",z)},v=z=>{u("select",z)};let w=fe(l,"hintText"),g=t.ref(!1);const c=z=>{let O=z.target.value;h.value=!0,ge(w.value)||(g.value=!0),u("focus",O,z)},B=z=>{setTimeout(()=>{g.value&&(g.value=!1),h.value=!1},0);let O=z.target.value;l.maxLength&&O.length>Number(l.maxLength)&&(O=O.slice(0,Number(l.maxLength))),u("blur",O,z)},j=()=>{u("clear","")},_=t.ref();return pe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const F={...a.attrs,ref:_,class:A.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:f.value,onClear:j,onChange:m,onInput:p,onFocus:c,onBlur:B,onSelect:v},O={};a.slots.prepend&&(O.prepend=a.slots.prepend),a.slots.append&&(O.append=a.slots.append),a.slots.prefix&&(O.prefix=a.slots.prefix),a.slots.suffix&&(O.suffix=a.slots.suffix),a.slots.option&&(O.default=a.slots.option);const T=[],S=t.h(P.ElAutocomplete,F,O);T.push(S);const q={default:()=>T};a.slots.default&&(q.label=a.slots.default),a.slots.fixedTip&&(q.fixedTip=a.slots.fixedTip);const E={...Ne(l,_o),hintText:w.value,hintVisible:g.value,prop:`${l.prop}_item`};return t.h(o,E,q)}}}}const{componentName:yf,create:bf,scope:wf}=ae("autocomplete-item"),Pl=bf(vf(yf,wf,be));function xf(e,n,o,l,a){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[a]){let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],f=s.find(y=>y[l]===h);if(!f)break;i.push(f[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<r.length;s++){let d=n[s],h=r[s];const f=d.find(y=>y[l]===h);if(!f)break;i.push(f[o])}else{let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],f=s.find(y=>y[l]===h);if(!f)break;i.push(f[o]),s=f[a]}}return i}let Sf=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Tf(){const e=t.getCurrentInstance();return new Sf(e.proxy)}const br={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 Cf(e,n){return{props:{...br},setup(o,{attrs:l,slots:a}){const r=Tf(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([d,h])=>{i.value=await r.load(o.sourceType,d,h)},{immediate:!0});const u=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=xf(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),s=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const d={...l};return a.default?a.default({text:u.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===u.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},u.value):t.h(s,d,{default:()=>u.value}):t.h(s,d,u.value)}}}}const{componentName:up,create:$f,scope:cp}=ae("mapping"),At=$f(Cf());function kf(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let f=r.substring(0,u);l=l[f][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function Df(e,n){return{props:{...br},setup(o,{attrs:l,slots:a}){return()=>{const r={default:i=>{const u=kf(i.row,i.column.property);return a.default?t.h(At,{...o,modelValue:u},{default:a.default}):t.h(At,{...o,modelValue:u})}};return t.h(P.ElTableColumn,{...l},r)}}}}const{componentName:fp,create:Nf,scope:dp}=ae("table-mapping-column"),Ol=Nf(Df()),Ef=Symbol.for("TableStateKey");function qo(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let f=r.substring(0,u);l=l[f][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function Vf(e,n){return{props:{},setup(o,{attrs:l}){const a=t.inject(Ef,{});return()=>{const r=a.currentRow?a.currentRow.value:null,i={default:u=>{const s=qo(u.row,u.column.property),d=r?qo(r,u.column.property):null,h=s===d,f={class:{"el-radio__input":!0,"is-checked":h}},y=t.h("span",f,[t.h("span",{class:{"el-radio__inner":!0}})]),A={class:{"el-radio":!0,"is-checked":h}};return t.h("label",A,[y])}};return t.h(P.ElTableColumn,{...l},i)}}}}const{componentName:hp,create:If,scope:mp}=ae("table-radio-column"),Al=If(Vf()),Pf={},Of={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},Af=t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),Ff=[Af];function Bf(e,n){return t.openBlock(),t.createElementBlock("svg",Of,Ff)}const Rf=$e(Pf,[["render",Bf]]),{componentName:gp,create:Mf,scope:pp}=ae("table-setting"),Lf={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:"不固定"}},_f=Mf({components:{FoxPopover:P.ElPopover,FoxCheckbox:P.ElCheckbox,FoxCheckboxGroup:P.ElCheckboxGroup,FoxButton:P.ElButton,FoxIcon:P.ElIcon,DragIcon:Rf,Download:Se.Download,RefreshLeft:Se.RefreshLeft},props:{...Lf},setup(e,{emit:n,attrs:o}){let l=[];const a=t.ref([]),r=t.computed(()=>a.value.filter(C=>C.label===""||C.type?!1:C.fixed===""||C.fixed===!0||C.fixed==="left")),i=t.computed(()=>a.value.filter(C=>C.label===""||C.type?!1:C.fixed==="right")),u=t.computed(()=>a.value.filter(C=>!(C.label===""||C.type||C.fixed!==void 0))),s=t.computed(()=>(r.value.length>0||i.value.length>0)&&u.value.length>0),d=t.computed(()=>r.value.length>0),h=t.computed(()=>i.value.length>0),f=C=>C.length>1,y=(C,W)=>{Array.isArray(C)&&Array.isArray(W)&&C.forEach(V=>{W.some(L=>L.prop===V.prop?(V.label=L.label,!0):!1)});const Z=[];a.value=C.map((V,L)=>(!(V.label===""||V.type)&&V.visible!==!1&&Z.push(V.prop),{...V,sortIndex:L})),u.value.length+r.value.length+i.value.length===Z.length?g.value=!0:Z.length>0&&(c.value=!0),_.value=Z},A=C=>C?C.type?C.type:C.label?C.prop:"":"",p=(C,W)=>{if(C.length!==W.length)return!1;const Z=C.map(D=>A(D));for(let D of W){const V=A(D);if(Z.indexOf(V)===-1)return!1}return!0},m=C=>{if(!C){const W=e.tableRef.getColumnSetting(),Z=W.srcColumnPropertyList;l=Z.map((D,V)=>({...D,sortIndex:V})),C=W.columnPropertyList,C&&C.length>0&&p(Z,C)||(C=Z)}y(C,l)},v=()=>{e.tableRef.setColumnSetting(a.value)},w=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),c=t.ref(!1),B=C=>{const W=[];a.value.forEach(D=>{C&&!(D.label===""||D.type)&&W.push(D.prop),D.visible=C}),g.value=!1,c.value=!1,u.value.length+r.value.length+i.value.length===W.length?g.value=!0:W.length>0&&(c.value=!0),_.value=W,v()},j=()=>{m(l),v()},_=t.ref([]),z=C=>{a.value.forEach(Z=>{if(Z.label===""||Z.type)return;const D=C.indexOf(Z.prop)!==-1;Z.visible=D}),g.value=!1,c.value=!1;const W=u.value.length+r.value.length+i.value.length;C.length===W?g.value=!0:C.length>0&&(c.value=!0),v()},F=()=>{m()};t.onMounted(()=>{setTimeout(()=>{m()},50)});const O={currentRow:null,index:null,roleType:null},T=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,T(C)):null:null,S=C=>{const W=C.currentTarget;W&&W.dataset&&(O.roleType=W.dataset.roleType,O.index=W.dataset.index)},q=C=>{O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null),O.index=null,O.roleType=null},k=C=>{const W=C.currentTarget;C.relatedTarget;const Z=T(W);if(!Z)return;const D=Z.dataset&&Z.dataset.roleType;O.roleType===D&&(C.preventDefault(),O.currentRow&&O.currentRow!==Z&&O.currentRow.classList.remove("is-dragover"),Z.classList.add("is-dragover"),O.currentRow=Z)},E=C=>{C.preventDefault(),O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null)},$=C=>{const W=C.currentTarget,Z=T(W);if(!Z)return;const D=Z.dataset&&Z.dataset.roleType;if(O.roleType!==D)return;C.preventDefault();const V=Number(O.index),L=Number(Z.dataset.index);if(V!==L){if(V<L){const K=a.value[V];a.value.splice(V,1),a.value.splice(L,0,K)}else{const K=a.value[V];a.value.splice(V,1),a.value.splice(L+1,0,K)}y(a.value,l),v()}},H=C=>{const W=a.value[C];W.fixed="left",v()},M=C=>{const W=a.value[C];W.fixed="right",v()},U=C=>{const W=a.value[C];W.fixed=void 0,v()},Y=new Map;let G=null;function Q(C){const W=document.createRange();return W.setStart(C,0),W.setEnd(C,C.childNodes.length),W.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:d,isShowRightFixedTitle:h,isDraggble:f,isCheckAll:g,isIndeterminate:c,handleCheckAllChange:B,handleReset:j,checkedValue:_,handleCheckChange:z,onShow:F,onDragStart:S,onDragEnd:q,onDragOver:k,onDragLeave:E,onDrop:$,toLeftFixed:H,toRightFixed:M,toUnFixed:U,checkboxLabelStyle:w,onMouseOverForOverflowText:(C,W,Z)=>{const D=C.currentTarget;if(D){const V=Math.floor(D.offsetWidth);if(Math.floor(Q(D))>V){let K=Y.get(W);if(K){if(K===G)return;Fe.hide(K)}K=Fe.show(D,Z,{type:"text",placement:"top",closeOnClick:!1}),Y.set(W,K),G=K}}},onMouseLeaveForOverflowText:(C,W)=>{const Z=Y.get(W);Z&&(Fe.hide(Z),Z===G&&(G=null))},onMouseOverForTip:(C,W)=>{const Z=C.currentTarget;Z&&(G&&Fe.hide(G),G=Fe.show(Z,W,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:C=>{G&&(Fe.hide(G),G=null)}}}}),qf={class:"fox-table-setting"},zf={class:"fox-table-setting__header"},jf={class:"fox-table-setting__body"},Hf={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Kf={key:0,class:"fox-table-setting__body-title"},Yf=["data-index","draggable"],Wf=["onMouseover","onMouseleave"],Uf={class:"tools-item"},Gf={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Xf={key:0,class:"fox-table-setting__body-title"},Zf=["data-index","draggable"],Qf=["onMouseover","onMouseleave"],Jf={class:"tools-item"},ed={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},td={key:0,class:"fox-table-setting__body-title"},nd=["data-index","draggable"],ld=["onMouseover","onMouseleave"],od={class:"tools-item"};function ad(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),d=t.resolveComponent("RefreshLeft"),h=t.resolveComponent("FoxIcon"),f=t.resolveComponent("Download"),y=t.resolveComponent("fox-checkbox"),A=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-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",qf,[t.createElementVNode("div",zf,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=m=>e.isCheckAll=m),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",jf,[t.createVNode(A,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=m=>e.checkedValue=m),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Hf,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",Kf,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:n[6]||(n[6]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:n[7]||(n[7]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:n[8]||(n[8]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:n[9]||(n[9]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,m.prop,m.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,Wf)]),_:2},1032,["label"]),t.createElementVNode("div",Uf,[t.createVNode(h,{onClick:v=>e.toUnFixed(m.sortIndex),onMouseover:n[1]||(n[1]=v=>e.onMouseOverForTip(v,e.unFixedText)),onMouseleave:n[2]||(n[2]=v=>e.onMouseLeaveForTip(v))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:v=>e.toRightFixed(m.sortIndex),onMouseover:n[3]||(n[3]=v=>e.onMouseOverForTip(v,e.fixedRightText)),onMouseleave:n[4]||(n[4]=v=>e.onMouseLeaveForTip(v))},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])])],40,Yf))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Gf,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",Xf,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:n[15]||(n[15]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:n[16]||(n[16]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:n[17]||(n[17]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:n[18]||(n[18]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,m.prop,m.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,Qf)]),_:2},1032,["label"]),t.createElementVNode("div",Jf,[t.createVNode(h,{onClick:v=>e.toLeftFixed(m.sortIndex),onMouseover:n[10]||(n[10]=v=>e.onMouseOverForTip(v,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=v=>e.onMouseLeaveForTip(v)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:v=>e.toRightFixed(m.sortIndex),onMouseover:n[12]||(n[12]=v=>e.onMouseOverForTip(v,e.fixedRightText)),onMouseleave:n[13]||(n[13]=v=>e.onMouseLeaveForTip(v))},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])])],40,Zf))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",ed,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",td,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,m=>(t.openBlock(),t.createElementBlock("div",{key:m.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":m.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:n[24]||(n[24]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:n[25]||(n[25]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:n[26]||(n[26]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:n[27]||(n[27]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(y,{class:"checkbox-item",label:m.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,m.prop,m.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,m.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(m.label),45,ld)]),_:2},1032,["label"]),t.createElementVNode("div",od,[t.createVNode(h,{onClick:v=>e.toUnFixed(m.sortIndex),onMouseover:n[19]||(n[19]=v=>e.onMouseOverForTip(v,e.unFixedText)),onMouseleave:n[20]||(n[20]=v=>e.onMouseLeaveForTip(v))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:v=>e.toLeftFixed(m.sortIndex),onMouseover:n[21]||(n[21]=v=>e.onMouseOverForTip(v,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=v=>e.onMouseLeaveForTip(v)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(f)]),_:2},1032,["onClick"])])],40,nd))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Tn=$e(_f,[["render",ad]]);let rd=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,u){if(Array.isArray(o)){let d=(l-1)*a,h=d+a;h>o.length&&(h=o.length);const f=o.slice(d,h);return{totalSize:o.length,page:f}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i,u]);const s=Oe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Be(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[o,l,a,r,i,u]))}};function id(){const e=t.getCurrentInstance();return new rd(e.proxy)}let sd=class{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Oe(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Oe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Oe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}};function ud(){const e=t.getCurrentInstance();return new sd(e.proxy)}const cd=Symbol.for("TableStateKey"),zo={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"}},jo={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationBackground:{type:[Boolean],required:!1,default:!0},paginationSmall:{type:[Boolean],required:!1,default:!1},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Ln={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:"不固定"}},fd={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function dd(e,n){let o=n.split("."),l=e;for(let a=0;a<o.length;a++){let r=o[a],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let f=r.substring(0,u);l=l[f][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function _n(e,n){return e.filter(l=>{for(let a in n){const r=n[a],i=dd(l,a);if(r!==i)return!1}return!0})}function hd(e,n,o){return{inheritAttrs:!1,props:{...ve,...Te,...zo,...jo,...Ln,...fd},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,a){const{locale:r}=ye.useFoxI18n(n),{emitEvent:i}=Ce({componentName:e,validateHandler:{getValue(...J){return _.value}}},l.prop??a.attrs.name),u=e,s=t.computed(()=>({[u]:!0})),d=t.computed(()=>({[`${u}__setting`]:!0})),h=t.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${l.footerAlign}`]:!0})),f=t.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${l.paginationAlign}`]:!0})),y=t.shallowRef({}),A=t.computed(()=>({...y.value,...l.params??{},...l.baseParams??{}})),p=t.ref(l.infiniteLoad===!0?0:l.pageIndex),m=t.ref(l.pageSize),v=se(l.infiniteLoad);v||(t.watch(()=>l.pageIndex,J=>{p.value=J}),t.watch(()=>l.pageSize,J=>{m.value=J}),t.watch([p,m],([J,oe],[ie,ue])=>{oe!==ue&&(p.value=1,J=1),T(l.data,J,oe,A.value)}));const w=()=>Array.isArray(l.data)?!0:se(l.autoLoad);w()&&t.watch([()=>l.data,A],async([J,oe],[ie,ue])=>{w()&&(J!==ie&&(F=!0),!(!Array.isArray(J)&&Le(J,ie)&&Le(oe,ue))&&(v?(p.value=0,B.value=!0,_.value=[],q()):p.value===1?T(J,p.value,m.value,oe):p.value=1))},{deep:!0});const g=J=>{p.value=J,i("page-index-change",J)},c=J=>{m.value=J,i("page-size-change",J)},B=t.ref(!0),j=t.ref(0),_=t.ref(),z=id();let F=!0;const O=De(t.computed(()=>l.lazyLoad),"lazyLoad",Me.Near,J=>se(J)),T=async(J,oe,ie,ue,we)=>{F=!1;try{if(we===!0){if(!B.value)return!1;const me=await z.load("table",J,oe,ie,ue,F,r.value);return j.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,_.value,me.page),setTimeout(()=>{i("loaded-data")},250),(_.value?.length??0)>=j.value)||me.page.length<ie?(B.value=!1,!1):!0}else{const me=await z.load("table",J,oe,ie,ue,F,r.value);return j.value=me.totalSize,_.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),j.value=0,_.value=[]}return!1};let S=!1;const q=async()=>{if(!S){if(S=!0,!B.value){S=!1;return}p.value+=1,await T(l.data,p.value,m.value,A.value,!0),S=!1}},k=(J={},oe=!1)=>new Promise(async ie=>{y.value=t.toRaw(J??{}),oe||(p.value=l.pageIndex??1),v===!0?(p.value=0,_.value=[],B.value=!0,await q()):await T(l.data,p.value,m.value,A.value),ie()}),E=()=>{j.value=0,_.value=[],v===!0&&(p.value=0,B.value=!0)};let $=!1;const H=()=>{$||($=!0,k())},M=t.ref(null);if(v===!0){let J=null;const oe=()=>{M.value&&(J=new IntersectionObserver(ue=>{let we=!1;for(let me of ue)if(me.intersectionRatio>0){we=!0;break}we&&q()}),J.observe(M.value))},ie=()=>{!J||!M.value||(J.unobserve(M.value),J=null)};t.onMounted(oe),t.onBeforeUnmount(ie)}w()&&!O.value&&k();const U=t.ref(null);t.provide(cd,{currentRow:U});const Y=(J,oe)=>{U.value=J,i("current-change",J,oe)},G=(J,oe,ie)=>{i("row-click",J,oe,ie),se(l.rowClickSelectable)===!0&&re?.value.toggleRowSelection(J)},Q=[],b=(J,oe)=>{if(i("expand-change",J,oe),se(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ie=Q.length;Q.splice(0,ie)}else{Q.forEach(ue=>{ue!==J&&re?.value.toggleRowExpansion(ue,!1)});const ie=Q.length;Q.splice(0,ie,J)}},x=a.attrs.id??l.prop??a.attrs.name,I=ud(),R=t.ref([]);let C=[];const W=()=>({srcColumnPropertyList:C.map(oe=>({...oe})),columnPropertyList:R.value}),Z=J=>{R.value=[...J],V()},D=async()=>{const J=await I.load(x);J&&(R.value=J)},V=()=>{I.save(x,R.value)},L=()=>{I.remove(x)};D();const K=J=>J?J.type?J.type:J.label?J.prop:"":"",ee=t.computed(()=>{if(typeof a.slots.default=="function"){const J=a.slots.default(),oe=new Map;if(C=[],J.forEach(ie=>{const ue=ie;if(!ue.props)return;const we=K(ue.props);oe.set(we,ie);const me={label:"",prop:""};Object.assign(me,ue.props),C.push(me)}),R.value.length===C.length){const ie=[];for(let ue of R.value){const we=K(ue),me=oe.get(we);if(!me)return J;if(ue.visible===!1)continue;const st=me;st.props.fixed=ue.fixed,ie.push(st)}return ie}return J}return[]}),ne=t.shallowRef(new Map),N=({column:J,rowIndex:oe})=>{const ie=`${oe}_${J.property}`;return ne.value.get(ie)??""},X=J=>typeof J=="function"?oe=>{const ie=[];let ue=N(oe);return ue&&ie.push(ue),ue=J(oe),ue&&ie.push(ue),ie.length===0?"":ie.join(" ")}:N,te=(J,oe,ie)=>{const ue=`${J}_${oe}`;ie?ne.value.set(ue,ie):ne.value.delete(ue),t.triggerRef(ne)},re=t.ref();return pe({clearSelection:()=>re?.value.clearSelection(),getSelectionRows:()=>re?.value.getSelectionRows(),toggleRowSelection:(J,oe)=>{re?.value.toggleRowSelection(J,oe)},toggleRowSelectionByProp:(J,oe)=>{if(!_.value)return;const ie=_n(_.value,J);ie.length!==0&&ie.forEach(ue=>{re?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{re?.value.toggleAllSelection()},toggleRowExpansion:(J,oe)=>{re?.value.toggleRowExpansion(J,oe)},toggleRowExpansionByProp:(J,oe)=>{if(!_.value)return;const ie=_n(_.value,J);ie.length!==0&&ie.forEach(ue=>{re?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:J=>{re?.value.setCurrentRow(J)},setCurrentRowByProp:J=>{if(!_.value)return;const oe=_n(_.value,J);oe.length!==0&&re?.value.setCurrentRow(oe[0])},getCurrentRow:()=>U.value,clearSort:()=>{re?.value.clearSort()},clearFilter:J=>{re?.value.clearFilter(J)},doLayout:()=>{re?.value.doLayout()},sort:(J,oe)=>{re?.value.sort(J,oe)},scrollTo:(J,oe)=>{re?.value.scrollTo(J,oe)},setScrollTop:J=>{re?.value.setScrollTop(J)},setScrollLeft:J=>{re?.value.setScrollLeft(J)},loadData:k,clearData:E,getData(){return _.value},getTotalSize(){return j.value},getPageIndex(){return p.value},getPageSize(){return m.value},getColumnSetting:W,setColumnSetting:Z,removeColumnSetting:L,setCellClassName:te}),()=>{const oe={...Ke(a.attrs),onCurrentChange:Y,onRowClick:G,onExpandChange:b,data:_.value,ref:re,class:s.value,"cell-class-name":X(l.cellClassName)},ie={};if(a.slots.default&&(ie.default=()=>ee.value),a.slots.append&&(ie.append=()=>a.slots.append),a.slots.empty&&(ie.empty=()=>a.slots.empty),v===!0){const _e=[];if(B.value){const xt=t.h(Se.Loading,{class:`${u}__infinite-icon`});_e.push(xt);const En=t.h("span",{class:`${u}__infinite-text`},[l.loadText]);_e.push(En)}else{const xt=t.h("span",{class:`${u}__infinite-text`},[l.loadMoreText]);_e.push(xt)}const et={ref:M,class:`${u}__infinite`},Nn=t.h("div",et,_e);ie.append=()=>Nn}const ue=t.h(P.ElTable,oe,ie),we=[];if(we.push(ue),!v){let _e=null;if(typeof a.slots.pagination=="function")_e=a.slots.pagination();else if(l.showPagination){const et={class:f.value,total:j.value,pageSize:m.value,"onUpdate:pageSize":c,pageSizes:l.pageSizes,currentPage:p.value,"onUpdate:currentPage":g,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};_e=t.h(P.ElPagination,et)}if(l.showSetting){const et=[];_e&&et.push(_e);const Nn=t.h(P.ElIcon,{class:d.value},{default:()=>t.h(Se.Setting)}),xt=pt(l,Ln),En=t.h(Tn,{...xt,tableRef:{getColumnSetting:W,setColumnSetting:Z,removeColumnSetting:L}},{default:()=>Nn});et.push(En);const Ir=t.h("div",{class:h.value},et);we.push(Ir)}else _e&&we.push(_e)}const me={default:()=>we},wt={...Ne(l,zo,jo,Ln),prop:`${l.prop}_item`};return wt.contentClass=`${u}__wrap`,wt.errorMarkClass="is-table-error",O.value&&w()&&(wt["appear-listen"]=!0,wt.onAppear=H),t.h(o,wt,me)}}}}const{componentName:md,create:gd,scope:pd}=ae("table-item"),Fl=gd(hd(md,pd,be));function yt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function vd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let yd=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function bd(){const e=t.getCurrentInstance();return new yd(e.proxy)}function wr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=yt(e,n),a=yt(e,o);if(l!==a)return!1;const r=Ft(e,n),i=Ft(e,o);return r===i}function wd(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;let a=null;for(let r of l){let i=!1;if(o==="text")i=yt(e,r)===n;else if(o==="item")i=wr(e,r,n);else{let u=Ft(e,r);u==null&&(u=yt(e,r)),i=u===n}if(i){a=r;break}}return a}function xd(e){return{text:e,value:e}}function Sd(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Ho={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 Td(e,n,o){return{inheritAttrs:!0,props:{...ve,...Te,...Ho},emits:["change","update:modelValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),s=t.ref(null),d=t.ref(null),h=(z,F,O,T=!0)=>{const S=wd(l,z,F,O);if(S===null){if(d.value===null)return;d.value=null,s.value=null,T&&(u("update:modelValue",null),u("change",null));return}if(!wr(l,S,d.value)){s.value=z;const k=t.toRaw(S);d.value=k;let E=null;l.valueType==="text"?E=yt(l,k):l.valueType==="item"?E=k:E=Ft(l,k),T&&(u("update:modelValue",E),u("change",E))}},f=t.ref([]),y=De(t.computed(()=>l.lazyLoad),"lazyLoad",Me.Near,z=>se(z)),A=bd(),p=async(z,F)=>{if(z){const O=await A.load("radio",z,F);if(O.length>0)if(typeof O[0]=="string"){let q=O.map(k=>xd(k));f.value=q}else f.value=O}};t.watch([()=>l.source,()=>l.params],async([z,F])=>{p(z,F)},{immediate:!y.value});let m=!1;const v=()=>{m||(m=!0,p(l.source,l.params))};t.watch([()=>f.value,()=>l.modelValue],([z,F])=>{h(F,l.valueType,z,!1)});const w=e,g=t.computed(()=>({[w]:!0,[`is-${l.direction}`]:!0})),c=z=>{h(z,"value",f.value,!0)};let B=fe(l,"hintText"),j=fe(l,"hintVisible");const _=(z,F)=>{const O=[];return z.forEach((T,S)=>{const q=Ft(l,T),k=yt(l,T);let E=vd(l,T);r.value===!0&&(E=r.value),i.value===!0&&(E=i.value);const $=Sd(l,T,S)??{},H=`${q}_${S}`,M={...$,key:H,label:q,size:l.size,border:se(l.border)};E&&(M.disabled=E),l.itemType==="button"?O.push(t.h(P.ElRadioButton,M,{default:()=>[k]})):typeof F=="function"?O.push(t.h(P.ElRadio,M,{default:()=>F(T)})):O.push(t.h(P.ElRadio,M,{default:()=>[k]}))}),O};return()=>{const F={...Ke(a.attrs),class:g.value,disabled:r.value||i.value,modelValue:s.value,"text-color":l.textColor,fill:l.fill,onChange:c},O=[],T={};a.slots.options?T.default=a.slots.options:T.default=()=>_(f.value,a.slots.text);const S=t.h(P.ElRadioGroup,F,T);O.push(S);const q={default:()=>O};a.slots.default&&(q.label=a.slots.default),a.slots.fixedTip&&(q.fixedTip=a.slots.fixedTip);const E={...Ne(l,Ho),hintText:B.value,hintVisible:j.value,prop:`${l.prop??a.attrs.name}_item`};return y.value&&(E["appear-listen"]=!0,E.onAppear=v),t.h(o,E,q)}}}}const{componentName:Cd,create:$d,scope:kd}=ae("radio-item"),Bl=$d(Td(Cd,kd,be));function bt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function gt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Dd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Nd=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Ed(){const e=t.getCurrentInstance();return new Nd(e.proxy)}function xr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=bt(e,n),a=bt(e,o);if(l!==a)return!1;const r=gt(e,n),i=gt(e,o);return r===i}function Vd(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const a=[];return n.forEach(r=>{for(let i of l){let u=!1;if(o==="text")u=bt(e,i)===r;else if(o==="item")u=xr(e,i,r);else{let s=gt(e,i);s==null&&(s=bt(e,i)),u=s===r}if(u){a.push(i);break}}}),a}function Id(e){return{text:e,value:e}}function Pd(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const Ko={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 Od(e,n,o){return{inheritAttrs:!0,props:{...ve,...Te,...Ko},emits:["change","update:modelValue"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),s=t.ref([]),d=t.ref([]),h=(z,F,O,T=!0)=>{const S=Vd(l,z,F,O);if(S===null){if(d.value===null||d.value.length===0)return;s.value=[],d.value=[],T&&(u("update:modelValue",[]),u("change",[]));return}let q=!0;if(S.length!==d.value.length)q=!1;else for(let k=0;k<S.length;k++){const E=S[k],$=d.value[k];if(!xr(l,E,$)){q=!1;break}}if(!q){d.value=S;let k=[],E=[];S.forEach(H=>{k.push(gt(l,H)),l.valueType==="text"?E.push(bt(l,H)):l.valueType==="item"?E.push(H):E.push(gt(l,H))}),s.value=k;const $=t.toRaw(E);T&&(u("update:modelValue",$),u("change",$))}},f=t.ref([]),y=De(t.computed(()=>l.lazyLoad),"lazyLoad",Me.Near,z=>se(z)),A=Ed(),p=async(z,F)=>{if(z){const O=await A.load("checkbox",z,F);if(O.length>0)if(typeof O[0]=="string"){let q=O.map(k=>Id(k));f.value=q}else f.value=O}};t.watch([()=>l.source,()=>l.params],async([z,F])=>{p(z,F)},{immediate:!y.value});let m=!1;const v=()=>{m||(m=!0,p(l.source,l.params))};t.watch([()=>f.value,()=>l.modelValue],([z,F])=>{h(F,l.valueType,z,!1)});const w=e,g=t.computed(()=>({[w]:!0,[`is-${l.direction}`]:!0})),c=z=>{h(z,"value",f.value,!0)};let B=fe(l,"hintText"),j=fe(l,"hintVisible");const _=(z,F)=>{const O=[];return z.forEach((T,S)=>{const q=gt(l,T),k=bt(l,T);let E=Dd(l,T);r.value===!0&&(E=r.value),i.value===!0&&(E=i.value);const $=Pd(l,T,S)??{},H=`${q}_${S}`,M={...$,key:H,class:l.itemClass,label:q,size:l.size,border:se(l.border)};E&&(M.disabled=E),l.itemType==="button"?O.push(t.h(P.ElCheckboxButton,M,{default:()=>[k]})):typeof F=="function"?O.push(t.h(P.ElCheckbox,M,{default:()=>F(T)})):O.push(t.h(P.ElCheckbox,M,{default:()=>[k]}))}),O};return()=>{const F={...Ke(a.attrs),class:g.value,disabled:r.value||i.value,modelValue:s.value,"text-color":l.textColor,fill:l.fill,max:de(l.max),min:de(l.min),onChange:c},O=[],T={};a.slots.options?T.default=a.slots.options:T.default=()=>_(f.value,a.slots.text);const S=t.h(P.ElCheckboxGroup,F,T);O.push(S);const q={default:()=>O};a.slots.default&&(q.label=a.slots.default),a.slots.fixedTip&&(q.fixedTip=a.slots.fixedTip);const E={...Ne(l,Ko),hintText:B.value,hintVisible:j.value,prop:`${l.prop??a.attrs.name}_item`};return y.value&&(E["appear-listen"]=!0,E.onAppear=v),t.h(o,E,q)}}}}const{componentName:Ad,create:Fd,scope:Bd}=ae("checkbox-item"),Rl=Fd(Od(Ad,Bd,be)),Yo={modelValue:{type:[Number,String],required:!1}};function Rd(e,n,o){return{props:{...ve,...Te,...Yo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),s=fe(l,"modelValue",m=>de(m)),d=e,h=t.computed(()=>({[d]:!0})),f=m=>{u("update:modelValue",m),u("change",m)};let y=fe(l,"hintText"),A=t.ref(!1);const p=t.ref();return pe({}),()=>{const v={...Ke(a.attrs),ref:p,class:h.value,readonly:i.value||r.value,modelValue:s.value,onChange:f},w={},g=[],c=t.h(P.ElRate,v,w);g.push(c);const B={default:()=>g};a.slots.default&&(B.label=a.slots.default),a.slots.fixedTip&&(B.fixedTip=a.slots.fixedTip);const _={...Ne(l,Yo),hintText:y.value,hintVisible:A.value,prop:`${l.prop}_item`};return t.h(o,_,B)}}}}const{componentName:Md,create:Ld,scope:_d}=ae("rate-item"),Ml=Ld(Rd(Md,_d,be)),Wo={modelValue:{type:[Boolean,String,Number],required:!1}};function qd(e,n,o){return{props:{...ve,...Te,...Wo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),s=fe(l,"modelValue"),d=e,h=t.computed(()=>({[d]:!0})),f=m=>{u("update:modelValue",m),u("change",m)};let y=fe(l,"hintText"),A=fe(l,"hintVisible");const p=t.ref();return pe({}),()=>{const v={...Ke(a.attrs),ref:p,class:h.value,readonly:i.value,disabled:r.value,modelValue:s.value,onChange:f},w={},g=[],c=t.h(P.ElSwitch,v,w);g.push(c);const B={default:()=>g};a.slots.default&&(B.label=a.slots.default),a.slots.fixedTip&&(B.fixedTip=a.slots.fixedTip);const _={...Ne(l,Wo),hintText:y.value,hintVisible:A.value,prop:`${l.prop}_item`};return t.h(o,_,B)}}}}const{componentName:zd,create:jd,scope:Hd}=ae("switch-item"),Ll=jd(qd(zd,Hd,be)),Uo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Kd(e,n,o){return{props:{...ve,...Te,...Uo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),u=t.ref(!1),{emitEvent:s}=Ce({componentName:e,get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),d=fe(l,"modelValue"),h=e,f=t.computed(()=>({[h]:!0})),y=j=>{s("update:modelValue",j),s("change",j)};let A=fe(l,"hintText"),p=t.ref(!1);const m=j=>{let z=j.target.value;u.value=!0,ge(A.value)||(p.value=!0),s("focus",z,j)},v=j=>{setTimeout(()=>{p.value&&(p.value=!1),u.value=!1},0);let z=j.target.value;l.maxLength&&z.length>Number(l.maxLength)&&(z=z.slice(0,Number(l.maxLength))),g.value||s("blur",z,j)},w=()=>{s("clear","")},g=t.ref(!1),c=j=>{g.value=j,s("visible-change",j),j||s("selected")},B=t.ref();return pe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const _={...Ke(a.attrs),ref:B,class:f.value,disabled:r.value||i.value,modelValue:d.value,"onUpdate:modelValue":y,onClear:w,onFocus:m,onBlur:v,onVisibleChange:c},z={};a.slots.option&&(z.default=a.slots.option);const F=[],O=t.h(P.ElTreeSelect,_,z);F.push(O);const T={default:()=>F};a.slots.default&&(T.label=a.slots.default),a.slots.fixedTip&&(T.fixedTip=a.slots.fixedTip);const q={...Ne(l,Uo),hintText:A.value,hintVisible:p.value,prop:`${l.prop}_item`};return t.h(o,q,T)}}}}const{componentName:Yd,create:Wd,scope:Ud}=ae("tree-select-item"),_l=Wd(Kd(Yd,Ud,be));class Gd{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Oe(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Oe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Oe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function Xd(){const e=t.getCurrentInstance();return new Gd(e.proxy)}const Zd={},Qd={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"},Jd=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),eh=[Jd];function th(e,n){return t.openBlock(),t.createElementBlock("svg",Qd,eh)}const nh=$e(Zd,[["render",th]]),{componentName:xp,create:lh,scope:Sp}=ae("group-setting"),oh={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:"到底部"}},ah=lh({components:{FoxPopover:P.ElPopover,FoxCheckbox:P.ElCheckbox,FoxCheckboxGroup:P.ElCheckboxGroup,FoxButton:P.ElButton,FoxIcon:P.ElIcon,DragIcon:nh,Download:Se.Download,RefreshLeft:Se.RefreshLeft},props:{...oh},emits:["change"],setup(e,{emit:n,attrs:o,expose:l}){let a=null;const r=t.ref([]),i=Xd(),u=b=>b.length>1,s=()=>{const b=[],x=[...r.value];r.value=x.map((R,C)=>(R.visible!==!1&&b.push(R.prop),{...R,sortIndex:C})),r.value.length===b.length?m.value=!0:b.length>0&&(v.value=!0),c.value=b},d=b=>{let x=null;if(typeof b=="string")x=document.querySelectorAll(`.fox-group[prop="${b}"] > div > .fox-item[prop]`);else if(b&&typeof b=="object"){const R=b.$el??b;typeof R.querySelectorAll=="function"&&(x=R.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const I=[];return x.forEach(R=>{const C=R.querySelector(".label--string");let W="";C&&(W=C.textContent??"");const Z=R.getAttribute("prop")??"",V=window.getComputedStyle(R,null).getPropertyValue("display");I.push({label:W,prop:Z,sortIndex:0,visible:V!=="none"})}),I},h=()=>{if(!a){const b=d(e.groupRef??e.groupProp);if(b.length===0)return!1;a=b}return!0},f=async(b=!1)=>{const x=await i.load(e.groupProp),I=R=>{if(!R||!a)return;const C=a.map(W=>({...W}));Array.isArray(x)&&x.forEach(W=>{C.some(Z=>{if(Z.prop===W.prop){const D=Z.label;return Object.assign(Z,W),Z.label=D,!0}return!1})}),r.value=C.sort((W,Z)=>W.sortIndex-Z.sortIndex),s(),b&&A(!1)};a?I(!0):on(h,e.initDelay,5,50,!1,I)},y=()=>{const b=a??[];r.value=b.map(x=>({...x})),s(),A()},A=(b=!0)=>{b&&i.save(e.groupProp,r.value);const x=r.value.map(I=>({...I}));n("change",x)},p=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=t.ref(!1),v=t.ref(!1),w=b=>{const x=[];r.value.forEach(R=>{b&&x.push(R.prop),R.visible=b}),m.value=!1,v.value=!1,r.value.length===x.length?m.value=!0:x.length>0&&(v.value=!0),c.value=x,A()},g=()=>{y()},c=t.ref([]),B=b=>{r.value.forEach(I=>{const R=b.indexOf(I.prop)!==-1;I.visible=R}),m.value=!1,v.value=!1;const x=r.value.length;b.length===x?m.value=!0:b.length>0&&(v.value=!0),A()},j=()=>{f()};t.onMounted(()=>{f(!0)});const _={currentRow:null,index:null},z=b=>b?b.dataset&&b.dataset.role==="row"?b:b.tagName.toLowerCase()!=="body"?(b=b.parentElement,z(b)):null:null,F=b=>{const x=b.currentTarget;x&&x.dataset&&(_.index=x.dataset.index)},O=b=>{_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null),_.index=null},T=b=>{const x=b.currentTarget;b.relatedTarget;const I=z(x);I&&(b.preventDefault(),_.currentRow&&_.currentRow!==I&&_.currentRow.classList.remove("is-dragover"),I.classList.add("is-dragover"),_.currentRow=I)},S=b=>{b.preventDefault(),_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null)},q=b=>{const x=b.currentTarget,I=z(x);if(!I)return;b.preventDefault();const R=Number(_.index),C=Number(I.dataset.index);if(R!==C){if(R<C){const W=r.value[R];r.value.splice(R,1),r.value.splice(C,0,W)}else{const W=r.value[R];r.value.splice(R,1),r.value.splice(C+1,0,W)}s(),A()}},k=b=>{const x=r.value[b];r.value.splice(b,1),r.value.splice(0,0,x),s(),A()},E=b=>{const x=r.value[b];r.value.splice(b,1),r.value.push(x),s(),A()};l({refresh:()=>{a=null,f(!1)}});const $=new Map;let H=null;function M(b){const x=document.createRange();return x.setStart(b,0),x.setEnd(b,b.childNodes.length),x.getBoundingClientRect().width}return{attrs:o,itemPropertyList:r,isDraggble:u,isCheckAll:m,isIndeterminate:v,handleCheckAllChange:w,handleReset:g,checkedValue:c,handleCheckChange:B,onShow:j,onDragStart:F,onDragEnd:O,onDragOver:T,onDragLeave:S,onDrop:q,checkboxLabelStyle:p,toTop:k,toBottom:E,onMouseOverForOverflowText:(b,x,I)=>{const R=b.currentTarget;if(R){const C=Math.floor(R.offsetWidth);if(Math.floor(M(R))>C){let Z=$.get(x);if(Z){if(Z===H)return;Fe.hide(Z)}Z=Fe.show(R,I,{type:"text",placement:"top",closeOnClick:!1}),$.set(x,Z),H=Z}}},onMouseLeaveForOverflowText:(b,x)=>{const I=$.get(x);I&&(Fe.hide(I),I===H&&(H=null))},onMouseOverForTip:(b,x)=>{const I=b.currentTarget;I&&(H&&Fe.hide(H),H=Fe.show(I,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:b=>{H&&(Fe.hide(H),H=null)}}}}),rh={class:"fox-group-setting"},ih={class:"fox-group-setting__header"},sh={class:"fox-group-setting__body"},uh={class:"fox-group-setting__body-list","data-role":"container"},ch=["data-index","draggable"],fh=["onMouseover","onMouseleave"],dh={class:"tools-item"};function hh(e,n,o,l,a,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),d=t.resolveComponent("Download"),h=t.resolveComponent("FoxIcon"),f=t.resolveComponent("FoxCheckboxGroup"),y=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(y,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",rh,[t.createElementVNode("div",ih,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=A=>e.isCheckAll=A),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",sh,[t.createVNode(f,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=A=>e.checkedValue=A),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",uh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,A=>(t.openBlock(),t.createElementBlock("div",{key:A.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":A.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:n[6]||(n[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:n[7]||(n[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:n[8]||(n[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:n[9]||(n[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:A.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,A.prop,A.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,A.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(A.label),45,fh)]),_:2},1032,["label"]),t.createElementVNode("div",dh,[t.createVNode(h,{onClick:p=>e.toTop(A.sortIndex),onMouseover:n[1]||(n[1]=p=>e.onMouseOverForTip(p,e.toTopText)),onMouseleave:n[2]||(n[2]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:p=>e.toBottom(A.sortIndex),onMouseover:n[3]||(n[3]=p=>e.onMouseOverForTip(p,e.toBottomText)),onMouseleave:n[4]||(n[4]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,ch))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const ql=$e(ah,[["render",hh]]),ll={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popStyle:{type:Object,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeClose:{type:Function}};function mh(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(Kt(e,r)===o)return a}else if(l==="item"){if(Le(o,r))return a}else if(Sr(e,r)===o)return a}return-1}function Kt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Go(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Sr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function gh(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function ph(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}let vh=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,a,r,i,u){if(Array.isArray(o)){let d=o;typeof u=="function"&&(d=d.filter(u));let h=(l-1)*a,f=h+a;f>d.length&&(f=d.length);const y=d.slice(h,f);return{totalSize:d.length,page:y}}if(typeof o=="function")return await Reflect.apply(o,null,[l,a,r,i]);const s=Oe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Be(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[o,l,a,r]))}};function yh(){const e=t.getCurrentInstance();return new vh(e.proxy)}const bh=/scroll|auto|overlay/i,Tr=window;function wh(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function xh(e,n=Tr){let o=e;for(;o&&o!==n&&wh(o);){const{overflowY:l}=window.getComputedStyle(o);if(bh.test(l))return o;o=o.parentNode}return n}function Cr(e,n=Tr){const o=t.ref();return t.onMounted(()=>{e.value&&(o.value=xh(e.value,n))}),o}const $r=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Sh={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Th(e,n,o){return{props:{...Sh},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=ye.useFoxI18n(n),u=i(l,["pullText","loadText","loadMoreText"]),s=t.ref(),d=Cr(s),h=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),f=t.computed(()=>({[e]:!0})),y=g=>g?g.offsetTop+y(g.offsetParent):0,A=()=>{let g=0,c=0,B="down";if(d.value==window){const j=$r();s.value&&(g=y(s.value)+s.value.offsetHeight-j-window.innerHeight),c=j}else{const{scrollHeight:j,clientHeight:_,scrollTop:z}=d.value;g=j-_-z,c=z}return h.beforeScrollTop>c?B="up":B="down",h.beforeScrollTop=c,a("scroll-change",c),g<=l.threshold&&B=="down"},p=()=>{rl(()=>{if(!A()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,a("update:modelValue",!0),t.nextTick(()=>a("load-more"))})},m=()=>{d.value&&d.value.addEventListener("scroll",p,l.useCapture)},v=()=>{d.value&&d.value.removeEventListener("scroll",p,l.useCapture)};t.onMounted(()=>{m(),l.immediate&&p()}),t.onUnmounted(()=>{v()});const w=t.ref(!1);return t.onActivated(()=>{w.value&&(w.value=!1,m())}),t.onDeactivated(()=>{w.value=!0,v()}),t.watch(()=>l.modelValue,g=>{g||(h.isInfiniting=!1)}),()=>{const g={class:"fox-infinite__container"},c=t.h("view",g,[r?.default?.()]),B=[];if(h.isInfiniting){let F=r?.loading?.()??null;if(!F){let S=r?.loadingIcon?.()??null;if(!S){const E={class:["fox-infinite__bottom-box__img"]};S=t.h(o,E)}const q={class:"fox-infinite__bottom-box__text"},k=t.h("view",q,[u.loadText.value]);F=[S,k]}const O={class:"fox-infinite__bottom-box"},T=t.h("view",O,F);B.push(T)}else if(!l.hasMore){let F=r?.finished?.()??null;if(!F){const O={class:"fox-infinite__bottom-tips"};F=t.h("view",O,[u.loadMoreText.value]),B.push(F)}}const j={class:"fox-infinite__bottom"},_=t.h("view",j,B),z={class:f.value,ref:s};return t.h("view",z,[c,_])}}}}const{componentName:Ch,create:$h,scope:kh}=ae("infinite-loading"),Cn=$h(Th(Ch,kh,vn)),Dh={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Nh=(e,n,o)=>({props:{...Dh},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=ye.useFoxI18n(n),u=i(l,["placeholder"]),s=t.reactive({active:!1}),d=t.computed(()=>({background:l.background})),h=t.computed(()=>({background:l.inputBackground})),f=O=>{let S=O.target.value;l.maxLength&&S.length>Number(l.maxLength)&&(S=S.slice(0,Number(l.maxLength))),a("update:modelValue",S,O),a("change",S,O)},y=t.ref({}),A=O=>{let S=O.target.value;s.active=!0,y.value=l.focusStyle,a("focus",S,O)},p=O=>{setTimeout(()=>{s.active=!1},0);let S=O.target.value;l.maxLength&&S.length>Number(l.maxLength)&&(S=S.slice(0,Number(l.maxLength))),y.value={},a("blur",S,O)},m=O=>{a("update:modelValue","",O),a("change","",O),a("clear","")},v=t.computed(()=>String(l.modelValue).length>0),w=t.computed(()=>{const O={};return v.value||(O.display="none"),O}),g=()=>{a("search",l.modelValue)},c=O=>{a("keyup-input",O),O.key.toLocaleUpperCase()==="ENTER"&&g()},B=O=>{a("click-input",O)},j=O=>{a("click-left-icon",l.modelValue,O)},_=t.computed(()=>({textAlign:l.inputAlign})),z=t.ref(null);t.onMounted(()=>{l.autofocus&&z.value.focus()});const F=()=>{const O=[];if(r.leftin){const E={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:j},$=t.h("view",E,[r.leftin()]);O.push($)}const T={ref:z,class:[`${e}__input-inner`],style:_.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:B,onInput:f,onFocus:A,onBlur:p,onkeyup:c},S=t.h("input",T);O.push(S);const q=[];if(l.clearable){const E={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:w.value,onClick:m},$=r?.clear?.()??l.clearIcon??o,H=t.h("view",E,[t.h($)]);q.push(H)}if(r.rightin){const E={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},$=t.h("view",E,[r.rightin()]);q.push($)}if(q.length>0){const E={class:`${e}__input-inner-right`},$=t.h("view",E,q);O.push($)}const k={class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...y.value}};return t.h("view",k,O)};return()=>{const O=[];if(l.label){const q={class:`${e}__search-label`},k=t.h("span",q,[l.label]);O.push(k)}if(r.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},k=t.h("view",q,[r.leftout()]);O.push(k)}const T=F();if(O.push(T),r.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},k=t.h("view",q,[r.rightout()]);O.push(k)}const S={class:`${e}`,style:d.value};return t.h("view",S,O)}}}),{componentName:Eh,create:Vh,scope:Ih}=ae("searchbar"),$n=Vh(Nh(Eh,Ih,Se.CircleClose));function Ph(e,n,o){return{props:{...ll},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=ye.useFoxI18n(n),u=i(l,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),s=yh(),d=t.ref([]),h=t.ref(0),f=t.ref(""),y=t.shallowRef(null),A=t.computed(()=>{const b={};return l.params&&Object.assign(b,l.params),ge(f.value)||(b[`${l.searchKey}`]=f.value),y.value&&Object.assign(b,y.value),b});let p=!0;const m=async(b,x,I)=>{try{if(w.value===!1)return;let R=null;ge(f.value)||(R=W=>{const Z=Kt(l,W);if(typeof Z=="string"&&Z.includes(f.value))return!0;const D=Go(l,W);return!!(typeof D=="string"&&D.includes(f.value))});const C=await s.load("actionsheet",b,x,I,A.value,p,R??void 0);p=!1,Array.isArray(C)?(d.value=C,h.value=1,w.value=!1):!Array.isArray(C.page)||C.page.length===0?(console.warn("[FoxUI] can not load more data"),w.value=!1):(Reflect.apply([].push,d.value,C.page),h.value=Math.ceil(d.value.length/l.pageSize),(C.totalSize&&d.value.length>=C.totalSize||I<C.page.length)&&(w.value=!1)),v.value=!1}catch(R){console.error("[FoxUI] ActionSheet load more data fail",R),w.value=!0,h.value=0,d.value=[]}setTimeout(()=>{a("loaded-data")},250)},v=t.ref(!1),w=t.ref(!0),g=async()=>{if(!l.source){v.value=!1;return}await m(l.source,h.value+1,l.pageSize)};t.watch(()=>f.value,(b,x)=>{ge(b)&&!ge(x)&&g()}),t.watch([()=>l.source,()=>l.pageSize,()=>l.params],async([b,x,I])=>{l.source&&g()},{immediate:!0});const c=t.computed(()=>!l.multiple&&l.isAutoBackFill),B=t.ref([]);let j=null;const _=t.ref(l.visible);t.watch(()=>l.visible,b=>{_.value!==b&&(_.value=b),b?j=[...B.value]:j=null});const z=(b,x)=>{const I=[];return Array.isArray(b)||(b=[b]),b.forEach(R=>{let C=mh(l,x,R,l.valueType);C!==-1&&I.push(C)}),Le(I,B.value)?!1:(B.value=I,!0)};t.watch([()=>l.modelValue,()=>d.value],([b,x],[I,R])=>{if(z(b,x)){const W=F();O(W)}},{deep:!0});const F=()=>{const b=[],x=[],I=[];for(let Z of B.value){const D=d.value[Z];x.push(D);const V=Kt(l,D);if(I.push(V),l.valueType==="item")b.push(D);else if(l.valueType==="text")b.push(V);else{const L=Sr(l,D);b.push(L)}}let R=null,C=null,W=null;return l.multiple?(R=b,C=I,W=x):(R=b[0]??null,C=I[0]??null,W=x[0]??null),{value:R,text:C,item:W}},O=b=>{a("update:modelValue",b.value),a("update:text",b.text),a("change",b.value,b.item,b.text)},T=()=>{j&&(B.value=j)},S=b=>{const x=B.value.indexOf(b);l.multiple?x===-1?B.value.push(b):B.value.splice(x,1):x===-1?B.value=[b]:B.value=[],(c.value||!l.poppable&&!l.showFooter)&&E()},q=b=>{_.value=b,a("update:visible",b)},k=()=>{const b=()=>{T(),q(!1)};if(typeof l.beforeClose=="function"){const x=l.beforeClose("close");Wt(x)?x.then(I=>{I!==!1&&b()}).catch(()=>{b()}):x!==!1&&b()}else b()},E=()=>{const b=F(),x=()=>{O(b),q(!1)};if(typeof l.beforeClose=="function"){const I=l.beforeClose("confirm",b.value,b.item,b.text);Wt(I)?I.then(R=>{R!==!1&&x()}).catch(()=>{x()}):I!==!1&&x()}else x()},$=()=>{w.value=!0,h.value=0,d.value=[],l.source&&g()},H=()=>{let b=u.title.value??"";r.title&&(b=r.title());const x=t.h("view",{class:["fox-actionsheet__header-title"]},[b]),I=t.h(dr,{class:["fox-actionsheet__header-icon"],onClick:k});return t.h("view",{class:["fox-actionsheet__header"]},[x,I])},M=()=>{let b=null;if(r.search)b=r.search();else{const x={onSearch:$,placeholder:u.seachPlaceholder.value,disabled:l.disabled,modelValue:f.value,"onUpdate:modelValue":I=>{f.value=I}};b=t.h($n,x,{leftin:()=>t.h(fu)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[b])},U=(b,x,I,R,C)=>{if(r.optionLabel)return r.optionLabel({text:b,checked:x,disabled:I,subText:R,item:C});const W=[],Z=t.h("view",{class:"fox-actionsheet__list-item-text"},[b]);if(W.push(Z),R){const D=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[R]);W.push(D)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},W)},Y=(b,x,I,R)=>{if(r.optionIcon)return r.optionIcon({checked:b,disabled:x,iconSize:I,item:R});if(b){if(r.checkedIcon)return r.checkedIcon({disabled:x,item:R});{const C=l.checkedIcon??Nu;return t.h(C,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:x,item:R});{const C=l.icon??Pu;return t.h(C,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]})}}},G=()=>{const b=[];for(let x=0;x<d.value.length;x++){const I=d.value[x],R=Kt(l,I),C=Go(l,I),W=["fox-actionsheet__list-item"],Z={};let D=gh(l,I),V=l.iconSize?he(l.iconSize):null;const L=ph(l,I,x);L&&(D=D||L.disabled,L.class&&W.push(L.class),L.style&&Object.assign(Z,L.style)),D=!!(l.disabled||D);const K=B.value.includes(x);D&&W.push("is-disabled"),K&&W.push("is-checked");const ee={class:W,style:Z,key:`${x}`,onClick:()=>{D||S(x)}};let ne=[];if(r.option)ne.push(r.option({item:I,checked:K,disabled:D}));else{const X=U(R,K,D,C,I);ne.push(X);const te=Y(K,D,V,I);ne.push(te)}const N=t.h("view",ee,ne);b.push(N)}return b},Q=()=>{let b=[];if(r.buttons)b=r.buttons();else{const I=t.h("view",{class:"fox-actionsheet__footer-confirm",onClick:E,disabled:l.disabled},{default:()=>u.confirmText.value});b.push(I)}return t.h("view",{class:"fox-actionsheet__footer"},[b])};return pe({search:async(b=null,x=!0)=>{y.value=b&&t.toRaw(b),t.triggerRef(y),x&&(w.value=!0,h.value=0,d.value=[]),t.nextTick(()=>{g()})},clear:()=>{w.value=!0,h.value=0,d.value=[]},confirm:()=>{E()},cancel:()=>{k()}}),()=>{const b=[];if(l.showHeader){const V=H();b.push(V)}if(l.showSearchbar){const V=M();b.push(V)}let x=null;if(r.content)x=r.content();else{const V=G(),L={hasMore:w.value,loadText:u.loadText.value,loadMoreText:u.loadMoreText.value,modelValue:v.value,"onUpdate:modelValue":K=>{v.value=K},onLoadMore:g};x=t.h(Cn,L,{default:()=>V})}const I={};l.optionsHeight&&(I.height=l.optionsHeight);const R={"fox-actionsheet__list":!0};l.poppable||(R["fox-actionsheet__list--inner"]=!0);const C=t.h("view",{class:R,style:I},[x]);if(b.push(C),l.showFooter&&!c.value){const V=Q();b.push(V)}const W=t.h("view",{class:"fox-actionsheet"},b);if(!l.poppable)return W;const Z=["fox-actionsheet__popup"];l.popClass&&Z.push(l.popClass);const D={popClass:Z.join(" "),style:l.popStyle,visible:_.value,closeable:!1,"onUpdate:visible":q,position:l.position,round:"round",onClickOverlay:k,closeOnClickOverlay:l.closeOnClickOverlay};return t.h(it,D,{default:()=>W})}}}}const{componentName:Oh,create:Ah,scope:Fh}=ae("actionsheet-pane"),kn=Ah(Ph(Oh,Fh)),Bh={type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Rh(e,n,o,l,a){return{props:{...ve,...Te,...Bh,...ll},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(r,i){const u=Ve(t.computed(()=>r.disabled)),s=Ee(t.computed(()=>r.readonly)),{emitEvent:d}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!s.value}},r.prop??i.attrs.name),{toLocaleRefs:h}=ye.useFoxI18n(n),f=h(r,["placeholder"]),y=t.ref(!1),A=fe(r,"modelValue"),p=t.ref(""),m=t.computed(()=>Array.isArray(p.value)?p.value.join(r.separator):p.value),v="fox-input-item",w=t.computed(()=>({[v]:!0,[`${v}__disabled`]:u.value})),g=De(t.computed(()=>r.textAlign),"textAlign"),c=t.computed(()=>{const $={};return g.value&&($["text-align"]=g.value),$}),B=t.ref(!1),j=()=>{B.value=!0},_=$=>{B.value=$},z=$=>{A.value=$,d("update:modelValue",$)},F=($,H)=>{d("change",$,H)},O=$=>{let M=$.target.value;y.value=!0,d("focus",M,$)},T=$=>{setTimeout(()=>{y.value=!1},0);let M=$.target.value;r.maxLength&&M.length>Number(r.maxLength)&&(M=M.slice(0,Number(r.maxLength))),d("blur",M,$)},S=$=>{p.value=$,d("update:text",$)},q=t.computed(()=>qe(r.unit)>0),k=t.ref(),E=t.ref(null);return pe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()},search:$=>{E.value&&E.value.search($)},clear:()=>{E.value&&E.value.clear},confirm:$=>{E.value&&E.value.confirm()},cancel:()=>{E.value&&E.value.cancel()}}),()=>{const $={ref:k,class:w.value,style:c.value,type:"text",maxlength:r.maxLength,placeholder:f.placeholder.value,readonly:!0,value:m.value,onClick:j,onFocus:O,onBlur:T},H={};i.slots.prepend&&(H.prepend=i.slots.prepend),i.slots.append&&(H.append=i.slots.append),i.slots.prefix&&(H.prefix=i.slots.prefix),i.slots.suffix?H.suffix=i.slots.suffix:q.value?H.suffix=()=>[r.unit]:H.suffix=()=>t.h(P.ElIcon,{},{default:()=>t.h(Se.ArrowDown)});const M=[],U=t.h(P.ElInput,$,H);M.push(U);const Y={default:()=>M};Y.label=i.slots.default,Y.prepend=i.slots.prepend,Y.append=i.slots.append,Y.fixedPreTip=i.slots.fixedPreTip,Y.fixedTip=i.slots.fixedTip;const G=pt(r,ll);G.ref=E,G.class=r.actionsheetProps,G.disabled=u.value||s.value,G.visible=B.value,G["onUpdate:visible"]=_,G.modelValue=A.value,G["onUpdate:modelValue"]=z,G.text=p.value,G["onUpdate:text"]=S,G.onChange=F,G.poppable=!0;const Q={title:i.slots.title,search:i.slots.search,option:i.slots.option,optionLabel:i.slots.optionLabel,optionIcon:i.slots.optionIcon,buttons:i.slots.buttons},b=t.h(l,G,Q);Y.hide=()=>[b];const x=pt(r,Te,ve);return t.h(o,x,Y)}}}}const{componentName:Mh,create:Lh,scope:_h}=ae("actionsheet-item"),zl=Lh(Rh(Mh,_h,be,kn)),kr={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}},jl={...$l,...kr,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 qh(e){return e===window}const Hl=e=>{const n=t.unref(e);if(qh(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Xo=10;function Dr(e,n){return e>n&&e>Xo?"horizontal":n>e&&n>Xo?"vertical":""}function Kl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Yl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Dr(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:l,isVertical:n,isHorizontal:o,state:e}}function Nr(){const e=t.ref(0),n=t.ref(0),o=t.ref(0),l=t.ref(0),a=t.ref(0),r=t.ref(0),i=t.ref(0),u=t.ref(0),s=t.ref(0),d=t.ref(0),h=t.ref(""),f=()=>h.value==="vertical",y=()=>h.value==="horizontal",A=()=>{i.value=0,u.value=0,s.value=0,d.value=0,h.value="",o.value=0};return{move:v=>{if(v.touches){const c=v.touches[0];i.value=c.clientX-e.value,u.value=c.clientY-n.value,a.value=c.clientX,r.value=c.clientY}else{const g=v;i.value=g.clientX-e.value,u.value=g.clientY-n.value,a.value=g.clientX,r.value=g.clientY}s.value=Math.abs(i.value),d.value=Math.abs(u.value),l.value=Date.now()-o.value,h.value||(h.value=Dr(s.value,d.value))},start:v=>{if(A(),v.touches){const c=v.touches[0];e.value=c.clientX,n.value=c.clientY}else{const g=v;e.value=g.clientX,n.value=g.clientY}o.value=Date.now()},reset:A,startX:e,startY:n,startTime:o,duration:l,moveX:a,moveY:r,deltaX:i,deltaY:u,offsetX:s,offsetY:d,direction:h,isVertical:f,isHorizontal:y}}let Er=36;function zh(){return Er}function jh(e){Er=e}function ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ol(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Hh(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function at(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Zo(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Kh=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Yh(){const e=t.getCurrentInstance();return new Kh(e.proxy)}function Qo(e,n,o){const l=ze(e,n),a=ze(e,o);if(l!==a)return!1;const r=at(e,n),i=at(e,o);return r===i}function Wh(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const u=n[i];let d=o[i].findIndex(h=>{if(r==="text")return ze(e,h)===u;if(r==="value"){let f=at(e,h);return f==null&&(f=ze(e,h)),f===u}else if(r==="item")return Qo(e,h,u)});if(d==-1)break;a.push(d)}else{let i=o[0];for(let u=0;u<n.length;u++){const s=n[u];let d=i.findIndex(f=>{if(r==="text")return ze(e,f)===s;if(r==="value"){let y=at(e,f);return y==null&&(y=ze(e,f)),y===s}else if(r==="item")return Qo(e,f,s)});if(d==-1)break;a.push(d);const h=ol(e,i[d]);if(!Array.isArray(h))break;i=h}}return a}function Jo(e,n,o,l){if(o.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const u=o[i];let s=n[i];s<0&&s>=u.length&&(s=0);const d=u[s],h=ze(e,d);if(a.texts.push(h),a.items.push(d),r==="text")a.values.push(h);else if(r==="value"){let f=at(e,d);f==null&&(f=h),a.values.push(f)}else a.values.push(d)}else{let i=o[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=i.length&&(s=0);const d=i[s],h=ze(e,d),f=Object.assign({},d);if(f.children=null,a.texts.push(h),a.items.push(f),r==="text")a.values.push(h);else if(r==="value"){let y=at(e,d);y==null&&(y=h),a.values.push(y)}else a.values.push(f);if(!Array.isArray(d.children))break;i=d.children}}return a}function ea(e){return{text:e,value:e}}const Uh=15,Gh=300,Xh=200,{create:Zh}=ae("picker-column");function Qh(e){e.stopPropagation()}function Jh(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Qh(e)}const em=Zh({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},...kr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=t.computed(()=>({"fox-picker__list":!0})),l=t.computed(()=>({height:`${de(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=F=>F>=f.currIndex+8||F<=f.currIndex-8,u=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${r.value}px`})),s=F=>`transform: rotate3d(1, 0, 0, ${-f.rotation*F}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+r.value}px, 0)`})),h=t.ref(null),f=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),y=t.toRef(e,"source"),A=F=>ze(e,F),p=F=>at(e,F),m=Nr(),v=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},w=(F,O=!1,T=!1)=>{if(f.currIndex=F,O){const S=()=>{f.moving=!1,n("update:modelValue",F),n("change",F)};T?f.transitionEndTrigger=S:S()}},g=(F,O,T)=>{let S=F+f.startDistance;if(O==="end"){const q=-(y.value.length-1)*e.itemHeight;S<q&&(S=q,(!T||T<=0)&&(T=e.swipeDuration)),S>0&&(S=0,(!T||T<=0)&&(T=e.swipeDuration));let k=Math.abs(Math.round(-S/e.itemHeight));const E=-k*e.itemHeight,$=`${(k+1)*f.rotation}deg`,H=T?T>0:!1;w(k,!0,H),c(E,O,T,$)}else{let q=(-S/e.itemHeight+1)*f.rotation;const k=(y.value.length+1)*f.rotation,E=0;if(q=Math.min(Math.max(q,E),k),e.threeDimensional&&(q<E||q>k))return;c(S,null,void 0,`${q}deg`)}},c=(F=0,O,T=Xh,S)=>{O==="end"?f.scrollTime=T:f.scrollTime=0,f.deg=S,f.scrollDistance=F},B=(F,O)=>(F=Math.abs(F/O)/.003*(F<0?-1:1),F),j=F=>{if(!e.readonly){if(f.moving){const O=h.value,{transform:T}=window.getComputedStyle(O);f.scrollDistance=+T.slice(7,T.length-1).split(", ")[5]}f.startDistance=f.scrollDistance,m.start(F),f.transitionEndTrigger=null}},_=F=>{e.readonly||(f.moving=!0,m.move(F),m.isVertical()&&(f.moving=!0,Jh(F,!0)),g(m.deltaY.value,"",0))},z=()=>{if(e.readonly)return;const F=m.deltaY.value,O=m.duration.value;if(O<Gh&&Math.abs(F)>Uh){const S=B(F,O);g(S,"end",e.swipeDuration)}else g(F,"end",0)};return t.watch(()=>e.modelValue,F=>{if(f.currIndex!==F){f.currIndex=F;const O=-F*e.itemHeight;g(O)}}),t.onMounted(()=>{const F=-e.modelValue*e.itemHeight;g(F)}),{classes:o,styles:l,contentClasses:a,source:y,itemText:A,itemValue:p,...t.toRefs(f),roller:h,getItemText:ze,onTouchStart:j,onTouchMove:_,onTouchEnd:z,isHidden:i,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:v}}}),tm={key:1,class:"fox-picker__item-tile"};function nm(e,n,o,l,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(i,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u+1)}]),style:t.normalizeStyle(e.setRollerStyle(u+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",tm,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const lm=$e(em,[["render",nm]]),{create:om,componentName:am,scope:rm}=ae("picker"),im=om({components:{PickerColumn:lm,Popup:it},props:{...jl},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=ye.useFoxI18n(rm),a=o(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(zh());t.watch(()=>e.visible,T=>{T&&i.value<=0&&setTimeout(()=>{if(r.value){const S=Hl(r.value);i.value=S.height,jh(i.value)}},50)});const u=t.computed(()=>({[am]:!0})),s=Yh(),d=t.ref("singleColumn");let h=t.ref([]);t.watch([()=>e.source,()=>e.params],async([T,S])=>{if(T){let q=await s.load("select",T,S);if(q.length>0){let k=q[0];if(Array.isArray(k)){if(typeof k[0]=="string"){let E=q,$=[];E.forEach(H=>{let M=H.map(U=>ea(U));$.push(M)}),h.value=$}else h.value=q;d.value="multipleColumn"}else if(typeof k=="string"){let E=q,$=[],H=E.map(M=>ea(M));$.push(H),h.value=$,d.value="singleColumn"}else{const E=ol(e,k);Array.isArray(E)?(d.value="cascade",h.value=[q]):(d.value="singleColumn",h.value=[q])}}else h.value=[]}},{immediate:!0});const f=t.ref([]),y=t.ref(e.modelValue),A=t.ref([]),p=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([T,S])=>{let q=Wh(e,T,S,d.value);if(!Le(q,p.value)){p.value=q;let k=Jo(e,q,S,d.value);k&&(f.value=k.texts,n("update:text",f.value))}});const m=t.ref(e.visible);t.watch(()=>e.visible,T=>{m.value=T});const v=T=>{let S=Zo(e,T);return Be(S)?S.defaultIndex??0:0},w=T=>{if(e.readonly===!0)return!0;let S=Zo(e,T);return Be(S)?S.readonly??!1:!1},g=(T,S)=>{let q=p.value;q[T]=S;for(let E=0;E<T;E++)q[E]==null&&(q[E]=v(E));if(d.value==="cascade")for(let E=T+1;E<B.value.length;E++){let $=v(E);E<q.length?q[E]=$:q.push($)}else for(let E=q.length;E<B.value.length;E++){let $=v(E);q.push($)}p.value=q;let k=Jo(e,q,h.value,d.value);k&&(f.value=k.texts,y.value=k.values,A.value=k.items)},c=T=>T<p.value.length?p.value[T]:v(T),B=t.computed(()=>{if(h.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return h.value;let T=[],S=0,q=h.value[0],k=0;for(;;){let E=q.map(M=>{let U=Object.assign({},M);return Hh(e,U,null),U});T.push(E),S>=p.value.length?k=0:k=p.value[S],(k<0||k>=q.length)&&(k=0);let $=q[k];const H=ol(e,$);if(!Array.isArray(H))break;q=H,S++}return T}),j=t.computed(()=>de(+e.visibleItemCount-1)/2*i.value);return{...a,pickerLineRef:r,classes:u,columns:B,dataType:d,show:m,itemHeight:i,top:j,isReadonly:w,getIndex:c,change:(T,S)=>{g(T,S)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let T=h.value.length-1;for(;T>=0&&!(p.value[T]===null||p.value[T]===void 0);T--);if(T>=0&&g(T,0),d.value==="singleColumn"){let S=y.value.length>0?y.value[0]:"",q=A.value.length>0?A.value[0]:null;e.readonly||(n("update:modelValue",S),n("update:text",f.value),n("change",S,q)),n("confirm",S)}else e.readonly||(n("update:modelValue",y.value),n("update:text",f.value),n("change",y.value,A.value)),n("confirm",y.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}d.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),sm={class:"fox-picker__bar"},um={class:"fox-picker__title"},cm={class:"fox-picker__bar__action"},fm={class:"fox-picker__column"};function dm(e,n,o,l,a,r){const i=t.resolveComponent("PickerColumn"),u=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(u,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",sm,[t.createElementVNode("view",um,t.toDisplayString(e.title),1),t.createElementVNode("view",cm,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...s)=>e.close&&e.close(...s))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...s)=>e.clear&&e.clear(...s))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",fm,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(s,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(i,{source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":h=>e.change(d,h),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const Rt=$e(im,[["render",dm]]),ta={...jl,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 hm(e,n,o){return{props:{...ve,...Te,...ta},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(l,a){const r=Ve(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:u}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},l.prop??a.attrs.name),{toLocaleRefs:s}=ye.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),f=e,y=t.computed(()=>({[f]:!0})),A=De(t.computed(()=>l.textAlign),"textAlign"),p=t.computed(()=>({textAlign:A.value??"right"})),m=fe(l,"modelValue"),v=t.ref([]),w=t.computed(()=>Array.isArray(v.value)?v.value.join(" "):v.value),g=t.ref(!1),c=()=>{g.value=!0},B=$=>{g.value=$},j=$=>{m.value=$,u("update:modelValue",$)},_=$=>{v.value=$,Array.isArray($)&&$.length===0?u("update:text",$[0]):u("update:text",$)},z=($,H)=>{u("change",$,H)};let F=fe(l,"hintText"),O=t.ref(!1);const T=$=>{let M=$.target.value;h.value=!0,ge(F.value)||(O.value=!0),u("focus",M,$)},S=$=>{setTimeout(()=>{O.value&&(O.value=!1),h.value=!1},0);let M=$.target.value;l.maxLength&&M.length>Number(l.maxLength)&&(M=M.slice(0,Number(l.maxLength))),g.value?setTimeout(()=>{u("blur",M,$)},50):u("blur",M,$)},q=()=>{u("clear","")},k=t.computed(()=>qe(l.unit)>0),E=t.ref();return pe({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},select:()=>{E?.value.select()}}),()=>{const $={class:y.value,style:p.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,clearable:se(l.clearable),readonly:!0,value:w.value,onClick:c,onFocus:T,onBlur:S},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),a.slots.suffix?H.suffix=a.slots.suffix:k.value?H.suffix=()=>[l.unit]:H.suffix=()=>t.h(P.ElIcon,{},{default:()=>t.h(Se.ArrowDown)});const M=[],U=t.h(P.ElInput,$,H);M.push(U);const Y={default:()=>M};a.slots.default&&(Y.label=a.slots.default),a.slots.fixedTip&&(Y.fixedTip=a.slots.fixedTip);const G=pt(l,jl);G.disabled=!1,G.readonly=r.value||i.value,G.visible=g.value,G["onUpdate:visible"]=B,G.modelValue=m.value,G["onUpdate:modelValue"]=j,G.text=v.value,G["onUpdate:text"]=_,G.onClear=q,G.onChange=z;const Q=t.h(Rt,G);Y.hide=()=>[Q];const x={...Ne(l,ta),hintText:F.value,hintVisible:O.value,prop:`${l.prop??a.attrs.name}_item`};return t.h(o,x,Y)}}}}const{componentName:mm,create:gm,scope:pm}=ae("picker-item"),Wl=gm(hm(mm,pm,be)),vm={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function ym(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function na(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function la(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function bm(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function qn(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function oa(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function aa(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function zn(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class wm{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[l]);const a=Oe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(a,null,[o,l]))}}function xm(){const e=t.getCurrentInstance();return new wm(e.proxy)}function Sm(e,n,o,l){return{props:{...vm},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:i}){const u=e,s=xm(),d=t.ref([]),h=t.computed(()=>d.value.filter(x=>bm(a,x)!==!1)),f=t.ref(-1),y=()=>{const x=a.modelValue,I=h.value.findIndex(R=>na(a,R)===x);f.value!==I&&(f.value=I,a.scroll&&Q(I,!1))};t.watch([()=>a.modelValue,h],()=>{y()});const A=x=>f.value===x,p=x=>{if(x<0&&x>=h.value.length)return!1;const I=h.value[x],C=(zn(a,I,x)??{}).status??qn(a,I);return A(x)||C},m=t.computed(()=>{const x={[u]:!0};return a.mode?x[`is-${a.mode}`]=!0:a.direction&&(x[`is-${a.direction}`]=!0),a.scroll&&(x["is-scroll"]=!0),x}),v=t.computed(()=>({})),w=(x,I,R,C,W)=>{const Z={[`${u}__step`]:!0};return W&&(Z[`${W}`]=!0),Z[`${g.value}`]=!0,C&&(Z["is-doit"]=!0),x===f.value?Z["is-active"]=!0:I==="done"?Z["is-done"]=!0:I==="error"?Z["is-error"]=!0:I==="half"?Z["is-half"]=!0:R?Z["is-disabled"]=!0:Z["is-normal"]=!0,Z},g=t.computed(()=>{if(a.mode==="simple")return"start";let x=a.align;return x||(a.direction==="vertical"?x="start":x="center"),x}),c=(x,I={})=>{const R={...I};return g.value==="start"&&x===h.value.length-1?R.flex="0 0 auto":a.step?a.direction==="vertical"?R.height=a.step:R.width=a.step:R.flex="1 1 100%",R},B=(x,I)=>{let R={};if(I<h.value.length-1){const C=I+1;p(I)&&p(C)?a.direction==="vertical"?R.height="100%":R.width="100%":R.opacity="0"}return R},j=x=>h.value.length-1===x,_=(x,I)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&I>f.value||f.value===I)return;const R=f.value,C=I;f.value=I,a.scroll&&Q(I,!1);const W=na(a,x);i("update:modelValue",W);const Z={fromIndex:R,currentIndex:C,item:x,items:h.value,clickNavigatePolicy:a.clickNavigatePolicy};i("change",W,Z)},z=t.ref(!0),F=async(x,I)=>{try{const R=await s.load("stesbar",x,I);Array.isArray(R)&&(d.value=R),z.value=!1}catch(R){console.error("[FoxUI] Load StepsBar Data Fail",R),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([x,I])=>{x&&F(x,I)},{immediate:!0});const O=(x,I,R,C,W)=>{let Z=null;if(r.icon)Z=r.icon({item:x,index:I,status:C});else if(C==="done"){const V={};a.iconSize&&(V.width=a.iconSize,V.height=a.iconSize);const L=a.icon??o;Z=t.h(L,V)}else{const V=R??`${I+1}`;Z=t.h("span",{},[V])}const D={class:"fox-steps-bar__icon",onClick:()=>{W||_(x,I)}};return t.h("view",D,[Z])},T=(x,I,R)=>{const C=t.h("i",{class:"fox-steps-bar__line-inner",style:B(x,I)});return t.h("view",{class:"fox-steps-bar__line"},[C])},S=()=>{let x=null;if(r.markIcon)x=r.markIcon();else{const R={};a.iconSize&&(R.width=a.markIconSize,R.height=a.markIconSize);const C=a.markIcon??l;x=t.h(C,R)}return t.h("view",{class:"fox-steps-bar__mark"},[x])},q=(x,I,R,C,W)=>{const Z=[];if(!j(I)){const L=T(x,I);Z.push(L)}const D=O(x,I,R,C,W);Z.push(D);const V={class:"fox-steps-bar__head"};return t.h("view",V,Z)},k=(x,I,R,C)=>{let W=null;r.main?W=r.main({item:x,index:I,status:R}):W=ym(a,x);const Z={class:"fox-steps-bar__main",onClick:()=>{C||_(x,I)}};return t.h("view",Z,[W])},E=(x,I,R)=>{let C=null;if(r.sub){C=r.sub({item:x,index:I,status:R});const W={class:"fox-steps-bar__sub"};return t.h("view",W,[C])}return null},$=(x,I)=>{const R=zn(a,x,I)??{},C=R.status??qn(a,x);let W=la(a,x);R.disabled===!0&&(W=!0),a.disabled===!0&&(W=!0);const Z=R.label??aa(a,x),D=[],V=O(x,I,Z,C,W);V&&D.push(V);const L=k(x,I,C,W);if(L&&D.push(L),!j(I)){const te=T(x,I);te&&D.push(te)}const K=t.h("view",{class:"fox-steps-bar__head"},D),ee=R.class,ne=R.style??{};let N=oa(a,x);R.doit===!0&&(N=!0);const X={ref:G(I),class:w(I,C,W,N,ee),style:c(I,ne)};return t.h("view",X,[K])},H=(x,I)=>{const R=zn(a,x,I)??{},C=R.status??qn(a,x);let W=la(a,x);R.disabled===!0&&(W=!0),a.disabled===!0&&(W=!0);const Z=R.label??aa(a,x),D=[],V=a.layout;for(let N of V)if(N==="head"){const X=q(x,I,Z,C,W);D.push(X)}else if(N==="main"){const X=k(x,I,C,W);D.push(X)}else if(N==="sub"){const X=E(x,I,C);D.push(X)}else if(N==="mark"){const X=S();D.push(X)}const L=R.class,K=R.style??{};let ee=oa(a,x);R.doit===!0&&(ee=!0);const ne={ref:G(I),class:w(I,C,W,ee,L),style:c(I,K)};return t.h("view",ne,D)},M=t.ref(),U=t.ref([]),Y=(x,I)=>{U.value[I]=x},G=x=>I=>{Y(I,x)},Q=(x,I)=>{const R=M.value,C=U.value;if(!R||!C||!C[x])return;const W=C[x];let Z=0;a.direction==="vertical"?Z=W.offsetTop-(R.offsetHeight-W.offsetHeight)/2:Z=W.offsetLeft-(R.offsetWidth-W.offsetWidth)/2,b(R,Z,I?0:.3,a.direction)},b=(x,I,R,C)=>{let W=0;const Z=C==="horizontal"?x.scrollLeft:x.scrollTop,D=R===0?1:Math.round(R*1e3/16);function V(){C==="horizontal"?x.scrollLeft+=(I-Z)/D:x.scrollTop+=(I-Z)/D,++W<D&&ul(V)}V()};return()=>{const x=[];if(a.mode==="simple")for(let R=0;R<h.value.length;R++){const C=h.value[R],W=$(C,R);x.push(W)}else for(let R=0;R<h.value.length;R++){const C=h.value[R],W=H(C,R);x.push(W)}const I={ref:M,class:m.value,style:v.value};return t.h("view",I,x)}}}}const{componentName:Tm,create:Cm,scope:$m}=ae("steps-bar"),Ul=Cm(Sm(Tm,$m,hr,Bu)),ra=new Date().getFullYear(),km={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"},ia=(e,n,o)=>{let l;if(Qe(n)?l=n:typeof n=="string"&&qe(n)>0?l=le.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let a=Math.max(l.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Dm=(e,n,o)=>{Qe(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),le.format(new Date(l),o)};let Nm={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(ra-10,0,1),validator:Qe},maxDate:{type:Date,default:()=>new Date(ra+10,11,31),validator:Qe},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:Em,scope:Vm}=ae("date-picker"),Im=Em({components:{Picker:Rt},props:{...Nm},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=ye.useFoxI18n(Vm),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds")},a=t.ref(!1);t.watch(()=>e.visible,w=>{a.value=w});function r(w,g){return new Date(w,g,0).getDate()}const i=(w,g)=>{const c=e[`${w}Date`],B=c.getFullYear();let j=1,_=1,z=0,F=0;w==="max"&&(j=12,_=r(g.getFullYear(),g.getMonth()+1),z=23,F=59);const O=F;return g.getFullYear()===B&&(j=c.getMonth()+1,g.getMonth()+1===j&&(_=c.getDate(),g.getDate()===_&&(z=c.getHours(),g.getHours()===z&&(F=c.getMinutes())))),{[`${w}Year`]:B,[`${w}Month`]:j,[`${w}Date`]:_,[`${w}Hour`]:z,[`${w}Minute`]:F,[`${w}Seconds`]:O}},u=t.computed(()=>{if(!y.value)return[];const{maxYear:w,maxDate:g,maxMonth:c,maxHour:B,maxMinute:j,maxSeconds:_}=i("max",y.value),{minYear:z,minDate:F,minMonth:O,minHour:T,minMinute:S,minSeconds:q}=i("min",y.value);let k=[{type:"year",range:[z,w]},{type:"month",range:[O,c]},{type:"day",range:[F,g]},{type:"hour",range:[T,B]},{type:"minute",range:[S,j]},{type:"seconds",range:[q,_]}];switch(e.type){case"date":k=k.slice(0,3);break;case"datetime":k=k.slice(0,5);break;case"time":k=k.slice(3,6);break;case"year-month":k=k.slice(0,2);break;case"month-day":k=k.slice(1,3);break;case"datehour":k=k.slice(0,4);break;case"hour-minute":k=k.slice(3,5);break}return k}),s=(w,g,c)=>{if(!(g>w))return null;const B=[];for(;w<=g;)e.isShowChinese?B.push({text:w+l[c],value:w}):B.push({text:`${w}`,value:w}),c==="minute"?w+=e.minuteStep:w++;return B},d=t.computed(()=>{let w=[];return u.value.forEach(g=>{let c=s(g.range[0],g.range[1],g.type);c&&w.push(c)}),w}),h=(w,g)=>w==="year"?g.getFullYear():w==="month"?g.getMonth()+1:w==="day"?g.getDate():w==="hour"?g.getHours():w==="minute"?g.getMinutes():w==="seconds"?g.getSeconds():0,f=t.ref(),y=t.ref(null);t.watchEffect(()=>{let w,g=e.modelValue;if(typeof g=="string"?g.length==0?w=new Date:e.valueFormat?w=ia(e,e.modelValue,e.valueFormat):w=ia(e,g,km[e.type]):Qe(g)?w=g:w=new Date,!!w&&(!y.value||w.getTime()!==y.value.getTime())){y.value=w;let c=[];u.value.forEach(B=>{let j=h(B.type,w);c.push(j)}),f.value=c}});const A=w=>{if(e.type==="date"){let g=w;y.value=new Date(g[0],g[1]-1,Math.min(g[2],r(g[0],g[1])))}else if(e.type==="datetime"){let g=w;y.value=new Date(g[0],g[1]-1,Math.min(g[2],r(g[0],g[1])),g[3],g[4])}else if(e.type==="time"){let g=w,c=y.value??new Date,B=new Date(c.getFullYear(),c.getMonth(),c.getDate(),g[0],g[1],g[2]);y.value=B}else if(e.type==="year-month"){let g=w,c=new Date(g[0],g[1]-1);y.value=c}else if(e.type==="month-day"){let g=w,c=y.value??new Date,B=new Date(c.getFullYear(),g[0]-1,g[1]);y.value=B}else if(e.type==="datehour"){let g=w;y.value=new Date(g[0],g[1]-1,Math.min(g[2],r(g[0],g[1])),g[3])}else if(e.type==="hour-minute"){let g=w,c=y.value??new Date,B=new Date(c.getFullYear(),c.getMonth(),c.getDate(),g[0],g[1]);y.value=B}f.value=w};return{columns:d,dateIndexs:f,show:a,onClose:()=>{a.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:w=>{A(w),a.value=!1;let g=y.value??new Date;if(e.valueFormat){let c=Dm(e,g,e.valueFormat);n("update:modelValue",c)}else n("update:modelValue",g);n("update:visible",!1),n("confirm",w)},onClear:()=>{n("clear")}}}});function Pm(e,n,o,l,a,r){const i=t.resolveComponent("Picker");return t.openBlock(),t.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,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 Gl=$e(Im,[["render",Pm]]),Om=Symbol.for("InnerPageScopeKey"),Am=Symbol.for("PageWrapperKey");function Fm(e,n){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,l){t.provide(Om,!0);const a={};t.provide(Am,a);const r=s=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=t.ref(!0),u=s=>{i.value=s};return()=>{const d={...l.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":r},h={};if(typeof l.slots.default=="function"){const f=l.slots.default();h.default=()=>f}return t.h(P.ElDialog,d,h)}}}}const{componentName:$p,create:Bm,scope:kp}=ae("dialog-item"),Xl=Bm(Fm()),{create:Rm}=ae("toast"),Mm=Rm({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const a=()=>{o&&(clearTimeout(o),o=null)},r=()=>{l.mounted=!1},i=()=>{a(),e.duration&&(o=setTimeout(()=>{r()},e.duration))},u=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,A=>{A&&i()});const s=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const A=he(e.iconSize);return t.h(e.icon,{width:A,height:A,color:e.iconColor})},h=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),f=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:r,clickCover:u,renderIcon:d,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:f,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Lm={key:1,class:"fox-toast-title"},_m=["innerHTML"];function qm(e,n,o,l,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Lm,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,_m)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Zl=$e(Mm,[["render",qm]]),zm={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},jm=(e,n,o)=>({props:{...zm},emits:["change","refresh","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=ye.useFoxI18n(n),u=i(l,["pullingText","loosingText","loadingText"]),s=Yl(),d=t.ref(),h=Cr(d),f=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=t.computed(()=>({[e]:!0})),A=t.computed(()=>{switch(f.status){case"pulling":return r.pulling?"":u.pullingText.value;case"loosing":return r.loosing?"":u.loosingText.value;case"loading":return r.loading?"":u.loadingText.value;default:return""}}),p=t.computed(()=>({transitionDuration:`${l.duration}s`,transform:f.distance?`translate3d(0,${f.distance}px, 0)`:""})),m=t.computed(()=>{const z={};return l.headHeight!=50&&(z.height=Pe(l.headHeight)),z}),v=z=>{const F=+(l.pullDistance||l.headHeight);let O=z;return z>F&&(z<F*2?O=(z+F)/2:O=F+z/4),Math.round(O)},w=(z,F)=>{const O=+(l.pullDistance||l.headHeight);f.distance=z,F?f.status="loading":z===0?f.status="normal":z<O?f.status="pulling":f.status="loosing",a("change",{status:f.status,distance:z})},g=()=>f.status!=="loading"&&f.status!=="complete",c=()=>h.value==window?$r()==0:h.value&&h.value.scrollTop==0,B=z=>{g()&&(c()?(s.start(z),f.isPullRefresh=!0,f.moving=!0):(f.distance=0,f.isPullRefresh=!1))},j=z=>{g()&&f.moving&&(s.move(z),s.isVertical()&&s.state.deltaY>0&&f.isPullRefresh&&(z.cancelable&&z.preventDefault(),w(v(s.state.deltaY))))},_=()=>{f.moving=!1,f.isPullRefresh&&g()&&s.state.deltaY&&(f.status==="loosing"?(w(+l.headHeight,!0),a("update:modelValue",!0),t.nextTick(()=>a("refresh"))):w(0)),setTimeout(()=>{s.reset()},0)};return t.watch(()=>l.modelValue,z=>{z?w(+l.headHeight,!0):w(0)}),()=>{const z=[];let F=null;if(f.status==="loading"){if(F=r?.loading?.()??null,!F){const H={class:["fox-pull-refresh-container-topbox-icon"]};F=t.h(o,H)}}else f.status==="pulling"?F=r?.pulling?.()??null:f.status==="loosing"&&(F=r?.loosing?.()??null);F&&z.push(F);const O={class:["fox-pull-refresh-container-topbox-text"]},T=t.h("dive",O,[A.value]);z.push(T);const S={class:["fox-pull-refresh-container-topbox"],style:m.value},q=t.h("div",S,z),k={class:"fox-pull-refresh-container",style:p.value},E=t.h("div",k,[q,r?.default?.()]),$={ref:d,class:y.value};return Kl()?Object.assign($,{onTouchstart:B,onTouchmove:j,onTouchend:_}):Object.assign($,{onMousedown:B,onMousemove:j,onMouseup:_}),t.h("div",$,[E])}}}),{componentName:Hm,create:Km,scope:Ym}=ae("pull-refresh"),Ql=Km(jm(Hm,Ym,vn));function Wm(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:l}){const a=e,r=t.computed(()=>({[a]:!0})),i=t.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),u=t.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),s=t.computed(()=>{const h={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?h["is-left"]=!0:h["is-right"]=!0,h}),d=t.computed(()=>o.color?{color:o.color}:null);return()=>{let h=null;if(l.mark)h=l.mark()[0];else{const m={class:i.value,style:u.value};h=t.h(o.icon??"div",m)}const f={class:s.value,style:d.value},y=l.default?l.default():[],A=t.h("div",f,y),p={class:r.value};return o.textPosition==="right"?t.h("div",p,[h,A]):t.h("div",p,[A,h])}}}}const{componentName:Um,create:Gm,scope:Dp}=ae("indicator"),Jl=Gm(Wm(Um));function Xm(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}const Zm={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Qm(e,n,o,l=!1){return{props:{...Zm},emits:["click"],setup(a,r){const i=t.ref(null),u=t.computed(()=>{const c={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(c[`${e}--${a.type??"default"}`]=!0),a.size&&(c[`${e}--${a.size}`]=!0),c}),s=t.computed(()=>{const c={},B=a.textColor??a.color;return B&&(c.color=B),c}),d=(c,B)=>{let j=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const _=a.highlightFilter;if(c.indexOf(_)!==-1){const F=c.replace(new RegExp(_,"g"),`<span>${_}</span>`);B.innerHTML=F,B.class["is-highlight"]=!0,j=t.h(a.tag,B)}}else if(typeof a.highlightFilter=="function"){const _=a.highlightFilter(c);_&&(B.innerHTML=_,B.class["is-highlight"]=!0,j=t.h(a.tag,B))}return j},h=c=>{r.emit("click",c)};let f="";const y=()=>{const c=i.value;if(!c)return;const B=c.clientWidth;Xm(c,j=>{const _=c.innerHTML??"";ge(_)||j<B||(f?o?.show(c,_,{type:"text",id:f,showArrow:a.showArrow},!0):f=o?.show(c,_,{type:"text",showArrow:a.showArrow},!0)??"")})},A=()=>{f&&o?.hide(f)};let p=null;const m=c=>{p||(p=setTimeout(()=>{y(),p=null},a.showAfter??0))},v=c=>{p&&(clearTimeout(p),p=null),setTimeout(()=>{A()},a.hideAfter??0)},w=()=>{const c=i.value;c&&(c.addEventListener("mouseover",m),c.addEventListener("mouseleave",v))},g=()=>{const c=i.value;c&&(c.removeEventListener("mouseover",m),c.removeEventListener("mouseleave",v))};return t.onMounted(()=>{!se(a.showOverflowTooltip)||!o||w()}),t.onBeforeUnmount(()=>{!se(a.showOverflowTooltip)||!o||g()}),()=>{const c={onClick:h,class:u.value,style:s.value,ref:i};let B=null;if(se(a.numberFormat)&&typeof r.slots.default=="function"){const F=r.slots.default();if(Array.isArray(F)&&F.length===1){const O=F[0].type.toString();if(O==="Symbol(Text)"||O==="Symbol(v-txt)"){const T=de(a.digits),S=de(a.decimalLength),q=se(a.autoPadding);let k=`${F[0].children}`,E=k.split("").reverse().join("");E=Jt(E,S,q,T,a.separator),k=E.split("").reverse().join(""),a.highlightFilter!==void 0&&(B=d(k,c)),B||(c.innerHTML=k,B=t.h(a.tag,c))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const F=r.slots.default();if(Array.isArray(F)&&F.length===1){const O=F[0].type.toString();if(O==="Symbol(Text)"||O==="Symbol(v-txt)"){const T=`${F[0].children}`;B=d(T,c),B||(c.innerHTML=T,B=t.h(a.tag,c))}}}B||(B=t.h(a.tag,c,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return B;let _=null;if(a.icon){const F={[`${e}__mark-wrap`]:!0};a.type&&(F[`${e}__mark-wrap--${a.type}`]=!0);const O={},T=a.color;T&&(O.color=T);const S={class:F,style:O};_=t.h("view",S,t.h(a.icon))}else if(r.slots.mark){const F={[`${e}__mark-wrap`]:!0};a.type&&(F[`${e}__mark-wrap--${a.type}`]=!0);const O={},T=a.color;T&&(O.color=T);const S={class:F,style:O};_=t.h("view",S,{default:r.slots.mark})}else{const F={[`${e}__mark`]:!0};a.type&&(F[`${e}__mark--${a.type??"default"}`]=!0);const O={},T=a.color;T&&(O["background-color"]=T);const S={class:F,style:O};_=t.h("view",S)}const z={class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}};return t.h("view",z,[_,B])}}}}const{componentName:Jm,create:eg,scope:tg}=ae("text"),eo=eg(Qm(Jm,tg,Fe,!1)),ng={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Se.ArrowUp}};function lg(e,n,o){return{props:{...ng},emits:["click","update:modelValue"],setup(l,{emit:a}){const r=t.computed(()=>{const f={[`${e}`]:!0};return l.disabled?f[`${e}__disabled`]=!0:f[`${e}__${l.type}`]=!0,f}),i=fe(l,"modelValue"),u=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),h=()=>{a("update:modelValue",!i.value)};return()=>{const f=[];if(u.value){const m={class:s.value},v=t.h("span",m,[u.value]);f.push(v)}const y={class:d.value},A=o(l.icon,y);return A&&f.push(A),t.h("div",{class:r.value,onClick:h},f)}}}}const{componentName:og,create:ag,scope:rg}=ae("more-button"),ig=(e,n)=>(e=e??Se.ArrowUp,t.h(P.ElIcon,n,{default:()=>[t.h(e)]})),to=ag(lg(og,rg,ig)),{componentName:sg,create:ug,scope:Np}=ae("tour"),cg=ug({components:{Close:Se.Close,ElPopover:P.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=sg,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=t.ref({}),r=t.computed(()=>`${o}`),i=t.computed(()=>{const{offset:p,maskWidth:m,maskHeight:v}=e,{width:w,height:g,left:c,top:B}=a.value,j=e.steps[l.active].offset??p,_=[c+w/2,B+g/2],z=Number(m||w),F=Number(v||g);return{width:`${z+ +j.left+j.right}px`,height:`${F+j.top+j.bottom}px`,top:`${_[1]-F/2-+j.top}px`,left:`${_[0]-z/2-+j.left}px`}}),u=p=>{p=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,h()}),n("change",l.active)},s=p=>p.popoverWidth??e.width,d=p=>p.location??e.location,h=()=>{const p=document.querySelector(`${e.steps[l.active].target}`),m=Hl(p);a.value={x:m.left,y:m.top,top:m.top,left:m.left,width:m.width,height:m.height}},f=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&f()},A=(p,m=0)=>{p&&h(),e.steps,l.active=m,l.showTour=p,l.showPopup=p};return t.onMounted(()=>{A(e.modelValue,e.current)}),t.watch(()=>e.modelValue,p=>{A(p)}),{...t.toRefs(l),classes:r,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:d,close:f,handleClickMask:y}}}),fg={key:0,class:"fox-tour__content"},dg={key:0,class:"fox-tour__content-top"},hg={class:"fox-tour__content-inner"},mg={class:"fox-tour__content-bottom"},gg={class:"fox-tour__content-bottom-init"},pg={class:"fox-tour__content-bottom-operate"},vg={key:1,class:"fox-tour__content fox-tour__content-tile"},yg={class:"fox-tour__content-inner"};function bg(e,n,o,l,a,r){const i=t.resolveComponent("Close"),u=t.resolveComponent("fox-button"),s=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:{height:"0"}},[h==e.active?(t.openBlock(),t.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",fg,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",dg,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...f)=>e.close&&e.close(...f))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",hg,t.toDisplayString(d.content),1),t.createElementVNode("div",mg,[t.createElementVNode("div",gg,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",pg,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=f=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=f=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",vg,[t.createElementVNode("div",yg,t.toDisplayString(d.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const no=$e(cg,[["render",bg]]),Ae=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,tt=e=>e==null;class wg{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=Kl()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Yl(),l=(a,r,i,u)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(o.start(a),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(o.move(a),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function sa(e,n){return new wg(e,n)}var ua;const al=typeof window<"u";al&&((ua=window?.navigator)!=null&&ua.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let dt=[];const ca=e=>{const n=e;n.key==="Escape"&&dt.forEach(o=>o(n))},xg=e=>{t.onMounted(()=>{dt.length===0&&document.addEventListener("keydown",ca),al&&dt.push(e)}),t.onBeforeUnmount(()=>{dt=dt.filter(n=>n!==e),dt.length===0&&al&&document.removeEventListener("keydown",ca)})},jn="fox-focus-trap.focus-after-trapped",Hn="fox-focus-trap.focus-after-released",Sg="fox-focus-trap.focusout-prevented",fa={cancelable:!0,bubbles:!1},Tg={cancelable:!0,bubbles:!1},da="foxFocusAfterTrapped",ha="foxFocusAfterReleased",Cg=Symbol("foxFocusTrap"),lo=t.ref(),Dn=t.ref(0),oo=t.ref(0);let qt=0;const Vr=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const a=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||a?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},$g=(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},ma=(e,n)=>{for(const o of e)if(!$g(o,n))return o},kg=e=>{const n=Vr(e),o=ma(n,e),l=ma(n.reverse(),e);return[o,l]},Dg=e=>e instanceof HTMLInputElement&&"select"in e,Xe=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),oo.value=window.performance.now(),e!==o&&Dg(e)&&n&&e.select()}};function ga(e,n){const o=[...e],l=e.indexOf(n);return l!==-1&&o.splice(l,1),o}const Ng=()=>{let e=[];return{push:l=>{const a=e[0];a&&l!==a&&a.pause(),e=ga(e,l),e.unshift(l)},remove:l=>{e=ga(e,l),e[0]?.resume?.()}}},Eg=(e,n=!1)=>{const o=document.activeElement;for(const l of e)if(Xe(l,n),document.activeElement!==o)return},pa=Ng(),Vg=()=>Dn.value>oo.value,zt=()=>{lo.value="pointer",Dn.value=window.performance.now()},va=()=>{lo.value="keyboard",Dn.value=window.performance.now()},Ig=()=>(t.onMounted(()=>{qt===0&&(document.addEventListener("mousedown",zt),document.addEventListener("touchstart",zt),document.addEventListener("keydown",va)),qt++}),t.onBeforeUnmount(()=>{qt--,qt<=0&&(document.removeEventListener("mousedown",zt),document.removeEventListener("touchstart",zt),document.removeEventListener("keydown",va))}),{focusReason:lo,lastUserFocusTimestamp:Dn,lastAutomatedFocusTimestamp:oo}),jt=e=>new CustomEvent(Sg,{...Tg,detail:e}),{componentName:Ep,create:Pg,scope:Vp}=ae("focus-trap"),Og={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"}},Ag=Pg({props:Og,emits:[da,ha,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const l=t.ref();let a,r;const{focusReason:i}=Ig();xg(m=>{se(e.trapped)&&!u.paused&&o("release-requested",m)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=m=>{if(!e.loop&&!se(e.trapped)||u.paused)return;const{key:v,altKey:w,ctrlKey:g,metaKey:c,currentTarget:B,shiftKey:j}=m,{loop:_}=e,z=v==="Tab"&&!w&&!g&&!c,F=document.activeElement;if(z&&F){const O=B,[T,S]=kg(O);if(T&&S){if(!j&&F===S){const k=jt({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||(m.preventDefault(),_&&Xe(T,!0))}else if(j&&[T,O].includes(F)){const k=jt({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||(m.preventDefault(),_&&Xe(S,!0))}}else if(F===O){const k=jt({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||m.preventDefault()}}};t.provide(Cg,{focusTrapRef:l,onKeydown:s}),t.watch(()=>e.focusTrapEl,m=>{m&&(l.value=m)},{immediate:!0}),t.watch([l],([m],[v])=>{m&&(m.addEventListener("keydown",s),m.addEventListener("focusin",f),m.addEventListener("focusout",y)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",f),v.removeEventListener("focusout",y))});const d=m=>{o(da,m)},h=m=>o(ha,m),f=m=>{const v=t.unref(l);if(!v)return;const w=m.target,g=m.relatedTarget,c=w&&v.contains(w);se(e.trapped)||g&&v.contains(g)||(a=g),c&&o("focusin",m),!u.paused&&se(e.trapped)&&(c?r=w:Xe(r,!0))},y=m=>{const v=t.unref(l);if(!(u.paused||!v))if(!e.escape&&se(e.trapped)){const w=m.relatedTarget;!cl(w)&&!v.contains(w)&&setTimeout(()=>{if(!u.paused&&se(e.trapped)){const g=jt({focusReason:i.value});o("focusout-prevented",g),g.defaultPrevented||Xe(r,!0)}},0)}else{const w=m.target;w&&v.contains(w)||o("focusout",m)}};async function A(){await t.nextTick();const m=t.unref(l);if(m){pa.push(u);const v=m.contains(document.activeElement)?a:document.activeElement;if(a=v,!m.contains(v)){const g=new Event(jn,fa);m.addEventListener(jn,d),m.dispatchEvent(g),g.defaultPrevented||t.nextTick(()=>{let c=e.focusStartEl;Sa(c)||(Xe(c),document.activeElement!==c&&(c="first")),c==="first"&&Eg(Vr(m),!0),(document.activeElement===v||c==="container")&&Xe(m)})}}}function p(){const m=t.unref(l);if(m){m.removeEventListener(jn,d);const v=new CustomEvent(Hn,{...fa,detail:{focusReason:i.value}});m.addEventListener(Hn,h),m.dispatchEvent(v),!v.defaultPrevented&&(i.value=="keyboard"||!Vg())&&Xe(a??document.body,!0),m.removeEventListener(Hn,d),pa.remove(u)}}return t.onMounted(()=>{se(e.trapped)&&A(),t.watch(()=>e.trapped,m=>{se(m)?A():p()})}),t.onBeforeUnmount(()=>{se(e.trapped)&&p()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:Fg,create:Bg,scope:Ip}=ae("floating-window"),Rg=Symbol.for("InnerPageScopeKey"),Mg=Symbol.for("PageWrapperKey"),Lg={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}},_g=Bg({inheritAttrs:!1,components:{FoxIcon:P.ElIcon,FocusTrap:Ag},props:{...Lg},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=Fg,l=t.ref(e.modelValue),a=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,N=>{l.value=N});const r=t.computed(()=>l.value===!1?!1:!F.value),i=t.ref(e.left),u=t.ref(e.top),s=t.ref(e.right),d=t.ref(e.bottom),h=t.computed(()=>{const N=["fox-floating-window"];return e.customClass&&N.push(e.customClass),N}),f=t.computed(()=>{const N={};return tt(i.value)?N.left="auto":N.left=Ae(i.value),tt(u.value)?N.top="auto":N.top=Ae(u.value),tt(s.value)?N.right="auto":N.right=Ae(s.value),tt(d.value)?N.bottom="auto":N.bottom=Ae(d.value),tt(e.zIndex)||(N["z-index"]=Ae(e.zIndex)),tt(_.value)||(N.height=_.value),tt(z.value)||(N.width=z.value),N}),y=t.computed(()=>e.closeIcon??Se.Close),A=t.computed(()=>e.collapseIcon??Se.ArrowUp),p=t.computed(()=>e.collapseText??""),m=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Se.ArrowRight:e.expandIcon??Se.ArrowLeft),v=t.computed(()=>e.expandText??e.title??"展开"),w=t.computed(()=>({[`${o}__collapse-text`]:!0})),g=t.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!F.value,"is-collapse":F.value})),c=t.ref(),B=t.ref(null),j=t.ref(null),_=t.computed(()=>Ae(e.height)||""),z=t.computed(()=>Ae(e.width)||""),F=t.ref(se(e.collapse)),O=(N,X=!0)=>{F.value!==N&&(F.value=N,N?x():I(),n("update:collapse",N),N&&typeof q.onHide=="function"?q.onHide():!N&&typeof q.onShow=="function"&&q.onShow())};t.watch(()=>e.collapse,N=>{O(N)});const T=()=>{S()},S=N=>{N=N??!F.value,O(N)};t.provide(Rg,!0);const q={setCollapse:O,setFixedNavVisible:N=>{G.value=N}};t.provide(Mg,q);const k=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{l.value=!1}):l.value=!1},E=t.ref(null),$=t.computed(()=>!e.fixedNavTeleport),H=t.computed(()=>{const N=["fox-floating-window__fixednav"];return e.expandClass&&N.push(e.expandClass),e.collapsePosition==="left"?N.push("is-left"):e.collapsePosition==="right"&&N.push("is-right"),N}),M=t.ref(""),U=t.computed(()=>{const N={};return M.value?N.top=M.value:e.collapseTop&&(N.top=e.collapseTop),N}),Y=t.ref(F.value),G=t.computed({set:N=>{Y.value=N},get:()=>l.value===!1?!1:Y.value});let Q=null;const b=()=>{typeof Q=="function"&&(Q(),Q=null)},x=()=>{E.value&&E.value.classList.add("slide-in"),G.value=!0,Q=()=>{E.value&&E.value.classList.remove("slide-in")}},I=()=>{E.value&&E.value.classList.add("slide-out"),Q=()=>{E.value&&E.value.classList.remove("slide-out"),G.value=!1}},R=()=>{i.value=null,u.value=null,s.value=null,d.value=null},C={x:0,y:0},D=sa(N=>{if(!c.value)return;const X=c.value;if(R(),e.origin==="left-top")i.value=X.offsetLeft,u.value=X.offsetTop,C.x=i.value,C.y=u.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;i.value=X.offsetLeft,d.value=te-(X.offsetTop+X.offsetHeight),C.x=i.value,C.y=d.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,re=document.documentElement.clientHeight||document.body.clientHeight;s.value=te-(X.offsetLeft+X.offsetWidth),d.value=re-(X.offsetTop+X.offsetHeight),C.x=s.value,C.y=d.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;s.value=te-(X.offsetLeft+X.offsetWidth),u.value=X.offsetTop,C.x=s.value,C.y=u.value}},N=>{if(!c.value)return;const X=c.value;R(),e.origin==="left-top"?(i.value=C.x+N.x,u.value=C.y+N.y,X.style.left=Ae(i.value),X.style.top=Ae(u.value)):e.origin==="left-bottom"?(i.value=C.x+N.x,d.value=C.y-N.y,X.style.left=Ae(i.value),X.style.bottom=Ae(d.value)):e.origin==="right-bottom"?(s.value=C.x-N.x,d.value=C.y-N.y,X.style.right=Ae(s.value),X.style.bottom=Ae(d.value)):(s.value=C.x-N.x,u.value=C.y+N.y,X.style.right=Ae(s.value),X.style.top=Ae(u.value))}),V={x:0,y:0},ee=sa(N=>{E.value&&(V.x=E.value.offsetLeft,V.y=E.value.offsetTop)},N=>{if(!E.value)return;const X=V.y+N.y;M.value=`${X}px`}),ne=()=>{if(c.value){const N=c.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");j.value=N}};return t.onMounted(()=>{if(e.draggable&&c.value){const N=[];B.value&&N.push(B.value),e.footerDraggable&&(ne(),j.value&&N.push(j.value)),D.open(N)}e.collapse===!0&&O(e.collapse,!1),E.value&&ee.open(E.value)}),t.onBeforeUnmount(()=>{e.draggable&&B.value&&D.close(),E.value&&ee.close()}),{classes:h,styles:f,isShow:r,closeIcon:y,onClose:k,dialogRef:c,headerRef:B,onClickToggle:T,collapseIcon:A,collapseText:p,collapseTextClasses:w,collapseIconClasses:g,expandIcon:m,expandText:v,isShowFixedNav:G,fixedNavRef:E,fixedNavClasses:H,fixedNavStyles:U,onAnimationEnd:b,teleportDisabled:a,fixedNavTeleportDisabled:$}}}),qg={ref:"headerRef",class:"fox-floating-window__header"},zg={class:"fox-floating-window__title"},jg={class:"fox-floating-window__tools"},Hg={class:"fox-floating-window__body"},Kg={class:"fox-floating-window__fixednav__text"};function Yg(e,n,o,l,a,r){const i=t.resolveComponent("FoxIcon"),u=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",qg,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",zg,t.toDisplayString(e.title),1),t.createElementVNode("div",jg,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",Hg,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Kg,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ao=$e(_g,[["render",Yg]]);function Wg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:l}){return La(o.name,()=>o.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:Pp,create:Ug,scope:Op}=ae("domain-provider"),ro=Ug(Wg()),Gg={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 Xg(e,n){return{inheritAttrs:!1,props:Gg,setup(o,{slots:l}){if(rt&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const i=(y,A)=>{if(h===null){r.set(y,{visible:null,callback:A});return}a.has(y)&&h.unobserve(y),a.set(y,{visible:null,callback:A}),h.observe(y)},u=y=>{if(h===null){r.delete(y);return}a.has(y)&&(a.delete(y),h.unobserve(y))};let s=o.initialVisibleObserverSize;Ri({acquire:()=>{const y=s>0;return s--,y},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let h=null;const f=(y,A,p)=>{h=new IntersectionObserver(m=>{for(let v of m){let w=!1;v.intersectionRatio>0&&(w=!0);const g=a.get(v.target);if(g)try{if(o.loadPolicy==="lazy"&&!w&&g.visible!==null)return;g.visible=w,g.callback(w)}catch(c){console.error(c)}}},{root:y,rootMargin:A,threshold:p}),r.forEach((m,v)=>{a.set(v,m),h?.observe(v)}),r.clear()};t.watch([()=>o.root,()=>o.disabled],([y,A])=>{if(A||!y||h)return;let p=null;typeof y=="string"?p=document.querySelector(y):p=y,p&&f(p,o.rootMargin,o.threshold)},{immediate:!0}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:Ap,create:Zg,scope:Fp}=ae("rolling-provider"),io=Zg(Xg()),Qg=[hl,gl,pl,vl,yl,be,bl,wl,Bt,xl,Sl,Tl,kl,Dl,Nl,El,Vl,Il,Pl,Ol,Al,Tn,Fl,Bl,Rl,Ml,Ll,_l,ql,kn,zl,Wl,bn,wn,xn,Ul,Rt,Gl,yn,Sn,Xl,pn,it,Zl,$n,Cn,Ql,At,gn,Jl,eo,to,no,ao,ro,io],Jg=new mi(Qg,[vi],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>P.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>P.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>P.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>P.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>P.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>P.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>P.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>P.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>P.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>P.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>P.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>P.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>P.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>P.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>P.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>P.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>P.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>P.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>P.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>P.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>P.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>P.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>P.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>P.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>P.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>P.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>P.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>P.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>P.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>P.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>P.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>P.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>P.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>P.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>P.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>P.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>P.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>P.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>P.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>P.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>P.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>P.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>P.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>P.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>P.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>P.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>P.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>P.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>P.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>P.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>P.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>P.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>P.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>P.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>P.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>P.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>P.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>P.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>P.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>P.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>P.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>P.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>P.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>P.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>P.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>P.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>P.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>P.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>P.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>P.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>P.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>P.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>P.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>P.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>P.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>P.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>P.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>P.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>P.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>P.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>P.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>P.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>P.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>P.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>P.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>P.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>P.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>P.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>P.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>P.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>P.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>P.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>P.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>P.ElUpload});exports.ActionsheetItem=zl;exports.ActionsheetPane=kn;exports.AutocompleteItem=Pl;exports.Broadcast=fl;exports.BroadcastKey=ke;exports.CalendarItem=kl;exports.CascaderItem=Il;exports.CheckboxItem=Rl;exports.Content=vl;exports.DataItemsKey=ft;exports.DateItem=Tl;exports.DateUtils=le;exports.DialogItem=Xl;exports.Domain=an;exports.DomainKey=Re;exports.DomainProvider=ro;exports.FloatingWindow=ao;exports.FooterBar=pl;exports.FoxActionsheetItem=zl;exports.FoxActionsheetPane=kn;exports.FoxAutocompleteItem=Pl;exports.FoxCalendarItem=kl;exports.FoxCascaderItem=Il;exports.FoxCheckboxItem=Rl;exports.FoxContent=vl;exports.FoxDateItem=Tl;exports.FoxDialogItem=Xl;exports.FoxDomainProvider=ro;exports.FoxFloatingWindow=ao;exports.FoxFooterBar=pl;exports.FoxGroup=yl;exports.FoxGroupSetting=ql;exports.FoxHeaderBar=gl;exports.FoxHintText=Bt;exports.FoxIndicator=Jl;exports.FoxInfiniteLoading=Cn;exports.FoxInputItem=xl;exports.FoxInputNumberItem=Vl;exports.FoxItem=be;exports.FoxMapping=At;exports.FoxMoneyItem=El;exports.FoxMoreButton=to;exports.FoxOverLay=pn;exports.FoxPage=hl;exports.FoxPickerItem=Wl;exports.FoxPopup=it;exports.FoxPrice=gn;exports.FoxPullRefresh=Ql;exports.FoxRadioItem=Bl;exports.FoxRateItem=Ml;exports.FoxRollingProvider=io;exports.FoxRowItem=wl;exports.FoxSearchBar=$n;exports.FoxSelectItem=Sl;exports.FoxSlotItem=bl;exports.FoxStepsBar=Ul;exports.FoxSwitchItem=Ll;exports.FoxTableItem=Fl;exports.FoxTableMappingColumn=Ol;exports.FoxTableRadioColumn=Al;exports.FoxTableSetting=Tn;exports.FoxTabsBar=bn;exports.FoxTabsContainer=wn;exports.FoxTabsPane=xn;exports.FoxText=eo;exports.FoxTimeItem=Dl;exports.FoxTimeSelectItem=Nl;exports.FoxToast=Zl;exports.FoxTour=no;exports.FoxTreeSelectItem=_l;exports.Foxcalendarpicker=yn;exports.Foxcascaderpicker=Sn;exports.Foxdatepicker=Gl;exports.Foxpicker=Rt;exports.Group=yl;exports.GroupSetting=ql;exports.HeaderBar=gl;exports.HintText=Bt;exports.Indicator=Jl;exports.InfiniteLoading=Cn;exports.InputItem=xl;exports.InputNumberItem=Vl;exports.Item=be;exports.Mapping=At;exports.MoneyItem=El;exports.MoreButton=to;exports.OverLay=pn;exports.Page=hl;exports.PickerItem=Wl;exports.Popup=it;exports.Price=gn;exports.PriorityPolicy=Me;exports.PullRefresh=Ql;exports.RadioItem=Bl;exports.RateItem=Ml;exports.RollingProvider=io;exports.RowItem=wl;exports.SearchBar=$n;exports.SelectItem=Sl;exports.SlotItem=bl;exports.StepsBar=Ul;exports.SwitchItem=Ll;exports.TableItem=Fl;exports.TableMappingColumn=Ol;exports.TableRadioColumn=Al;exports.TableSetting=Tn;exports.TabsBar=bn;exports.TabsContainer=wn;exports.TabsPane=xn;exports.Text=eo;exports.TimeItem=Dl;exports.TimeSelectItem=Nl;exports.Toast=Zl;exports.Tour=no;exports.TreeSelectItem=_l;exports.UniqueID=Qa;exports.ValidateSchema=Ra;exports.ValidateSchemaKey=Ye;exports.calendarpicker=yn;exports.cancelRaf=Ar;exports.cascaderpicker=Sn;exports.clearNonNumber=Kr;exports.clone=Qn;exports.compareTo=Gn;exports.createBroadcast=nn;exports.createValidateSchema=ln;exports.datepicker=Gl;exports.debounce=Nt;exports.debounceRef=oi;exports.decimalLength=Ia;exports.default=Jg;exports.defineBroadcast=Gr;exports.defineConfigDomain=La;exports.defineDataItem=qa;exports.defineDomain=dl;exports.defineItem=Ce;exports.definePageState=za;exports.deleteGlobalValidator=Jr;exports.disabledProperty=Ve;exports.divide=sl;exports.excludeProps=Ne;exports.extend=ot;exports.floatData=Ur;exports.getGlobalValidateCheckEvents=Aa;exports.getGlobalValidateResetEvents=Ba;exports.getPageContentAreaHeight=Gt;exports.getPageContentAreaWidth=Xt;exports.getPageFooterAreaHeight=Vt;exports.getPageHeaderAreaHeight=Et;exports.getRootDomain=ht;exports.hasSymbol=Ca;exports.includeProps=pt;exports.indexOf=Yr;exports.installRules=_a;exports.integerLength=Va;exports.isArray=Br;exports.isArrayLike=ka;exports.isBrowser=rt;exports.isDate=Qe;exports.isESModule=_r;exports.isEmptyString=ge;exports.isEqual=Le;exports.isFunction=Xn;exports.isHidden=tn;exports.isInnerPage=ii;exports.isMap=Rr;exports.isNil=cl;exports.isNumberString=Ea;exports.isObject=Be;exports.isPlainObject=Zn;exports.isPromise=Wt;exports.isRegExp=Na;exports.isSet=Mr;exports.isString=Sa;exports.isSubPage=si;exports.isSymbol=Lr;exports.isTouch=Kl;exports.isWindow=$a;exports.lastIndexOf=Wr;exports.makeArray=Hr;exports.merge=Da;exports.multiply=ba;exports.negate=wa;exports.nextTick=zr;exports.numberFormat=Jt;exports.objectToString=Ta;exports.once=ai;exports.picker=Rt;exports.property=De;exports.raf=ul;exports.readonlyProperty=Ee;exports.setGlobalValidateCheckEvents=ei;exports.setGlobalValidateHandler=Zr;exports.setGlobalValidateMessages=ni;exports.setGlobalValidateResetEvents=ti;exports.setGlobalValidator=Qr;exports.throttle=Ma;exports.toBoolean=se;exports.toNumber=de;exports.toPadding=je;exports.toPx=he;exports.toPxDesc=Pe;exports.toTypeString=en;exports.toValue=fe;exports.tryTimes=on;exports.typeOf=Ut;exports.unNumberFormat=xa;exports.updatePageState=Jn;exports.useBroadcast=kt;exports.useDomain=We;exports.useExpose=pe;exports.useInnerSize=ml;exports.usePageState=rn;exports.usePosition=Xa;exports.useRawTouch=Yl;exports.useRect=Hl;exports.useSize=sn;exports.useTouch=Nr;exports.valueLength=qe;
|