@fox-js/foxui-pad 4.0.1-26 → 4.0.1-27
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 +3560 -3542
- package/dist/index.umd.js +3 -3
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(v,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],t):(v=typeof globalThis<"u"?globalThis:v||self,t(v.FoxUI={},v.Vue,v.FoxValidator,v.ElementPlus,v.ElementPlusIconsVue,v.FoxI18n))})(this,function(v,t,lt,B,
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
1
|
+
(function(v,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],t):(v=typeof globalThis<"u"?globalThis:v||self,t(v.FoxUI={},v.Vue,v.FoxValidator,v.ElementPlus,v.ElementPlusIconsVue,v.FoxI18n))})(this,function(v,t,lt,B,$e,ve){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Tue May 28 2024 21:14:11 GMT+0800 (中国标准时间)
|
|
3
3
|
*/const Pt=window,Or=typeof window<"u";function Ar(){return typeof Pt<"u"?Pt.requestAnimationFrame||Pt.webkitRequestAnimationFrame||function(e){Pt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Fr(e){Or?cancelAnimationFrame(e):clearTimeout(e)}const Vn=Ar();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function qt(e,n="0"){let a=0,l=-1;e[0]=="-"&&(a++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,l=2,n=n.substring(1),n.length),e=Oe(e),n=Oe(n),[e,n]=On(Oe(e),Oe(n)),a==1&&(l==1?e=In(e):n=In(n));let o=fa(e,n);return a?a==2?"-"+Oe(o):e.length<o.length?Oe(o.substring(1)):"-"+Oe(In(o)):Oe(o)}function In(e){let n="",a=e.length,l=e.split(".")[1],o=l?l.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=o>0?"0."+new Array(o).join("0")+"1":"1";return fa(n,r)}function Oe(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function On(e,n){let a=e.split("."),l=n.split("."),o=a[0].length,r=l[0].length;return o>r?l[0]=new Array(Math.abs(o-r)+1).join("0")+(l[0]?l[0]:""):a[0]=new Array(Math.abs(o-r)+1).join("0")+(a[0]?a[0]:""),o=a[1]?a[1].length:0,r=l[1]?l[1].length:0,(o||r)&&(o>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(o-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(o-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function fa(e,n){[e,n]=On(e,n);let a="",l=0;for(let o=e.length-1;o>=0;o--){if(e[o]==="."){a="."+a;continue}let r=parseInt(e[o])+parseInt(n[o])+l;a=r%10+a,l=Math.floor(r/10)}return l?l.toString()+a:a}var Ce=(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))(Ce||{});function Ct(e,n=0,a=Ce.HALF_EVEN){if(a===Ce.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let o=e.split("."),r=o[0],i=o[1];if(n<0){if(n=-n,r.length<=n)return"0";{let s=r.substr(0,r.length-n);return e=s+"."+r.substr(r.length-n)+i,s=Ct(e,0,a),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,da(o[1],r,l,a)?(l?"-":"")+An(r):(l?"-":"")+r;if(o[1]){if(o[1].length<n)return(l?"-":"")+r+"."+o[1]+new Array(n-o[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=o[1].substring(0,n);let u=o[1].substring(n);return u&&da(u,i,l,a)&&(i=An(i),i.length>n)?(l?"-":"")+An(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function da(e,n,a,l){if(!e||e===new Array(e.length+1).join("0")||l===Ce.DOWN||!a&&l===Ce.FLOOR||a&&l===Ce.CEILING)return!1;if(l===Ce.UP||a&&l===Ce.FLOOR||!a&&l===Ce.CEILING)return!0;let o="5"+new Array(e.length).join("0");if(e>o)return!0;if(e<o)return!1;switch(l){case Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function An(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,l="";for(let o=a;o>=0;o--){let r=parseInt(e[o])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function Fn(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=Tt(e),n=Tt(n);let l=0,o=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(o=n.length-n.indexOf(".")-1);let r=l+o;if(e=Tt(e.replace(".","")),n=Tt(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let i=n.length,u=0,s=[],d=i-1,h="";for(let c=0;c<i;c++)s[c]=e.length-1;for(let c=0;c<2*e.length;c++){let w=0;for(let O=n.length-1;O>=d&&O>=0;O--)s[O]>-1&&s[O]<e.length&&(w+=parseInt(e[s[O]--])*parseInt(n[O]));w+=u,u=Math.floor(w/10),h=w%10+h,d--}return h=Tt(Br(h,r)),a==1&&(h="-"+h),h}function Br(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Tt(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 Bn(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var o=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Oe(n.replace(".","")),o>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Oe(e+new Array(o+1).join("0"));else if(o>d)e=e.replace(".",""),e=Oe(e+new Array(o-d+1).join("0"));else if(o<d){e=e.replace(".","");let h=e.length-d+o;e=Oe(e.substring(0,h)+"."+e.substring(h))}else o==d&&(e=Oe(e.replace(".","")))}let r=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(d+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=d,u="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(s)>=parseInt(n);)s=qt(s,"-"+n),d++;u+=d,e?(e[0]=="."&&(u+=".",r++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(r||(u+="."),r++,s=s+"0")}return(l==1?"-":"")+Oe(Ct(u,a-2))}function Mn(e,n){return e=e.toString(),n=n.toString(),n=Rn(n),qt(e,n)}function Rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function ha(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),ma(e),ma(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Mn(e,Fn(n,Ct(Bn(e,n),0,Ce.FLOOR)));return a+l}function ma(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function ga(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=On(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?a?-1:1:a?1:-1;return 0}class fe{value;static RoundingModes=Ce;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,l]=n.split(/[eE]/);a=Oe(a);let o="";a[0]=="-"&&(o="-",a=a.substring(1)),a.indexOf(".")>=0?(l=parseInt(l)+a.indexOf("."),a=a.replace(".","")):l=parseInt(l)+a.length,a.length<l?n=o+a+new Array(l-a.length+1).join("0"):a.length>=l&&l>0?n=o+Oe(a.substring(0,l))+(a.length>l?"."+a.substring(l):""):n=o+"0."+new Array(-l+1).join("0")+a}return n}constructor(n="0"){this.value=fe.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,l){if(!(a||l))a=3,l=",";else if(!(a&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=fe.validate(n);let o=n.charAt(0)=="-";o&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",u=r;u>0;)u<a?(a=u,u=0):u-=a,i=n.substring(u,u+a)+(u<r-a&&u>=0?l:"")+i;return(o?"-":"")+i+n.substring(r)}getPrettyValue(n,a){return fe.getPrettyValue(this.value,n,a)}static round(n,a=0,l=Ce.HALF_EVEN){if(n=fe.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Ct(n,a,l)}round(n=0,a=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new fe(Ct(this.value,n,a))}static floor(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Ce.CEILING)}static add(n,a){return n=fe.validate(n),a=fe.validate(a),qt(n,a)}add(n){return new fe(qt(this.value,n.getValue()))}static subtract(n,a){return n=fe.validate(n),a=fe.validate(a),Mn(n,a)}subtract(n){return new fe(Mn(this.value,n.getValue()))}static multiply(n,a){return n=fe.validate(n),a=fe.validate(a),Fn(n,a)}multiply(n){return new fe(Fn(this.value,n.getValue()))}static divide(n,a,l){return n=fe.validate(n),a=fe.validate(a),Bn(n,a,l)}divide(n,a){return new fe(Bn(this.value,n.getValue(),a))}static modulus(n,a){return n=fe.validate(n),a=fe.validate(a),ha(n,a)}modulus(n){return new fe(ha(this.value,n.getValue()))}static compareTo(n,a){return n=fe.validate(n),a=fe.validate(a),ga(n,a)}compareTo(n){return ga(this.value,n.getValue())}static negate(n){return n=fe.validate(n),Rn(n)}negate(){return new fe(Rn(this.value))}}function pa(e,n){return fe.multiply(`${e}`,`${n}`)}function Ln(e,n,a=8){return fe.divide(`${e}`,`${n}`,a)}function _n(e,n){return e=`${e}`,n=`${n}`,fe.compareTo(e,n)}function ya(e){return fe.negate(e)}function zt(e,n=-1,a=!1,l=3,o=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let u=r,s="",d=r.indexOf(".");d!=-1&&(u=r.substring(0,d),s=r.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):a&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let c="",w=u.split("").reverse();for(let O=0;O<w.length;O++)c+=w[O]+((O+1)%l==0&&O+1!=w.length?o:"");s.length==0?h=`${i}${c.split("").reverse().join("")}`:h=`${i}${c.split("").reverse().join("")}.${s}`}else s.length==0?h=`${i}${u}`:h=`${i}${u}.${s}`;return h}function ba(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let l=n.replace(/[^\d\.-]/g,"");return`${a}${l}`}const Pn=Vn,Mr=Array.isArray,Rr=e=>Ht(e)==="[object Map]",Lr=e=>Ht(e)==="[object Set]",Je=e=>e instanceof Date,qn=e=>typeof e=="function",va=e=>typeof e=="string",_r=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",jt=e=>Re(e)&&qn(e.then)&&qn(e.catch),wa=Object.prototype.toString,Ht=e=>wa.call(e),zn=e=>Ht(e)==="[object Object]",Sa=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Pr(e){return e.__esModule||Sa&&e[Symbol.toStringTag]==="Module"}const qr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function at(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,l=e.length,o=!1;for(typeof n=="boolean"&&(o=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<l;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let i in r){let u=n[i],s=r[i];if(u!==s)if(o===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[i]=at(o,d,s)}else s!==void 0&&(n[i]=s)}}return n}function jn(e,n,a=!1){if(!a)at(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let o in n){let r=e[o],i=n[o];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!zn(i))continue;r=jn(r,i,a),e[o]=r}else{if(typeof i=="function")continue;e[o]=i}}const l=Object.getOwnPropertySymbols(n);for(let o of l){let r=e[o],i=n[o];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!zn(i))continue;r=jn(r,i,a),e[o]=r}else{if(typeof i=="function")continue;e[o]=i}}}return e}const Hn=qr?Promise.resolve():null;function zr(e,...n){Hn!==null?n&&n.length>0?Hn.then(()=>{e(n)}):Hn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ce(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function he(e){return typeof e=="number"?e:Number(e)}const 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 Kt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):jr[a]||"object"}function Ca(e){return e&&typeof e=="object"&&"setInterval"in e}function Yt(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Ta(e){let n=!!e&&"length"in e&&e.length,a=Kt(e);return a==="function"||Ca(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function xa(e,n){let a=+n.length,l=0,o=e.length;for(;l<a;l++)e[o++]=n[l];return e.length=o,e}function Hr(e,n=[]){let a=n;return e!=null&&(Ta(Object(e))?xa(a,typeof e=="string"?[e]:e):a.push(e)),a}function _e(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=Kt(e),l=Kt(n);if(a!==l)return!1;if(a==="object"){let o=Object.keys(e),r=Object.keys(n);if(o.length!==r.length)return!1;for(let i=0;i<o.length;i++){let u=o[i],s=e[u],d=n[u];if(!_e(s,d))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let o=0;o<e.length;o++){let r=e[o],i=n[o];if(!_e(r,i))return!1}return!0}return!1}const ot=typeof window<"u";function Kn(e){return e==null}function $a(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function ka(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Da(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function Na(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function Ea(e,n,a){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(a,"")}function Kr(e,n=!0,a=!0){n?e=Ea(e,".",/\./g):e=e.replace(/\./g,""),a?e=Ea(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Yr(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(_e(e,a))return!0}):n.indexOf(e)}function Wr(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(l=>{if(_e(e,l))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ze(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function xt(e,...n){const a={};return n.forEach(l=>{for(const o in l)a[o]=e[o]}),a}function $e(e,...n){const a=[];n.forEach(o=>{Reflect.apply([].push,a,Reflect.ownKeys(o))});const l={};for(const o in e)a.includes(o)||(l[o]=e[o]);return l}const Ur=(e,n,a)=>{const l=Object.assign({},e),o=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{o.hasOwnProperty(r)?typeof o[r]=="string"&&(l[r]=n[o[r]]):n[r]&&(l[r]=n[r])}),l):e},Ne=Symbol.for("BroadcastKey");class Yn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,l){this.parent=n,this.proxy=a,this.name=l,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(l=>n===l);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let o=!1;!n.name||n.name==="*"?o=!0:!n.name||n.name==="+"?(o=!1,n.name="*"):$a(n.name)&&this.name&&n.name.test(this.name)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(o=!0);const r=[];if(o){const i=this.callbacks.get(a);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...l]);s!=null&&r.push(s)}const u=this.proxy??{};if(typeof u[a]=="function"){const s=Reflect.apply(u[a],u,[...l]);s!=null&&r.push(s)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},a,...l]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,r,[...u])}),r}emitToChildren(n,a,...l){const o=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},a,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}on(n,a){this.callbacks.set(n,a)}}function Wt(e,n,a,l){const o=new Yn(n,e,a);if(l&&typeof l=="object")for(const r in l)o.on(r,l[r]);return o}function Gr(e,n,a){const l=a;if(l[Ne])return l[Ne];const o=t.inject(Ne,null),r=new Yn(o,a,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return l[Ne]=r,t.provide(Ne,r),t.onUnmounted(()=>{r.destroy(),l[Ne]=void 0}),r}function $t(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ne]??t.inject(Ne,null):t.inject(Ne,null)}const rt=e=>e.default??e;class Xr{error(n,a){const l=a,o=t.hasInjectionContext()?$t(a):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const a=n,l=t.hasInjectionContext()?$t(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,l=t.hasInjectionContext()?$t(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,l){Array.isArray(n)||(n=[n]);const o=l,r=t.hasInjectionContext()?$t(l):null,i=a.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?r?r.emit({name:"*"},"setRequired",!0):typeof o.setRequired=="function"&&o.setRequired(!0):i&&!u&&(r?r.emit({name:"*"},"setRequired",!1):typeof o.setRequired=="function"&&o.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let kt=new Xr;function Zr(e){kt=e}function Jr(e){kt?Object.assign(kt,e):kt=e}function Qr(e,n){rt(lt).setValidator(e,n)}function ei(e){rt(lt).deleteValidator(e)}let Va=["blur","clear"];function ti(e){Va=e}function Ia(){return Va}let Oa=["focus","change","setValue"];function ni(e){Oa=e}function Aa(){return Oa}function li(e){rt(lt).messages(e)}function Dt(...e){const n=[];return e.forEach(a=>{a.forEach(l=>{const o=n.findIndex(r=>r.type===l.type);o!==-1&&n.splice(o,1),n.push(l)})}),n}function Ut(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const We=Symbol("ValidateSchemaKey");class Fa{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,l){this.parent=n,this.descriptor=a,this.proxy=l,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const a=Ut(Dt(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=Ut(l);const o=Dt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...a){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...a]);const o=kt;return o&&typeof o[n]=="function"?Reflect.apply(o[n],o,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,a,l=!1){l?rt(lt).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?rt(lt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return rt(lt).hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}setRule(n){const a=Dt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Ut(n):this.rules=Ut([n]);const l=Dt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=Dt(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(a.length>0){const o={[`${l}`]:a},r=this.getValue(),i={[`${l}`]:r},u=rt(lt),s=new u(o),d=this.proxy??i;return s.validate(i,{context:d}).then(c=>{if(c.pass)this.success();else{let w="error";Array.isArray(c.errors)&&c.errors.length>0&&(w=c.errors[0].message??w,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(w)}return c}).catch(c=>{const w=c.message??`${c}`;return this.error(w),c})}}return Promise.resolve({pass:!0})}}function Gt(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const o=a.valueName;a.validateHandler={getValue(r){return r[o]}}}return new Fa(n,a,e)}const Xt=Symbol.for("EventEmitterKey");class Ba{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let l=this.register.get(n);if(l&&Array.isArray(l)){let o=l.findIndex(r=>r===a);o!==-1&&l.splice(o,1)}}on(n,a){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(a)}emit(n,...a){const l=this.register.get(n);l&&l.forEach(o=>{try{Reflect.apply(o,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function Nt(e,n){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...l])},n)}}function Ma(e,n){let a=0;return function(...l){const o=new Date().getTime();o-a<n||(a=o,Reflect.apply(e,null,[...l]))}}function ai(e,n){const a=Nt((l,o)=>{e=l,o()},n);return t.customRef((l,o)=>({get(){return l(),e},set(r){a(r,o)}}))}function oi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Zt(e,n,a,l=0,o=!0,r){let i=n,u=0;if(o){const d=e();if(u++,d){typeof r=="function"&&r(!0);return}if(u>a){typeof r=="function"&&r(!1);return}}const s=()=>{const d=e();if(u++,d){typeof r=="function"&&r(!0);return}if(u>a){typeof r=="function"&&r(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const Pe=Symbol("DomainKey"),dt=Symbol("DataItemsKey");class Jt{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,a=[]){for(const l in n){const o=n[l];a.length>0&&a.indexOf(o)!==-1||(this._props[l]=o)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const o=l._props[n];a.push(o)}l=l._parent}return a}}const ri=new Jt;function ht(){return ri}function Ue(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Pe]??t.inject(Pe,null):t.inject(Pe,null)}const Wn=Symbol("OriginalDateKey");function Un(e,n,a=[],l){const o=t.getCurrentInstance(),r=o?.proxy;let i=t.inject(Pe,null);i===null&&(i=ht());const u=e||n.prop||n.name,s=new Jt(u);s.parent=i;const d=g=>{r[Wn]||w(g),s.set("modelValue",g)},h=()=>s.getForSelf("modelValue")??null,c=()=>r[Wn]??null,w=g=>{const y={};at(!0,y,t.toRaw(g)),r[Wn]=y};t.isReactive(n)||typeof n=="function"?t.watch(n,g=>{s.merge(g,a)},{immediate:!0}):s.merge(n,a),n.modelValue&&w(n.modelValue),r[Pe]=s,t.provide(Pe,s);let O=null,p=null;if(o!==null){const g=t.inject(Ne,null);O=Wt(r,g,u,l),s.broadcast=O,r[Ne]=O,t.provide(Ne,O),r.broadcast=(A,m,...f)=>Reflect.apply(O.emit,O,[A,m,...f]);const y=t.inject(We,null);p=Gt(r,y,{componentName:""}),s.validateSchema=p,r[We]=p,t.provide(We,p),r[dt]=new Map,r.validate=(A=!0)=>{const m=[];let f=null;const V={deep:!1};if(A===!0)f={name:"*"};else if(Array.isArray(A)&&A.length>0){const R=A;f={name:L=>L?R.indexOf(L)!==-1:!1}}else if(A!=null&&typeof A=="object"){const R=A;if(Object.assign(V,R),Array.isArray(R.include)&&R.include.length>0){const L=R.include;f={name:N=>N?L.indexOf(N)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const L=R.exclude;f={name:N=>N?L.indexOf(N)===-1:!1}}else f={name:"*"}}if(f){const R=O?.emitToChildren(f,"validate",V);R&&Reflect.apply([].push,m,R)}return m.length==1?m[0]:m.length>1?Promise.all(m).then(R=>{let L=[];return R.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(L=[...L,...N.errors])}),L.length>0?{pass:!1,errors:L}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(A,m=!0,f=!1)=>{if(f===!0){Reflect.ownKeys(A).forEach(R=>{let L=String(R);const P=_a(s,L,{componentName:"",fieldName:L,pureDataValidate:!0},O,p);r[dt].set(L,P);const E=A[L];E&&P.validateSchema.setRule(E)});return}if(m){const V=Reflect.ownKeys(A),R={name:L=>V.includes(L)};O?.emitToChildren(R,"setNameValidateRules",A,!1)}},r.clearValidate=(A=!0)=>{let m=null;if(A===!0)m={name:"*"};else if(Array.isArray(A)&&A.length>0){const f=A;m={name:V=>V?f.indexOf(V)!==-1:!1}}else if(A!=null&&typeof A=="object"){const f=A;if(Array.isArray(f.include)&&f.include.length>0){const V=f.include;m={name:R=>R?V.indexOf(R)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const V=f.exclude;m={name:R=>R?V.indexOf(R)===-1:!1}}else m={name:"*"}}m&&O?.emitToChildren(m,"clearValidate",!1)},r.resetFields=A=>{const m=h();if(!m)return;const f={};if(at(!0,f,c()??{}),Array.isArray(A))A.forEach(V=>{m[V]=f[V]});else if(A&&Array.isArray(A.include))(A.include??[]).forEach(R=>{m[R]=f[R]});else if(A&&Array.isArray(A.exclude)){let V=A.exclude??[];Reflect.ownKeys(f).forEach(R=>{V.includes(R)||(m[R]=f[R])})}else Object.assign(m,f);r.clearValidate(A)},r.setModelValue=(A,m)=>{!m||m===u?d(A):O?.emitToChildren({name:m},"setModelValue",A)},r.getModelValue=()=>h()}return t.onUnmounted(()=>{s.destroy(),r[Pe]=void 0,r[dt]&&(r[dt].clear(),r[dt]=void 0),O!==null&&(O.destroy(),r[Ne]=void 0),p!==null&&(p.destroy(),r[We]=void 0)}),s}function Ra(e,n,a=[]){const o=t.getCurrentInstance()?.proxy;let r=t.inject(Pe,null);r===null&&(r=ht());const i=e||n.prop||n.name,u=new Jt(i);return u.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,s=>{u.merge(s,a)},{immediate:!0}):u.merge(n,a),o[Pe]=u,t.provide(Pe,u),t.onUnmounted(()=>{u.destroy(),o[Pe]=void 0}),u}function La(e,n,a){const o=Ue(e)?.get("rules");if(!o)return;let r=o[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Te(e,n,a){const o=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(Ne,null),u=Wt(o,i,r,a);o[Ne]=u,t.provide(Ne,u),o.broadcast=(p,g,...y)=>Reflect.apply(u.emit,u,[p,g,...y]);const s=t.inject(We,null);e.fieldName=e.fieldName??r;const d=Gt(o,s,e);o[We]=d,t.provide(We,d),La(o,d,r),o.validate=(p=null)=>{const g=[];let y=!1,A=!1;if(Array.isArray(p)&&p.indexOf(r)!==-1)A=!0,y=!0;else if(p&&typeof p=="object"){const m=p,f=m.ignoreDisabled??!0,V=m.ignoreReadonly??!0,R=m.ignoreHidden??!0;f===!0&&e.disabled===!0||V===!0&&e.readonly===!0||R===!0&&Yt(o.$el)?A=!1:(Array.isArray(m.include)&&m.include.indexOf(r)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(r),A=!0),y=m.deep??!1}else typeof p=="boolean"&&(y=p),A=!0;if(A){const m=d?.validate();g.push(m)}if(y){let m=null;const f={deep:!1};if(p===!0)m={name:"*"};else if(Array.isArray(p)&&p.length>0){const V=p;m={name:R=>R?V.indexOf(R)!==-1:!1}}else if(p!=null&&typeof p=="object"){const V=p;if(Object.assign(f,V),Array.isArray(V.include)&&V.include.length>0){const R=V.include;m={name:L=>L?R.indexOf(L)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const R=V.exclude;m={name:L=>L?R.indexOf(L)===-1:!1}}else m={name:"*"}}if(m){const V=u.emitToChildren(m,"validate",f);Reflect.apply([].push,g,V)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(m=>{let f=[];return m.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(f=[...f,...V.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=p=>d?.setRule(p),o.setNameValidateRules=(p,g=!1)=>{const y=p[r];if(y&&d?.setRule(y),g){const A={name:m=>Reflect.ownKeys(p).includes(m)};u.emitToChildren(A,"setNameValidateRules",p,!1)}},o.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&d?.clear();let g=null;if(p===!0)g={name:"*"};else if(Array.isArray(p)&&p.length>0){const y=p;g={name:A=>A?y.indexOf(A)!==-1:!1}}else if(p!=null&&typeof p=="object"){const y=p;if(Array.isArray(y.include)&&y.include.length>0){const A=y.include;g={name:m=>m?A.indexOf(m)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const A=y.exclude;g={name:m=>m?A.indexOf(m)===-1:!1}}else g={name:"*"}}g&&u.emitToChildren(g,"clearValidate",!1)};const h=new Ba(o);o[Xt]=h;const c=Nt((p="validate")=>{p==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ia()).forEach(p=>{h.on(p,g=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Aa()).forEach(p=>{h.on(p,g=>{c("reset")})}),t.onUnmounted(()=>{u.destroy(),o[Ne]=void 0,d.destroy(),o[We]=void 0,h.destroy(),o[Xt]=void 0}),{broadcast:u,validateSchema:d,emitEvent:(p,...g)=>{Reflect.apply(h.emit,h,[p,...g])},onEvent:(p,g)=>{Reflect.apply(h.on,h,[g])},offEvent:(p,g)=>{Reflect.apply(h.off,h,[g])}}}function _a(e,n,a,l,o){const r={},i=n??"",u={getValue(){const h=e.getForSelf("modelValue");return h?h[i]:null},isExist(){const h=e.getForSelf("modelValue");return h?Reflect.has(h,i):!1}};a.fieldName=i,a.validateHandler={getValue(h){return u.getValue()}};const s=Gt({},o,a);r.validate=(h=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let w=!1,O=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)O=!0,w=!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),O=!0,w=p.deep??!1}else typeof h=="boolean"&&(w=h),O=!0;if(O){const p=s?.validate();c.push(p)}if(w){let p=null;const g={deep:!1};if(h===!0)p={name:"*"};else if(Array.isArray(h)&&h.length>0){const y=h;p={name:A=>A?y.indexOf(A)!==-1:!1}}else if(h!=null&&typeof h=="object"){const y=h;if(Object.assign(g,y),Array.isArray(y.include)&&y.include.length>0){const A=y.include;p={name:m=>m?A.indexOf(m)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const A=y.exclude;p={name:m=>m?A.indexOf(m)===-1:!1}}else p={name:"*"}}if(p){const y=d.emitToChildren(p,"validate",g);Reflect.apply([].push,c,y)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(p=>{let g=[];return p.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(g=[...g,...y.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>s?.setRule(h),r.setNameValidateRules=h=>{const c=h[i];c&&s?.setRule(c)};const d=Wt(null,l,i,r);return{broadcast:d,validateSchema:s}}function Gn(){const n=t.getCurrentInstance()?.proxy,a=new Ba(n);return n[Xt]=a,t.onUnmounted(()=>{a.destroy(),n[Xt]=void 0}),{emitEvent:(l,...o)=>{Reflect.apply(a.emit,a,[l,...o])},onEvent:(l,o)=>{Reflect.apply(a.on,a,[o])},offEvent:(l,o)=>{Reflect.apply(a.off,a,[o])}}}const Ae=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,n)}px`:"";function me(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let o=Number(e.substring(0,a)),r=1;if(ot){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(r=Number(i.substring(0,u)))}return o*=r,o}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*n;const l=Number(e);return isNaN(l)?0:l}const Qe="PageStateKey";function je(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=me(e.top)),e.left!==null&&e.left!==void 0&&(n.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=me(e.right))),n}function Xn(e,n,a={},l=!0,o=-1,r=-1,i=0,u=0){if(e.headerHeight=me(a.headerHeight??n.headerHeight??-1),e.headerPadding=je(a.headerPadding??n.headerPadding),e.footerHeight=me(a.footerHeight??n.footerHeight??-1),e.footerPadding=je(a.footerPadding??n.footerPadding),e.contentPadding=je(a.contentPadding??n.contentPadding),l){const s=a.height??n.height;s?e.height=me(s,r):e.height=me(r)-me(i,r)-me(u,r),e.width=me(a.width??n.width??0,o)}}function Pa(e,n={}){const a={top:null,left:null,bottom:null,right:null},l={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},o=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});o&&(l.safeAreaTop=me(o.top),l.safeAreaBottom=me(o.bottom),l.safeAreaLeft=me(o.left),l.safeAreaRight=me(o.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Xn(l,r,n,!0,i,u,s,d);const h=t.reactive(l),c=e.getForParent(Qe);c&&(l.height=en(e,c),l.width=tn(e,c),t.watch([()=>en(e,c),()=>tn(e,c)],([O,p])=>{h.height=O,h.width=p}));const w=!c;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([O,p,g=-1,y=-1,A=0,m=0])=>{Xn(h,p,n,w,g,y,A,m)}),e.set(Qe,h),h}function Qt(e){return e.get(Qe)}function Et(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Vt(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function en(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Et(e,n),l=Vt(e,n);return n.height-a-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function tn(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function ii(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function si(e){return!!e.getForParent(Qe)}var Le=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Le||{});function Zn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ee(e,n,a=1,l){const o=Ue();return o==null?e:a===0?t.computed(()=>{const r=o.getAll(n);for(let u=r.length-1;u>=0;u--){const s=r[u];if(Zn(s,l))return s}const i=e.value;return Zn(i,l)?i:null}):t.computed(()=>{const r=e.value;return Zn(r,l)?r:o?.get(n)})}function Ve(e){return Ee(e,"readonly",0,function(a){return ce(a)})}function Ie(e){return Ee(e,"disabled",0,function(a){return ce(a)})}function de(e,n="modelValue",a=null,l){const o=t.toRef(e,n);let r=o.value;typeof a=="function"&&(r=a(o.value));const i=t.ref(r);return t.watch(o,u=>{if(typeof a=="function"){const s=a(u);s!==i.value&&(i.value=s,l&&l("setValue",s))}else u!==i.value&&(i.value=u,l&&l("setValue",u))}),i}const qa=new Map,nn=new Map;let Jn=null;function ui(e){Jn=e}function za(e,n,a){if(a){let l=nn.get(a);l||(l=new Map,nn.set(a,l)),l.set(e,n)}else qa.set(e,n)}function Fe(e,n,a){!a&&Jn&&(a=Jn(e)??void 0);let l=null;if(a){let o=nn.get(a);o&&(l=o.get(n))}return l||(l=qa.get(n)),l}function ci(e,n){for(let a in e){const l=e[a];za(a,l,n)}}function fi(e){nn.delete(e)}function di(){return{top:0,left:0,bottom:0,right:0}}function hi(e=0,n=0){if(ot){const a=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,o={width:a,height:l-me(e,l)-me(n,l)};return{rootWidth:a,rootHeight:l,pageLayout:o}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class mi{packages;installers;_version;get version(){return this._version}constructor(n,a,l){this.packages=n,this.installers=a,this._version=l}install(n,a={}){a?.install!==!1&&(this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],o=ht();if(this.initPageLayout(a,o),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Ma(()=>{const u={...a},s=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=d,this.initPageLayout(u,o)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)l.indexOf(r)===-1&&o.set(r,a[r])}initPageLayout(n,a){const l=n.headerBarHeight??0,o=n.footerBarHeight??0,r=at({},di(),n.safeAreaInset),i=hi(l,o),u=at({},i.pageLayout,n.pageLayout);a=a??ht(),a.set("safeAreaInset",r),a.set("headerBarHeight",l),a.set("footerBarHeight",o),a.set("pageLayout",u),a.set("rootWidth",i.rootWidth),a.set("rootHeight",i.rootHeight)}setScopeGetter(n){ui(n)}setAPI(n,a,l){za(n,a,l)}getAPI(n,a,l){return Fe(n,a,l)}batchSetAPI(n,a){ci(n,a)}clearScopeAPI(n){fi(n)}getRootDomain(){return ht()}}const gi=[B.ElAffix,B.ElAlert,B.ElAutocomplete,B.ElAutoResizer,B.ElAvatar,B.ElBacktop,B.ElBadge,B.ElBreadcrumb,B.ElBreadcrumbItem,B.ElButton,B.ElButtonGroup,B.ElCalendar,B.ElCard,B.ElCarousel,B.ElCarouselItem,B.ElCascader,B.ElCascaderPanel,B.ElCheckTag,B.ElCheckbox,B.ElCheckboxButton,B.ElCheckboxGroup,B.ElCol,B.ElCollapse,B.ElCollapseItem,B.ElCollapseTransition,B.ElColorPicker,B.ElConfigProvider,B.ElContainer,B.ElAside,B.ElFooter,B.ElHeader,B.ElMain,B.ElDatePicker,B.ElDescriptions,B.ElDescriptionsItem,B.ElDialog,B.ElDivider,B.ElDrawer,B.ElDropdown,B.ElDropdownItem,B.ElDropdownMenu,B.ElEmpty,B.ElForm,B.ElFormItem,B.ElIcon,B.ElImage,B.ElImageViewer,B.ElInput,B.ElInputNumber,B.ElLink,B.ElMenu,B.ElSubMenu,B.ElMenuItem,B.ElMenuItemGroup,B.ElPageHeader,B.ElPagination,B.ElPopconfirm,B.ElPopover,B.ElPopper,B.ElProgress,B.ElRadio,B.ElRadioButton,B.ElRadioGroup,B.ElRate,B.ElResult,B.ElRow,B.ElScrollbar,B.ElSelect,B.ElOption,B.ElOptionGroup,B.ElSelectV2,B.ElSkeleton,B.ElSkeletonItem,B.ElSlider,B.ElSpace,B.ElSteps,B.ElStep,B.ElSwitch,B.ElTable,B.ElTableColumn,B.ElTableV2,B.ElTabs,B.ElTabPane,B.ElTag,B.ElTimePicker,B.ElTimeSelect,B.ElTimeline,B.ElTimelineItem,B.ElTooltip,B.ElTransfer,B.ElTree,B.ElTreeSelect,B.ElTreeV2,B.ElUpload],pi=[B.ElInfiniteScroll,B.ElLoading,B.ElMessage,B.ElMessageBox,B.ElNotification,B.ElPopoverDirective],yi=e=>{gi.forEach(n=>{let a=n.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,n)):e.use(n)}),pi.forEach(n=>{e.use(n)})};function se(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=l=>{l.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}function ye(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const we={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ke={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},ja={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}},Ha={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}},Ka=[];for(const e in Ha)Ka.push(e);const bi=Symbol.for("InnerPageScopeKey"),vi={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},wi=(e,n)=>({inheritAttrs:!0,props:{...we,...ja,...vi},setup(a,{slots:l}){const o=Un(a.name,a),r=t.inject(bi,!1);if(o){const h=Pa(o,a);ye({getPageContentHeight:()=>en(o,h),getPageContentWidth:()=>tn(o,h),getPageHeaderHeight:()=>Et(o,h),getPageFooterHeight:()=>Vt(o,h)}),h&&r&&(h.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),u=t.computed(()=>({})),s=t.getCurrentInstance(),d=(h,c=!1)=>{const w=s?.proxy;w&&typeof w.setNameValidateRules=="function"&&w.setNameValidateRules(h,!0,c)};return t.watch([()=>a.rules,()=>a.pureDataRules],([h,c],[w,O])=>{if(h&&w){const p=t.toRaw(w),g=t.toRaw(h),y=g?Reflect.ownKeys(g):[];(p?Reflect.ownKeys(p):[]).forEach(m=>{y.includes(m)||(g[m]=[])}),d(g)}if(c&&O){const p=t.toRaw(O),g=t.toRaw(c),y=g?Reflect.ownKeys(g):[];(p?Reflect.ownKeys(p):[]).forEach(m=>{y.includes(m)||(g[m]=[])}),d(g,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const h=t.toRaw(a.rules);d(h)}if(a.pureDataRules){const h=t.toRaw(a.pureDataRules);d(h,!0)}}),()=>{const h={class:i.value,style:u.value};return t.h("div",h,[l?.default?.()])}}}),{componentName:Si,create:Ci,scope:Zg}=se("page"),Qn=Ci(wi(Si));function ln(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function el(e){const n=t.unref(e),a=window.getComputedStyle(n,null),l=parseFloat(a.getPropertyValue("padding-left")),o=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-o,height:n.clientHeight-r-i}}const Ti=(e,n,a,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(o,r){const i=Ue(),u=i?Qt(i):null;u&&(u.headerMounted=!0);const s=e,d=t.computed(()=>({[s]:!0,[`${s}--border`]:o.border,[`${s}--fixed`]:o.fixed,[`${s}--safe-area-inset-top`]:o.safeAreaInsetTop})),h=t.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${o.align}`]:!0})),c=o.height!==null&&o.height!==void 0?me(o.height):null,w=t.computed(()=>{const F={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const T=je(o.padding??u.headerPadding);return Object.assign(F,T),c&&(u.headerHeight=c),u.headerHeight>0&&(F.height=u.headerHeight),F.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,F.safeAreaTop>0&&(F.top=F.safeAreaTop+(T.top??0),F.height&&F.height>0&&(F.height=F.height+F.safeAreaTop)),F}if(c&&(F.height=c),o.padding){const T=je(o.padding);Object.assign(F,T)}return F}),O=t.ref(null),p=()=>{if(u&&O.value&&!Yt(O.value)){if(!l){const F=ln(O.value);u.headerAllHeight=F.height}return u.headerMounted=!0,!0}return!1};let g=null;t.onMounted(()=>{u&&(Zt(p,50,5,50,!0),window.ResizeObserver&&O.value&&(g=new window.ResizeObserver(()=>{p()}),g.observe(O.value)))}),t.onUnmounted(()=>{u&&(u.headerMounted=!1,g&&(g.disconnect(),g=null))});const y=t.computed(()=>{const F={};return w.value.height!==null&&w.value.height!==void 0&&(F.height=`${w.value.height}px`),w.value.top!==null&&w.value.top!==void 0&&(F.paddingTop=`${w.value.top}px`),w.value.left!==null&&w.value.left!==void 0&&(F.paddingLeft=`${w.value.left}px`),w.value.right!==null&&w.value.right!==void 0&&(F.paddingRight=`${w.value.right}px`),w.value.bottom!==null&&w.value.bottom!==void 0&&(F.paddingBottom=`${w.value.bottom}px`),F}),A=t.computed(()=>!(w.value.height!==null&&w.value.height!==void 0&&w.value.height<=0));function m(){r.emit("back")}function f(){r.emit("click-title")}function V(){r.emit("click-right")}function R(){r.emit("click-right-text")}const L=()=>{if(!o.leftShow)return null;const F=[];if(r.slots.left)F.push(r.slots.left());else{if(r.slots.leftIcon){const T=t.h("view",{class:"left-icon",onClick:m},[r.slots.leftIcon()]);F.push(T)}else if(o.leftIcon){const T=t.h("view",{class:"left-icon",onClick:m},[t.h(o.leftIcon)]);F.push(T)}if(o.leftText){const T=t.h("view",{class:"left-text",onClick:m},[o.leftText]);F.push(T)}}return F.length===0?null:t.h("view",{class:"fox-header-bar__left"},F)},N=()=>{if(!o.rightShow)return null;const F=[];if(r.slots.right)F.push(r.slots.right());else{if(o.rightText){const T=t.h("view",{class:"right-text",onClick:R},[o.rightText]);F.push(T)}if(r.slots.rightIcon){const T=t.h("view",{class:"right-icon",onClick:V},[r.slots.rightIcon()]);F.push(T)}else if(o.rightIcon){const T=t.h("view",{class:"right-icon",onClick:V},[t.h(o.rightIcon)]);F.push(T)}}return F.length===0?null:t.h("view",{class:"fox-header-bar__right"},F)},P=()=>{if(!o.titleShow)return null;const F=[],T=r.slots.default?r.slots.default():null;if(T)F.push(T);else{if(o.title){const z=t.h("view",{class:"title-text"},[o.title]);F.push(z)}if(r.slots.titleIcon){const z=t.h("view",{class:"title-icon",onClick:f},[r.slots.titleIcon()]);F.push(z)}else if(o.titleIcon){const z=t.h("view",{class:"title-icon",onClick:f},[t.h(o.titleIcon)]);F.push(z)}}return F.length===0?null:t.h("view",{class:"fox-header-bar__title"},F)},E=()=>{const F=[],T=r.slots.bottom?r.slots.bottom():null;return T&&F.push(T),F.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},F)};return()=>{if(!A.value)return null;const F=[];if(r.slots.all)F.push(r.slots.all());else{const z=[],k=L();k&&z.push(k);const D=P();D&&z.push(D);const x=N();if(x&&z.push(x),z.length>0){const j=t.h("view",{class:h.value},z);F.push(j)}const U=E();U&&F.push(U)}if(F.length===0)return null;const T={class:d.value,style:y.value,ref:O};return t.h("view",T,F)}}}),{componentName:xi,create:$i,scope:ki}=se("header-bar"),tl=$i(Ti(xi,ki,xe.ArrowLeft));function Di(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,o){const r=Ue(),i=r?Qt(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?me(l.height):null,d=t.computed(()=>{const p={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const g=je(l.padding??i.footerPadding);return Object.assign(p,g),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+(g.bottom??0),p.height&&p.height>0&&(p.height=p.height+p.safeAreaBottom)),p}if(s&&(p.height=s),l.padding){const g=je(l.padding);Object.assign(p,g)}return p}),h=t.ref(null),c=()=>{if(i&&h.value&&!Yt(h.value)){if(!a){const p=ln(h.value);i.footerAllHeight=p.height}return i.footerMounted=!0,!0}return!1};let w=null;t.onMounted(()=>{i&&(Zt(c,50,5,50,!0),window.ResizeObserver&&(w=new window.ResizeObserver(()=>{c()}),w.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,w&&(w.disconnect(),w=null))});const O=t.computed(()=>{const p={};return d.value.height!==null&&d.value.height!==void 0&&(p.height=Ae(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(p.paddingTop=Ae(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(p.paddingLeft=Ae(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(p.paddingRight=Ae(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(p.paddingBottom=Ae(d.value.bottom)),p});return()=>{const p=o.slots.default?o.slots.default():[],g={ref:h,class:u.value,style:O.value};return t.h("view",g,p)}}}}const{componentName:Ni,create:Ei,scope:Jg}=se("footer-bar"),nl=Ei(Di(Ni));function Vi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const l=Ue(),o=t.computed(()=>({[e]:!0})),r=l?Qt(l):null,i=t.computed(()=>{const d={};if(l&&r){if(a.padding){const O=je(a.padding);Object.assign(r.contentPadding,O)}const h=Et(l,r),c=Vt(l,r);let w="";if(r.contentHeight?w=`${r.contentHeight}`:w=`${r.height}px`,r.contentPadding,d.height=w,r.contentPadding.top||h>0){const O=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${h+O}px`}if(r.contentPadding.bottom||c>0){const O=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${c+O}px`}return r.contentPadding.left&&(d.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(d.paddingRight=`${r.contentPadding.right}px`),d}if(a.padding){const h=je(a.padding);h.left&&(d.paddingLeft=`${h.left}px`),h.top&&(d.paddingTop=`${h.top}px`),h.right&&(d.paddingRight=`${h.right}px`),h.bottom&&(d.paddingBottom=`${h.bottom}px`)}return d}),u=t.ref(null),s=()=>{if(r&&u.value){const d=el(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:o,styles:i}}}}const{componentName:Ii,create:Oi,scope:Qg}=se("content"),Ai=Oi(Vi(Ii));function Fi(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const De=(e,n)=>{const a=e.__vccOpts||e;for(const[l,o]of n)a[l]=o;return a},ll=De(Ai,[["render",Fi]]),mt="GroupStateKey",Ya=Symbol.for("GroupScopeKey");function an(){return t.inject(Ya,!1)}function on(e=!0){t.provide(Ya,e)}function Bi(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const o=n[l];Kn(o)||(e[l]=o)})}function Mi(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Bi(l,n);const o=t.shallowRef(l),r=t.markRaw({layout:o,passport:0,order:{index:0}});return e.set(mt,r),r}function al(e,n,a=-1,l=-1,o=!1,r,i,u){const s=e.get(mt);if(!s)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),l===-1&&(l=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const h=me(r),c=me(i);u||(u=d.type??"grid");const w=()=>{const O=n===""||n===-1,p=me(n);let g=he(a);const y=me(l);if(!O){let f=(p-(g-1)*y)/g;for(;c!==-1&&f>c;)g++,f=(p-(g-1)*y)/g;for(;h!==-1&&g>1&&f<h;)g--,f=(p-(g-1)*y)/g}let A=!1;const m=s.layout;m.value.width=n,m.value.column!==g&&(m.value.column=g,A=!0),m.value.gutter!==y&&(m.value.gutter=y,A=!0),m.value.type!==u&&(m.value.type=u,A=!0),A&&t.triggerRef(m)};if(o)w();else{const O=++s.passport;setTimeout(()=>{O===s.passport&&w()},50)}}function rn(e,n=!1){let a;return n?a=e.getForParent(mt):a=e.get(mt),a.layout}function sn(e,n=!1){let a;return n?a=e.getForParent(mt):a=e.get(mt),a.order}function Wa(e,n=1){if(n==="stretch")return-1;const a=he(n);return a===-1?100:100*a/e}function un(e,n,a=1,l=0,o){const r={};let i=0;o?i=me(o):i=Wa(n.column,a),i>0&&(r.width=`${i}%`);const u=Wa(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 cn(e,n,a=1,l=0){if(a==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let o=he(a);if(o===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(o>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const r=he(l)%n.column;let i=(e.index+r)%n.column,u=i+o;return u>n.column?(i=0,u=i+o,e.index=e.index+(n.column-i)+o):e.index=e.index+r+o,r>0?{"grid-column":`${i+1} / span ${o}`}:{"grid-column-start":`span ${o}`}}const Ua=Symbol("RollingStateKey");function Ri(e){t.provide(Ua,e)}function Li(){return t.inject(Ua,null)}function ol(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const o=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-o-r}else n=e.offsetHeight;return n}function _i(e){let n=ol(e);if(n<=0){const a=e.cloneNode(!0),l=e.offsetWidth;a.style=`width: ${l}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=ol(a),document.body.removeChild(a)}return n}function Pi(e,n,a){if(e<=0)return"1fr";const l=(e-(n-1)*a)/n;return l>0?`${l}px`:"1fr"}const qi={...we,...ja,...Ha};function zi(e,n,a){return{props:qi,emits:["update:collapse"],setup(l,o){const r=Un(l.name,l,Ka),i=Mi(r,{type:l.type}),u=an();on(!0);const s=l.rollingDisplay?Li():null,d=t.ref(null),h=t.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),c=t.computed(()=>u&&r?rn(r,!0).value:null),w=t.getCurrentInstance(),O=(C,_=!1)=>{const X=w?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(C,!0,_)};t.watch([()=>l.rules,()=>l.pureDataRules],([C,_],[X,ne])=>{if(C&&X){const S=t.toRaw(X),W=t.toRaw(C),ee=W?Reflect.ownKeys(W):[];(S?Reflect.ownKeys(S):[]).forEach(te=>{ee.includes(te)||(W[te]=[])}),O(W)}if(_&&ne){const S=t.toRaw(ne),W=t.toRaw(_),ee=W?Reflect.ownKeys(W):[];(S?Reflect.ownKeys(S):[]).forEach(te=>{ee.includes(te)||(W[te]=[])}),O(W,!0)}},{deep:!0});const p=e,g=t.computed(()=>{const C={};C.height=x.value;const _=u?sn(r,!0):null;if(c.value&&_){if(c.value.type==="grid"){const X=cn(_,c.value,l.span,l.offset);Object.assign(C,X)}else if(c.value.type==="flow"){const X=un(_,c.value,l.span,l.offset,l.width);Object.assign(C,X)}}else if(l.width){const X=Ae(l.width);C.width=X}return C}),y=t.computed(()=>{const C=i.layout.value.type;return C==="grid"||C==="flow"?{[`${p}--${C}`]:!0,[`${p}--${C}-justify-${l.justify}`]:!0,[`${p}--${C}-align-${l.align}`]:!0,[`${p}--gutter`]:!0}:{[`${p}--${C}`]:!0,[`${p}--gutter`]:!0}}),A=t.computed(()=>{if(i.layout.value.type==="grid"){let _="";if(l.columnWidth)_=`repeat(auto-fill, ${l.columnWidth})`;else{const X=Pi(P.value,i.layout.value.column,i.layout.value.gutter);_=`repeat(${i.layout.value.column}, ${X})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":_}}}),m=t.toRef(l,"gutter"),f=t.toRef(l,"column"),V=t.computed(()=>u||h.value?!0:ce(l.isWrap)),R=[],L=C=>{R.push(C)},N=()=>{let C=R.length;R.splice(0,C)},P=t.ref(-1),E=C=>{const _=el(C).width;_>0&&_!==P.value&&(P.value=_)};al(r,P.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([P,f,m],([C,_,X])=>{i.order.index=0,al(r,C,_,X,!1,l.minItemWidth,l.maxItemWidth,l.type)});const F=t.computed(()=>U.value?l.expandText??"":l.collapseText??""),T=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),z=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),k=t.ref(),D=t.ref(),x=t.computed(()=>j.value||Ae(l.height)||""),U=t.ref(!1),j=t.ref(""),Q=t.ref(!1);let G=-1;const J=(C,_=!0)=>{const X=k.value;if(X&&U.value!==C){if(G=G===-1?_i(X):G,Q.value=!0,_)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",C||(j.value="",Q.value=!1)},C){let ne=0;l.collapseHeight?ne=l.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(ne=D.value.offsetHeight),j.value=`${G}px`,t.nextTick(()=>{j.value=`${ne}px`})}else j.value=`${G}px`;else if(C){let ne=0;l.collapseHeight?ne=l.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(ne=D.value.offsetHeight),j.value=`${ne}px`}else Q.value=!1,j.value=`${G}px`;U.value=C,o.emit("update:collapse",C)}};t.watch(()=>l.collapse,C=>{J(C)});const le=()=>{q()},q=C=>{C=C??!U.value,J(C)};ye({toggleCollapse:q,doLayout:()=>{R[0]&&(E(R[0]),al(r,P.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let K=null,H=!0;const M=C=>{if(l.rules){const _=t.toRaw(l.rules);O(_)}if(l.pureDataRules){const _=t.toRaw(l.pureDataRules);O(_,!0)}if(ot&&(C&&J(ce(l.collapse),!1),l.autoLayout&&Array.isArray(R)&&R.length>0)){const _=R[0];E(_),window.ResizeObserver&&(K=new window.ResizeObserver(()=>{E(_)}),K.observe(_))}},Z=()=>{K?.disconnect(),K=null},Y=!h.value||s?.acquire();Y&&(d.value=h.value?!0:null),t.onMounted(()=>{if(Y&&(M(H),H=!1),h.value&&s){let C=null,_=s.initialHeight;s.observe(k.value,X=>{if(X!==d.value)if(X)d.value=!0,U.value||(j.value=""),C=setTimeout(()=>{C=null,d.value!==!1&&(M(H),H=!1)},100);else{if(C!==null&&clearTimeout(C),d.value=!1,!U.value)if(H)j.value=s.initialHeight;else{let ne=ol(k.value);ne<=0?j.value=_:(j.value=`${ne}px`,_=j.value)}H||Z()}})}}),t.onUnmounted(()=>{K?.disconnect(),s&&s.unobserve(k.value)});const $=(C="right")=>{const _=[];if(F.value){const S={class:T.value},W=t.h("span",S,[F.value]);_.push(W)}const X={class:z.value},ne=a(l.collapseIcon,X);return ne&&_.push(ne),_.length>0?t.h("div",{class:{[`${p}__header-collapse`]:!0,[`is-${C}`]:!0},onClick:le},_):null},b=(C,_,X,ne)=>{const S={...y.value};return _===0&&(S[`${p}__first`]=!0),X>=ne-1&&(S[`${p}__last`]=!0),t.h("div",{ref:L,key:`${_}`,class:S,style:A.value},C)};return()=>{if(h.value&&d.value!==!0){const S=l.tag||"div";return t.h(S,{ref:k,prop:l.name,class:{[`${p}`]:!0,"is-collapse":Q.value},style:g.value},[])}i.order.index=0;const C=[];let _=0;if(o.slots.header){const S={key:`${_++}`,ref:D,class:{[`${p}__header`]:!0,[`${p}__first`]:!0}},W=t.h("div",S,[o.slots.header()]);C.push(W)}else{const S=[],W=l.collapsePosition==="left";if(W&&l.showCollapse){const ee=$("left");ee&&S.push(ee)}if(l.title||o.slots.title){if(l.showMark){const ee={class:{[`${p}__header-mark`]:!0}};l.markColor&&(ee.style={background:l.markColor});const ae=t.h("div",ee);S.push(ae)}if(o.slots.title){const ee=t.h("div",{class:{[`${p}__header-title`]:!0}},[o.slots.title()]);S.push(ee)}else if(l.title){const ee=t.h("div",{class:{[`${p}__header-title`]:!0}},[l.title]);S.push(ee)}}if(o.slots.toolbar&&S.push(o.slots.toolbar()),!W&&l.showCollapse){const ee=$("right");ee&&S.push(ee)}if(S.length>0){const ee={key:`${_++}`,ref:D,class:{[`${p}__header`]:!0,[`${p}__first`]:!0}},ae=t.h("div",ee,S);C.push(ae)}}N();const X=o.slots.default?o.slots.default():[],ne=i.layout.value.type;if(ne==="grid"){const S=b(X,_++,0,X.length);C.push(S)}else if(ne==="flow"){const S=b(X,_++,0,X.length);C.push(S)}else for(let S=0;S<X.length;S++){const W=X[S],ee=b([W],_++,S,X.length);C.push(ee)}if(V.value){const S=l.tag||"div";return t.h(S,{ref:k,prop:l.name,class:{[`${p}`]:!0,"is-collapse":Q.value},style:g.value},[C])}else return C}}}}const{componentName:ji,create:Hi,scope:Ki}=se("group"),rl=Hi(zi(ji,Ki,(e,n)=>(e=e??xe.ArrowUp,t.h(B.ElIcon,n,{default:()=>[t.h(e)]}))));function Yi(e){return e===window}const Wi=/matrix\((.+)\)/,Ga=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Yi(n))return{x:0,y:0};let a=0,l=0,o=n;for(;o!==null;)a+=o.offsetLeft,l+=o.offsetTop,o=o.offsetParent;let r=0,i=0,u=0,s=0;for(o=n;o!==document;){i+=o.scrollTop,r+=o.scrollLeft;const{transform:d}=window.getComputedStyle(o);if(d){const h=Wi.exec(d);if(h){let w=h[1].split(/\s*,\s*/);w.length==6&&(u+=Number(w[4]),s+=Number(w[5]))}}o=o.parentNode}return a-=r,l-=i,a+=u,l+=s,{x:a,y:l}};class Ui{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Gi{monitorRegister=new WeakMap;watch(n,a){let l=n.parentNode;const o=document.body.parentNode;for(;l&&l!==o;){let r=this.monitorRegister.get(l);r||(r=new Ui,l.addEventListener("scroll",r.listen),l===document.body&&l.addEventListener("resize",r.listen),this.monitorRegister.set(l,r)),r.add(a),l=l.parentNode}}unwatch(n,a){let l=n.parentNode;const o=document.body.parentNode;for(;l&&l!==o;){let r=this.monitorRegister.get(l);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",r.listen),l===document.body&&l.removeEventListener("resize",r.listen))),l=l.parentNode}}}const Xa=new Gi,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:Xi,create:Zi}=se("price"),Ji=Zi({props:{...Za},setup(e){const n=t.computed(()=>({[Xi]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>ze(e.price)==0?"":zt(e.price,e.decimalLength,!0,he(e.digits),e.separator)),o=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),r=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:a,intText:o,decimalText:r}}}),Qi=["innerHTML"],es=["innerHTML"];function ts(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Qi)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,es)):t.createCommentVNode("",!0)],2)}const fn=De(Ji,[["render",ts]]),{componentName:il,create:ns}=se("hint-text"),ls=ns({components:{Price:fn},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 a=t.ref({top:null,right:null,bottom:null,left:null}),l=t.ref({x:0,y:0}),o=t.ref(0),r=t.ref(0),i=t.ref(e.placement),u=t.ref(!1),s=t.ref(null),d=(T,z,k,D,x,U)=>{const j=document.documentElement.clientWidth||document.body.clientWidth,Q=document.documentElement.clientHeight||document.body.clientHeight,G=T.split("-");let J=[];G[0]==="top"?J=["top","bottom","right","left"]:G[0]==="bottom"?J=["bottom","top","right","left"]:G[0]==="left"?J=["left","top","bottom","right"]:G[0]==="right"&&(J=["right","top","bottom","left"]);const le={top:null,right:null,bottom:null,left:null},q=[];for(let I=0;I<J.length;I++){const K=J[I];if(q[0]=K,G[1]&&(q[1]=G[1]),K==="top"){const H=z.y-U-e.arrowSize-e.offset;if(H>=0){le.top=H;let M=0;G[1]==="start"?M=z.x:G[1]==="end"?M=z.x+k-x:M=z.x+k/2-x/2;const Z=j-M-x;Z<0?(M+=Z,c.value=-Z):c.value=0,le.left=M<0?0:M;break}}else if(K==="bottom"){const H=z.y+D+e.arrowSize+e.offset;if(H+U<=Q){le.top=H;let M=0;G[1]==="start"?M=z.x:G[1]==="end"?M=z.x+k-x:M=z.x+k/2-x/2;const Z=j-M-x;Z<0?(M+=Z,c.value=-Z):c.value=0,le.left=M<0?0:M;break}}else if(K==="left"){const H=z.x-x-e.arrowSize-e.offset;if(H>=0){le.left=H;let M=0;G[1]==="start"?M=z.y:G[1]==="end"?M=z.y+D-U:M=z.y+D/2-U/2,le.top=M<0?0:M;break}}else if(K==="right"){const H=z.x+k+e.arrowSize+e.offset;if(H+x<=j){le.left=H;let M=0;G[1]==="start"?M=z.y:G[1]==="end"?M=z.y+D-U:M=z.y+D/2-U/2,le.top=M<0?0:M;break}}}return{bestPlacement:q.join("-"),bestInsetRect:le}},h=(T,z,k=10)=>{if(!ot||z===!1||!T)return;l.value=Ga(e.reference),o.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const D=s.value.offsetHeight,x=s.value.offsetWidth,{bestPlacement:U,bestInsetRect:j}=d(e.placement,l.value,o.value,r.value,x,D);i.value=U,a.value=j,u.value=!0},c=t.ref(0),w=Nt(()=>{h(e.message,e.visible)},10),O=t.ref(e.visible);t.watch(()=>e.visible,T=>{O.value=T});const p=t.computed(()=>O.value&&g.value),g=t.ref(!0),y=Nt(T=>{const z=T[0];z&&(g.value=z.isIntersecting)},10),A=new IntersectionObserver(y);t.watch([()=>e.message,()=>e.visible],([T,z])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Xa.watch(e.reference,w),A.observe(e.reference)}),t.onBeforeMount(()=>{Xa.unwatch(e.reference,w),A.unobserve(e.reference),A.disconnect()});const m=t.computed(()=>{const T={[il]:!0};return i.value.startsWith("top")?T["is-top"]=!0:i.value.startsWith("right")?T["is-right"]=!0:i.value.startsWith("bottom")?T["is-bottom"]=!0:i.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),f=t.computed(()=>{const T={};a.value.top!==null&&(T.top=`${a.value.top}px`),a.value.right!==null&&(T.right=`${a.value.right}px`),a.value.bottom!==null&&(T.bottom=`${a.value.bottom}px`),a.value.left!==null&&(T.left=`${a.value.left}px`),e.autoFit&&(T["min-width"]=`${o.value}px`);const z=document.documentElement.clientWidth||document.body.clientWidth;return T["max-width"]=`${z}px`,u.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),V=t.computed(()=>{const T=[`${il}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),R=t.computed(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),L=t.computed(()=>({[`${il}__arrow`]:!0})),N=t.computed(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,i.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="top-start"?(T.left=`${e.arrowOffset+c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(T.right=`${e.arrowOffset-c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(T.left=`${e.arrowOffset+c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(T.right=`${e.arrowOffset-c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),P=t.computed(()=>p.value&&e.closeOnClick),E=t.computed(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:p,tipRef:s,classes:m,styles:f,textClasses:V,textStyles:R,arrowClasses:L,arrowStyles:N,overlayShow:P,overlayStyle:E,onClickOverlay:()=>{O.value=!1,n.emit("update:visible",!1)}}}}),as=["innerHTML"];function os(e,n,a,l,o,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,as))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const It=De(ls,[["render",os]]);class Ja{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 sl={},rs=new Ja,gt=new Map,dn=e=>{if(e){const n=document.getElementById(e);gt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of gt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}gt.clear()}},is=e=>{e.unmount=dn;const n=document.getElementById(e.id);if(n){const a=gt.get(e.id);a?e={...sl,...a,...e}:e={...sl,...e},e.transition=!1;const l=t.createVNode(It,e);return t.render(l,n),e.id}},ss=e=>{e.unmount=dn;let n=e.id??`hinttext_${rs.get()}`;e={...sl,...e},e.id=n,gt.set(n,e);const a=document.createElement("div");a.id=e.id;const l=t.createVNode(It,e);return t.render(l,a),document.body.appendChild(a),n},us=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Be={show(e,n,a={},l=!0){us(n);const o=a.id;return o&>.has(o)?is({...a,message:n,reference:e}):(l&&dn(),ss({...a,message:n,reference:e}))},hide(e){dn(e)},install(e){e.config.globalProperties.$hintText=Be}};function cs(e,n,a,l=!1){return{inheritAttrs:!0,props:{...we,...ke},emits:["appear","disappear"],setup(o,r){const i=o.prop??r.attrs.name;Te({componentName:e,validate:!1},i);const u=Ue(),s=an();on(!1);const d=t.computed(()=>s&&u?rn(u,!1).value:null),h=e,c=t.ref(null),w=t.computed(()=>{const S={[h]:!0,[`${h}__gutter`]:d.value&&d.value.type!=="flow",[`${h}__stretch`]:o.span==="stretch",[`${h}__input--border`]:ce(o.hasBorder)};if(S[o.errorMarkClass]=!!U.value,S[o.warnMarkClass]=!!D.value,S[o.infoMarkClass]=!!z.value,typeof c.value=="function"){const W=c.value(i);S[W]=!0}else if(typeof c.value=="string"){const W=c.value;S[W]=!0}return S}),O=t.ref(null),p=t.computed(()=>{const S={};if(o.width)o.width!=="auto"&&(S.width=Ae(o.width));else{const W=s&&u?sn(u,!1):null;if(d.value&&W){if(d.value.type==="grid"){const ee=cn(W,d.value,o.span,o.offset);Object.assign(S,ee)}else if(d.value.type==="flow"){const ee=un(W,d.value,o.span,o.offset,o.width);Object.assign(S,ee)}}}if(typeof O.value=="function"){const W=O.value(i);W&&Object.assign(S,W)}else if(O.value&&typeof O.value=="object"){const W=O.value;Object.assign(S,W)}return S}),g=t.ref(null),y=t.computed({get:()=>g.value??ce(o.isRequired),set:S=>{g.value=S}}),A=()=>typeof o.label=="string"&&o.label.length>0||typeof r.slots.label=="function",m=Ee(t.toRef(o,"labelPosition"),"labelPosition",Le.Near),f=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),V=t.computed(()=>({[`${h}__main`]:!0,[`${h}__main--${f.value}`]:!0})),R=t.computed(()=>({label:!0,[`label--${f.value}`]:!0})),L=Ee(t.toRef(o,"labelWidth"),"labelWidth",Le.Near),N=t.computed(()=>L&&L.value?{width:Ae(L.value)}:{}),P=t.computed(()=>({"label--string":!0,"label--required":y.value})),E=t.computed(()=>({content:!0,[o.contentClass]:!0})),F=t.computed(()=>({...o.contentStyle})),T=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ye({setRequired(S){y.value=S},setErrorTip(S){T.errorTip=S},setErrorIcon(S){T.errorIcon=S},setWarnTip(S){T.warnTip=S},setWarnIcon(S){T.warnIcon=S},setInfoTip(S){T.infoTip=S},setInfoIcon(S){T.infoIcon=S},setCustomClassName(S){c.value=S},setCustomStyle(S){O.value=S}});const z=t.computed(()=>o.infoTip||T.infoTip),k=t.computed(()=>o.infoIcon||T.infoIcon),D=t.computed(()=>o.warnTip||T.warnTip),x=t.computed(()=>o.warnIcon||T.warnIcon),U=t.computed(()=>o.errorTip||T.errorTip),j=t.computed(()=>o.errorIcon||T.errorIcon),Q=t.computed(()=>U.value?"error":D.value?"warn":z.value?"info":""),G=()=>Q.value.length>0,J=t.computed(()=>Q.value==="error"?U.value:Q.value==="warn"?D.value:Q.value==="info"?z.value:""),le=t.computed(()=>Q.value==="error"?j.value:Q.value==="warn"?x.value:Q.value==="info"?k.value:null),q=t.computed(()=>{const S={[`${h}__tip`]:!0,[`${h}__tip--${Q.value}`]:!0,[`${h}--animate`]:!0};return Q.value==="error"&&o.errorClass?S[`${o.errorClass}`]=!0:Q.value==="warn"&&o.warnClass?S[`${o.warnClass}`]=!0:Q.value==="info"&&o.infoClass&&(S[`${o.infoClass}`]=!0),S}),I=t.computed(()=>{const S={};return m&&m.value==="top"||!A()?S["padding-left"]="0px":L&&L.value&&(S["padding-left"]=Ae(L.value)),S}),K=t.ref();let H="";t.watch([()=>o.hintVisible,()=>o.hintText,()=>o.hintType,()=>o.hintProps],([S,W,ee,ae])=>{K.value&&(S&&!pe(W)?H?a.show(K.value,W,{...ae,id:H,type:ee},!0):H=a.show(K.value,W,{...ae,type:ee},!0):a.hide(H))});let M=null;const Z=()=>{M||!K.value||(M=new IntersectionObserver(S=>{let W=!1;for(let ee of S)if(ee.intersectionRatio>0){W=!0,W&&r.emit("appear",ee);break}W||r.emit("disappear")}),M.observe(K.value))},Y=()=>{!M||!K.value||(M.unobserve(K.value),M=null)};t.watch(()=>ce(o.appearListen),S=>{S?Z():Y()}),t.onMounted(()=>{ce(o.appearListen)&&Z()}),t.onUnmounted(Y);const $=()=>{if(!A())return null;const S=[],W=r.slots?.label?.()??o.label,ee={class:P.value},ae=t.h("div",ee,[W]);if(S.push(ae),r.slots.fixedPreTip){const oe=r.slots.fixedPreTip();S.push(oe)}const te={class:R.value,style:N.value};return t.h("div",te,S)},b=()=>{const S=[];if(r.slots.prepend){const ee=r.slots.prepend();S.push(ee)}if(r.slots.default){const ee=r.slots.default();S.push(ee)}if(r.slots.append){const ee=r.slots.append();S.push(ee)}if(r.slots.fixedTip){const ee={class:[`${h}__fixed-tip`]},ae=t.h("div",ee,[r.slots.fixedTip()]);S.push(ae)}const W={ref:K,class:E.value,style:F.value};return t.h("div",W,S)},C=()=>{const S=le.value;return S?typeof S=="function"?t.h("div",{class:"fox-item__tip--icon"},[S()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(S)]):null},_=()=>{const S=J.value;return S?typeof S=="function"?t.h("div",{class:"fox-item__tip--text"},[S()]):t.h("div",{class:"fox-item__tip--text"},[S]):null},X=()=>{if(!G())return null;const S=[],W=C();W&&S.push(W);const ee=_();ee&&S.push(ee);const ae={class:q.value,style:I.value};return t.h("div",ae,S)},ne=()=>r.slots?.hide?.()??null;return()=>{const S=[],W=[],ee=$();ee&&W.push(ee);const ae=b();ae&&W.push(ae);const te={class:V.value},oe=t.h("div",te,W);S.push(oe);const ie=X();ie&&S.push(ie);const ue=ne();ue&&S.push(ue);const be={class:w.value,style:p.value,prop:o.prop};return t.h("div",be,S)}}}}const{componentName:fs,create:ds,scope:hs}=se("item"),Se=ds(cs(fs,hs,Be,!1));function ms(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(a,l){const o=Ue(),r=an();on(!1);const i=t.computed(()=>r&&o?rn(o,!1).value:null),u=e,s=t.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const h={},c=r&&o?sn(o,!1):null;if(i.value&&c)if(i.value.type==="grid"){const w=cn(c,i.value,a.span,a.offset);Object.assign(h,w)}else if(i.value.type==="flow"){const w=un(c,i.value,a.span,a.offset,a.width);Object.assign(h,w)}else return a.width&&(h.width=Ae(a.width)),h;else a.width&&(h.width=Ae(a.width));return h});return()=>{const h={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",h,l.slots.default()):t.h("div",h)}}}}const{componentName:gs,create:ps,scope:tp}=se("slot-item"),ul=ps(ms(gs));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(a,l){const o=e,r=t.computed(()=>({[o]:!0,[`${o}__stretch`]:a.span==="stretch",[`${o}__${a.align}`]:!0})),i=Ue(),u=an();on(!1);const s=t.computed(()=>{const d={};if(u&&i){const h=rn(i,!1),c=sn(i,!1);if(h.value&&c)if(h.value.type==="grid"){const w=cn(c,h.value,a.span,a.offset);Object.assign(d,w)}else if(h.value.type==="flow"){const w=un(c,h.value,a.span,a.offset,a.width);Object.assign(d,w)}else a.width&&(d.width=Ae(a.width))}else a.width&&(d.width=Ae(a.width));return d});return()=>{const d=[];if(l.slots.default){const c=l.slots.default();if(a.divide)for(let w=0;w<c.length;w++){if(w>0){const O=t.h("div",{class:{[`${o}__divide`]:!0}});d.push(O)}d.push(c[w])}else Reflect.apply([].push,d,c)}const h={class:r.value,style:s.value};return t.h("div",h,d)}}}}const{componentName:bs,create:vs,scope:np}=se("row-item"),cl=vs(ys(bs)),He=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(l=>{typeof l=="string"&&l.indexOf("data-fox")!==0&&(n[l]=e[l])}),n},Qa={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function ws(e,n,a){return{props:{...we,...ke,...Qa},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue",null,u),w=e,O=t.computed(()=>({[w]:!0,[`${w}__disabled`]:r.value,[`${w}__readonly`]:i.value})),p=k=>{c.value=k,u("update:modelValue",k),u("input",k)},g=k=>{u("change",k)};let y=de(l,"hintText"),A=t.ref(!1);const m=k=>{let x=k.target.value;h.value=!0,pe(y.value)||(A.value=!0),u("focus",x,k)},f=k=>{setTimeout(()=>{A.value&&(A.value=!1),h.value=!1},0);let x=k.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),u("blur",x,k)},V=()=>{u("clear","")},R=t.ref(!1);let L=null;const N=()=>{l.showTooltip&&R.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{R.value=!0},150))},P=()=>{L&&(clearTimeout(L),R.value=!1,L=null)},E=t.computed(()=>R.value||A.value),F=t.computed(()=>R.value?c.value:y.value),T=t.computed(()=>ze(l.unit)>0),z=t.ref();return ye({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const D={...He(o.attrs),ref:z,class:O.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:V,onChange:g,onInput:p,onFocus:m,onBlur:f,onMouseover:N,onMouseleave:P},x={};o.slots.prepend&&(x.prepend=o.slots.prepend),o.slots.append&&(x.append=o.slots.append),o.slots.prefix&&(x.prefix=o.slots.prefix),o.slots.suffix?x.suffix=o.slots.suffix:T.value&&(x.suffix=()=>[l.unit]);const U=[],j=t.h(B.ElInput,D,x);U.push(j);const Q={default:()=>U};o.slots.default&&(Q.label=o.slots.default),o.slots.default&&(Q.fixedTip=o.slots.fixedTip);const J={...$e(l,Qa),hintText:F.value,hintVisible:E.value,prop:`${l.prop}_item`};return t.h(a,J,Q)}}}}const{componentName:Ss,create:Cs,scope:Ts}=se("input-item"),fl=Cs(ws(Ss,Ts,Se));function et(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ot(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function eo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function xs(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let $s=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function ks(){const e=t.getCurrentInstance();return new $s(e.proxy)}function to(e,n,a){const l=et(e,n),o=et(e,a);if(l!==o)return!1;const r=Ot(e,n),i=Ot(e,a);return r===i}function no(e,n,a,l){if(l.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];return n.forEach(r=>{for(let i of l){const u=eo(e,i);if(Array.isArray(u)&&u.length>0){const s=no(e,r,a,u)??[];Reflect.apply([].push,o,s)}else{let s=!1;if(a==="text")s=et(e,i)===r;else if(a==="item")s=to(e,i,r);else{let d=Ot(e,i);d==null&&(d=et(e,i)),s=d===r}if(s){o.push(i);break}}}}),o}function Ds(e){return{text:e,value:e}}const lo={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},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Ns(e,n,a){return{props:{...we,...ke,...lo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(null),c=t.ref([]),w=t.computed(()=>c.value?c.value.map(C=>et(l,C)).join(" "):""),O=(b,C,_,X=!0)=>{const ne=no(l,b,C,_);if(ne===null){if(c.value===null||c.value.length===0)return;h.value=null,c.value=[],X&&(u("update:modelValue",null),u("update:text",null),u("change",null));return}let S=!0;if(ne.length!==c.value.length)S=!1;else for(let W=0;W<ne.length;W++){const ee=ne[W],ae=c.value[W];if(!to(l,ee,ae)){S=!1;break}}if(!S){c.value=ne;let W=[],ee=[],ae=[];ne.forEach(ue=>{const be=Ot(l,ue),ge=et(l,ue);W.push(be),ae.push(ge),l.valueType==="text"?ee.push(ge):l.valueType==="item"?ee.push(ue):ee.push(be)});let te,oe,ie;ce(l.multiple)?(h.value=W,te=t.toRaw(ee),oe=ae,ie=t.toRaw(ne)):(h.value=W[0]??"",te=t.toRaw(ee[0]??""),oe=ae[0]??"",ie=t.toRaw(ne[0])),X&&(u("update:modelValue",te),u("change",te,ie)),u("update:text",oe)}},p=t.ref(null),g=t.ref(null),y=t.computed(()=>g.value??p.value??[]),A=Ee(t.computed(()=>l.appearLoad),"appearLoad",Le.Near,b=>ce(b)),m=ks(),f=async(b,C)=>{if(b){const _=await m.load("select",b,C);if(_.length>0)if(typeof _[0]=="string"){let S=_.map(W=>Ds(W));p.value=S}else p.value=_;else p.value=null}};t.watch([()=>l.source,()=>l.params],([b,C])=>{g.value=null,f(b,C)},{immediate:!A.value});let V=!1;const R=()=>{V||(V=!0,f(l.source,l.params))};t.watch([()=>p.value,()=>l.modelValue],([b,C])=>{if(E()&&ce(l.multiple)){_e(C,h.value)||(h.value=C);return}O(C,l.valueType,y.value,!1),u("setValue",C)});let L=null,N=t.ref(!1);typeof l.remoteMethod=="function"&&(L=async b=>{if(b==null){g.value=null;return}N.value=!0;try{const C=await l.remoteMethod(b);C&&(g.value=C)}catch(C){g.value=null,console.error(C)}N.value=!1});let P=null;typeof l.filterMethod=="function"&&(P=async b=>{if(b==null){g.value=null;return}N.value=!0;try{const C=await l.filterMethod(b,p.value);C&&(g.value=C)}catch(C){g.value=null,console.error(C)}N.value=!1});const E=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",F=t.ref(!1),T=e,z=t.computed(()=>({[T]:!0})),k=b=>{l.allowCreate||E()&&ce(l.multiple)?(u("update:modelValue",b),u("change",b),u("update:text",b),h.value=b):O(b,"value",y.value,!0)};let D=de(l,"hintText"),x=t.ref(!1);const U=b=>{let _=b.target.value;F.value=!0,pe(D.value)||(x.value=!0),u("focus",_,b)},j=b=>{setTimeout(()=>{x.value&&(x.value=!1),F.value=!1},0);let _=b.target.value;l.maxLength&&_.length>Number(l.maxLength)&&(_=_.slice(0,Number(l.maxLength))),H.value||u("blur",_,b)},Q=()=>{u("clear","")},G=t.ref(!1);let J=null;const le=()=>{l.showTooltip&&G.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{G.value=!0},150))},q=()=>{J&&(clearTimeout(J),G.value=!1,J=null)},I=t.computed(()=>G.value||x.value),K=t.computed(()=>G.value?w.value:D.value),H=t.ref(!1),M=b=>{H.value=b,u("visible-change",b),b||u("selected")},Z=b=>{u("remove-tag",b)},Y=(b,C)=>{const _=[];return b.forEach((X,ne)=>{const S=eo(l,X);if(Array.isArray(S)&&S.length>0){const W=Y(S,C),ee=et(l,X),te={key:`${ee}_${ne}`,label:ee};_.push(t.h(B.ElOptionGroup,te,{default:()=>W}))}else{const W=Ot(l,X),ee=et(l,X),ae=xs(l,X),oe={key:`${W}_${ne}`,label:ee,disabled:ae,value:W};if(typeof C=="function")_.push(t.h(B.ElOption,oe,{default:()=>C(X)}));else if(l.optionType==="item"){const ie={class:{"fox-select-item__option-left":!0}},ue=t.h("span",ie,[W]),be={class:{"fox-select-item__option-right":!0}},ge=t.h("span",be,[ee]),nt=t.h("div",{class:{"fox-select-item__option":!0}},[ue,ge]);_.push(t.h(B.ElOption,oe,{default:()=>nt}))}else l.optionType==="value"?_.push(t.h(B.ElOption,oe,{default:()=>[W]})):_.push(t.h(B.ElOption,oe))}}),_},$=t.ref();return ye({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()}}),()=>{const C={...He(o.attrs),ref:$,class:z.value,clearable:l.clearable,multiple:l.multiple,placeholder:d.placeholder.value,disabled:r.value||i.value,modelValue:h.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:Q,onChange:k,onFocus:U,onBlur:j,onVisibleChange:M,onRemoveTag:Z};typeof L=="function"&&(C["remote-method"]=L,C.loading=N.value),typeof P=="function"&&(C["filter-method"]=P,C.loading=N.value);const _={};o.slots.prefix&&(_.prefix=o.slots.prefix),o.slots.empty&&(_.empty=o.slots.empty),o.slots.options?_.default=o.slots.options:_.default=()=>Y(y.value,o.slots.option);const X=[],ne=t.h(B.ElSelect,C,_);X.push(ne);const S={default:()=>X};o.slots.default&&(S.label=o.slots.default),o.slots.fixedTip&&(S.fixedTip=o.slots.fixedTip);const ee={...$e(l,lo),hintText:K.value,hintVisible:I.value,prop:`${l.prop??o.attrs.name}_item`,onMouseover:le,onMouseleave:q};return A.value&&(ee["appear-listen"]=!0,ee.onAppear=R),t.h(a,ee,S)}}}}const{componentName:Es,create:Vs,scope:Is}=se("select-item"),dl=Vs(Ns(Es,Is,Se));var Ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ao={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){var a=1e3,l=6e4,o=36e5,r="millisecond",i="second",u="minute",s="hour",d="day",h="week",c="month",w="quarter",O="year",p="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(k,D,x){var U=String(k);return!U||U.length>=D?k:""+Array(D+1-U.length).join(x)+k},V={s:f,z:function(k){var D=-k.utcOffset(),x=Math.abs(D),U=Math.floor(x/60),j=x%60;return(D<=0?"+":"-")+f(U,2,"0")+":"+f(j,2,"0")},m:function k(D,x){if(D.date()<x.date())return-k(x,D);var U=12*(x.year()-D.year())+(x.month()-D.month()),j=D.clone().add(U,c),Q=x-j<0,G=D.clone().add(U+(Q?-1:1),c);return+(-(U+(x-j)/(Q?j-G:G-j))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:c,y:O,w:h,d,D:p,h:s,m:u,s:i,ms:r,Q:w}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},R="en",L={};L[R]=m;var N=function(k){return k instanceof T},P=function k(D,x,U){var j;if(!D)return R;if(typeof D=="string"){var Q=D.toLowerCase();L[Q]&&(j=Q),x&&(L[Q]=x,j=Q);var G=D.split("-");if(!j&&G.length>1)return k(G[0])}else{var J=D.name;L[J]=D,j=J}return!U&&j&&(R=j),j||!U&&R},E=function(k,D){if(N(k))return k.clone();var x=typeof D=="object"?D:{};return x.date=k,x.args=arguments,new T(x)},F=V;F.l=P,F.i=N,F.w=function(k,D){return E(k,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var T=function(){function k(x){this.$L=P(x.locale,null,!0),this.parse(x)}var D=k.prototype;return D.parse=function(x){this.$d=function(U){var j=U.date,Q=U.utc;if(j===null)return new Date(NaN);if(F.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var G=j.match(y);if(G){var J=G[2]-1||0,le=(G[7]||"0").substring(0,3);return Q?new Date(Date.UTC(G[1],J,G[3]||1,G[4]||0,G[5]||0,G[6]||0,le)):new Date(G[1],J,G[3]||1,G[4]||0,G[5]||0,G[6]||0,le)}}return new Date(j)}(x),this.$x=x.x||{},this.init()},D.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},D.$utils=function(){return F},D.isValid=function(){return this.$d.toString()!==g},D.isSame=function(x,U){var j=E(x);return this.startOf(U)<=j&&j<=this.endOf(U)},D.isAfter=function(x,U){return E(x)<this.startOf(U)},D.isBefore=function(x,U){return this.endOf(U)<E(x)},D.$g=function(x,U,j){return F.u(x)?this[U]:this.set(j,x)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(x,U){var j=this,Q=!!F.u(U)||U,G=F.p(x),J=function(Y,$){var b=F.w(j.$u?Date.UTC(j.$y,$,Y):new Date(j.$y,$,Y),j);return Q?b:b.endOf(d)},le=function(Y,$){return F.w(j.toDate()[Y].apply(j.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice($)),j)},q=this.$W,I=this.$M,K=this.$D,H="set"+(this.$u?"UTC":"");switch(G){case O:return Q?J(1,0):J(31,11);case c:return Q?J(1,I):J(0,I+1);case h:var M=this.$locale().weekStart||0,Z=(q<M?q+7:q)-M;return J(Q?K-Z:K+(6-Z),I);case d:case p:return le(H+"Hours",0);case s:return le(H+"Minutes",1);case u:return le(H+"Seconds",2);case i:return le(H+"Milliseconds",3);default:return this.clone()}},D.endOf=function(x){return this.startOf(x,!1)},D.$set=function(x,U){var j,Q=F.p(x),G="set"+(this.$u?"UTC":""),J=(j={},j[d]=G+"Date",j[p]=G+"Date",j[c]=G+"Month",j[O]=G+"FullYear",j[s]=G+"Hours",j[u]=G+"Minutes",j[i]=G+"Seconds",j[r]=G+"Milliseconds",j)[Q],le=Q===d?this.$D+(U-this.$W):U;if(Q===c||Q===O){var q=this.clone().set(p,1);q.$d[J](le),q.init(),this.$d=q.set(p,Math.min(this.$D,q.daysInMonth())).$d}else J&&this.$d[J](le);return this.init(),this},D.set=function(x,U){return this.clone().$set(x,U)},D.get=function(x){return this[F.p(x)]()},D.add=function(x,U){var j,Q=this;x=Number(x);var G=F.p(U),J=function(I){var K=E(Q);return F.w(K.date(K.date()+Math.round(I*x)),Q)};if(G===c)return this.set(c,this.$M+x);if(G===O)return this.set(O,this.$y+x);if(G===d)return J(1);if(G===h)return J(7);var le=(j={},j[u]=l,j[s]=o,j[i]=a,j)[G]||1,q=this.$d.getTime()+x*le;return F.w(q,this)},D.subtract=function(x,U){return this.add(-1*x,U)},D.format=function(x){var U=this,j=this.$locale();if(!this.isValid())return j.invalidDate||g;var Q=x||"YYYY-MM-DDTHH:mm:ssZ",G=F.z(this),J=this.$H,le=this.$m,q=this.$M,I=j.weekdays,K=j.months,H=function($,b,C,_){return $&&($[b]||$(U,Q))||C[b].slice(0,_)},M=function($){return F.s(J%12||12,$,"0")},Z=j.meridiem||function($,b,C){var _=$<12?"AM":"PM";return C?_.toLowerCase():_},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:q+1,MM:F.s(q+1,2,"0"),MMM:H(j.monthsShort,q,K,3),MMMM:H(K,q),D:this.$D,DD:F.s(this.$D,2,"0"),d:String(this.$W),dd:H(j.weekdaysMin,this.$W,I,2),ddd:H(j.weekdaysShort,this.$W,I,3),dddd:I[this.$W],H:String(J),HH:F.s(J,2,"0"),h:M(1),hh:M(2),a:Z(J,le,!0),A:Z(J,le,!1),m:String(le),mm:F.s(le,2,"0"),s:String(this.$s),ss:F.s(this.$s,2,"0"),SSS:F.s(this.$ms,3,"0"),Z:G};return Q.replace(A,function($,b){return b||Y[$]||G.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(x,U,j){var Q,G=F.p(U),J=E(x),le=(J.utcOffset()-this.utcOffset())*l,q=this-J,I=F.m(this,J);return I=(Q={},Q[O]=I/12,Q[c]=I,Q[w]=I/3,Q[h]=(q-le)/6048e5,Q[d]=(q-le)/864e5,Q[s]=q/o,Q[u]=q/l,Q[i]=q/a,Q)[G]||q,j?I:F.a(I)},D.daysInMonth=function(){return this.endOf(c).$D},D.$locale=function(){return L[this.$L]},D.locale=function(x,U){if(!x)return this.$L;var j=this.clone(),Q=P(x,U,!0);return Q&&(j.$L=Q),j},D.clone=function(){return F.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},k}(),z=T.prototype;return E.prototype=z,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",d],["$M",c],["$y",O],["$D",p]].forEach(function(k){z[k[1]]=function(D){return this.$g(D,k[0],k[1])}}),E.extend=function(k,D){return k.$i||(k(D,T,E),k.$i=!0),E},E.locale=P,E.isDayjs=N,E.unix=function(k){return E(1e3*k)},E.en=L[R],E.Ls=L,E.p={},E})})(ao);var Os=ao.exports;const Ke=Xe(Os);var oo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(y){this[g]=+y}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var A=y.match(/([+-]|\d\d)/g),m=60*A[1]+(+A[2]||0);return m===0?0:A[0]==="+"?-m:m}(g)}],c=function(g){var y=u[g];return y&&(y.indexOf?y:y.s.concat(y.f))},w=function(g,y){var A,m=u.meridiem;if(m){for(var f=1;f<=24;f+=1)if(g.indexOf(m(f,0,y))>-1){A=f>12;break}}else A=g===(y?"pm":"PM");return A},O={A:[i,function(g){this.afternoon=w(g,!1)}],a:[i,function(g){this.afternoon=w(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[o,d("day")],Do:[i,function(g){var y=u.ordinal,A=g.match(/\d+/);if(this.day=A[0],y)for(var m=1;m<=31;m+=1)y(m).replace(/\[|\]/g,"")===g&&(this.day=m)}],M:[r,d("month")],MM:[o,d("month")],MMM:[i,function(g){var y=c("months"),A=(c("monthsShort")||y.map(function(m){return m.slice(0,3)})).indexOf(g)+1;if(A<1)throw new Error;this.month=A%12||A}],MMMM:[i,function(g){var y=c("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(g){this.year=s(g)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function p(g){var y,A;y=g,A=u&&u.formats;for(var m=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,F,T){var z=T&&T.toUpperCase();return F||A[T]||a[T]||A[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,D,x){return D||x.slice(1)})})).match(l),f=m.length,V=0;V<f;V+=1){var R=m[V],L=O[R],N=L&&L[0],P=L&&L[1];m[V]=P?{regex:N,parser:P}:R.replace(/^\[|\]$/g,"")}return function(E){for(var F={},T=0,z=0;T<f;T+=1){var k=m[T];if(typeof k=="string")z+=k.length;else{var D=k.regex,x=k.parser,U=E.slice(z),j=D.exec(U)[0];x.call(F,j),E=E.replace(j,"")}}return function(Q){var G=Q.afternoon;if(G!==void 0){var J=Q.hours;G?J<12&&(Q.hours+=12):J===12&&(Q.hours=0),delete Q.afternoon}}(F),F}}return function(g,y,A){A.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(s=g.parseTwoDigitYear);var m=y.prototype,f=m.parse;m.parse=function(V){var R=V.date,L=V.utc,N=V.args;this.$u=L;var P=N[1];if(typeof P=="string"){var E=N[2]===!0,F=N[3]===!0,T=E||F,z=N[2];F&&(z=N[2]),u=this.$locale(),!E&&z&&(u=A.Ls[z]),this.$d=function(U,j,Q){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*U);var G=p(j)(U),J=G.year,le=G.month,q=G.day,I=G.hours,K=G.minutes,H=G.seconds,M=G.milliseconds,Z=G.zone,Y=new Date,$=q||(J||le?1:Y.getDate()),b=J||Y.getFullYear(),C=0;J&&!le||(C=le>0?le-1:Y.getMonth());var _=I||0,X=K||0,ne=H||0,S=M||0;return Z?new Date(Date.UTC(b,C,$,_,X,ne,S+60*Z.offset*1e3)):Q?new Date(Date.UTC(b,C,$,_,X,ne,S)):new Date(b,C,$,_,X,ne,S)}catch{return new Date("")}}(R,P,L),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),T&&R!=this.format(P)&&(this.$d=new Date("")),u={}}else if(P instanceof Array)for(var k=P.length,D=1;D<=k;D+=1){N[1]=P[D-1];var x=A.apply(this,N);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}D===k&&(this.$d=new Date(""))}else f.call(this,V)}}})})(oo);var As=oo.exports;const Fs=Xe(As);var ro={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l,o){var r=l.prototype,i=r.format;o.en.ordinal=function(u){var s=["th","st","nd","rd"],d=u%100;return"["+u+(s[(d-20)%10]||s[d]||s[0])+"]"},r.format=function(u){var s=this,d=this.$locale();if(!this.isValid())return i.bind(this)(u);var h=this.$utils(),c=(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(w){switch(w){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(),w==="w"?1:2,"0");case"W":case"WW":return h.s(s.isoWeek(),w==="W"?1:2,"0");case"k":case"kk":return h.s(String(s.$H===0?24:s.$H),w==="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 w}});return i.bind(this)(c)}}})})(ro);var Bs=ro.exports;const Ms=Xe(Bs);var io={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l,o){var r=l.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},u=function(c,w,O,p,g){var y=c.name?c:c.$locale(),A=i(y[w]),m=i(y[O]),f=A||m.map(function(R){return R.slice(0,p)});if(!g)return f;var V=y.weekStart;return f.map(function(R,L){return f[(L+(V||0))%7]})},s=function(){return o.Ls[o.locale()]},d=function(c,w){return c.formats[w]||function(O){return O.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,g,y){return g||y.slice(1)})}(c.formats[w.toUpperCase()])},h=function(){var c=this;return{months:function(w){return w?w.format("MMMM"):u(c,"months")},monthsShort:function(w){return w?w.format("MMM"):u(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):u(c,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):u(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):u(c,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return d(c.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},o.localeData=function(){var c=s();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(w){return d(c,w)},meridiem:c.meridiem,ordinal:c.ordinal}},o.months=function(){return u(s(),"months")},o.monthsShort=function(){return u(s(),"monthsShort","months",3)},o.weekdays=function(c){return u(s(),"weekdays",null,null,c)},o.weekdaysShort=function(c){return u(s(),"weekdaysShort","weekdays",3,c)},o.weekdaysMin=function(c){return u(s(),"weekdaysMin","weekdays",2,c)}}})})(io);var Rs=io.exports;const Ls=Xe(Rs);var so={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){var a="week",l="year";return function(o,r,i){var u=r.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(l).add(1,l).date(d),c=i(this).endOf(a);if(h.isBefore(c))return 1}var w=i(this).startOf(l).date(d).startOf(a).subtract(1,"millisecond"),O=this.diff(w,a,!0);return O<0?i(this).startOf("week").week():Math.ceil(O)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(so);var _s=so.exports;const Ps=Xe(_s);var uo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l){l.prototype.weekYear=function(){var o=this.month(),r=this.week(),i=this.year();return r===1&&o===11?i+1:o===0&&r>=52?i-1:i}}})})(uo);var qs=uo.exports;const zs=Xe(qs);var co={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l,o){l.prototype.dayOfYear=function(r){var i=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})})(co);var js=co.exports;const Hs=Xe(js);var fo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l){l.prototype.isSameOrAfter=function(o,r){return this.isSame(o,r)||this.isAfter(o,r)}}})})(fo);var Ks=fo.exports;const Ys=Xe(Ks);var ho={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l){l.prototype.isSameOrBefore=function(o,r){return this.isSame(o,r)||this.isBefore(o,r)}}})})(ho);var Ws=ho.exports;const Us=Xe(Ws);Ke.extend(Ls),Ke.extend(Ms),Ke.extend(Fs),Ke.extend(Ps),Ke.extend(zs),Ke.extend(Hs),Ke.extend(Ys),Ke.extend(Us);const re={format(e,n){return Ke(e).format(n)},parser(e,n){return Ke(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const o=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][o]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const a=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),o=this.getNumTwoBit(e.getDate());return[a,l,o].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const l=e*(1e3*60*60*24);return a=new Date(a.getTime()+l),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(a>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let l;return typeof n=="string"?l=new Date(n).getTime():l=n,a==l},getMonthWeek:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a));let r=o.getDay(),i=o.getDate(),u=6-r;return l!==0&&(r=r==0?7:r,u=7-r),Math.ceil((i+u)/7)},getYearWeek:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),i=Math.round((o.valueOf()-r.valueOf())/864e5);let u=o.getDay(),s=6-u;return l!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),r=o.getTime();let i=o.getDay();if(l===0){const s=r-i*864e5,d=r+(6-i)*864e5,h=this.date2Str(new Date(s)),c=this.date2Str(new Date(d));return[h,c]}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)),c=this.date2Str(new Date(d));return[h,c]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const l=new Date(new Date(n).setDate(n.getDate()+a)),o=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?o>=i&&o<=r:o>=r&&o<=i},inScope4Month(e,n,a){const l=new Date(new Date(n).setMonth(n.getMonth()+a)),o=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?o>=i&&o<=r:o>=r&&o<=i}},mo={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"}},go={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Gs(e,n,a){return{props:{...we,...ke,...mo,...go},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue",null,u),w=t.computed(()=>x.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),O=t.computed(()=>x.value?"longTermKey":"normalKey"),p=$=>{if(x.value&&l.type==="daterange"){const b=[...c.value];b[0]=$,c.value=b}else c.value=$;u("update:modelValue",c.value),u("change",c.value)},g=t.computed(()=>x.value&&l.type==="daterange"?"date":l.type),y=e,A=t.computed(()=>({[`${y}`]:!0,"is-long":x.value,"is-readonly":i.value,"is-disabled":r.value}));let m=de(l,"hintText"),f=t.ref(!1);const V=$=>{let C=$.target.value;h.value=!0,pe(m.value)||(f.value=!0),u("focus",C,$)},R=$=>{setTimeout(()=>{f.value&&(f.value=!1),h.value=!1},0);let C=$.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),u("blur",C,$)},L=()=>{u("clear","")},N=$=>{u("calendar-change",$)},P=($,b,C)=>{u("panel-change",$,b,C)},E=$=>{u("visible-change",$)},F=Ee(t.computed(()=>l.longTermText),"longTermText",Le.Near),T=Ee(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",Le.Near),z=Ee(t.computed(()=>l.longTermValue),"longTermValue",Le.Near),k=Ee(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Le.Near);let D=null;const x=t.ref(ce(l.longTerm)),U=$=>{if(x.value=$,u("update:longTerm",$),$){if(D=c.value,l.type==="daterange"){const b=[];Array.isArray(z.value)?(b[0]=c.value?c.value[0]??z.value[0]:null,b[1]=z.value[1]??z.value[0]):(b[0]=c.value?c.value[0]??z.value:null,b[1]=x.value),b[0]||(b[0]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),b[1]||(b[1]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),c.value=b}else Array.isArray(z.value)?c.value=z.value[1]??z.value[0]:c.value=z.value,c.value||(c.value=l.valueFormat?re.format(new Date,l.valueFormat):new Date);u("update:modelValue",c.value)}else{if(l.type==="daterange"){const b=[];b[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(D)?b[1]=D[1]:b[1]=D,b[0]||(b[0]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),b[1]||(b[1]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),c.value=b}else c.value=D;u("update:modelValue",c.value),setTimeout(()=>{Z()},100)}},j=ce(l.isLongTerm);if(j){const $=()=>{if(x.value===!0){if(D=c.value,l.type==="daterange"){const b=[c.value[0]];Array.isArray(z.value)?b[1]=z.value[1]??z.value[0]:b[1]=x.value,b[0]||(b[0]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),b[1]||(b[1]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),c.value=b}else c.value=z.value;u("update:modelValue",c.value)}else _e(z.value,c.value)&&(x.value=!0)};$(),t.watch([()=>l.longTerm],([b])=>{x.value!==b&&$()}),t.watch([()=>c.value],([b])=>{let C=!1;if(l.type==="daterange"&&Array.isArray(b))try{let _=b[1];if(!_)return;typeof _!="string"&&l.valueFormat&&(_=re.format(_,l.valueFormat));let X=Array.isArray(z.value)?z.value[1]:z.value;(_===X||Array.isArray(k.value)&&k.value.findIndex(S=>_==S)!==-1)&&(C=!0)}catch(_){console.error(_)}x.value!==C&&(x.value=C)},{immediate:!0})}const Q=t.computed(()=>({"fox-date-item__long":!0,"is-active":h.value})),G=t.ref(),J=t.ref(),le=/^\d+$/,q=($,b)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold($,b):le.test($)&&$.length===l.flashFillThreshold,I=($,b)=>{let C;if(typeof l.flashFillFormat=="function")C=l.flashFillFormat($,b);else{const X=l.flashFillFormat??"YYYYMMDD";C=re.parser($,X)}const _=l.valueFormat??"YYYY-MM-DD";return re.format(C,_)},K=$=>$?$.endsWith("range"):!1,H=$=>{if(!$.target)return;const b=$.target.value??"";if(q(b,l.type)){const C=I(b,l.type);if(K(l.type)){const _=Array.isArray(c.value)?[...c.value]:[];_[0]=C,p(_)}else p(C)}},M=$=>{if(!$.target)return;const b=$.target.value??"";if(q(b,l.type)){const C=I(b,l.type);if(K(l.type)){const _=Array.isArray(c.value)?[...c.value]:[];_[1]=C,p(_)}else p(C)}},Z=()=>{if(l.flashFill&&G.value&&G.value.$el)if(K(l.type)){const $=G.value.$el.querySelectorAll("input.el-range-input");$[0]&&$[0].addEventListener("input",H),$[1]&&$[1].addEventListener("input",M)}else{const $=G.value.$el.querySelector("input.el-input__inner");$&&$.addEventListener("input",H)}},Y=()=>{if(l.flashFill&&G.value&&G.value.$el)if(K(l.type)){const $=G.value.$el.querySelectorAll("input.el-range-input");$[0]&&$[0].removeEventListener("input",H),$[1]&&$[1].removeEventListener("input",M)}else{const $=G.value.$el.querySelector("input.el-input__inner");$&&$.removeEventListener("input",H)}};return t.onMounted(Z),t.onBeforeUnmount(Y),ye({focus:()=>{J?.value.focus()},blur:()=>{J?.value.blur()},handleOpen:()=>{J?.value.handleOpen()},handleClose:()=>{J?.value.handleClose()}}),()=>{const b={...o.attrs,key:O.value,type:g.value,ref:J,class:A.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:w.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":p,onClear:L,onFocus:V,onBlur:R,onCalendarChange:N,onPanelChange:P,onVisibleChange:E},C={};o.slots["range-separator"]&&(C["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(C.default=o.slots.cell);const _=[],X=t.h(B.ElDatePicker,b,C);_.push(X);const ne={default:()=>_};if(o.slots.default&&(ne.label=o.slots.default),o.slots.fixedTip&&(ne.fixedTip=o.slots.fixedTip),j){if(x.value){const ae=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),te=t.h("input",{class:["fox-date-item__long-text"],value:F.value,readonly:!0}),oe={class:Q.value},ie=t.h("div",oe,{default:()=>[ae,te]});_.push(ie)}if(!i.value&&!r.value){const ae={label:T.value||F.value,disabled:i.value||r.value,modelValue:x.value,"onUpdate:modelValue":U},te=t.h(B.ElCheckbox,ae),oe=t.h("div",{class:{[`${y}__append`]:!0}},[te]);ne.append=()=>oe}}const W={...$e(l,mo,go),ref:G,class:{[`${y}__wrapper`]:!0,"has-append":j},hintText:m.value,hintVisible:f.value,prop:`${l.prop}_item`};return t.h(a,W,ne)}}}}const{componentName:Xs,create:Zs,scope:Js}=se("date-item"),hl=Zs(Gs(Xs,Js,Se)),Qs=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),ml={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}},gl={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:{}}},po=2e3;let yo=po;const eu=(e,n)=>({components:n,props:{...gl},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:l}){const o=t.reactive({zIndex:a.zIndex,showSlot:!0,closed:a.closeable}),r=t.computed(()=>({[e]:!0,round:a.round,[`fox-popup--${a.position}`]:!0,[`fox-popup--${a.position}--safebottom`]:a.position==="bottom"&&a.safeAreaInsetBottom,[a.popClass]:!0})),i=t.computed(()=>({zIndex:o.zIndex,transitionDuration:`${a.duration}s`,...a.style})),u=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),s=()=>{a.zIndex!==po&&(yo=Number(a.zIndex)),l("update:visible",!0),o.zIndex=++yo,a.destroyOnClose&&(o.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),a.destroyOnClose&&setTimeout(()=>{o.showSlot=!1},+a.duration*1e3)},h=g=>{l("click-pop",g)},c=g=>{g.stopPropagation(),l("click-close-icon",g),l("update:visible",!1)},w=g=>{l("click-overlay",g),a.closeOnClickOverlay&&l("update:visible",!1)},O=g=>{l("opend",g)},p=g=>{l("closed",g)};return t.watch(()=>a.visible,g=>{a.visible?s():d()}),t.watch(()=>a.closeable,g=>{o.closed=g}),{...t.toRefs(o),popStyle:i,transitionName:u,classes:r,onClick:h,onClickCloseIcon:c,onClickOverlay:w,onOpened:O,onClosed:p}}});let At=0;const bo="fox-overflow-hidden",vo=()=>ot?document.body:{classList:[]},tu=e=>[()=>{if(e())try{!At&&vo().classList.add(bo),At++}catch{}},()=>{if(e()&&At)try{At--,!At&&vo().classList.remove(bo)}catch{}}],nu={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:lu,create:au}=se("overlay"),ou=au({props:{...nu},emits:["click","update:visible"],setup(e,{emit:n}){const[a,l]=tu(()=>e.lockScroll),o=t.computed(()=>({[lu]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,u=>{u?a():l()}),{classes:o,style:r,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function ru(e,n,a,l,o,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const hn=De(ou,[["render",ru]]),iu=["aria-labelledby"],su=t.createElementVNode("path",{d:"M512 1024C228.43 1024 0 795.57 0 512S228.43 0 512 0s512 228.43 512 512-228.43 512-512 512zm0-945.23C273.067 78.77 78.77 273.066 78.77 512S273.066 945.23 512 945.23 945.23 750.934 945.23 512 750.934 78.77 512 78.77zM984.615 1024c-10.502 0-21.005-2.626-28.882-10.503L824.451 882.215c-15.754-15.753-15.754-39.384 0-55.138s39.385-15.754 55.139 0l131.282 131.282c15.754 15.754 15.754 39.385 0 55.138-5.251 7.877-15.754 10.503-26.257 10.503z",fill:"currentColor","fill-opacity":"0.9"},null,-1),uu=[su],cu=t.defineComponent({__name:"Search2",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},uu,14,iu))}}),fu=["aria-labelledby"],du=t.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),hu=[du],mu=t.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},hu,14,fu))}}),gu=["aria-labelledby"],pu=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=[pu],mn=t.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},yu,14,gu))}}),bu=["aria-labelledby"],vu=t.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),wu=[vu],wo=t.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},wu,14,bu))}}),Su=["aria-labelledby"],Cu=t.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Tu=[Cu],So=t.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Tu,14,Su))}}),xu=["aria-labelledby"],$u=t.createElementVNode("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0zm281.6 369.778C779.378 381.156 600.178 500.622 472.178 691.2c0 0 0 2.844-2.845 2.844-8.533 5.69-48.355 36.978-88.177-8.533-39.823-51.2-62.578-99.555-142.223-142.222-2.844 0-2.844-2.845-2.844-2.845-8.533-11.377-39.822-56.888 19.911-56.888 45.511 0 91.022 11.377 162.133 73.955 5.69 5.689 14.223 5.689 17.067 0C469.333 517.69 608.711 366.933 768 318.578c0 0 19.911-2.845 31.289 14.222 5.689 11.378 11.378 22.756-5.689 36.978z",fill:"currentColor","fill-opacity":"0.9"},null,-1),ku=[$u],Du=t.defineComponent({__name:"Checked",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ku,14,xu))}}),Nu=["aria-labelledby"],Eu=t.createElementVNode("path",{d:"M512 1024c-136.533 0-264.533-54.044-361.244-150.756C54.044 776.534 0 648.534 0 512c0-136.533 54.044-264.533 150.756-361.244C247.466 54.044 375.466 0 512 0c136.533 0 264.533 54.044 361.244 150.756C969.956 247.466 1024 375.466 1024 512s-54.044 264.533-150.756 361.244C776.534 969.956 648.534 1024 512 1024zm0-938.667c-113.778 0-221.867 45.511-301.511 125.156S85.333 398.222 85.333 512s45.511 221.867 125.156 301.511S398.222 938.667 512 938.667s221.867-45.511 301.511-125.156S938.667 625.778 938.667 512 893.156 290.133 813.51 210.489 625.778 85.333 512 85.333z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Vu=[Eu],Iu=t.defineComponent({__name:"CheckNormal",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Vu,14,Nu))}}),Ou=["aria-labelledby"],Au=t.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Fu=[Au],Bu=t.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Fu,14,Ou))}}),{componentName:Mu,create:Ru}=se("popup"),Lu=Ru(eu(Mu,{FoxOverLay:hn,Close:wo}));function _u(e,n,a,l,o,r){const i=t.resolveComponent("FoxOverLay"),u=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(u)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const it=De(Lu,[["render",_u]]),Co=39,To=64,{create:Pu,scope:qu}=se("calendar-pane"),zu=Pu({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:re.getDay(0)},endDate:{type:String,default:re.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:l,t:o}=ve.useFoxI18n(qu),r=l(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${Co}px`})),u=t.computed(()=>({height:`${To}px`})),s=JSON.parse(o("weekdays")),d=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),h=t.ref(null),c=t.ref(null),w=t.ref(null),O=t.ref(null),p=t.ref(0),g=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),y=t.computed(()=>a.btn),A=t.computed(()=>a["top-info"]),m=t.computed(()=>a["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),V=$=>$.split("-"),R=$=>re.isEqual(f.currDate[0],$),L=$=>re.isEqual(f.currDate[1],$),N=$=>f.currDate?.length>0?f.currDate?.some(b=>re.isEqual(b,$)):!1,P=($,b)=>b.curData[0]+"-"+b.curData[1]+"-"+re.getNumTwoBit(+$.day),E=($,b)=>{const C=P($,b),{type:_}=e;return $.type=="curr"?re.isEqual(f.currDate,C)||(_=="range"||_=="week")&&(R(C)||L(C))||_=="multiple"&&N(C)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(C,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,C)?`${f.dayPrefix}--disabled`:(_=="range"||_=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],C)&&re.compareDate(C,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},F=()=>{const{type:$}=e;if($=="range"&&f.chooseData.length==2||$!="range"){let b=f.chooseData.slice(0);$=="week"&&(b={weekDate:[z(f.chooseData[0]),z(f.chooseData[1])]}),n("choose",b),e.poppable&&n("update")}},T=($,b,C=!1)=>{if(E($,b)!=`${f.dayPrefix}--disabled`){const{type:_}=e;let[X,ne]=b.curData,S=[...b.curData];if(S[2]=re.getNumTwoBit(Number($.day)),S[3]=`${S[0]}-${S[1]}-${S[2]}`,S[4]=re.getWhatDay(+S[0],+S[1],+S[2]),_=="multiple")if(f.currDate?.length>0){let W;f.currDate?.forEach((ee,ae)=>{ee==S[3]&&(W=ae)}),C?f.chooseData.push([...S]):W!==void 0?(f.currDate.splice(W,1),f.chooseData.splice(W,1)):(f.currDate.push(S[3]),f.chooseData.push([...S]))}else f.currDate=[S[3]],f.chooseData=[[...S]];else if(_=="range"){let W=Object.values(f.currDate).length;W==2||W==0?f.currDate=[S[3]]:re.compareDate(f.currDate[0],S[3])?Array.isArray(f.currDate)&&f.currDate.push(S[3]):Array.isArray(f.currDate)&&f.currDate.unshift(S[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...S]]:re.compareDate(f.chooseData[0][3],S[3])?f.chooseData=[...f.chooseData,[...S]]:f.chooseData=[[...S],...f.chooseData]}else if(_=="week"){let W=re.getWeekDate(X,ne,$.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(W[0],f.propStartDate)&&W.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,W[1])&&W.splice(1,1,f.propEndDate),f.currDate=W,f.chooseData=[re.formatResultDate(W[0]),re.formatResultDate(W[1])]}else f.currDate=S[3],f.chooseData=[...S];if(!C){let W=f.chooseData;_=="week"&&(W={weekDate:[z(f.chooseData[0]),z(f.chooseData[1])]}),n("select",W),(e.isAutoBackFill||!e.poppable)&&F()}}},z=$=>{let[b,C,_]=$;return{date:$,monthWeekNum:re.getMonthWeek(b,C,_,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(b,C,_,e.firstDayOfWeek)}},k=$=>{const b=$=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let C=parseInt(b.curData[0]),_=parseInt(b.curData[1].toString().replace(/^0/,""));switch($){case"prev":_==1&&(C-=1),_=_==1?12:--_;break;case"next":_==12&&(C+=1),_=_==12?1:++_;break}return[C+"",re.getNumTwoBit(_),re.getMonthDays(String(C),String(_))+""]},D=($,b,C)=>{let{year:_,month:X}=C;return b=="prev"&&$>=7&&($-=7),Array.from(Array($),(ne,S)=>({day:String(S+1),type:b,year:_,month:X}))},x=($,b,C,_)=>{$=$-e.firstDayOfWeek;let{year:X,month:ne}=C;return b=="prev"&&$>=7&&($-=7),Array.from(Array(_),(W,ee)=>({day:String(ee+1),type:b,year:X,month:ne})).slice(_-$)},U=($,b)=>{const C=re.getMonthPreDay(+$[0],+$[1]);let _=Number($[1])-1,X=Number($[0]);_<=0&&(_=12,X+=1);const ne=re.getMonthDays(String($[0]),String($[1])),S=re.getMonthDays(X+"",_+""),W={year:$[0],month:$[1]},ee={curData:$,title:o("monthTitle",{year:W.year,month:W.month}),monthData:[...x(C,"prev",{month:String(_),year:String(X)},S),...D(ne,"curr",W)],cssHeight:0,cssScrollHeight:0},ae=ee.monthData.length>35?6:5;ee.cssHeight=Co+To*ae;let te=0;f.monthsData.length>0&&(te=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),ee.cssScrollHeight=te,b=="next"?(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${$[0]}-${$[1]}-${$[2]}`))&&f.monthsData.push(ee):!f.startData||!re.compareDate(`${$[0]}-${$[1]}-${$[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(ee):f.unLoadPrev=!0},j=()=>{let $=e.startDate?e.startDate:re.getDay(0),b=e.endDate?e.endDate:re.getDay(365);f.propStartDate=$,f.propEndDate=b,f.startData=V($),f.endData=V(b),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const C={year:Number(f.startData[0]),month:Number(f.startData[1])},_={year:Number(f.endData[0]),month:Number(f.endData[1])};let X=_.month-C.month;_.year-C.year>0&&(X=X+12*(_.year-C.year)),X<=0&&(X=1),U(f.startData,"next");let ne=1;do U(k("next"),"next");while(ne++<X);if(f.monthsNum=X,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&($&&re.compareDate(f.currDate[0],$)&&f.currDate.splice(0,1,$),b&&re.compareDate(b,f.currDate[1])&&f.currDate.splice(1,1,b),f.defaultData=[...V(f.currDate[0]),...V(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let S=[],W={};f.currDate.forEach(ee=>{$&&!re.compareDate(ee,$)&&b&&!re.compareDate(b,ee)&&(Object.hasOwnProperty.call(W,ee)||(S.push(ee),W[ee]=ee))}),f.currDate=[...S],f.defaultData=[...V(S[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[S,W,ee]=V(f.currDate[0]),ae=re.getWeekDate(S,W,ee,e.firstDayOfWeek);f.currDate=ae,$&&re.compareDate(f.currDate[0],$)&&f.currDate.splice(0,1,$),b&&re.compareDate(b,f.currDate[1])&&f.currDate.splice(1,1,b),f.defaultData=[...V(f.currDate[0]),...V(f.currDate[1])]}}else f.currDate&&($&&re.compareDate(f.currDate,$)?f.currDate=$:b&&!re.compareDate(f.currDate,b)&&(f.currDate=b),f.defaultData=[...V(f.currDate)])};ye({scrollToDate:$=>{re.compareDate($,f.propStartDate)?$=f.propStartDate:re.compareDate($,f.propEndDate)||($=f.propEndDate);let b=V($);f.monthsData.forEach((C,_)=>{if(C.title==o("monthTitle",{year:b[0],month:b[1]})&&h.value){let X=f.monthsData[_].cssScrollHeight-h.value.scrollTop;if(e.toDateAnimation){let ne=0,S=setInterval(()=>{if(ne++,h.value){let W=X/10;h.value.scrollTop=h.value.scrollTop+W}ne>=10&&(clearInterval(S),h.value&&(h.value.scrollTop=f.monthsData[_].cssScrollHeight))},40)}else h.value.scrollTop=f.monthsData[_].cssScrollHeight}})},initPosition:()=>{h?.value&&(h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let $=0,b=0;f.defaultData.length>0&&f.monthsData.forEach((X,ne)=>{X.title==o("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&($=ne),(e.type=="range"||e.type=="week")&&X.title==o("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(b=ne)}),le(f.monthsNum,$),f.currentIndex=$,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(T({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),T({day:f.defaultData[5],type:"curr"},f.monthsData[b],!0)):e.type=="week"?T({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(X=>{let ne=V(X),S=f.currentIndex;f.monthsData.forEach((W,ee)=>{W.title==o("monthTitle",{year:ne[0],month:ne[1]})&&(S=ee)}),T({day:ne[2],type:"curr"},f.monthsData[S],!0)}):T({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let C=f.monthsData[f.monthsData.length-1],_=C.cssHeight+C.cssScrollHeight;Vn(()=>{h?.value&&c?.value&&O?.value&&(p.value=h.value.clientHeight,c.value.style.height=`${_}px`,h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(_/(f.monthsNum+1))}});const le=($,b)=>{$>=3?b>0&&b<$?f.defaultRange=[b-1,b+3]:b==0?f.defaultRange=[b,b+4]:b==$&&(f.defaultRange=[b-2,b+2]):f.defaultRange=[0,$+2];let C=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=C},q=($,b)=>(e.type=="range"||e.type=="week")&&$.type=="curr"&&E($,b)=="fox-calendar__day--active",I=($,b)=>q($,b)&&R(P($,b)),K=($,b)=>f.currDate.length>=2&&L(P($,b))?q($,b):!1,H=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},M=$=>{const b=`${$.year}-${$.month}-${Number($.day)<10?"0"+$.day:$.day}`;return re.isEqual(b,re.date2Str(new Date))},Z=$=>{if(f.monthsData.length<=1)return;const b=$.target.scrollTop;let C=Math.floor(b/f.avgHeight);if(C==0)b>=f.monthsData[C+1].cssScrollHeight&&(C+=1);else if(C>0&&C<f.monthsNum-1)b>=f.monthsData[C+1].cssScrollHeight&&(C+=1),b<f.monthsData[C].cssScrollHeight&&(C-=1);else{const _=Math.round(b+p.value);_<f.monthsData[C].cssScrollHeight+f.monthsData[C].cssHeight&&b>f.monthsData[C-1].cssScrollHeight&&(C-=1),C+1<=f.monthsNum&&_>=f.monthsData[C+1].cssScrollHeight+f.monthsData[C+1].cssHeight&&(C+=1),C>=1&&b<f.monthsData[C-1].cssScrollHeight&&(C-=1)}f.currentIndex!==C&&(f.currentIndex=C,le(f.monthsNum,C)),f.yearMonthTitle=f.monthsData[C].title},Y=()=>{f.chooseData.splice(0),f.monthsData.splice(0),j()};return j(),t.watch(()=>e.defaultValue,$=>{$&&e.poppable&&Y()}),{dayTitleStyle:i,dayCellStyle:u,weeks:d,compConthsData:g,showTopBtn:y,topInfo:A,bottomInfo:m,rangeTip:H,mothsViewScroll:Z,getClass:E,isStartTip:I,isEndTip:K,chooseDay:T,isCurrDay:M,confirm:F,months:h,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:c,weeksPanel:w,viewArea:O}}}),ju={class:"fox-calendar__header"},Hu={key:0,class:"fox-calendar__header-title"},Ku={key:1,class:"fox-calendar__header-slot"},Yu={key:2,class:"fox-calendar__header-subtitle"},Wu={class:"fox-calendar__weekdays",ref:"weeksPanel"},Uu={class:"fox-calendar__panel",ref:"monthsPanel"},Gu={class:"fox-calendar__days"},Xu=["onClick"],Zu={class:"fox-calendar__day-value"},Ju={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Qu={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},ec={key:2,class:"fox-calendar__day-tips--curr"},tc={key:4,class:"fox-calendar__day-tip"},nc={key:0,class:"fox-calendar__footer"};function lc(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",ju,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Hu,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Ku,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Yu,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Wu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:u},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",Uu,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:u},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(i.title),5),t.createElementVNode("view",Gu,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.monthData,(s,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(s,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:h=>e.chooseDay(s,i)},[t.createElementVNode("view",Zu,[t.renderSlot(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[t.createTextVNode(t.toDisplayString(s.type=="curr"?s.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Ju,[t.renderSlot(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Qu,[t.renderSlot(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?(t.openBlock(),t.createElementBlock("view",ec,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(s,i)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(s,i)?(t.openBlock(),t.createElementBlock("view",tc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Xu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",nc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const ac=De(zu,[["render",lc]]),{create:oc}=se("calendar-picker"),rc=oc({components:{CalendarPane:ac,Popup:it},props:{...ml},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const l=t.computed(()=>a.btn),o=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),i=t.computed(()=>a["bottom-info"]),u=t.ref(null),s=y=>{u.value?.scrollToDate(y)},d=()=>{u.value?.initPosition()},h=t.computed(()=>{const y=["fox-calendar__popup"];return e.popClass&&y.push(e.popClass),y});t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),ye({scrollToDate:s,initPosition:d});const c=()=>{n("update:visible",!1)},w=()=>{n("close"),n("update:visible",!1)};return{popClasses:h,closePopup:()=>{w()},update:c,close:w,select:y=>{n("select",y)},choose:y=>{w(),n("choose",y)},calendarRef:u,showTopBtn:l,topInfo:o,dayInfo:r,bottomInfo:i}}});function ic(e,n,a,l,o,r){const i=t.resolveComponent("CalendarPane"),u=t.resolveComponent("Popup");return e.poppable?(t.openBlock(),t.createBlock(u,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"pop-class":e.popClasses,style:e.popStyle}),{default:t.withCtx(()=>[t.createVNode(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","pop-class","style"])):(t.openBlock(),t.createBlock(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const gn=De(rc,[["render",ic]]),pl=(e,n)=>{let a;return Je(e)?a=e:typeof e=="string"&&ze(e)>0?a=re.parser(e,n):a=new Date,a},pt=(e,n,a)=>(Je(n)||(n=new Date),re.format(n,a)),yt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,l=`${e.getDate()}`,o=re.date2Str(e),r=re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,l,o,r]},xo={...ml,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function sc(e,n,a){return{props:{...we,...ke,...xo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]);let h=de(l,"hintText"),c=t.ref(!1);const w=t.ref(!1),O=t.computed(()=>l.type==="range"),p=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),g=()=>{p.startDate!==null&&(p.startDate=null,p.endDate=null,p.startArray=[],p.endArray=[])},y=(j,Q="one",G="YYYY-MM-DD")=>{if(Qs(j)){g();return}if(O.value&&Array.isArray(j)&&j.length==2){let J,le;typeof j[0]=="string"?(J=pl(j[0],G),le=pl(j[1],G)):(J=j[0],le=j[1]);let q=yt(J),I=yt(le);(p.startDate===null||p.startDate.getTime()!==J.getTime()||p.endDate?.getTime()!==le.getTime())&&(p.startDate=J,p.startArray=q,p.endDate=le,p.endArray=I)}else{let J;typeof j=="string"?J=pl(j,G):J=j;let le=yt(J);(p.startDate===null||p.startDate.getTime()!==J.getTime())&&(p.startDate=J,p.startArray=le)}};y(l.modelValue,l.type,l.valueFormat),t.watch(()=>l.modelValue,j=>{y(j,l.type,l.valueFormat),u("setValue",j)});const A=t.computed(()=>{if(p.startDate===null)return"";if(O.value){let j=pt(l,p.startDate,l.format),Q=pt(l,p.endDate,l.format);return`${j} ${l.rangeSeparator} ${Q}`}else{let j=pt(l,p.startDate,l.format);return l.showWeek&&(j=`${j} ${p.startArray[4]}`),j}}),m=t.computed(()=>{if(p.startDate===null)return null;if(O.value){let j=re.date2Str(p.startDate),Q=re.date2Str(p.endDate??new Date);return[j,Q]}else return re.date2Str(p.startDate)}),f="fox-input-item",V=t.computed(()=>({[f]:!0,[`${f}__disabled`]:r.value})),R=Ee(t.computed(()=>l.textAlign),"textAlign"),L=t.computed(()=>({textAlign:R.value??"right"})),N=t.ref(!1),P=()=>{i.value||r.value||(N.value=!0)},E=()=>{N.value=!1},F=j=>{N.value=j},T=j=>{if(j){if(O.value&&Array.isArray(j)){let Q=j[0],G=he(Q[0]),J=he(Q[1]),le=he(Q[2]),q=new Date(G,J-1,le),I=j[1];G=he(I[0]),J=he(I[1]),le=he(I[2]);let K=new Date(G,J-1,le);if(p.startDate=q,p.startArray=yt(q),p.endDate=K,p.endArray=yt(K),l.valueFormat){let H=pt(l,q,l.valueFormat),M=pt(l,K,l.valueFormat);u("update:modelValue",[H,M],{})}else u("update:modelValue",[q,K],{})}else{let Q=j,G=he(Q[0]),J=he(Q[1]),le=he(Q[2]),q=new Date(G,J-1,le);if(p.startDate=q,p.startArray=yt(q),l.valueFormat){let I=pt(l,q,l.valueFormat);u("update:modelValue",I,{})}else u("update:modelValue",q,{})}u("change",j,{})}},z=j=>{let G=j.target.value;w.value=!0,u("focus",G,j)},k=j=>{setTimeout(()=>{w.value=!1},0);let G=j.target.value;l.maxLength&&G.length>Number(l.maxLength)&&(G=G.slice(0,Number(l.maxLength))),u("blur",G,j)},D=t.computed(()=>ze(l.unit)>0),x=j=>{g(),u("update:modelValue",null,j),u("change","",j),u("clear","")},U=t.ref();return ye({showPicker:P,hidePicker:E,focus:()=>{U?.value.focus()},blur:()=>{U?.value.blur()},select:()=>{U?.value.select()}}),()=>{const j={class:V.value,style:L.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:l.clearable,value:A.value,onClick:P,onFocus:z,onBlur:k,onClear:x},Q={};o.slots.prepend&&(Q.prepend=o.slots.prepend),o.slots.append&&(Q.append=o.slots.append),o.slots.prefix?Q.prefix=o.slots.prefix:Q.prefix=()=>t.h(B.ElIcon,{},{default:()=>t.h(xe.Calendar)}),o.slots.suffix?Q.suffix=o.slots.suffix:D.value&&(Q.suffix=()=>[l.unit]);const G=[],J=t.h(B.ElInput,j,Q);G.push(J);const le={default:()=>G};o.slots.default&&(le.label=o.slots.default),o.slots.fixedTip&&(le.fixedTip=o.slots.fixedTip);const q=xt(l,ml);q.visible=N.value,q["onUpdate:visible"]=F,q["default-value"]=m.value,q.onChoose=T;const I={};if(o.slots.btn){const Y=o.slots.btn();I.btn=()=>Y}o.slots.day&&(I.day=o.slots.day),o.slots.topInfo&&(I.topInfo=o.slots.topInfo),o.slots.bottomInfo&&(I.bottomInfo=o.slots.bottomInfo);const K=t.h(gn,q,I);le.hide=()=>[K];const M={...$e(l,xo),hintText:h.value,hintVisible:c.value,prop:`${l.prop??o.attrs.name}_item`};return t.h(a,M,le)}}}}const{componentName:uc,create:cc,scope:fc}=se("calendar-item"),yl=cc(sc(uc,fc,Se)),$o={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function dc(e,n,a){return{props:{...we,...ke,...$o},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue",null,u),w=e,O=t.computed(()=>({[w]:!0})),p=L=>{c.value=L,u("update:modelValue",L),u("change",L)};let g=de(l,"hintText"),y=t.ref(!1);const A=L=>{let P=L.target.value;h.value=!0,pe(g.value)||(y.value=!0),u("focus",P,L)},m=L=>{setTimeout(()=>{y.value&&(y.value=!1),h.value=!1},0);let P=L.target.value;l.maxLength&&P.length>Number(l.maxLength)&&(P=P.slice(0,Number(l.maxLength))),u("blur",P,L)},f=()=>{u("clear","")},V=L=>{u("visible-change",L)},R=t.ref();return ye({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()}}),()=>{const N={...o.attrs,ref:R,class:O.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":p,onClear:f,onFocus:A,onBlur:m,onVisibleChange:V},P={},E=[],F=t.h(B.ElTimePicker,N,P);E.push(F);const T={default:()=>E};o.slots.default&&(T.label=o.slots.default),o.slots.fixedTip&&(T.fixedTip=o.slots.fixedTip);const k={...$e(l,$o),hintText:g.value,hintVisible:y.value,prop:`${l.prop}_item`};return t.h(a,k,T)}}}}const{componentName:hc,create:mc,scope:gc}=se("time-item"),bl=mc(dc(hc,gc,Se)),ko={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function pc(e,n,a){return{props:{...we,...ke,...ko},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue",null,u),w=e,O=t.computed(()=>({[w]:!0})),p=R=>{c.value=R,u("update:modelValue",R),u("change",R)};let g=de(l,"hintText"),y=t.ref(!1);const A=R=>{let N=R.target.value;h.value=!0,pe(g.value)||(y.value=!0),u("focus",N,R)},m=R=>{setTimeout(()=>{y.value&&(y.value=!1),h.value=!1},0);let N=R.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),u("blur",N,R)},f=()=>{u("clear","")},V=t.ref();return ye({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const L={...o.attrs,ref:V,class:O.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":p,onClear:f,onFocus:A,onBlur:m},N={},P=[],E=t.h(B.ElTimeSelect,L,N);P.push(E);const F={default:()=>P};o.slots.default&&(F.label=o.slots.default),o.slots.fixedTip&&(F.fixedTip=o.slots.fixedTip);const z={...$e(l,ko),hintText:g.value,hintVisible:y.value,prop:`${l.prop}_item`};return t.h(a,z,F)}}}}const{componentName:yc,create:bc,scope:vc}=se("time-select-item"),vl=bc(pc(yc,vc,Se));function Do(e,n=0){let a=`${e}`,l=a.indexOf(".");if(l==-1)return a;let o=l;for(let r=a.length-1;r>=l;r--)if(a.charAt(r)!="0"){o=r;break}return o-l<n?o=l+n+1:o!=l&&(o+=1),o>a.length?a=a.padEnd(o,"0"):a=a.substring(0,o),a}function No(e,n,a=20){if(typeof n=="string"&&(n=he(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=pa(`${e}`,`${n}`);return Do(l)}else{let l=Ln(`${e}`,ya(`${n}`),20);return Do(l)}}function wc(e,n=-1,a=!1,l=3,o=","){return zt(e,n,a,l,o)}function Eo(e,n,a,l,o=!0){if(e=="")return"";if(e=ba(e),n=he(n),n==1)return e;if(l)e=No(e,n),a&&(e=="0"&&o?e=`${e}.`.padEnd(he(a)+2,"0"):e=Ln(e,1,he(a)));else{let r=-1*n;e=No(e,r)}return e}function Vo(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ce(n.minInclude),o=_n(e,n.min);if(l&&o==-1||!l&&(o==0||o==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let l=ce(n.maxInclude),o=_n(e,n.max);(l&&o==1||!l&&(o==0||o==1))&&(a.maxValid=!1)}return a}const Io={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Sc(e,n,a){return{props:{...we,...ke,...Io},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),s=t.ref(!1),d=de(l,"modelValue",null,u),h=t.ref("");t.watch([()=>d.value,()=>l.rates,()=>l.precision],([k,D,x])=>{if(pe(k)){h.value="";return}const U=Eo(k,D,x,!1);h.value!==U&&(h.value=U)},{immediate:!0});const c=t.computed(()=>{let k="";return s.value&&(k=h.value),k}),{t:w}=ve.useFoxI18n(n),O=t.computed(()=>{let k=l.placeholder??"";return!s.value&&!pe(h.value)?k=wc(h.value,l.decimalLength,l.autoPadding,l.digits,l.separator):k=w(["placeholder",k]),k}),p=e,g=t.computed(()=>({[p]:!0,[`${p}__disabled`]:r.value,[`${p}__placeholder`]:h.value.length>0})),y=Ee(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>s.value?{textAlign:"left"}:{textAlign:y.value??"right"});const A=t.ref(""),m=t.computed(()=>{let k=A.value;return pe(k)&&(k=l.errorTip??""),k}),f=t.ref(""),V=t.ref(!1),R=(k,D)=>{if(k=`${k}`,pe(k)){h.value="",d.value="",D.forEach(x=>{u(x,"")}),ce(l.showTip)&&V.value&&(V.value=!1);return}if(k.length>=2){let x=k;if(x.charAt(0)=="-"&&(x=x.substring(1)),x.length>=2&&x.charAt(0)=="0"&&x.charAt(1)!="."){t.triggerRef(h);return}}if(k!="-"){if(!ka(k)){t.triggerRef(h);return}if(l.integerLength!=-1&&Da(k)>Number(l.integerLength)){t.triggerRef(h);return}if(l.decimalLength&&l.decimalLength!=-1&&Na(k)>Number(l.decimalLength)){t.triggerRef(h);return}let x=Vo(k,l);if(x.maxValid===!1){A.value=x.message,t.triggerRef(h);return}}else if(l.min!=null&&he(l.min)>=0){t.triggerRef(h);return}f.value=k,ce(l.showTip)&&(V.value=k.length>0),h.value=k,d.value=Eo(k,l.rates,l.precision,!0),D.forEach(x=>{u(x,d.value)})},L=k=>{R(k,["update:modelValue","input"])},N=k=>{R(k,["update:modelValue","change"])},P=k=>{if(s.value=!0,ce(l.showTip)){let D=h.value;pe(D)&&(D=l.hintText),pe(D)||(f.value=D,V.value=!0)}A.value="",u("focus",d.value,k)},E=k=>{if(setTimeout(()=>{s.value=!1,ce(l.showTip)&&V.value===!0&&(V.value=!1)},0),!pe(h.value)){let D=Vo(h.value,l);if(D.minValid===!1||D.maxValid===!1){A.value=D.message;return}}u("update:modelValue",d.value,k),u("blur",d.value,k)},F=()=>{u("clear","")},T=t.computed(()=>ze(l.unit)>0),z=t.ref();return ye({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const D={...He(o.attrs),ref:z,class:g.value,type:"digit",maxlength:l.maxLength,placeholder:O.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:F,onInput:L,onChange:N,onFocus:P,onBlur:E},x={};o.slots.prepend&&(x.prepend=o.slots.prepend),o.slots.append&&(x.append=o.slots.append),o.slots.prefix&&(x.prefix=o.slots.prefix),o.slots.suffix?x.suffix=o.slots.suffix:T.value&&(x.suffix=()=>[l.unit]);const U=[],j=t.h(B.ElInput,D,x);U.push(j);const Q={default:()=>U};o.slots.default&&(Q.label=o.slots.default),o.slots.fixedTip&&(Q.fixedTip=o.slots.fixedTip);const J={...$e(l,Io),errorTip:m.value,hintText:f.value,hintVisible:V.value,hintType:"number",prop:`${l.prop}_item`};return t.h(a,J,Q)}}}}const{componentName:Cc,create:Tc,scope:xc}=se("money-item"),wl=Tc(Sc(Cc,xc,Se)),Oo={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function $c(e,n,a){return{props:{...we,...ke,...Oo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue",null,u),w=e,O=t.computed(()=>({[w]:!0,[`${w}__append`]:L.value})),p=t.computed(()=>({[`${w}__unit`]:!0})),g=P=>{c.value=P,u("update:modelValue",P),u("input",P)},y=P=>{u("change",P)};let A=de(l,"hintText"),m=t.ref(!1);const f=P=>{let F=P.target.value;h.value=!0,pe(A.value)||(m.value=!0),u("focus",F,P)},V=P=>{setTimeout(()=>{m.value&&(m.value=!1),h.value=!1},0);let F=P.target.value;l.maxLength&&F.length>Number(l.maxLength)&&(F=F.slice(0,Number(l.maxLength))),u("blur",F,P)},R=()=>{u("clear","")},L=t.computed(()=>ze(l.unit)>0),N=t.ref();return ye({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()}}),()=>{const E={...He(o.attrs),ref:N,class:O.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:R,onChange:y,onInput:g,onFocus:f,onBlur:V},F={},T=[],z=t.h(B.ElInputNumber,E,F);T.push(z);const k={default:()=>T};o.slots.default&&(k.label=o.slots.default),o.slots.fixedTip&&(k.fixedTip=o.slots.fixedTip);const x={...$e(l,Oo),hintText:A.value,hintVisible:m.value,prop:`${l.prop}_item`};if(o.slots.append)k.append=o.slots.append;else if(L.value){const j={class:p.value},Q=t.h("div",j,[l.unit]);k.append=()=>Q}return t.h(a,x,k)}}}}const{componentName:kc,create:Dc,scope:Nc}=se("input-number-item"),Sl=Dc($c(kc,Nc,Se));function Ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ec(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Vc=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l,o);const r=Fe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(a,l,o))}};function Ic(){const e=t.getCurrentInstance();return new Vc(e.proxy)}function Cl(e,n,a){const l=Ze(e,n),o=Ze(e,a);if(l!==o)return!1;const r=st(e,n),i=st(e,a);return r===i}function Ao(e,n,a,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];let r=l;for(let i=0;Array.isArray(r)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=Ao(e,u,a,l);o.push(s)}else{let s=!1;for(let d of r){if(a==="text")s=Ze(e,d)===u;else if(a==="item")s=Cl(e,d,u);else{let h=st(e,d);h==null&&(h=Ze(e,d)),s=h===u}if(s){o.push(d),r=Ec(e,d);break}}if(!s)break}}return o}function Oc(e){return{text:e,value:e}}const Fo={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Function],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ac(e,n,a){return{props:{...we,...ke,...Fo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(null),c=t.ref([]),w=t.computed(()=>c.value?c.value.map($=>Array.isArray($)?$.map(C=>Ze(l,C)).join(" "):Ze(l,$)).join(" "):""),O=(Y,$,b,C=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(h.value===Y)return;h.value=Y;const S=t.toRaw(Y);if(C){const W=Z?.value.getCheckedNodes();if(W)if(l.multiple){const ee=[];W.forEach(ae=>{const oe=(ae.pathNodes??[]).map(ie=>ie.data);ee.push(oe)}),u("update:pathNodes",ee)}else{const ae=(W[0]?.pathNodes??[]).map(te=>te.data);u("update:pathNodes",ae)}u("update:modelValue",S),u("change",S)}return}const _=Ao(l,Y,$,b);if(_===null){if(c.value.length===0||c.value===null)return;c.value=[],h.value=null,C&&(u("update:pathNodes",[]),u("update:modelValue",null),u("change",null));return}const X=_[_.length-1];if(F.value.checkStrictly!==!0&&X&&!Array.isArray(X)&&Array.isArray(X.children)&&X.children.length>0){const S=[];_.forEach(W=>{const ee=`${Ze(l,W)}`;S.push(ee)}),S.length>0&&(P.value=S.join(l.separator))}else P.value=null;let ne=!0;if(_.length!==c.value.length)ne=!1;else for(let S=0;S<_.length;S++){const W=_[S],ee=c.value[S];if(Array.isArray(W)){if(!Array.isArray(ee)||W.length!==ee.length)ne=!1;else for(let ae=0;ae<W.length;ae++)if(!Cl(l,W[ae],ee[ae])){ne=!1;break}}else Cl(l,W,ee)||(ne=!1);if(!ne)break}if(!ne){c.value=_;let S=[],W=[];_.forEach(ae=>{if(Array.isArray(ae)){let te=[],oe=[];for(let ie of ae)te.push(st(l,ie)),l.valueType==="text"?oe.push(Ze(l,ie)):l.valueType==="item"?oe.push(ie):oe.push(st(l,ie));S.push(te),W.push(oe)}else S.push(st(l,ae)),l.valueType==="text"?W.push(Ze(l,ae)):l.valueType==="item"?W.push(ae):W.push(st(l,ae))}),h.value=S;const ee=t.toRaw(W);C&&(u("update:pathNodes",_),u("update:modelValue",ee),u("change",ee))}},p=t.ref([]),g=Ee(t.computed(()=>l.appearLoad),"appearLoad",Le.Near,Y=>ce(Y)),y=Ic(),A=async(Y,$)=>{if(Y){const b=await y.load("cascader",Y,$);if(b.length>0)if(typeof b[0]=="string"){let X=b.map(ne=>Oc(ne));p.value=X}else p.value=b}};t.watch([()=>l.source,()=>l.params],async([Y,$])=>{A(Y,$)},{immediate:!(g.value||l.lazy)});let m=!1;const f=()=>{m||(m=!0,A(l.source,l.params))};t.watch([()=>p.value,()=>l.modelValue],([Y,$])=>{O($,l.valueType,Y,!1),u("setValue",$)}),l.lazy&&O(l.modelValue,"value",[],!1);let V=null,R=t.ref(!1);typeof l.remoteMethod=="function"&&(V=async Y=>{if(Y!=null){R.value=!0;try{const $=await l.remoteMethod(Y);p.value=$}catch($){console.error($)}R.value=!1}});const L=t.ref(!1),N=e,P=t.ref(null),E=t.computed(()=>({[N]:!0,"is-incomplete":P.value&&P.value.length>0})),F=t.computed(()=>{let Y={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(Y.multiple=!0),l.props&&Object.assign(Y,l.props),l.lazy&&(Y.lazy=!0,typeof l.lazyLoad=="function"?Y.lazyLoad=l.lazyLoad:Y.lazyLoad=async($,b)=>{const C=await y.load("cascader",l.source,$,!0);if($?.config?.checkStrictly!==!0&&Array.isArray(h.value)&&h.value.length===$.level){const _=$.pathLabels??[];let X=[];_.forEach(ne=>{ne&&X.push(ne)}),X.length>0&&(P.value=X.join(l.separator))}else P.value=null;b(C)}),Y}),T=Y=>{l.allowCreate?(u("update:modelValue",Y),u("change",Y),h.value=Y):O(Y,"value",p.value,!0)};let z=de(l,"hintText"),k=t.ref(!1);const D=Y=>{let b=Y.target.value;L.value=!0,pe(z.value)||(k.value=!0),u("focus",b,Y)},x=Y=>{setTimeout(()=>{k.value&&(k.value=!1),L.value=!1},0);let b=Y.target.value;l.maxLength&&b.length>Number(l.maxLength)&&(b=b.slice(0,Number(l.maxLength))),I.value||u("blur",b,Y)},U=()=>{u("clear","")},j=t.ref(!1);let Q=null;const G=()=>{l.showTooltip&&j.value===!1&&(Q&&clearTimeout(Q),Q=setTimeout(()=>{j.value=!0},150))},J=()=>{Q&&(clearTimeout(Q),j.value=!1,Q=null)},le=t.computed(()=>j.value||k.value),q=t.computed(()=>j.value?w.value:z.value),I=t.ref(!1),K=Y=>{I.value=Y,u("visible-change",Y),Y||u("selected")},H=Y=>{u("remove-tag",Y)},M=Y=>{u("expand-change",Y)},Z=t.ref();return ye({focus:()=>{Z?.value.focus()},blur:()=>{Z?.value.blur()},getCheckedNodes:()=>Z?.value.getCheckedNodes()}),()=>{const $={...o.attrs,ref:Z,class:E.value,props:F.value,clearable:l.clearable,placeholder:P.value||d.placeholder.value,disabled:r.value||i.value,options:p.value,modelValue:h.value,separator:l.separator,onClear:U,onChange:T,onFocus:D,onBlur:x,onVisibleChange:K,onRemoveTag:H,expandChange:M};typeof V=="function"&&($["remote-method"]=V,$.loading=R.value);const b={};o.slots.option&&(b.default=o.slots.option),o.slots.empty&&(b.empty=o.slots.empty);const C=[],_=t.h(B.ElCascader,$,b);C.push(_);const X={default:()=>C};o.slots.default&&(X.label=o.slots.default),o.slots.fixedTip&&(X.fixedTip=o.slots.fixedTip);const S={...$e(l,Fo),hintText:q.value,hintVisible:le.value,prop:`${l.prop??o.attrs.name}_item`,onMouseover:G,onMouseleave:J};return g.value&&!l.lazy&&(S["appear-listen"]=!0,S.onAppear=f),t.h(a,S,X)}}}}const{componentName:Fc,create:Bc,scope:Mc}=se("cascader-item"),Tl=Bc(Ac(Fc,Mc,Se)),Bo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Rc(e,n,a){return{props:{...we,...ke,...Bo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue",null,u),w=e,O=t.computed(()=>({[w]:!0})),p=N=>{c.value=N,u("update:modelValue",N),u("input",N)},g=N=>{u("change",N)},y=N=>{u("select",N)};let A=de(l,"hintText"),m=t.ref(!1);const f=N=>{let E=N.target.value;h.value=!0,pe(A.value)||(m.value=!0),u("focus",E,N)},V=N=>{setTimeout(()=>{m.value&&(m.value=!1),h.value=!1},0);let E=N.target.value;l.maxLength&&E.length>Number(l.maxLength)&&(E=E.slice(0,Number(l.maxLength))),u("blur",E,N)},R=()=>{u("clear","")},L=t.ref();return ye({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const P={...o.attrs,ref:L,class:O.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,onClear:R,onChange:g,onInput:p,onFocus:f,onBlur:V,onSelect:y},E={};o.slots.prepend&&(E.prepend=o.slots.prepend),o.slots.append&&(E.append=o.slots.append),o.slots.prefix&&(E.prefix=o.slots.prefix),o.slots.suffix&&(E.suffix=o.slots.suffix),o.slots.option&&(E.default=o.slots.option);const F=[],T=t.h(B.ElAutocomplete,P,E);F.push(T);const z={default:()=>F};o.slots.default&&(z.label=o.slots.default),o.slots.fixedTip&&(z.fixedTip=o.slots.fixedTip);const D={...$e(l,Bo),hintText:A.value,hintVisible:m.value,prop:`${l.prop}_item`};return t.h(a,D,z)}}}}const{componentName:Lc,create:_c,scope:Pc}=se("autocomplete-item"),xl=_c(Rc(Lc,Pc,Se));function qc(e,n,a,l,o){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[o]){let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],c=s.find(w=>w[l]===h);if(!c)break;i.push(c[a])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<r.length;s++){let d=n[s],h=r[s];const c=d.find(w=>w[l]===h);if(!c)break;i.push(c[a])}else{let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],c=s.find(w=>w[l]===h);if(!c)break;i.push(c[a]),s=c[o]}}return i}let zc=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function jc(){const e=t.getCurrentInstance();return new zc(e.proxy)}const Mo={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 Hc(e,n){return{props:{...Mo},setup(a,{attrs:l,slots:o}){const r=jc(),i=t.ref([]);t.watch([()=>a.source,()=>a.params],async([d,h])=>{i.value=await r.load(a.sourceType,d,h)},{immediate:!0});const u=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=qc(a.modelValue,i.value,a.textKey,a.valueKey,a.childrenKey);return d.length==0?a.emptyText??"":d.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${d[0]}`:d[0]:d.join(a.separator)}),s=a.resolveTag?t.resolveComponent(a.tag):a.tag;return()=>{const d={...l};return o.default?o.default({text:u.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===u.value?t.h(a.emptyTag??"span",{...l,class:a.emptyClass},u.value):t.h(s,d,{default:()=>u.value}):t.h(s,d,u.value)}}}}const{componentName:lp,create:Kc,scope:ap}=se("mapping"),Ft=Kc(Hc());function Yc(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,u);l=l[c][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 Wc(e,n){return{props:{...Mo},setup(a,{attrs:l,slots:o}){return()=>{const r={default:i=>{const u=Yc(i.row,i.column.property);return o.default?t.h(Ft,{...a,modelValue:u},{default:o.default}):t.h(Ft,{...a,modelValue:u})}};return t.h(B.ElTableColumn,{...l},r)}}}}const{componentName:op,create:Uc,scope:rp}=se("table-mapping-column"),$l=Uc(Wc()),Gc=Symbol.for("TableStateKey");function Ro(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,u);l=l[c][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 Xc(e,n){return{props:{},setup(a,{attrs:l}){const o=t.inject(Gc,{});return()=>{const r=o.currentRow?o.currentRow.value:null,i={default:u=>{const s=Ro(u.row,u.column.property),d=r?Ro(r,u.column.property):null,h=s===d,c={class:{"el-radio__input":!0,"is-checked":h}},w=t.h("span",c,[t.h("span",{class:{"el-radio__inner":!0}})]),O={class:{"el-radio":!0,"is-checked":h}};return t.h("label",O,[w])}};return t.h(B.ElTableColumn,{...l},i)}}}}const{componentName:ip,create:Zc,scope:sp}=se("table-radio-column"),kl=Zc(Xc()),Jc={},Qc={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"},ef=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function tf(e,n){return t.openBlock(),t.createElementBlock("svg",Qc,ef)}const nf=De(Jc,[["render",tf]]),{componentName:cp,create:lf,scope:fp}=se("table-setting"),af={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:"不固定"}},of=lf({components:{FoxPopover:B.ElPopover,FoxCheckbox:B.ElCheckbox,FoxCheckboxGroup:B.ElCheckboxGroup,FoxButton:B.ElButton,FoxIcon:B.ElIcon,DragIcon:nf,Download:xe.Download,RefreshLeft:xe.RefreshLeft},props:{...af},setup(e,{emit:n,attrs:a}){let l=[];const o=t.ref([]),r=t.computed(()=>o.value.filter(M=>M.label===""||M.type?!1:M.fixed===""||M.fixed===!0||M.fixed==="left")),i=t.computed(()=>o.value.filter(M=>M.label===""||M.type?!1:M.fixed==="right")),u=t.computed(()=>o.value.filter(M=>!(M.label===""||M.type||M.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),c=M=>M.length>1,w=(M,Z)=>{Array.isArray(M)&&Array.isArray(Z)&&M.forEach(b=>{Z.some(C=>C.prop===b.prop?(b.label=C.label,!0):!1)});const Y=[];o.value=M.map((b,C)=>(!(b.label===""||b.type)&&b.visible!==!1&&Y.push(b.prop),{...b,sortIndex:C})),u.value.length+r.value.length+i.value.length===Y.length?m.value=!0:Y.length>0&&(f.value=!0),L.value=Y},O=M=>M?M.type?M.type:M.label?M.prop:"":"",p=(M,Z)=>{if(M.length!==Z.length)return!1;const Y=M.map($=>O($));for(let $ of Z){const b=O($);if(Y.indexOf(b)===-1)return!1}return!0},g=M=>{if(!M){const Z=e.tableRef.getColumnSetting(),Y=Z.srcColumnPropertyList;l=Y.map(($,b)=>({...$,sortIndex:b})),M=Z.columnPropertyList,M&&M.length>0&&p(Y,M)||(M=Y)}w(M,l)},y=()=>{e.tableRef.setColumnSetting(o.value)},A=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=t.ref(!1),f=t.ref(!1),V=M=>{const Z=[];o.value.forEach($=>{M&&!($.label===""||$.type)&&Z.push($.prop),$.visible=M}),m.value=!1,f.value=!1,u.value.length+r.value.length+i.value.length===Z.length?m.value=!0:Z.length>0&&(f.value=!0),L.value=Z,y()},R=()=>{g(l),y()},L=t.ref([]),N=M=>{o.value.forEach(Y=>{if(Y.label===""||Y.type)return;const $=M.indexOf(Y.prop)!==-1;Y.visible=$}),m.value=!1,f.value=!1;const Z=u.value.length+r.value.length+i.value.length;M.length===Z?m.value=!0:M.length>0&&(f.value=!0),y()},P=()=>{g()};t.onMounted(()=>{setTimeout(()=>{g()},50)});const E={currentRow:null,index:null,roleType:null},F=M=>M?M.dataset&&M.dataset.role==="row"?M:M.tagName.toLowerCase()!=="body"?(M=M.parentElement,F(M)):null:null,T=M=>{const Z=M.currentTarget;Z&&Z.dataset&&(E.roleType=Z.dataset.roleType,E.index=Z.dataset.index)},z=M=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},k=M=>{const Z=M.currentTarget;M.relatedTarget;const Y=F(Z);if(!Y)return;const $=Y.dataset&&Y.dataset.roleType;E.roleType===$&&(M.preventDefault(),E.currentRow&&E.currentRow!==Y&&E.currentRow.classList.remove("is-dragover"),Y.classList.add("is-dragover"),E.currentRow=Y)},D=M=>{M.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},x=M=>{const Z=M.currentTarget,Y=F(Z);if(!Y)return;const $=Y.dataset&&Y.dataset.roleType;if(E.roleType!==$)return;M.preventDefault();const b=Number(E.index),C=Number(Y.dataset.index);if(b!==C){if(b<C){const _=o.value[b];o.value.splice(b,1),o.value.splice(C,0,_)}else{const _=o.value[b];o.value.splice(b,1),o.value.splice(C+1,0,_)}w(o.value,l),y()}},U=M=>{const Z=o.value[M];Z.fixed="left",y()},j=M=>{const Z=o.value[M];Z.fixed="right",y()},Q=M=>{const Z=o.value[M];Z.fixed=void 0,y()},G=new Map;let J=null;function le(M){const Z=document.createRange();return Z.setStart(M,0),Z.setEnd(M,M.childNodes.length),Z.getBoundingClientRect().width}return{attrs:a,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:d,isShowRightFixedTitle:h,isDraggble:c,isCheckAll:m,isIndeterminate:f,handleCheckAllChange:V,handleReset:R,checkedValue:L,handleCheckChange:N,onShow:P,onDragStart:T,onDragEnd:z,onDragOver:k,onDragLeave:D,onDrop:x,toLeftFixed:U,toRightFixed:j,toUnFixed:Q,checkboxLabelStyle:A,onMouseOverForOverflowText:(M,Z,Y)=>{const $=M.currentTarget;if($){const b=Math.floor($.offsetWidth);if(Math.floor(le($))>b){let _=G.get(Z);if(_){if(_===J)return;Be.hide(_)}_=Be.show($,Y,{type:"text",placement:"top",closeOnClick:!1}),G.set(Z,_),J=_}}},onMouseLeaveForOverflowText:(M,Z)=>{const Y=G.get(Z);Y&&(Be.hide(Y),Y===J&&(J=null))},onMouseOverForTip:(M,Z)=>{const Y=M.currentTarget;Y&&(J&&Be.hide(J),J=Be.show(Y,Z,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:M=>{J&&(Be.hide(J),J=null)}}}}),rf={class:"fox-table-setting"},sf={class:"fox-table-setting__header"},uf={class:"fox-table-setting__body"},cf={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},ff={key:0,class:"fox-table-setting__body-title"},df=["data-index","draggable"],hf=["onMouseover","onMouseleave"],mf={class:"tools-item"},gf={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},pf={key:0,class:"fox-table-setting__body-title"},yf=["data-index","draggable"],bf=["onMouseover","onMouseleave"],vf={class:"tools-item"},wf={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Sf={key:0,class:"fox-table-setting__body-title"},Cf=["data-index","draggable"],Tf=["onMouseover","onMouseleave"],xf={class:"tools-item"};function $f(e,n,a,l,o,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),d=t.resolveComponent("RefreshLeft"),h=t.resolveComponent("FoxIcon"),c=t.resolveComponent("Download"),w=t.resolveComponent("fox-checkbox"),O=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",rf,[t.createElementVNode("div",sf,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=g=>e.isCheckAll=g),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",uf,[t.createVNode(O,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=g=>e.checkedValue=g),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",cf,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",ff,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,g=>(t.openBlock(),t.createElementBlock("div",{key:g.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":g.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[6]||(n[6]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[7]||(n[7]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[8]||(n[8]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[9]||(n[9]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,g.prop,g.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,hf)]),_:2},1032,["label"]),t.createElementVNode("div",mf,[t.createVNode(h,{onClick:y=>e.toUnFixed(g.sortIndex),onMouseover:n[1]||(n[1]=y=>e.onMouseOverForTip(y,e.unFixedText)),onMouseleave:n[2]||(n[2]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:y=>e.toRightFixed(g.sortIndex),onMouseover:n[3]||(n[3]=y=>e.onMouseOverForTip(y,e.fixedRightText)),onMouseleave:n[4]||(n[4]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,df))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",gf,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",pf,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,g=>(t.openBlock(),t.createElementBlock("div",{key:g.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":g.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[15]||(n[15]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[16]||(n[16]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[17]||(n[17]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[18]||(n[18]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,g.prop,g.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,bf)]),_:2},1032,["label"]),t.createElementVNode("div",vf,[t.createVNode(h,{onClick:y=>e.toLeftFixed(g.sortIndex),onMouseover:n[10]||(n[10]=y=>e.onMouseOverForTip(y,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=y=>e.onMouseLeaveForTip(y)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:y=>e.toRightFixed(g.sortIndex),onMouseover:n[12]||(n[12]=y=>e.onMouseOverForTip(y,e.fixedRightText)),onMouseleave:n[13]||(n[13]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,yf))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",wf,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Sf,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,g=>(t.openBlock(),t.createElementBlock("div",{key:g.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":g.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[24]||(n[24]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[25]||(n[25]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[26]||(n[26]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[27]||(n[27]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(w,{class:"checkbox-item",label:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,g.prop,g.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,Tf)]),_:2},1032,["label"]),t.createElementVNode("div",xf,[t.createVNode(h,{onClick:y=>e.toUnFixed(g.sortIndex),onMouseover:n[19]||(n[19]=y=>e.onMouseOverForTip(y,e.unFixedText)),onMouseleave:n[20]||(n[20]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:y=>e.toLeftFixed(g.sortIndex),onMouseover:n[21]||(n[21]=y=>e.onMouseOverForTip(y,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=y=>e.onMouseLeaveForTip(y)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,Cf))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const pn=De(of,[["render",$f]]);let kf=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o,r,i,u){if(Array.isArray(a)){let d=(l-1)*o,h=d+o;h>a.length&&(h=a.length);const c=a.slice(d,h);return{totalSize:a.length,page:c}}if(typeof a=="function")return await Reflect.apply(a,null,[l,o,r,i,u]);const s=Fe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Re(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[a,l,o,r,i,u]))}};function Df(){const e=t.getCurrentInstance();return new kf(e.proxy)}let Nf=class{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const l=Fe(this.proxy,"tableSetting");return typeof l=="function"&&(a=await Reflect.apply(l,null,["load",n])),a}save(n,a){const l=Fe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,a])}remove(n){const a=Fe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}};function Ef(){const e=t.getCurrentInstance();return new Nf(e.proxy)}const Vf=Symbol.for("TableStateKey"),Lo={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"}},_o={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}},Dl={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:"不固定"}},If={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Of(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,u);l=l[c][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 Nl(e,n){return e.filter(l=>{for(let o in n){const r=n[o],i=Of(l,o);if(r!==i)return!1}return!0})}function Af(e,n,a){return{inheritAttrs:!1,props:{...we,...ke,...Lo,..._o,...Dl,...If},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,o){const{locale:r}=ve.useFoxI18n(n),{emitEvent:i}=Te({componentName:e,validateHandler:{getValue(...te){return L.value}}},l.prop??o.attrs.name),u=e,s=t.computed(()=>({[u]:!0})),d=t.computed(()=>({[`${u}__setting`]:!0})),h=t.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${l.footerAlign}`]:!0})),c=t.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${l.paginationAlign}`]:!0})),w=t.shallowRef({}),O=t.computed(()=>({...w.value,...l.params??{},...l.baseParams??{}})),p=t.ref(l.infiniteLoad===!0?0:l.pageIndex),g=t.ref(l.pageSize),y=ce(l.infiniteLoad);y||(t.watch(()=>l.pageIndex,te=>{p.value=te}),t.watch(()=>l.pageSize,te=>{g.value=te}),t.watch([p,g],([te,oe],[ie,ue])=>{oe!==ue&&(p.value=1,te=1),F(l.data,te,oe,O.value)}));const A=()=>Array.isArray(l.data)?!0:ce(l.autoLoad);A()&&t.watch([()=>l.data,O],async([te,oe],[ie,ue])=>{A()&&(te!==ie&&(P=!0),!(!Array.isArray(te)&&_e(te,ie)&&_e(oe,ue))&&(y?(p.value=0,V.value=!0,L.value=[],z()):p.value===1?F(te,p.value,g.value,oe):p.value=1))},{deep:!0});const m=te=>{p.value=te,i("page-index-change",te)},f=te=>{g.value=te,i("page-size-change",te)},V=t.ref(!0),R=t.ref(0),L=t.ref(),N=Df();let P=!0;const E=Ee(t.computed(()=>l.lazyLoad),"lazyLoad",Le.Near,te=>ce(te)),F=async(te,oe,ie,ue,be)=>{P=!1;try{if(be===!0){if(!V.value)return!1;const ge=await N.load("table",te,oe,ie,ue,P,r.value);return R.value=ge.totalSize,!ge.page||!Array.isArray(ge.page)||(Reflect.apply([].push,L.value,ge.page),setTimeout(()=>{i("loaded-data")},250),(L.value?.length??0)>=R.value)||ge.page.length<ie?(V.value=!1,!1):!0}else{const ge=await N.load("table",te,oe,ie,ue,P,r.value);return R.value=ge.totalSize,L.value=ge.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ge){console.error("[FoxUI] Load Table Data Fail",ge),R.value=0,L.value=[]}return!1};let T=!1;const z=async()=>{if(!T){if(T=!0,!V.value){T=!1;return}p.value+=1,await F(l.data,p.value,g.value,O.value,!0),T=!1}},k=(te={},oe=!1)=>new Promise(async ie=>{w.value=t.toRaw(te??{}),oe||(p.value=l.pageIndex??1),y===!0?(p.value=0,L.value=[],V.value=!0,await z()):await F(l.data,p.value,g.value,O.value),ie()}),D=()=>{R.value=0,L.value=[],y===!0&&(p.value=0,V.value=!0)};let x=!1;const U=()=>{x||(x=!0,k())},j=t.ref(null);if(y===!0){let te=null;const oe=()=>{j.value&&(te=new IntersectionObserver(ue=>{let be=!1;for(let ge of ue)if(ge.intersectionRatio>0){be=!0;break}be&&z()}),te.observe(j.value))},ie=()=>{!te||!j.value||(te.unobserve(j.value),te=null)};t.onMounted(oe),t.onBeforeUnmount(ie)}A()&&!E.value&&k();const Q=t.ref(null);t.provide(Vf,{currentRow:Q});const G=(te,oe)=>{Q.value=te,i("current-change",te,oe)},J=(te,oe,ie)=>{i("row-click",te,oe,ie),ce(l.rowClickSelectable)===!0&&ae?.value.toggleRowSelection(te)},le=[],q=(te,oe)=>{if(i("expand-change",te,oe),ce(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ie=le.length;le.splice(0,ie)}else{le.forEach(ue=>{ue!==te&&ae?.value.toggleRowExpansion(ue,!1)});const ie=le.length;le.splice(0,ie,te)}},I=o.attrs.id??l.prop??o.attrs.name,K=Ef(),H=t.ref([]);let M=[];const Z=()=>({srcColumnPropertyList:M.map(oe=>({...oe})),columnPropertyList:H.value}),Y=te=>{H.value=[...te],b()},$=async()=>{const te=await K.load(I);te&&(H.value=te)},b=()=>{K.save(I,H.value)},C=()=>{K.remove(I)};$();const _=te=>te?te.type?te.type:te.label?te.prop:"":"",X=t.computed(()=>{if(typeof o.slots.default=="function"){const te=o.slots.default(),oe=new Map;if(M=[],te.forEach(ie=>{const ue=ie;if(!ue.props)return;const be=_(ue.props);oe.set(be,ie);const ge={label:"",prop:""};Object.assign(ge,ue.props),M.push(ge)}),H.value.length===M.length){const ie=[];for(let ue of H.value){const be=_(ue),ge=oe.get(be);if(!ge)return te;if(ue.visible===!1)continue;const nt=ge;nt.props.fixed=ue.fixed,ie.push(nt)}return ie}return te}return[]}),ne=t.shallowRef(new Map),S=({column:te,rowIndex:oe})=>{const ie=`${oe}_${te.property}`;return ne.value.get(ie)??""},W=te=>typeof te=="function"?oe=>{const ie=[];let ue=S(oe);return ue&&ie.push(ue),ue=te(oe),ue&&ie.push(ue),ie.length===0?"":ie.join(" ")}:S,ee=(te,oe,ie)=>{const ue=`${te}_${oe}`;ie?ne.value.set(ue,ie):ne.value.delete(ue),t.triggerRef(ne)},ae=t.ref();return ye({clearSelection:()=>ae?.value.clearSelection(),getSelectionRows:()=>ae?.value.getSelectionRows(),toggleRowSelection:(te,oe)=>{ae?.value.toggleRowSelection(te,oe)},toggleRowSelectionByProp:(te,oe)=>{if(!L.value)return;const ie=Nl(L.value,te);ie.length!==0&&ie.forEach(ue=>{ae?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{ae?.value.toggleAllSelection()},toggleRowExpansion:(te,oe)=>{ae?.value.toggleRowExpansion(te,oe)},toggleRowExpansionByProp:(te,oe)=>{if(!L.value)return;const ie=Nl(L.value,te);ie.length!==0&&ie.forEach(ue=>{ae?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:te=>{ae?.value.setCurrentRow(te)},setCurrentRowByProp:te=>{if(!L.value)return;const oe=Nl(L.value,te);oe.length!==0&&ae?.value.setCurrentRow(oe[0])},getCurrentRow:()=>Q.value,clearSort:()=>{ae?.value.clearSort()},clearFilter:te=>{ae?.value.clearFilter(te)},doLayout:()=>{ae?.value.doLayout()},sort:(te,oe)=>{ae?.value.sort(te,oe)},scrollTo:(te,oe)=>{ae?.value.scrollTo(te,oe)},setScrollTop:te=>{ae?.value.setScrollTop(te)},setScrollLeft:te=>{ae?.value.setScrollLeft(te)},loadData:k,clearData:D,getData(){return L.value},getTotalSize(){return R.value},getPageIndex(){return p.value},getPageSize(){return g.value},getColumnSetting:Z,setColumnSetting:Y,removeColumnSetting:C,setCellClassName:ee}),()=>{const oe={...He(o.attrs),onCurrentChange:G,onRowClick:J,onExpandChange:q,data:L.value,ref:ae,class:s.value,"cell-class-name":W(l.cellClassName)},ie={};if(o.slots.default&&(ie.default=()=>X.value),o.slots.append&&(ie.append=()=>o.slots.append),o.slots.empty&&(ie.empty=()=>o.slots.empty),y===!0){const qe=[];if(V.value){const _t=t.h(xe.Loading,{class:`${u}__infinite-icon`});qe.push(_t);const ca=t.h("span",{class:`${u}__infinite-text`},[l.loadText]);qe.push(ca)}else{const _t=t.h("span",{class:`${u}__infinite-text`},[l.loadMoreText]);qe.push(_t)}const ft={ref:j,class:`${u}__infinite`},ua=t.h("div",ft,qe);ie.append=()=>ua}const ue=t.h(B.ElTable,oe,ie),be=[];if(be.push(ue),!y){let qe=null;if(typeof o.slots.pagination=="function")qe=o.slots.pagination();else if(l.showPagination){const ft={class:c.value,total:R.value,pageSize:g.value,"onUpdate:pageSize":f,pageSizes:l.pageSizes,currentPage:p.value,"onUpdate:currentPage":m,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};qe=t.h(B.ElPagination,ft)}if(l.showSetting){const ft=[];qe&&ft.push(qe);const ua=t.h(B.ElIcon,{class:d.value},{default:()=>t.h(xe.Setting)}),_t=xt(l,Dl),ca=t.h(pn,{..._t,tableRef:{getColumnSetting:Z,setColumnSetting:Y,removeColumnSetting:C}},{default:()=>ua});ft.push(ca);const Xg=t.h("div",{class:h.value},ft);be.push(Xg)}else qe&&be.push(qe)}const ge={default:()=>be},Lt={...$e(l,Lo,_o,Dl),prop:`${l.prop}_item`};return Lt.contentClass=`${u}__wrap`,Lt.errorMarkClass="is-table-error",E.value&&A()&&(Lt["appear-listen"]=!0,Lt.onAppear=U),t.h(a,Lt,ge)}}}}const{componentName:Ff,create:Bf,scope:Mf}=se("table-item"),El=Bf(Af(Ff,Mf,Se));function bt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Bt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Rf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Lf=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function _f(){const e=t.getCurrentInstance();return new Lf(e.proxy)}function Po(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const l=bt(e,n),o=bt(e,a);if(l!==o)return!1;const r=Bt(e,n),i=Bt(e,a);return r===i}function Pf(e,n,a,l){if(l.length==0||n===""||n===null||n===void 0)return null;let o=null;for(let r of l){let i=!1;if(a==="text")i=bt(e,r)===n;else if(a==="item")i=Po(e,r,n);else{let u=Bt(e,r);u==null&&(u=bt(e,r)),i=u===n}if(i){o=r;break}}return o}function qf(e){return{text:e,value:e}}function zf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const qo={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"},appearLoad:{type:[Boolean,String],default:!1}};function jf(e,n,a){return{inheritAttrs:!0,props:{...we,...ke,...qo},emits:["change","update:modelValue","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),s=t.ref(null),d=t.ref(null),h=(N,P,E,F=!0)=>{const T=Pf(l,N,P,E);if(T===null){if(d.value===null)return;d.value=null,s.value=null,F&&(u("update:modelValue",null),u("change",null));return}if(!Po(l,T,d.value)){s.value=N;const k=t.toRaw(T);d.value=k;let D=null;l.valueType==="text"?D=bt(l,k):l.valueType==="item"?D=k:D=Bt(l,k),F&&(u("update:modelValue",D),u("change",D))}},c=t.ref([]),w=Ee(t.computed(()=>l.appearLoad),"appearLoad",Le.Near,N=>ce(N)),O=_f(),p=async(N,P)=>{if(N){const E=await O.load("radio",N,P);if(E.length>0)if(typeof E[0]=="string"){let z=E.map(k=>qf(k));c.value=z}else c.value=E}};t.watch([()=>l.source,()=>l.params],async([N,P])=>{p(N,P)},{immediate:!w.value});let g=!1;const y=()=>{g||(g=!0,p(l.source,l.params))};t.watch([()=>c.value,()=>l.modelValue],([N,P])=>{h(P,l.valueType,N,!1),u("setValue",P)});const A=e,m=t.computed(()=>({[A]:!0,[`is-${l.direction}`]:!0})),f=N=>{h(N,"value",c.value,!0)};let V=de(l,"hintText"),R=de(l,"hintVisible");const L=(N,P)=>{const E=[];return N.forEach((F,T)=>{const z=Bt(l,F),k=bt(l,F);let D=Rf(l,F);r.value===!0&&(D=r.value),i.value===!0&&(D=i.value);const x=zf(l,F,T)??{},U=`${z}_${T}`,j={...x,key:U,label:z,size:l.size,border:ce(l.border)};D&&(j.disabled=D),l.itemType==="button"?E.push(t.h(B.ElRadioButton,j,{default:()=>[k]})):typeof P=="function"?E.push(t.h(B.ElRadio,j,{default:()=>P(F)})):E.push(t.h(B.ElRadio,j,{default:()=>[k]}))}),E};return()=>{const P={...He(o.attrs),class:m.value,disabled:r.value||i.value,modelValue:s.value,"text-color":l.textColor,fill:l.fill,onChange:f},E=[],F={};o.slots.options?F.default=o.slots.options:F.default=()=>L(c.value,o.slots.text);const T=t.h(B.ElRadioGroup,P,F);E.push(T);const z={default:()=>E};o.slots.default&&(z.label=o.slots.default),o.slots.fixedTip&&(z.fixedTip=o.slots.fixedTip);const D={...$e(l,qo),hintText:V.value,hintVisible:R.value,prop:`${l.prop??o.attrs.name}_item`};return w.value&&(D["appear-listen"]=!0,D.onAppear=y),t.h(a,D,z)}}}}const{componentName:Hf,create:Kf,scope:Yf}=se("radio-item"),Vl=Kf(jf(Hf,Yf,Se));function vt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function wt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Wf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Uf=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function Gf(){const e=t.getCurrentInstance();return new Uf(e.proxy)}function zo(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const l=vt(e,n),o=vt(e,a);if(l!==o)return!1;const r=wt(e,n),i=wt(e,a);return r===i}function Xf(e,n,a,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];return n.forEach(r=>{for(let i of l){let u=!1;if(a==="text")u=vt(e,i)===r;else if(a==="item")u=zo(e,i,r);else{let s=wt(e,i);s==null&&(s=vt(e,i)),u=s===r}if(u){o.push(i);break}}}),o}function Zf(e){return{text:e,value:e}}function Jf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const jo={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"},appearLoad:{type:[Boolean,String],default:!1}};function Qf(e,n,a){return{inheritAttrs:!0,props:{...we,...ke,...jo},emits:["change","update:modelValue","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),s=t.ref([]),d=t.ref([]),h=(N,P,E,F=!0)=>{const T=Xf(l,N,P,E);if(T===null){if(d.value===null||d.value.length===0)return;s.value=[],d.value=[],F&&(u("update:modelValue",[]),u("change",[]));return}let z=!0;if(T.length!==d.value.length)z=!1;else for(let k=0;k<T.length;k++){const D=T[k],x=d.value[k];if(!zo(l,D,x)){z=!1;break}}if(!z){d.value=T;let k=[],D=[];T.forEach(U=>{k.push(wt(l,U)),l.valueType==="text"?D.push(vt(l,U)):l.valueType==="item"?D.push(U):D.push(wt(l,U))}),s.value=k;const x=t.toRaw(D);F&&(u("update:modelValue",x),u("change",x))}},c=t.ref([]),w=Ee(t.computed(()=>l.appearLoad),"appearLoad",Le.Near,N=>ce(N)),O=Gf(),p=async(N,P)=>{if(N){const E=await O.load("checkbox",N,P);if(E.length>0)if(typeof E[0]=="string"){let z=E.map(k=>Zf(k));c.value=z}else c.value=E}};t.watch([()=>l.source,()=>l.params],async([N,P])=>{p(N,P)},{immediate:!w.value});let g=!1;const y=()=>{g||(g=!0,p(l.source,l.params))};t.watch([()=>c.value,()=>l.modelValue],([N,P])=>{h(P,l.valueType,N,!1),u("setValue",P)});const A=e,m=t.computed(()=>({[A]:!0,[`is-${l.direction}`]:!0})),f=N=>{h(N,"value",c.value,!0)};let V=de(l,"hintText"),R=de(l,"hintVisible");const L=(N,P)=>{const E=[];return N.forEach((F,T)=>{const z=wt(l,F),k=vt(l,F);let D=Wf(l,F);r.value===!0&&(D=r.value),i.value===!0&&(D=i.value);const x=Jf(l,F,T)??{},U=`${z}_${T}`,j={...x,key:U,class:l.itemClass,label:z,size:l.size,border:ce(l.border)};D&&(j.disabled=D),l.itemType==="button"?E.push(t.h(B.ElCheckboxButton,j,{default:()=>[k]})):typeof P=="function"?E.push(t.h(B.ElCheckbox,j,{default:()=>P(F)})):E.push(t.h(B.ElCheckbox,j,{default:()=>[k]}))}),E};return()=>{const P={...He(o.attrs),class:m.value,disabled:r.value||i.value,modelValue:s.value,"text-color":l.textColor,fill:l.fill,max:he(l.max),min:he(l.min),onChange:f},E=[],F={};o.slots.options?F.default=o.slots.options:F.default=()=>L(c.value,o.slots.text);const T=t.h(B.ElCheckboxGroup,P,F);E.push(T);const z={default:()=>E};o.slots.default&&(z.label=o.slots.default),o.slots.fixedTip&&(z.fixedTip=o.slots.fixedTip);const D={...$e(l,jo),hintText:V.value,hintVisible:R.value,prop:`${l.prop??o.attrs.name}_item`};return w.value&&(D["appear-listen"]=!0,D.onAppear=y),t.h(a,D,z)}}}}const{componentName:ed,create:td,scope:nd}=se("checkbox-item"),Il=td(Qf(ed,nd,Se)),Ho={modelValue:{type:[Number,String],required:!1}};function ld(e,n,a){return{props:{...we,...ke,...Ho},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),s=de(l,"modelValue",g=>he(g),u),d=e,h=t.computed(()=>({[d]:!0})),c=g=>{u("update:modelValue",g),u("change",g)};let w=de(l,"hintText"),O=t.ref(!1);const p=t.ref();return ye({}),()=>{const y={...He(o.attrs),ref:p,class:h.value,readonly:i.value||r.value,modelValue:s.value,onChange:c},A={},m=[],f=t.h(B.ElRate,y,A);m.push(f);const V={default:()=>m};o.slots.default&&(V.label=o.slots.default),o.slots.fixedTip&&(V.fixedTip=o.slots.fixedTip);const L={...$e(l,Ho),hintText:w.value,hintVisible:O.value,prop:`${l.prop}_item`};return t.h(a,L,V)}}}}const{componentName:ad,create:od,scope:rd}=se("rate-item"),Ol=od(ld(ad,rd,Se)),Ko={modelValue:{type:[Boolean,String,Number],required:!1}};function id(e,n,a){return{props:{...we,...ke,...Ko},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),s=de(l,"modelValue",null,u),d=e,h=t.computed(()=>({[d]:!0})),c=g=>{u("update:modelValue",g),u("change",g)};let w=de(l,"hintText"),O=de(l,"hintVisible");const p=t.ref();return ye({}),()=>{const y={...He(o.attrs),ref:p,class:h.value,readonly:i.value,disabled:r.value,modelValue:s.value,onChange:c},A={},m=[],f=t.h(B.ElSwitch,y,A);m.push(f);const V={default:()=>m};o.slots.default&&(V.label=o.slots.default),o.slots.fixedTip&&(V.fixedTip=o.slots.fixedTip);const L={...$e(l,Ko),hintText:w.value,hintVisible:O.value,prop:`${l.prop}_item`};return t.h(a,L,V)}}}}const{componentName:sd,create:ud,scope:cd}=se("switch-item"),Al=ud(id(sd,cd,Se)),Yo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function fd(e,n,a){return{props:{...we,...ke,...Yo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),u=t.ref(!1),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),d=de(l,"modelValue",null,s),h=e,c=t.computed(()=>({[h]:!0})),w=R=>{s("update:modelValue",R),s("change",R)};let O=de(l,"hintText"),p=t.ref(!1);const g=R=>{let N=R.target.value;u.value=!0,pe(O.value)||(p.value=!0),s("focus",N,R)},y=R=>{setTimeout(()=>{p.value&&(p.value=!1),u.value=!1},0);let N=R.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),m.value||s("blur",N,R)},A=()=>{s("clear","")},m=t.ref(!1),f=R=>{m.value=R,s("visible-change",R),R||s("selected")},V=t.ref();return ye({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()}}),()=>{const L={...He(o.attrs),ref:V,class:c.value,disabled:r.value||i.value,modelValue:d.value,"onUpdate:modelValue":w,onClear:A,onFocus:g,onBlur:y,onVisibleChange:f},N={};o.slots.option&&(N.default=o.slots.option);const P=[],E=t.h(B.ElTreeSelect,L,N);P.push(E);const F={default:()=>P};o.slots.default&&(F.label=o.slots.default),o.slots.fixedTip&&(F.fixedTip=o.slots.fixedTip);const z={...$e(l,Yo),hintText:O.value,hintVisible:p.value,prop:`${l.prop}_item`};return t.h(a,z,F)}}}}const{componentName:dd,create:hd,scope:md}=se("tree-select-item"),Fl=hd(fd(dd,md,Se));class gd{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const l=Fe(this.proxy,"tableSetting");return typeof l=="function"&&(a=await Reflect.apply(l,null,["load",n])),a}save(n,a){const l=Fe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,a])}remove(n){const a=Fe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}}function pd(){const e=t.getCurrentInstance();return new gd(e.proxy)}const yd={},bd={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},vd=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function wd(e,n){return t.openBlock(),t.createElementBlock("svg",bd,vd)}const Sd=De(yd,[["render",wd]]),{componentName:hp,create:Cd,scope:mp}=se("group-setting"),Td={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},xd=Cd({components:{FoxPopover:B.ElPopover,FoxCheckbox:B.ElCheckbox,FoxCheckboxGroup:B.ElCheckboxGroup,FoxButton:B.ElButton,FoxIcon:B.ElIcon,DragIcon:Sd,Download:xe.Download,RefreshLeft:xe.RefreshLeft},props:{...Td},emits:["change"],setup(e,{emit:n,attrs:a,expose:l}){let o=null;const r=t.ref([]),i=pd(),u=q=>q.length>1,s=()=>{const q=[],I=[...r.value];r.value=I.map((H,M)=>(H.visible!==!1&&q.push(H.prop),{...H,sortIndex:M})),r.value.length===q.length?g.value=!0:q.length>0&&(y.value=!0),f.value=q},d=q=>{let I=null;if(typeof q=="string")I=document.querySelectorAll(`.fox-group[prop="${q}"] > div > .fox-item[prop]`);else if(q&&typeof q=="object"){const H=q.$el??q;typeof H.querySelectorAll=="function"&&(I=H.querySelectorAll(".fox-item[prop]"))}if(!I)return[];const K=[];return I.forEach(H=>{const M=H.querySelector(".label--string");let Z="";M&&(Z=M.textContent??"");const Y=H.getAttribute("prop")??"",b=window.getComputedStyle(H,null).getPropertyValue("display");K.push({label:Z,prop:Y,sortIndex:0,visible:b!=="none"})}),K},h=()=>{if(!o){const q=d(e.groupRef??e.groupProp);if(q.length===0)return!1;o=q}return!0},c=async(q=!1)=>{const I=await i.load(e.groupProp),K=H=>{if(!H||!o)return;const M=o.map(Z=>({...Z}));Array.isArray(I)&&I.forEach(Z=>{M.some(Y=>{if(Y.prop===Z.prop){const $=Y.label;return Object.assign(Y,Z),Y.label=$,!0}return!1})}),r.value=M.sort((Z,Y)=>Z.sortIndex-Y.sortIndex),s(),q&&O(!1)};o?K(!0):Zt(h,e.initDelay,5,50,!1,K)},w=()=>{const q=o??[];r.value=q.map(I=>({...I})),s(),O()},O=(q=!0)=>{q&&i.save(e.groupProp,r.value);const I=r.value.map(K=>({...K}));n("change",I)},p=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),y=t.ref(!1),A=q=>{const I=[];r.value.forEach(H=>{q&&I.push(H.prop),H.visible=q}),g.value=!1,y.value=!1,r.value.length===I.length?g.value=!0:I.length>0&&(y.value=!0),f.value=I,O()},m=()=>{w()},f=t.ref([]),V=q=>{r.value.forEach(K=>{const H=q.indexOf(K.prop)!==-1;K.visible=H}),g.value=!1,y.value=!1;const I=r.value.length;q.length===I?g.value=!0:q.length>0&&(y.value=!0),O()},R=()=>{c()};t.onMounted(()=>{c(!0)});const L={currentRow:null,index:null},N=q=>q?q.dataset&&q.dataset.role==="row"?q:q.tagName.toLowerCase()!=="body"?(q=q.parentElement,N(q)):null:null,P=q=>{const I=q.currentTarget;I&&I.dataset&&(L.index=I.dataset.index)},E=q=>{L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null),L.index=null},F=q=>{const I=q.currentTarget;q.relatedTarget;const K=N(I);K&&(q.preventDefault(),L.currentRow&&L.currentRow!==K&&L.currentRow.classList.remove("is-dragover"),K.classList.add("is-dragover"),L.currentRow=K)},T=q=>{q.preventDefault(),L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null)},z=q=>{const I=q.currentTarget,K=N(I);if(!K)return;q.preventDefault();const H=Number(L.index),M=Number(K.dataset.index);if(H!==M){if(H<M){const Z=r.value[H];r.value.splice(H,1),r.value.splice(M,0,Z)}else{const Z=r.value[H];r.value.splice(H,1),r.value.splice(M+1,0,Z)}s(),O()}},k=q=>{const I=r.value[q];r.value.splice(q,1),r.value.splice(0,0,I),s(),O()},D=q=>{const I=r.value[q];r.value.splice(q,1),r.value.push(I),s(),O()};l({refresh:()=>{o=null,c(!1)}});const x=new Map;let U=null;function j(q){const I=document.createRange();return I.setStart(q,0),I.setEnd(q,q.childNodes.length),I.getBoundingClientRect().width}return{attrs:a,itemPropertyList:r,isDraggble:u,isCheckAll:g,isIndeterminate:y,handleCheckAllChange:A,handleReset:m,checkedValue:f,handleCheckChange:V,onShow:R,onDragStart:P,onDragEnd:E,onDragOver:F,onDragLeave:T,onDrop:z,checkboxLabelStyle:p,toTop:k,toBottom:D,onMouseOverForOverflowText:(q,I,K)=>{const H=q.currentTarget;if(H){const M=Math.floor(H.offsetWidth);if(Math.floor(j(H))>M){let Y=x.get(I);if(Y){if(Y===U)return;Be.hide(Y)}Y=Be.show(H,K,{type:"text",placement:"top",closeOnClick:!1}),x.set(I,Y),U=Y}}},onMouseLeaveForOverflowText:(q,I)=>{const K=x.get(I);K&&(Be.hide(K),K===U&&(U=null))},onMouseOverForTip:(q,I)=>{const K=q.currentTarget;K&&(U&&Be.hide(U),U=Be.show(K,I,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:q=>{U&&(Be.hide(U),U=null)}}}}),$d={class:"fox-group-setting"},kd={class:"fox-group-setting__header"},Dd={class:"fox-group-setting__body"},Nd={class:"fox-group-setting__body-list","data-role":"container"},Ed=["data-index","draggable"],Vd=["onMouseover","onMouseleave"],Id={class:"tools-item"};function Od(e,n,a,l,o,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),d=t.resolveComponent("Download"),h=t.resolveComponent("FoxIcon"),c=t.resolveComponent("FoxCheckboxGroup"),w=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(w,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",$d,[t.createElementVNode("div",kd,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=O=>e.isCheckAll=O),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",Dd,[t.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=O=>e.checkedValue=O),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",Nd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,O=>(t.openBlock(),t.createElementBlock("div",{key:O.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":O.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:O.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,O.prop,O.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,O.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(O.label),45,Vd)]),_:2},1032,["label"]),t.createElementVNode("div",Id,[t.createVNode(h,{onClick:p=>e.toTop(O.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(O.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,Ed))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Bl=De(xd,[["render",Od]]),yn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popStyle:{type:Object,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Ad(e,n,a,l="value"){for(let o=0;o<n.length;o++){let r=n[o];if(l==="text"){if(bn(e,r)===a)return o}else if(l==="item"){if(_e(a,r))return o}else if(Uo(e,r)===a)return o}return-1}function bn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Wo(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Uo(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Fd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Bd(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Md=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o,r,i,u){if(Array.isArray(a)){let d=a;typeof u=="function"&&(d=d.filter(u));let h=(l-1)*o,c=h+o;c>d.length&&(c=d.length);const w=d.slice(h,c);return{totalSize:d.length,page:w}}if(typeof a=="function")return await Reflect.apply(a,null,[l,o,r,i]);const s=Fe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Re(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[a,l,o,r]))}};function Rd(){const e=t.getCurrentInstance();return new Md(e.proxy)}function Ld(e,n,a,l,o,r,i,u,s,d,h){return{props:{...yn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,{slots:w}){const{emitEvent:O}=Gn(),{toLocaleRefs:p}=ve.useFoxI18n(n),g=p(c,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),y=Rd(),A=t.ref([]),m=t.ref(0),f=t.ref(""),V=t.shallowRef(null),R=t.computed(()=>{const b={};return c.params&&Object.assign(b,c.params),pe(f.value)||(b[`${c.searchKey}`]=f.value),V.value&&Object.assign(b,V.value),b});let L=!0;const N=async(b,C,_)=>{try{if(E.value===!1)return;let X=null;pe(f.value)||(X=S=>{const W=bn(c,S);if(typeof W=="string"&&W.includes(f.value))return!0;const ee=Wo(c,S);return!!(typeof ee=="string"&&ee.includes(f.value))});const ne=await y.load("actionsheet",b,C,_,R.value,L,X??void 0);L=!1,Array.isArray(ne)?(A.value=ne,m.value=1,E.value=!1):!Array.isArray(ne.page)||ne.page.length===0?(console.warn("[FoxUI] can not load more data"),E.value=!1):(Reflect.apply([].push,A.value,ne.page),m.value=Math.ceil(A.value.length/c.pageSize),(ne.totalSize&&A.value.length>=ne.totalSize||_<ne.page.length)&&(E.value=!1)),P.value=!1}catch(X){console.error("[FoxUI] ActionSheet load more data fail",X),E.value=!0,m.value=0,A.value=[]}setTimeout(()=>{O("loaded-data")},250)},P=t.ref(!1),E=t.ref(!0),F=async()=>{if(!c.source){P.value=!1;return}await N(c.source,m.value+1,c.pageSize)};t.watch(()=>f.value,(b,C)=>{pe(b)&&!pe(C)&&F()}),t.watch([()=>c.source,()=>c.pageSize,()=>c.params],async([b,C,_])=>{c.source&&F()},{immediate:!0});const T=t.computed(()=>!c.multiple&&c.isAutoBackFill),z=t.ref([]);let k=null;const D=t.ref(c.visible);t.watch(()=>c.visible,b=>{D.value!==b&&(D.value=b),b?k=[...z.value]:k=null});const x=(b,C)=>{const _=[];return Array.isArray(b)||(b=[b]),b.forEach(X=>{let ne=Ad(c,C,X,c.valueType);ne!==-1&&_.push(ne)}),_e(_,z.value)?!1:(z.value=_,!0)};t.watch([()=>c.modelValue,()=>A.value],([b,C],[_,X])=>{if(x(b,C)){const S=U();j(S)}},{deep:!0});const U=()=>{const b=[],C=[],_=[];for(let W of z.value){const ee=A.value[W];C.push(ee);const ae=bn(c,ee);if(_.push(ae),c.valueType==="item")b.push(ee);else if(c.valueType==="text")b.push(ae);else{const te=Uo(c,ee);b.push(te)}}let X=null,ne=null,S=null;return c.multiple?(X=b,ne=_,S=C):(X=b[0]??null,ne=_[0]??null,S=C[0]??null),{value:X,text:ne,item:S}},j=b=>{O("update:modelValue",b.value),O("update:text",b.text),O("change",b.value,b.item,b.text)},Q=()=>{k&&(z.value=k)},G=b=>{const C=z.value.indexOf(b);c.multiple?C===-1?z.value.push(b):z.value.splice(C,1):C===-1?z.value=[b]:z.value=[],(T.value||!c.poppable&&!c.showFooter)&&q()},J=b=>{D.value=b,O("update:visible",b)},le=()=>{const b=()=>{Q(),J(!1)},C=c.beforeMethod??c.beforeClose;if(typeof C=="function"){const _=C("close");jt(_)?_.then(X=>{X!==!1&&b()}).catch(()=>{b()}):_!==!1&&b()}else b()},q=()=>{const b=U(),C=()=>{j(b),J(!1)},_=c.beforeMethod??c.beforeClose;if(typeof _=="function"){const X=_("confirm",b.value,b.item,b.text);jt(X)?X.then(ne=>{ne!==!1&&C()}).catch(()=>{C()}):X!==!1&&C()}else C()},I=()=>{E.value=!0,m.value=0,A.value=[],c.source&&F()},K=()=>{let b=g.title.value??"";w.title&&(b=w.title());const C=t.h("view",{class:["fox-actionsheet__header-title"]},[b]),_=t.h(s,{class:["fox-actionsheet__header-icon"],onClick:le});return t.h("view",{class:["fox-actionsheet__header"]},[C,_])},H=()=>{let b=null;if(w.search)b=w.search();else{const C={onSearch:I,placeholder:g.seachPlaceholder.value,disabled:c.disabled,modelValue:f.value,"onUpdate:modelValue":_=>{f.value=_}};b=t.h(r,C,{leftin:()=>t.h(d)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[b])},M=(b,C,_,X,ne)=>{if(w.optionLabel)return w.optionLabel({text:b,checked:C,disabled:_,subText:X,item:ne});const S=[],W=t.h("view",{class:"fox-actionsheet__list-item-text"},[b]);if(S.push(W),X){const ee=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[X]);S.push(ee)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},S)},Z=(b,C,_,X)=>{if(w.optionIcon)return w.optionIcon({checked:b,disabled:C,iconSize:_,item:X});if(b){if(w.checkedIcon)return w.checkedIcon({disabled:C,item:X});{const ne=c.checkedIcon??u;return t.h(ne,{width:_,height:_,class:["fox-actionsheet__list-item-icon"]})}}else{if(w.icon)return w.icon({disabled:C,item:X});{const ne=c.icon??i;return t.h(ne,{width:_,height:_,class:["fox-actionsheet__list-item-icon"]})}}},Y=()=>{const b=[];for(let C=0;C<A.value.length;C++){const _=A.value[C],X=bn(c,_),ne=Wo(c,_),S=["fox-actionsheet__list-item"],W={};let ee=Fd(c,_),ae=c.iconSize?me(c.iconSize):null;const te=Bd(c,_,C);te&&(ee=ee||te.disabled,te.class&&S.push(te.class),te.style&&Object.assign(W,te.style)),ee=!!(c.disabled||ee);const oe=z.value.includes(C);ee&&S.push("is-disabled"),oe&&S.push("is-checked");const ie={class:S,style:W,key:`${C}`,onClick:()=>{ee||G(C)}};let ue=[];if(w.option)ue.push(w.option({item:_,checked:oe,disabled:ee}));else{const ge=M(X,oe,ee,ne,_);ue.push(ge);const nt=Z(oe,ee,ae,_);ue.push(nt)}const be=t.h("view",ie,ue);b.push(be)}return b},$=()=>{let b=[];if(w.buttons)b=w.buttons();else{const _=t.h(o,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:q,disabled:c.disabled},{default:()=>g.confirmText.value});b.push(_)}return t.h("view",{class:"fox-actionsheet__footer"},[b])};return ye({search:async(b=null,C=!0)=>{V.value=b&&t.toRaw(b),t.triggerRef(V),C&&(E.value=!0,m.value=0,A.value=[]),t.nextTick(()=>{F()})},clear:()=>{E.value=!0,m.value=0,A.value=[]},confirm:()=>{q()},cancel:()=>{le()}}),()=>{const b=[];if(c.showHeader){const ae=K();b.push(ae)}if(c.showSearchbar){const ae=H();b.push(ae)}let C=null;if(w.content)C=w.content();else{const ae=Y(),te={hasMore:E.value,loadText:g.loadText.value,loadMoreText:g.loadMoreText.value,modelValue:P.value,"onUpdate:modelValue":oe=>{P.value=oe},onLoadMore:F};C=t.h(l,te,{default:()=>ae})}const _={};c.optionsHeight&&(_.height=c.optionsHeight);const X={"fox-actionsheet__list":!0};c.poppable||(X["fox-actionsheet__list--inner"]=!0);const ne=t.h("view",{class:X,style:_},[C]);if(b.push(ne),c.showFooter&&!T.value){const ae=$();b.push(ae)}const S=t.h("view",{class:"fox-actionsheet"},b);if(!c.poppable)return S;const W=["fox-actionsheet__popup"];c.popClass&&W.push(c.popClass);const ee={popClass:W.join(" "),visible:D.value,closeable:!1,"onUpdate:visible":J,position:c.position,round:"round",onClickOverlay:le,closeOnClickOverlay:c.closeOnClickOverlay};return t.h(a,ee,{default:()=>S})}}}}const _d=/scroll|auto|overlay/i,Go=window;function Pd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function qd(e,n=Go){let a=e;for(;a&&a!==n&&Pd(a);){const{overflowY:l}=window.getComputedStyle(a);if(_d.test(l))return a;a=a.parentNode}return n}function Xo(e,n=Go){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=qd(e.value,n))}),a}const Zo=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,zd={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 jd(e,n,a){return{props:{...zd},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["pullText","loadText","loadMoreText"]),s=t.ref(),d=Xo(s),h=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[e]:!0})),w=m=>m?m.offsetTop+w(m.offsetParent):0,O=()=>{let m=0,f=0,V="down";if(d.value==window){const R=Zo();s.value&&(m=w(s.value)+s.value.offsetHeight-R-window.innerHeight),f=R}else{const{scrollHeight:R,clientHeight:L,scrollTop:N}=d.value;m=R-L-N,f=N}return h.beforeScrollTop>f?V="up":V="down",h.beforeScrollTop=f,o("scroll-change",f),m<=l.threshold&&V=="down"},p=()=>{Vn(()=>{if(!O()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},g=()=>{d.value&&d.value.addEventListener("scroll",p,l.useCapture)},y=()=>{d.value&&d.value.removeEventListener("scroll",p,l.useCapture)};t.onMounted(()=>{g(),l.immediate&&p()}),t.onUnmounted(()=>{y()});const A=t.ref(!1);return t.onActivated(()=>{A.value&&(A.value=!1,g())}),t.onDeactivated(()=>{A.value=!0,y()}),t.watch(()=>l.modelValue,m=>{m||(h.isInfiniting=!1)}),()=>{const m={class:"fox-infinite__container"},f=t.h("view",m,[r?.default?.()]),V=[];if(h.isInfiniting){let P=r?.loading?.()??null;if(!P){let T=r?.loadingIcon?.()??null;if(!T){const D={class:["fox-infinite__bottom-box__img"]};T=t.h(a,D)}const z={class:"fox-infinite__bottom-box__text"},k=t.h("view",z,[u.loadText.value]);P=[T,k]}const E={class:"fox-infinite__bottom-box"},F=t.h("view",E,P);V.push(F)}else if(!l.hasMore){let P=r?.finished?.()??null;if(!P){const E={class:"fox-infinite__bottom-tips"};P=t.h("view",E,[u.loadMoreText.value]),V.push(P)}}const R={class:"fox-infinite__bottom"},L=t.h("view",R,V),N={class:c.value,ref:s};return t.h("view",N,[f,L])}}}}const{componentName:Hd,create:Kd,scope:Yd}=se("infinite-loading"),vn=Kd(jd(Hd,Yd,mn)),Wd={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"}},Ud=(e,n,a)=>({props:{...Wd},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:o}){const{emitEvent:r}=Gn(),{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["placeholder"]),s=t.reactive({active:!1}),d=t.computed(()=>({background:l.background})),h=t.computed(()=>({background:l.inputBackground})),c=E=>{let T=E.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),r("update:modelValue",T,E),r("change",T,E)},w=t.ref({}),O=E=>{let T=E.target.value;s.active=!0,w.value=l.focusStyle,r("focus",T,E)},p=E=>{setTimeout(()=>{s.active=!1},0);let T=E.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),w.value={},r("blur",T,E)},g=E=>{r("update:modelValue","",E),r("change","",E),r("clear","")},y=t.computed(()=>String(l.modelValue).length>0),A=t.computed(()=>{const E={};return y.value||(E.display="none"),E}),m=()=>{r("search",l.modelValue)},f=E=>{r("keyup-input",E),E.key.toLocaleUpperCase()==="ENTER"&&m()},V=E=>{r("click-input",E)},R=E=>{r("click-left-icon",l.modelValue,E)},L=t.computed(()=>({textAlign:l.inputAlign})),N=t.ref(null);t.onMounted(()=>{l.autofocus&&N.value.focus()});const P=()=>{const E=[];if(o.leftin){const D={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:R},x=t.h("view",D,[o.leftin()]);E.push(x)}const F={ref:N,class:[`${e}__input-inner`],style:L.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:V,onInput:c,onFocus:O,onBlur:p,onkeyup:f},T=t.h("input",F);E.push(T);const z=[];if(l.clearable){const D={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:A.value,onClick:g},x=o?.clear?.()??l.clearIcon??a,U=t.h("view",D,[t.h(x)]);z.push(U)}if(o.rightin){const D={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},x=t.h("view",D,[o.rightin()]);z.push(x)}if(z.length>0){const D={class:`${e}__input-inner-right`},x=t.h("view",D,z);E.push(x)}const k={class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...w.value}};return t.h("view",k,E)};return()=>{const E=[];if(l.label){const z={class:`${e}__search-label`},k=t.h("span",z,[l.label]);E.push(k)}if(o.leftout){const z={class:[`${e}__search-icon`,`${e}__left-search-icon`]},k=t.h("view",z,[o.leftout()]);E.push(k)}const F=P();if(E.push(F),o.rightout){const z={class:[`${e}__search-icon`,`${e}__right-search-icon`]},k=t.h("view",z,[o.rightout()]);E.push(k)}const T={class:`${e}`,style:d.value};return t.h("view",T,E)}}}),{componentName:Gd,create:Xd,scope:Zd}=se("searchbar"),wn=Xd(Ud(Gd,Zd,xe.CircleClose)),{componentName:Jd,create:Qd,scope:eh}=se("actionsheet-pane"),Sn=Qd(Ld(Jd,eh,it,vn,B.ElButton,wn,Iu,Du,wo,cu)),Jo={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 th(e,n,a,l,o){return{props:{...we,...ke,...Jo,...yn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(r,i){const u=Ie(t.computed(()=>r.disabled)),s=Ve(t.computed(()=>r.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return u.value}},r.prop??i.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),c=h(r,["placeholder"]),w=t.ref(!1),O=de(r,"modelValue",null,d),p=t.ref(""),g=t.computed(()=>Array.isArray(p.value)?p.value.join(r.separator):p.value),y="fox-input-item",A=t.computed(()=>({[y]:!0,[`${y}__disabled`]:u.value})),m=Ee(t.computed(()=>r.textAlign),"textAlign"),f=t.computed(()=>{const x={};return m.value&&(x["text-align"]=m.value),x}),V=t.ref(!1),R=()=>{V.value=!0},L=x=>{V.value=x},N=x=>{O.value=x,d("update:modelValue",x)},P=(x,U)=>{d("change",x,U)},E=x=>{let j=x.target.value;w.value=!0,d("focus",j,x)},F=x=>{setTimeout(()=>{w.value=!1},0);let j=x.target.value;r.maxLength&&j.length>Number(r.maxLength)&&(j=j.slice(0,Number(r.maxLength))),d("blur",j,x)},T=x=>{p.value=x,d("update:text",x)},z=t.computed(()=>ze(r.unit)>0),k=t.ref(),D=t.ref(null);return ye({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()},search:x=>{D.value&&D.value.search(x)},clear:()=>{D.value&&D.value.clear},confirm:x=>{D.value&&D.value.confirm()},cancel:()=>{D.value&&D.value.cancel()}}),()=>{const x={ref:k,class:A.value,style:f.value,type:"text",maxlength:r.maxLength,placeholder:c.placeholder.value,readonly:!0,value:g.value,onClick:R,onFocus:E,onBlur:F},U={};i.slots.prepend&&(U.prepend=i.slots.prepend),i.slots.append&&(U.append=i.slots.append),i.slots.prefix&&(U.prefix=i.slots.prefix),i.slots.suffix?U.suffix=i.slots.suffix:z.value?U.suffix=()=>[r.unit]:U.suffix=()=>t.h(B.ElIcon,{},{default:()=>t.h(xe.ArrowDown)});const j=[],Q=t.h(B.ElInput,x,U);j.push(Q);const G={default:()=>j};G.label=i.slots.default,G.prepend=i.slots.prepend,G.append=i.slots.append,G.fixedPreTip=i.slots.fixedPreTip,G.fixedTip=i.slots.fixedTip;const J=xt(r,yn);J.ref=D,J.class=r.actionsheetProps,J.disabled=u.value||s.value,J.visible=V.value,J["onUpdate:visible"]=L,J.modelValue=O.value,J["onUpdate:modelValue"]=N,J.text=p.value,J["onUpdate:text"]=T,J.onChange=P,J.poppable=!0;const le={title:i.slots.title,search:i.slots.search,option:i.slots.option,optionLabel:i.slots.optionLabel,optionIcon:i.slots.optionIcon,buttons:i.slots.buttons},q=t.h(l,J,le);G.hide=()=>[q];const I=$e(r,Jo,yn);return t.h(a,{...I,prop:`${r.prop}_item`},G)}}}}const{componentName:nh,create:lh,scope:ah}=se("actionsheet-item"),Ml=lh(th(nh,ah,Se,Sn)),Qo={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},Rl={...gl,...Qo,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:""},isAutoBackFill:{type:[Boolean],default:!0}};function oh(e){return e===window}const Ll=e=>{const n=t.unref(e);if(oh(n)){const a=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:a,bottom:l,width:a,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},er=10;function tr(e,n){return e>n&&e>er?"horizontal":n>e&&n>er?"vertical":""}function _l(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Pl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=tr(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:l,isVertical:n,isHorizontal:a,state:e}}function nr(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),l=t.ref(0),o=t.ref(0),r=t.ref(0),i=t.ref(0),u=t.ref(0),s=t.ref(0),d=t.ref(0),h=t.ref(""),c=()=>h.value==="vertical",w=()=>h.value==="horizontal",O=()=>{i.value=0,u.value=0,s.value=0,d.value=0,h.value="",a.value=0};return{move:y=>{if(y.touches){const f=y.touches[0];i.value=f.clientX-e.value,u.value=f.clientY-n.value,o.value=f.clientX,r.value=f.clientY}else{const m=y;i.value=m.clientX-e.value,u.value=m.clientY-n.value,o.value=m.clientX,r.value=m.clientY}s.value=Math.abs(i.value),d.value=Math.abs(u.value),l.value=Date.now()-a.value,h.value||(h.value=tr(s.value,d.value))},start:y=>{if(O(),y.touches){const f=y.touches[0];e.value=f.clientX,n.value=f.clientY}else{const m=y;e.value=m.clientX,n.value=m.clientY}a.value=Date.now()},reset:O,startX:e,startY:n,startTime:a,duration:l,moveX:o,moveY:r,deltaX:i,deltaY:u,offsetX:s,offsetY:d,direction:h,isVertical:c,isHorizontal:w}}let lr=36;function rh(){return lr}function ih(e){lr=e}function Ye(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ql(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function sh(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function ut(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ar(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let uh=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function ch(){const e=t.getCurrentInstance();return new uh(e.proxy)}function or(e,n,a){const l=Ye(e,n),o=Ye(e,a);if(l!==o)return!1;const r=ut(e,n),i=ut(e,a);return r===i}function fh(e,n,a,l){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const o=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const u=n[i];let d=a[i].findIndex(h=>{if(r==="text")return Ye(e,h)===u;if(r==="value"){let c=ut(e,h);return c==null&&(c=Ye(e,h)),c===u}else if(r==="item")return or(e,h,u)});if(d==-1)break;o.push(d)}else{let i=a[0];for(let u=0;u<n.length;u++){const s=n[u];let d=i.findIndex(c=>{if(r==="text")return Ye(e,c)===s;if(r==="value"){let w=ut(e,c);return w==null&&(w=Ye(e,c)),w===s}else if(r==="item")return or(e,c,s)});if(d==-1)break;o.push(d);const h=ql(e,i[d]);if(!Array.isArray(h))break;i=h}}return o}function rr(e,n,a,l){if(a.length==0)return null;const o={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const u=a[i];let s=n[i];s<0&&s>=u.length&&(s=0);const d=u[s],h=Ye(e,d);if(o.texts.push(h),o.items.push(d),r==="text")o.values.push(h);else if(r==="value"){let c=ut(e,d);c==null&&(c=h),o.values.push(c)}else o.values.push(d)}else{let i=a[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=i.length&&(s=0);const d=i[s],h=Ye(e,d),c=Object.assign({},d);if(c.children=null,o.texts.push(h),o.items.push(c),r==="text")o.values.push(h);else if(r==="value"){let w=ut(e,d);w==null&&(w=h),o.values.push(w)}else o.values.push(c);if(!Array.isArray(d.children))break;i=d.children}}return o}function ir(e){return{text:e,value:e}}const dh=15,hh=300,mh=200,{create:gh}=se("picker-column");function ph(e){e.stopPropagation()}function yh(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&ph(e)}const bh=gh({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...Qo},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),l=t.computed(()=>({height:`${he(e.visibleItemCount)*+e.itemHeight}px`})),o=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=N=>N>=c.currIndex+8||N<=c.currIndex-8,u=t.computed(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${r.value}px`})),s=N=>`transform: rotate3d(1, 0, 0, ${-c.rotation*N}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+r.value}px, 0)`})),h=t.ref(null),c=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),w=N=>Ye(e,N),O=N=>ut(e,N),p=nr(),g=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},y=(N,P=!1,E=!1)=>{if(c.currIndex=N,P){const F=()=>{c.moving=!1,n("update:modelValue",N),n("change",N)};E?c.transitionEndTrigger=F:F()}},A=(N,P,E)=>{let F=N+c.startDistance;if(P==="end"){const T=-(e.source.length-1)*e.itemHeight;F<T&&(F=T),F>0&&(F=0);let z=Math.abs(Math.round(-F/e.itemHeight));const k=-z*e.itemHeight,D=`${(z+1)*c.rotation}deg`,x=E?E>0:!1;y(z,!0,x),m(k,P,E,D)}else{let T=(-F/e.itemHeight+1)*c.rotation;const z=(e.source.length+1)*c.rotation,k=0;if(T=Math.min(Math.max(T,k),z),e.threeDimensional&&(T<k||T>z))return;m(F,null,void 0,`${T}deg`)}},m=(N=0,P,E=mh,F)=>{P==="end"?c.scrollTime=E:c.scrollTime=0,c.deg=F,c.scrollDistance=N},f=(N,P)=>(N=Math.abs(N/P)/.003*(N<0?-1:1),N),V=N=>{e.readonly||(c.startDistance=c.scrollDistance,p.start(N),c.transitionEndTrigger=null)},R=N=>{e.readonly||(c.moving=!0,p.move(N),p.isVertical()&&(c.moving=!0,yh(N,!0)),A(p.deltaY.value,"",0))},L=()=>{if(e.readonly)return;const N=p.deltaY.value,P=p.duration.value;if(P<hh&&Math.abs(N)>dh){const F=f(N,P);A(F,"end",e.swipeDuration)}else A(N,"end",0)};return t.watch(()=>e.modelValue,N=>{const P=c.currIndex-N;if(P!==0){c.currIndex=N,c.startDistance=c.scrollDistance;const E=P*e.itemHeight;A(E,"",0)}}),t.watch(()=>e.source,N=>{if(c.currIndex>=N.length){const F=(N.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,A(F,"end",0)}}),t.watch(()=>e.visible,N=>{N===!1&&g()}),t.onMounted(()=>{const N=-e.modelValue*e.itemHeight;A(N)}),{classes:a,styles:l,contentClasses:o,itemText:w,itemValue:O,...t.toRefs(c),roller:h,getItemText:Ye,onTouchStart:V,onTouchMove:R,onTouchEnd:L,isHidden:i,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:g}}}),vh={key:1,class:"fox-picker__item-tile"};function wh(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(i,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u+1)}]),style:t.normalizeStyle(e.setRollerStyle(u+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",vh,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Sh=De(bh,[["render",wh]]),{create:Ch,componentName:Th,scope:xh}=se("picker"),$h=Ch({components:{PickerColumn:Sh,Popup:it},props:{...Rl},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:l}=ve.useFoxI18n(xh),o=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(rh());t.watch(()=>e.visible,T=>{T&&i.value<=0&&setTimeout(()=>{if(r.value){const z=Ll(r.value);i.value=z.height,ih(i.value)}},50)});const u=t.computed(()=>({[Th]:!0})),s=ch(),d=t.ref("singleColumn");let h=t.ref([]);t.watch([()=>e.source,()=>e.params],async([T,z])=>{if(T){let k=await s.load("select",T,z);if(k.length>0){let D=k[0];if(Array.isArray(D)){if(typeof D[0]=="string"){let x=k,U=[];x.forEach(j=>{let Q=j.map(G=>ir(G));U.push(Q)}),h.value=U}else h.value=k;d.value="multipleColumn"}else if(typeof D=="string"){let x=k,U=[],j=x.map(Q=>ir(Q));U.push(j),h.value=U,d.value="singleColumn"}else{const x=ql(e,D);Array.isArray(x)?(d.value="cascade",h.value=[k]):(d.value="singleColumn",h.value=[k])}}else h.value=[]}},{immediate:!0});const c=t.ref([]),w=t.ref(e.modelValue),O=t.ref([]),p=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([T,z])=>{let k=fh(e,T,z,d.value);if(!_e(k,p.value)){p.value=k;let D=rr(e,k,z,d.value);D&&(c.value=D.texts,n("update:text",c.value))}});const g=t.ref(e.visible);t.watch(()=>e.visible,T=>{g.value=T});const y=T=>{let z=ar(e,T);return Re(z)?z.defaultIndex??0:0},A=T=>{if(e.readonly===!0)return!0;let z=ar(e,T);return Re(z)?z.readonly??!1:!1},m=(T,z)=>{let k=p.value;k[T]=z;for(let x=0;x<T;x++)k[x]==null&&(k[x]=y(x));if(d.value==="cascade")for(let x=T+1;x<V.value.length;x++){let U=y(x);x<k.length?k[x]=U:k.push(U)}else for(let x=k.length;x<V.value.length;x++){let U=y(x);k.push(U)}p.value=k;let D=rr(e,k,h.value,d.value);D&&(c.value=D.texts,w.value=D.values,O.value=D.items)},f=T=>T<p.value.length?p.value[T]:y(T),V=t.computed(()=>{if(h.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return h.value;let T=[],z=0,k=h.value[0],D=0;for(;;){let x=k.map(Q=>{let G=Object.assign({},Q);return sh(e,G,null),G});T.push(x),z>=p.value.length?D=0:D=p.value[z],(D<0||D>=k.length)&&(D=0);let U=k[D];const j=ql(e,U);if(!Array.isArray(j))break;k=j,z++}return T}),R=t.computed(()=>he(+e.visibleItemCount-1)/2*i.value),L=(T=!1)=>{if(e.readonly===!0){T&&n("update:visible",!1);return}let z=h.value.length-1;for(;z>=0&&!(p.value[z]===null||p.value[z]===void 0);z--);if(z>=0&&m(z,0),d.value==="singleColumn"){let k=w.value.length>0?w.value[0]:"",D=O.value.length>0?O.value[0]:null;n("update:modelValue",k),n("update:text",c.value),n("change",k,D),T&&(n("confirm",k),n("update:visible",!1))}else n("update:modelValue",w.value),n("update:text",c.value),n("change",w.value,O.value),T&&(n("confirm",w.value),n("update:visible",!1))};return{...o,pickerLineRef:r,classes:u,columns:V,dataType:d,show:g,itemHeight:i,top:R,isReadonly:A,getIndex:f,change:(T,z)=>{if(m(T,z),e.isAutoBackFill){const k=!g.value;L(k)}},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{L(!0)},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)}}}}),kh={class:"fox-picker__bar"},Dh={class:"fox-picker__title"},Nh={class:"fox-picker__bar__action"},Eh={class:"fox-picker__column"};function Vh(e,n,a,l,o,r){const i=t.resolveComponent("PickerColumn"),u=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(u,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",kh,[t.createElementVNode("view",Dh,t.toDisplayString(e.title),1),t.createElementVNode("view",Nh,[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",Eh,[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,{visible:e.show,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,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const Mt=De($h,[["render",Vh]]),sr={...Rl,placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function Ih(e,n,a){return{props:{...we,...ke,...sr},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=e,w=t.computed(()=>({[c]:!0})),O=Ee(t.computed(()=>l.textAlign),"textAlign"),p=t.computed(()=>({textAlign:O.value??"right"})),g=de(l,"modelValue",null,u),y=t.ref([]),A=t.computed(()=>Array.isArray(y.value)?y.value.join(" "):y.value),m=t.ref(!1),f=()=>{m.value=!0},V=x=>{m.value=x},R=x=>{g.value=x,u("update:modelValue",x)},L=x=>{y.value=x,Array.isArray(x)&&x.length===0?u("update:text",x[0]):u("update:text",x)},N=(x,U)=>{u("change",x,U)};let P=de(l,"hintText"),E=t.ref(!1);const F=x=>{let j=x.target.value;h.value=!0,pe(P.value)||(E.value=!0),u("focus",j,x)},T=x=>{setTimeout(()=>{E.value&&(E.value=!1),h.value=!1},0);let j=x.target.value;l.maxLength&&j.length>Number(l.maxLength)&&(j=j.slice(0,Number(l.maxLength))),m.value?setTimeout(()=>{u("blur",j,x)},50):u("blur",j,x)},z=()=>{u("clear","")},k=t.computed(()=>ze(l.unit)>0),D=t.ref();return ye({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()}}),()=>{const x={class:w.value,style:p.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,clearable:ce(l.clearable),readonly:!0,value:A.value,onClick:f,onFocus:F,onBlur:T},U={};o.slots.prepend&&(U.prepend=o.slots.prepend),o.slots.append&&(U.append=o.slots.append),o.slots.prefix&&(U.prefix=o.slots.prefix),o.slots.suffix?U.suffix=o.slots.suffix:k.value?U.suffix=()=>[l.unit]:U.suffix=()=>t.h(B.ElIcon,{},{default:()=>t.h(xe.ArrowDown)});const j=[],Q=t.h(B.ElInput,x,U);j.push(Q);const G={default:()=>j};o.slots.default&&(G.label=o.slots.default),o.slots.fixedTip&&(G.fixedTip=o.slots.fixedTip);const J=xt(l,Rl);J.disabled=!1,J.readonly=r.value||i.value,J.visible=m.value,J["onUpdate:visible"]=V,J.modelValue=g.value,J["onUpdate:modelValue"]=R,J.text=y.value,J["onUpdate:text"]=L,J.onClear=z,J.onChange=N;const le=t.h(Mt,J);G.hide=()=>[le];const I={...$e(l,sr),hintText:P.value,hintVisible:E.value,prop:`${l.prop??o.attrs.name}_item`};return t.h(a,I,G)}}}}const{componentName:Oh,create:Ah,scope:Fh}=se("picker-item"),zl=Ah(Ih(Oh,Fh,Se)),Bh={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}},ur=(e,n)=>n[e.textKey],Rt=(e,n)=>n[e.valueKey],Mh=(e,n)=>n[e.visibleKey],cr=(e,n)=>n[e.disabledKey],Rh=(e,n)=>{const a=n[e.doitKey];return ce(a)},Lh=(e,n)=>{const a=n[e.numKey];return a==null?null:he(n[a])},fr=(e,n,a)=>{const l=e.itemOptions;return typeof l=="function"?l(n,a):l||null};function _h(e,n,a,l=!1){return{props:{...Bh},emits:["update:modelValue","change"],setup(o,{slots:r,emit:i}){const u=t.computed(()=>{const q={};return q[`${e}`]=!0,q}),s=t.computed(()=>{const q={};return q[`${e}__titles`]=!0,q[`${o.direction}`]=!0,o.align==="left"&&(q.left=!0),o.scroll===!0&&(q.scrollable=!0),o.shape&&(q[`${o.shape}`]=!0),q}),d=t.computed(()=>({})),h=t.computed(()=>{if(!o.gutter)return 0;const q=me(o.gutter);return q<=0?0:q}),c=t.ref(o.modelValue);t.watch(()=>o.modelValue,q=>{c.value!==q&&(c.value=q,j(!1))});const w=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),O=t.computed(()=>{const q={};return g.value||(q.display="none"),q}),p=t.ref(),g=t.ref(!1),y=()=>{const q=!g.value;A(q)},A=q=>{const I=q;I?(g.value=I,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,p.value?p.value.addEventListener("transitionend",()=>{g.value=!1},{once:!0}):setTimeout(()=>{g.value=!1},0))},m=t.ref(),f=t.ref([]),V=(q,I)=>{f.value[I]=q},R=q=>I=>{V(I,q)},L=(q,I)=>{const K=m.value,H=f.value;if(!K||!H||!H[q])return;const M=H[q];let Z=0;o.direction==="vertical"?Z=M.offsetTop-(K.offsetHeight-M.offsetHeight)/2:Z=M.offsetLeft-(K.offsetWidth-M.offsetWidth)/2,N(K,Z,I?0:.3,o.direction)},N=(q,I,K,H)=>{let M=0;const Z=H==="horizontal"?q.scrollLeft:q.scrollTop,Y=K===0?1:Math.round(K*1e3/16);function $(){H==="horizontal"?q.scrollLeft+=(I-Z)/Y:q.scrollTop+=(I-Z)/Y,++M<Y&&Pn($)}$()},P=(q,I)=>{const K=Rt(o,q),H={};return H[`${e}__titles-item`]=!0,H.disabled=cr(o,q),H.active=K===c.value,o.shape&&(H[`${o.shape}`]=!0),o.ellipsis&&(H.ellipsis=!0),I&&(I.class&&(H[`${I.class}`]=!0),I.disabled===!0&&(H.disabled=I.disabled)),H},E=(q,I)=>{const K={};if(h.value>0){const H=Math.abs(h.value/2);o.direction==="vertical"?(K["margin-top"]=`${H}px`,K["margin-bottom"]=`${H}px`):(K["margin-left"]=`${H}px`,K["margin-right"]=`${H}px`)}return I&&I.style&&Object.assign(K,I.style),K},F=(q,I)=>`${Rt(o,q)??I}`,T=(q,I)=>{const K=Rt(o,q),H={};H[`${e}__popup-item`]=!0,H.disabled=cr(o,q),H.active=K===c.value,o.shape&&(H[`${o.shape}`]=!0);const M=fr(o,q,I);return M&&M.disabled===!0&&(H.disabled=M.disabled),H},z=t.computed(()=>(o.data??[]).filter(I=>Mh(o,I)!==!1)),k=(q,I)=>{const K=Rt(o,q);if(c.value==K)return;const H=()=>{c.value=K,o.scroll&&L(I,!1),i("update:modelValue",K),i("change",q,I)};if(typeof o.beforeChange=="function"){const M=o.beforeChange(q,I);jt(M)?M.then(Z=>{Z!==!1&&H()}).catch(()=>{H()}):M!==!1&&H()}else H()},D=(q,I)=>function(){k(q,I)},x=(q,I)=>{k(q,I),A(!1)},U=(q,I)=>function(){x(q,I)},j=q=>{if(!Array.isArray(o.data)||!o.scroll)return;const I=o.data.findIndex(K=>Rt(o,K)===c.value);I!==-1&&L(I,q)};t.watch(()=>o.data,()=>{setTimeout(j,0)}),t.onMounted(()=>{j(!0)});const Q=(q,I)=>{if(r.item)return r.item({item:q,index:I});const K=fr(o,q,I),H=[];if(r.text){const $=r.text({item:q,index:I});H.push($)}else{const $=[];if(K?.doit===!0||Rh(o,q)){const X={class:[`${e}__titles-item-tip`,"doit"]},ne=t.h("view",X);$.push(ne)}const b=K?.num??Lh(o,q);if(b){let X="";const ne=he(b);ne>=100?X="99+":X=`${ne}`;const S={class:[`${e}__titles-item-tip`,"num"]},W=t.h("view",S,[X]);$.push(W)}const C={class:`${e}__titles-item-text`};$.push(ur(o,q));const _=t.h("view",C,$);H.push(_)}const M={class:`${e}__titles-item-line`},Z=t.h("view",M);H.push(Z);const Y={ref:R(I),class:P(q,K),style:E(q,K),key:F(q,I),onClick:D(q,I)};return t.h("view",Y,H)},G=()=>{const q=r.default?r.default():[];if(q.length===0)for(let K=0;K<z.value.length;K++){const H=z.value[K],M=Q(H,K);q.push(M)}const I={ref:m,class:s.value,style:d.value};return t.h("view",I,q)},J=()=>{let q=null;r.navigation?q=r.navigation():q=t.h(a);const I={class:`${e}__navigation`,onClick:y};return t.h("view",I,[q])},le=()=>{const q=[];for(let K=0;K<z.value.length;K++){const H=z.value[K];let M=null;r.popupItem?M=r.popupItem({item:H,index:K}):M=ur(o,H);const Z={class:T(H,K),key:F(H,K),onClick:U(H,K)},Y=t.h("view",Z,[M]);q.push(Y)}const I={class:w.value,style:O.value};return t.h("view",I,q)};return()=>{const q=[],I=G();if(q.push(I),o.showQuickNavigation){const H=J();q.push(H);const M=le();q.push(M)}const K={class:u.value};return t.h("view",K,q)}}}}const{create:Ph,componentName:qh,scope:zh}=se("tabs-bar"),Cn=Ph(_h(qh,zh,mu,!1)),dr=Symbol("TabsStatesKey"),jh={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Hh(e,n,a=!1){return{props:{...jh},emits:["update:modelValue","change"],setup(l,{emit:o,slots:r}){const i=t.shallowRef([]),u={current:t.ref(l.modelValue??""),direction:t.ref(l.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:g=>{const y={name:g};u.current.value===g&&(y.loaded=!0),i.value.push(y),t.triggerRef(i)},remove:g=>{const y=i.value.findIndex(A=>A.name===g);y!==-1&&i.value.splice(y,1)},isLoaded:g=>{if(!l.lazy)return!0;const y=i.value.findIndex(A=>A.name===g);return y!==-1?u.current.value?i.value[y].loaded??!1:y===0:!1}};t.provide(dr,u);const s=g=>{const y=i.value.findIndex(A=>A.name===g);y!==-1&&(i.value[y].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([g,y])=>{u.current.value!==g&&(u.current.value=g??"",s(g??"")),u.direction.value!==y&&(u.direction.value=y)});const d=t.ref(null),h=t.ref(null),c=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let w=!0;const O=t.computed(()=>{const g={},y=i.value.length;if(y<=0)return g;const A=i.value.findIndex(m=>m.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(g.height=`${y*u.tabHeight.value}px`,A!==-1&&(g.transform=`translate(0, -${A*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(g.width=`${y*u.tabWidth.value}px`,A!==-1&&(g.transform=`translate(-${A*u.tabWidth.value}px, 0)`)),w&&(w=!1,g.transition="transform 0s ease"),g});let p=null;return t.onMounted(()=>{if(!d.value)return;const g=()=>{const y=ln(d.value);u.tabWidth.value=y.width,u.tabHeight.value=y.height};window.ResizeObserver&&(p=new window.ResizeObserver(g),p.observe(d.value)),g()}),t.onBeforeUnmount(()=>{p&&(p.disconnect(),p=null)}),()=>{const g={class:`${e}__panes`,style:O.value,ref:h},y=t.h("view",g,[r?.default?.()]),A={class:c.value,ref:d};return t.h("view",A,[y])}}}}const{create:Kh,componentName:Yh,scope:Wh}=se("tabs-container"),Tn=Kh(Hh(Yh,Wh,!1)),Uh={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Gh(e,n,a){return{props:{...Uh},setup(l,{emit:o,slots:r}){const i=t.inject(dr);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?ce(l.loaded):i.isLoaded(l.paneKey));return()=>{let d=[];if(s.value)d=r?.default?.()??[];else if(r.empty)d=r.empty();else{const c={class:`${e}__empty-icon`},w=l.emptyIcon??a,O=t.h(w,c),p={class:`${e}__empty-text`},g=l.emptyText??"Loading",y=t.h("view",p,[g]),A={class:`${e}__empty`},m=t.h("view",A,[O,y]);d.push(m)}const h={class:`${e}`,style:u.value};return t.h("view",h,d)}}}}const{create:Xh,componentName:Zh,scope:Jh}=se("tabs-pane"),xn=Xh(Gh(Zh,Jh,mn)),Qh={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 em(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function hr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function mr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function tm(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function jl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function gr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function pr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Hl(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}class nm{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[l]);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Re(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(o,null,[a,l]))}}function lm(){const e=t.getCurrentInstance();return new nm(e.proxy)}function am(e,n,a,l){return{props:{...Qh},emits:["update:modelValue","change","loaded-data"],setup(o,{slots:r,emit:i}){const u=e,s=lm(),d=t.ref([]),h=t.computed(()=>d.value.filter(I=>tm(o,I)!==!1)),c=t.ref(-1),w=()=>{const I=o.modelValue,K=h.value.findIndex(H=>hr(o,H)===I);c.value!==K&&(c.value=K,o.scroll&&le(K,!1))};t.watch([()=>o.modelValue,h],()=>{w()});const O=I=>c.value===I,p=I=>{if(I<0&&I>=h.value.length)return!1;const K=h.value[I],M=(Hl(o,K,I)??{}).status??jl(o,K);return O(I)||M},g=t.computed(()=>{const I={[u]:!0};return o.mode?I[`is-${o.mode}`]=!0:o.direction&&(I[`is-${o.direction}`]=!0),o.scroll&&(I["is-scroll"]=!0),I}),y=t.computed(()=>({})),A=(I,K,H,M,Z)=>{const Y={[`${u}__step`]:!0};return Z&&(Y[`${Z}`]=!0),Y[`${m.value}`]=!0,M&&(Y["is-doit"]=!0),I===c.value?Y["is-active"]=!0:K==="done"?Y["is-done"]=!0:K==="error"?Y["is-error"]=!0:K==="half"?Y["is-half"]=!0:H?Y["is-disabled"]=!0:Y["is-normal"]=!0,Y},m=t.computed(()=>{if(o.mode==="simple")return"start";let I=o.align;return I||(o.direction==="vertical"?I="start":I="center"),I}),f=(I,K={})=>{const H={...K};return m.value==="start"&&I===h.value.length-1?H.flex="0 0 auto":o.step?o.direction==="vertical"?H.height=o.step:H.width=o.step:H.flex="1 1 100%",H},V=(I,K)=>{let H={};if(K<h.value.length-1){const M=K+1;p(K)&&p(M)?o.direction==="vertical"?H.height="100%":H.width="100%":H.opacity="0"}return H},R=I=>h.value.length-1===I,L=(I,K)=>{if(o.clickNavigatePolicy==="disabled"||(o.clickNavigatePolicy==="only-back"||o.clickNavigatePolicy==="only-back-reset")&&K>c.value||c.value===K)return;const H=c.value,M=K;c.value=K,o.scroll&&le(K,!1);const Z=hr(o,I);i("update:modelValue",Z);const Y={fromIndex:H,currentIndex:M,item:I,items:h.value,clickNavigatePolicy:o.clickNavigatePolicy};i("change",Z,Y)},N=t.ref(!0),P=async(I,K)=>{try{const H=await s.load("stesbar",I,K);Array.isArray(H)&&(d.value=H),N.value=!1}catch(H){console.error("[FoxUI] Load StepsBar Data Fail",H),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>o.data,()=>o.params],async([I,K])=>{I&&P(I,K)},{immediate:!0});const E=(I,K,H,M,Z)=>{let Y=null;if(r.icon)Y=r.icon({item:I,index:K,status:M});else if(M==="done"){const b={};o.iconSize&&(b.width=o.iconSize,b.height=o.iconSize);const C=o.icon??a;Y=t.h(C,b)}else{const b=H??`${K+1}`;Y=t.h("span",{},[b])}const $={class:"fox-steps-bar__icon",onClick:()=>{Z||L(I,K)}};return t.h("view",$,[Y])},F=(I,K,H)=>{const M=t.h("i",{class:"fox-steps-bar__line-inner",style:V(I,K)});return t.h("view",{class:"fox-steps-bar__line"},[M])},T=()=>{let I=null;if(r.markIcon)I=r.markIcon();else{const H={};o.iconSize&&(H.width=o.markIconSize,H.height=o.markIconSize);const M=o.markIcon??l;I=t.h(M,H)}return t.h("view",{class:"fox-steps-bar__mark"},[I])},z=(I,K,H,M,Z)=>{const Y=[];if(!R(K)){const C=F(I,K);Y.push(C)}const $=E(I,K,H,M,Z);Y.push($);const b={class:"fox-steps-bar__head"};return t.h("view",b,Y)},k=(I,K,H,M)=>{let Z=null;r.main?Z=r.main({item:I,index:K,status:H}):Z=em(o,I);const Y={class:"fox-steps-bar__main",onClick:()=>{M||L(I,K)}};return t.h("view",Y,[Z])},D=(I,K,H)=>{let M=null;if(r.sub){M=r.sub({item:I,index:K,status:H});const Z={class:"fox-steps-bar__sub"};return t.h("view",Z,[M])}return null},x=(I,K)=>{const H=Hl(o,I,K)??{},M=H.status??jl(o,I);let Z=mr(o,I);H.disabled===!0&&(Z=!0),o.disabled===!0&&(Z=!0);const Y=H.label??pr(o,I),$=[],b=E(I,K,Y,M,Z);b&&$.push(b);const C=k(I,K,M,Z);if(C&&$.push(C),!R(K)){const ee=F(I,K);ee&&$.push(ee)}const _=t.h("view",{class:"fox-steps-bar__head"},$),X=H.class,ne=H.style??{};let S=gr(o,I);H.doit===!0&&(S=!0);const W={ref:J(K),class:A(K,M,Z,S,X),style:f(K,ne)};return t.h("view",W,[_])},U=(I,K)=>{const H=Hl(o,I,K)??{},M=H.status??jl(o,I);let Z=mr(o,I);H.disabled===!0&&(Z=!0),o.disabled===!0&&(Z=!0);const Y=H.label??pr(o,I),$=[],b=o.layout;for(let S of b)if(S==="head"){const W=z(I,K,Y,M,Z);$.push(W)}else if(S==="main"){const W=k(I,K,M,Z);$.push(W)}else if(S==="sub"){const W=D(I,K,M);$.push(W)}else if(S==="mark"){const W=T();$.push(W)}const C=H.class,_=H.style??{};let X=gr(o,I);H.doit===!0&&(X=!0);const ne={ref:J(K),class:A(K,M,Z,X,C),style:f(K,_)};return t.h("view",ne,$)},j=t.ref(),Q=t.ref([]),G=(I,K)=>{Q.value[K]=I},J=I=>K=>{G(K,I)},le=(I,K)=>{const H=j.value,M=Q.value;if(!H||!M||!M[I])return;const Z=M[I];let Y=0;o.direction==="vertical"?Y=Z.offsetTop-(H.offsetHeight-Z.offsetHeight)/2:Y=Z.offsetLeft-(H.offsetWidth-Z.offsetWidth)/2,q(H,Y,K?0:.3,o.direction)},q=(I,K,H,M)=>{let Z=0;const Y=M==="horizontal"?I.scrollLeft:I.scrollTop,$=H===0?1:Math.round(H*1e3/16);function b(){M==="horizontal"?I.scrollLeft+=(K-Y)/$:I.scrollTop+=(K-Y)/$,++Z<$&&Pn(b)}b()};return()=>{const I=[];if(o.mode==="simple")for(let H=0;H<h.value.length;H++){const M=h.value[H],Z=x(M,H);I.push(Z)}else for(let H=0;H<h.value.length;H++){const M=h.value[H],Z=U(M,H);I.push(Z)}const K={ref:j,class:g.value,style:y.value};return t.h("view",K,I)}}}}const{componentName:om,create:rm,scope:im}=se("steps-bar"),Kl=rm(am(om,im,So,Bu)),yr=new Date().getFullYear(),sm={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"},br=(e,n,a)=>{let l;if(Je(n)?l=n:typeof n=="string"&&ze(n)>0?l=re.parser(n,a):l=new Date,l.toString()==="Invalid Date")return null;let o=Math.max(l.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),new Date(o)},um=(e,n,a)=>{Je(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),re.format(new Date(l),a)};let cm={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(yr-10,0,1),validator:Je},maxDate:{type:Date,default:()=>new Date(yr+10,11,31),validator:Je},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:fm,scope:dm}=se("date-picker"),hm=fm({components:{Picker:Mt},props:{...cm},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=ve.useFoxI18n(dm),l={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},o=t.ref(!1);t.watch(()=>e.visible,m=>{o.value=m});function r(m,f){return new Date(m,f,0).getDate()}const i=(m,f)=>{const V=e[`${m}Date`],R=V.getFullYear();let L=1,N=1,P=0,E=0;m==="max"&&(L=12,N=r(f.getFullYear(),f.getMonth()+1),P=23,E=59);const F=E;return f.getFullYear()===R&&(L=V.getMonth()+1,f.getMonth()+1===L&&(N=V.getDate(),f.getDate()===N&&(P=V.getHours(),f.getHours()===P&&(E=V.getMinutes())))),{[`${m}Year`]:R,[`${m}Month`]:L,[`${m}Date`]:N,[`${m}Hour`]:P,[`${m}Minute`]:E,[`${m}Seconds`]:F}},u=t.computed(()=>{if(!w.value)return[];const{maxYear:m,maxDate:f,maxMonth:V,maxHour:R,maxMinute:L,maxSeconds:N}=i("max",w.value),{minYear:P,minDate:E,minMonth:F,minHour:T,minMinute:z,minSeconds:k}=i("min",w.value);let D=[{type:"year",range:[P,m]},{type:"month",range:[F,V]},{type:"day",range:[E,f]},{type:"hour",range:[T,R]},{type:"minute",range:[z,L]},{type:"seconds",range:[k,N]}];switch(e.type){case"date":D=D.slice(0,3);break;case"datetime":D=D.slice(0,5);break;case"time":D=D.slice(3,6);break;case"year-month":D=D.slice(0,2);break;case"month-day":D=D.slice(1,3);break;case"datehour":D=D.slice(0,4);break;case"hour-minute":D=D.slice(3,5);break}return D}),s=(m,f,V)=>{if(!(f>m))return null;const R=[];for(;m<=f;)e.isShowChinese?R.push({text:m+l[V],value:m}):R.push({text:`${m}`,value:m}),V==="minute"?m+=e.minuteStep:m++;return R},d=t.computed(()=>{let m=[];return u.value.forEach(f=>{let V=s(f.range[0],f.range[1],f.type);V&&m.push(V)}),m}),h=(m,f)=>m==="year"?f.getFullYear():m==="month"?f.getMonth()+1:m==="day"?f.getDate():m==="hour"?f.getHours():m==="minute"?f.getMinutes():m==="seconds"?f.getSeconds():0,c=t.ref(),w=t.ref(null);t.watch(()=>e.modelValue,m=>{let f;if(typeof m=="string"?m.length==0?f=new Date:e.valueFormat?f=br(e,e.modelValue,e.valueFormat):f=br(e,m,sm[e.type]):Je(m)?f=m:f=new Date,!!f&&(!w.value||f.getTime()!==w.value.getTime())){w.value=f;let V=[];u.value.forEach(R=>{let L=h(R.type,f);V.push(L)}),c.value=V}},{immediate:!0});const O=m=>{if(e.type==="date"){const f=m[0],V=m[1]-1,R=Math.min(m[2],r(f,V+1));R!==m[2]&&(m[2]=R),w.value=new Date(f,V,R)}else if(e.type==="datetime"){const f=m[0],V=m[1]-1,R=Math.min(m[2],r(f,V+1)),L=m[3],N=m[4];R!==m[2]&&(m[2]=R),w.value=new Date(f,V,R,L,N)}else if(e.type==="time"){const f=m[0],V=m[1],R=m[2],L=w.value??new Date,N=new Date(L.getFullYear(),L.getMonth(),L.getDate(),f,V,R);w.value=N}else if(e.type==="year-month"){const f=m[0],V=m[1]-1;w.value=new Date(f,V)}else if(e.type==="month-day"){const V=(w.value??new Date).getFullYear(),R=m[0]-1,L=Math.min(m[1],r(V,R+1));L!==m[1]&&(m[1]=L);const N=new Date(V,R,L);w.value=N}else if(e.type==="datehour"){const f=m[0],V=m[1]-1,R=Math.min(m[2],r(f,V+1)),L=m[3];R!==m[2]&&(m[2]=R),w.value=new Date(f,V,R,L)}else if(e.type==="hour-minute"){const f=m[0],V=m[1],R=w.value??new Date,L=new Date(R.getFullYear(),R.getMonth(),R.getDate(),f,V);w.value=L}c.value=m};return{columns:d,dateIndexs:c,show:o,onChange:m=>{O(m)},onClose:()=>{o.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:m=>{O(m),o.value=!1;let f=w.value??new Date;if(e.valueFormat){let V=um(e,f,e.valueFormat);n("update:modelValue",V)}else n("update:modelValue",f);n("update:visible",!1),n("confirm",m)},onClear:()=>{n("clear")}}}});function mm(e,n,a,l,o,r){const i=t.resolveComponent("Picker");return t.openBlock(),t.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Yl=De(hm,[["render",mm]]),$n=(e,n,a)=>e.map(l=>{const{value:o="value",text:r="text",children:i="children"}=a??{},{[o]:u,[r]:s,[i]:d,...h}=l,c={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return c.children&&c.children.length&&(c.children=$n(c.children,c,a)),c}),vr=(e,n)=>{let a=0,l;for(;(l=e[a++])&&n(l)!==!0;)l.children&&l.children.length&&vr(l.children,n)},gm={topId:null,idKey:"id",pidKey:"pid",sortKey:""},pm=(e,n)=>{const a={...gm,...n||{}},{topId:l,idKey:o,pidKey:r,sortKey:i}=a;let u=[],s={};return e.forEach(d=>{d={...d};const{[o]:h,[r]:c}=d,w=s[c]=s[c]||[];!u.length&&c===l&&(u=w),w.push(d),d.children=s[h]||(s[h]=[])}),i&&Object.keys(s).forEach(d=>{s[d].length>1&&s[d].sort((h,c)=>h[i]-c[i])}),s=null,u};class wr{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=$n(n,null,this.config)}updateChildren(n,a){a?a.children=$n(n,a,this.config):this.nodes=$n(n,null,this.config)}getNodeByValue(n){let a;return vr(this.nodes,l=>{if(l.value===n)return a=l,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let l=this.nodes;for(;l&&l.length;){const o=l.find(r=>r.value===n[r.level]);if(!o)break;a.push(o),l=o.children}return a}isLeaf(n,a){const{leaf:l,children:o}=n,r=Array.isArray(o)&&!!o.length;return l||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:o}=n;return Array.isArray(o)&&!!o.length}}const{create:ym,scope:bm}=se("cascader-pane"),vm=ym({components:{Loading:mn,Checklist:So,TabsBar:Cn,TabsContainer:Tn,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:a}=ve.useFoxI18n(bm),l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),r=t.ref(!1),i=t.ref(e.modelValue),u=t.ref(new wr([],{})),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((m,f)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:f}))),c=new Map;let w;const O=async()=>{c.clear(),s.value=[],o.value=0,r.value=!1,w=null;let{options:m}=e;l.value.convertConfig&&(m=pm(m,l.value.convertConfig)),u.value=new wr(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),d.value&&!u.value.nodes.length&&await g({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:u.value.nodes,selectedNode:null}],p()},p=async()=>{const m=i.value;if(m===void 0||!u.value.nodes.length)return;if(m.length===0){o.value=0,s.value=[{nodes:u.value.nodes,selectedNode:null}];return}let f=m;if(d.value&&Array.isArray(m)&&m.length){f=[];let V=u.value.nodes.find(R=>R.value===m[0]);if(V){f=[V.value],r.value=!0;const R=await m.slice(1).reduce(async(L,N)=>{const P=await L;await g(P);const E=P?.children?.find(F=>F.value===N);return E&&f.push(N),Promise.resolve(E)},Promise.resolve(V));await g(R),r.value=!1}}f.length&&m===e.modelValue&&u.value.getPathNodesByValue(f).map((R,L)=>{o.value=L,A.handleNode(R,!0)})},g=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(u.value.isLeaf(m,d.value)||u.value.hasChildren(m,d.value))return;m.loading=!0;const f=m.root?null:m;let V=c.get(m);V||(V=new Promise(L=>{l.value.lazyLoad?.(m,L)}),c.set(m,V));const R=await V;Array.isArray(R)&&R.length>0?u.value.updateChildren(R,f):m.leaf=!0,m.loading=!1,c.delete(m)},y=m=>{const f=m.map(V=>V.value);i.value=f,n("change",f,m),n("update:modelValue",f,m)},A={async handleNode(m,f){const{disabled:V,loading:R}=m;if(!(!f&&V||!s.value[o.value])){if(u.value.isLeaf(m,d.value)){if(m.leaf=!0,s.value[o.value].selectedNode=m,s.value=s.value.slice(0,m.level+1),!f){const L=s.value.map(N=>N.selectedNode);y(L),n("pathChange",L)}return}if(u.value.hasChildren(m,d.value)){const L=m.level+1;if(s.value[o.value].selectedNode=m,s.value=s.value.slice(0,L),s.value.push({nodes:m.children||[],selectedNode:null}),o.value=L,!f){const N=s.value.map(P=>P.selectedNode);n("pathChange",N)}return}w=m,!R&&(await g(m),w===m&&(s.value[o.value].selectedNode=m,A.handleNode(m,f)))}},handleTabChange(m,f){w=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,f){return m.selectedNode&&m.selectedNode.value===f.value}};return t.watch([l,()=>e.options],()=>{O()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{m!==i.value&&(i.value=m,p())}),t.watch(()=>e.visible,m=>{m&&Array.isArray(i.value)&&i.value.length>0&&p()}),{panes:s,panesTitles:h,initLoading:r,tabsCursor:o,...A}}}),wm={class:"fox-cascader"},Sm={role:"menu",class:"fox-cascader__pane"},Cm=["aria-checked","aria-disabled","onClick"],Tm={class:"fox-cascader__item__title"},xm=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function $m(e,n,a,l,o,r){const i=t.resolveComponent("TabsBar"),u=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),h=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",wm,[t.createVNode(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(h,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=c=>e.tabsCursor=c)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(c,w)=>(t.openBlock(),t.createBlock(d,{"pane-key":w,key:w},{default:t.withCtx(()=>[t.createElementVNode("view",Sm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.nodes,O=>(t.openBlock(),t.createElementBlock("view",{key:O.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(c,O),disabled:O.disabled}]),"aria-checked":e.isSelected(c,O),"aria-disabled":O.disabled||void 0,role:"menuitemradio",onClick:p=>e.handleNode(O,!1)},[t.createElementVNode("view",Tm,t.toDisplayString(O.text),1),O.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,Cm))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(d,{key:1,"pane-key":0},{default:t.withCtx(()=>[xm]),_:1}))]),_:1},8,["modelValue"])])}const km=De(vm,[["render",$m]]),{create:Dm}=se("cascader-picker"),Nm=Dm({components:{FoxCascaderPane:km,FoxPopup:it},props:{...gl,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue),l=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),o=(i,u)=>{a.value=i,l.value=!1,n("change",i,u),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==a.value&&(a.value=i)}),{onChange:o,onPathChange:r,innerValue:a,innerVisible:l}}}),Em=["innerHTML"];function Vm(e,n,a,l,o,r){const i=t.resolveComponent("FoxCascaderPane"),u=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(u,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Em)):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 Wl=De(Nm,[["render",Vm]]),Im=Symbol.for("InnerPageScopeKey"),Om=Symbol.for("PageWrapperKey");function Am(e,n){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(a,l){t.provide(Im,!0);const o={};t.provide(Om,o);const r=s=>{typeof o.beforeClose=="function"&&o.beforeClose()},i=t.ref(!0),u=s=>{i.value=s};return()=>{const d={...l.attrs,title:a.title,draggable:a.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":r},h={};if(typeof l.slots.default=="function"){const c=l.slots.default();h.default=()=>c}return t.h(B.ElDialog,d,h)}}}}const{componentName:gp,create:Fm,scope:pp}=se("dialog-item"),Ul=Fm(Am()),{create:Bm}=se("toast"),Mm=Bm({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const o=()=>{a&&(clearTimeout(a),a=null)},r=()=>{l.mounted=!1},i=()=>{o(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},u=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,O=>{O&&i()});const s=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const O=me(e.iconSize);return t.h(e.icon,{width:O,height:O,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]),c=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:c,onAfterLeave:()=>{o(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Rm={key:1,class:"fox-toast-title"},Lm=["innerHTML"];function _m(e,n,a,l,o,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Rm,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Lm)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Gl=De(Mm,[["render",_m]]),Pm={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}},qm=(e,n,a)=>({props:{...Pm},emits:["change","refresh","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["pullingText","loosingText","loadingText"]),s=Pl(),d=t.ref(),h=Xo(d),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),w=t.computed(()=>({[e]:!0})),O=t.computed(()=>{switch(c.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:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),g=t.computed(()=>{const N={};return l.headHeight!=50&&(N.height=Ae(l.headHeight)),N}),y=N=>{const P=+(l.pullDistance||l.headHeight);let E=N;return N>P&&(N<P*2?E=(N+P)/2:E=P+N/4),Math.round(E)},A=(N,P)=>{const E=+(l.pullDistance||l.headHeight);c.distance=N,P?c.status="loading":N===0?c.status="normal":N<E?c.status="pulling":c.status="loosing",o("change",{status:c.status,distance:N})},m=()=>c.status!=="loading"&&c.status!=="complete",f=()=>h.value==window?Zo()==0:h.value&&h.value.scrollTop==0,V=N=>{m()&&(f()?(s.start(N),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},R=N=>{m()&&c.moving&&(s.move(N),s.isVertical()&&s.state.deltaY>0&&c.isPullRefresh&&(N.cancelable&&N.preventDefault(),A(y(s.state.deltaY))))},L=()=>{c.moving=!1,c.isPullRefresh&&m()&&s.state.deltaY&&(c.status==="loosing"?(A(+l.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):A(0)),setTimeout(()=>{s.reset()},0)};return t.watch(()=>l.modelValue,N=>{N?A(+l.headHeight,!0):A(0)}),()=>{const N=[];let P=null;if(c.status==="loading"){if(P=r?.loading?.()??null,!P){const U={class:["fox-pull-refresh-container-topbox-icon"]};P=t.h(a,U)}}else c.status==="pulling"?P=r?.pulling?.()??null:c.status==="loosing"&&(P=r?.loosing?.()??null);P&&N.push(P);const E={class:["fox-pull-refresh-container-topbox-text"]},F=t.h("dive",E,[O.value]);N.push(F);const T={class:["fox-pull-refresh-container-topbox"],style:g.value},z=t.h("div",T,N),k={class:"fox-pull-refresh-container",style:p.value},D=t.h("div",k,[z,r?.default?.()]),x={ref:d,class:w.value};return _l()?Object.assign(x,{onTouchstart:V,onTouchmove:R,onTouchend:L}):Object.assign(x,{onMousedown:V,onMousemove:R,onMouseup:L}),t.h("div",x,[D])}}}),{componentName:zm,create:jm,scope:Hm}=se("pull-refresh"),Xl=jm(qm(zm,Hm,mn));function Km(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(a,{slots:l}){const o=e,r=t.computed(()=>({[o]:!0})),i=t.computed(()=>a.icon?{[`${o}__icon`]:!0,[`${o}__icon-${a.type}`]:!0}:{[`${o}__mark`]:!0,[`${o}__mark-${a.type}`]:!0}),u=t.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),s=t.computed(()=>{const h={[`${o}__text`]:!0,[`${o}__text-${a.type}`]:!0};return a.textPosition==="left"?h["is-left"]=!0:h["is-right"]=!0,h}),d=t.computed(()=>a.color?{color:a.color}:null);return()=>{let h=null;if(l.mark)h=l.mark()[0];else{const g={class:i.value,style:u.value};h=t.h(a.icon??"div",g)}const c={class:s.value,style:d.value},w=l.default?l.default():[],O=t.h("div",c,w),p={class:r.value};return a.textPosition==="right"?t.h("div",p,[h,O]):t.h("div",p,[O,h])}}}}const{componentName:Ym,create:Wm,scope:yp}=se("indicator"),Zl=Wm(Km(Ym));function Um(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(o)},500)}const Gm={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 Xm(e,n,a,l=!1){return{props:{...Gm},emits:["click"],setup(o,r){const i=t.ref(null),u=t.computed(()=>{const f={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(f[`${e}--${o.type??"default"}`]=!0),o.size&&(f[`${e}--${o.size}`]=!0),f}),s=t.computed(()=>{const f={},V=o.textColor??o.color;return V&&(f.color=V),f}),d=(f,V)=>{let R=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const L=o.highlightFilter;if(f.indexOf(L)!==-1){const P=f.replace(new RegExp(L,"g"),`<span>${L}</span>`);V.innerHTML=P,V.class["is-highlight"]=!0,R=t.h(o.tag,V)}}else if(typeof o.highlightFilter=="function"){const L=o.highlightFilter(f);L&&(V.innerHTML=L,V.class["is-highlight"]=!0,R=t.h(o.tag,V))}return R},h=f=>{r.emit("click",f)};let c="";const w=()=>{const f=i.value;if(!f)return;const V=f.clientWidth;Um(f,R=>{const L=f.innerHTML??"";pe(L)||R<V||(c?a?.show(f,L,{type:"text",id:c,showArrow:o.showArrow},!0):c=a?.show(f,L,{type:"text",showArrow:o.showArrow},!0)??"")})},O=()=>{c&&a?.hide(c)};let p=null;const g=f=>{p||(p=setTimeout(()=>{w(),p=null},o.showAfter??0))},y=f=>{p&&(clearTimeout(p),p=null),setTimeout(()=>{O()},o.hideAfter??0)},A=()=>{const f=i.value;f&&(f.addEventListener("mouseover",g),f.addEventListener("mouseleave",y))},m=()=>{const f=i.value;f&&(f.removeEventListener("mouseover",g),f.removeEventListener("mouseleave",y))};return t.onMounted(()=>{!ce(o.showOverflowTooltip)||!a||A()}),t.onBeforeUnmount(()=>{!ce(o.showOverflowTooltip)||!a||m()}),()=>{const f={onClick:h,class:u.value,style:s.value,ref:i};let V=null;if(ce(o.numberFormat)&&typeof r.slots.default=="function"){const P=r.slots.default();if(Array.isArray(P)&&P.length===1){const E=P[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const F=he(o.digits),T=he(o.decimalLength),z=ce(o.autoPadding);let k=`${P[0].children}`,D=k.split("").reverse().join("");D=zt(D,T,z,F,o.separator),k=D.split("").reverse().join(""),o.highlightFilter!==void 0&&(V=d(k,f)),V||(f.innerHTML=k,V=t.h(o.tag,f))}}}else{if(o.highlightFilter!==void 0&&typeof r.slots.default=="function"){const P=r.slots.default();if(Array.isArray(P)&&P.length===1){const E=P[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const F=`${P[0].children}`;V=d(F,f),V||(f.innerHTML=F,V=t.h(o.tag,f))}}}V||(V=t.h(o.tag,f,{default:r.slots.default}))}if(!o.mark&&!o.icon&&!r.slots.mark)return V;let L=null;if(o.icon){const P={[`${e}__mark-wrap`]:!0};o.type&&(P[`${e}__mark-wrap--${o.type}`]=!0);const E={},F=o.color;F&&(E.color=F);const T={class:P,style:E};L=t.h("view",T,t.h(o.icon))}else if(r.slots.mark){const P={[`${e}__mark-wrap`]:!0};o.type&&(P[`${e}__mark-wrap--${o.type}`]=!0);const E={},F=o.color;F&&(E.color=F);const T={class:P,style:E};L=t.h("view",T,{default:r.slots.mark})}else{const P={[`${e}__mark`]:!0};o.type&&(P[`${e}__mark--${o.type??"default"}`]=!0);const E={},F=o.color;F&&(E["background-color"]=F);const T={class:P,style:E};L=t.h("view",T)}const N={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}};return t.h("view",N,[L,V])}}}}const{componentName:Zm,create:Jm,scope:Qm}=se("text"),Jl=Jm(Xm(Zm,Qm,Be,!1)),eg={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:xe.ArrowUp}};function tg(e,n,a){return{props:{...eg},emits:["click","update:modelValue"],setup(l,{emit:o}){const r=t.computed(()=>{const c={[`${e}`]:!0};return l.disabled?c[`${e}__disabled`]=!0:c[`${e}__${l.type}`]=!0,c}),i=de(l,"modelValue"),u=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),h=()=>{o("update:modelValue",!i.value)};return()=>{const c=[];if(u.value){const g={class:s.value},y=t.h("span",g,[u.value]);c.push(y)}const w={class:d.value},O=a(l.icon,w);return O&&c.push(O),t.h("div",{class:r.value,onClick:h},c)}}}}const{componentName:ng,create:lg,scope:ag}=se("more-button"),Ql=lg(tg(ng,ag,(e,n)=>(e=e??xe.ArrowUp,t.h(B.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:og,create:rg,scope:vp}=se("tour"),ig=rg({components:{Close:xe.Close,ElPopover:B.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=og,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),r=t.computed(()=>`${a}`),i=t.computed(()=>{const{offset:p,maskWidth:g,maskHeight:y}=e,{width:A,height:m,left:f,top:V}=o.value,R=e.steps[l.active].offset??p,L=[f+A/2,V+m/2],N=Number(g||A),P=Number(y||m);return{width:`${N+ +R.left+R.right}px`,height:`${P+R.top+R.bottom}px`,top:`${L[1]-P/2-+R.top}px`,left:`${L[0]-N/2-+R.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}`),g=Ll(p);o.value={x:g.left,y:g.top,top:g.top,left:g.left,width:g.width,height:g.height}},c=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},w=()=>{e.closeOnClickOverlay&&c()},O=(p,g=0)=>{p&&h(),e.steps,l.active=g,l.showTour=p,l.showPopup=p};return t.onMounted(()=>{O(e.modelValue,e.current)}),t.watch(()=>e.modelValue,p=>{O(p)}),{...t.toRefs(l),classes:r,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:d,close:c,handleClickMask:w}}}),sg={key:0,class:"fox-tour__content"},ug={key:0,class:"fox-tour__content-top"},cg={class:"fox-tour__content-inner"},fg={class:"fox-tour__content-bottom"},dg={class:"fox-tour__content-bottom-init"},hg={class:"fox-tour__content-bottom-operate"},mg={key:1,class:"fox-tour__content fox-tour__content-tile"},gg={class:"fox-tour__content-inner"};function pg(e,n,a,l,o,r){const i=t.resolveComponent("Close"),u=t.resolveComponent("fox-button"),s=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:{height:"0"}},[h==e.active?(t.openBlock(),t.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",sg,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",ug,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...c)=>e.close&&e.close(...c))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",cg,t.toDisplayString(d.content),1),t.createElementVNode("div",fg,[t.createElementVNode("div",dg,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",hg,[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]=c=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(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]=c=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",mg,[t.createElementVNode("div",gg,t.toDisplayString(d.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const ea=De(ig,[["render",pg]]),Me=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ct=e=>e==null;class yg{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=_l()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=Pl(),l=(o,r,i,u)=>{this.updateMove({x:o,y:r})};this.touchstart=o=>{this.moving||(a.start(o),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=o=>{this.moving&&(a.move(o),l(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{l(a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},this.els.forEach(o=>{this.touchstart&&o.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Sr(e,n){return new yg(e,n)}var Cr;const ta=typeof window<"u";ta&&((Cr=window?.navigator)!=null&&Cr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let St=[];const Tr=e=>{const n=e;n.key==="Escape"&&St.forEach(a=>a(n))},bg=e=>{t.onMounted(()=>{St.length===0&&document.addEventListener("keydown",Tr),ta&&St.push(e)}),t.onBeforeUnmount(()=>{St=St.filter(n=>n!==e),St.length===0&&ta&&document.removeEventListener("keydown",Tr)})},na="fox-focus-trap.focus-after-trapped",la="fox-focus-trap.focus-after-released",vg="fox-focus-trap.focusout-prevented",xr={cancelable:!0,bubbles:!1},wg={cancelable:!0,bubbles:!1},$r="foxFocusAfterTrapped",kr="foxFocusAfterReleased",Sg=Symbol("foxFocusTrap"),aa=t.ref(),kn=t.ref(0),oa=t.ref(0);let Dn=0;const Dr=e=>{const n=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)n.push(a.currentNode);return n},Cg=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Nr=(e,n)=>{for(const a of e)if(!Cg(a,n))return a},Tg=e=>{const n=Dr(e),a=Nr(n,e),l=Nr(n.reverse(),e);return[a,l]},xg=e=>e instanceof HTMLInputElement&&"select"in e,tt=(e,n)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),oa.value=window.performance.now(),e!==a&&xg(e)&&n&&e.select()}};function Er(e,n){const a=[...e],l=e.indexOf(n);return l!==-1&&a.splice(l,1),a}const $g=()=>{let e=[];return{push:l=>{const o=e[0];o&&l!==o&&o.pause(),e=Er(e,l),e.unshift(l)},remove:l=>{e=Er(e,l),e[0]?.resume?.()}}},kg=(e,n=!1)=>{const a=document.activeElement;for(const l of e)if(tt(l,n),document.activeElement!==a)return},Vr=$g(),Dg=()=>kn.value>oa.value,Nn=()=>{aa.value="pointer",kn.value=window.performance.now()},Ir=()=>{aa.value="keyboard",kn.value=window.performance.now()},Ng=()=>(t.onMounted(()=>{Dn===0&&(document.addEventListener("mousedown",Nn),document.addEventListener("touchstart",Nn),document.addEventListener("keydown",Ir)),Dn++}),t.onBeforeUnmount(()=>{Dn--,Dn<=0&&(document.removeEventListener("mousedown",Nn),document.removeEventListener("touchstart",Nn),document.removeEventListener("keydown",Ir))}),{focusReason:aa,lastUserFocusTimestamp:kn,lastAutomatedFocusTimestamp:oa}),En=e=>new CustomEvent(vg,{...wg,detail:e}),{componentName:wp,create:Eg,scope:Sp}=se("focus-trap"),Vg=Eg({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[$r,kr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:a}){const l=t.ref();let o,r;const{focusReason:i}=Ng();bg(g=>{ce(e.trapped)&&!u.paused&&a("release-requested",g)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=g=>{if(!e.loop&&!ce(e.trapped)||u.paused)return;const{key:y,altKey:A,ctrlKey:m,metaKey:f,currentTarget:V,shiftKey:R}=g,{loop:L}=e,N=y==="Tab"&&!A&&!m&&!f,P=document.activeElement;if(N&&P){const E=V,[F,T]=Tg(E);if(F&&T){if(!R&&P===T){const k=En({focusReason:i.value});a("focusout-prevented",k),k.defaultPrevented||(g.preventDefault(),L&&tt(F,!0))}else if(R&&[F,E].includes(P)){const k=En({focusReason:i.value});a("focusout-prevented",k),k.defaultPrevented||(g.preventDefault(),L&&tt(T,!0))}}else if(P===E){const k=En({focusReason:i.value});a("focusout-prevented",k),k.defaultPrevented||g.preventDefault()}}};t.provide(Sg,{focusTrapRef:l,onKeydown:s}),t.watch(()=>e.focusTrapEl,g=>{g&&(l.value=g)},{immediate:!0}),t.watch([l],([g],[y])=>{g&&(g.addEventListener("keydown",s),g.addEventListener("focusin",c),g.addEventListener("focusout",w)),y&&(y.removeEventListener("keydown",s),y.removeEventListener("focusin",c),y.removeEventListener("focusout",w))});const d=g=>{a($r,g)},h=g=>a(kr,g),c=g=>{const y=t.unref(l);if(!y)return;const A=g.target,m=g.relatedTarget,f=A&&y.contains(A);ce(e.trapped)||m&&y.contains(m)||(o=m),f&&a("focusin",g),!u.paused&&ce(e.trapped)&&(f?r=A:tt(r,!0))},w=g=>{const y=t.unref(l);if(!(u.paused||!y))if(!e.escape&&ce(e.trapped)){const A=g.relatedTarget;!Kn(A)&&!y.contains(A)&&setTimeout(()=>{if(!u.paused&&ce(e.trapped)){const m=En({focusReason:i.value});a("focusout-prevented",m),m.defaultPrevented||tt(r,!0)}},0)}else{const A=g.target;A&&y.contains(A)||a("focusout",g)}};async function O(){await t.nextTick();const g=t.unref(l);if(g){Vr.push(u);const y=g.contains(document.activeElement)?o:document.activeElement;if(o=y,!g.contains(y)){const m=new Event(na,xr);g.addEventListener(na,d),g.dispatchEvent(m),m.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;va(f)||(tt(f),document.activeElement!==f&&(f="first")),f==="first"&&kg(Dr(g),!0),(document.activeElement===y||f==="container")&&tt(g)})}}}function p(){const g=t.unref(l);if(g){g.removeEventListener(na,d);const y=new CustomEvent(la,{...xr,detail:{focusReason:i.value}});g.addEventListener(la,h),g.dispatchEvent(y),!y.defaultPrevented&&(i.value=="keyboard"||!Dg())&&tt(o??document.body,!0),g.removeEventListener(la,d),Vr.remove(u)}}return t.onMounted(()=>{ce(e.trapped)&&O(),t.watch(()=>e.trapped,g=>{ce(g)?O():p()})}),t.onBeforeUnmount(()=>{ce(e.trapped)&&p()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:Ig,create:Og,scope:Tp}=se("floating-window"),Ag=Symbol.for("InnerPageScopeKey"),Fg=Symbol.for("PageWrapperKey"),Bg={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}},Mg=Og({inheritAttrs:!1,components:{FoxIcon:B.ElIcon,FocusTrap:Vg},props:{...Bg},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const a=Ig,l=t.ref(e.modelValue),o=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,S=>{l.value=S});const r=t.computed(()=>l.value===!1?!1:!P.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 S=["fox-floating-window"];return e.customClass&&S.push(e.customClass),S}),c=t.computed(()=>{const S={};return ct(i.value)?S.left="auto":S.left=Me(i.value),ct(u.value)?S.top="auto":S.top=Me(u.value),ct(s.value)?S.right="auto":S.right=Me(s.value),ct(d.value)?S.bottom="auto":S.bottom=Me(d.value),ct(e.zIndex)||(S["z-index"]=Me(e.zIndex)),ct(L.value)||(S.height=L.value),ct(N.value)||(S.width=N.value),S}),w=t.computed(()=>e.closeIcon??xe.Close),O=t.computed(()=>e.collapseIcon??xe.ArrowUp),p=t.computed(()=>e.collapseText??""),g=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??xe.ArrowRight:e.expandIcon??xe.ArrowLeft),y=t.computed(()=>e.expandText??e.title??"展开"),A=t.computed(()=>({[`${a}__collapse-text`]:!0})),m=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),f=t.ref(),V=t.ref(null),R=t.ref(null),L=t.computed(()=>Me(e.height)||""),N=t.computed(()=>Me(e.width)||""),P=t.ref(ce(e.collapse)),E=(S,W=!0)=>{P.value!==S&&(P.value=S,S?I():K(),n("update:collapse",S),S&&typeof z.onHide=="function"?z.onHide():!S&&typeof z.onShow=="function"&&z.onShow())};t.watch(()=>e.collapse,S=>{E(S)});const F=()=>{T()},T=S=>{S=S??!P.value,E(S)};t.provide(Ag,!0);const z={setCollapse:E,setFixedNavVisible:S=>{J.value=S}};t.provide(Fg,z);const k=()=>{typeof z.beforeClose=="function"?z.beforeClose(()=>{l.value=!1}):l.value=!1},D=t.ref(null),x=t.computed(()=>!e.fixedNavTeleport),U=t.computed(()=>{const S=["fox-floating-window__fixednav"];return e.expandClass&&S.push(e.expandClass),e.collapsePosition==="left"?S.push("is-left"):e.collapsePosition==="right"&&S.push("is-right"),S}),j=t.ref(""),Q=t.computed(()=>{const S={};return j.value?S.top=j.value:e.collapseTop&&(S.top=e.collapseTop),S}),G=t.ref(P.value),J=t.computed({set:S=>{G.value=S},get:()=>l.value===!1?!1:G.value});let le=null;const q=()=>{typeof le=="function"&&(le(),le=null)},I=()=>{D.value&&D.value.classList.add("slide-in"),J.value=!0,le=()=>{D.value&&D.value.classList.remove("slide-in")}},K=()=>{D.value&&D.value.classList.add("slide-out"),le=()=>{D.value&&D.value.classList.remove("slide-out"),J.value=!1}},H=()=>{i.value=null,u.value=null,s.value=null,d.value=null},M={x:0,y:0},$=Sr(S=>{if(!f.value)return;const W=f.value;if(H(),e.origin==="left-top")i.value=W.offsetLeft,u.value=W.offsetTop,M.x=i.value,M.y=u.value;else if(e.origin==="left-bottom"){const ee=document.documentElement.clientHeight||document.body.clientHeight;i.value=W.offsetLeft,d.value=ee-(W.offsetTop+W.offsetHeight),M.x=i.value,M.y=d.value}else if(e.origin==="right-bottom"){const ee=document.documentElement.clientWidth||document.body.clientWidth,ae=document.documentElement.clientHeight||document.body.clientHeight;s.value=ee-(W.offsetLeft+W.offsetWidth),d.value=ae-(W.offsetTop+W.offsetHeight),M.x=s.value,M.y=d.value}else{const ee=document.documentElement.clientWidth||document.body.clientWidth;s.value=ee-(W.offsetLeft+W.offsetWidth),u.value=W.offsetTop,M.x=s.value,M.y=u.value}},S=>{if(!f.value)return;const W=f.value;H(),e.origin==="left-top"?(i.value=M.x+S.x,u.value=M.y+S.y,W.style.left=Me(i.value),W.style.top=Me(u.value)):e.origin==="left-bottom"?(i.value=M.x+S.x,d.value=M.y-S.y,W.style.left=Me(i.value),W.style.bottom=Me(d.value)):e.origin==="right-bottom"?(s.value=M.x-S.x,d.value=M.y-S.y,W.style.right=Me(s.value),W.style.bottom=Me(d.value)):(s.value=M.x-S.x,u.value=M.y+S.y,W.style.right=Me(s.value),W.style.top=Me(u.value))}),b={x:0,y:0},X=Sr(S=>{D.value&&(b.x=D.value.offsetLeft,b.y=D.value.offsetTop)},S=>{if(!D.value)return;const W=b.y+S.y;j.value=`${W}px`}),ne=()=>{if(f.value){const S=f.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");R.value=S}};return t.onMounted(()=>{if(e.draggable&&f.value){const S=[];V.value&&S.push(V.value),e.footerDraggable&&(ne(),R.value&&S.push(R.value)),$.open(S)}e.collapse===!0&&E(e.collapse,!1),D.value&&X.open(D.value)}),t.onBeforeUnmount(()=>{e.draggable&&V.value&&$.close(),D.value&&X.close()}),{classes:h,styles:c,isShow:r,closeIcon:w,onClose:k,dialogRef:f,headerRef:V,onClickToggle:F,collapseIcon:O,collapseText:p,collapseTextClasses:A,collapseIconClasses:m,expandIcon:g,expandText:y,isShowFixedNav:J,fixedNavRef:D,fixedNavClasses:U,fixedNavStyles:Q,onAnimationEnd:q,teleportDisabled:o,fixedNavTeleportDisabled:x}}}),Rg={ref:"headerRef",class:"fox-floating-window__header"},Lg={class:"fox-floating-window__title"},_g={class:"fox-floating-window__tools"},Pg={class:"fox-floating-window__body"},qg={class:"fox-floating-window__fixednav__text"};function zg(e,n,a,l,o,r){const i=t.resolveComponent("FoxIcon"),u=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",Rg,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Lg,t.toDisplayString(e.title),1),t.createElementVNode("div",_g,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...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",Pg,[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",qg,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ra=De(Mg,[["render",zg]]);function jg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:l}){return Ra(a.name,()=>a.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:xp,create:Hg,scope:$p}=se("domain-provider"),ia=Hg(jg()),Kg={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 Yg(e,n){return{inheritAttrs:!1,props:Kg,setup(a,{slots:l}){if(ot&&window.IntersectionObserver){const o=new WeakMap;let r=new Map;const i=(w,O)=>{if(h===null){r.set(w,{visible:null,callback:O});return}o.has(w)&&h.unobserve(w),o.set(w,{visible:null,callback:O}),h.observe(w)},u=w=>{if(h===null){r.delete(w);return}o.has(w)&&(o.delete(w),h.unobserve(w))};let s=a.initialVisibleObserverSize;Ri({acquire:()=>{const w=s>0;return s--,w},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:i,unobserve:u});let h=null;const c=(w,O,p)=>{h=new IntersectionObserver(g=>{for(let y of g){let A=!1;y.intersectionRatio>0&&(A=!0);const m=o.get(y.target);if(m)try{if(a.loadPolicy==="lazy"&&!A&&m.visible!==null)return;m.visible=A,m.callback(A)}catch(f){console.error(f)}}},{root:w,rootMargin:O,threshold:p}),r.forEach((g,y)=>{o.set(y,g),h?.observe(y)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([w,O])=>{if(O||!w||h)return;let p=null;typeof w=="string"?p=document.querySelector(w):p=w,p&&c(p,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:kp,create:Wg,scope:Dp}=se("rolling-provider"),sa=Wg(Yg()),Ug=[Qn,tl,nl,ll,rl,Se,ul,cl,It,fl,dl,hl,yl,bl,vl,wl,Sl,Tl,xl,$l,kl,pn,El,Vl,Il,Ol,Al,Fl,Bl,Sn,Ml,zl,Cn,Tn,xn,Kl,Mt,Yl,gn,Wl,Ul,hn,it,Gl,wn,vn,Xl,Ft,fn,Zl,Jl,Ql,ea,ra,ia,sa],Gg=new mi(Ug,[yi],"4.0.0");Object.defineProperty(v,"FoxAffix",{enumerable:!0,get:()=>B.ElAffix}),Object.defineProperty(v,"FoxAlert",{enumerable:!0,get:()=>B.ElAlert}),Object.defineProperty(v,"FoxAside",{enumerable:!0,get:()=>B.ElAside}),Object.defineProperty(v,"FoxAutoResizer",{enumerable:!0,get:()=>B.ElAutoResizer}),Object.defineProperty(v,"FoxAutocomplete",{enumerable:!0,get:()=>B.ElAutocomplete}),Object.defineProperty(v,"FoxAvatar",{enumerable:!0,get:()=>B.ElAvatar}),Object.defineProperty(v,"FoxBacktop",{enumerable:!0,get:()=>B.ElBacktop}),Object.defineProperty(v,"FoxBadge",{enumerable:!0,get:()=>B.ElBadge}),Object.defineProperty(v,"FoxBreadcrumb",{enumerable:!0,get:()=>B.ElBreadcrumb}),Object.defineProperty(v,"FoxBreadcrumbItem",{enumerable:!0,get:()=>B.ElBreadcrumbItem}),Object.defineProperty(v,"FoxButton",{enumerable:!0,get:()=>B.ElButton}),Object.defineProperty(v,"FoxButtonGroup",{enumerable:!0,get:()=>B.ElButtonGroup}),Object.defineProperty(v,"FoxCalendar",{enumerable:!0,get:()=>B.ElCalendar}),Object.defineProperty(v,"FoxCard",{enumerable:!0,get:()=>B.ElCard}),Object.defineProperty(v,"FoxCarousel",{enumerable:!0,get:()=>B.ElCarousel}),Object.defineProperty(v,"FoxCarouselItem",{enumerable:!0,get:()=>B.ElCarouselItem}),Object.defineProperty(v,"FoxCascader",{enumerable:!0,get:()=>B.ElCascader}),Object.defineProperty(v,"FoxCascaderPanel",{enumerable:!0,get:()=>B.ElCascaderPanel}),Object.defineProperty(v,"FoxCheckTag",{enumerable:!0,get:()=>B.ElCheckTag}),Object.defineProperty(v,"FoxCheckbox",{enumerable:!0,get:()=>B.ElCheckbox}),Object.defineProperty(v,"FoxCheckboxButton",{enumerable:!0,get:()=>B.ElCheckboxButton}),Object.defineProperty(v,"FoxCheckboxGroup",{enumerable:!0,get:()=>B.ElCheckboxGroup}),Object.defineProperty(v,"FoxCol",{enumerable:!0,get:()=>B.ElCol}),Object.defineProperty(v,"FoxCollapse",{enumerable:!0,get:()=>B.ElCollapse}),Object.defineProperty(v,"FoxCollapseItem",{enumerable:!0,get:()=>B.ElCollapseItem}),Object.defineProperty(v,"FoxCollapseTransition",{enumerable:!0,get:()=>B.ElCollapseTransition}),Object.defineProperty(v,"FoxColorPicker",{enumerable:!0,get:()=>B.ElColorPicker}),Object.defineProperty(v,"FoxConfigProvider",{enumerable:!0,get:()=>B.ElConfigProvider}),Object.defineProperty(v,"FoxContainer",{enumerable:!0,get:()=>B.ElContainer}),Object.defineProperty(v,"FoxDatePicker",{enumerable:!0,get:()=>B.ElDatePicker}),Object.defineProperty(v,"FoxDescriptions",{enumerable:!0,get:()=>B.ElDescriptions}),Object.defineProperty(v,"FoxDescriptionsItem",{enumerable:!0,get:()=>B.ElDescriptionsItem}),Object.defineProperty(v,"FoxDialog",{enumerable:!0,get:()=>B.ElDialog}),Object.defineProperty(v,"FoxDivider",{enumerable:!0,get:()=>B.ElDivider}),Object.defineProperty(v,"FoxDrawer",{enumerable:!0,get:()=>B.ElDrawer}),Object.defineProperty(v,"FoxDropdown",{enumerable:!0,get:()=>B.ElDropdown}),Object.defineProperty(v,"FoxDropdownItem",{enumerable:!0,get:()=>B.ElDropdownItem}),Object.defineProperty(v,"FoxDropdownMenu",{enumerable:!0,get:()=>B.ElDropdownMenu}),Object.defineProperty(v,"FoxEmpty",{enumerable:!0,get:()=>B.ElEmpty}),Object.defineProperty(v,"FoxFooter",{enumerable:!0,get:()=>B.ElFooter}),Object.defineProperty(v,"FoxForm",{enumerable:!0,get:()=>B.ElForm}),Object.defineProperty(v,"FoxFormItem",{enumerable:!0,get:()=>B.ElFormItem}),Object.defineProperty(v,"FoxHeader",{enumerable:!0,get:()=>B.ElHeader}),Object.defineProperty(v,"FoxIcon",{enumerable:!0,get:()=>B.ElIcon}),Object.defineProperty(v,"FoxImage",{enumerable:!0,get:()=>B.ElImage}),Object.defineProperty(v,"FoxImageViewer",{enumerable:!0,get:()=>B.ElImageViewer}),Object.defineProperty(v,"FoxInput",{enumerable:!0,get:()=>B.ElInput}),Object.defineProperty(v,"FoxInputNumber",{enumerable:!0,get:()=>B.ElInputNumber}),Object.defineProperty(v,"FoxLink",{enumerable:!0,get:()=>B.ElLink}),Object.defineProperty(v,"FoxMain",{enumerable:!0,get:()=>B.ElMain}),Object.defineProperty(v,"FoxMenu",{enumerable:!0,get:()=>B.ElMenu}),Object.defineProperty(v,"FoxMenuItem",{enumerable:!0,get:()=>B.ElMenuItem}),Object.defineProperty(v,"FoxMenuItemGroup",{enumerable:!0,get:()=>B.ElMenuItemGroup}),Object.defineProperty(v,"FoxOption",{enumerable:!0,get:()=>B.ElOption}),Object.defineProperty(v,"FoxOptionGroup",{enumerable:!0,get:()=>B.ElOptionGroup}),Object.defineProperty(v,"FoxPageHeader",{enumerable:!0,get:()=>B.ElPageHeader}),Object.defineProperty(v,"FoxPagination",{enumerable:!0,get:()=>B.ElPagination}),Object.defineProperty(v,"FoxPopconfirm",{enumerable:!0,get:()=>B.ElPopconfirm}),Object.defineProperty(v,"FoxPopover",{enumerable:!0,get:()=>B.ElPopover}),Object.defineProperty(v,"FoxPopper",{enumerable:!0,get:()=>B.ElPopper}),Object.defineProperty(v,"FoxProgress",{enumerable:!0,get:()=>B.ElProgress}),Object.defineProperty(v,"FoxRadio",{enumerable:!0,get:()=>B.ElRadio}),Object.defineProperty(v,"FoxRadioButton",{enumerable:!0,get:()=>B.ElRadioButton}),Object.defineProperty(v,"FoxRadioGroup",{enumerable:!0,get:()=>B.ElRadioGroup}),Object.defineProperty(v,"FoxRate",{enumerable:!0,get:()=>B.ElRate}),Object.defineProperty(v,"FoxResult",{enumerable:!0,get:()=>B.ElResult}),Object.defineProperty(v,"FoxRow",{enumerable:!0,get:()=>B.ElRow}),Object.defineProperty(v,"FoxScrollbar",{enumerable:!0,get:()=>B.ElScrollbar}),Object.defineProperty(v,"FoxSelect",{enumerable:!0,get:()=>B.ElSelect}),Object.defineProperty(v,"FoxSelectV2",{enumerable:!0,get:()=>B.ElSelectV2}),Object.defineProperty(v,"FoxSkeleton",{enumerable:!0,get:()=>B.ElSkeleton}),Object.defineProperty(v,"FoxSkeletonItem",{enumerable:!0,get:()=>B.ElSkeletonItem}),Object.defineProperty(v,"FoxSlider",{enumerable:!0,get:()=>B.ElSlider}),Object.defineProperty(v,"FoxSpace",{enumerable:!0,get:()=>B.ElSpace}),Object.defineProperty(v,"FoxStep",{enumerable:!0,get:()=>B.ElStep}),Object.defineProperty(v,"FoxSteps",{enumerable:!0,get:()=>B.ElSteps}),Object.defineProperty(v,"FoxSubMenu",{enumerable:!0,get:()=>B.ElSubMenu}),Object.defineProperty(v,"FoxSwitch",{enumerable:!0,get:()=>B.ElSwitch}),Object.defineProperty(v,"FoxTabPane",{enumerable:!0,get:()=>B.ElTabPane}),Object.defineProperty(v,"FoxTable",{enumerable:!0,get:()=>B.ElTable}),Object.defineProperty(v,"FoxTableColumn",{enumerable:!0,get:()=>B.ElTableColumn}),Object.defineProperty(v,"FoxTableV2",{enumerable:!0,get:()=>B.ElTableV2}),Object.defineProperty(v,"FoxTabs",{enumerable:!0,get:()=>B.ElTabs}),Object.defineProperty(v,"FoxTag",{enumerable:!0,get:()=>B.ElTag}),Object.defineProperty(v,"FoxTimePicker",{enumerable:!0,get:()=>B.ElTimePicker}),Object.defineProperty(v,"FoxTimeSelect",{enumerable:!0,get:()=>B.ElTimeSelect}),Object.defineProperty(v,"FoxTimeline",{enumerable:!0,get:()=>B.ElTimeline}),Object.defineProperty(v,"FoxTimelineItem",{enumerable:!0,get:()=>B.ElTimelineItem}),Object.defineProperty(v,"FoxTooltip",{enumerable:!0,get:()=>B.ElTooltip}),Object.defineProperty(v,"FoxTransfer",{enumerable:!0,get:()=>B.ElTransfer}),Object.defineProperty(v,"FoxTree",{enumerable:!0,get:()=>B.ElTree}),Object.defineProperty(v,"FoxTreeSelect",{enumerable:!0,get:()=>B.ElTreeSelect}),Object.defineProperty(v,"FoxTreeV2",{enumerable:!0,get:()=>B.ElTreeV2}),Object.defineProperty(v,"FoxUpload",{enumerable:!0,get:()=>B.ElUpload}),v.ActionsheetItem=Ml,v.ActionsheetPane=Sn,v.AutocompleteItem=xl,v.Broadcast=Yn,v.BroadcastKey=Ne,v.CalendarItem=yl,v.CascaderItem=Tl,v.CheckboxItem=Il,v.Content=ll,v.DataItemsKey=dt,v.DateItem=hl,v.DateUtils=re,v.DialogItem=Ul,v.Domain=Jt,v.DomainKey=Pe,v.DomainProvider=ia,v.FloatingWindow=ra,v.FooterBar=nl,v.FoxActionsheetItem=Ml,v.FoxActionsheetPane=Sn,v.FoxAutocompleteItem=xl,v.FoxCalendarItem=yl,v.FoxCascaderItem=Tl,v.FoxCheckboxItem=Il,v.FoxContent=ll,v.FoxDateItem=hl,v.FoxDialogItem=Ul,v.FoxDomainProvider=ia,v.FoxFloatingWindow=ra,v.FoxFooterBar=nl,v.FoxGroup=rl,v.FoxGroupSetting=Bl,v.FoxHeaderBar=tl,v.FoxHintText=It,v.FoxIndicator=Zl,v.FoxInfiniteLoading=vn,v.FoxInputItem=fl,v.FoxInputNumberItem=Sl,v.FoxItem=Se,v.FoxMapping=Ft,v.FoxMoneyItem=wl,v.FoxMoreButton=Ql,v.FoxOverLay=hn,v.FoxPage=Qn,v.FoxPickerItem=zl,v.FoxPopup=it,v.FoxPrice=fn,v.FoxPullRefresh=Xl,v.FoxRadioItem=Vl,v.FoxRateItem=Ol,v.FoxRollingProvider=sa,v.FoxRowItem=cl,v.FoxSearchBar=wn,v.FoxSelectItem=dl,v.FoxSlotItem=ul,v.FoxStepsBar=Kl,v.FoxSwitchItem=Al,v.FoxTableItem=El,v.FoxTableMappingColumn=$l,v.FoxTableRadioColumn=kl,v.FoxTableSetting=pn,v.FoxTabsBar=Cn,v.FoxTabsContainer=Tn,v.FoxTabsPane=xn,v.FoxText=Jl,v.FoxTimeItem=bl,v.FoxTimeSelectItem=vl,v.FoxToast=Gl,v.FoxTour=ea,v.FoxTreeSelectItem=Fl,v.Foxcalendarpicker=gn,v.Foxcascaderpicker=Wl,v.Foxdatepicker=Yl,v.Foxpicker=Mt,v.Group=rl,v.GroupSetting=Bl,v.HeaderBar=tl,v.HintText=It,v.Indicator=Zl,v.InfiniteLoading=vn,v.InputItem=fl,v.InputNumberItem=Sl,v.Item=Se,v.Mapping=Ft,v.MoneyItem=wl,v.MoreButton=Ql,v.OverLay=hn,v.Page=Qn,v.PickerItem=zl,v.Popup=it,v.Price=fn,v.PriorityPolicy=Le,v.PullRefresh=Xl,v.RadioItem=Vl,v.RateItem=Ol,v.RollingProvider=sa,v.RowItem=cl,v.SearchBar=wn,v.SelectItem=dl,v.SlotItem=ul,v.StepsBar=Kl,v.SwitchItem=Al,v.TableItem=El,v.TableMappingColumn=$l,v.TableRadioColumn=kl,v.TableSetting=pn,v.TabsBar=Cn,v.TabsContainer=Tn,v.TabsPane=xn,v.Text=Jl,v.TimeItem=bl,v.TimeSelectItem=vl,v.Toast=Gl,v.Tour=ea,v.TreeSelectItem=Fl,v.UniqueID=Ja,v.ValidateSchema=Fa,v.ValidateSchemaKey=We,v.calendarpicker=gn,v.cancelRaf=Fr,v.cascaderpicker=Wl,v.clearNonNumber=Kr,v.clone=jn,v.compareTo=_n,v.createBroadcast=Wt,v.createValidateSchema=Gt,v.datepicker=Yl,v.debounce=Nt,v.debounceRef=ai,v.decimalLength=Na,v.default=Gg,v.defineBroadcast=Gr,v.defineConfigDomain=Ra,v.defineDataItem=_a,v.defineDomain=Un,v.defineItem=Te,v.definePageState=Pa,v.defineSimpleItem=Gn,v.deleteGlobalValidator=ei,v.disabledProperty=Ie,v.divide=Ln,v.excludeProps=$e,v.extend=at,v.floatData=Ur,v.getGlobalValidateCheckEvents=Ia,v.getGlobalValidateResetEvents=Aa,v.getPageContentAreaHeight=en,v.getPageContentAreaWidth=tn,v.getPageFooterAreaHeight=Vt,v.getPageHeaderAreaHeight=Et,v.getRootDomain=ht,v.hasSymbol=Sa,v.includeProps=xt,v.indexOf=Yr,v.installRules=La,v.integerLength=Da,v.isArray=Mr,v.isArrayLike=Ta,v.isBrowser=ot,v.isDate=Je,v.isESModule=Pr,v.isEmptyString=pe,v.isEqual=_e,v.isFunction=qn,v.isHidden=Yt,v.isInnerPage=ii,v.isMap=Rr,v.isNil=Kn,v.isNumberString=ka,v.isObject=Re,v.isPlainObject=zn,v.isPromise=jt,v.isRegExp=$a,v.isSet=Lr,v.isString=va,v.isSubPage=si,v.isSymbol=_r,v.isTouch=_l,v.isWindow=Ca,v.lastIndexOf=Wr,v.makeArray=Hr,v.merge=xa,v.multiply=pa,v.negate=ya,v.nextTick=zr,v.numberFormat=zt,v.objectToString=wa,v.once=oi,v.overrideGlobalValidateHandler=Jr,v.picker=Mt,v.property=Ee,v.raf=Pn,v.readonlyProperty=Ve,v.setGlobalValidateCheckEvents=ti,v.setGlobalValidateHandler=Zr,v.setGlobalValidateMessages=li,v.setGlobalValidateResetEvents=ni,v.setGlobalValidator=Qr,v.throttle=Ma,v.toBoolean=ce,v.toNumber=he,v.toPadding=je,v.toPx=me,v.toPxDesc=Ae,v.toTypeString=Ht,v.toValue=de,v.tryTimes=Zt,v.typeOf=Kt,v.unNumberFormat=ba,v.updatePageState=Xn,v.useBroadcast=$t,v.useDomain=Ue,v.useExpose=ye,v.useInnerSize=el,v.usePageState=Qt,v.usePosition=Ga,v.useRawTouch=Pl,v.useRect=Ll,v.useSize=ln,v.useTouch=nr,v.valueLength=ze,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function qt(e,n="0"){let a=0,l=-1;e[0]=="-"&&(a++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,l=2,n=n.substring(1),n.length),e=Oe(e),n=Oe(n),[e,n]=On(Oe(e),Oe(n)),a==1&&(l==1?e=In(e):n=In(n));let o=fa(e,n);return a?a==2?"-"+Oe(o):e.length<o.length?Oe(o.substring(1)):"-"+Oe(In(o)):Oe(o)}function In(e){let n="",a=e.length,l=e.split(".")[1],o=l?l.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=o>0?"0."+new Array(o).join("0")+"1":"1";return fa(n,r)}function Oe(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function On(e,n){let a=e.split("."),l=n.split("."),o=a[0].length,r=l[0].length;return o>r?l[0]=new Array(Math.abs(o-r)+1).join("0")+(l[0]?l[0]:""):a[0]=new Array(Math.abs(o-r)+1).join("0")+(a[0]?a[0]:""),o=a[1]?a[1].length:0,r=l[1]?l[1].length:0,(o||r)&&(o>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(o-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(o-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function fa(e,n){[e,n]=On(e,n);let a="",l=0;for(let o=e.length-1;o>=0;o--){if(e[o]==="."){a="."+a;continue}let r=parseInt(e[o])+parseInt(n[o])+l;a=r%10+a,l=Math.floor(r/10)}return l?l.toString()+a:a}var Ce=(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))(Ce||{});function Ct(e,n=0,a=Ce.HALF_EVEN){if(a===Ce.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let o=e.split("."),r=o[0],i=o[1];if(n<0){if(n=-n,r.length<=n)return"0";{let s=r.substr(0,r.length-n);return e=s+"."+r.substr(r.length-n)+i,s=Ct(e,0,a),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,da(o[1],r,l,a)?(l?"-":"")+An(r):(l?"-":"")+r;if(o[1]){if(o[1].length<n)return(l?"-":"")+r+"."+o[1]+new Array(n-o[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=o[1].substring(0,n);let u=o[1].substring(n);return u&&da(u,i,l,a)&&(i=An(i),i.length>n)?(l?"-":"")+An(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function da(e,n,a,l){if(!e||e===new Array(e.length+1).join("0")||l===Ce.DOWN||!a&&l===Ce.FLOOR||a&&l===Ce.CEILING)return!1;if(l===Ce.UP||a&&l===Ce.FLOOR||!a&&l===Ce.CEILING)return!0;let o="5"+new Array(e.length).join("0");if(e>o)return!0;if(e<o)return!1;switch(l){case Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function An(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,l="";for(let o=a;o>=0;o--){let r=parseInt(e[o])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function Fn(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=Tt(e),n=Tt(n);let l=0,o=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(o=n.length-n.indexOf(".")-1);let r=l+o;if(e=Tt(e.replace(".","")),n=Tt(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let i=n.length,u=0,s=[],d=i-1,h="";for(let c=0;c<i;c++)s[c]=e.length-1;for(let c=0;c<2*e.length;c++){let w=0;for(let M=n.length-1;M>=d&&M>=0;M--)s[M]>-1&&s[M]<e.length&&(w+=parseInt(e[s[M]--])*parseInt(n[M]));w+=u,u=Math.floor(w/10),h=w%10+h,d--}return h=Tt(Br(h,r)),a==1&&(h="-"+h),h}function Br(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Tt(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 Bn(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var o=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Oe(n.replace(".","")),o>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Oe(e+new Array(o+1).join("0"));else if(o>d)e=e.replace(".",""),e=Oe(e+new Array(o-d+1).join("0"));else if(o<d){e=e.replace(".","");let h=e.length-d+o;e=Oe(e.substring(0,h)+"."+e.substring(h))}else o==d&&(e=Oe(e.replace(".","")))}let r=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(d+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=d,u="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(s)>=parseInt(n);)s=qt(s,"-"+n),d++;u+=d,e?(e[0]=="."&&(u+=".",r++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(r||(u+="."),r++,s=s+"0")}return(l==1?"-":"")+Oe(Ct(u,a-2))}function Mn(e,n){return e=e.toString(),n=n.toString(),n=Rn(n),qt(e,n)}function Rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function ha(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),ma(e),ma(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Mn(e,Fn(n,Ct(Bn(e,n),0,Ce.FLOOR)));return a+l}function ma(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function ga(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=On(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?a?-1:1:a?1:-1;return 0}class fe{value;static RoundingModes=Ce;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,l]=n.split(/[eE]/);a=Oe(a);let o="";a[0]=="-"&&(o="-",a=a.substring(1)),a.indexOf(".")>=0?(l=parseInt(l)+a.indexOf("."),a=a.replace(".","")):l=parseInt(l)+a.length,a.length<l?n=o+a+new Array(l-a.length+1).join("0"):a.length>=l&&l>0?n=o+Oe(a.substring(0,l))+(a.length>l?"."+a.substring(l):""):n=o+"0."+new Array(-l+1).join("0")+a}return n}constructor(n="0"){this.value=fe.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,l){if(!(a||l))a=3,l=",";else if(!(a&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=fe.validate(n);let o=n.charAt(0)=="-";o&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",u=r;u>0;)u<a?(a=u,u=0):u-=a,i=n.substring(u,u+a)+(u<r-a&&u>=0?l:"")+i;return(o?"-":"")+i+n.substring(r)}getPrettyValue(n,a){return fe.getPrettyValue(this.value,n,a)}static round(n,a=0,l=Ce.HALF_EVEN){if(n=fe.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Ct(n,a,l)}round(n=0,a=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new fe(Ct(this.value,n,a))}static floor(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Ce.CEILING)}static add(n,a){return n=fe.validate(n),a=fe.validate(a),qt(n,a)}add(n){return new fe(qt(this.value,n.getValue()))}static subtract(n,a){return n=fe.validate(n),a=fe.validate(a),Mn(n,a)}subtract(n){return new fe(Mn(this.value,n.getValue()))}static multiply(n,a){return n=fe.validate(n),a=fe.validate(a),Fn(n,a)}multiply(n){return new fe(Fn(this.value,n.getValue()))}static divide(n,a,l){return n=fe.validate(n),a=fe.validate(a),Bn(n,a,l)}divide(n,a){return new fe(Bn(this.value,n.getValue(),a))}static modulus(n,a){return n=fe.validate(n),a=fe.validate(a),ha(n,a)}modulus(n){return new fe(ha(this.value,n.getValue()))}static compareTo(n,a){return n=fe.validate(n),a=fe.validate(a),ga(n,a)}compareTo(n){return ga(this.value,n.getValue())}static negate(n){return n=fe.validate(n),Rn(n)}negate(){return new fe(Rn(this.value))}}function pa(e,n){return fe.multiply(`${e}`,`${n}`)}function Ln(e,n,a=8){return fe.divide(`${e}`,`${n}`,a)}function _n(e,n){return e=`${e}`,n=`${n}`,fe.compareTo(e,n)}function ya(e){return fe.negate(e)}function zt(e,n=-1,a=!1,l=3,o=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let u=r,s="",d=r.indexOf(".");d!=-1&&(u=r.substring(0,d),s=r.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):a&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let c="",w=u.split("").reverse();for(let M=0;M<w.length;M++)c+=w[M]+((M+1)%l==0&&M+1!=w.length?o:"");s.length==0?h=`${i}${c.split("").reverse().join("")}`:h=`${i}${c.split("").reverse().join("")}.${s}`}else s.length==0?h=`${i}${u}`:h=`${i}${u}.${s}`;return h}function ba(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let l=n.replace(/[^\d\.-]/g,"");return`${a}${l}`}const Pn=Vn,Mr=Array.isArray,Rr=e=>Ht(e)==="[object Map]",Lr=e=>Ht(e)==="[object Set]",Je=e=>e instanceof Date,qn=e=>typeof e=="function",va=e=>typeof e=="string",_r=e=>typeof e=="symbol",Le=e=>e!==null&&typeof e=="object",jt=e=>Le(e)&&qn(e.then)&&qn(e.catch),wa=Object.prototype.toString,Ht=e=>wa.call(e),zn=e=>Ht(e)==="[object Object]",Sa=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Pr(e){return e.__esModule||Sa&&e[Symbol.toStringTag]==="Module"}const qr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function at(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,l=e.length,o=!1;for(typeof n=="boolean"&&(o=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<l;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let i in r){let u=n[i],s=r[i];if(u!==s)if(o===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[i]=at(o,d,s)}else s!==void 0&&(n[i]=s)}}return n}function jn(e,n,a=!1){if(!a)at(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let o in n){let r=e[o],i=n[o];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!zn(i))continue;r=jn(r,i,a),e[o]=r}else{if(typeof i=="function")continue;e[o]=i}}const l=Object.getOwnPropertySymbols(n);for(let o of l){let r=e[o],i=n[o];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!zn(i))continue;r=jn(r,i,a),e[o]=r}else{if(typeof i=="function")continue;e[o]=i}}}return e}const Hn=qr?Promise.resolve():null;function zr(e,...n){Hn!==null?n&&n.length>0?Hn.then(()=>{e(n)}):Hn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ce(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function he(e){return typeof e=="number"?e:Number(e)}const 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 Kt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):jr[a]||"object"}function Ca(e){return e&&typeof e=="object"&&"setInterval"in e}function Yt(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Ta(e){let n=!!e&&"length"in e&&e.length,a=Kt(e);return a==="function"||Ca(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function xa(e,n){let a=+n.length,l=0,o=e.length;for(;l<a;l++)e[o++]=n[l];return e.length=o,e}function Hr(e,n=[]){let a=n;return e!=null&&(Ta(Object(e))?xa(a,typeof e=="string"?[e]:e):a.push(e)),a}function Pe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=Kt(e),l=Kt(n);if(a!==l)return!1;if(a==="object"){let o=Object.keys(e),r=Object.keys(n);if(o.length!==r.length)return!1;for(let i=0;i<o.length;i++){let u=o[i],s=e[u],d=n[u];if(!Pe(s,d))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let o=0;o<e.length;o++){let r=e[o],i=n[o];if(!Pe(r,i))return!1}return!0}return!1}const ot=typeof window<"u";function Kn(e){return e==null}function $a(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function ka(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Da(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function Na(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function Ea(e,n,a){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(a,"")}function Kr(e,n=!0,a=!0){n?e=Ea(e,".",/\./g):e=e.replace(/\./g,""),a?e=Ea(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Yr(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Pe(e,a))return!0}):n.indexOf(e)}function Wr(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(l=>{if(Pe(e,l))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function je(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function xt(e,...n){const a={};return n.forEach(l=>{for(const o in l)a[o]=e[o]}),a}function ke(e,...n){const a=[];n.forEach(o=>{Reflect.apply([].push,a,Reflect.ownKeys(o))});const l={};for(const o in e)a.includes(o)||(l[o]=e[o]);return l}const Ur=(e,n,a)=>{const l=Object.assign({},e),o=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{o.hasOwnProperty(r)?typeof o[r]=="string"&&(l[r]=n[o[r]]):n[r]&&(l[r]=n[r])}),l):e},Te=Symbol.for("BroadcastKey");class Yn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,l){this.parent=n,this.proxy=a,this.name=l,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(l=>n===l);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let o=!1;!n.name||n.name==="*"?o=!0:!n.name||n.name==="+"?(o=!1,n.name="*"):$a(n.name)&&this.name&&n.name.test(this.name)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(o=!0);const r=[];if(o){const i=this.callbacks.get(a);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...l]);s!=null&&r.push(s)}const u=this.proxy??{};if(typeof u[a]=="function"){const s=Reflect.apply(u[a],u,[...l]);s!=null&&r.push(s)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},a,...l]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,r,[...u])}),r}emitToChildren(n,a,...l){const o=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},a,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}on(n,a){this.callbacks.set(n,a)}}function Wt(e,n,a,l){const o=new Yn(n,e,a);if(l&&typeof l=="object")for(const r in l)o.on(r,l[r]);return o}function Gr(e,n,a){const l=a;if(l[Te])return l[Te];const o=t.inject(Te,null),r=new Yn(o,a,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return l[Te]=r,t.provide(Te,r),t.onUnmounted(()=>{r.destroy(),l[Te]=void 0}),r}function $t(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Te]??t.inject(Te,null):t.inject(Te,null)}const rt=e=>e.default??e;class Xr{error(n,a){const l=a,o=a||t.hasInjectionContext()?$t(a):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const a=n,l=n||t.hasInjectionContext()?$t(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,l=n||t.hasInjectionContext()?$t(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,l){Array.isArray(n)||(n=[n]);const o=l,r=l||t.hasInjectionContext()?$t(l):null,i=a.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?r?r.emit({name:"*"},"setRequired",!0):typeof o.setRequired=="function"&&o.setRequired(!0):i&&!u&&(r?r.emit({name:"*"},"setRequired",!1):typeof o.setRequired=="function"&&o.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let kt=new Xr;function Zr(e){kt=e}function Jr(e){kt?Object.assign(kt,e):kt=e}function Qr(e,n){rt(lt).setValidator(e,n)}function ei(e){rt(lt).deleteValidator(e)}let Va=["blur","clear"];function ti(e){Va=e}function Ia(){return Va}let Oa=["focus","change","setValue"];function ni(e){Oa=e}function Aa(){return Oa}function li(e){rt(lt).messages(e)}function Dt(...e){const n=[];return e.forEach(a=>{a.forEach(l=>{const o=n.findIndex(r=>r.type===l.type);o!==-1&&n.splice(o,1),n.push(l)})}),n}function Ut(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const qe=Symbol("ValidateSchemaKey");class Fa{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,l){this.parent=n,this.descriptor=a,this.proxy=l,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(!0),this.scope.run(()=>{t.watchEffect(()=>{const a=Ut(Dt(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=Ut(l);const o=Dt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...a){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...a]);const o=kt;return o&&typeof o[n]=="function"?Reflect.apply(o[n],o,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,a,l=!1){l?rt(lt).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?rt(lt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return rt(lt).hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}setRule(n){const a=Dt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Ut(n):this.rules=Ut([n]);const l=Dt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=Dt(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(a.length>0){const o={[`${l}`]:a},r=this.getValue(),i={[`${l}`]:r},u=rt(lt),s=new u(o),d=this.proxy??i;return s.validate(i,{context:d}).then(c=>{if(c.pass)this.success();else{let w="error";Array.isArray(c.errors)&&c.errors.length>0&&(w=c.errors[0].message??w,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(w)}return c}).catch(c=>{const w=c.message??`${c}`;return this.error(w),c})}}return Promise.resolve({pass:!0})}}function Gt(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const o=a.valueName;a.validateHandler={getValue(r){return r[o]}}}return new Fa(n,a,e)}const Xt=Symbol.for("EventEmitterKey");class Ba{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let l=this.register.get(n);if(l&&Array.isArray(l)){let o=l.findIndex(r=>r===a);o!==-1&&l.splice(o,1)}}on(n,a){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(a)}emit(n,...a){const l=this.register.get(n);l&&l.forEach(o=>{try{Reflect.apply(o,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function Nt(e,n){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...l])},n)}}function Ma(e,n){let a=0;return function(...l){const o=new Date().getTime();o-a<n||(a=o,Reflect.apply(e,null,[...l]))}}function ai(e,n){const a=Nt((l,o)=>{e=l,o()},n);return t.customRef((l,o)=>({get(){return l(),e},set(r){a(r,o)}}))}function oi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Zt(e,n,a,l=0,o=!0,r){let i=n,u=0;if(o){const d=e();if(u++,d){typeof r=="function"&&r(!0);return}if(u>a){typeof r=="function"&&r(!1);return}}const s=()=>{const d=e();if(u++,d){typeof r=="function"&&r(!0);return}if(u>a){typeof r=="function"&&r(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const Re=Symbol("DomainKey"),dt=Symbol("DataItemsKey");class Jt{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,a=[]){for(const l in n){const o=n[l];a.length>0&&a.indexOf(o)!==-1||(this._props[l]=o)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const o=l._props[n];a.push(o)}l=l._parent}return a}}const ri=new Jt;function ht(){return ri}function Ue(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Re]??t.inject(Re,null):t.inject(Re,null)}const Wn=Symbol("OriginalDateKey");function Un(e,n,a=[],l){const o=t.getCurrentInstance();let r=o?.proxy,i=t.inject(Re,null);i===null&&(i=ht());const u=e||n.prop||n.name;let s=new Jt(u);s.parent=i;const d=M=>{r[Wn]||w(M),s?.set("modelValue",M)},h=()=>s?.getForSelf("modelValue")??null,c=()=>r[Wn]??null,w=M=>{const g={};at(!0,g,t.toRaw(M)),r[Wn]=g};if(t.isReactive(n)||typeof n=="function"?t.watch(n,M=>{s?.merge(M,a)},{immediate:!0}):s.merge(n,a),n.modelValue&&w(n.modelValue),r[Re]=s,t.provide(Re,s),o!==null){const M=t.inject(Te,null),g=Wt(r,M,u,l);s.broadcast=g,r[Te]=g,t.provide(Te,g),r.broadcast=(A,m,...f)=>Reflect.apply(g.emit,g,[A,m,...f]);const p=t.inject(qe,null),y=Gt(r,p,{componentName:""});s.validateSchema=y,r[qe]=y,t.provide(qe,y),r[dt]=new Map,r.validate=(A=!0)=>{const m=[];let f=null;const V={deep:!1};if(A===!0)f={name:"*"};else if(Array.isArray(A)&&A.length>0){const R=A;f={name:L=>L?R.indexOf(L)!==-1:!1}}else if(A!=null&&typeof A=="object"){const R=A;if(Object.assign(V,R),Array.isArray(R.include)&&R.include.length>0){const L=R.include;f={name:D=>D?L.indexOf(D)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const L=R.exclude;f={name:D=>D?L.indexOf(D)===-1:!1}}else f={name:"*"}}if(f){const R=g?.emitToChildren(f,"validate",V);R&&Reflect.apply([].push,m,R)}return m.length==1?m[0]:m.length>1?Promise.all(m).then(R=>{let L=[];return R.forEach(D=>{D.pass===!1&&Array.isArray(D.errors)&&(L=[...L,...D.errors])}),L.length>0?{pass:!1,errors:L}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(A,m=!0,f=!1)=>{if(f===!0){Reflect.ownKeys(A).forEach(R=>{let L=String(R);const D={componentName:"",fieldName:L,pureDataValidate:!0};if(s){const _=_a(s,L,D,g,y);r[dt].set(L,_);const N=A[L];N&&_.validateSchema.setRule(N)}});return}if(m){const V=Reflect.ownKeys(A),R={name:L=>V.includes(L)};g?.emitToChildren(R,"setNameValidateRules",A,!1)}},r.clearValidate=(A=!0)=>{let m=null;if(A===!0)m={name:"*"};else if(Array.isArray(A)&&A.length>0){const f=A;m={name:V=>V?f.indexOf(V)!==-1:!1}}else if(A!=null&&typeof A=="object"){const f=A;if(Array.isArray(f.include)&&f.include.length>0){const V=f.include;m={name:R=>R?V.indexOf(R)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const V=f.exclude;m={name:R=>R?V.indexOf(R)===-1:!1}}else m={name:"*"}}m&&g?.emitToChildren(m,"clearValidate",!1)},r.resetFields=A=>{const m=h();if(!m)return;const f={};if(at(!0,f,c()??{}),Array.isArray(A))A.forEach(V=>{m[V]=f[V]});else if(A&&Array.isArray(A.include))(A.include??[]).forEach(R=>{m[R]=f[R]});else if(A&&Array.isArray(A.exclude)){let V=A.exclude??[];Reflect.ownKeys(f).forEach(R=>{V.includes(R)||(m[R]=f[R])})}else Object.assign(m,f);r.clearValidate(A)},r.setModelValue=(A,m)=>{!m||m===u?d(A):g?.emitToChildren({name:m},"setModelValue",A)},r.getModelValue=()=>h()}return t.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),r[qe]=void 0,t.provide(qe,null)),s?.broadcast&&(s?.broadcast?.destroy(),r[Te]=void 0,t.provide(Te,null)),s?.destroy(),r[Re]=void 0,t.provide(Re,null),r[dt]&&(r[dt].clear(),r[dt]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,s=null,r=null}),s}function Ra(e,n,a=[]){let o=t.getCurrentInstance()?.proxy,r=t.inject(Re,null);r===null&&(r=ht());const i=e||n.prop||n.name;let u=new Jt(i);return u.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,s=>{u?.merge(s,a)},{immediate:!0}):u.merge(n,a),o[Re]=u,t.provide(Re,u),t.onUnmounted(()=>{u?.destroy(),o[Re]=void 0,t.provide(Re,null),u=null,o=null}),u}function La(e,n,a){const o=Ue(e)?.get("rules");if(!o)return;let r=o[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function xe(e,n,a){const o=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(Te,null);let u=Wt(o,i,r,a);o[Te]=u,t.provide(Te,u),o.broadcast=(g,p,...y)=>u?Reflect.apply(u.emit,u,[g,p,...y]):null;const s=t.inject(qe,null);e.fieldName=e.fieldName??r;let d=Gt(o,s,e);o[qe]=d,t.provide(qe,d),La(o,d,r),o.validate=(g=null)=>{if(!d)return Promise.resolve({pass:!0});const p=[];let y=!1,A=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)A=!0,y=!0;else if(g&&typeof g=="object"){const m=g,f=m.ignoreDisabled??!0,V=m.ignoreReadonly??!0,R=m.ignoreHidden??!0;f===!0&&e.disabled===!0||V===!0&&e.readonly===!0||R===!0&&Yt(o.$el)?A=!1:(Array.isArray(m.include)&&m.include.indexOf(r)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(r),A=!0),y=m.deep??!1}else typeof g=="boolean"&&(y=g),A=!0;if(A){const m=d?.validate();p.push(m)}if(y){let m=null;const f={deep:!1};if(g===!0)m={name:"*"};else if(Array.isArray(g)&&g.length>0){const V=g;m={name:R=>R?V.indexOf(R)!==-1:!1}}else if(g!=null&&typeof g=="object"){const V=g;if(Object.assign(f,V),Array.isArray(V.include)&&V.include.length>0){const R=V.include;m={name:L=>L?R.indexOf(L)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const R=V.exclude;m={name:L=>L?R.indexOf(L)===-1:!1}}else m={name:"*"}}if(m&&u){const V=u.emitToChildren(m,"validate",f);Reflect.apply([].push,p,V)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(m=>{let f=[];return m.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(f=[...f,...V.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=g=>d?.setRule(g),o.setNameValidateRules=(g,p=!1)=>{const y=g[r];if(y&&d?.setRule(y),p&&u){const A={name:m=>Reflect.ownKeys(g).includes(m)};u.emitToChildren(A,"setNameValidateRules",g,!1)}},o.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(n??"")!==-1)&&d?.clear();let p=null;if(g===!0)p={name:"*"};else if(Array.isArray(g)&&g.length>0){const y=g;p={name:A=>A?y.indexOf(A)!==-1:!1}}else if(g!=null&&typeof g=="object"){const y=g;if(Array.isArray(y.include)&&y.include.length>0){const A=y.include;p={name:m=>m?A.indexOf(m)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const A=y.exclude;p={name:m=>m?A.indexOf(m)===-1:!1}}else p={name:"*"}}p&&u&&u.emitToChildren(p,"clearValidate",!1)};let h=new Ba(o);o[Xt]=h;const c=Nt((g="validate")=>{d&&(g==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ia()).forEach(g=>{h&&h.on(g,p=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Aa()).forEach(g=>{h&&h.on(g,p=>{c("reset")})}),t.onUnmounted(()=>{u?.destroy(),o[Te]=void 0,t.provide(Te,null),u=null,d?.destroy(),o[qe]=void 0,t.provide(qe,null),d=null,h?.destroy(),o[Xt]=void 0,h=null,o.broadcast=null,o.validate=null,o.setValidateRule=null,o.setNameValidateRules=null,o.clearValidate=null}),{broadcast:u,validateSchema:d,emitEvent:(g,...p)=>{h&&Reflect.apply(h.emit,h,[g,...p])},onEvent:(g,p)=>{h&&Reflect.apply(h.on,h,[p])},offEvent:(g,p)=>{h&&Reflect.apply(h.off,h,[p])}}}function _a(e,n,a,l,o){const r={},i=n??"",u={getValue(){const h=e.getForSelf("modelValue");return h?h[i]:null},isExist(){const h=e.getForSelf("modelValue");return h?Reflect.has(h,i):!1}};a.fieldName=i,a.validateHandler={getValue(h){return u.getValue()}};let s=Gt({},o,a);r.validate=(h=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let w=!1,M=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)M=!0,w=!0;else if(h&&typeof h=="object"){const g=h;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),M=!0,w=g.deep??!1}else typeof h=="boolean"&&(w=h),M=!0;if(M&&s){const g=s.validate();c.push(g)}if(w){let g=null;const p={deep:!1};if(h===!0)g={name:"*"};else if(Array.isArray(h)&&h.length>0){const y=h;g={name:A=>A?y.indexOf(A)!==-1:!1}}else if(h!=null&&typeof h=="object"){const y=h;if(Object.assign(p,y),Array.isArray(y.include)&&y.include.length>0){const A=y.include;g={name:m=>m?A.indexOf(m)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const A=y.exclude;g={name:m=>m?A.indexOf(m)===-1:!1}}else g={name:"*"}}if(g&&d){const y=d.emitToChildren(g,"validate",p);Reflect.apply([].push,c,y)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(g=>{let p=[];return g.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(p=[...p,...y.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>s?.setRule(h),r.setNameValidateRules=h=>{const c=h[i];c&&s?.setRule(c)};let d=Wt(null,l,i,r);return t.onUnmounted(()=>{s=null,d=null}),{broadcast:d,validateSchema:s}}function Gn(){let n=t.getCurrentInstance()?.proxy,a=new Ba(n);return n[Xt]=a,t.onUnmounted(()=>{a?.destroy(),n[Xt]=void 0,a=null,n=null}),{emitEvent:(l,...o)=>{a&&Reflect.apply(a.emit,a,[l,...o])},onEvent:(l,o)=>{a&&Reflect.apply(a.on,a,[o])},offEvent:(l,o)=>{a&&Reflect.apply(a.off,a,[o])}}}const Ae=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,n)}px`:"";function me(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let o=Number(e.substring(0,a)),r=1;if(ot){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(r=Number(i.substring(0,u)))}return o*=r,o}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*n;const l=Number(e);return isNaN(l)?0:l}const Qe="PageStateKey";function He(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=me(e.top)),e.left!==null&&e.left!==void 0&&(n.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=me(e.right))),n}function Xn(e,n,a={},l=!0,o=-1,r=-1,i=0,u=0){if(e.headerHeight=me(a.headerHeight??n.headerHeight??-1),e.headerPadding=He(a.headerPadding??n.headerPadding),e.footerHeight=me(a.footerHeight??n.footerHeight??-1),e.footerPadding=He(a.footerPadding??n.footerPadding),e.contentPadding=He(a.contentPadding??n.contentPadding),l){const s=a.height??n.height;s?e.height=me(s,r):e.height=me(r)-me(i,r)-me(u,r),e.width=me(a.width??n.width??0,o)}}function Pa(e,n={}){const a={top:null,left:null,bottom:null,right:null},l={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},o=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});o&&(l.safeAreaTop=me(o.top),l.safeAreaBottom=me(o.bottom),l.safeAreaLeft=me(o.left),l.safeAreaRight=me(o.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Xn(l,r,n,!0,i,u,s,d);const h=t.reactive(l),c=e.getForParent(Qe);c&&(l.height=en(e,c),l.width=tn(e,c),t.watch([()=>en(e,c),()=>tn(e,c)],([M,g])=>{h.height=M,h.width=g}));const w=!c;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([M,g,p=-1,y=-1,A=0,m=0])=>{Xn(h,g,n,w,p,y,A,m)}),e.set(Qe,h),h}function Qt(e){return e.get(Qe)}function Et(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Vt(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function en(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Et(e,n),l=Vt(e,n);return n.height-a-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function tn(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function ii(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function si(e){return!!e.getForParent(Qe)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function Zn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ee(e,n,a=1,l){const o=Ue();return o==null?e:a===0?t.computed(()=>{const r=o.getAll(n);for(let u=r.length-1;u>=0;u--){const s=r[u];if(Zn(s,l))return s}const i=e.value;return Zn(i,l)?i:null}):t.computed(()=>{const r=e.value;return Zn(r,l)?r:o?.get(n)})}function Ve(e){return Ee(e,"readonly",0,function(a){return ce(a)})}function Ie(e){return Ee(e,"disabled",0,function(a){return ce(a)})}function de(e,n="modelValue",a=null,l){const o=t.toRef(e,n);let r=o.value;typeof a=="function"&&(r=a(o.value));const i=t.ref(r);return t.watch(o,u=>{if(typeof a=="function"){const s=a(u);s!==i.value&&(i.value=s,l&&l("setValue",s))}else u!==i.value&&(i.value=u,l&&l("setValue",u))}),i}const qa=new Map,nn=new Map;let Jn=null;function ui(e){Jn=e}function za(e,n,a){if(a){let l=nn.get(a);l||(l=new Map,nn.set(a,l)),l.set(e,n)}else qa.set(e,n)}function Fe(e,n,a){!a&&Jn&&(a=Jn(e)??void 0);let l=null;if(a){let o=nn.get(a);o&&(l=o.get(n))}return l||(l=qa.get(n)),l}function ci(e,n){for(let a in e){const l=e[a];za(a,l,n)}}function fi(e){nn.delete(e)}function di(){return{top:0,left:0,bottom:0,right:0}}function hi(e=0,n=0){if(ot){const a=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,o={width:a,height:l-me(e,l)-me(n,l)};return{rootWidth:a,rootHeight:l,pageLayout:o}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class mi{packages;installers;_version;get version(){return this._version}constructor(n,a,l){this.packages=n,this.installers=a,this._version=l}install(n,a={}){a?.install!==!1&&(this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],o=ht();if(this.initPageLayout(a,o),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Ma(()=>{const u={...a},s=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=d,this.initPageLayout(u,o)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)l.indexOf(r)===-1&&o.set(r,a[r])}initPageLayout(n,a){const l=n.headerBarHeight??0,o=n.footerBarHeight??0,r=at({},di(),n.safeAreaInset),i=hi(l,o),u=at({},i.pageLayout,n.pageLayout);a=a??ht(),a.set("safeAreaInset",r),a.set("headerBarHeight",l),a.set("footerBarHeight",o),a.set("pageLayout",u),a.set("rootWidth",i.rootWidth),a.set("rootHeight",i.rootHeight)}setScopeGetter(n){ui(n)}setAPI(n,a,l){za(n,a,l)}getAPI(n,a,l){return Fe(n,a,l)}batchSetAPI(n,a){ci(n,a)}clearScopeAPI(n){fi(n)}getRootDomain(){return ht()}}const gi=[B.ElAffix,B.ElAlert,B.ElAutocomplete,B.ElAutoResizer,B.ElAvatar,B.ElBacktop,B.ElBadge,B.ElBreadcrumb,B.ElBreadcrumbItem,B.ElButton,B.ElButtonGroup,B.ElCalendar,B.ElCard,B.ElCarousel,B.ElCarouselItem,B.ElCascader,B.ElCascaderPanel,B.ElCheckTag,B.ElCheckbox,B.ElCheckboxButton,B.ElCheckboxGroup,B.ElCol,B.ElCollapse,B.ElCollapseItem,B.ElCollapseTransition,B.ElColorPicker,B.ElConfigProvider,B.ElContainer,B.ElAside,B.ElFooter,B.ElHeader,B.ElMain,B.ElDatePicker,B.ElDescriptions,B.ElDescriptionsItem,B.ElDialog,B.ElDivider,B.ElDrawer,B.ElDropdown,B.ElDropdownItem,B.ElDropdownMenu,B.ElEmpty,B.ElForm,B.ElFormItem,B.ElIcon,B.ElImage,B.ElImageViewer,B.ElInput,B.ElInputNumber,B.ElLink,B.ElMenu,B.ElSubMenu,B.ElMenuItem,B.ElMenuItemGroup,B.ElPageHeader,B.ElPagination,B.ElPopconfirm,B.ElPopover,B.ElPopper,B.ElProgress,B.ElRadio,B.ElRadioButton,B.ElRadioGroup,B.ElRate,B.ElResult,B.ElRow,B.ElScrollbar,B.ElSelect,B.ElOption,B.ElOptionGroup,B.ElSelectV2,B.ElSkeleton,B.ElSkeletonItem,B.ElSlider,B.ElSpace,B.ElSteps,B.ElStep,B.ElSwitch,B.ElTable,B.ElTableColumn,B.ElTableV2,B.ElTabs,B.ElTabPane,B.ElTag,B.ElTimePicker,B.ElTimeSelect,B.ElTimeline,B.ElTimelineItem,B.ElTooltip,B.ElTransfer,B.ElTree,B.ElTreeSelect,B.ElTreeV2,B.ElUpload],pi=[B.ElInfiniteScroll,B.ElLoading,B.ElMessage,B.ElMessageBox,B.ElNotification,B.ElPopoverDirective],yi=e=>{gi.forEach(n=>{let a=n.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,n)):e.use(n)}),pi.forEach(n=>{e.use(n)})};function se(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=l=>{l.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}function ye(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const we={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},De={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}},ja={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}},Ha={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}},Ka=[];for(const e in Ha)Ka.push(e);const bi=Symbol.for("InnerPageScopeKey"),vi={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},wi=(e,n)=>({inheritAttrs:!0,props:{...we,...ja,...vi},setup(a,{slots:l}){const o=Un(a.name,a),r=t.inject(bi,!1);if(o){const h=Pa(o,a);ye({getPageContentHeight:()=>en(o,h),getPageContentWidth:()=>tn(o,h),getPageHeaderHeight:()=>Et(o,h),getPageFooterHeight:()=>Vt(o,h)}),h&&r&&(h.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),u=t.computed(()=>({})),s=t.getCurrentInstance(),d=(h,c=!1)=>{const w=s?.proxy;w&&typeof w.setNameValidateRules=="function"&&w.setNameValidateRules(h,!0,c)};return t.watch([()=>a.rules,()=>a.pureDataRules],([h,c],[w,M])=>{if(h&&w){const g=t.toRaw(w),p=t.toRaw(h),y=p?Reflect.ownKeys(p):[];(g?Reflect.ownKeys(g):[]).forEach(m=>{y.includes(m)||(p[m]=[])}),d(p)}if(c&&M){const g=t.toRaw(M),p=t.toRaw(c),y=p?Reflect.ownKeys(p):[];(g?Reflect.ownKeys(g):[]).forEach(m=>{y.includes(m)||(p[m]=[])}),d(p,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const h=t.toRaw(a.rules);d(h)}if(a.pureDataRules){const h=t.toRaw(a.pureDataRules);d(h,!0)}}),()=>{const h={class:i.value,style:u.value};return t.h("div",h,[l?.default?.()])}}}),{componentName:Si,create:Ci,scope:Zg}=se("page"),Qn=Ci(wi(Si));function ln(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function el(e){const n=t.unref(e),a=window.getComputedStyle(n,null),l=parseFloat(a.getPropertyValue("padding-left")),o=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-o,height:n.clientHeight-r-i}}const Ti=(e,n,a,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(o,r){const i=Ue(),u=i?Qt(i):null;u&&(u.headerMounted=!0);const s=e,d=t.computed(()=>({[s]:!0,[`${s}--border`]:o.border,[`${s}--fixed`]:o.fixed,[`${s}--safe-area-inset-top`]:o.safeAreaInsetTop})),h=t.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${o.align}`]:!0})),c=o.height!==null&&o.height!==void 0?me(o.height):null,w=t.computed(()=>{const F={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const C=He(o.padding??u.headerPadding);return Object.assign(F,C),c&&(u.headerHeight=c),u.headerHeight>0&&(F.height=u.headerHeight),F.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,F.safeAreaTop>0&&(F.top=F.safeAreaTop+(C.top??0),F.height&&F.height>0&&(F.height=F.height+F.safeAreaTop)),F}if(c&&(F.height=c),o.padding){const C=He(o.padding);Object.assign(F,C)}return F}),M=t.ref(null),g=()=>{if(u&&M.value&&!Yt(M.value)){if(!l){const F=ln(M.value);u.headerAllHeight=F.height}return u.headerMounted=!0,!0}return!1};let p=null;t.onMounted(()=>{u&&(Zt(g,50,5,50,!0),window.ResizeObserver&&M.value&&(p=new window.ResizeObserver(()=>{g()}),p.observe(M.value)))}),t.onUnmounted(()=>{u&&(u.headerMounted=!1,p&&(p.disconnect(),p=null))});const y=t.computed(()=>{const F={};return w.value.height!==null&&w.value.height!==void 0&&(F.height=`${w.value.height}px`),w.value.top!==null&&w.value.top!==void 0&&(F.paddingTop=`${w.value.top}px`),w.value.left!==null&&w.value.left!==void 0&&(F.paddingLeft=`${w.value.left}px`),w.value.right!==null&&w.value.right!==void 0&&(F.paddingRight=`${w.value.right}px`),w.value.bottom!==null&&w.value.bottom!==void 0&&(F.paddingBottom=`${w.value.bottom}px`),F}),A=t.computed(()=>!(w.value.height!==null&&w.value.height!==void 0&&w.value.height<=0));function m(){r.emit("back")}function f(){r.emit("click-title")}function V(){r.emit("click-right")}function R(){r.emit("click-right-text")}const L=()=>{if(!o.leftShow)return null;const F=[];if(r.slots.left)F.push(r.slots.left());else{if(r.slots.leftIcon){const C=t.h("view",{class:"left-icon",onClick:m},[r.slots.leftIcon()]);F.push(C)}else if(o.leftIcon){const C=t.h("view",{class:"left-icon",onClick:m},[t.h(o.leftIcon)]);F.push(C)}if(o.leftText){const C=t.h("view",{class:"left-text",onClick:m},[o.leftText]);F.push(C)}}return F.length===0?null:t.h("view",{class:"fox-header-bar__left"},F)},D=()=>{if(!o.rightShow)return null;const F=[];if(r.slots.right)F.push(r.slots.right());else{if(o.rightText){const C=t.h("view",{class:"right-text",onClick:R},[o.rightText]);F.push(C)}if(r.slots.rightIcon){const C=t.h("view",{class:"right-icon",onClick:V},[r.slots.rightIcon()]);F.push(C)}else if(o.rightIcon){const C=t.h("view",{class:"right-icon",onClick:V},[t.h(o.rightIcon)]);F.push(C)}}return F.length===0?null:t.h("view",{class:"fox-header-bar__right"},F)},_=()=>{if(!o.titleShow)return null;const F=[],C=r.slots.default?r.slots.default():null;if(C)F.push(C);else{if(o.title){const z=t.h("view",{class:"title-text"},[o.title]);F.push(z)}if(r.slots.titleIcon){const z=t.h("view",{class:"title-icon",onClick:f},[r.slots.titleIcon()]);F.push(z)}else if(o.titleIcon){const z=t.h("view",{class:"title-icon",onClick:f},[t.h(o.titleIcon)]);F.push(z)}}return F.length===0?null:t.h("view",{class:"fox-header-bar__title"},F)},N=()=>{const F=[],C=r.slots.bottom?r.slots.bottom():null;return C&&F.push(C),F.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},F)};return()=>{if(!A.value)return null;const F=[];if(r.slots.all)F.push(r.slots.all());else{const z=[],$=L();$&&z.push($);const k=_();k&&z.push(k);const T=D();if(T&&z.push(T),z.length>0){const j=t.h("view",{class:h.value},z);F.push(j)}const U=N();U&&F.push(U)}if(F.length===0)return null;const C={class:d.value,style:y.value,ref:M};return t.h("view",C,F)}}}),{componentName:xi,create:$i,scope:ki}=se("header-bar"),tl=$i(Ti(xi,ki,$e.ArrowLeft));function Di(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,o){const r=Ue(),i=r?Qt(r):null,u=t.computed(()=>{const g=e;return{[g]:!0,[`${g}--${l.align}`]:!0,[`${g}--border`]:l.border,[`${g}--fixed`]:l.fixed,[`${g}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),s=l.height!==null&&l.height!==void 0?me(l.height):null,d=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const p=He(l.padding??i.footerPadding);return Object.assign(g,p),s&&(i.footerHeight=s),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(p.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(s&&(g.height=s),l.padding){const p=He(l.padding);Object.assign(g,p)}return g}),h=t.ref(null),c=()=>{if(i&&h.value&&!Yt(h.value)){if(!a){const g=ln(h.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let w=null;t.onMounted(()=>{i&&(Zt(c,50,5,50,!0),window.ResizeObserver&&(w=new window.ResizeObserver(()=>{c()}),w.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,w&&(w.disconnect(),w=null))});const M=t.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=Ae(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=Ae(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=Ae(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=Ae(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=Ae(d.value.bottom)),g});return()=>{const g=o.slots.default?o.slots.default():[],p={ref:h,class:u.value,style:M.value};return t.h("view",p,g)}}}}const{componentName:Ni,create:Ei,scope:Jg}=se("footer-bar"),nl=Ei(Di(Ni));function Vi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const l=Ue(),o=t.computed(()=>({[e]:!0})),r=l?Qt(l):null,i=t.computed(()=>{const d={};if(l&&r){if(a.padding){const M=He(a.padding);Object.assign(r.contentPadding,M)}const h=Et(l,r),c=Vt(l,r);let w="";if(r.contentHeight?w=`${r.contentHeight}`:w=`${r.height}px`,r.contentPadding,d.height=w,r.contentPadding.top||h>0){const M=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${h+M}px`}if(r.contentPadding.bottom||c>0){const M=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${c+M}px`}return r.contentPadding.left&&(d.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(d.paddingRight=`${r.contentPadding.right}px`),d}if(a.padding){const h=He(a.padding);h.left&&(d.paddingLeft=`${h.left}px`),h.top&&(d.paddingTop=`${h.top}px`),h.right&&(d.paddingRight=`${h.right}px`),h.bottom&&(d.paddingBottom=`${h.bottom}px`)}return d}),u=t.ref(null),s=()=>{if(r&&u.value){const d=el(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:o,styles:i}}}}const{componentName:Ii,create:Oi,scope:Qg}=se("content"),Ai=Oi(Vi(Ii));function Fi(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Ne=(e,n)=>{const a=e.__vccOpts||e;for(const[l,o]of n)a[l]=o;return a},ll=Ne(Ai,[["render",Fi]]),mt="GroupStateKey",Ya=Symbol.for("GroupScopeKey");function an(){return t.inject(Ya,!1)}function on(e=!0){t.provide(Ya,e)}function Bi(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const o=n[l];Kn(o)||(e[l]=o)})}function Mi(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Bi(l,n);const o=t.shallowRef(l),r=t.markRaw({layout:o,passport:0,order:{index:0}});return e.set(mt,r),r}function al(e,n,a=-1,l=-1,o=!1,r,i,u){const s=e.get(mt);if(!s)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),l===-1&&(l=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const h=me(r),c=me(i);u||(u=d.type??"grid");const w=()=>{const M=n===""||n===-1,g=me(n);let p=he(a);const y=me(l);if(!M){let f=(g-(p-1)*y)/p;for(;c!==-1&&f>c;)p++,f=(g-(p-1)*y)/p;for(;h!==-1&&p>1&&f<h;)p--,f=(g-(p-1)*y)/p}let A=!1;const m=s.layout;m.value.width=n,m.value.column!==p&&(m.value.column=p,A=!0),m.value.gutter!==y&&(m.value.gutter=y,A=!0),m.value.type!==u&&(m.value.type=u,A=!0),A&&t.triggerRef(m)};if(o)w();else{const M=++s.passport;setTimeout(()=>{M===s.passport&&w()},50)}}function rn(e,n=!1){let a;return n?a=e.getForParent(mt):a=e.get(mt),a.layout}function sn(e,n=!1){let a;return n?a=e.getForParent(mt):a=e.get(mt),a.order}function Wa(e,n=1){if(n==="stretch")return-1;const a=he(n);return a===-1?100:100*a/e}function un(e,n,a=1,l=0,o){const r={};let i=0;o?i=me(o):i=Wa(n.column,a),i>0&&(r.width=`${i}%`);const u=Wa(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 cn(e,n,a=1,l=0){if(a==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let o=he(a);if(o===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(o>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const r=he(l)%n.column;let i=(e.index+r)%n.column,u=i+o;return u>n.column?(i=0,u=i+o,e.index=e.index+(n.column-i)+o):e.index=e.index+r+o,r>0?{"grid-column":`${i+1} / span ${o}`}:{"grid-column-start":`span ${o}`}}const Ua=Symbol("RollingStateKey");function Ri(e){t.provide(Ua,e)}function Li(){return t.inject(Ua,null)}function ol(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const o=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-o-r}else n=e.offsetHeight;return n}function _i(e){let n=ol(e);if(n<=0){const a=e.cloneNode(!0),l=e.offsetWidth;a.style=`width: ${l}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=ol(a),document.body.removeChild(a)}return n}function Pi(e,n,a){if(e<=0)return"1fr";const l=(e-(n-1)*a)/n;return l>0?`${l}px`:"1fr"}const qi={...we,...ja,...Ha};function zi(e,n,a){return{props:qi,emits:["update:collapse","header-click"],setup(l,o){const r=Un(l.name,l,Ka),i=Mi(r,{type:l.type}),u=an();on(!0);const s=l.rollingDisplay?Li():null,d=t.ref(null),h=t.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),c=t.computed(()=>u&&r?rn(r,!0).value:null),w=t.getCurrentInstance(),M=(O,G=!1)=>{const J=w?.proxy;J&&typeof J.setNameValidateRules=="function"&&J.setNameValidateRules(O,!0,G)};t.watch([()=>l.rules,()=>l.pureDataRules],([O,G],[J,S])=>{if(O&&J){const Y=t.toRaw(J),te=t.toRaw(O),le=te?Reflect.ownKeys(te):[];(Y?Reflect.ownKeys(Y):[]).forEach(oe=>{le.includes(oe)||(te[oe]=[])}),M(te)}if(G&&S){const Y=t.toRaw(S),te=t.toRaw(G),le=te?Reflect.ownKeys(te):[];(Y?Reflect.ownKeys(Y):[]).forEach(oe=>{le.includes(oe)||(te[oe]=[])}),M(te,!0)}},{deep:!0});const g=e,p=t.computed(()=>{const O={};O.height=T.value;const G=u?sn(r,!0):null;if(c.value&&G){if(c.value.type==="grid"){const J=cn(G,c.value,l.span,l.offset);Object.assign(O,J)}else if(c.value.type==="flow"){const J=un(G,c.value,l.span,l.offset,l.width);Object.assign(O,J)}}else if(l.width){const J=Ae(l.width);O.width=J}return O}),y=t.computed(()=>{const O=i.layout.value.type;return O==="grid"||O==="flow"?{[`${g}--${O}`]:!0,[`${g}--${O}-justify-${l.justify}`]:!0,[`${g}--${O}-align-${l.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${O}`]:!0,[`${g}--gutter`]:!0}}),A=t.computed(()=>{if(i.layout.value.type==="grid"){let G="";if(l.columnWidth)G=`repeat(auto-fill, ${l.columnWidth})`;else{const J=Pi(_.value,i.layout.value.column,i.layout.value.gutter);G=`repeat(${i.layout.value.column}, ${J})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":G}}}),m=t.toRef(l,"gutter"),f=t.toRef(l,"column"),V=t.computed(()=>u||h.value?!0:ce(l.isWrap)),R=[],L=O=>{R.push(O)},D=()=>{let O=R.length;R.splice(0,O)},_=t.ref(-1),N=O=>{const G=el(O).width;G>0&&G!==_.value&&(_.value=G)};al(r,_.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([_,f,m],([O,G,J])=>{i.order.index=0,al(r,O,G,J,!1,l.minItemWidth,l.maxItemWidth,l.type)});const F=t.computed(()=>U.value?l.expandText??"":l.collapseText??""),C=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),z=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),$=t.ref(),k=t.ref(),T=t.computed(()=>j.value||Ae(l.height)||""),U=t.ref(!1),j=t.ref(""),ee=t.ref(!1);let X=-1;const Q=(O,G=!0)=>{const J=$.value;if(J&&U.value!==O){if(X=X===-1?_i(J):X,ee.value=!0,G)if(J.style["will-change"]="height",J.ontransitionend=function(){J.ontransitionend=null,this.style["will-change"]="auto",O||(j.value="",ee.value=!1)},O){let S=0;l.collapseHeight?S=l.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(S=k.value.offsetHeight),j.value=`${X}px`,t.nextTick(()=>{j.value=`${S}px`})}else j.value=`${X}px`;else if(O){let S=0;l.collapseHeight?S=l.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(S=k.value.offsetHeight),j.value=`${S}px`}else ee.value=!1,j.value=`${X}px`;U.value=O,o.emit("update:collapse",O)}};t.watch(()=>l.collapse,O=>{Q(O)});const ae=O=>{o.emit("header-click",O)},P=()=>{E()},E=O=>{O=O??!U.value,Q(O)};ye({toggleCollapse:E,doLayout:()=>{R[0]&&(N(R[0]),al(r,_.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let H=null,I=!0;const Z=O=>{if(l.rules){const G=t.toRaw(l.rules);M(G)}if(l.pureDataRules){const G=t.toRaw(l.pureDataRules);M(G,!0)}if(ot&&(O&&Q(ce(l.collapse),!1),l.autoLayout&&Array.isArray(R)&&R.length>0)){const G=R[0];N(G),window.ResizeObserver&&(H=new window.ResizeObserver(()=>{N(G)}),H.observe(G))}},W=()=>{H?.disconnect(),H=null},x=!h.value||s?.acquire();x&&(d.value=h.value?!0:null),t.onMounted(()=>{if(x&&(Z(I),I=!1),h.value&&s){let O=null,G=s.initialHeight;s.observe($.value,J=>{if(J!==d.value)if(J)d.value=!0,U.value||(j.value=""),O=setTimeout(()=>{O=null,d.value!==!1&&(Z(I),I=!1)},100);else{if(O!==null&&clearTimeout(O),d.value=!1,!U.value)if(I)j.value=s.initialHeight;else{let S=ol($.value);S<=0?j.value=G:(j.value=`${S}px`,G=j.value)}I||W()}})}}),t.onUnmounted(()=>{H?.disconnect(),s&&s.unobserve($.value)});const b=(O="right")=>{const G=[];if(F.value){const Y={class:C.value},te=t.h("span",Y,[F.value]);G.push(te)}const J={class:z.value},S=a(l.collapseIcon,J);return S&&G.push(S),G.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${O}`]:!0},onClick:P},G):null},q=(O,G,J,S)=>{const Y={...y.value};return G===0&&(Y[`${g}__first`]=!0),J>=S-1&&(Y[`${g}__last`]=!0),t.h("div",{ref:L,key:`${G}`,class:Y,style:A.value},O)};return()=>{if(h.value&&d.value!==!0){const Y=l.tag||"div";return t.h(Y,{ref:$,prop:l.name,class:{[`${g}`]:!0,"is-collapse":ee.value},style:p.value},[])}i.order.index=0;const O=[];let G=0;if(o.slots.header){const Y={key:`${G++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:ae},te=t.h("div",Y,[o.slots.header()]);O.push(te)}else{const Y=[],te=l.collapsePosition==="left";if(te&&l.showCollapse){const le=b("left");le&&Y.push(le)}if(l.title||o.slots.title){if(l.showMark){const le={class:{[`${g}__header-mark`]:!0}};l.markColor&&(le.style={background:l.markColor});const ne=t.h("div",le);Y.push(ne)}if(o.slots.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[o.slots.title()]);Y.push(le)}else if(l.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[l.title]);Y.push(le)}}if(o.slots.toolbar&&Y.push(o.slots.toolbar()),!te&&l.showCollapse){const le=b("right");le&&Y.push(le)}if(Y.length>0){const le={key:`${G++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:ae},ne=t.h("div",le,Y);O.push(ne)}}D();const J=o.slots.default?o.slots.default():[],S=i.layout.value.type;if(S==="grid"){const Y=q(J,G++,0,J.length);O.push(Y)}else if(S==="flow"){const Y=q(J,G++,0,J.length);O.push(Y)}else for(let Y=0;Y<J.length;Y++){const te=J[Y],le=q([te],G++,Y,J.length);O.push(le)}if(V.value){const Y=l.tag||"div";return t.h(Y,{ref:$,prop:l.name,class:{[`${g}`]:!0,"is-collapse":ee.value},style:p.value},[O])}else return O}}}}const{componentName:ji,create:Hi,scope:Ki}=se("group"),rl=Hi(zi(ji,Ki,(e,n)=>(e=e??$e.ArrowUp,t.h(B.ElIcon,n,{default:()=>[t.h(e)]}))));function Yi(e){return e===window}const Wi=/matrix\((.+)\)/,Ga=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Yi(n))return{x:0,y:0};let a=0,l=0,o=n;for(;o!==null;)a+=o.offsetLeft,l+=o.offsetTop,o=o.offsetParent;let r=0,i=0,u=0,s=0;for(o=n;o!==document;){i+=o.scrollTop,r+=o.scrollLeft;const{transform:d}=window.getComputedStyle(o);if(d){const h=Wi.exec(d);if(h){let w=h[1].split(/\s*,\s*/);w.length==6&&(u+=Number(w[4]),s+=Number(w[5]))}}o=o.parentNode}return a-=r,l-=i,a+=u,l+=s,{x:a,y:l}};class Ui{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Gi{monitorRegister=new WeakMap;watch(n,a){let l=n.parentNode;const o=document.body.parentNode;for(;l&&l!==o;){let r=this.monitorRegister.get(l);r||(r=new Ui,l.addEventListener("scroll",r.listen),l===document.body&&l.addEventListener("resize",r.listen),this.monitorRegister.set(l,r)),r.add(a),l=l.parentNode}}unwatch(n,a){let l=n.parentNode;const o=document.body.parentNode;for(;l&&l!==o;){let r=this.monitorRegister.get(l);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",r.listen),l===document.body&&l.removeEventListener("resize",r.listen))),l=l.parentNode}}}const Xa=new Gi,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:Xi,create:Zi}=se("price"),Ji=Zi({props:{...Za},setup(e){const n=t.computed(()=>({[Xi]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>je(e.price)==0?"":zt(e.price,e.decimalLength,!0,he(e.digits),e.separator)),o=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),r=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:a,intText:o,decimalText:r}}}),Qi=["innerHTML"],es=["innerHTML"];function ts(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Qi)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,es)):t.createCommentVNode("",!0)],2)}const fn=Ne(Ji,[["render",ts]]),{componentName:il,create:ns}=se("hint-text"),ls=ns({components:{Price:fn},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 a=t.ref({top:null,right:null,bottom:null,left:null}),l=t.ref({x:0,y:0}),o=t.ref(0),r=t.ref(0),i=t.ref(e.placement),u=t.ref(!1),s=t.ref(null),d=(C,z,$,k,T,U)=>{const j=document.documentElement.clientWidth||document.body.clientWidth,ee=document.documentElement.clientHeight||document.body.clientHeight,X=C.split("-");let Q=[];X[0]==="top"?Q=["top","bottom","right","left"]:X[0]==="bottom"?Q=["bottom","top","right","left"]:X[0]==="left"?Q=["left","top","bottom","right"]:X[0]==="right"&&(Q=["right","top","bottom","left"]);const ae={top:null,right:null,bottom:null,left:null},P=[];for(let E=0;E<Q.length;E++){const K=Q[E];if(P[0]=K,X[1]&&(P[1]=X[1]),K==="top"){const H=z.y-U-e.arrowSize-e.offset;if(H>=0){ae.top=H;let I=0;X[1]==="start"?I=z.x:X[1]==="end"?I=z.x+$-T:I=z.x+$/2-T/2;const Z=j-I-T;Z<0?(I+=Z,c.value=-Z):c.value=0,ae.left=I<0?0:I;break}}else if(K==="bottom"){const H=z.y+k+e.arrowSize+e.offset;if(H+U<=ee){ae.top=H;let I=0;X[1]==="start"?I=z.x:X[1]==="end"?I=z.x+$-T:I=z.x+$/2-T/2;const Z=j-I-T;Z<0?(I+=Z,c.value=-Z):c.value=0,ae.left=I<0?0:I;break}}else if(K==="left"){const H=z.x-T-e.arrowSize-e.offset;if(H>=0){ae.left=H;let I=0;X[1]==="start"?I=z.y:X[1]==="end"?I=z.y+k-U:I=z.y+k/2-U/2,ae.top=I<0?0:I;break}}else if(K==="right"){const H=z.x+$+e.arrowSize+e.offset;if(H+T<=j){ae.left=H;let I=0;X[1]==="start"?I=z.y:X[1]==="end"?I=z.y+k-U:I=z.y+k/2-U/2,ae.top=I<0?0:I;break}}}return{bestPlacement:P.join("-"),bestInsetRect:ae}},h=(C,z,$=10)=>{if(!ot||z===!1||!C)return;l.value=Ga(e.reference),o.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const k=s.value.offsetHeight,T=s.value.offsetWidth,{bestPlacement:U,bestInsetRect:j}=d(e.placement,l.value,o.value,r.value,T,k);i.value=U,a.value=j,u.value=!0},c=t.ref(0),w=Nt(()=>{h(e.message,e.visible)},10),M=t.ref(e.visible);t.watch(()=>e.visible,C=>{M.value=C});const g=t.computed(()=>M.value&&p.value),p=t.ref(!0),y=Nt(C=>{const z=C[0];z&&(p.value=z.isIntersecting)},10),A=new IntersectionObserver(y);t.watch([()=>e.message,()=>e.visible],([C,z])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Xa.watch(e.reference,w),A.observe(e.reference)}),t.onBeforeMount(()=>{Xa.unwatch(e.reference,w),A.unobserve(e.reference),A.disconnect()});const m=t.computed(()=>{const C={[il]:!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={};a.value.top!==null&&(C.top=`${a.value.top}px`),a.value.right!==null&&(C.right=`${a.value.right}px`),a.value.bottom!==null&&(C.bottom=`${a.value.bottom}px`),a.value.left!==null&&(C.left=`${a.value.left}px`),e.autoFit&&(C["min-width"]=`${o.value}px`);const z=document.documentElement.clientWidth||document.body.clientWidth;return C["max-width"]=`${z}px`,u.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}),V=t.computed(()=>{const C=[`${il}__content`];return e.customTextClass&&C.push(e.customTextClass),C}),R=t.computed(()=>{const C={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(C,e.customTextStyle),C}),L=t.computed(()=>({[`${il}__arrow`]:!0})),D=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+c.value}px`,C.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(C.right=`${e.arrowOffset-c.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+c.value}px`,C.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(C.right=`${e.arrowOffset-c.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"}}),_=t.computed(()=>g.value&&e.closeOnClick),N=t.computed(()=>{const C={};return e.zIndex&&(C["z-index"]=`${e.zIndex}`),C});return{show:g,tipRef:s,classes:m,styles:f,textClasses:V,textStyles:R,arrowClasses:L,arrowStyles:D,overlayShow:_,overlayStyle:N,onClickOverlay:()=>{M.value=!1,n.emit("update:visible",!1)}}}}),as=["innerHTML"];function os(e,n,a,l,o,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,as))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const It=Ne(ls,[["render",os]]);class Ja{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 sl={},rs=new Ja,gt=new Map,dn=e=>{if(e){const n=document.getElementById(e);gt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of gt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}gt.clear()}},is=e=>{e.unmount=dn;const n=document.getElementById(e.id);if(n){const a=gt.get(e.id);a?e={...sl,...a,...e}:e={...sl,...e},e.transition=!1;const l=t.createVNode(It,e);return t.render(l,n),e.id}},ss=e=>{e.unmount=dn;let n=e.id??`hinttext_${rs.get()}`;e={...sl,...e},e.id=n,gt.set(n,e);const a=document.createElement("div");a.id=e.id;const l=t.createVNode(It,e);return t.render(l,a),document.body.appendChild(a),n},us=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Be={show(e,n,a={},l=!0){us(n);const o=a.id;return o&>.has(o)?is({...a,message:n,reference:e}):(l&&dn(),ss({...a,message:n,reference:e}))},hide(e){dn(e)},install(e){e.config.globalProperties.$hintText=Be}};function cs(e,n,a,l=!1){return{inheritAttrs:!0,props:{...we,...De},emits:["appear","disappear"],setup(o,r){const i=o.prop??r.attrs.name;xe({componentName:e,validate:!1},i);const u=Ue(),s=an();on(!1);const d=t.computed(()=>s&&u?rn(u,!1).value:null),h=e,c=t.ref(null),w=t.computed(()=>{const S={[h]:!0,[`${h}__gutter`]:d.value&&d.value.type!=="flow",[`${h}__stretch`]:o.span==="stretch",[`${h}__input--border`]:ce(o.hasBorder)};if(S[o.errorMarkClass]=!!U.value,S[o.warnMarkClass]=!!k.value,S[o.infoMarkClass]=!!z.value,typeof c.value=="function"){const Y=c.value(i);S[Y]=!0}else if(typeof c.value=="string"){const Y=c.value;S[Y]=!0}return S}),M=t.ref(null),g=t.computed(()=>{const S={};if(o.width)o.width!=="auto"&&(S.width=Ae(o.width));else{const Y=s&&u?sn(u,!1):null;if(d.value&&Y){if(d.value.type==="grid"){const te=cn(Y,d.value,o.span,o.offset);Object.assign(S,te)}else if(d.value.type==="flow"){const te=un(Y,d.value,o.span,o.offset,o.width);Object.assign(S,te)}}}if(typeof M.value=="function"){const Y=M.value(i);Y&&Object.assign(S,Y)}else if(M.value&&typeof M.value=="object"){const Y=M.value;Object.assign(S,Y)}return S}),p=t.ref(null),y=t.computed({get:()=>p.value??ce(o.isRequired),set:S=>{p.value=S}}),A=()=>typeof o.label=="string"&&o.label.length>0||typeof r.slots.label=="function",m=Ee(t.toRef(o,"labelPosition"),"labelPosition",_e.Near),f=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),V=t.computed(()=>({[`${h}__main`]:!0,[`${h}__main--${f.value}`]:!0})),R=t.computed(()=>({label:!0,[`label--${f.value}`]:!0})),L=Ee(t.toRef(o,"labelWidth"),"labelWidth",_e.Near),D=t.computed(()=>L&&L.value?{width:Ae(L.value)}:{}),_=t.computed(()=>({"label--string":!0,"label--required":y.value})),N=t.computed(()=>({content:!0,[o.contentClass]:!0})),F=t.computed(()=>({...o.contentStyle})),C=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ye({setRequired(S){y.value=S},setErrorTip(S){C.errorTip=S},setErrorIcon(S){C.errorIcon=S},setWarnTip(S){C.warnTip=S},setWarnIcon(S){C.warnIcon=S},setInfoTip(S){C.infoTip=S},setInfoIcon(S){C.infoIcon=S},setCustomClassName(S){c.value=S},setCustomStyle(S){M.value=S}});const z=t.computed(()=>o.infoTip||C.infoTip),$=t.computed(()=>o.infoIcon||C.infoIcon),k=t.computed(()=>o.warnTip||C.warnTip),T=t.computed(()=>o.warnIcon||C.warnIcon),U=t.computed(()=>o.errorTip||C.errorTip),j=t.computed(()=>o.errorIcon||C.errorIcon),ee=t.computed(()=>U.value?"error":k.value?"warn":z.value?"info":""),X=()=>ee.value.length>0,Q=t.computed(()=>ee.value==="error"?U.value:ee.value==="warn"?k.value:ee.value==="info"?z.value:""),ae=t.computed(()=>ee.value==="error"?j.value:ee.value==="warn"?T.value:ee.value==="info"?$.value:null),P=t.computed(()=>{const S={[`${h}__tip`]:!0,[`${h}__tip--${ee.value}`]:!0,[`${h}--animate`]:!0};return ee.value==="error"&&o.errorClass?S[`${o.errorClass}`]=!0:ee.value==="warn"&&o.warnClass?S[`${o.warnClass}`]=!0:ee.value==="info"&&o.infoClass&&(S[`${o.infoClass}`]=!0),S}),E=t.computed(()=>{const S={};return m&&m.value==="top"||!A()?S["padding-left"]="0px":L&&L.value&&(S["padding-left"]=Ae(L.value)),S}),K=t.ref();let H="";t.watch([()=>o.hintVisible,()=>o.hintText,()=>o.hintType,()=>o.hintProps],([S,Y,te,le])=>{K.value&&(S&&!pe(Y)?H?a.show(K.value,Y,{...le,id:H,type:te},!0):H=a.show(K.value,Y,{...le,type:te},!0):a.hide(H))});let I=null;const Z=()=>{I||!K.value||(I=new IntersectionObserver(S=>{let Y=!1;for(let te of S)if(te.intersectionRatio>0){Y=!0,Y&&r.emit("appear",te);break}Y||r.emit("disappear")}),I.observe(K.value))},W=()=>{!I||!K.value||(I.unobserve(K.value),I=null)};t.watch(()=>ce(o.appearListen),S=>{S?Z():W()}),t.onMounted(()=>{ce(o.appearListen)&&Z()}),t.onUnmounted(W);const x=()=>{if(!A())return null;const S=[],Y=r.slots?.label?.()??o.label,te={class:_.value},le=t.h("div",te,[Y]);if(S.push(le),r.slots.fixedPreTip){const oe=r.slots.fixedPreTip();S.push(oe)}const ne={class:R.value,style:D.value};return t.h("div",ne,S)},b=()=>{const S=[];if(r.slots.prepend){const te=r.slots.prepend();S.push(te)}if(r.slots.default){const te=r.slots.default();S.push(te)}if(r.slots.append){const te=r.slots.append();S.push(te)}if(r.slots.fixedTip){const te={class:[`${h}__fixed-tip`]},le=t.h("div",te,[r.slots.fixedTip()]);S.push(le)}const Y={ref:K,class:N.value,style:F.value};return t.h("div",Y,S)},q=()=>{const S=ae.value;return S?typeof S=="function"?t.h("div",{class:"fox-item__tip--icon"},[S()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(S)]):null},O=()=>{const S=Q.value;return S?typeof S=="function"?t.h("div",{class:"fox-item__tip--text"},[S()]):t.h("div",{class:"fox-item__tip--text"},[S]):null},G=()=>{if(!X())return null;const S=[],Y=q();Y&&S.push(Y);const te=O();te&&S.push(te);const le={class:P.value,style:E.value};return t.h("div",le,S)},J=()=>r.slots?.hide?.()??null;return()=>{const S=[],Y=[],te=x();te&&Y.push(te);const le=b();le&&Y.push(le);const ne={class:V.value},oe=t.h("div",ne,Y);S.push(oe);const ie=G();ie&&S.push(ie);const ue=J();ue&&S.push(ue);const be={class:w.value,style:g.value,prop:o.prop};return t.h("div",be,S)}}}}const{componentName:fs,create:ds,scope:hs}=se("item"),Se=ds(cs(fs,hs,Be,!1));function ms(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(a,l){const o=Ue(),r=an();on(!1);const i=t.computed(()=>r&&o?rn(o,!1).value:null),u=e,s=t.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const h={},c=r&&o?sn(o,!1):null;if(i.value&&c)if(i.value.type==="grid"){const w=cn(c,i.value,a.span,a.offset);Object.assign(h,w)}else if(i.value.type==="flow"){const w=un(c,i.value,a.span,a.offset,a.width);Object.assign(h,w)}else return a.width&&(h.width=Ae(a.width)),h;else a.width&&(h.width=Ae(a.width));return h});return()=>{const h={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",h,l.slots.default()):t.h("div",h)}}}}const{componentName:gs,create:ps,scope:tp}=se("slot-item"),ul=ps(ms(gs));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(a,l){const o=e,r=t.computed(()=>({[o]:!0,[`${o}__stretch`]:a.span==="stretch",[`${o}__${a.align}`]:!0})),i=Ue(),u=an();on(!1);const s=t.computed(()=>{const d={};if(u&&i){const h=rn(i,!1),c=sn(i,!1);if(h.value&&c)if(h.value.type==="grid"){const w=cn(c,h.value,a.span,a.offset);Object.assign(d,w)}else if(h.value.type==="flow"){const w=un(c,h.value,a.span,a.offset,a.width);Object.assign(d,w)}else a.width&&(d.width=Ae(a.width))}else a.width&&(d.width=Ae(a.width));return d});return()=>{const d=[];if(l.slots.default){const c=l.slots.default();if(a.divide)for(let w=0;w<c.length;w++){if(w>0){const M=t.h("div",{class:{[`${o}__divide`]:!0}});d.push(M)}d.push(c[w])}else Reflect.apply([].push,d,c)}const h={class:r.value,style:s.value};return t.h("div",h,d)}}}}const{componentName:bs,create:vs,scope:np}=se("row-item"),cl=vs(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},Qa={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function ws(e,n,a){return{props:{...we,...De,...Qa},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue",null,u),w=e,M=t.computed(()=>({[w]:!0,[`${w}__disabled`]:r.value,[`${w}__readonly`]:i.value})),g=$=>{c.value=$,u("update:modelValue",$),u("input",$)},p=$=>{u("change",$)};let y=de(l,"hintText"),A=t.ref(!1);const m=$=>{let T=$.target.value;h.value=!0,pe(y.value)||(A.value=!0),u("focus",T,$)},f=$=>{setTimeout(()=>{A.value&&(A.value=!1),h.value=!1},0);let T=$.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),u("blur",T,$)},V=()=>{u("clear","")},R=t.ref(!1);let L=null;const D=()=>{l.showTooltip&&R.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{R.value=!0},150))},_=()=>{L&&(clearTimeout(L),R.value=!1,L=null)},N=t.computed(()=>R.value||A.value),F=t.computed(()=>R.value?c.value:y.value),C=t.computed(()=>je(l.unit)>0),z=t.ref();return ye({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const k={...Ke(o.attrs),ref:z,class:M.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:V,onChange:p,onInput:g,onFocus:m,onBlur:f,onMouseover:D,onMouseleave:_},T={};o.slots.prepend&&(T.prepend=o.slots.prepend),o.slots.append&&(T.append=o.slots.append),o.slots.prefix&&(T.prefix=o.slots.prefix),o.slots.suffix?T.suffix=o.slots.suffix:C.value&&(T.suffix=()=>[l.unit]);const U=[],j=t.h(B.ElInput,k,T);U.push(j);const ee={default:()=>U};o.slots.default&&(ee.label=o.slots.default),o.slots.default&&(ee.fixedTip=o.slots.fixedTip);const Q={...ke(l,Qa),hintText:F.value,hintVisible:N.value,prop:`${l.prop}_item`};return t.h(a,Q,ee)}}}}const{componentName:Ss,create:Cs,scope:Ts}=se("input-item"),fl=Cs(ws(Ss,Ts,Se));function et(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ot(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function eo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function xs(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let $s=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function ks(){const e=t.getCurrentInstance();return new $s(e.proxy)}function to(e,n,a){const l=et(e,n),o=et(e,a);if(l!==o)return!1;const r=Ot(e,n),i=Ot(e,a);return r===i}function no(e,n,a,l){if(l.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];return n.forEach(r=>{for(let i of l){const u=eo(e,i);if(Array.isArray(u)&&u.length>0){const s=no(e,r,a,u)??[];Reflect.apply([].push,o,s)}else{let s=!1;if(a==="text")s=et(e,i)===r;else if(a==="item")s=to(e,i,r);else{let d=Ot(e,i);d==null&&(d=et(e,i)),s=d===r}if(s){o.push(i);break}}}}),o}function Ds(e){return{text:e,value:e}}const lo={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},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Ns(e,n,a){return{props:{...we,...De,...lo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(null),c=t.ref([]),w=t.computed(()=>c.value?c.value.map(q=>et(l,q)).join(" "):""),M=(b,q,O,G=!0)=>{const J=no(l,b,q,O);if(J===null){if(c.value===null||c.value.length===0)return;h.value=null,c.value=[],G&&(u("update:modelValue",null),u("update:text",null),u("change",null));return}let S=!0;if(J.length!==c.value.length)S=!1;else for(let Y=0;Y<J.length;Y++){const te=J[Y],le=c.value[Y];if(!to(l,te,le)){S=!1;break}}if(!S){c.value=J;let Y=[],te=[],le=[];J.forEach(ue=>{const be=Ot(l,ue),ge=et(l,ue);Y.push(be),le.push(ge),l.valueType==="text"?te.push(ge):l.valueType==="item"?te.push(ue):te.push(be)});let ne,oe,ie;ce(l.multiple)?(h.value=Y,ne=t.toRaw(te),oe=le,ie=t.toRaw(J)):(h.value=Y[0]??"",ne=t.toRaw(te[0]??""),oe=le[0]??"",ie=t.toRaw(J[0])),G&&(u("update:modelValue",ne),u("change",ne,ie)),u("update:text",oe)}},g=t.ref(null),p=t.ref(null),y=t.computed(()=>p.value??g.value??[]),A=Ee(t.computed(()=>l.appearLoad),"appearLoad",_e.Near,b=>ce(b)),m=ks(),f=async(b,q)=>{if(b){const O=await m.load("select",b,q);if(O.length>0)if(typeof O[0]=="string"){let S=O.map(Y=>Ds(Y));g.value=S}else g.value=O;else g.value=null}};t.watch([()=>l.source,()=>l.params],([b,q])=>{p.value=null,f(b,q)},{immediate:!A.value});let V=!1;const R=()=>{V||(V=!0,f(l.source,l.params))};t.watch([()=>g.value,()=>l.modelValue],([b,q])=>{if(N()&&ce(l.multiple)){Pe(q,h.value)||(h.value=q);return}M(q,l.valueType,y.value,!1),u("setValue",q)});let L=null,D=t.ref(!1);typeof l.remoteMethod=="function"&&(L=async b=>{if(b==null){p.value=null;return}D.value=!0;try{const q=await l.remoteMethod(b);q&&(p.value=q)}catch(q){p.value=null,console.error(q)}D.value=!1});let _=null;typeof l.filterMethod=="function"&&(_=async b=>{if(b==null){p.value=null;return}D.value=!0;try{const q=await l.filterMethod(b,g.value);q&&(p.value=q)}catch(q){p.value=null,console.error(q)}D.value=!1});const N=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",F=t.ref(!1),C=e,z=t.computed(()=>({[C]:!0})),$=b=>{l.allowCreate||N()&&ce(l.multiple)?(u("update:modelValue",b),u("change",b),u("update:text",b),h.value=b):M(b,"value",y.value,!0)};let k=de(l,"hintText"),T=t.ref(!1);const U=b=>{let O=b.target.value;F.value=!0,pe(k.value)||(T.value=!0),u("focus",O,b)},j=b=>{setTimeout(()=>{T.value&&(T.value=!1),F.value=!1},0);let O=b.target.value;l.maxLength&&O.length>Number(l.maxLength)&&(O=O.slice(0,Number(l.maxLength))),H.value||u("blur",O,b)},ee=()=>{u("clear","")},X=t.ref(!1);let Q=null;const ae=()=>{l.showTooltip&&X.value===!1&&(Q&&clearTimeout(Q),Q=setTimeout(()=>{X.value=!0},150))},P=()=>{Q&&(clearTimeout(Q),X.value=!1,Q=null)},E=t.computed(()=>X.value||T.value),K=t.computed(()=>X.value?w.value:k.value),H=t.ref(!1),I=b=>{H.value=b,u("visible-change",b),b||u("selected")},Z=b=>{u("remove-tag",b)},W=(b,q)=>{const O=[];return b.forEach((G,J)=>{const S=eo(l,G);if(Array.isArray(S)&&S.length>0){const Y=W(S,q),te=et(l,G),ne={key:`${te}_${J}`,label:te};O.push(t.h(B.ElOptionGroup,ne,{default:()=>Y}))}else{const Y=Ot(l,G),te=et(l,G),le=xs(l,G),oe={key:`${Y}_${J}`,label:te,disabled:le,value:Y};if(typeof q=="function")O.push(t.h(B.ElOption,oe,{default:()=>q(G)}));else if(l.optionType==="item"){const ie={class:{"fox-select-item__option-left":!0}},ue=t.h("span",ie,[Y]),be={class:{"fox-select-item__option-right":!0}},ge=t.h("span",be,[te]),nt=t.h("div",{class:{"fox-select-item__option":!0}},[ue,ge]);O.push(t.h(B.ElOption,oe,{default:()=>nt}))}else l.optionType==="value"?O.push(t.h(B.ElOption,oe,{default:()=>[Y]})):O.push(t.h(B.ElOption,oe))}}),O},x=t.ref();return ye({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()}}),()=>{const q={...Ke(o.attrs),ref:x,class:z.value,clearable:l.clearable,multiple:l.multiple,placeholder:d.placeholder.value,disabled:r.value||i.value,modelValue:h.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:ee,onChange:$,onFocus:U,onBlur:j,onVisibleChange:I,onRemoveTag:Z};typeof L=="function"&&(q["remote-method"]=L,q.loading=D.value),typeof _=="function"&&(q["filter-method"]=_,q.loading=D.value);const O={};o.slots.prefix&&(O.prefix=o.slots.prefix),o.slots.empty&&(O.empty=o.slots.empty),o.slots.options?O.default=o.slots.options:O.default=()=>W(y.value,o.slots.option);const G=[],J=t.h(B.ElSelect,q,O);G.push(J);const S={default:()=>G};o.slots.default&&(S.label=o.slots.default),o.slots.fixedTip&&(S.fixedTip=o.slots.fixedTip);const te={...ke(l,lo),hintText:K.value,hintVisible:E.value,prop:`${l.prop??o.attrs.name}_item`,onMouseover:ae,onMouseleave:P};return A.value&&(te["appear-listen"]=!0,te.onAppear=R),t.h(a,te,S)}}}}const{componentName:Es,create:Vs,scope:Is}=se("select-item"),dl=Vs(Ns(Es,Is,Se));var Ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ao={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){var a=1e3,l=6e4,o=36e5,r="millisecond",i="second",u="minute",s="hour",d="day",h="week",c="month",w="quarter",M="year",g="date",p="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function($,k,T){var U=String($);return!U||U.length>=k?$:""+Array(k+1-U.length).join(T)+$},V={s:f,z:function($){var k=-$.utcOffset(),T=Math.abs(k),U=Math.floor(T/60),j=T%60;return(k<=0?"+":"-")+f(U,2,"0")+":"+f(j,2,"0")},m:function $(k,T){if(k.date()<T.date())return-$(T,k);var U=12*(T.year()-k.year())+(T.month()-k.month()),j=k.clone().add(U,c),ee=T-j<0,X=k.clone().add(U+(ee?-1:1),c);return+(-(U+(T-j)/(ee?j-X:X-j))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:c,y:M,w:h,d,D:g,h:s,m:u,s:i,ms:r,Q:w}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},R="en",L={};L[R]=m;var D=function($){return $ instanceof C},_=function $(k,T,U){var j;if(!k)return R;if(typeof k=="string"){var ee=k.toLowerCase();L[ee]&&(j=ee),T&&(L[ee]=T,j=ee);var X=k.split("-");if(!j&&X.length>1)return $(X[0])}else{var Q=k.name;L[Q]=k,j=Q}return!U&&j&&(R=j),j||!U&&R},N=function($,k){if(D($))return $.clone();var T=typeof k=="object"?k:{};return T.date=$,T.args=arguments,new C(T)},F=V;F.l=_,F.i=D,F.w=function($,k){return N($,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var C=function(){function $(T){this.$L=_(T.locale,null,!0),this.parse(T)}var k=$.prototype;return k.parse=function(T){this.$d=function(U){var j=U.date,ee=U.utc;if(j===null)return new Date(NaN);if(F.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var X=j.match(y);if(X){var Q=X[2]-1||0,ae=(X[7]||"0").substring(0,3);return ee?new Date(Date.UTC(X[1],Q,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)):new Date(X[1],Q,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)}}return new Date(j)}(T),this.$x=T.x||{},this.init()},k.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},k.$utils=function(){return F},k.isValid=function(){return this.$d.toString()!==p},k.isSame=function(T,U){var j=N(T);return this.startOf(U)<=j&&j<=this.endOf(U)},k.isAfter=function(T,U){return N(T)<this.startOf(U)},k.isBefore=function(T,U){return this.endOf(U)<N(T)},k.$g=function(T,U,j){return F.u(T)?this[U]:this.set(j,T)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(T,U){var j=this,ee=!!F.u(U)||U,X=F.p(T),Q=function(W,x){var b=F.w(j.$u?Date.UTC(j.$y,x,W):new Date(j.$y,x,W),j);return ee?b:b.endOf(d)},ae=function(W,x){return F.w(j.toDate()[W].apply(j.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(x)),j)},P=this.$W,E=this.$M,K=this.$D,H="set"+(this.$u?"UTC":"");switch(X){case M:return ee?Q(1,0):Q(31,11);case c:return ee?Q(1,E):Q(0,E+1);case h:var I=this.$locale().weekStart||0,Z=(P<I?P+7:P)-I;return Q(ee?K-Z:K+(6-Z),E);case d:case g:return ae(H+"Hours",0);case s:return ae(H+"Minutes",1);case u:return ae(H+"Seconds",2);case i:return ae(H+"Milliseconds",3);default:return this.clone()}},k.endOf=function(T){return this.startOf(T,!1)},k.$set=function(T,U){var j,ee=F.p(T),X="set"+(this.$u?"UTC":""),Q=(j={},j[d]=X+"Date",j[g]=X+"Date",j[c]=X+"Month",j[M]=X+"FullYear",j[s]=X+"Hours",j[u]=X+"Minutes",j[i]=X+"Seconds",j[r]=X+"Milliseconds",j)[ee],ae=ee===d?this.$D+(U-this.$W):U;if(ee===c||ee===M){var P=this.clone().set(g,1);P.$d[Q](ae),P.init(),this.$d=P.set(g,Math.min(this.$D,P.daysInMonth())).$d}else Q&&this.$d[Q](ae);return this.init(),this},k.set=function(T,U){return this.clone().$set(T,U)},k.get=function(T){return this[F.p(T)]()},k.add=function(T,U){var j,ee=this;T=Number(T);var X=F.p(U),Q=function(E){var K=N(ee);return F.w(K.date(K.date()+Math.round(E*T)),ee)};if(X===c)return this.set(c,this.$M+T);if(X===M)return this.set(M,this.$y+T);if(X===d)return Q(1);if(X===h)return Q(7);var ae=(j={},j[u]=l,j[s]=o,j[i]=a,j)[X]||1,P=this.$d.getTime()+T*ae;return F.w(P,this)},k.subtract=function(T,U){return this.add(-1*T,U)},k.format=function(T){var U=this,j=this.$locale();if(!this.isValid())return j.invalidDate||p;var ee=T||"YYYY-MM-DDTHH:mm:ssZ",X=F.z(this),Q=this.$H,ae=this.$m,P=this.$M,E=j.weekdays,K=j.months,H=function(x,b,q,O){return x&&(x[b]||x(U,ee))||q[b].slice(0,O)},I=function(x){return F.s(Q%12||12,x,"0")},Z=j.meridiem||function(x,b,q){var O=x<12?"AM":"PM";return q?O.toLowerCase():O},W={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:F.s(P+1,2,"0"),MMM:H(j.monthsShort,P,K,3),MMMM:H(K,P),D:this.$D,DD:F.s(this.$D,2,"0"),d:String(this.$W),dd:H(j.weekdaysMin,this.$W,E,2),ddd:H(j.weekdaysShort,this.$W,E,3),dddd:E[this.$W],H:String(Q),HH:F.s(Q,2,"0"),h:I(1),hh:I(2),a:Z(Q,ae,!0),A:Z(Q,ae,!1),m:String(ae),mm:F.s(ae,2,"0"),s:String(this.$s),ss:F.s(this.$s,2,"0"),SSS:F.s(this.$ms,3,"0"),Z:X};return ee.replace(A,function(x,b){return b||W[x]||X.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(T,U,j){var ee,X=F.p(U),Q=N(T),ae=(Q.utcOffset()-this.utcOffset())*l,P=this-Q,E=F.m(this,Q);return E=(ee={},ee[M]=E/12,ee[c]=E,ee[w]=E/3,ee[h]=(P-ae)/6048e5,ee[d]=(P-ae)/864e5,ee[s]=P/o,ee[u]=P/l,ee[i]=P/a,ee)[X]||P,j?E:F.a(E)},k.daysInMonth=function(){return this.endOf(c).$D},k.$locale=function(){return L[this.$L]},k.locale=function(T,U){if(!T)return this.$L;var j=this.clone(),ee=_(T,U,!0);return ee&&(j.$L=ee),j},k.clone=function(){return F.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()},$}(),z=C.prototype;return N.prototype=z,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",d],["$M",c],["$y",M],["$D",g]].forEach(function($){z[$[1]]=function(k){return this.$g(k,$[0],$[1])}}),N.extend=function($,k){return $.$i||($(k,C,N),$.$i=!0),N},N.locale=_,N.isDayjs=D,N.unix=function($){return N(1e3*$)},N.en=L[R],N.Ls=L,N.p={},N})})(ao);var Os=ao.exports;const Ye=Xe(Os);var oo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(p){return(p=+p)+(p>68?1900:2e3)},d=function(p){return function(y){this[p]=+y}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var A=y.match(/([+-]|\d\d)/g),m=60*A[1]+(+A[2]||0);return m===0?0:A[0]==="+"?-m:m}(p)}],c=function(p){var y=u[p];return y&&(y.indexOf?y:y.s.concat(y.f))},w=function(p,y){var A,m=u.meridiem;if(m){for(var f=1;f<=24;f+=1)if(p.indexOf(m(f,0,y))>-1){A=f>12;break}}else A=p===(y?"pm":"PM");return A},M={A:[i,function(p){this.afternoon=w(p,!1)}],a:[i,function(p){this.afternoon=w(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[o,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[o,d("day")],Do:[i,function(p){var y=u.ordinal,A=p.match(/\d+/);if(this.day=A[0],y)for(var m=1;m<=31;m+=1)y(m).replace(/\[|\]/g,"")===p&&(this.day=m)}],M:[r,d("month")],MM:[o,d("month")],MMM:[i,function(p){var y=c("months"),A=(c("monthsShort")||y.map(function(m){return m.slice(0,3)})).indexOf(p)+1;if(A<1)throw new Error;this.month=A%12||A}],MMMM:[i,function(p){var y=c("months").indexOf(p)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(p){this.year=s(p)}],YYYY:[/\d{4}/,d("year")],Z:h,ZZ:h};function g(p){var y,A;y=p,A=u&&u.formats;for(var m=(p=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,F,C){var z=C&&C.toUpperCase();return F||A[C]||a[C]||A[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,k,T){return k||T.slice(1)})})).match(l),f=m.length,V=0;V<f;V+=1){var R=m[V],L=M[R],D=L&&L[0],_=L&&L[1];m[V]=_?{regex:D,parser:_}:R.replace(/^\[|\]$/g,"")}return function(N){for(var F={},C=0,z=0;C<f;C+=1){var $=m[C];if(typeof $=="string")z+=$.length;else{var k=$.regex,T=$.parser,U=N.slice(z),j=k.exec(U)[0];T.call(F,j),N=N.replace(j,"")}}return function(ee){var X=ee.afternoon;if(X!==void 0){var Q=ee.hours;X?Q<12&&(ee.hours+=12):Q===12&&(ee.hours=0),delete ee.afternoon}}(F),F}}return function(p,y,A){A.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(s=p.parseTwoDigitYear);var m=y.prototype,f=m.parse;m.parse=function(V){var R=V.date,L=V.utc,D=V.args;this.$u=L;var _=D[1];if(typeof _=="string"){var N=D[2]===!0,F=D[3]===!0,C=N||F,z=D[2];F&&(z=D[2]),u=this.$locale(),!N&&z&&(u=A.Ls[z]),this.$d=function(U,j,ee){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*U);var X=g(j)(U),Q=X.year,ae=X.month,P=X.day,E=X.hours,K=X.minutes,H=X.seconds,I=X.milliseconds,Z=X.zone,W=new Date,x=P||(Q||ae?1:W.getDate()),b=Q||W.getFullYear(),q=0;Q&&!ae||(q=ae>0?ae-1:W.getMonth());var O=E||0,G=K||0,J=H||0,S=I||0;return Z?new Date(Date.UTC(b,q,x,O,G,J,S+60*Z.offset*1e3)):ee?new Date(Date.UTC(b,q,x,O,G,J,S)):new Date(b,q,x,O,G,J,S)}catch{return new Date("")}}(R,_,L),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),C&&R!=this.format(_)&&(this.$d=new Date("")),u={}}else if(_ instanceof Array)for(var $=_.length,k=1;k<=$;k+=1){D[1]=_[k-1];var T=A.apply(this,D);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}k===$&&(this.$d=new Date(""))}else f.call(this,V)}}})})(oo);var As=oo.exports;const Fs=Xe(As);var ro={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l,o){var r=l.prototype,i=r.format;o.en.ordinal=function(u){var s=["th","st","nd","rd"],d=u%100;return"["+u+(s[(d-20)%10]||s[d]||s[0])+"]"},r.format=function(u){var s=this,d=this.$locale();if(!this.isValid())return i.bind(this)(u);var h=this.$utils(),c=(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(w){switch(w){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(),w==="w"?1:2,"0");case"W":case"WW":return h.s(s.isoWeek(),w==="W"?1:2,"0");case"k":case"kk":return h.s(String(s.$H===0?24:s.$H),w==="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 w}});return i.bind(this)(c)}}})})(ro);var Bs=ro.exports;const Ms=Xe(Bs);var io={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l,o){var r=l.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},u=function(c,w,M,g,p){var y=c.name?c:c.$locale(),A=i(y[w]),m=i(y[M]),f=A||m.map(function(R){return R.slice(0,g)});if(!p)return f;var V=y.weekStart;return f.map(function(R,L){return f[(L+(V||0))%7]})},s=function(){return o.Ls[o.locale()]},d=function(c,w){return c.formats[w]||function(M){return M.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,p,y){return p||y.slice(1)})}(c.formats[w.toUpperCase()])},h=function(){var c=this;return{months:function(w){return w?w.format("MMMM"):u(c,"months")},monthsShort:function(w){return w?w.format("MMM"):u(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):u(c,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):u(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):u(c,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return d(c.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},o.localeData=function(){var c=s();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(w){return d(c,w)},meridiem:c.meridiem,ordinal:c.ordinal}},o.months=function(){return u(s(),"months")},o.monthsShort=function(){return u(s(),"monthsShort","months",3)},o.weekdays=function(c){return u(s(),"weekdays",null,null,c)},o.weekdaysShort=function(c){return u(s(),"weekdaysShort","weekdays",3,c)},o.weekdaysMin=function(c){return u(s(),"weekdaysMin","weekdays",2,c)}}})})(io);var Rs=io.exports;const Ls=Xe(Rs);var so={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){var a="week",l="year";return function(o,r,i){var u=r.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(l).add(1,l).date(d),c=i(this).endOf(a);if(h.isBefore(c))return 1}var w=i(this).startOf(l).date(d).startOf(a).subtract(1,"millisecond"),M=this.diff(w,a,!0);return M<0?i(this).startOf("week").week():Math.ceil(M)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(so);var _s=so.exports;const Ps=Xe(_s);var uo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l){l.prototype.weekYear=function(){var o=this.month(),r=this.week(),i=this.year();return r===1&&o===11?i+1:o===0&&r>=52?i-1:i}}})})(uo);var qs=uo.exports;const zs=Xe(qs);var co={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l,o){l.prototype.dayOfYear=function(r){var i=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})})(co);var js=co.exports;const Hs=Xe(js);var fo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l){l.prototype.isSameOrAfter=function(o,r){return this.isSame(o,r)||this.isAfter(o,r)}}})})(fo);var Ks=fo.exports;const Ys=Xe(Ks);var ho={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ge,function(){return function(a,l){l.prototype.isSameOrBefore=function(o,r){return this.isSame(o,r)||this.isBefore(o,r)}}})})(ho);var Ws=ho.exports;const Us=Xe(Ws);Ye.extend(Ls),Ye.extend(Ms),Ye.extend(Fs),Ye.extend(Ps),Ye.extend(zs),Ye.extend(Hs),Ye.extend(Ys),Ye.extend(Us);const re={format(e,n){return Ye(e).format(n)},parser(e,n){return Ye(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const o=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][o]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const a=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),o=this.getNumTwoBit(e.getDate());return[a,l,o].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const l=e*(1e3*60*60*24);return a=new Date(a.getTime()+l),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(a>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let l;return typeof n=="string"?l=new Date(n).getTime():l=n,a==l},getMonthWeek:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a));let r=o.getDay(),i=o.getDate(),u=6-r;return l!==0&&(r=r==0?7:r,u=7-r),Math.ceil((i+u)/7)},getYearWeek:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),i=Math.round((o.valueOf()-r.valueOf())/864e5);let u=o.getDay(),s=6-u;return l!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),r=o.getTime();let i=o.getDay();if(l===0){const s=r-i*864e5,d=r+(6-i)*864e5,h=this.date2Str(new Date(s)),c=this.date2Str(new Date(d));return[h,c]}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)),c=this.date2Str(new Date(d));return[h,c]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const l=new Date(new Date(n).setDate(n.getDate()+a)),o=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?o>=i&&o<=r:o>=r&&o<=i},inScope4Month(e,n,a){const l=new Date(new Date(n).setMonth(n.getMonth()+a)),o=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?o>=i&&o<=r:o>=r&&o<=i}},mo={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"}},go={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Gs(e,n,a){return{props:{...we,...De,...mo,...go},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue",null,u),w=t.computed(()=>T.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),M=t.computed(()=>T.value?"longTermKey":"normalKey"),g=x=>{if(T.value&&l.type==="daterange"){const b=[...c.value];b[0]=x,c.value=b}else c.value=x;u("update:modelValue",c.value),u("change",c.value)},p=t.computed(()=>T.value&&l.type==="daterange"?"date":l.type),y=e,A=t.computed(()=>({[`${y}`]:!0,"is-long":T.value,"is-readonly":i.value,"is-disabled":r.value}));let m=de(l,"hintText"),f=t.ref(!1);const V=x=>{let q=x.target.value;h.value=!0,pe(m.value)||(f.value=!0),u("focus",q,x)},R=x=>{setTimeout(()=>{f.value&&(f.value=!1),h.value=!1},0);let q=x.target.value;l.maxLength&&q.length>Number(l.maxLength)&&(q=q.slice(0,Number(l.maxLength))),u("blur",q,x)},L=()=>{u("clear","")},D=x=>{u("calendar-change",x)},_=(x,b,q)=>{u("panel-change",x,b,q)},N=x=>{u("visible-change",x)},F=Ee(t.computed(()=>l.longTermText),"longTermText",_e.Near),C=Ee(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",_e.Near),z=Ee(t.computed(()=>l.longTermValue),"longTermValue",_e.Near),$=Ee(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let k=null;const T=t.ref(ce(l.longTerm)),U=x=>{if(T.value=x,u("update:longTerm",x),x){if(k=c.value,l.type==="daterange"){const b=[];Array.isArray(z.value)?(b[0]=c.value?c.value[0]??z.value[0]:null,b[1]=z.value[1]??z.value[0]):(b[0]=c.value?c.value[0]??z.value:null,b[1]=T.value),b[0]||(b[0]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),b[1]||(b[1]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),c.value=b}else Array.isArray(z.value)?c.value=z.value[1]??z.value[0]:c.value=z.value,c.value||(c.value=l.valueFormat?re.format(new Date,l.valueFormat):new Date);u("update:modelValue",c.value)}else{if(l.type==="daterange"){const b=[];b[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(k)?b[1]=k[1]:b[1]=k,b[0]||(b[0]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),b[1]||(b[1]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),c.value=b}else c.value=k;u("update:modelValue",c.value),setTimeout(()=>{Z()},100)}},j=ce(l.isLongTerm);if(j){const x=()=>{if(T.value===!0){if(k=c.value,l.type==="daterange"){const b=[c.value[0]];Array.isArray(z.value)?b[1]=z.value[1]??z.value[0]:b[1]=T.value,b[0]||(b[0]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),b[1]||(b[1]=l.valueFormat?re.format(new Date,l.valueFormat):new Date),c.value=b}else c.value=z.value;u("update:modelValue",c.value)}else Pe(z.value,c.value)&&(T.value=!0)};x(),t.watch([()=>l.longTerm],([b])=>{T.value!==b&&x()}),t.watch([()=>c.value],([b])=>{let q=!1;if(l.type==="daterange"&&Array.isArray(b))try{let O=b[1];if(!O)return;typeof O!="string"&&l.valueFormat&&(O=re.format(O,l.valueFormat));let G=Array.isArray(z.value)?z.value[1]:z.value;(O===G||Array.isArray($.value)&&$.value.findIndex(S=>O==S)!==-1)&&(q=!0)}catch(O){console.error(O)}T.value!==q&&(T.value=q)},{immediate:!0})}const ee=t.computed(()=>({"fox-date-item__long":!0,"is-active":h.value})),X=t.ref(),Q=t.ref(),ae=/^\d+$/,P=(x,b)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(x,b):ae.test(x)&&x.length===l.flashFillThreshold,E=(x,b)=>{let q;if(typeof l.flashFillFormat=="function")q=l.flashFillFormat(x,b);else{const G=l.flashFillFormat??"YYYYMMDD";q=re.parser(x,G)}const O=l.valueFormat??"YYYY-MM-DD";return re.format(q,O)},K=x=>x?x.endsWith("range"):!1,H=x=>{if(!x.target)return;const b=x.target.value??"";if(P(b,l.type)){const q=E(b,l.type);if(K(l.type)){const O=Array.isArray(c.value)?[...c.value]:[];O[0]=q,g(O)}else g(q)}},I=x=>{if(!x.target)return;const b=x.target.value??"";if(P(b,l.type)){const q=E(b,l.type);if(K(l.type)){const O=Array.isArray(c.value)?[...c.value]:[];O[1]=q,g(O)}else g(q)}},Z=()=>{if(l.flashFill&&X.value&&X.value.$el)if(K(l.type)){const x=X.value.$el.querySelectorAll("input.el-range-input");x[0]&&x[0].addEventListener("input",H),x[1]&&x[1].addEventListener("input",I)}else{const x=X.value.$el.querySelector("input.el-input__inner");x&&x.addEventListener("input",H)}},W=()=>{if(l.flashFill&&X.value&&X.value.$el)if(K(l.type)){const x=X.value.$el.querySelectorAll("input.el-range-input");x[0]&&x[0].removeEventListener("input",H),x[1]&&x[1].removeEventListener("input",I)}else{const x=X.value.$el.querySelector("input.el-input__inner");x&&x.removeEventListener("input",H)}};return t.onMounted(Z),t.onBeforeUnmount(W),ye({focus:()=>{Q?.value.focus()},blur:()=>{Q?.value.blur()},handleOpen:()=>{Q?.value.handleOpen()},handleClose:()=>{Q?.value.handleClose()}}),()=>{const b={...o.attrs,key:M.value,type:p.value,ref:Q,class:A.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:w.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":g,onClear:L,onFocus:V,onBlur:R,onCalendarChange:D,onPanelChange:_,onVisibleChange:N},q={};o.slots["range-separator"]&&(q["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(q.default=o.slots.cell);const O=[],G=t.h(B.ElDatePicker,b,q);O.push(G);const J={default:()=>O};if(o.slots.default&&(J.label=o.slots.default),o.slots.fixedTip&&(J.fixedTip=o.slots.fixedTip),j){if(T.value){const le=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ne=t.h("input",{class:["fox-date-item__long-text"],value:F.value,readonly:!0}),oe={class:ee.value},ie=t.h("div",oe,{default:()=>[le,ne]});O.push(ie)}if(!i.value&&!r.value){const le={label:C.value||F.value,disabled:i.value||r.value,modelValue:T.value,"onUpdate:modelValue":U},ne=t.h(B.ElCheckbox,le),oe=t.h("div",{class:{[`${y}__append`]:!0}},[ne]);J.append=()=>oe}}const Y={...ke(l,mo,go),ref:X,class:{[`${y}__wrapper`]:!0,"has-append":j},hintText:m.value,hintVisible:f.value,prop:`${l.prop}_item`};return t.h(a,Y,J)}}}}const{componentName:Xs,create:Zs,scope:Js}=se("date-item"),hl=Zs(Gs(Xs,Js,Se)),Qs=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),ml={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}},gl={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:{}}},po=2e3;let yo=po;const eu=(e,n)=>({components:n,props:{...gl},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:l}){const o=t.reactive({zIndex:a.zIndex,showSlot:!0,closed:a.closeable}),r=t.computed(()=>({[e]:!0,round:a.round,[`fox-popup--${a.position}`]:!0,[`fox-popup--${a.position}--safebottom`]:a.position==="bottom"&&a.safeAreaInsetBottom,[a.popClass]:!0})),i=t.computed(()=>({zIndex:o.zIndex,transitionDuration:`${a.duration}s`,...a.style})),u=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),s=()=>{a.zIndex!==po&&(yo=Number(a.zIndex)),l("update:visible",!0),o.zIndex=++yo,a.destroyOnClose&&(o.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),a.destroyOnClose&&setTimeout(()=>{o.showSlot=!1},+a.duration*1e3)},h=p=>{l("click-pop",p)},c=p=>{p.stopPropagation(),l("click-close-icon",p),l("update:visible",!1)},w=p=>{l("click-overlay",p),a.closeOnClickOverlay&&l("update:visible",!1)},M=p=>{l("opend",p)},g=p=>{l("closed",p)};return t.watch(()=>a.visible,p=>{a.visible?s():d()}),t.watch(()=>a.closeable,p=>{o.closed=p}),{...t.toRefs(o),popStyle:i,transitionName:u,classes:r,onClick:h,onClickCloseIcon:c,onClickOverlay:w,onOpened:M,onClosed:g}}});let At=0;const bo="fox-overflow-hidden",vo=()=>ot?document.body:{classList:[]},tu=e=>[()=>{if(e())try{!At&&vo().classList.add(bo),At++}catch{}},()=>{if(e()&&At)try{At--,!At&&vo().classList.remove(bo)}catch{}}],nu={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:lu,create:au}=se("overlay"),ou=au({props:{...nu},emits:["click","update:visible"],setup(e,{emit:n}){const[a,l]=tu(()=>e.lockScroll),o=t.computed(()=>({[lu]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,u=>{u?a():l()}),{classes:o,style:r,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function ru(e,n,a,l,o,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const hn=Ne(ou,[["render",ru]]),iu=["aria-labelledby"],su=t.createElementVNode("path",{d:"M512 1024C228.43 1024 0 795.57 0 512S228.43 0 512 0s512 228.43 512 512-228.43 512-512 512zm0-945.23C273.067 78.77 78.77 273.066 78.77 512S273.066 945.23 512 945.23 945.23 750.934 945.23 512 750.934 78.77 512 78.77zM984.615 1024c-10.502 0-21.005-2.626-28.882-10.503L824.451 882.215c-15.754-15.753-15.754-39.384 0-55.138s39.385-15.754 55.139 0l131.282 131.282c15.754 15.754 15.754 39.385 0 55.138-5.251 7.877-15.754 10.503-26.257 10.503z",fill:"currentColor","fill-opacity":"0.9"},null,-1),uu=[su],cu=t.defineComponent({__name:"Search2",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},uu,14,iu))}}),fu=["aria-labelledby"],du=t.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),hu=[du],mu=t.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},hu,14,fu))}}),gu=["aria-labelledby"],pu=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=[pu],mn=t.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},yu,14,gu))}}),bu=["aria-labelledby"],vu=t.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),wu=[vu],wo=t.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},wu,14,bu))}}),Su=["aria-labelledby"],Cu=t.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Tu=[Cu],So=t.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Tu,14,Su))}}),xu=["aria-labelledby"],$u=t.createElementVNode("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0zm281.6 369.778C779.378 381.156 600.178 500.622 472.178 691.2c0 0 0 2.844-2.845 2.844-8.533 5.69-48.355 36.978-88.177-8.533-39.823-51.2-62.578-99.555-142.223-142.222-2.844 0-2.844-2.845-2.844-2.845-8.533-11.377-39.822-56.888 19.911-56.888 45.511 0 91.022 11.377 162.133 73.955 5.69 5.689 14.223 5.689 17.067 0C469.333 517.69 608.711 366.933 768 318.578c0 0 19.911-2.845 31.289 14.222 5.689 11.378 11.378 22.756-5.689 36.978z",fill:"currentColor","fill-opacity":"0.9"},null,-1),ku=[$u],Du=t.defineComponent({__name:"Checked",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ku,14,xu))}}),Nu=["aria-labelledby"],Eu=t.createElementVNode("path",{d:"M512 1024c-136.533 0-264.533-54.044-361.244-150.756C54.044 776.534 0 648.534 0 512c0-136.533 54.044-264.533 150.756-361.244C247.466 54.044 375.466 0 512 0c136.533 0 264.533 54.044 361.244 150.756C969.956 247.466 1024 375.466 1024 512s-54.044 264.533-150.756 361.244C776.534 969.956 648.534 1024 512 1024zm0-938.667c-113.778 0-221.867 45.511-301.511 125.156S85.333 398.222 85.333 512s45.511 221.867 125.156 301.511S398.222 938.667 512 938.667s221.867-45.511 301.511-125.156S938.667 625.778 938.667 512 893.156 290.133 813.51 210.489 625.778 85.333 512 85.333z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Vu=[Eu],Iu=t.defineComponent({__name:"CheckNormal",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Vu,14,Nu))}}),Ou=["aria-labelledby"],Au=t.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Fu=[Au],Bu=t.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Fu,14,Ou))}}),{componentName:Mu,create:Ru}=se("popup"),Lu=Ru(eu(Mu,{FoxOverLay:hn,Close:wo}));function _u(e,n,a,l,o,r){const i=t.resolveComponent("FoxOverLay"),u=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(u)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const it=Ne(Lu,[["render",_u]]),Co=39,To=64,{create:Pu,scope:qu}=se("calendar-pane"),zu=Pu({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:re.getDay(0)},endDate:{type:String,default:re.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:l,t:o}=ve.useFoxI18n(qu),r=l(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${Co}px`})),u=t.computed(()=>({height:`${To}px`})),s=JSON.parse(o("weekdays")),d=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),h=t.ref(null),c=t.ref(null),w=t.ref(null),M=t.ref(null),g=t.ref(0),p=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),y=t.computed(()=>a.btn),A=t.computed(()=>a["top-info"]),m=t.computed(()=>a["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),V=x=>x.split("-"),R=x=>re.isEqual(f.currDate[0],x),L=x=>re.isEqual(f.currDate[1],x),D=x=>f.currDate?.length>0?f.currDate?.some(b=>re.isEqual(b,x)):!1,_=(x,b)=>b.curData[0]+"-"+b.curData[1]+"-"+re.getNumTwoBit(+x.day),N=(x,b)=>{const q=_(x,b),{type:O}=e;return x.type=="curr"?re.isEqual(f.currDate,q)||(O=="range"||O=="week")&&(R(q)||L(q))||O=="multiple"&&D(q)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(q,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,q)?`${f.dayPrefix}--disabled`:(O=="range"||O=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],q)&&re.compareDate(q,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},F=()=>{const{type:x}=e;if(x=="range"&&f.chooseData.length==2||x!="range"){let b=f.chooseData.slice(0);x=="week"&&(b={weekDate:[z(f.chooseData[0]),z(f.chooseData[1])]}),n("choose",b),e.poppable&&n("update")}},C=(x,b,q=!1)=>{if(N(x,b)!=`${f.dayPrefix}--disabled`){const{type:O}=e;let[G,J]=b.curData,S=[...b.curData];if(S[2]=re.getNumTwoBit(Number(x.day)),S[3]=`${S[0]}-${S[1]}-${S[2]}`,S[4]=re.getWhatDay(+S[0],+S[1],+S[2]),O=="multiple")if(f.currDate?.length>0){let Y;f.currDate?.forEach((te,le)=>{te==S[3]&&(Y=le)}),q?f.chooseData.push([...S]):Y!==void 0?(f.currDate.splice(Y,1),f.chooseData.splice(Y,1)):(f.currDate.push(S[3]),f.chooseData.push([...S]))}else f.currDate=[S[3]],f.chooseData=[[...S]];else if(O=="range"){let Y=Object.values(f.currDate).length;Y==2||Y==0?f.currDate=[S[3]]:re.compareDate(f.currDate[0],S[3])?Array.isArray(f.currDate)&&f.currDate.push(S[3]):Array.isArray(f.currDate)&&f.currDate.unshift(S[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...S]]:re.compareDate(f.chooseData[0][3],S[3])?f.chooseData=[...f.chooseData,[...S]]:f.chooseData=[[...S],...f.chooseData]}else if(O=="week"){let Y=re.getWeekDate(G,J,x.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(Y[0],f.propStartDate)&&Y.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,Y[1])&&Y.splice(1,1,f.propEndDate),f.currDate=Y,f.chooseData=[re.formatResultDate(Y[0]),re.formatResultDate(Y[1])]}else f.currDate=S[3],f.chooseData=[...S];if(!q){let Y=f.chooseData;O=="week"&&(Y={weekDate:[z(f.chooseData[0]),z(f.chooseData[1])]}),n("select",Y),(e.isAutoBackFill||!e.poppable)&&F()}}},z=x=>{let[b,q,O]=x;return{date:x,monthWeekNum:re.getMonthWeek(b,q,O,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(b,q,O,e.firstDayOfWeek)}},$=x=>{const b=x=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let q=parseInt(b.curData[0]),O=parseInt(b.curData[1].toString().replace(/^0/,""));switch(x){case"prev":O==1&&(q-=1),O=O==1?12:--O;break;case"next":O==12&&(q+=1),O=O==12?1:++O;break}return[q+"",re.getNumTwoBit(O),re.getMonthDays(String(q),String(O))+""]},k=(x,b,q)=>{let{year:O,month:G}=q;return b=="prev"&&x>=7&&(x-=7),Array.from(Array(x),(J,S)=>({day:String(S+1),type:b,year:O,month:G}))},T=(x,b,q,O)=>{x=x-e.firstDayOfWeek;let{year:G,month:J}=q;return b=="prev"&&x>=7&&(x-=7),Array.from(Array(O),(Y,te)=>({day:String(te+1),type:b,year:G,month:J})).slice(O-x)},U=(x,b)=>{const q=re.getMonthPreDay(+x[0],+x[1]);let O=Number(x[1])-1,G=Number(x[0]);O<=0&&(O=12,G+=1);const J=re.getMonthDays(String(x[0]),String(x[1])),S=re.getMonthDays(G+"",O+""),Y={year:x[0],month:x[1]},te={curData:x,title:o("monthTitle",{year:Y.year,month:Y.month}),monthData:[...T(q,"prev",{month:String(O),year:String(G)},S),...k(J,"curr",Y)],cssHeight:0,cssScrollHeight:0},le=te.monthData.length>35?6:5;te.cssHeight=Co+To*le;let ne=0;f.monthsData.length>0&&(ne=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),te.cssScrollHeight=ne,b=="next"?(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${x[0]}-${x[1]}-${x[2]}`))&&f.monthsData.push(te):!f.startData||!re.compareDate(`${x[0]}-${x[1]}-${x[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(te):f.unLoadPrev=!0},j=()=>{let x=e.startDate?e.startDate:re.getDay(0),b=e.endDate?e.endDate:re.getDay(365);f.propStartDate=x,f.propEndDate=b,f.startData=V(x),f.endData=V(b),(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])},O={year:Number(f.endData[0]),month:Number(f.endData[1])};let G=O.month-q.month;O.year-q.year>0&&(G=G+12*(O.year-q.year)),G<=0&&(G=1),U(f.startData,"next");let J=1;do U($("next"),"next");while(J++<G);if(f.monthsNum=G,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(x&&re.compareDate(f.currDate[0],x)&&f.currDate.splice(0,1,x),b&&re.compareDate(b,f.currDate[1])&&f.currDate.splice(1,1,b),f.defaultData=[...V(f.currDate[0]),...V(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let S=[],Y={};f.currDate.forEach(te=>{x&&!re.compareDate(te,x)&&b&&!re.compareDate(b,te)&&(Object.hasOwnProperty.call(Y,te)||(S.push(te),Y[te]=te))}),f.currDate=[...S],f.defaultData=[...V(S[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[S,Y,te]=V(f.currDate[0]),le=re.getWeekDate(S,Y,te,e.firstDayOfWeek);f.currDate=le,x&&re.compareDate(f.currDate[0],x)&&f.currDate.splice(0,1,x),b&&re.compareDate(b,f.currDate[1])&&f.currDate.splice(1,1,b),f.defaultData=[...V(f.currDate[0]),...V(f.currDate[1])]}}else f.currDate&&(x&&re.compareDate(f.currDate,x)?f.currDate=x:b&&!re.compareDate(f.currDate,b)&&(f.currDate=b),f.defaultData=[...V(f.currDate)])};ye({scrollToDate:x=>{re.compareDate(x,f.propStartDate)?x=f.propStartDate:re.compareDate(x,f.propEndDate)||(x=f.propEndDate);let b=V(x);f.monthsData.forEach((q,O)=>{if(q.title==o("monthTitle",{year:b[0],month:b[1]})&&h.value){let G=f.monthsData[O].cssScrollHeight-h.value.scrollTop;if(e.toDateAnimation){let J=0,S=setInterval(()=>{if(J++,h.value){let Y=G/10;h.value.scrollTop=h.value.scrollTop+Y}J>=10&&(clearInterval(S),h.value&&(h.value.scrollTop=f.monthsData[O].cssScrollHeight))},40)}else h.value.scrollTop=f.monthsData[O].cssScrollHeight}})},initPosition:()=>{h?.value&&(h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let x=0,b=0;f.defaultData.length>0&&f.monthsData.forEach((G,J)=>{G.title==o("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(x=J),(e.type=="range"||e.type=="week")&&G.title==o("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(b=J)}),ae(f.monthsNum,x),f.currentIndex=x,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[b],!0)):e.type=="week"?C({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(G=>{let J=V(G),S=f.currentIndex;f.monthsData.forEach((Y,te)=>{Y.title==o("monthTitle",{year:J[0],month:J[1]})&&(S=te)}),C({day:J[2],type:"curr"},f.monthsData[S],!0)}):C({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let q=f.monthsData[f.monthsData.length-1],O=q.cssHeight+q.cssScrollHeight;Vn(()=>{h?.value&&c?.value&&M?.value&&(g.value=h.value.clientHeight,c.value.style.height=`${O}px`,h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(O/(f.monthsNum+1))}});const ae=(x,b)=>{x>=3?b>0&&b<x?f.defaultRange=[b-1,b+3]:b==0?f.defaultRange=[b,b+4]:b==x&&(f.defaultRange=[b-2,b+2]):f.defaultRange=[0,x+2];let q=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=q},P=(x,b)=>(e.type=="range"||e.type=="week")&&x.type=="curr"&&N(x,b)=="fox-calendar__day--active",E=(x,b)=>P(x,b)&&R(_(x,b)),K=(x,b)=>f.currDate.length>=2&&L(_(x,b))?P(x,b):!1,H=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},I=x=>{const b=`${x.year}-${x.month}-${Number(x.day)<10?"0"+x.day:x.day}`;return re.isEqual(b,re.date2Str(new Date))},Z=x=>{if(f.monthsData.length<=1)return;const b=x.target.scrollTop;let q=Math.floor(b/f.avgHeight);if(q==0)b>=f.monthsData[q+1].cssScrollHeight&&(q+=1);else if(q>0&&q<f.monthsNum-1)b>=f.monthsData[q+1].cssScrollHeight&&(q+=1),b<f.monthsData[q].cssScrollHeight&&(q-=1);else{const O=Math.round(b+g.value);O<f.monthsData[q].cssScrollHeight+f.monthsData[q].cssHeight&&b>f.monthsData[q-1].cssScrollHeight&&(q-=1),q+1<=f.monthsNum&&O>=f.monthsData[q+1].cssScrollHeight+f.monthsData[q+1].cssHeight&&(q+=1),q>=1&&b<f.monthsData[q-1].cssScrollHeight&&(q-=1)}f.currentIndex!==q&&(f.currentIndex=q,ae(f.monthsNum,q)),f.yearMonthTitle=f.monthsData[q].title},W=()=>{f.chooseData.splice(0),f.monthsData.splice(0),j()};return j(),t.watch(()=>e.defaultValue,x=>{x&&e.poppable&&W()}),{dayTitleStyle:i,dayCellStyle:u,weeks:d,compConthsData:p,showTopBtn:y,topInfo:A,bottomInfo:m,rangeTip:H,mothsViewScroll:Z,getClass:N,isStartTip:E,isEndTip:K,chooseDay:C,isCurrDay:I,confirm:F,months:h,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:c,weeksPanel:w,viewArea:M}}}),ju={class:"fox-calendar__header"},Hu={key:0,class:"fox-calendar__header-title"},Ku={key:1,class:"fox-calendar__header-slot"},Yu={key:2,class:"fox-calendar__header-subtitle"},Wu={class:"fox-calendar__weekdays",ref:"weeksPanel"},Uu={class:"fox-calendar__panel",ref:"monthsPanel"},Gu={class:"fox-calendar__days"},Xu=["onClick"],Zu={class:"fox-calendar__day-value"},Ju={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Qu={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},ec={key:2,class:"fox-calendar__day-tips--curr"},tc={key:4,class:"fox-calendar__day-tip"},nc={key:0,class:"fox-calendar__footer"};function lc(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",ju,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Hu,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Ku,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Yu,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Wu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:u},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",Uu,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:u},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(i.title),5),t.createElementVNode("view",Gu,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.monthData,(s,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(s,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:h=>e.chooseDay(s,i)},[t.createElementVNode("view",Zu,[t.renderSlot(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[t.createTextVNode(t.toDisplayString(s.type=="curr"?s.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Ju,[t.renderSlot(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Qu,[t.renderSlot(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?(t.openBlock(),t.createElementBlock("view",ec,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(s,i)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(s,i)?(t.openBlock(),t.createElementBlock("view",tc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Xu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",nc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const ac=Ne(zu,[["render",lc]]),{create:oc}=se("calendar-picker"),rc=oc({components:{CalendarPane:ac,Popup:it},props:{...ml},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const l=t.computed(()=>a.btn),o=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),i=t.computed(()=>a["bottom-info"]),u=t.ref(null),s=y=>{u.value?.scrollToDate(y)},d=()=>{u.value?.initPosition()},h=t.computed(()=>{const y=["fox-calendar__popup"];return e.popClass&&y.push(e.popClass),y});t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),ye({scrollToDate:s,initPosition:d});const c=()=>{n("update:visible",!1)},w=()=>{n("close"),n("update:visible",!1)};return{popClasses:h,closePopup:()=>{w()},update:c,close:w,select:y=>{n("select",y)},choose:y=>{w(),n("choose",y)},calendarRef:u,showTopBtn:l,topInfo:o,dayInfo:r,bottomInfo:i}}});function ic(e,n,a,l,o,r){const i=t.resolveComponent("CalendarPane"),u=t.resolveComponent("Popup");return e.poppable?(t.openBlock(),t.createBlock(u,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"pop-class":e.popClasses,style:e.popStyle}),{default:t.withCtx(()=>[t.createVNode(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","pop-class","style"])):(t.openBlock(),t.createBlock(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const gn=Ne(rc,[["render",ic]]),pl=(e,n)=>{let a;return Je(e)?a=e:typeof e=="string"&&je(e)>0?a=re.parser(e,n):a=new Date,a},pt=(e,n,a)=>(Je(n)||(n=new Date),re.format(n,a)),yt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,l=`${e.getDate()}`,o=re.date2Str(e),r=re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,l,o,r]},xo={...ml,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function sc(e,n,a){return{props:{...we,...De,...xo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]);let h=de(l,"hintText"),c=t.ref(!1);const w=t.ref(!1),M=t.computed(()=>l.type==="range"),g=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),p=()=>{g.startDate!==null&&(g.startDate=null,g.endDate=null,g.startArray=[],g.endArray=[])},y=(j,ee="one",X="YYYY-MM-DD")=>{if(Qs(j)){p();return}if(M.value&&Array.isArray(j)&&j.length==2){let Q,ae;typeof j[0]=="string"?(Q=pl(j[0],X),ae=pl(j[1],X)):(Q=j[0],ae=j[1]);let P=yt(Q),E=yt(ae);(g.startDate===null||g.startDate.getTime()!==Q.getTime()||g.endDate?.getTime()!==ae.getTime())&&(g.startDate=Q,g.startArray=P,g.endDate=ae,g.endArray=E)}else{let Q;typeof j=="string"?Q=pl(j,X):Q=j;let ae=yt(Q);(g.startDate===null||g.startDate.getTime()!==Q.getTime())&&(g.startDate=Q,g.startArray=ae)}};y(l.modelValue,l.type,l.valueFormat),t.watch(()=>l.modelValue,j=>{y(j,l.type,l.valueFormat),u("setValue",j)});const A=t.computed(()=>{if(g.startDate===null)return"";if(M.value){let j=pt(l,g.startDate,l.format),ee=pt(l,g.endDate,l.format);return`${j} ${l.rangeSeparator} ${ee}`}else{let j=pt(l,g.startDate,l.format);return l.showWeek&&(j=`${j} ${g.startArray[4]}`),j}}),m=t.computed(()=>{if(g.startDate===null)return null;if(M.value){let j=re.date2Str(g.startDate),ee=re.date2Str(g.endDate??new Date);return[j,ee]}else return re.date2Str(g.startDate)}),f="fox-input-item",V=t.computed(()=>({[f]:!0,[`${f}__disabled`]:r.value})),R=Ee(t.computed(()=>l.textAlign),"textAlign"),L=t.computed(()=>({textAlign:R.value??"right"})),D=t.ref(!1),_=()=>{i.value||r.value||(D.value=!0)},N=()=>{D.value=!1},F=j=>{D.value=j},C=j=>{if(j){if(M.value&&Array.isArray(j)){let ee=j[0],X=he(ee[0]),Q=he(ee[1]),ae=he(ee[2]),P=new Date(X,Q-1,ae),E=j[1];X=he(E[0]),Q=he(E[1]),ae=he(E[2]);let K=new Date(X,Q-1,ae);if(g.startDate=P,g.startArray=yt(P),g.endDate=K,g.endArray=yt(K),l.valueFormat){let H=pt(l,P,l.valueFormat),I=pt(l,K,l.valueFormat);u("update:modelValue",[H,I],{})}else u("update:modelValue",[P,K],{})}else{let ee=j,X=he(ee[0]),Q=he(ee[1]),ae=he(ee[2]),P=new Date(X,Q-1,ae);if(g.startDate=P,g.startArray=yt(P),l.valueFormat){let E=pt(l,P,l.valueFormat);u("update:modelValue",E,{})}else u("update:modelValue",P,{})}u("change",j,{})}},z=j=>{let X=j.target.value;w.value=!0,u("focus",X,j)},$=j=>{setTimeout(()=>{w.value=!1},0);let X=j.target.value;l.maxLength&&X.length>Number(l.maxLength)&&(X=X.slice(0,Number(l.maxLength))),u("blur",X,j)},k=t.computed(()=>je(l.unit)>0),T=j=>{p(),u("update:modelValue",null,j),u("change","",j),u("clear","")},U=t.ref();return ye({showPicker:_,hidePicker:N,focus:()=>{U?.value.focus()},blur:()=>{U?.value.blur()},select:()=>{U?.value.select()}}),()=>{const j={class:V.value,style:L.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:l.clearable,value:A.value,onClick:_,onFocus:z,onBlur:$,onClear:T},ee={};o.slots.prepend&&(ee.prepend=o.slots.prepend),o.slots.append&&(ee.append=o.slots.append),o.slots.prefix?ee.prefix=o.slots.prefix:ee.prefix=()=>t.h(B.ElIcon,{},{default:()=>t.h($e.Calendar)}),o.slots.suffix?ee.suffix=o.slots.suffix:k.value&&(ee.suffix=()=>[l.unit]);const X=[],Q=t.h(B.ElInput,j,ee);X.push(Q);const ae={default:()=>X};o.slots.default&&(ae.label=o.slots.default),o.slots.fixedTip&&(ae.fixedTip=o.slots.fixedTip);const P=xt(l,ml);P.visible=D.value,P["onUpdate:visible"]=F,P["default-value"]=m.value,P.onChoose=C;const E={};if(o.slots.btn){const W=o.slots.btn();E.btn=()=>W}o.slots.day&&(E.day=o.slots.day),o.slots.topInfo&&(E.topInfo=o.slots.topInfo),o.slots.bottomInfo&&(E.bottomInfo=o.slots.bottomInfo);const K=t.h(gn,P,E);ae.hide=()=>[K];const I={...ke(l,xo),hintText:h.value,hintVisible:c.value,prop:`${l.prop??o.attrs.name}_item`};return t.h(a,I,ae)}}}}const{componentName:uc,create:cc,scope:fc}=se("calendar-item"),yl=cc(sc(uc,fc,Se)),$o={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function dc(e,n,a){return{props:{...we,...De,...$o},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue",null,u),w=e,M=t.computed(()=>({[w]:!0})),g=L=>{c.value=L,u("update:modelValue",L),u("change",L)};let p=de(l,"hintText"),y=t.ref(!1);const A=L=>{let _=L.target.value;h.value=!0,pe(p.value)||(y.value=!0),u("focus",_,L)},m=L=>{setTimeout(()=>{y.value&&(y.value=!1),h.value=!1},0);let _=L.target.value;l.maxLength&&_.length>Number(l.maxLength)&&(_=_.slice(0,Number(l.maxLength))),u("blur",_,L)},f=()=>{u("clear","")},V=L=>{u("visible-change",L)},R=t.ref();return ye({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()}}),()=>{const D={...o.attrs,ref:R,class:M.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:f,onFocus:A,onBlur:m,onVisibleChange:V},_={},N=[],F=t.h(B.ElTimePicker,D,_);N.push(F);const C={default:()=>N};o.slots.default&&(C.label=o.slots.default),o.slots.fixedTip&&(C.fixedTip=o.slots.fixedTip);const $={...ke(l,$o),hintText:p.value,hintVisible:y.value,prop:`${l.prop}_item`};return t.h(a,$,C)}}}}const{componentName:hc,create:mc,scope:gc}=se("time-item"),bl=mc(dc(hc,gc,Se)),ko={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function pc(e,n,a){return{props:{...we,...De,...ko},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue",null,u),w=e,M=t.computed(()=>({[w]:!0})),g=R=>{c.value=R,u("update:modelValue",R),u("change",R)};let p=de(l,"hintText"),y=t.ref(!1);const A=R=>{let D=R.target.value;h.value=!0,pe(p.value)||(y.value=!0),u("focus",D,R)},m=R=>{setTimeout(()=>{y.value&&(y.value=!1),h.value=!1},0);let D=R.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),u("blur",D,R)},f=()=>{u("clear","")},V=t.ref();return ye({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const L={...o.attrs,ref:V,class:M.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:f,onFocus:A,onBlur:m},D={},_=[],N=t.h(B.ElTimeSelect,L,D);_.push(N);const F={default:()=>_};o.slots.default&&(F.label=o.slots.default),o.slots.fixedTip&&(F.fixedTip=o.slots.fixedTip);const z={...ke(l,ko),hintText:p.value,hintVisible:y.value,prop:`${l.prop}_item`};return t.h(a,z,F)}}}}const{componentName:yc,create:bc,scope:vc}=se("time-select-item"),vl=bc(pc(yc,vc,Se));function Do(e,n=0){let a=`${e}`,l=a.indexOf(".");if(l==-1)return a;let o=l;for(let r=a.length-1;r>=l;r--)if(a.charAt(r)!="0"){o=r;break}return o-l<n?o=l+n+1:o!=l&&(o+=1),o>a.length?a=a.padEnd(o,"0"):a=a.substring(0,o),a}function No(e,n,a=20){if(typeof n=="string"&&(n=he(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=pa(`${e}`,`${n}`);return Do(l)}else{let l=Ln(`${e}`,ya(`${n}`),20);return Do(l)}}function wc(e,n=-1,a=!1,l=3,o=","){return zt(e,n,a,l,o)}function Eo(e,n,a,l,o=!0){if(e=="")return"";if(e=ba(e),n=he(n),n==1)return e;if(l)e=No(e,n),a&&(e=="0"&&o?e=`${e}.`.padEnd(he(a)+2,"0"):e=Ln(e,1,he(a)));else{let r=-1*n;e=No(e,r)}return e}function Vo(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ce(n.minInclude),o=_n(e,n.min);if(l&&o==-1||!l&&(o==0||o==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let l=ce(n.maxInclude),o=_n(e,n.max);(l&&o==1||!l&&(o==0||o==1))&&(a.maxValid=!1)}return a}const Io={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Sc(e,n,a){return{props:{...we,...De,...Io},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),s=t.ref(!1),d=de(l,"modelValue",null,u),h=t.ref("");t.watch([()=>d.value,()=>l.rates,()=>l.precision],([$,k,T])=>{if(pe($)){h.value="";return}const U=Eo($,k,T,!1);h.value!==U&&(h.value=U)},{immediate:!0});const c=t.computed(()=>{let $="";return s.value&&($=h.value),$}),{t:w}=ve.useFoxI18n(n),M=t.computed(()=>{let $=l.placeholder??"";return!s.value&&!pe(h.value)?$=wc(h.value,l.decimalLength,l.autoPadding,l.digits,l.separator):$=w(["placeholder",$]),$}),g=e,p=t.computed(()=>({[g]:!0,[`${g}__disabled`]:r.value,[`${g}__placeholder`]:h.value.length>0})),y=Ee(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>s.value?{textAlign:"left"}:{textAlign:y.value??"right"});const A=t.ref(""),m=t.computed(()=>{let $=A.value;return pe($)&&($=l.errorTip??""),$}),f=t.ref(""),V=t.ref(!1),R=($,k)=>{if($=`${$}`,pe($)){h.value="",d.value="",k.forEach(T=>{u(T,"")}),ce(l.showTip)&&V.value&&(V.value=!1);return}if($.length>=2){let T=$;if(T.charAt(0)=="-"&&(T=T.substring(1)),T.length>=2&&T.charAt(0)=="0"&&T.charAt(1)!="."){t.triggerRef(h);return}}if($!="-"){if(!ka($)){t.triggerRef(h);return}if(l.integerLength!=-1&&Da($)>Number(l.integerLength)){t.triggerRef(h);return}if(l.decimalLength&&l.decimalLength!=-1&&Na($)>Number(l.decimalLength)){t.triggerRef(h);return}let T=Vo($,l);if(T.maxValid===!1){A.value=T.message,t.triggerRef(h);return}}else if(l.min!=null&&he(l.min)>=0){t.triggerRef(h);return}f.value=$,ce(l.showTip)&&(V.value=$.length>0),h.value=$,d.value=Eo($,l.rates,l.precision,!0),k.forEach(T=>{u(T,d.value)})},L=$=>{R($,["update:modelValue","input"])},D=$=>{R($,["update:modelValue","change"])},_=$=>{if(s.value=!0,ce(l.showTip)){let k=h.value;pe(k)&&(k=l.hintText),pe(k)||(f.value=k,V.value=!0)}A.value="",u("focus",d.value,$)},N=$=>{if(setTimeout(()=>{s.value=!1,ce(l.showTip)&&V.value===!0&&(V.value=!1)},0),!pe(h.value)){let k=Vo(h.value,l);if(k.minValid===!1||k.maxValid===!1){A.value=k.message;return}}u("update:modelValue",d.value,$),u("blur",d.value,$)},F=()=>{u("clear","")},C=t.computed(()=>je(l.unit)>0),z=t.ref();return ye({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const k={...Ke(o.attrs),ref:z,class:p.value,type:"digit",maxlength:l.maxLength,placeholder:M.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:F,onInput:L,onChange:D,onFocus:_,onBlur:N},T={};o.slots.prepend&&(T.prepend=o.slots.prepend),o.slots.append&&(T.append=o.slots.append),o.slots.prefix&&(T.prefix=o.slots.prefix),o.slots.suffix?T.suffix=o.slots.suffix:C.value&&(T.suffix=()=>[l.unit]);const U=[],j=t.h(B.ElInput,k,T);U.push(j);const ee={default:()=>U};o.slots.default&&(ee.label=o.slots.default),o.slots.fixedTip&&(ee.fixedTip=o.slots.fixedTip);const Q={...ke(l,Io),errorTip:m.value,hintText:f.value,hintVisible:V.value,hintType:"number",prop:`${l.prop}_item`};return t.h(a,Q,ee)}}}}const{componentName:Cc,create:Tc,scope:xc}=se("money-item"),wl=Tc(Sc(Cc,xc,Se)),Oo={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function $c(e,n,a){return{props:{...we,...De,...Oo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue",null,u),w=e,M=t.computed(()=>({[w]:!0,[`${w}__append`]:L.value})),g=t.computed(()=>({[`${w}__unit`]:!0})),p=_=>{c.value=_,u("update:modelValue",_),u("input",_)},y=_=>{u("change",_)};let A=de(l,"hintText"),m=t.ref(!1);const f=_=>{let F=_.target.value;h.value=!0,pe(A.value)||(m.value=!0),u("focus",F,_)},V=_=>{setTimeout(()=>{m.value&&(m.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,_)},R=()=>{u("clear","")},L=t.computed(()=>je(l.unit)>0),D=t.ref();return ye({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()}}),()=>{const N={...Ke(o.attrs),ref:D,class:M.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:R,onChange:y,onInput:p,onFocus:f,onBlur:V},F={},C=[],z=t.h(B.ElInputNumber,N,F);C.push(z);const $={default:()=>C};o.slots.default&&($.label=o.slots.default),o.slots.fixedTip&&($.fixedTip=o.slots.fixedTip);const T={...ke(l,Oo),hintText:A.value,hintVisible:m.value,prop:`${l.prop}_item`};if(o.slots.append)$.append=o.slots.append;else if(L.value){const j={class:g.value},ee=t.h("div",j,[l.unit]);$.append=()=>ee}return t.h(a,T,$)}}}}const{componentName:kc,create:Dc,scope:Nc}=se("input-number-item"),Sl=Dc($c(kc,Nc,Se));function Ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ec(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Vc=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l,o);const r=Fe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(a,l,o))}};function Ic(){const e=t.getCurrentInstance();return new Vc(e.proxy)}function Cl(e,n,a){const l=Ze(e,n),o=Ze(e,a);if(l!==o)return!1;const r=st(e,n),i=st(e,a);return r===i}function Ao(e,n,a,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];let r=l;for(let i=0;Array.isArray(r)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=Ao(e,u,a,l);o.push(s)}else{let s=!1;for(let d of r){if(a==="text")s=Ze(e,d)===u;else if(a==="item")s=Cl(e,d,u);else{let h=st(e,d);h==null&&(h=Ze(e,d)),s=h===u}if(s){o.push(d),r=Ec(e,d);break}}if(!s)break}}return o}function Oc(e){return{text:e,value:e}}const Fo={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Function],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ac(e,n,a){return{props:{...we,...De,...Fo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(null),c=t.ref([]),w=t.computed(()=>c.value?c.value.map(x=>Array.isArray(x)?x.map(q=>Ze(l,q)).join(" "):Ze(l,x)).join(" "):""),M=(W,x,b,q=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(h.value===W)return;h.value=W;const S=t.toRaw(W);if(q){const Y=Z?.value.getCheckedNodes();if(Y)if(l.multiple){const te=[];Y.forEach(le=>{const oe=(le.pathNodes??[]).map(ie=>ie.data);te.push(oe)}),u("update:pathNodes",te)}else{const le=(Y[0]?.pathNodes??[]).map(ne=>ne.data);u("update:pathNodes",le)}u("update:modelValue",S),u("change",S)}return}const O=Ao(l,W,x,b);if(O===null){if(c.value.length===0||c.value===null)return;c.value=[],h.value=null,q&&(u("update:pathNodes",[]),u("update:modelValue",null),u("change",null));return}const G=O[O.length-1];if(F.value.checkStrictly!==!0&&G&&!Array.isArray(G)&&Array.isArray(G.children)&&G.children.length>0){const S=[];O.forEach(Y=>{const te=`${Ze(l,Y)}`;S.push(te)}),S.length>0&&(_.value=S.join(l.separator))}else _.value=null;let J=!0;if(O.length!==c.value.length)J=!1;else for(let S=0;S<O.length;S++){const Y=O[S],te=c.value[S];if(Array.isArray(Y)){if(!Array.isArray(te)||Y.length!==te.length)J=!1;else for(let le=0;le<Y.length;le++)if(!Cl(l,Y[le],te[le])){J=!1;break}}else Cl(l,Y,te)||(J=!1);if(!J)break}if(!J){c.value=O;let S=[],Y=[];O.forEach(le=>{if(Array.isArray(le)){let ne=[],oe=[];for(let ie of le)ne.push(st(l,ie)),l.valueType==="text"?oe.push(Ze(l,ie)):l.valueType==="item"?oe.push(ie):oe.push(st(l,ie));S.push(ne),Y.push(oe)}else S.push(st(l,le)),l.valueType==="text"?Y.push(Ze(l,le)):l.valueType==="item"?Y.push(le):Y.push(st(l,le))}),h.value=S;const te=t.toRaw(Y);q&&(u("update:pathNodes",O),u("update:modelValue",te),u("change",te))}},g=t.ref([]),p=Ee(t.computed(()=>l.appearLoad),"appearLoad",_e.Near,W=>ce(W)),y=Ic(),A=async(W,x)=>{if(W){const b=await y.load("cascader",W,x);if(b.length>0)if(typeof b[0]=="string"){let G=b.map(J=>Oc(J));g.value=G}else g.value=b}};t.watch([()=>l.source,()=>l.params],async([W,x])=>{A(W,x)},{immediate:!(p.value||l.lazy)});let m=!1;const f=()=>{m||(m=!0,A(l.source,l.params))};t.watch([()=>g.value,()=>l.modelValue],([W,x])=>{M(x,l.valueType,W,!1),u("setValue",x)}),l.lazy&&M(l.modelValue,"value",[],!1);let V=null,R=t.ref(!1);typeof l.remoteMethod=="function"&&(V=async W=>{if(W!=null){R.value=!0;try{const x=await l.remoteMethod(W);g.value=x}catch(x){console.error(x)}R.value=!1}});const L=t.ref(!1),D=e,_=t.ref(null),N=t.computed(()=>({[D]:!0,"is-incomplete":_.value&&_.value.length>0})),F=t.computed(()=>{let W={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(W.multiple=!0),l.props&&Object.assign(W,l.props),l.lazy&&(W.lazy=!0,typeof l.lazyLoad=="function"?W.lazyLoad=l.lazyLoad:W.lazyLoad=async(x,b)=>{const q=await y.load("cascader",l.source,x,!0);if(x?.config?.checkStrictly!==!0&&Array.isArray(h.value)&&h.value.length===x.level){const O=x.pathLabels??[];let G=[];O.forEach(J=>{J&&G.push(J)}),G.length>0&&(_.value=G.join(l.separator))}else _.value=null;b(q)}),W}),C=W=>{l.allowCreate?(u("update:modelValue",W),u("change",W),h.value=W):M(W,"value",g.value,!0)};let z=de(l,"hintText"),$=t.ref(!1);const k=W=>{let b=W.target.value;L.value=!0,pe(z.value)||($.value=!0),u("focus",b,W)},T=W=>{setTimeout(()=>{$.value&&($.value=!1),L.value=!1},0);let b=W.target.value;l.maxLength&&b.length>Number(l.maxLength)&&(b=b.slice(0,Number(l.maxLength))),E.value||u("blur",b,W)},U=()=>{u("clear","")},j=t.ref(!1);let ee=null;const X=()=>{l.showTooltip&&j.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{j.value=!0},150))},Q=()=>{ee&&(clearTimeout(ee),j.value=!1,ee=null)},ae=t.computed(()=>j.value||$.value),P=t.computed(()=>j.value?w.value:z.value),E=t.ref(!1),K=W=>{E.value=W,u("visible-change",W),W||u("selected")},H=W=>{u("remove-tag",W)},I=W=>{u("expand-change",W)},Z=t.ref();return ye({focus:()=>{Z?.value.focus()},blur:()=>{Z?.value.blur()},getCheckedNodes:()=>Z?.value.getCheckedNodes()}),()=>{const x={...o.attrs,ref:Z,class:N.value,props:F.value,clearable:l.clearable,placeholder:_.value||d.placeholder.value,disabled:r.value||i.value,options:g.value,modelValue:h.value,separator:l.separator,onClear:U,onChange:C,onFocus:k,onBlur:T,onVisibleChange:K,onRemoveTag:H,expandChange:I};typeof V=="function"&&(x["remote-method"]=V,x.loading=R.value);const b={};o.slots.option&&(b.default=o.slots.option),o.slots.empty&&(b.empty=o.slots.empty);const q=[],O=t.h(B.ElCascader,x,b);q.push(O);const G={default:()=>q};o.slots.default&&(G.label=o.slots.default),o.slots.fixedTip&&(G.fixedTip=o.slots.fixedTip);const S={...ke(l,Fo),hintText:P.value,hintVisible:ae.value,prop:`${l.prop??o.attrs.name}_item`,onMouseover:X,onMouseleave:Q};return p.value&&!l.lazy&&(S["appear-listen"]=!0,S.onAppear=f),t.h(a,S,G)}}}}const{componentName:Fc,create:Bc,scope:Mc}=se("cascader-item"),Tl=Bc(Ac(Fc,Mc,Se)),Bo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Rc(e,n,a){return{props:{...we,...De,...Bo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=de(l,"modelValue",null,u),w=e,M=t.computed(()=>({[w]:!0})),g=D=>{c.value=D,u("update:modelValue",D),u("input",D)},p=D=>{u("change",D)},y=D=>{u("select",D)};let A=de(l,"hintText"),m=t.ref(!1);const f=D=>{let N=D.target.value;h.value=!0,pe(A.value)||(m.value=!0),u("focus",N,D)},V=D=>{setTimeout(()=>{m.value&&(m.value=!1),h.value=!1},0);let N=D.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),u("blur",N,D)},R=()=>{u("clear","")},L=t.ref();return ye({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const _={...o.attrs,ref:L,class:M.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:r.value,readonly:i.value,modelValue:c.value,onClear:R,onChange:p,onInput:g,onFocus:f,onBlur:V,onSelect:y},N={};o.slots.prepend&&(N.prepend=o.slots.prepend),o.slots.append&&(N.append=o.slots.append),o.slots.prefix&&(N.prefix=o.slots.prefix),o.slots.suffix&&(N.suffix=o.slots.suffix),o.slots.option&&(N.default=o.slots.option);const F=[],C=t.h(B.ElAutocomplete,_,N);F.push(C);const z={default:()=>F};o.slots.default&&(z.label=o.slots.default),o.slots.fixedTip&&(z.fixedTip=o.slots.fixedTip);const k={...ke(l,Bo),hintText:A.value,hintVisible:m.value,prop:`${l.prop}_item`};return t.h(a,k,z)}}}}const{componentName:Lc,create:_c,scope:Pc}=se("autocomplete-item"),xl=_c(Rc(Lc,Pc,Se));function qc(e,n,a,l,o){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[o]){let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],c=s.find(w=>w[l]===h);if(!c)break;i.push(c[a])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<r.length;s++){let d=n[s],h=r[s];const c=d.find(w=>w[l]===h);if(!c)break;i.push(c[a])}else{let s=n;for(let d=0;s&&d<r.length;d++){let h=r[d],c=s.find(w=>w[l]===h);if(!c)break;i.push(c[a]),s=c[o]}}return i}let zc=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function jc(){const e=t.getCurrentInstance();return new zc(e.proxy)}const Mo={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 Hc(e,n){return{props:{...Mo},setup(a,{attrs:l,slots:o}){const r=jc(),i=t.ref([]);t.watch([()=>a.source,()=>a.params],async([d,h])=>{i.value=await r.load(a.sourceType,d,h)},{immediate:!0});const u=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=qc(a.modelValue,i.value,a.textKey,a.valueKey,a.childrenKey);return d.length==0?a.emptyText??"":d.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${d[0]}`:d[0]:d.join(a.separator)}),s=a.resolveTag?t.resolveComponent(a.tag):a.tag;return()=>{const d={...l};return o.default?o.default({text:u.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===u.value?t.h(a.emptyTag??"span",{...l,class:a.emptyClass},u.value):t.h(s,d,{default:()=>u.value}):t.h(s,d,u.value)}}}}const{componentName:lp,create:Kc,scope:ap}=se("mapping"),Ft=Kc(Hc());function Yc(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,u);l=l[c][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 Wc(e,n){return{props:{...Mo},setup(a,{attrs:l,slots:o}){return()=>{const r={default:i=>{const u=Yc(i.row,i.column.property);return o.default?t.h(Ft,{...a,modelValue:u},{default:o.default}):t.h(Ft,{...a,modelValue:u})}};return t.h(B.ElTableColumn,{...l},r)}}}}const{componentName:op,create:Uc,scope:rp}=se("table-mapping-column"),$l=Uc(Wc()),Gc=Symbol.for("TableStateKey");function Ro(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,u);l=l[c][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 Xc(e,n){return{props:{},setup(a,{attrs:l}){const o=t.inject(Gc,{});return()=>{const r=o.currentRow?o.currentRow.value:null,i={default:u=>{const s=Ro(u.row,u.column.property),d=r?Ro(r,u.column.property):null,h=s===d,c={class:{"el-radio__input":!0,"is-checked":h}},w=t.h("span",c,[t.h("span",{class:{"el-radio__inner":!0}})]),M={class:{"el-radio":!0,"is-checked":h}};return t.h("label",M,[w])}};return t.h(B.ElTableColumn,{...l},i)}}}}const{componentName:ip,create:Zc,scope:sp}=se("table-radio-column"),kl=Zc(Xc()),Jc={},Qc={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"},ef=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function tf(e,n){return t.openBlock(),t.createElementBlock("svg",Qc,ef)}const nf=Ne(Jc,[["render",tf]]),{componentName:cp,create:lf,scope:fp}=se("table-setting"),af={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:"不固定"}},of=lf({components:{FoxPopover:B.ElPopover,FoxCheckbox:B.ElCheckbox,FoxCheckboxGroup:B.ElCheckboxGroup,FoxButton:B.ElButton,FoxIcon:B.ElIcon,DragIcon:nf,Download:$e.Download,RefreshLeft:$e.RefreshLeft},props:{...af},setup(e,{emit:n,attrs:a}){let l=[];const o=t.ref([]),r=t.computed(()=>o.value.filter(I=>I.label===""||I.type?!1:I.fixed===""||I.fixed===!0||I.fixed==="left")),i=t.computed(()=>o.value.filter(I=>I.label===""||I.type?!1:I.fixed==="right")),u=t.computed(()=>o.value.filter(I=>!(I.label===""||I.type||I.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),c=I=>I.length>1,w=(I,Z)=>{Array.isArray(I)&&Array.isArray(Z)&&I.forEach(b=>{Z.some(q=>q.prop===b.prop?(b.label=q.label,!0):!1)});const W=[];o.value=I.map((b,q)=>(!(b.label===""||b.type)&&b.visible!==!1&&W.push(b.prop),{...b,sortIndex:q})),u.value.length+r.value.length+i.value.length===W.length?m.value=!0:W.length>0&&(f.value=!0),L.value=W},M=I=>I?I.type?I.type:I.label?I.prop:"":"",g=(I,Z)=>{if(I.length!==Z.length)return!1;const W=I.map(x=>M(x));for(let x of Z){const b=M(x);if(W.indexOf(b)===-1)return!1}return!0},p=I=>{if(!I){const Z=e.tableRef.getColumnSetting(),W=Z.srcColumnPropertyList;l=W.map((x,b)=>({...x,sortIndex:b})),I=Z.columnPropertyList,I&&I.length>0&&g(W,I)||(I=W)}w(I,l)},y=()=>{e.tableRef.setColumnSetting(o.value)},A=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=t.ref(!1),f=t.ref(!1),V=I=>{const Z=[];o.value.forEach(x=>{I&&!(x.label===""||x.type)&&Z.push(x.prop),x.visible=I}),m.value=!1,f.value=!1,u.value.length+r.value.length+i.value.length===Z.length?m.value=!0:Z.length>0&&(f.value=!0),L.value=Z,y()},R=()=>{p(l),y()},L=t.ref([]),D=I=>{o.value.forEach(W=>{if(W.label===""||W.type)return;const x=I.indexOf(W.prop)!==-1;W.visible=x}),m.value=!1,f.value=!1;const Z=u.value.length+r.value.length+i.value.length;I.length===Z?m.value=!0:I.length>0&&(f.value=!0),y()},_=()=>{p()};t.onMounted(()=>{setTimeout(()=>{p()},50)});const N={currentRow:null,index:null,roleType:null},F=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,F(I)):null:null,C=I=>{const Z=I.currentTarget;Z&&Z.dataset&&(N.roleType=Z.dataset.roleType,N.index=Z.dataset.index)},z=I=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},$=I=>{const Z=I.currentTarget;I.relatedTarget;const W=F(Z);if(!W)return;const x=W.dataset&&W.dataset.roleType;N.roleType===x&&(I.preventDefault(),N.currentRow&&N.currentRow!==W&&N.currentRow.classList.remove("is-dragover"),W.classList.add("is-dragover"),N.currentRow=W)},k=I=>{I.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},T=I=>{const Z=I.currentTarget,W=F(Z);if(!W)return;const x=W.dataset&&W.dataset.roleType;if(N.roleType!==x)return;I.preventDefault();const b=Number(N.index),q=Number(W.dataset.index);if(b!==q){if(b<q){const O=o.value[b];o.value.splice(b,1),o.value.splice(q,0,O)}else{const O=o.value[b];o.value.splice(b,1),o.value.splice(q+1,0,O)}w(o.value,l),y()}},U=I=>{const Z=o.value[I];Z.fixed="left",y()},j=I=>{const Z=o.value[I];Z.fixed="right",y()},ee=I=>{const Z=o.value[I];Z.fixed=void 0,y()},X=new Map;let Q=null;function ae(I){const Z=document.createRange();return Z.setStart(I,0),Z.setEnd(I,I.childNodes.length),Z.getBoundingClientRect().width}return{attrs:a,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:d,isShowRightFixedTitle:h,isDraggble:c,isCheckAll:m,isIndeterminate:f,handleCheckAllChange:V,handleReset:R,checkedValue:L,handleCheckChange:D,onShow:_,onDragStart:C,onDragEnd:z,onDragOver:$,onDragLeave:k,onDrop:T,toLeftFixed:U,toRightFixed:j,toUnFixed:ee,checkboxLabelStyle:A,onMouseOverForOverflowText:(I,Z,W)=>{const x=I.currentTarget;if(x){const b=Math.floor(x.offsetWidth);if(Math.floor(ae(x))>b){let O=X.get(Z);if(O){if(O===Q)return;Be.hide(O)}O=Be.show(x,W,{type:"text",placement:"top",closeOnClick:!1}),X.set(Z,O),Q=O}}},onMouseLeaveForOverflowText:(I,Z)=>{const W=X.get(Z);W&&(Be.hide(W),W===Q&&(Q=null))},onMouseOverForTip:(I,Z)=>{const W=I.currentTarget;W&&(Q&&Be.hide(Q),Q=Be.show(W,Z,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{Q&&(Be.hide(Q),Q=null)}}}}),rf={class:"fox-table-setting"},sf={class:"fox-table-setting__header"},uf={class:"fox-table-setting__body"},cf={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},ff={key:0,class:"fox-table-setting__body-title"},df=["data-index","draggable"],hf=["onMouseover","onMouseleave"],mf={class:"tools-item"},gf={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},pf={key:0,class:"fox-table-setting__body-title"},yf=["data-index","draggable"],bf=["onMouseover","onMouseleave"],vf={class:"tools-item"},wf={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Sf={key:0,class:"fox-table-setting__body-title"},Cf=["data-index","draggable"],Tf=["onMouseover","onMouseleave"],xf={class:"tools-item"};function $f(e,n,a,l,o,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),d=t.resolveComponent("RefreshLeft"),h=t.resolveComponent("FoxIcon"),c=t.resolveComponent("Download"),w=t.resolveComponent("fox-checkbox"),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-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",rf,[t.createElementVNode("div",sf,[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(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",uf,[t.createVNode(M,{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",cf,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",ff,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]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[6]||(n[6]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[7]||(n[7]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[8]||(n[8]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[9]||(n[9]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,p.prop,p.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,hf)]),_:2},1032,["label"]),t.createElementVNode("div",mf,[t.createVNode(h,{onClick:y=>e.toUnFixed(p.sortIndex),onMouseover:n[1]||(n[1]=y=>e.onMouseOverForTip(y,e.unFixedText)),onMouseleave:n[2]||(n[2]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:y=>e.toRightFixed(p.sortIndex),onMouseover:n[3]||(n[3]=y=>e.onMouseOverForTip(y,e.fixedRightText)),onMouseleave:n[4]||(n[4]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,df))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",gf,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",pf,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]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[15]||(n[15]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[16]||(n[16]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[17]||(n[17]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[18]||(n[18]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,p.prop,p.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,bf)]),_:2},1032,["label"]),t.createElementVNode("div",vf,[t.createVNode(h,{onClick:y=>e.toLeftFixed(p.sortIndex),onMouseover:n[10]||(n[10]=y=>e.onMouseOverForTip(y,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=y=>e.onMouseLeaveForTip(y)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:y=>e.toRightFixed(p.sortIndex),onMouseover:n[12]||(n[12]=y=>e.onMouseOverForTip(y,e.fixedRightText)),onMouseleave:n[13]||(n[13]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,yf))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",wf,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Sf,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]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:n[24]||(n[24]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:n[25]||(n[25]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:n[26]||(n[26]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:n[27]||(n[27]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(w,{class:"checkbox-item",label:p.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:y=>e.onMouseOverForOverflowText(y,p.prop,p.label),onMouseleave:y=>e.onMouseLeaveForOverflowText(y,p.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(p.label),45,Tf)]),_:2},1032,["label"]),t.createElementVNode("div",xf,[t.createVNode(h,{onClick:y=>e.toUnFixed(p.sortIndex),onMouseover:n[19]||(n[19]=y=>e.onMouseOverForTip(y,e.unFixedText)),onMouseleave:n[20]||(n[20]=y=>e.onMouseLeaveForTip(y))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:y=>e.toLeftFixed(p.sortIndex),onMouseover:n[21]||(n[21]=y=>e.onMouseOverForTip(y,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=y=>e.onMouseLeaveForTip(y)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,Cf))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const pn=Ne(of,[["render",$f]]);let kf=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o,r,i,u){if(Array.isArray(a)){let d=(l-1)*o,h=d+o;h>a.length&&(h=a.length);const c=a.slice(d,h);return{totalSize:a.length,page:c}}if(typeof a=="function")return await Reflect.apply(a,null,[l,o,r,i,u]);const s=Fe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Le(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[a,l,o,r,i,u]))}};function Df(){const e=t.getCurrentInstance();return new kf(e.proxy)}let Nf=class{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const l=Fe(this.proxy,"tableSetting");return typeof l=="function"&&(a=await Reflect.apply(l,null,["load",n])),a}save(n,a){const l=Fe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,a])}remove(n){const a=Fe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}};function Ef(){const e=t.getCurrentInstance();return new Nf(e.proxy)}const Vf=Symbol.for("TableStateKey"),Lo={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"}},_o={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}},Dl={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:"不固定"}},If={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Of(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let d=r.substring(u+1,s);if(/^\d+$/.test(d)){let h=parseInt(d);if(i==0){let c=r.substring(0,u);l=l[c][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 Nl(e,n){return e.filter(l=>{for(let o in n){const r=n[o],i=Of(l,o);if(r!==i)return!1}return!0})}function Af(e,n,a){return{inheritAttrs:!1,props:{...we,...De,...Lo,..._o,...Dl,...If},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,o){const{locale:r}=ve.useFoxI18n(n),{emitEvent:i}=xe({componentName:e,validateHandler:{getValue(...ne){return L.value}}},l.prop??o.attrs.name),u=e,s=t.computed(()=>({[u]:!0})),d=t.computed(()=>({[`${u}__setting`]:!0})),h=t.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${l.footerAlign}`]:!0})),c=t.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${l.paginationAlign}`]:!0})),w=t.shallowRef({}),M=t.computed(()=>({...w.value,...l.params??{},...l.baseParams??{}})),g=t.ref(l.infiniteLoad===!0?0:l.pageIndex),p=t.ref(l.pageSize),y=ce(l.infiniteLoad);y||(t.watch(()=>l.pageIndex,ne=>{g.value=ne}),t.watch(()=>l.pageSize,ne=>{p.value=ne}),t.watch([g,p],([ne,oe],[ie,ue])=>{oe!==ue&&(g.value=1,ne=1),F(l.data,ne,oe,M.value)}));const A=()=>Array.isArray(l.data)?!0:ce(l.autoLoad);A()&&t.watch([()=>l.data,M],async([ne,oe],[ie,ue])=>{A()&&(ne!==ie&&(_=!0),!(!Array.isArray(ne)&&Pe(ne,ie)&&Pe(oe,ue))&&(y?(g.value=0,V.value=!0,L.value=[],z()):g.value===1?F(ne,g.value,p.value,oe):g.value=1))},{deep:!0});const m=ne=>{g.value=ne,i("page-index-change",ne)},f=ne=>{p.value=ne,i("page-size-change",ne)},V=t.ref(!0),R=t.ref(0),L=t.ref(),D=Df();let _=!0;const N=Ee(t.computed(()=>l.lazyLoad),"lazyLoad",_e.Near,ne=>ce(ne)),F=async(ne,oe,ie,ue,be)=>{_=!1;try{if(be===!0){if(!V.value)return!1;const ge=await D.load("table",ne,oe,ie,ue,_,r.value);return R.value=ge.totalSize,!ge.page||!Array.isArray(ge.page)||(Reflect.apply([].push,L.value,ge.page),setTimeout(()=>{i("loaded-data")},250),(L.value?.length??0)>=R.value)||ge.page.length<ie?(V.value=!1,!1):!0}else{const ge=await D.load("table",ne,oe,ie,ue,_,r.value);return R.value=ge.totalSize,L.value=ge.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ge){console.error("[FoxUI] Load Table Data Fail",ge),R.value=0,L.value=[]}return!1};let C=!1;const z=async()=>{if(!C){if(C=!0,!V.value){C=!1;return}g.value+=1,await F(l.data,g.value,p.value,M.value,!0),C=!1}},$=(ne={},oe=!1)=>new Promise(async ie=>{w.value=t.toRaw(ne??{}),oe||(g.value=l.pageIndex??1),y===!0?(g.value=0,L.value=[],V.value=!0,await z()):await F(l.data,g.value,p.value,M.value),ie()}),k=()=>{R.value=0,L.value=[],y===!0&&(g.value=0,V.value=!0)};let T=!1;const U=()=>{T||(T=!0,$())},j=t.ref(null);if(y===!0){let ne=null;const oe=()=>{j.value&&(ne=new IntersectionObserver(ue=>{let be=!1;for(let ge of ue)if(ge.intersectionRatio>0){be=!0;break}be&&z()}),ne.observe(j.value))},ie=()=>{!ne||!j.value||(ne.unobserve(j.value),ne=null)};t.onMounted(oe),t.onBeforeUnmount(ie)}A()&&!N.value&&$();const ee=t.ref(null);t.provide(Vf,{currentRow:ee});const X=(ne,oe)=>{ee.value=ne,i("current-change",ne,oe)},Q=(ne,oe,ie)=>{i("row-click",ne,oe,ie),ce(l.rowClickSelectable)===!0&&le?.value.toggleRowSelection(ne)},ae=[],P=(ne,oe)=>{if(i("expand-change",ne,oe),ce(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ie=ae.length;ae.splice(0,ie)}else{ae.forEach(ue=>{ue!==ne&&le?.value.toggleRowExpansion(ue,!1)});const ie=ae.length;ae.splice(0,ie,ne)}},E=o.attrs.id??l.prop??o.attrs.name,K=Ef(),H=t.ref([]);let I=[];const Z=()=>({srcColumnPropertyList:I.map(oe=>({...oe})),columnPropertyList:H.value}),W=ne=>{H.value=[...ne],b()},x=async()=>{const ne=await K.load(E);ne&&(H.value=ne)},b=()=>{K.save(E,H.value)},q=()=>{K.remove(E)};x();const O=ne=>ne?ne.type?ne.type:ne.label?ne.prop:"":"",G=t.computed(()=>{if(typeof o.slots.default=="function"){const ne=o.slots.default(),oe=new Map;if(I=[],ne.forEach(ie=>{const ue=ie;if(!ue.props)return;const be=O(ue.props);oe.set(be,ie);const ge={label:"",prop:""};Object.assign(ge,ue.props),I.push(ge)}),H.value.length===I.length){const ie=[];for(let ue of H.value){const be=O(ue),ge=oe.get(be);if(!ge)return ne;if(ue.visible===!1)continue;const nt=ge;nt.props.fixed=ue.fixed,ie.push(nt)}return ie}return ne}return[]}),J=t.shallowRef(new Map),S=({column:ne,rowIndex:oe})=>{const ie=`${oe}_${ne.property}`;return J.value.get(ie)??""},Y=ne=>typeof ne=="function"?oe=>{const ie=[];let ue=S(oe);return ue&&ie.push(ue),ue=ne(oe),ue&&ie.push(ue),ie.length===0?"":ie.join(" ")}:S,te=(ne,oe,ie)=>{const ue=`${ne}_${oe}`;ie?J.value.set(ue,ie):J.value.delete(ue),t.triggerRef(J)},le=t.ref();return ye({clearSelection:()=>le?.value.clearSelection(),getSelectionRows:()=>le?.value.getSelectionRows(),toggleRowSelection:(ne,oe)=>{le?.value.toggleRowSelection(ne,oe)},toggleRowSelectionByProp:(ne,oe)=>{if(!L.value)return;const ie=Nl(L.value,ne);ie.length!==0&&ie.forEach(ue=>{le?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{le?.value.toggleAllSelection()},toggleRowExpansion:(ne,oe)=>{le?.value.toggleRowExpansion(ne,oe)},toggleRowExpansionByProp:(ne,oe)=>{if(!L.value)return;const ie=Nl(L.value,ne);ie.length!==0&&ie.forEach(ue=>{le?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:ne=>{le?.value.setCurrentRow(ne)},setCurrentRowByProp:ne=>{if(!L.value)return;const oe=Nl(L.value,ne);oe.length!==0&&le?.value.setCurrentRow(oe[0])},getCurrentRow:()=>ee.value,clearSort:()=>{le?.value.clearSort()},clearFilter:ne=>{le?.value.clearFilter(ne)},doLayout:()=>{le?.value.doLayout()},sort:(ne,oe)=>{le?.value.sort(ne,oe)},scrollTo:(ne,oe)=>{le?.value.scrollTo(ne,oe)},setScrollTop:ne=>{le?.value.setScrollTop(ne)},setScrollLeft:ne=>{le?.value.setScrollLeft(ne)},loadData:$,clearData:k,getData(){return L.value},getTotalSize(){return R.value},getPageIndex(){return g.value},getPageSize(){return p.value},getColumnSetting:Z,setColumnSetting:W,removeColumnSetting:q,setCellClassName:te}),()=>{const oe={...Ke(o.attrs),onCurrentChange:X,onRowClick:Q,onExpandChange:P,data:L.value,ref:le,class:s.value,"cell-class-name":Y(l.cellClassName)},ie={};if(o.slots.default&&(ie.default=()=>G.value),o.slots.append&&(ie.append=()=>o.slots.append),o.slots.empty&&(ie.empty=()=>o.slots.empty),y===!0){const ze=[];if(V.value){const _t=t.h($e.Loading,{class:`${u}__infinite-icon`});ze.push(_t);const ca=t.h("span",{class:`${u}__infinite-text`},[l.loadText]);ze.push(ca)}else{const _t=t.h("span",{class:`${u}__infinite-text`},[l.loadMoreText]);ze.push(_t)}const ft={ref:j,class:`${u}__infinite`},ua=t.h("div",ft,ze);ie.append=()=>ua}const ue=t.h(B.ElTable,oe,ie),be=[];if(be.push(ue),!y){let ze=null;if(typeof o.slots.pagination=="function")ze=o.slots.pagination();else if(l.showPagination){const ft={class:c.value,total:R.value,pageSize:p.value,"onUpdate:pageSize":f,pageSizes:l.pageSizes,currentPage:g.value,"onUpdate:currentPage":m,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};ze=t.h(B.ElPagination,ft)}if(l.showSetting){const ft=[];ze&&ft.push(ze);const ua=t.h(B.ElIcon,{class:d.value},{default:()=>t.h($e.Setting)}),_t=xt(l,Dl),ca=t.h(pn,{..._t,tableRef:{getColumnSetting:Z,setColumnSetting:W,removeColumnSetting:q}},{default:()=>ua});ft.push(ca);const Xg=t.h("div",{class:h.value},ft);be.push(Xg)}else ze&&be.push(ze)}const ge={default:()=>be},Lt={...ke(l,Lo,_o,Dl),prop:`${l.prop}_item`};return Lt.contentClass=`${u}__wrap`,Lt.errorMarkClass="is-table-error",N.value&&A()&&(Lt["appear-listen"]=!0,Lt.onAppear=U),t.h(a,Lt,ge)}}}}const{componentName:Ff,create:Bf,scope:Mf}=se("table-item"),El=Bf(Af(Ff,Mf,Se));function bt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Bt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Rf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Lf=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function _f(){const e=t.getCurrentInstance();return new Lf(e.proxy)}function Po(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const l=bt(e,n),o=bt(e,a);if(l!==o)return!1;const r=Bt(e,n),i=Bt(e,a);return r===i}function Pf(e,n,a,l){if(l.length==0||n===""||n===null||n===void 0)return null;let o=null;for(let r of l){let i=!1;if(a==="text")i=bt(e,r)===n;else if(a==="item")i=Po(e,r,n);else{let u=Bt(e,r);u==null&&(u=bt(e,r)),i=u===n}if(i){o=r;break}}return o}function qf(e){return{text:e,value:e}}function zf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const qo={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"},appearLoad:{type:[Boolean,String],default:!1}};function jf(e,n,a){return{inheritAttrs:!0,props:{...we,...De,...qo},emits:["change","update:modelValue","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),s=t.ref(null),d=t.ref(null),h=(D,_,N,F=!0)=>{const C=Pf(l,D,_,N);if(C===null){if(d.value===null)return;d.value=null,s.value=null,F&&(u("update:modelValue",null),u("change",null));return}if(!Po(l,C,d.value)){s.value=D;const $=t.toRaw(C);d.value=$;let k=null;l.valueType==="text"?k=bt(l,$):l.valueType==="item"?k=$:k=Bt(l,$),F&&(u("update:modelValue",k),u("change",k))}},c=t.ref([]),w=Ee(t.computed(()=>l.appearLoad),"appearLoad",_e.Near,D=>ce(D)),M=_f(),g=async(D,_)=>{if(D){const N=await M.load("radio",D,_);if(N.length>0)if(typeof N[0]=="string"){let z=N.map($=>qf($));c.value=z}else c.value=N}};t.watch([()=>l.source,()=>l.params],async([D,_])=>{g(D,_)},{immediate:!w.value});let p=!1;const y=()=>{p||(p=!0,g(l.source,l.params))};t.watch([()=>c.value,()=>l.modelValue],([D,_])=>{h(_,l.valueType,D,!1),u("setValue",_)});const A=e,m=t.computed(()=>({[A]:!0,[`is-${l.direction}`]:!0})),f=D=>{h(D,"value",c.value,!0)};let V=de(l,"hintText"),R=de(l,"hintVisible");const L=(D,_)=>{const N=[];return D.forEach((F,C)=>{const z=Bt(l,F),$=bt(l,F);let k=Rf(l,F);r.value===!0&&(k=r.value),i.value===!0&&(k=i.value);const T=zf(l,F,C)??{},U=`${z}_${C}`,j={...T,key:U,label:z,size:l.size,border:ce(l.border)};k&&(j.disabled=k),l.itemType==="button"?N.push(t.h(B.ElRadioButton,j,{default:()=>[$]})):typeof _=="function"?N.push(t.h(B.ElRadio,j,{default:()=>_(F)})):N.push(t.h(B.ElRadio,j,{default:()=>[$]}))}),N};return()=>{const _={...Ke(o.attrs),class:m.value,disabled:r.value||i.value,modelValue:s.value,"text-color":l.textColor,fill:l.fill,onChange:f},N=[],F={};o.slots.options?F.default=o.slots.options:F.default=()=>L(c.value,o.slots.text);const C=t.h(B.ElRadioGroup,_,F);N.push(C);const z={default:()=>N};o.slots.default&&(z.label=o.slots.default),o.slots.fixedTip&&(z.fixedTip=o.slots.fixedTip);const k={...ke(l,qo),hintText:V.value,hintVisible:R.value,prop:`${l.prop??o.attrs.name}_item`};return w.value&&(k["appear-listen"]=!0,k.onAppear=y),t.h(a,k,z)}}}}const{componentName:Hf,create:Kf,scope:Yf}=se("radio-item"),Vl=Kf(jf(Hf,Yf,Se));function vt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function wt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Wf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Uf=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function Gf(){const e=t.getCurrentInstance();return new Uf(e.proxy)}function zo(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const l=vt(e,n),o=vt(e,a);if(l!==o)return!1;const r=wt(e,n),i=wt(e,a);return r===i}function Xf(e,n,a,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];return n.forEach(r=>{for(let i of l){let u=!1;if(a==="text")u=vt(e,i)===r;else if(a==="item")u=zo(e,i,r);else{let s=wt(e,i);s==null&&(s=vt(e,i)),u=s===r}if(u){o.push(i);break}}}),o}function Zf(e){return{text:e,value:e}}function Jf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const jo={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"},appearLoad:{type:[Boolean,String],default:!1}};function Qf(e,n,a){return{inheritAttrs:!0,props:{...we,...De,...jo},emits:["change","update:modelValue","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),s=t.ref([]),d=t.ref([]),h=(D,_,N,F=!0)=>{const C=Xf(l,D,_,N);if(C===null){if(d.value===null||d.value.length===0)return;s.value=[],d.value=[],F&&(u("update:modelValue",[]),u("change",[]));return}let z=!0;if(C.length!==d.value.length)z=!1;else for(let $=0;$<C.length;$++){const k=C[$],T=d.value[$];if(!zo(l,k,T)){z=!1;break}}if(!z){d.value=C;let $=[],k=[];C.forEach(U=>{$.push(wt(l,U)),l.valueType==="text"?k.push(vt(l,U)):l.valueType==="item"?k.push(U):k.push(wt(l,U))}),s.value=$;const T=t.toRaw(k);F&&(u("update:modelValue",T),u("change",T))}},c=t.ref([]),w=Ee(t.computed(()=>l.appearLoad),"appearLoad",_e.Near,D=>ce(D)),M=Gf(),g=async(D,_)=>{if(D){const N=await M.load("checkbox",D,_);if(N.length>0)if(typeof N[0]=="string"){let z=N.map($=>Zf($));c.value=z}else c.value=N}};t.watch([()=>l.source,()=>l.params],async([D,_])=>{g(D,_)},{immediate:!w.value});let p=!1;const y=()=>{p||(p=!0,g(l.source,l.params))};t.watch([()=>c.value,()=>l.modelValue],([D,_])=>{h(_,l.valueType,D,!1),u("setValue",_)});const A=e,m=t.computed(()=>({[A]:!0,[`is-${l.direction}`]:!0})),f=D=>{h(D,"value",c.value,!0)};let V=de(l,"hintText"),R=de(l,"hintVisible");const L=(D,_)=>{const N=[];return D.forEach((F,C)=>{const z=wt(l,F),$=vt(l,F);let k=Wf(l,F);r.value===!0&&(k=r.value),i.value===!0&&(k=i.value);const T=Jf(l,F,C)??{},U=`${z}_${C}`,j={...T,key:U,class:l.itemClass,label:z,size:l.size,border:ce(l.border)};k&&(j.disabled=k),l.itemType==="button"?N.push(t.h(B.ElCheckboxButton,j,{default:()=>[$]})):typeof _=="function"?N.push(t.h(B.ElCheckbox,j,{default:()=>_(F)})):N.push(t.h(B.ElCheckbox,j,{default:()=>[$]}))}),N};return()=>{const _={...Ke(o.attrs),class:m.value,disabled:r.value||i.value,modelValue:s.value,"text-color":l.textColor,fill:l.fill,max:he(l.max),min:he(l.min),onChange:f},N=[],F={};o.slots.options?F.default=o.slots.options:F.default=()=>L(c.value,o.slots.text);const C=t.h(B.ElCheckboxGroup,_,F);N.push(C);const z={default:()=>N};o.slots.default&&(z.label=o.slots.default),o.slots.fixedTip&&(z.fixedTip=o.slots.fixedTip);const k={...ke(l,jo),hintText:V.value,hintVisible:R.value,prop:`${l.prop??o.attrs.name}_item`};return w.value&&(k["appear-listen"]=!0,k.onAppear=y),t.h(a,k,z)}}}}const{componentName:ed,create:td,scope:nd}=se("checkbox-item"),Il=td(Qf(ed,nd,Se)),Ho={modelValue:{type:[Number,String],required:!1}};function ld(e,n,a){return{props:{...we,...De,...Ho},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),s=de(l,"modelValue",p=>he(p),u),d=e,h=t.computed(()=>({[d]:!0})),c=p=>{u("update:modelValue",p),u("change",p)};let w=de(l,"hintText"),M=t.ref(!1);const g=t.ref();return ye({}),()=>{const y={...Ke(o.attrs),ref:g,class:h.value,readonly:i.value||r.value,modelValue:s.value,onChange:c},A={},m=[],f=t.h(B.ElRate,y,A);m.push(f);const V={default:()=>m};o.slots.default&&(V.label=o.slots.default),o.slots.fixedTip&&(V.fixedTip=o.slots.fixedTip);const L={...ke(l,Ho),hintText:w.value,hintVisible:M.value,prop:`${l.prop}_item`};return t.h(a,L,V)}}}}const{componentName:ad,create:od,scope:rd}=se("rate-item"),Ol=od(ld(ad,rd,Se)),Ko={modelValue:{type:[Boolean,String,Number],required:!1}};function id(e,n,a){return{props:{...we,...De,...Ko},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),s=de(l,"modelValue",null,u),d=e,h=t.computed(()=>({[d]:!0})),c=p=>{u("update:modelValue",p),u("change",p)};let w=de(l,"hintText"),M=de(l,"hintVisible");const g=t.ref();return ye({}),()=>{const y={...Ke(o.attrs),ref:g,class:h.value,readonly:i.value,disabled:r.value,modelValue:s.value,onChange:c},A={},m=[],f=t.h(B.ElSwitch,y,A);m.push(f);const V={default:()=>m};o.slots.default&&(V.label=o.slots.default),o.slots.fixedTip&&(V.fixedTip=o.slots.fixedTip);const L={...ke(l,Ko),hintText:w.value,hintVisible:M.value,prop:`${l.prop}_item`};return t.h(a,L,V)}}}}const{componentName:sd,create:ud,scope:cd}=se("switch-item"),Al=ud(id(sd,cd,Se)),Yo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function fd(e,n,a){return{props:{...we,...De,...Yo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),u=t.ref(!1),{emitEvent:s}=xe({componentName:e,get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),d=de(l,"modelValue",null,s),h=e,c=t.computed(()=>({[h]:!0})),w=R=>{s("update:modelValue",R),s("change",R)};let M=de(l,"hintText"),g=t.ref(!1);const p=R=>{let D=R.target.value;u.value=!0,pe(M.value)||(g.value=!0),s("focus",D,R)},y=R=>{setTimeout(()=>{g.value&&(g.value=!1),u.value=!1},0);let D=R.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),m.value||s("blur",D,R)},A=()=>{s("clear","")},m=t.ref(!1),f=R=>{m.value=R,s("visible-change",R),R||s("selected")},V=t.ref();return ye({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()}}),()=>{const L={...Ke(o.attrs),ref:V,class:c.value,disabled:r.value||i.value,modelValue:d.value,"onUpdate:modelValue":w,onClear:A,onFocus:p,onBlur:y,onVisibleChange:f},D={};o.slots.option&&(D.default=o.slots.option);const _=[],N=t.h(B.ElTreeSelect,L,D);_.push(N);const F={default:()=>_};o.slots.default&&(F.label=o.slots.default),o.slots.fixedTip&&(F.fixedTip=o.slots.fixedTip);const z={...ke(l,Yo),hintText:M.value,hintVisible:g.value,prop:`${l.prop}_item`};return t.h(a,z,F)}}}}const{componentName:dd,create:hd,scope:md}=se("tree-select-item"),Fl=hd(fd(dd,md,Se));class gd{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const l=Fe(this.proxy,"tableSetting");return typeof l=="function"&&(a=await Reflect.apply(l,null,["load",n])),a}save(n,a){const l=Fe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,a])}remove(n){const a=Fe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}}function pd(){const e=t.getCurrentInstance();return new gd(e.proxy)}const yd={},bd={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},vd=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function wd(e,n){return t.openBlock(),t.createElementBlock("svg",bd,vd)}const Sd=Ne(yd,[["render",wd]]),{componentName:hp,create:Cd,scope:mp}=se("group-setting"),Td={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},xd=Cd({components:{FoxPopover:B.ElPopover,FoxCheckbox:B.ElCheckbox,FoxCheckboxGroup:B.ElCheckboxGroup,FoxButton:B.ElButton,FoxIcon:B.ElIcon,DragIcon:Sd,Download:$e.Download,RefreshLeft:$e.RefreshLeft},props:{...Td},emits:["change"],setup(e,{emit:n,attrs:a,expose:l}){let o=null;const r=t.ref([]),i=pd(),u=P=>P.length>1,s=()=>{const P=[],E=[...r.value];r.value=E.map((H,I)=>(H.visible!==!1&&P.push(H.prop),{...H,sortIndex:I})),r.value.length===P.length?p.value=!0:P.length>0&&(y.value=!0),f.value=P},d=P=>{let E=null;if(typeof P=="string")E=document.querySelectorAll(`.fox-group[prop="${P}"] > div > .fox-item[prop]`);else if(P&&typeof P=="object"){const H=P.$el??P;typeof H.querySelectorAll=="function"&&(E=H.querySelectorAll(".fox-item[prop]"))}if(!E)return[];const K=[];return E.forEach(H=>{const I=H.querySelector(".label--string");let Z="";I&&(Z=I.textContent??"");const W=H.getAttribute("prop")??"",b=window.getComputedStyle(H,null).getPropertyValue("display");K.push({label:Z,prop:W,sortIndex:0,visible:b!=="none"})}),K},h=()=>{if(!o){const P=d(e.groupRef??e.groupProp);if(P.length===0)return!1;o=P}return!0},c=async(P=!1)=>{const E=await i.load(e.groupProp),K=H=>{if(!H||!o)return;const I=o.map(Z=>({...Z}));Array.isArray(E)&&E.forEach(Z=>{I.some(W=>{if(W.prop===Z.prop){const x=W.label;return Object.assign(W,Z),W.label=x,!0}return!1})}),r.value=I.sort((Z,W)=>Z.sortIndex-W.sortIndex),s(),P&&M(!1)};o?K(!0):Zt(h,e.initDelay,5,50,!1,K)},w=()=>{const P=o??[];r.value=P.map(E=>({...E})),s(),M()},M=(P=!0)=>{P&&i.save(e.groupProp,r.value);const E=r.value.map(K=>({...K}));n("change",E)},g=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),p=t.ref(!1),y=t.ref(!1),A=P=>{const E=[];r.value.forEach(H=>{P&&E.push(H.prop),H.visible=P}),p.value=!1,y.value=!1,r.value.length===E.length?p.value=!0:E.length>0&&(y.value=!0),f.value=E,M()},m=()=>{w()},f=t.ref([]),V=P=>{r.value.forEach(K=>{const H=P.indexOf(K.prop)!==-1;K.visible=H}),p.value=!1,y.value=!1;const E=r.value.length;P.length===E?p.value=!0:P.length>0&&(y.value=!0),M()},R=()=>{c()};t.onMounted(()=>{c(!0)});const L={currentRow:null,index:null},D=P=>P?P.dataset&&P.dataset.role==="row"?P:P.tagName.toLowerCase()!=="body"?(P=P.parentElement,D(P)):null:null,_=P=>{const E=P.currentTarget;E&&E.dataset&&(L.index=E.dataset.index)},N=P=>{L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null),L.index=null},F=P=>{const E=P.currentTarget;P.relatedTarget;const K=D(E);K&&(P.preventDefault(),L.currentRow&&L.currentRow!==K&&L.currentRow.classList.remove("is-dragover"),K.classList.add("is-dragover"),L.currentRow=K)},C=P=>{P.preventDefault(),L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null)},z=P=>{const E=P.currentTarget,K=D(E);if(!K)return;P.preventDefault();const H=Number(L.index),I=Number(K.dataset.index);if(H!==I){if(H<I){const Z=r.value[H];r.value.splice(H,1),r.value.splice(I,0,Z)}else{const Z=r.value[H];r.value.splice(H,1),r.value.splice(I+1,0,Z)}s(),M()}},$=P=>{const E=r.value[P];r.value.splice(P,1),r.value.splice(0,0,E),s(),M()},k=P=>{const E=r.value[P];r.value.splice(P,1),r.value.push(E),s(),M()};l({refresh:()=>{o=null,c(!1)}});const T=new Map;let U=null;function j(P){const E=document.createRange();return E.setStart(P,0),E.setEnd(P,P.childNodes.length),E.getBoundingClientRect().width}return{attrs:a,itemPropertyList:r,isDraggble:u,isCheckAll:p,isIndeterminate:y,handleCheckAllChange:A,handleReset:m,checkedValue:f,handleCheckChange:V,onShow:R,onDragStart:_,onDragEnd:N,onDragOver:F,onDragLeave:C,onDrop:z,checkboxLabelStyle:g,toTop:$,toBottom:k,onMouseOverForOverflowText:(P,E,K)=>{const H=P.currentTarget;if(H){const I=Math.floor(H.offsetWidth);if(Math.floor(j(H))>I){let W=T.get(E);if(W){if(W===U)return;Be.hide(W)}W=Be.show(H,K,{type:"text",placement:"top",closeOnClick:!1}),T.set(E,W),U=W}}},onMouseLeaveForOverflowText:(P,E)=>{const K=T.get(E);K&&(Be.hide(K),K===U&&(U=null))},onMouseOverForTip:(P,E)=>{const K=P.currentTarget;K&&(U&&Be.hide(U),U=Be.show(K,E,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:P=>{U&&(Be.hide(U),U=null)}}}}),$d={class:"fox-group-setting"},kd={class:"fox-group-setting__header"},Dd={class:"fox-group-setting__body"},Nd={class:"fox-group-setting__body-list","data-role":"container"},Ed=["data-index","draggable"],Vd=["onMouseover","onMouseleave"],Id={class:"tools-item"};function Od(e,n,a,l,o,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),d=t.resolveComponent("Download"),h=t.resolveComponent("FoxIcon"),c=t.resolveComponent("FoxCheckboxGroup"),w=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(w,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",$d,[t.createElementVNode("div",kd,[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",Dd,[t.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=M=>e.checkedValue=M),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",Nd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,M=>(t.openBlock(),t.createElementBlock("div",{key:M.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":M.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[6]||(n[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[7]||(n[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[8]||(n[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[9]||(n[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(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:g=>e.onMouseOverForOverflowText(g,M.prop,M.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,M.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(M.label),45,Vd)]),_:2},1032,["label"]),t.createElementVNode("div",Id,[t.createVNode(h,{onClick:g=>e.toTop(M.sortIndex),onMouseover:n[1]||(n[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:n[2]||(n[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:g=>e.toBottom(M.sortIndex),onMouseover:n[3]||(n[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:n[4]||(n[4]=g=>e.onMouseLeaveForTip(g))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,Ed))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Bl=Ne(xd,[["render",Od]]),yn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popStyle:{type:Object,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Ad(e,n,a,l="value"){for(let o=0;o<n.length;o++){let r=n[o];if(l==="text"){if(bn(e,r)===a)return o}else if(l==="item"){if(Pe(a,r))return o}else if(Uo(e,r)===a)return o}return-1}function bn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Wo(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Uo(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Fd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Bd(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Md=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o,r,i,u){if(Array.isArray(a)){let d=a;typeof u=="function"&&(d=d.filter(u));let h=(l-1)*o,c=h+o;c>d.length&&(c=d.length);const w=d.slice(h,c);return{totalSize:d.length,page:w}}if(typeof a=="function")return await Reflect.apply(a,null,[l,o,r,i]);const s=Fe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Le(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[a,l,o,r]))}};function Rd(){const e=t.getCurrentInstance();return new Md(e.proxy)}function Ld(e,n,a,l,o,r,i,u,s,d,h){return{props:{...yn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,{slots:w}){const{emitEvent:M}=Gn(),{toLocaleRefs:g}=ve.useFoxI18n(n),p=g(c,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),y=Rd(),A=t.ref([]),m=t.ref(0),f=t.ref(""),V=t.shallowRef(null),R=t.computed(()=>{const b={};return c.params&&Object.assign(b,c.params),pe(f.value)||(b[`${c.searchKey}`]=f.value),V.value&&Object.assign(b,V.value),b});let L=!0;const D=async(b,q,O)=>{try{if(N.value===!1)return;let G=null;pe(f.value)||(G=S=>{const Y=bn(c,S);if(typeof Y=="string"&&Y.includes(f.value))return!0;const te=Wo(c,S);return!!(typeof te=="string"&&te.includes(f.value))});const J=await y.load("actionsheet",b,q,O,R.value,L,G??void 0);L=!1,Array.isArray(J)?(A.value=J,m.value=1,N.value=!1):!Array.isArray(J.page)||J.page.length===0?(console.warn("[FoxUI] can not load more data"),N.value=!1):(Reflect.apply([].push,A.value,J.page),m.value=Math.ceil(A.value.length/c.pageSize),(J.totalSize&&A.value.length>=J.totalSize||O<J.page.length)&&(N.value=!1)),_.value=!1}catch(G){console.error("[FoxUI] ActionSheet load more data fail",G),N.value=!0,m.value=0,A.value=[]}setTimeout(()=>{M("loaded-data")},250)},_=t.ref(!1),N=t.ref(!0),F=async()=>{if(!c.source){_.value=!1;return}await D(c.source,m.value+1,c.pageSize)};t.watch(()=>f.value,(b,q)=>{pe(b)&&!pe(q)&&F()}),t.watch([()=>c.source,()=>c.pageSize,()=>c.params],async([b,q,O])=>{c.source&&F()},{immediate:!0});const C=t.computed(()=>!c.multiple&&c.isAutoBackFill),z=t.ref([]);let $=null;const k=t.ref(c.visible);t.watch(()=>c.visible,b=>{k.value!==b&&(k.value=b),b?$=[...z.value]:$=null});const T=(b,q)=>{const O=[];return Array.isArray(b)||(b=[b]),b.forEach(G=>{let J=Ad(c,q,G,c.valueType);J!==-1&&O.push(J)}),Pe(O,z.value)?!1:(z.value=O,!0)};t.watch([()=>c.modelValue,()=>A.value],([b,q],[O,G])=>{if(T(b,q)){const S=U();j(S)}},{deep:!0});const U=()=>{const b=[],q=[],O=[];for(let Y of z.value){const te=A.value[Y];q.push(te);const le=bn(c,te);if(O.push(le),c.valueType==="item")b.push(te);else if(c.valueType==="text")b.push(le);else{const ne=Uo(c,te);b.push(ne)}}let G=null,J=null,S=null;return c.multiple?(G=b,J=O,S=q):(G=b[0]??null,J=O[0]??null,S=q[0]??null),{value:G,text:J,item:S}},j=b=>{M("update:modelValue",b.value),M("update:text",b.text),M("change",b.value,b.item,b.text)},ee=()=>{$&&(z.value=$)},X=b=>{const q=z.value.indexOf(b);c.multiple?q===-1?z.value.push(b):z.value.splice(q,1):q===-1?z.value=[b]:z.value=[],(C.value||!c.poppable&&!c.showFooter)&&P()},Q=b=>{k.value=b,M("update:visible",b)},ae=()=>{const b=()=>{ee(),Q(!1)},q=c.beforeMethod??c.beforeClose;if(typeof q=="function"){const O=q("close");jt(O)?O.then(G=>{G!==!1&&b()}).catch(()=>{b()}):O!==!1&&b()}else b()},P=()=>{const b=U(),q=()=>{j(b),Q(!1)},O=c.beforeMethod??c.beforeClose;if(typeof O=="function"){const G=O("confirm",b.value,b.item,b.text);jt(G)?G.then(J=>{J!==!1&&q()}).catch(()=>{q()}):G!==!1&&q()}else q()},E=()=>{N.value=!0,m.value=0,A.value=[],c.source&&F()},K=()=>{let b=p.title.value??"";w.title&&(b=w.title());const q=t.h("view",{class:["fox-actionsheet__header-title"]},[b]),O=t.h(s,{class:["fox-actionsheet__header-icon"],onClick:ae});return t.h("view",{class:["fox-actionsheet__header"]},[q,O])},H=()=>{let b=null;if(w.search)b=w.search();else{const q={onSearch:E,placeholder:p.seachPlaceholder.value,disabled:c.disabled,modelValue:f.value,"onUpdate:modelValue":O=>{f.value=O}};b=t.h(r,q,{leftin:()=>t.h(d)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[b])},I=(b,q,O,G,J)=>{if(w.optionLabel)return w.optionLabel({text:b,checked:q,disabled:O,subText:G,item:J});const S=[],Y=t.h("view",{class:"fox-actionsheet__list-item-text"},[b]);if(S.push(Y),G){const te=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[G]);S.push(te)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},S)},Z=(b,q,O,G)=>{if(w.optionIcon)return w.optionIcon({checked:b,disabled:q,iconSize:O,item:G});if(b){if(w.checkedIcon)return w.checkedIcon({disabled:q,item:G});{const J=c.checkedIcon??u;return t.h(J,{width:O,height:O,class:["fox-actionsheet__list-item-icon"]})}}else{if(w.icon)return w.icon({disabled:q,item:G});{const J=c.icon??i;return t.h(J,{width:O,height:O,class:["fox-actionsheet__list-item-icon"]})}}},W=()=>{const b=[];for(let q=0;q<A.value.length;q++){const O=A.value[q],G=bn(c,O),J=Wo(c,O),S=["fox-actionsheet__list-item"],Y={};let te=Fd(c,O),le=c.iconSize?me(c.iconSize):null;const ne=Bd(c,O,q);ne&&(te=te||ne.disabled,ne.class&&S.push(ne.class),ne.style&&Object.assign(Y,ne.style)),te=!!(c.disabled||te);const oe=z.value.includes(q);te&&S.push("is-disabled"),oe&&S.push("is-checked");const ie={class:S,style:Y,key:`${q}`,onClick:()=>{te||X(q)}};let ue=[];if(w.option)ue.push(w.option({item:O,checked:oe,disabled:te}));else{const ge=I(G,oe,te,J,O);ue.push(ge);const nt=Z(oe,te,le,O);ue.push(nt)}const be=t.h("view",ie,ue);b.push(be)}return b},x=()=>{let b=[];if(w.buttons)b=w.buttons();else{const O=t.h(o,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:P,disabled:c.disabled},{default:()=>p.confirmText.value});b.push(O)}return t.h("view",{class:"fox-actionsheet__footer"},[b])};return ye({search:async(b=null,q=!0)=>{V.value=b&&t.toRaw(b),t.triggerRef(V),q&&(N.value=!0,m.value=0,A.value=[]),t.nextTick(()=>{F()})},clear:()=>{N.value=!0,m.value=0,A.value=[]},confirm:()=>{P()},cancel:()=>{ae()}}),()=>{const b=[];if(c.showHeader){const le=K();b.push(le)}if(c.showSearchbar){const le=H();b.push(le)}let q=null;if(w.content)q=w.content();else{const le=W(),ne={hasMore:N.value,loadText:p.loadText.value,loadMoreText:p.loadMoreText.value,modelValue:_.value,"onUpdate:modelValue":oe=>{_.value=oe},onLoadMore:F};q=t.h(l,ne,{default:()=>le})}const O={};c.optionsHeight&&(O.height=c.optionsHeight);const G={"fox-actionsheet__list":!0};c.poppable||(G["fox-actionsheet__list--inner"]=!0);const J=t.h("view",{class:G,style:O},[q]);if(b.push(J),c.showFooter&&!C.value){const le=x();b.push(le)}const S=t.h("view",{class:"fox-actionsheet"},b);if(!c.poppable)return S;const Y=["fox-actionsheet__popup"];c.popClass&&Y.push(c.popClass);const te={popClass:Y.join(" "),visible:k.value,closeable:!1,"onUpdate:visible":Q,position:c.position,round:"round",onClickOverlay:ae,closeOnClickOverlay:c.closeOnClickOverlay};return t.h(a,te,{default:()=>S})}}}}const _d=/scroll|auto|overlay/i,Go=window;function Pd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function qd(e,n=Go){let a=e;for(;a&&a!==n&&Pd(a);){const{overflowY:l}=window.getComputedStyle(a);if(_d.test(l))return a;a=a.parentNode}return n}function Xo(e,n=Go){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=qd(e.value,n))}),a}const Zo=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,zd={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 jd(e,n,a){return{props:{...zd},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["pullText","loadText","loadMoreText"]),s=t.ref(),d=Xo(s),h=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[e]:!0})),w=m=>m?m.offsetTop+w(m.offsetParent):0,M=()=>{let m=0,f=0,V="down";if(d.value==window){const R=Zo();s.value&&(m=w(s.value)+s.value.offsetHeight-R-window.innerHeight),f=R}else{const{scrollHeight:R,clientHeight:L,scrollTop:D}=d.value;m=R-L-D,f=D}return h.beforeScrollTop>f?V="up":V="down",h.beforeScrollTop=f,o("scroll-change",f),m<=l.threshold&&V=="down"},g=()=>{Vn(()=>{if(!M()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},p=()=>{d.value&&d.value.addEventListener("scroll",g,l.useCapture)},y=()=>{d.value&&d.value.removeEventListener("scroll",g,l.useCapture)};t.onMounted(()=>{p(),l.immediate&&g()}),t.onUnmounted(()=>{y()});const A=t.ref(!1);return t.onActivated(()=>{A.value&&(A.value=!1,p())}),t.onDeactivated(()=>{A.value=!0,y()}),t.watch(()=>l.modelValue,m=>{m||(h.isInfiniting=!1)}),()=>{const m={class:"fox-infinite__container"},f=t.h("view",m,[r?.default?.()]),V=[];if(h.isInfiniting){let _=r?.loading?.()??null;if(!_){let C=r?.loadingIcon?.()??null;if(!C){const k={class:["fox-infinite__bottom-box__img"]};C=t.h(a,k)}const z={class:"fox-infinite__bottom-box__text"},$=t.h("view",z,[u.loadText.value]);_=[C,$]}const N={class:"fox-infinite__bottom-box"},F=t.h("view",N,_);V.push(F)}else if(!l.hasMore){let _=r?.finished?.()??null;if(!_){const N={class:"fox-infinite__bottom-tips"};_=t.h("view",N,[u.loadMoreText.value]),V.push(_)}}const R={class:"fox-infinite__bottom"},L=t.h("view",R,V),D={class:c.value,ref:s};return t.h("view",D,[f,L])}}}}const{componentName:Hd,create:Kd,scope:Yd}=se("infinite-loading"),vn=Kd(jd(Hd,Yd,mn)),Wd={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"}},Ud=(e,n,a)=>({props:{...Wd},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:o}){const{emitEvent:r}=Gn(),{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["placeholder"]),s=t.reactive({active:!1}),d=t.computed(()=>({background:l.background})),h=t.computed(()=>({background:l.inputBackground})),c=N=>{let C=N.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),r("update:modelValue",C,N),r("change",C,N)},w=t.ref({}),M=N=>{let C=N.target.value;s.active=!0,w.value=l.focusStyle,r("focus",C,N)},g=N=>{setTimeout(()=>{s.active=!1},0);let C=N.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),w.value={},r("blur",C,N)},p=N=>{r("update:modelValue","",N),r("change","",N),r("clear","")},y=t.computed(()=>String(l.modelValue).length>0),A=t.computed(()=>{const N={};return y.value||(N.display="none"),N}),m=()=>{r("search",l.modelValue)},f=N=>{r("keyup-input",N),N.key.toLocaleUpperCase()==="ENTER"&&m()},V=N=>{r("click-input",N)},R=N=>{r("click-left-icon",l.modelValue,N)},L=t.computed(()=>({textAlign:l.inputAlign})),D=t.ref(null);t.onMounted(()=>{l.autofocus&&D.value.focus()});const _=()=>{const N=[];if(o.leftin){const k={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:R},T=t.h("view",k,[o.leftin()]);N.push(T)}const F={ref:D,class:[`${e}__input-inner`],style:L.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:V,onInput:c,onFocus:M,onBlur:g,onkeyup:f},C=t.h("input",F);N.push(C);const z=[];if(l.clearable){const k={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:A.value,onClick:p},T=o?.clear?.()??l.clearIcon??a,U=t.h("view",k,[t.h(T)]);z.push(U)}if(o.rightin){const k={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},T=t.h("view",k,[o.rightin()]);z.push(T)}if(z.length>0){const k={class:`${e}__input-inner-right`},T=t.h("view",k,z);N.push(T)}const $={class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...w.value}};return t.h("view",$,N)};return()=>{const N=[];if(l.label){const z={class:`${e}__search-label`},$=t.h("span",z,[l.label]);N.push($)}if(o.leftout){const z={class:[`${e}__search-icon`,`${e}__left-search-icon`]},$=t.h("view",z,[o.leftout()]);N.push($)}const F=_();if(N.push(F),o.rightout){const z={class:[`${e}__search-icon`,`${e}__right-search-icon`]},$=t.h("view",z,[o.rightout()]);N.push($)}const C={class:`${e}`,style:d.value};return t.h("view",C,N)}}}),{componentName:Gd,create:Xd,scope:Zd}=se("searchbar"),wn=Xd(Ud(Gd,Zd,$e.CircleClose)),{componentName:Jd,create:Qd,scope:eh}=se("actionsheet-pane"),Sn=Qd(Ld(Jd,eh,it,vn,B.ElButton,wn,Iu,Du,wo,cu)),Jo={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 th(e,n,a,l,o){return{props:{...we,...De,...Jo,...yn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(r,i){const u=Ie(t.computed(()=>r.disabled)),s=Ve(t.computed(()=>r.readonly)),{emitEvent:d}=xe({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return u.value}},r.prop??i.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),c=h(r,["placeholder"]),w=t.ref(!1),M=de(r,"modelValue",null,d),g=t.ref(""),p=t.computed(()=>Array.isArray(g.value)?g.value.join(r.separator):g.value),y="fox-input-item",A=t.computed(()=>({[y]:!0,[`${y}__disabled`]:u.value})),m=Ee(t.computed(()=>r.textAlign),"textAlign"),f=t.computed(()=>{const T={};return m.value&&(T["text-align"]=m.value),T}),V=t.ref(!1),R=()=>{V.value=!0},L=T=>{V.value=T},D=T=>{M.value=T,d("update:modelValue",T)},_=(T,U)=>{d("change",T,U)},N=T=>{let j=T.target.value;w.value=!0,d("focus",j,T)},F=T=>{setTimeout(()=>{w.value=!1},0);let j=T.target.value;r.maxLength&&j.length>Number(r.maxLength)&&(j=j.slice(0,Number(r.maxLength))),d("blur",j,T)},C=T=>{g.value=T,d("update:text",T)},z=t.computed(()=>je(r.unit)>0),$=t.ref(),k=t.ref(null);return ye({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()},search:T=>{k.value&&k.value.search(T)},clear:()=>{k.value&&k.value.clear},confirm:T=>{k.value&&k.value.confirm()},cancel:()=>{k.value&&k.value.cancel()}}),()=>{const T={ref:$,class:A.value,style:f.value,type:"text",maxlength:r.maxLength,placeholder:c.placeholder.value,readonly:!0,value:p.value,onClick:R,onFocus:N,onBlur:F},U={};i.slots.prepend&&(U.prepend=i.slots.prepend),i.slots.append&&(U.append=i.slots.append),i.slots.prefix&&(U.prefix=i.slots.prefix),i.slots.suffix?U.suffix=i.slots.suffix:z.value?U.suffix=()=>[r.unit]:U.suffix=()=>t.h(B.ElIcon,{},{default:()=>t.h($e.ArrowDown)});const j=[],ee=t.h(B.ElInput,T,U);j.push(ee);const X={default:()=>j};X.label=i.slots.default,X.prepend=i.slots.prepend,X.append=i.slots.append,X.fixedPreTip=i.slots.fixedPreTip,X.fixedTip=i.slots.fixedTip;const Q=xt(r,yn);Q.ref=k,Q.class=r.actionsheetProps,Q.disabled=u.value||s.value,Q.visible=V.value,Q["onUpdate:visible"]=L,Q.modelValue=M.value,Q["onUpdate:modelValue"]=D,Q.text=g.value,Q["onUpdate:text"]=C,Q.onChange=_,Q.poppable=!0;const ae={title:i.slots.title,search:i.slots.search,option:i.slots.option,optionLabel:i.slots.optionLabel,optionIcon:i.slots.optionIcon,buttons:i.slots.buttons},P=t.h(l,Q,ae);X.hide=()=>[P];const E=ke(r,Jo,yn);return t.h(a,{...E,prop:`${r.prop}_item`},X)}}}}const{componentName:nh,create:lh,scope:ah}=se("actionsheet-item"),Ml=lh(th(nh,ah,Se,Sn)),Qo={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},Rl={...gl,...Qo,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:""},isAutoBackFill:{type:[Boolean],default:!0}};function oh(e){return e===window}const Ll=e=>{const n=t.unref(e);if(oh(n)){const a=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:a,bottom:l,width:a,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},er=10;function tr(e,n){return e>n&&e>er?"horizontal":n>e&&n>er?"vertical":""}function _l(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Pl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=tr(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:l,isVertical:n,isHorizontal:a,state:e}}function nr(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),l=t.ref(0),o=t.ref(0),r=t.ref(0),i=t.ref(0),u=t.ref(0),s=t.ref(0),d=t.ref(0),h=t.ref(""),c=()=>h.value==="vertical",w=()=>h.value==="horizontal",M=()=>{i.value=0,u.value=0,s.value=0,d.value=0,h.value="",a.value=0};return{move:y=>{if(y.touches){const f=y.touches[0];i.value=f.clientX-e.value,u.value=f.clientY-n.value,o.value=f.clientX,r.value=f.clientY}else{const m=y;i.value=m.clientX-e.value,u.value=m.clientY-n.value,o.value=m.clientX,r.value=m.clientY}s.value=Math.abs(i.value),d.value=Math.abs(u.value),l.value=Date.now()-a.value,h.value||(h.value=tr(s.value,d.value))},start:y=>{if(M(),y.touches){const f=y.touches[0];e.value=f.clientX,n.value=f.clientY}else{const m=y;e.value=m.clientX,n.value=m.clientY}a.value=Date.now()},reset:M,startX:e,startY:n,startTime:a,duration:l,moveX:o,moveY:r,deltaX:i,deltaY:u,offsetX:s,offsetY:d,direction:h,isVertical:c,isHorizontal:w}}let lr=36;function rh(){return lr}function ih(e){lr=e}function We(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ql(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function sh(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function ut(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ar(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let uh=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function ch(){const e=t.getCurrentInstance();return new uh(e.proxy)}function or(e,n,a){const l=We(e,n),o=We(e,a);if(l!==o)return!1;const r=ut(e,n),i=ut(e,a);return r===i}function fh(e,n,a,l){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const o=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const u=n[i];let d=a[i].findIndex(h=>{if(r==="text")return We(e,h)===u;if(r==="value"){let c=ut(e,h);return c==null&&(c=We(e,h)),c===u}else if(r==="item")return or(e,h,u)});if(d==-1)break;o.push(d)}else{let i=a[0];for(let u=0;u<n.length;u++){const s=n[u];let d=i.findIndex(c=>{if(r==="text")return We(e,c)===s;if(r==="value"){let w=ut(e,c);return w==null&&(w=We(e,c)),w===s}else if(r==="item")return or(e,c,s)});if(d==-1)break;o.push(d);const h=ql(e,i[d]);if(!Array.isArray(h))break;i=h}}return o}function rr(e,n,a,l){if(a.length==0)return null;const o={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const u=a[i];let s=n[i];s<0&&s>=u.length&&(s=0);const d=u[s],h=We(e,d);if(o.texts.push(h),o.items.push(d),r==="text")o.values.push(h);else if(r==="value"){let c=ut(e,d);c==null&&(c=h),o.values.push(c)}else o.values.push(d)}else{let i=a[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=i.length&&(s=0);const d=i[s],h=We(e,d),c=Object.assign({},d);if(c.children=null,o.texts.push(h),o.items.push(c),r==="text")o.values.push(h);else if(r==="value"){let w=ut(e,d);w==null&&(w=h),o.values.push(w)}else o.values.push(c);if(!Array.isArray(d.children))break;i=d.children}}return o}function ir(e){return{text:e,value:e}}const dh=15,hh=300,mh=200,{create:gh}=se("picker-column");function ph(e){e.stopPropagation()}function yh(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&ph(e)}const bh=gh({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...Qo},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),l=t.computed(()=>({height:`${he(e.visibleItemCount)*+e.itemHeight}px`})),o=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=D=>D>=c.currIndex+8||D<=c.currIndex-8,u=t.computed(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${r.value}px`})),s=D=>`transform: rotate3d(1, 0, 0, ${-c.rotation*D}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+r.value}px, 0)`})),h=t.ref(null),c=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),w=D=>We(e,D),M=D=>ut(e,D),g=nr(),p=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},y=(D,_=!1,N=!1)=>{if(c.currIndex=D,_){const F=()=>{c.moving=!1,n("update:modelValue",D),n("change",D)};N?c.transitionEndTrigger=F:F()}},A=(D,_,N)=>{let F=D+c.startDistance;if(_==="end"){const C=-(e.source.length-1)*e.itemHeight;F<C&&(F=C),F>0&&(F=0);let z=Math.abs(Math.round(-F/e.itemHeight));const $=-z*e.itemHeight,k=`${(z+1)*c.rotation}deg`,T=N?N>0:!1;y(z,!0,T),m($,_,N,k)}else{let C=(-F/e.itemHeight+1)*c.rotation;const z=(e.source.length+1)*c.rotation,$=0;if(C=Math.min(Math.max(C,$),z),e.threeDimensional&&(C<$||C>z))return;m(F,null,void 0,`${C}deg`)}},m=(D=0,_,N=mh,F)=>{_==="end"?c.scrollTime=N:c.scrollTime=0,c.deg=F,c.scrollDistance=D},f=(D,_)=>(D=Math.abs(D/_)/.003*(D<0?-1:1),D),V=D=>{e.readonly||(c.startDistance=c.scrollDistance,g.start(D),c.transitionEndTrigger=null)},R=D=>{e.readonly||(c.moving=!0,g.move(D),g.isVertical()&&(c.moving=!0,yh(D,!0)),A(g.deltaY.value,"",0))},L=()=>{if(e.readonly)return;const D=g.deltaY.value,_=g.duration.value;if(_<hh&&Math.abs(D)>dh){const F=f(D,_);A(F,"end",e.swipeDuration)}else A(D,"end",0)};return t.watch(()=>e.modelValue,D=>{const _=c.currIndex-D;if(_!==0){c.currIndex=D,c.startDistance=c.scrollDistance;const N=_*e.itemHeight;A(N,"",0)}}),t.watch(()=>e.source,D=>{if(c.currIndex>=D.length){const F=(D.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,A(F,"end",0)}}),t.watch(()=>e.visible,D=>{D===!1&&p()}),t.onMounted(()=>{const D=-e.modelValue*e.itemHeight;A(D)}),{classes:a,styles:l,contentClasses:o,itemText:w,itemValue:M,...t.toRefs(c),roller:h,getItemText:We,onTouchStart:V,onTouchMove:R,onTouchEnd:L,isHidden:i,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:p}}}),vh={key:1,class:"fox-picker__item-tile"};function wh(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(i,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u+1)}]),style:t.normalizeStyle(e.setRollerStyle(u+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",vh,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Sh=Ne(bh,[["render",wh]]),{create:Ch,componentName:Th,scope:xh}=se("picker"),$h=Ch({components:{PickerColumn:Sh,Popup:it},props:{...Rl},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:l}=ve.useFoxI18n(xh),o=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(rh());t.watch(()=>e.visible,C=>{C&&i.value<=0&&setTimeout(()=>{if(r.value){const z=Ll(r.value);i.value=z.height,ih(i.value)}},50)});const u=t.computed(()=>({[Th]:!0})),s=ch(),d=t.ref("singleColumn");let h=t.ref([]);t.watch([()=>e.source,()=>e.params],async([C,z])=>{if(C){let $=await s.load("select",C,z);if($.length>0){let k=$[0];if(Array.isArray(k)){if(typeof k[0]=="string"){let T=$,U=[];T.forEach(j=>{let ee=j.map(X=>ir(X));U.push(ee)}),h.value=U}else h.value=$;d.value="multipleColumn"}else if(typeof k=="string"){let T=$,U=[],j=T.map(ee=>ir(ee));U.push(j),h.value=U,d.value="singleColumn"}else{const T=ql(e,k);Array.isArray(T)?(d.value="cascade",h.value=[$]):(d.value="singleColumn",h.value=[$])}}else h.value=[]}},{immediate:!0});const c=t.ref([]),w=t.ref(e.modelValue),M=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([C,z])=>{let $=fh(e,C,z,d.value);if(!Pe($,g.value)){g.value=$;let k=rr(e,$,z,d.value);k&&(c.value=k.texts,n("update:text",c.value))}});const p=t.ref(e.visible);t.watch(()=>e.visible,C=>{p.value=C});const y=C=>{let z=ar(e,C);return Le(z)?z.defaultIndex??0:0},A=C=>{if(e.readonly===!0)return!0;let z=ar(e,C);return Le(z)?z.readonly??!1:!1},m=(C,z)=>{let $=g.value;$[C]=z;for(let T=0;T<C;T++)$[T]==null&&($[T]=y(T));if(d.value==="cascade")for(let T=C+1;T<V.value.length;T++){let U=y(T);T<$.length?$[T]=U:$.push(U)}else for(let T=$.length;T<V.value.length;T++){let U=y(T);$.push(U)}g.value=$;let k=rr(e,$,h.value,d.value);k&&(c.value=k.texts,w.value=k.values,M.value=k.items)},f=C=>C<g.value.length?g.value[C]:y(C),V=t.computed(()=>{if(h.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return h.value;let C=[],z=0,$=h.value[0],k=0;for(;;){let T=$.map(ee=>{let X=Object.assign({},ee);return sh(e,X,null),X});C.push(T),z>=g.value.length?k=0:k=g.value[z],(k<0||k>=$.length)&&(k=0);let U=$[k];const j=ql(e,U);if(!Array.isArray(j))break;$=j,z++}return C}),R=t.computed(()=>he(+e.visibleItemCount-1)/2*i.value),L=(C=!1)=>{if(e.readonly===!0){C&&n("update:visible",!1);return}let z=h.value.length-1;for(;z>=0&&!(g.value[z]===null||g.value[z]===void 0);z--);if(z>=0&&m(z,0),d.value==="singleColumn"){let $=w.value.length>0?w.value[0]:"",k=M.value.length>0?M.value[0]:null;n("update:modelValue",$),n("update:text",c.value),n("change",$,k),C&&(n("confirm",$),n("update:visible",!1))}else n("update:modelValue",w.value),n("update:text",c.value),n("change",w.value,M.value),C&&(n("confirm",w.value),n("update:visible",!1))};return{...o,pickerLineRef:r,classes:u,columns:V,dataType:d,show:p,itemHeight:i,top:R,isReadonly:A,getIndex:f,change:(C,z)=>{if(m(C,z),e.isAutoBackFill){const $=!p.value;L($)}},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{L(!0)},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)}}}}),kh={class:"fox-picker__bar"},Dh={class:"fox-picker__title"},Nh={class:"fox-picker__bar__action"},Eh={class:"fox-picker__column"};function Vh(e,n,a,l,o,r){const i=t.resolveComponent("PickerColumn"),u=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(u,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",kh,[t.createElementVNode("view",Dh,t.toDisplayString(e.title),1),t.createElementVNode("view",Nh,[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",Eh,[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,{visible:e.show,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,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const Mt=Ne($h,[["render",Vh]]),sr={...Rl,placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function Ih(e,n,a){return{props:{...we,...De,...sr},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(l,o){const r=Ie(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:u}=xe({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return r.value}},l.prop??o.attrs.name),{toLocaleRefs:s}=ve.useFoxI18n(n),d=s(l,["placeholder"]),h=t.ref(!1),c=e,w=t.computed(()=>({[c]:!0})),M=Ee(t.computed(()=>l.textAlign),"textAlign"),g=t.computed(()=>({textAlign:M.value??"right"})),p=de(l,"modelValue",null,u),y=t.ref([]),A=t.computed(()=>Array.isArray(y.value)?y.value.join(" "):y.value),m=t.ref(!1),f=()=>{m.value=!0},V=T=>{m.value=T},R=T=>{p.value=T,u("update:modelValue",T)},L=T=>{y.value=T,Array.isArray(T)&&T.length===0?u("update:text",T[0]):u("update:text",T)},D=(T,U)=>{u("change",T,U)};let _=de(l,"hintText"),N=t.ref(!1);const F=T=>{let j=T.target.value;h.value=!0,pe(_.value)||(N.value=!0),u("focus",j,T)},C=T=>{setTimeout(()=>{N.value&&(N.value=!1),h.value=!1},0);let j=T.target.value;l.maxLength&&j.length>Number(l.maxLength)&&(j=j.slice(0,Number(l.maxLength))),m.value?setTimeout(()=>{u("blur",j,T)},50):u("blur",j,T)},z=()=>{u("clear","")},$=t.computed(()=>je(l.unit)>0),k=t.ref();return ye({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()}}),()=>{const T={class:w.value,style:g.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,clearable:ce(l.clearable),readonly:!0,value:A.value,onClick:f,onFocus:F,onBlur:C},U={};o.slots.prepend&&(U.prepend=o.slots.prepend),o.slots.append&&(U.append=o.slots.append),o.slots.prefix&&(U.prefix=o.slots.prefix),o.slots.suffix?U.suffix=o.slots.suffix:$.value?U.suffix=()=>[l.unit]:U.suffix=()=>t.h(B.ElIcon,{},{default:()=>t.h($e.ArrowDown)});const j=[],ee=t.h(B.ElInput,T,U);j.push(ee);const X={default:()=>j};o.slots.default&&(X.label=o.slots.default),o.slots.fixedTip&&(X.fixedTip=o.slots.fixedTip);const Q=xt(l,Rl);Q.disabled=!1,Q.readonly=r.value||i.value,Q.visible=m.value,Q["onUpdate:visible"]=V,Q.modelValue=p.value,Q["onUpdate:modelValue"]=R,Q.text=y.value,Q["onUpdate:text"]=L,Q.onClear=z,Q.onChange=D;const ae=t.h(Mt,Q);X.hide=()=>[ae];const E={...ke(l,sr),hintText:_.value,hintVisible:N.value,prop:`${l.prop??o.attrs.name}_item`};return t.h(a,E,X)}}}}const{componentName:Oh,create:Ah,scope:Fh}=se("picker-item"),zl=Ah(Ih(Oh,Fh,Se)),Bh={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}},ur=(e,n)=>n[e.textKey],Rt=(e,n)=>n[e.valueKey],Mh=(e,n)=>n[e.visibleKey],cr=(e,n)=>n[e.disabledKey],Rh=(e,n)=>{const a=n[e.doitKey];return ce(a)},Lh=(e,n)=>{const a=n[e.numKey];return a==null?null:he(n[a])},fr=(e,n,a)=>{const l=e.itemOptions;return typeof l=="function"?l(n,a):l||null};function _h(e,n,a,l=!1){return{props:{...Bh},emits:["update:modelValue","change"],setup(o,{slots:r,emit:i}){const u=t.computed(()=>{const P={};return P[`${e}`]=!0,P}),s=t.computed(()=>{const P={};return P[`${e}__titles`]=!0,P[`${o.direction}`]=!0,o.align==="left"&&(P.left=!0),o.scroll===!0&&(P.scrollable=!0),o.shape&&(P[`${o.shape}`]=!0),P}),d=t.computed(()=>({})),h=t.computed(()=>{if(!o.gutter)return 0;const P=me(o.gutter);return P<=0?0:P}),c=t.ref(o.modelValue);t.watch(()=>o.modelValue,P=>{c.value!==P&&(c.value=P,j(!1))});const w=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),M=t.computed(()=>{const P={};return p.value||(P.display="none"),P}),g=t.ref(),p=t.ref(!1),y=()=>{const P=!p.value;A(P)},A=P=>{const E=P;E?(p.value=E,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{p.value=!1},{once:!0}):setTimeout(()=>{p.value=!1},0))},m=t.ref(),f=t.ref([]),V=(P,E)=>{f.value[E]=P},R=P=>E=>{V(E,P)},L=(P,E)=>{const K=m.value,H=f.value;if(!K||!H||!H[P])return;const I=H[P];let Z=0;o.direction==="vertical"?Z=I.offsetTop-(K.offsetHeight-I.offsetHeight)/2:Z=I.offsetLeft-(K.offsetWidth-I.offsetWidth)/2,D(K,Z,E?0:.3,o.direction)},D=(P,E,K,H)=>{let I=0;const Z=H==="horizontal"?P.scrollLeft:P.scrollTop,W=K===0?1:Math.round(K*1e3/16);function x(){H==="horizontal"?P.scrollLeft+=(E-Z)/W:P.scrollTop+=(E-Z)/W,++I<W&&Pn(x)}x()},_=(P,E)=>{const K=Rt(o,P),H={};return H[`${e}__titles-item`]=!0,H.disabled=cr(o,P),H.active=K===c.value,o.shape&&(H[`${o.shape}`]=!0),o.ellipsis&&(H.ellipsis=!0),E&&(E.class&&(H[`${E.class}`]=!0),E.disabled===!0&&(H.disabled=E.disabled)),H},N=(P,E)=>{const K={};if(h.value>0){const H=Math.abs(h.value/2);o.direction==="vertical"?(K["margin-top"]=`${H}px`,K["margin-bottom"]=`${H}px`):(K["margin-left"]=`${H}px`,K["margin-right"]=`${H}px`)}return E&&E.style&&Object.assign(K,E.style),K},F=(P,E)=>`${Rt(o,P)??E}`,C=(P,E)=>{const K=Rt(o,P),H={};H[`${e}__popup-item`]=!0,H.disabled=cr(o,P),H.active=K===c.value,o.shape&&(H[`${o.shape}`]=!0);const I=fr(o,P,E);return I&&I.disabled===!0&&(H.disabled=I.disabled),H},z=t.computed(()=>(o.data??[]).filter(E=>Mh(o,E)!==!1)),$=(P,E)=>{const K=Rt(o,P);if(c.value==K)return;const H=()=>{c.value=K,o.scroll&&L(E,!1),i("update:modelValue",K),i("change",P,E)};if(typeof o.beforeChange=="function"){const I=o.beforeChange(P,E);jt(I)?I.then(Z=>{Z!==!1&&H()}).catch(()=>{H()}):I!==!1&&H()}else H()},k=(P,E)=>function(){$(P,E)},T=(P,E)=>{$(P,E),A(!1)},U=(P,E)=>function(){T(P,E)},j=P=>{if(!Array.isArray(o.data)||!o.scroll)return;const E=o.data.findIndex(K=>Rt(o,K)===c.value);E!==-1&&L(E,P)};t.watch(()=>o.data,()=>{setTimeout(j,0)}),t.onMounted(()=>{j(!0)});const ee=(P,E)=>{if(r.item)return r.item({item:P,index:E});const K=fr(o,P,E),H=[];if(r.text){const x=r.text({item:P,index:E});H.push(x)}else{const x=[];if(K?.doit===!0||Rh(o,P)){const G={class:[`${e}__titles-item-tip`,"doit"]},J=t.h("view",G);x.push(J)}const b=K?.num??Lh(o,P);if(b){let G="";const J=he(b);J>=100?G="99+":G=`${J}`;const S={class:[`${e}__titles-item-tip`,"num"]},Y=t.h("view",S,[G]);x.push(Y)}const q={class:`${e}__titles-item-text`};x.push(ur(o,P));const O=t.h("view",q,x);H.push(O)}const I={class:`${e}__titles-item-line`},Z=t.h("view",I);H.push(Z);const W={ref:R(E),class:_(P,K),style:N(P,K),key:F(P,E),onClick:k(P,E)};return t.h("view",W,H)},X=()=>{const P=r.default?r.default():[];if(P.length===0)for(let K=0;K<z.value.length;K++){const H=z.value[K],I=ee(H,K);P.push(I)}const E={ref:m,class:s.value,style:d.value};return t.h("view",E,P)},Q=()=>{let P=null;r.navigation?P=r.navigation():P=t.h(a);const E={class:`${e}__navigation`,onClick:y};return t.h("view",E,[P])},ae=()=>{const P=[];for(let K=0;K<z.value.length;K++){const H=z.value[K];let I=null;r.popupItem?I=r.popupItem({item:H,index:K}):I=ur(o,H);const Z={class:C(H,K),key:F(H,K),onClick:U(H,K)},W=t.h("view",Z,[I]);P.push(W)}const E={class:w.value,style:M.value};return t.h("view",E,P)};return()=>{const P=[],E=X();if(P.push(E),o.showQuickNavigation){const H=Q();P.push(H);const I=ae();P.push(I)}const K={class:u.value};return t.h("view",K,P)}}}}const{create:Ph,componentName:qh,scope:zh}=se("tabs-bar"),Cn=Ph(_h(qh,zh,mu,!1)),dr=Symbol("TabsStatesKey"),jh={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Hh(e,n,a=!1){return{props:{...jh},emits:["update:modelValue","change"],setup(l,{emit:o,slots:r}){const i=t.shallowRef([]),u={current:t.ref(l.modelValue??""),direction:t.ref(l.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:p=>{const y={name:p};u.current.value===p&&(y.loaded=!0),i.value.push(y),t.triggerRef(i)},remove:p=>{const y=i.value.findIndex(A=>A.name===p);y!==-1&&i.value.splice(y,1)},isLoaded:p=>{if(!l.lazy)return!0;const y=i.value.findIndex(A=>A.name===p);return y!==-1?u.current.value?i.value[y].loaded??!1:y===0:!1}};t.provide(dr,u);const s=p=>{const y=i.value.findIndex(A=>A.name===p);y!==-1&&(i.value[y].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([p,y])=>{u.current.value!==p&&(u.current.value=p??"",s(p??"")),u.direction.value!==y&&(u.direction.value=y)});const d=t.ref(null),h=t.ref(null),c=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let w=!0;const M=t.computed(()=>{const p={},y=i.value.length;if(y<=0)return p;const A=i.value.findIndex(m=>m.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(p.height=`${y*u.tabHeight.value}px`,A!==-1&&(p.transform=`translate(0, -${A*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(p.width=`${y*u.tabWidth.value}px`,A!==-1&&(p.transform=`translate(-${A*u.tabWidth.value}px, 0)`)),w&&(w=!1,p.transition="transform 0s ease"),p});let g=null;return t.onMounted(()=>{if(!d.value)return;const p=()=>{const y=ln(d.value);u.tabWidth.value=y.width,u.tabHeight.value=y.height};window.ResizeObserver&&(g=new window.ResizeObserver(p),g.observe(d.value)),p()}),t.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const p={class:`${e}__panes`,style:M.value,ref:h},y=t.h("view",p,[r?.default?.()]),A={class:c.value,ref:d};return t.h("view",A,[y])}}}}const{create:Kh,componentName:Yh,scope:Wh}=se("tabs-container"),Tn=Kh(Hh(Yh,Wh,!1)),Uh={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Gh(e,n,a){return{props:{...Uh},setup(l,{emit:o,slots:r}){const i=t.inject(dr);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?ce(l.loaded):i.isLoaded(l.paneKey));return()=>{let d=[];if(s.value)d=r?.default?.()??[];else if(r.empty)d=r.empty();else{const c={class:`${e}__empty-icon`},w=l.emptyIcon??a,M=t.h(w,c),g={class:`${e}__empty-text`},p=l.emptyText??"Loading",y=t.h("view",g,[p]),A={class:`${e}__empty`},m=t.h("view",A,[M,y]);d.push(m)}const h={class:`${e}`,style:u.value};return t.h("view",h,d)}}}}const{create:Xh,componentName:Zh,scope:Jh}=se("tabs-pane"),xn=Xh(Gh(Zh,Jh,mn)),Qh={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 em(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function hr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function mr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function tm(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function jl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function gr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function pr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Hl(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}class nm{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[l]);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(o,null,[a,l]))}}function lm(){const e=t.getCurrentInstance();return new nm(e.proxy)}function am(e,n,a,l){return{props:{...Qh},emits:["update:modelValue","change","loaded-data"],setup(o,{slots:r,emit:i}){const u=e,s=lm(),d=t.ref([]),h=t.computed(()=>d.value.filter(E=>tm(o,E)!==!1)),c=t.ref(-1),w=()=>{const E=o.modelValue,K=h.value.findIndex(H=>hr(o,H)===E);c.value!==K&&(c.value=K,o.scroll&&ae(K,!1))};t.watch([()=>o.modelValue,h],()=>{w()});const M=E=>c.value===E,g=E=>{if(E<0&&E>=h.value.length)return!1;const K=h.value[E],I=(Hl(o,K,E)??{}).status??jl(o,K);return M(E)||I},p=t.computed(()=>{const E={[u]:!0};return o.mode?E[`is-${o.mode}`]=!0:o.direction&&(E[`is-${o.direction}`]=!0),o.scroll&&(E["is-scroll"]=!0),E}),y=t.computed(()=>({})),A=(E,K,H,I,Z)=>{const W={[`${u}__step`]:!0};return Z&&(W[`${Z}`]=!0),W[`${m.value}`]=!0,I&&(W["is-doit"]=!0),E===c.value?W["is-active"]=!0:K==="done"?W["is-done"]=!0:K==="error"?W["is-error"]=!0:K==="half"?W["is-half"]=!0:H?W["is-disabled"]=!0:W["is-normal"]=!0,W},m=t.computed(()=>{if(o.mode==="simple")return"start";let E=o.align;return E||(o.direction==="vertical"?E="start":E="center"),E}),f=(E,K={})=>{const H={...K};return m.value==="start"&&E===h.value.length-1?H.flex="0 0 auto":o.step?o.direction==="vertical"?H.height=o.step:H.width=o.step:H.flex="1 1 100%",H},V=(E,K)=>{let H={};if(K<h.value.length-1){const I=K+1;g(K)&&g(I)?o.direction==="vertical"?H.height="100%":H.width="100%":H.opacity="0"}return H},R=E=>h.value.length-1===E,L=(E,K)=>{if(o.clickNavigatePolicy==="disabled"||(o.clickNavigatePolicy==="only-back"||o.clickNavigatePolicy==="only-back-reset")&&K>c.value||c.value===K)return;const H=c.value,I=K;c.value=K,o.scroll&&ae(K,!1);const Z=hr(o,E);i("update:modelValue",Z);const W={fromIndex:H,currentIndex:I,item:E,items:h.value,clickNavigatePolicy:o.clickNavigatePolicy};i("change",Z,W)},D=t.ref(!0),_=async(E,K)=>{try{const H=await s.load("stesbar",E,K);Array.isArray(H)&&(d.value=H),D.value=!1}catch(H){console.error("[FoxUI] Load StepsBar Data Fail",H),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>o.data,()=>o.params],async([E,K])=>{E&&_(E,K)},{immediate:!0});const N=(E,K,H,I,Z)=>{let W=null;if(r.icon)W=r.icon({item:E,index:K,status:I});else if(I==="done"){const b={};o.iconSize&&(b.width=o.iconSize,b.height=o.iconSize);const q=o.icon??a;W=t.h(q,b)}else{const b=H??`${K+1}`;W=t.h("span",{},[b])}const x={class:"fox-steps-bar__icon",onClick:()=>{Z||L(E,K)}};return t.h("view",x,[W])},F=(E,K,H)=>{const I=t.h("i",{class:"fox-steps-bar__line-inner",style:V(E,K)});return t.h("view",{class:"fox-steps-bar__line"},[I])},C=()=>{let E=null;if(r.markIcon)E=r.markIcon();else{const H={};o.iconSize&&(H.width=o.markIconSize,H.height=o.markIconSize);const I=o.markIcon??l;E=t.h(I,H)}return t.h("view",{class:"fox-steps-bar__mark"},[E])},z=(E,K,H,I,Z)=>{const W=[];if(!R(K)){const q=F(E,K);W.push(q)}const x=N(E,K,H,I,Z);W.push(x);const b={class:"fox-steps-bar__head"};return t.h("view",b,W)},$=(E,K,H,I)=>{let Z=null;r.main?Z=r.main({item:E,index:K,status:H}):Z=em(o,E);const W={class:"fox-steps-bar__main",onClick:()=>{I||L(E,K)}};return t.h("view",W,[Z])},k=(E,K,H)=>{let I=null;if(r.sub){I=r.sub({item:E,index:K,status:H});const Z={class:"fox-steps-bar__sub"};return t.h("view",Z,[I])}return null},T=(E,K)=>{const H=Hl(o,E,K)??{},I=H.status??jl(o,E);let Z=mr(o,E);H.disabled===!0&&(Z=!0),o.disabled===!0&&(Z=!0);const W=H.label??pr(o,E),x=[],b=N(E,K,W,I,Z);b&&x.push(b);const q=$(E,K,I,Z);if(q&&x.push(q),!R(K)){const te=F(E,K);te&&x.push(te)}const O=t.h("view",{class:"fox-steps-bar__head"},x),G=H.class,J=H.style??{};let S=gr(o,E);H.doit===!0&&(S=!0);const Y={ref:Q(K),class:A(K,I,Z,S,G),style:f(K,J)};return t.h("view",Y,[O])},U=(E,K)=>{const H=Hl(o,E,K)??{},I=H.status??jl(o,E);let Z=mr(o,E);H.disabled===!0&&(Z=!0),o.disabled===!0&&(Z=!0);const W=H.label??pr(o,E),x=[],b=o.layout;for(let S of b)if(S==="head"){const Y=z(E,K,W,I,Z);x.push(Y)}else if(S==="main"){const Y=$(E,K,I,Z);x.push(Y)}else if(S==="sub"){const Y=k(E,K,I);x.push(Y)}else if(S==="mark"){const Y=C();x.push(Y)}const q=H.class,O=H.style??{};let G=gr(o,E);H.doit===!0&&(G=!0);const J={ref:Q(K),class:A(K,I,Z,G,q),style:f(K,O)};return t.h("view",J,x)},j=t.ref(),ee=t.ref([]),X=(E,K)=>{ee.value[K]=E},Q=E=>K=>{X(K,E)},ae=(E,K)=>{const H=j.value,I=ee.value;if(!H||!I||!I[E])return;const Z=I[E];let W=0;o.direction==="vertical"?W=Z.offsetTop-(H.offsetHeight-Z.offsetHeight)/2:W=Z.offsetLeft-(H.offsetWidth-Z.offsetWidth)/2,P(H,W,K?0:.3,o.direction)},P=(E,K,H,I)=>{let Z=0;const W=I==="horizontal"?E.scrollLeft:E.scrollTop,x=H===0?1:Math.round(H*1e3/16);function b(){I==="horizontal"?E.scrollLeft+=(K-W)/x:E.scrollTop+=(K-W)/x,++Z<x&&Pn(b)}b()};return()=>{const E=[];if(o.mode==="simple")for(let H=0;H<h.value.length;H++){const I=h.value[H],Z=T(I,H);E.push(Z)}else for(let H=0;H<h.value.length;H++){const I=h.value[H],Z=U(I,H);E.push(Z)}const K={ref:j,class:p.value,style:y.value};return t.h("view",K,E)}}}}const{componentName:om,create:rm,scope:im}=se("steps-bar"),Kl=rm(am(om,im,So,Bu)),yr=new Date().getFullYear(),sm={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"},br=(e,n,a)=>{let l;if(Je(n)?l=n:typeof n=="string"&&je(n)>0?l=re.parser(n,a):l=new Date,l.toString()==="Invalid Date")return null;let o=Math.max(l.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),new Date(o)},um=(e,n,a)=>{Je(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),re.format(new Date(l),a)};let cm={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(yr-10,0,1),validator:Je},maxDate:{type:Date,default:()=>new Date(yr+10,11,31),validator:Je},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:fm,scope:dm}=se("date-picker"),hm=fm({components:{Picker:Mt},props:{...cm},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=ve.useFoxI18n(dm),l={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},o=t.ref(!1);t.watch(()=>e.visible,m=>{o.value=m});function r(m,f){return new Date(m,f,0).getDate()}const i=(m,f)=>{const V=e[`${m}Date`],R=V.getFullYear();let L=1,D=1,_=0,N=0;m==="max"&&(L=12,D=r(f.getFullYear(),f.getMonth()+1),_=23,N=59);const F=N;return f.getFullYear()===R&&(L=V.getMonth()+1,f.getMonth()+1===L&&(D=V.getDate(),f.getDate()===D&&(_=V.getHours(),f.getHours()===_&&(N=V.getMinutes())))),{[`${m}Year`]:R,[`${m}Month`]:L,[`${m}Date`]:D,[`${m}Hour`]:_,[`${m}Minute`]:N,[`${m}Seconds`]:F}},u=t.computed(()=>{if(!w.value)return[];const{maxYear:m,maxDate:f,maxMonth:V,maxHour:R,maxMinute:L,maxSeconds:D}=i("max",w.value),{minYear:_,minDate:N,minMonth:F,minHour:C,minMinute:z,minSeconds:$}=i("min",w.value);let k=[{type:"year",range:[_,m]},{type:"month",range:[F,V]},{type:"day",range:[N,f]},{type:"hour",range:[C,R]},{type:"minute",range:[z,L]},{type:"seconds",range:[$,D]}];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=(m,f,V)=>{if(!(f>m))return null;const R=[];for(;m<=f;)e.isShowChinese?R.push({text:m+l[V],value:m}):R.push({text:`${m}`,value:m}),V==="minute"?m+=e.minuteStep:m++;return R},d=t.computed(()=>{let m=[];return u.value.forEach(f=>{let V=s(f.range[0],f.range[1],f.type);V&&m.push(V)}),m}),h=(m,f)=>m==="year"?f.getFullYear():m==="month"?f.getMonth()+1:m==="day"?f.getDate():m==="hour"?f.getHours():m==="minute"?f.getMinutes():m==="seconds"?f.getSeconds():0,c=t.ref(),w=t.ref(null);t.watch(()=>e.modelValue,m=>{let f;if(typeof m=="string"?m.length==0?f=new Date:e.valueFormat?f=br(e,e.modelValue,e.valueFormat):f=br(e,m,sm[e.type]):Je(m)?f=m:f=new Date,!!f&&(!w.value||f.getTime()!==w.value.getTime())){w.value=f;let V=[];u.value.forEach(R=>{let L=h(R.type,f);V.push(L)}),c.value=V}},{immediate:!0});const M=m=>{if(e.type==="date"){const f=m[0],V=m[1]-1,R=Math.min(m[2],r(f,V+1));R!==m[2]&&(m[2]=R),w.value=new Date(f,V,R)}else if(e.type==="datetime"){const f=m[0],V=m[1]-1,R=Math.min(m[2],r(f,V+1)),L=m[3],D=m[4];R!==m[2]&&(m[2]=R),w.value=new Date(f,V,R,L,D)}else if(e.type==="time"){const f=m[0],V=m[1],R=m[2],L=w.value??new Date,D=new Date(L.getFullYear(),L.getMonth(),L.getDate(),f,V,R);w.value=D}else if(e.type==="year-month"){const f=m[0],V=m[1]-1;w.value=new Date(f,V)}else if(e.type==="month-day"){const V=(w.value??new Date).getFullYear(),R=m[0]-1,L=Math.min(m[1],r(V,R+1));L!==m[1]&&(m[1]=L);const D=new Date(V,R,L);w.value=D}else if(e.type==="datehour"){const f=m[0],V=m[1]-1,R=Math.min(m[2],r(f,V+1)),L=m[3];R!==m[2]&&(m[2]=R),w.value=new Date(f,V,R,L)}else if(e.type==="hour-minute"){const f=m[0],V=m[1],R=w.value??new Date,L=new Date(R.getFullYear(),R.getMonth(),R.getDate(),f,V);w.value=L}c.value=m};return{columns:d,dateIndexs:c,show:o,onChange:m=>{M(m)},onClose:()=>{o.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:m=>{M(m),o.value=!1;let f=w.value??new Date;if(e.valueFormat){let V=um(e,f,e.valueFormat);n("update:modelValue",V)}else n("update:modelValue",f);n("update:visible",!1),n("confirm",m)},onClear:()=>{n("clear")}}}});function mm(e,n,a,l,o,r){const i=t.resolveComponent("Picker");return t.openBlock(),t.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Yl=Ne(hm,[["render",mm]]),$n=(e,n,a)=>e.map(l=>{const{value:o="value",text:r="text",children:i="children"}=a??{},{[o]:u,[r]:s,[i]:d,...h}=l,c={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return c.children&&c.children.length&&(c.children=$n(c.children,c,a)),c}),vr=(e,n)=>{let a=0,l;for(;(l=e[a++])&&n(l)!==!0;)l.children&&l.children.length&&vr(l.children,n)},gm={topId:null,idKey:"id",pidKey:"pid",sortKey:""},pm=(e,n)=>{const a={...gm,...n||{}},{topId:l,idKey:o,pidKey:r,sortKey:i}=a;let u=[],s={};return e.forEach(d=>{d={...d};const{[o]:h,[r]:c}=d,w=s[c]=s[c]||[];!u.length&&c===l&&(u=w),w.push(d),d.children=s[h]||(s[h]=[])}),i&&Object.keys(s).forEach(d=>{s[d].length>1&&s[d].sort((h,c)=>h[i]-c[i])}),s=null,u};class wr{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=$n(n,null,this.config)}updateChildren(n,a){a?a.children=$n(n,a,this.config):this.nodes=$n(n,null,this.config)}getNodeByValue(n){let a;return vr(this.nodes,l=>{if(l.value===n)return a=l,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let l=this.nodes;for(;l&&l.length;){const o=l.find(r=>r.value===n[r.level]);if(!o)break;a.push(o),l=o.children}return a}isLeaf(n,a){const{leaf:l,children:o}=n,r=Array.isArray(o)&&!!o.length;return l||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:o}=n;return Array.isArray(o)&&!!o.length}}const{create:ym,scope:bm}=se("cascader-pane"),vm=ym({components:{Loading:mn,Checklist:So,TabsBar:Cn,TabsContainer:Tn,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:a}=ve.useFoxI18n(bm),l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),r=t.ref(!1),i=t.ref(e.modelValue),u=t.ref(new wr([],{})),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((m,f)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:f}))),c=new Map;let w;const M=async()=>{c.clear(),s.value=[],o.value=0,r.value=!1,w=null;let{options:m}=e;l.value.convertConfig&&(m=pm(m,l.value.convertConfig)),u.value=new wr(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),d.value&&!u.value.nodes.length&&await p({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:u.value.nodes,selectedNode:null}],g()},g=async()=>{const m=i.value;if(m===void 0||!u.value.nodes.length)return;if(m.length===0){o.value=0,s.value=[{nodes:u.value.nodes,selectedNode:null}];return}let f=m;if(d.value&&Array.isArray(m)&&m.length){f=[];let V=u.value.nodes.find(R=>R.value===m[0]);if(V){f=[V.value],r.value=!0;const R=await m.slice(1).reduce(async(L,D)=>{const _=await L;await p(_);const N=_?.children?.find(F=>F.value===D);return N&&f.push(D),Promise.resolve(N)},Promise.resolve(V));await p(R),r.value=!1}}f.length&&m===e.modelValue&&u.value.getPathNodesByValue(f).map((R,L)=>{o.value=L,A.handleNode(R,!0)})},p=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(u.value.isLeaf(m,d.value)||u.value.hasChildren(m,d.value))return;m.loading=!0;const f=m.root?null:m;let V=c.get(m);V||(V=new Promise(L=>{l.value.lazyLoad?.(m,L)}),c.set(m,V));const R=await V;Array.isArray(R)&&R.length>0?u.value.updateChildren(R,f):m.leaf=!0,m.loading=!1,c.delete(m)},y=m=>{const f=m.map(V=>V.value);i.value=f,n("change",f,m),n("update:modelValue",f,m)},A={async handleNode(m,f){const{disabled:V,loading:R}=m;if(!(!f&&V||!s.value[o.value])){if(u.value.isLeaf(m,d.value)){if(m.leaf=!0,s.value[o.value].selectedNode=m,s.value=s.value.slice(0,m.level+1),!f){const L=s.value.map(D=>D.selectedNode);y(L),n("pathChange",L)}return}if(u.value.hasChildren(m,d.value)){const L=m.level+1;if(s.value[o.value].selectedNode=m,s.value=s.value.slice(0,L),s.value.push({nodes:m.children||[],selectedNode:null}),o.value=L,!f){const D=s.value.map(_=>_.selectedNode);n("pathChange",D)}return}w=m,!R&&(await p(m),w===m&&(s.value[o.value].selectedNode=m,A.handleNode(m,f)))}},handleTabChange(m,f){w=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,f){return m.selectedNode&&m.selectedNode.value===f.value}};return t.watch([l,()=>e.options],()=>{M()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{m!==i.value&&(i.value=m,g())}),t.watch(()=>e.visible,m=>{m&&Array.isArray(i.value)&&i.value.length>0&&g()}),{panes:s,panesTitles:h,initLoading:r,tabsCursor:o,...A}}}),wm={class:"fox-cascader"},Sm={role:"menu",class:"fox-cascader__pane"},Cm=["aria-checked","aria-disabled","onClick"],Tm={class:"fox-cascader__item__title"},xm=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function $m(e,n,a,l,o,r){const i=t.resolveComponent("TabsBar"),u=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),h=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",wm,[t.createVNode(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(h,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=c=>e.tabsCursor=c)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(c,w)=>(t.openBlock(),t.createBlock(d,{"pane-key":w,key:w},{default:t.withCtx(()=>[t.createElementVNode("view",Sm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.nodes,M=>(t.openBlock(),t.createElementBlock("view",{key:M.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(c,M),disabled:M.disabled}]),"aria-checked":e.isSelected(c,M),"aria-disabled":M.disabled||void 0,role:"menuitemradio",onClick:g=>e.handleNode(M,!1)},[t.createElementVNode("view",Tm,t.toDisplayString(M.text),1),M.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,Cm))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(d,{key:1,"pane-key":0},{default:t.withCtx(()=>[xm]),_:1}))]),_:1},8,["modelValue"])])}const km=Ne(vm,[["render",$m]]),{create:Dm}=se("cascader-picker"),Nm=Dm({components:{FoxCascaderPane:km,FoxPopup:it},props:{...gl,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue),l=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),o=(i,u)=>{a.value=i,l.value=!1,n("change",i,u),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==a.value&&(a.value=i)}),{onChange:o,onPathChange:r,innerValue:a,innerVisible:l}}}),Em=["innerHTML"];function Vm(e,n,a,l,o,r){const i=t.resolveComponent("FoxCascaderPane"),u=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(u,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Em)):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 Wl=Ne(Nm,[["render",Vm]]),Im=Symbol.for("InnerPageScopeKey"),Om=Symbol.for("PageWrapperKey");function Am(e,n){return{props:{title:{type:[String]},customClass:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(a,l){t.provide(Im,!0);const o={};t.provide(Om,o);const r=s=>{typeof o.beforeClose=="function"&&o.beforeClose()},i=t.ref(!0),u=s=>{i.value=s};return()=>{const d={...l.attrs,title:a.title,"custom-class":a.customClass,draggable:a.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":r},h={};if(typeof l.slots.default=="function"){const c=l.slots.default();h.default=()=>c}return t.h(B.ElDialog,d,h)}}}}const{componentName:gp,create:Fm,scope:pp}=se("dialog-item"),Ul=Fm(Am()),{create:Bm}=se("toast"),Mm=Bm({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const o=()=>{a&&(clearTimeout(a),a=null)},r=()=>{l.mounted=!1},i=()=>{o(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},u=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,M=>{M&&i()});const s=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const M=me(e.iconSize);return t.h(e.icon,{width:M,height:M,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]),c=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:c,onAfterLeave:()=>{o(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Rm={key:1,class:"fox-toast-title"},Lm=["innerHTML"];function _m(e,n,a,l,o,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Rm,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Lm)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Gl=Ne(Mm,[["render",_m]]),Pm={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}},qm=(e,n,a)=>({props:{...Pm},emits:["change","refresh","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["pullingText","loosingText","loadingText"]),s=Pl(),d=t.ref(),h=Xo(d),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),w=t.computed(()=>({[e]:!0})),M=t.computed(()=>{switch(c.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""}}),g=t.computed(()=>({transitionDuration:`${l.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),p=t.computed(()=>{const D={};return l.headHeight!=50&&(D.height=Ae(l.headHeight)),D}),y=D=>{const _=+(l.pullDistance||l.headHeight);let N=D;return D>_&&(D<_*2?N=(D+_)/2:N=_+D/4),Math.round(N)},A=(D,_)=>{const N=+(l.pullDistance||l.headHeight);c.distance=D,_?c.status="loading":D===0?c.status="normal":D<N?c.status="pulling":c.status="loosing",o("change",{status:c.status,distance:D})},m=()=>c.status!=="loading"&&c.status!=="complete",f=()=>h.value==window?Zo()==0:h.value&&h.value.scrollTop==0,V=D=>{m()&&(f()?(s.start(D),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},R=D=>{m()&&c.moving&&(s.move(D),s.isVertical()&&s.state.deltaY>0&&c.isPullRefresh&&(D.cancelable&&D.preventDefault(),A(y(s.state.deltaY))))},L=()=>{c.moving=!1,c.isPullRefresh&&m()&&s.state.deltaY&&(c.status==="loosing"?(A(+l.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):A(0)),setTimeout(()=>{s.reset()},0)};return t.watch(()=>l.modelValue,D=>{D?A(+l.headHeight,!0):A(0)}),()=>{const D=[];let _=null;if(c.status==="loading"){if(_=r?.loading?.()??null,!_){const U={class:["fox-pull-refresh-container-topbox-icon"]};_=t.h(a,U)}}else c.status==="pulling"?_=r?.pulling?.()??null:c.status==="loosing"&&(_=r?.loosing?.()??null);_&&D.push(_);const N={class:["fox-pull-refresh-container-topbox-text"]},F=t.h("dive",N,[M.value]);D.push(F);const C={class:["fox-pull-refresh-container-topbox"],style:p.value},z=t.h("div",C,D),$={class:"fox-pull-refresh-container",style:g.value},k=t.h("div",$,[z,r?.default?.()]),T={ref:d,class:w.value};return _l()?Object.assign(T,{onTouchstart:V,onTouchmove:R,onTouchend:L}):Object.assign(T,{onMousedown:V,onMousemove:R,onMouseup:L}),t.h("div",T,[k])}}}),{componentName:zm,create:jm,scope:Hm}=se("pull-refresh"),Xl=jm(qm(zm,Hm,mn));function Km(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(a,{slots:l}){const o=e,r=t.computed(()=>({[o]:!0})),i=t.computed(()=>a.icon?{[`${o}__icon`]:!0,[`${o}__icon-${a.type}`]:!0}:{[`${o}__mark`]:!0,[`${o}__mark-${a.type}`]:!0}),u=t.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),s=t.computed(()=>{const h={[`${o}__text`]:!0,[`${o}__text-${a.type}`]:!0};return a.textPosition==="left"?h["is-left"]=!0:h["is-right"]=!0,h}),d=t.computed(()=>a.color?{color:a.color}:null);return()=>{let h=null;if(l.mark)h=l.mark()[0];else{const p={class:i.value,style:u.value};h=t.h(a.icon??"div",p)}const c={class:s.value,style:d.value},w=l.default?l.default():[],M=t.h("div",c,w),g={class:r.value};return a.textPosition==="right"?t.h("div",g,[h,M]):t.h("div",g,[M,h])}}}}const{componentName:Ym,create:Wm,scope:yp}=se("indicator"),Zl=Wm(Km(Ym));function Um(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(o)},500)}const Gm={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 Xm(e,n,a,l=!1){return{props:{...Gm},emits:["click"],setup(o,r){const i=t.ref(null),u=t.computed(()=>{const f={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(f[`${e}--${o.type??"default"}`]=!0),o.size&&(f[`${e}--${o.size}`]=!0),f}),s=t.computed(()=>{const f={},V=o.textColor??o.color;return V&&(f.color=V),f}),d=(f,V)=>{let R=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const L=o.highlightFilter;if(f.indexOf(L)!==-1){const _=f.replace(new RegExp(L,"g"),`<span>${L}</span>`);V.innerHTML=_,V.class["is-highlight"]=!0,R=t.h(o.tag,V)}}else if(typeof o.highlightFilter=="function"){const L=o.highlightFilter(f);L&&(V.innerHTML=L,V.class["is-highlight"]=!0,R=t.h(o.tag,V))}return R},h=f=>{r.emit("click",f)};let c="";const w=()=>{const f=i.value;if(!f)return;const V=f.clientWidth;Um(f,R=>{const L=f.innerHTML??"";pe(L)||R<V||(c?a?.show(f,L,{type:"text",id:c,showArrow:o.showArrow},!0):c=a?.show(f,L,{type:"text",showArrow:o.showArrow},!0)??"")})},M=()=>{c&&a?.hide(c)};let g=null;const p=f=>{g||(g=setTimeout(()=>{w(),g=null},o.showAfter??0))},y=f=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{M()},o.hideAfter??0)},A=()=>{const f=i.value;f&&(f.addEventListener("mouseover",p),f.addEventListener("mouseleave",y))},m=()=>{const f=i.value;f&&(f.removeEventListener("mouseover",p),f.removeEventListener("mouseleave",y))};return t.onMounted(()=>{!ce(o.showOverflowTooltip)||!a||A()}),t.onBeforeUnmount(()=>{!ce(o.showOverflowTooltip)||!a||m()}),()=>{const f={onClick:h,class:u.value,style:s.value,ref:i};let V=null;if(ce(o.numberFormat)&&typeof r.slots.default=="function"){const _=r.slots.default();if(Array.isArray(_)&&_.length===1){const N=_[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const F=he(o.digits),C=he(o.decimalLength),z=ce(o.autoPadding);let $=`${_[0].children}`,k=$.split("").reverse().join("");k=zt(k,C,z,F,o.separator),$=k.split("").reverse().join(""),o.highlightFilter!==void 0&&(V=d($,f)),V||(f.innerHTML=$,V=t.h(o.tag,f))}}}else{if(o.highlightFilter!==void 0&&typeof r.slots.default=="function"){const _=r.slots.default();if(Array.isArray(_)&&_.length===1){const N=_[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const F=`${_[0].children}`;V=d(F,f),V||(f.innerHTML=F,V=t.h(o.tag,f))}}}V||(V=t.h(o.tag,f,{default:r.slots.default}))}if(!o.mark&&!o.icon&&!r.slots.mark)return V;let L=null;if(o.icon){const _={[`${e}__mark-wrap`]:!0};o.type&&(_[`${e}__mark-wrap--${o.type}`]=!0);const N={},F=o.color;F&&(N.color=F);const C={class:_,style:N};L=t.h("view",C,t.h(o.icon))}else if(r.slots.mark){const _={[`${e}__mark-wrap`]:!0};o.type&&(_[`${e}__mark-wrap--${o.type}`]=!0);const N={},F=o.color;F&&(N.color=F);const C={class:_,style:N};L=t.h("view",C,{default:r.slots.mark})}else{const _={[`${e}__mark`]:!0};o.type&&(_[`${e}__mark--${o.type??"default"}`]=!0);const N={},F=o.color;F&&(N["background-color"]=F);const C={class:_,style:N};L=t.h("view",C)}const D={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}};return t.h("view",D,[L,V])}}}}const{componentName:Zm,create:Jm,scope:Qm}=se("text"),Jl=Jm(Xm(Zm,Qm,Be,!1)),eg={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:$e.ArrowUp}};function tg(e,n,a){return{props:{...eg},emits:["click","update:modelValue"],setup(l,{emit:o}){const r=t.computed(()=>{const c={[`${e}`]:!0};return l.disabled?c[`${e}__disabled`]=!0:c[`${e}__${l.type}`]=!0,c}),i=de(l,"modelValue"),u=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),h=()=>{o("update:modelValue",!i.value)};return()=>{const c=[];if(u.value){const p={class:s.value},y=t.h("span",p,[u.value]);c.push(y)}const w={class:d.value},M=a(l.icon,w);return M&&c.push(M),t.h("div",{class:r.value,onClick:h},c)}}}}const{componentName:ng,create:lg,scope:ag}=se("more-button"),Ql=lg(tg(ng,ag,(e,n)=>(e=e??$e.ArrowUp,t.h(B.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:og,create:rg,scope:vp}=se("tour"),ig=rg({components:{Close:$e.Close,ElPopover:B.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=og,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),r=t.computed(()=>`${a}`),i=t.computed(()=>{const{offset:g,maskWidth:p,maskHeight:y}=e,{width:A,height:m,left:f,top:V}=o.value,R=e.steps[l.active].offset??g,L=[f+A/2,V+m/2],D=Number(p||A),_=Number(y||m);return{width:`${D+ +R.left+R.right}px`,height:`${_+R.top+R.bottom}px`,top:`${L[1]-_/2-+R.top}px`,left:`${L[0]-D/2-+R.left}px`}}),u=g=>{g=="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=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,h=()=>{const g=document.querySelector(`${e.steps[l.active].target}`),p=Ll(g);o.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},c=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},w=()=>{e.closeOnClickOverlay&&c()},M=(g,p=0)=>{g&&h(),e.steps,l.active=p,l.showTour=g,l.showPopup=g};return t.onMounted(()=>{M(e.modelValue,e.current)}),t.watch(()=>e.modelValue,g=>{M(g)}),{...t.toRefs(l),classes:r,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:d,close:c,handleClickMask:w}}}),sg={key:0,class:"fox-tour__content"},ug={key:0,class:"fox-tour__content-top"},cg={class:"fox-tour__content-inner"},fg={class:"fox-tour__content-bottom"},dg={class:"fox-tour__content-bottom-init"},hg={class:"fox-tour__content-bottom-operate"},mg={key:1,class:"fox-tour__content fox-tour__content-tile"},gg={class:"fox-tour__content-inner"};function pg(e,n,a,l,o,r){const i=t.resolveComponent("Close"),u=t.resolveComponent("fox-button"),s=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:{height:"0"}},[h==e.active?(t.openBlock(),t.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",sg,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",ug,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...c)=>e.close&&e.close(...c))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",cg,t.toDisplayString(d.content),1),t.createElementVNode("div",fg,[t.createElementVNode("div",dg,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",hg,[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]=c=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(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]=c=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",mg,[t.createElementVNode("div",gg,t.toDisplayString(d.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const ea=Ne(ig,[["render",pg]]),Me=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ct=e=>e==null;class yg{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=_l()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=Pl(),l=(o,r,i,u)=>{this.updateMove({x:o,y:r})};this.touchstart=o=>{this.moving||(a.start(o),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=o=>{this.moving&&(a.move(o),l(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{l(a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},this.els.forEach(o=>{this.touchstart&&o.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Sr(e,n){return new yg(e,n)}var Cr;const ta=typeof window<"u";ta&&((Cr=window?.navigator)!=null&&Cr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let St=[];const Tr=e=>{const n=e;n.key==="Escape"&&St.forEach(a=>a(n))},bg=e=>{t.onMounted(()=>{St.length===0&&document.addEventListener("keydown",Tr),ta&&St.push(e)}),t.onBeforeUnmount(()=>{St=St.filter(n=>n!==e),St.length===0&&ta&&document.removeEventListener("keydown",Tr)})},na="fox-focus-trap.focus-after-trapped",la="fox-focus-trap.focus-after-released",vg="fox-focus-trap.focusout-prevented",xr={cancelable:!0,bubbles:!1},wg={cancelable:!0,bubbles:!1},$r="foxFocusAfterTrapped",kr="foxFocusAfterReleased",Sg=Symbol("foxFocusTrap"),aa=t.ref(),kn=t.ref(0),oa=t.ref(0);let Dn=0;const Dr=e=>{const n=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)n.push(a.currentNode);return n},Cg=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Nr=(e,n)=>{for(const a of e)if(!Cg(a,n))return a},Tg=e=>{const n=Dr(e),a=Nr(n,e),l=Nr(n.reverse(),e);return[a,l]},xg=e=>e instanceof HTMLInputElement&&"select"in e,tt=(e,n)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),oa.value=window.performance.now(),e!==a&&xg(e)&&n&&e.select()}};function Er(e,n){const a=[...e],l=e.indexOf(n);return l!==-1&&a.splice(l,1),a}const $g=()=>{let e=[];return{push:l=>{const o=e[0];o&&l!==o&&o.pause(),e=Er(e,l),e.unshift(l)},remove:l=>{e=Er(e,l),e[0]?.resume?.()}}},kg=(e,n=!1)=>{const a=document.activeElement;for(const l of e)if(tt(l,n),document.activeElement!==a)return},Vr=$g(),Dg=()=>kn.value>oa.value,Nn=()=>{aa.value="pointer",kn.value=window.performance.now()},Ir=()=>{aa.value="keyboard",kn.value=window.performance.now()},Ng=()=>(t.onMounted(()=>{Dn===0&&(document.addEventListener("mousedown",Nn),document.addEventListener("touchstart",Nn),document.addEventListener("keydown",Ir)),Dn++}),t.onBeforeUnmount(()=>{Dn--,Dn<=0&&(document.removeEventListener("mousedown",Nn),document.removeEventListener("touchstart",Nn),document.removeEventListener("keydown",Ir))}),{focusReason:aa,lastUserFocusTimestamp:kn,lastAutomatedFocusTimestamp:oa}),En=e=>new CustomEvent(vg,{...wg,detail:e}),{componentName:wp,create:Eg,scope:Sp}=se("focus-trap"),Vg=Eg({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[$r,kr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:a}){const l=t.ref();let o,r;const{focusReason:i}=Ng();bg(p=>{ce(e.trapped)&&!u.paused&&a("release-requested",p)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!e.loop&&!ce(e.trapped)||u.paused)return;const{key:y,altKey:A,ctrlKey:m,metaKey:f,currentTarget:V,shiftKey:R}=p,{loop:L}=e,D=y==="Tab"&&!A&&!m&&!f,_=document.activeElement;if(D&&_){const N=V,[F,C]=Tg(N);if(F&&C){if(!R&&_===C){const $=En({focusReason:i.value});a("focusout-prevented",$),$.defaultPrevented||(p.preventDefault(),L&&tt(F,!0))}else if(R&&[F,N].includes(_)){const $=En({focusReason:i.value});a("focusout-prevented",$),$.defaultPrevented||(p.preventDefault(),L&&tt(C,!0))}}else if(_===N){const $=En({focusReason:i.value});a("focusout-prevented",$),$.defaultPrevented||p.preventDefault()}}};t.provide(Sg,{focusTrapRef:l,onKeydown:s}),t.watch(()=>e.focusTrapEl,p=>{p&&(l.value=p)},{immediate:!0}),t.watch([l],([p],[y])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",c),p.addEventListener("focusout",w)),y&&(y.removeEventListener("keydown",s),y.removeEventListener("focusin",c),y.removeEventListener("focusout",w))});const d=p=>{a($r,p)},h=p=>a(kr,p),c=p=>{const y=t.unref(l);if(!y)return;const A=p.target,m=p.relatedTarget,f=A&&y.contains(A);ce(e.trapped)||m&&y.contains(m)||(o=m),f&&a("focusin",p),!u.paused&&ce(e.trapped)&&(f?r=A:tt(r,!0))},w=p=>{const y=t.unref(l);if(!(u.paused||!y))if(!e.escape&&ce(e.trapped)){const A=p.relatedTarget;!Kn(A)&&!y.contains(A)&&setTimeout(()=>{if(!u.paused&&ce(e.trapped)){const m=En({focusReason:i.value});a("focusout-prevented",m),m.defaultPrevented||tt(r,!0)}},0)}else{const A=p.target;A&&y.contains(A)||a("focusout",p)}};async function M(){await t.nextTick();const p=t.unref(l);if(p){Vr.push(u);const y=p.contains(document.activeElement)?o:document.activeElement;if(o=y,!p.contains(y)){const m=new Event(na,xr);p.addEventListener(na,d),p.dispatchEvent(m),m.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;va(f)||(tt(f),document.activeElement!==f&&(f="first")),f==="first"&&kg(Dr(p),!0),(document.activeElement===y||f==="container")&&tt(p)})}}}function g(){const p=t.unref(l);if(p){p.removeEventListener(na,d);const y=new CustomEvent(la,{...xr,detail:{focusReason:i.value}});p.addEventListener(la,h),p.dispatchEvent(y),!y.defaultPrevented&&(i.value=="keyboard"||!Dg())&&tt(o??document.body,!0),p.removeEventListener(la,d),Vr.remove(u)}}return t.onMounted(()=>{ce(e.trapped)&&M(),t.watch(()=>e.trapped,p=>{ce(p)?M():g()})}),t.onBeforeUnmount(()=>{ce(e.trapped)&&g()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:Ig,create:Og,scope:Tp}=se("floating-window"),Ag=Symbol.for("InnerPageScopeKey"),Fg=Symbol.for("PageWrapperKey"),Bg={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}},Mg=Og({inheritAttrs:!1,components:{FoxIcon:B.ElIcon,FocusTrap:Vg},props:{...Bg},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const a=Ig,l=t.ref(e.modelValue),o=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,S=>{l.value=S});const r=t.computed(()=>l.value===!1?!1:!_.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 S=["fox-floating-window"];return e.customClass&&S.push(e.customClass),S}),c=t.computed(()=>{const S={};return ct(i.value)?S.left="auto":S.left=Me(i.value),ct(u.value)?S.top="auto":S.top=Me(u.value),ct(s.value)?S.right="auto":S.right=Me(s.value),ct(d.value)?S.bottom="auto":S.bottom=Me(d.value),ct(e.zIndex)||(S["z-index"]=Me(e.zIndex)),ct(L.value)||(S.height=L.value),ct(D.value)||(S.width=D.value),S}),w=t.computed(()=>e.closeIcon??$e.Close),M=t.computed(()=>e.collapseIcon??$e.ArrowUp),g=t.computed(()=>e.collapseText??""),p=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??$e.ArrowRight:e.expandIcon??$e.ArrowLeft),y=t.computed(()=>e.expandText??e.title??"展开"),A=t.computed(()=>({[`${a}__collapse-text`]:!0})),m=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!_.value,"is-collapse":_.value})),f=t.ref(),V=t.ref(null),R=t.ref(null),L=t.computed(()=>Me(e.height)||""),D=t.computed(()=>Me(e.width)||""),_=t.ref(ce(e.collapse)),N=(S,Y=!0)=>{_.value!==S&&(_.value=S,S?E():K(),n("update:collapse",S),S&&typeof z.onHide=="function"?z.onHide():!S&&typeof z.onShow=="function"&&z.onShow())};t.watch(()=>e.collapse,S=>{N(S)});const F=()=>{C()},C=S=>{S=S??!_.value,N(S)};t.provide(Ag,!0);const z={setCollapse:N,setFixedNavVisible:S=>{Q.value=S}};t.provide(Fg,z);const $=()=>{typeof z.beforeClose=="function"?z.beforeClose(()=>{l.value=!1}):l.value=!1},k=t.ref(null),T=t.computed(()=>!e.fixedNavTeleport),U=t.computed(()=>{const S=["fox-floating-window__fixednav"];return e.expandClass&&S.push(e.expandClass),e.collapsePosition==="left"?S.push("is-left"):e.collapsePosition==="right"&&S.push("is-right"),S}),j=t.ref(""),ee=t.computed(()=>{const S={};return j.value?S.top=j.value:e.collapseTop&&(S.top=e.collapseTop),S}),X=t.ref(_.value),Q=t.computed({set:S=>{X.value=S},get:()=>l.value===!1?!1:X.value});let ae=null;const P=()=>{typeof ae=="function"&&(ae(),ae=null)},E=()=>{k.value&&k.value.classList.add("slide-in"),Q.value=!0,ae=()=>{k.value&&k.value.classList.remove("slide-in")}},K=()=>{k.value&&k.value.classList.add("slide-out"),ae=()=>{k.value&&k.value.classList.remove("slide-out"),Q.value=!1}},H=()=>{i.value=null,u.value=null,s.value=null,d.value=null},I={x:0,y:0},x=Sr(S=>{if(!f.value)return;const Y=f.value;if(H(),e.origin==="left-top")i.value=Y.offsetLeft,u.value=Y.offsetTop,I.x=i.value,I.y=u.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;i.value=Y.offsetLeft,d.value=te-(Y.offsetTop+Y.offsetHeight),I.x=i.value,I.y=d.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=te-(Y.offsetLeft+Y.offsetWidth),d.value=le-(Y.offsetTop+Y.offsetHeight),I.x=s.value,I.y=d.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;s.value=te-(Y.offsetLeft+Y.offsetWidth),u.value=Y.offsetTop,I.x=s.value,I.y=u.value}},S=>{if(!f.value)return;const Y=f.value;H(),e.origin==="left-top"?(i.value=I.x+S.x,u.value=I.y+S.y,Y.style.left=Me(i.value),Y.style.top=Me(u.value)):e.origin==="left-bottom"?(i.value=I.x+S.x,d.value=I.y-S.y,Y.style.left=Me(i.value),Y.style.bottom=Me(d.value)):e.origin==="right-bottom"?(s.value=I.x-S.x,d.value=I.y-S.y,Y.style.right=Me(s.value),Y.style.bottom=Me(d.value)):(s.value=I.x-S.x,u.value=I.y+S.y,Y.style.right=Me(s.value),Y.style.top=Me(u.value))}),b={x:0,y:0},G=Sr(S=>{k.value&&(b.x=k.value.offsetLeft,b.y=k.value.offsetTop)},S=>{if(!k.value)return;const Y=b.y+S.y;j.value=`${Y}px`}),J=()=>{if(f.value){const S=f.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");R.value=S}};return t.onMounted(()=>{if(e.draggable&&f.value){const S=[];V.value&&S.push(V.value),e.footerDraggable&&(J(),R.value&&S.push(R.value)),x.open(S)}e.collapse===!0&&N(e.collapse,!1),k.value&&G.open(k.value)}),t.onBeforeUnmount(()=>{e.draggable&&V.value&&x.close(),k.value&&G.close()}),{classes:h,styles:c,isShow:r,closeIcon:w,onClose:$,dialogRef:f,headerRef:V,onClickToggle:F,collapseIcon:M,collapseText:g,collapseTextClasses:A,collapseIconClasses:m,expandIcon:p,expandText:y,isShowFixedNav:Q,fixedNavRef:k,fixedNavClasses:U,fixedNavStyles:ee,onAnimationEnd:P,teleportDisabled:o,fixedNavTeleportDisabled:T}}}),Rg={ref:"headerRef",class:"fox-floating-window__header"},Lg={class:"fox-floating-window__title"},_g={class:"fox-floating-window__tools"},Pg={class:"fox-floating-window__body"},qg={class:"fox-floating-window__fixednav__text"};function zg(e,n,a,l,o,r){const i=t.resolveComponent("FoxIcon"),u=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",Rg,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Lg,t.toDisplayString(e.title),1),t.createElementVNode("div",_g,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...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",Pg,[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",qg,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ra=Ne(Mg,[["render",zg]]);function jg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:l}){return Ra(a.name,()=>a.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:xp,create:Hg,scope:$p}=se("domain-provider"),ia=Hg(jg()),Kg={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 Yg(e,n){return{inheritAttrs:!1,props:Kg,setup(a,{slots:l}){if(ot&&window.IntersectionObserver){const o=new WeakMap;let r=new Map;const i=(w,M)=>{if(h===null){r.set(w,{visible:null,callback:M});return}o.has(w)&&h.unobserve(w),o.set(w,{visible:null,callback:M}),h.observe(w)},u=w=>{if(h===null){r.delete(w);return}o.has(w)&&(o.delete(w),h.unobserve(w))};let s=a.initialVisibleObserverSize;Ri({acquire:()=>{const w=s>0;return s--,w},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:i,unobserve:u});let h=null;const c=(w,M,g)=>{h=new IntersectionObserver(p=>{for(let y of p){let A=!1;y.intersectionRatio>0&&(A=!0);const m=o.get(y.target);if(m)try{if(a.loadPolicy==="lazy"&&!A&&m.visible!==null)return;m.visible=A,m.callback(A)}catch(f){console.error(f)}}},{root:w,rootMargin:M,threshold:g}),r.forEach((p,y)=>{o.set(y,p),h?.observe(y)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([w,M])=>{if(M||!w||h)return;let g=null;typeof w=="string"?g=document.querySelector(w):g=w,g&&c(g,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:kp,create:Wg,scope:Dp}=se("rolling-provider"),sa=Wg(Yg()),Ug=[Qn,tl,nl,ll,rl,Se,ul,cl,It,fl,dl,hl,yl,bl,vl,wl,Sl,Tl,xl,$l,kl,pn,El,Vl,Il,Ol,Al,Fl,Bl,Sn,Ml,zl,Cn,Tn,xn,Kl,Mt,Yl,gn,Wl,Ul,hn,it,Gl,wn,vn,Xl,Ft,fn,Zl,Jl,Ql,ea,ra,ia,sa],Gg=new mi(Ug,[yi],"4.0.0");Object.defineProperty(v,"FoxAffix",{enumerable:!0,get:()=>B.ElAffix}),Object.defineProperty(v,"FoxAlert",{enumerable:!0,get:()=>B.ElAlert}),Object.defineProperty(v,"FoxAside",{enumerable:!0,get:()=>B.ElAside}),Object.defineProperty(v,"FoxAutoResizer",{enumerable:!0,get:()=>B.ElAutoResizer}),Object.defineProperty(v,"FoxAutocomplete",{enumerable:!0,get:()=>B.ElAutocomplete}),Object.defineProperty(v,"FoxAvatar",{enumerable:!0,get:()=>B.ElAvatar}),Object.defineProperty(v,"FoxBacktop",{enumerable:!0,get:()=>B.ElBacktop}),Object.defineProperty(v,"FoxBadge",{enumerable:!0,get:()=>B.ElBadge}),Object.defineProperty(v,"FoxBreadcrumb",{enumerable:!0,get:()=>B.ElBreadcrumb}),Object.defineProperty(v,"FoxBreadcrumbItem",{enumerable:!0,get:()=>B.ElBreadcrumbItem}),Object.defineProperty(v,"FoxButton",{enumerable:!0,get:()=>B.ElButton}),Object.defineProperty(v,"FoxButtonGroup",{enumerable:!0,get:()=>B.ElButtonGroup}),Object.defineProperty(v,"FoxCalendar",{enumerable:!0,get:()=>B.ElCalendar}),Object.defineProperty(v,"FoxCard",{enumerable:!0,get:()=>B.ElCard}),Object.defineProperty(v,"FoxCarousel",{enumerable:!0,get:()=>B.ElCarousel}),Object.defineProperty(v,"FoxCarouselItem",{enumerable:!0,get:()=>B.ElCarouselItem}),Object.defineProperty(v,"FoxCascader",{enumerable:!0,get:()=>B.ElCascader}),Object.defineProperty(v,"FoxCascaderPanel",{enumerable:!0,get:()=>B.ElCascaderPanel}),Object.defineProperty(v,"FoxCheckTag",{enumerable:!0,get:()=>B.ElCheckTag}),Object.defineProperty(v,"FoxCheckbox",{enumerable:!0,get:()=>B.ElCheckbox}),Object.defineProperty(v,"FoxCheckboxButton",{enumerable:!0,get:()=>B.ElCheckboxButton}),Object.defineProperty(v,"FoxCheckboxGroup",{enumerable:!0,get:()=>B.ElCheckboxGroup}),Object.defineProperty(v,"FoxCol",{enumerable:!0,get:()=>B.ElCol}),Object.defineProperty(v,"FoxCollapse",{enumerable:!0,get:()=>B.ElCollapse}),Object.defineProperty(v,"FoxCollapseItem",{enumerable:!0,get:()=>B.ElCollapseItem}),Object.defineProperty(v,"FoxCollapseTransition",{enumerable:!0,get:()=>B.ElCollapseTransition}),Object.defineProperty(v,"FoxColorPicker",{enumerable:!0,get:()=>B.ElColorPicker}),Object.defineProperty(v,"FoxConfigProvider",{enumerable:!0,get:()=>B.ElConfigProvider}),Object.defineProperty(v,"FoxContainer",{enumerable:!0,get:()=>B.ElContainer}),Object.defineProperty(v,"FoxDatePicker",{enumerable:!0,get:()=>B.ElDatePicker}),Object.defineProperty(v,"FoxDescriptions",{enumerable:!0,get:()=>B.ElDescriptions}),Object.defineProperty(v,"FoxDescriptionsItem",{enumerable:!0,get:()=>B.ElDescriptionsItem}),Object.defineProperty(v,"FoxDialog",{enumerable:!0,get:()=>B.ElDialog}),Object.defineProperty(v,"FoxDivider",{enumerable:!0,get:()=>B.ElDivider}),Object.defineProperty(v,"FoxDrawer",{enumerable:!0,get:()=>B.ElDrawer}),Object.defineProperty(v,"FoxDropdown",{enumerable:!0,get:()=>B.ElDropdown}),Object.defineProperty(v,"FoxDropdownItem",{enumerable:!0,get:()=>B.ElDropdownItem}),Object.defineProperty(v,"FoxDropdownMenu",{enumerable:!0,get:()=>B.ElDropdownMenu}),Object.defineProperty(v,"FoxEmpty",{enumerable:!0,get:()=>B.ElEmpty}),Object.defineProperty(v,"FoxFooter",{enumerable:!0,get:()=>B.ElFooter}),Object.defineProperty(v,"FoxForm",{enumerable:!0,get:()=>B.ElForm}),Object.defineProperty(v,"FoxFormItem",{enumerable:!0,get:()=>B.ElFormItem}),Object.defineProperty(v,"FoxHeader",{enumerable:!0,get:()=>B.ElHeader}),Object.defineProperty(v,"FoxIcon",{enumerable:!0,get:()=>B.ElIcon}),Object.defineProperty(v,"FoxImage",{enumerable:!0,get:()=>B.ElImage}),Object.defineProperty(v,"FoxImageViewer",{enumerable:!0,get:()=>B.ElImageViewer}),Object.defineProperty(v,"FoxInput",{enumerable:!0,get:()=>B.ElInput}),Object.defineProperty(v,"FoxInputNumber",{enumerable:!0,get:()=>B.ElInputNumber}),Object.defineProperty(v,"FoxLink",{enumerable:!0,get:()=>B.ElLink}),Object.defineProperty(v,"FoxMain",{enumerable:!0,get:()=>B.ElMain}),Object.defineProperty(v,"FoxMenu",{enumerable:!0,get:()=>B.ElMenu}),Object.defineProperty(v,"FoxMenuItem",{enumerable:!0,get:()=>B.ElMenuItem}),Object.defineProperty(v,"FoxMenuItemGroup",{enumerable:!0,get:()=>B.ElMenuItemGroup}),Object.defineProperty(v,"FoxOption",{enumerable:!0,get:()=>B.ElOption}),Object.defineProperty(v,"FoxOptionGroup",{enumerable:!0,get:()=>B.ElOptionGroup}),Object.defineProperty(v,"FoxPageHeader",{enumerable:!0,get:()=>B.ElPageHeader}),Object.defineProperty(v,"FoxPagination",{enumerable:!0,get:()=>B.ElPagination}),Object.defineProperty(v,"FoxPopconfirm",{enumerable:!0,get:()=>B.ElPopconfirm}),Object.defineProperty(v,"FoxPopover",{enumerable:!0,get:()=>B.ElPopover}),Object.defineProperty(v,"FoxPopper",{enumerable:!0,get:()=>B.ElPopper}),Object.defineProperty(v,"FoxProgress",{enumerable:!0,get:()=>B.ElProgress}),Object.defineProperty(v,"FoxRadio",{enumerable:!0,get:()=>B.ElRadio}),Object.defineProperty(v,"FoxRadioButton",{enumerable:!0,get:()=>B.ElRadioButton}),Object.defineProperty(v,"FoxRadioGroup",{enumerable:!0,get:()=>B.ElRadioGroup}),Object.defineProperty(v,"FoxRate",{enumerable:!0,get:()=>B.ElRate}),Object.defineProperty(v,"FoxResult",{enumerable:!0,get:()=>B.ElResult}),Object.defineProperty(v,"FoxRow",{enumerable:!0,get:()=>B.ElRow}),Object.defineProperty(v,"FoxScrollbar",{enumerable:!0,get:()=>B.ElScrollbar}),Object.defineProperty(v,"FoxSelect",{enumerable:!0,get:()=>B.ElSelect}),Object.defineProperty(v,"FoxSelectV2",{enumerable:!0,get:()=>B.ElSelectV2}),Object.defineProperty(v,"FoxSkeleton",{enumerable:!0,get:()=>B.ElSkeleton}),Object.defineProperty(v,"FoxSkeletonItem",{enumerable:!0,get:()=>B.ElSkeletonItem}),Object.defineProperty(v,"FoxSlider",{enumerable:!0,get:()=>B.ElSlider}),Object.defineProperty(v,"FoxSpace",{enumerable:!0,get:()=>B.ElSpace}),Object.defineProperty(v,"FoxStep",{enumerable:!0,get:()=>B.ElStep}),Object.defineProperty(v,"FoxSteps",{enumerable:!0,get:()=>B.ElSteps}),Object.defineProperty(v,"FoxSubMenu",{enumerable:!0,get:()=>B.ElSubMenu}),Object.defineProperty(v,"FoxSwitch",{enumerable:!0,get:()=>B.ElSwitch}),Object.defineProperty(v,"FoxTabPane",{enumerable:!0,get:()=>B.ElTabPane}),Object.defineProperty(v,"FoxTable",{enumerable:!0,get:()=>B.ElTable}),Object.defineProperty(v,"FoxTableColumn",{enumerable:!0,get:()=>B.ElTableColumn}),Object.defineProperty(v,"FoxTableV2",{enumerable:!0,get:()=>B.ElTableV2}),Object.defineProperty(v,"FoxTabs",{enumerable:!0,get:()=>B.ElTabs}),Object.defineProperty(v,"FoxTag",{enumerable:!0,get:()=>B.ElTag}),Object.defineProperty(v,"FoxTimePicker",{enumerable:!0,get:()=>B.ElTimePicker}),Object.defineProperty(v,"FoxTimeSelect",{enumerable:!0,get:()=>B.ElTimeSelect}),Object.defineProperty(v,"FoxTimeline",{enumerable:!0,get:()=>B.ElTimeline}),Object.defineProperty(v,"FoxTimelineItem",{enumerable:!0,get:()=>B.ElTimelineItem}),Object.defineProperty(v,"FoxTooltip",{enumerable:!0,get:()=>B.ElTooltip}),Object.defineProperty(v,"FoxTransfer",{enumerable:!0,get:()=>B.ElTransfer}),Object.defineProperty(v,"FoxTree",{enumerable:!0,get:()=>B.ElTree}),Object.defineProperty(v,"FoxTreeSelect",{enumerable:!0,get:()=>B.ElTreeSelect}),Object.defineProperty(v,"FoxTreeV2",{enumerable:!0,get:()=>B.ElTreeV2}),Object.defineProperty(v,"FoxUpload",{enumerable:!0,get:()=>B.ElUpload}),v.ActionsheetItem=Ml,v.ActionsheetPane=Sn,v.AutocompleteItem=xl,v.Broadcast=Yn,v.BroadcastKey=Te,v.CalendarItem=yl,v.CascaderItem=Tl,v.CheckboxItem=Il,v.Content=ll,v.DataItemsKey=dt,v.DateItem=hl,v.DateUtils=re,v.DialogItem=Ul,v.Domain=Jt,v.DomainKey=Re,v.DomainProvider=ia,v.FloatingWindow=ra,v.FooterBar=nl,v.FoxActionsheetItem=Ml,v.FoxActionsheetPane=Sn,v.FoxAutocompleteItem=xl,v.FoxCalendarItem=yl,v.FoxCascaderItem=Tl,v.FoxCheckboxItem=Il,v.FoxContent=ll,v.FoxDateItem=hl,v.FoxDialogItem=Ul,v.FoxDomainProvider=ia,v.FoxFloatingWindow=ra,v.FoxFooterBar=nl,v.FoxGroup=rl,v.FoxGroupSetting=Bl,v.FoxHeaderBar=tl,v.FoxHintText=It,v.FoxIndicator=Zl,v.FoxInfiniteLoading=vn,v.FoxInputItem=fl,v.FoxInputNumberItem=Sl,v.FoxItem=Se,v.FoxMapping=Ft,v.FoxMoneyItem=wl,v.FoxMoreButton=Ql,v.FoxOverLay=hn,v.FoxPage=Qn,v.FoxPickerItem=zl,v.FoxPopup=it,v.FoxPrice=fn,v.FoxPullRefresh=Xl,v.FoxRadioItem=Vl,v.FoxRateItem=Ol,v.FoxRollingProvider=sa,v.FoxRowItem=cl,v.FoxSearchBar=wn,v.FoxSelectItem=dl,v.FoxSlotItem=ul,v.FoxStepsBar=Kl,v.FoxSwitchItem=Al,v.FoxTableItem=El,v.FoxTableMappingColumn=$l,v.FoxTableRadioColumn=kl,v.FoxTableSetting=pn,v.FoxTabsBar=Cn,v.FoxTabsContainer=Tn,v.FoxTabsPane=xn,v.FoxText=Jl,v.FoxTimeItem=bl,v.FoxTimeSelectItem=vl,v.FoxToast=Gl,v.FoxTour=ea,v.FoxTreeSelectItem=Fl,v.Foxcalendarpicker=gn,v.Foxcascaderpicker=Wl,v.Foxdatepicker=Yl,v.Foxpicker=Mt,v.Group=rl,v.GroupSetting=Bl,v.HeaderBar=tl,v.HintText=It,v.Indicator=Zl,v.InfiniteLoading=vn,v.InputItem=fl,v.InputNumberItem=Sl,v.Item=Se,v.Mapping=Ft,v.MoneyItem=wl,v.MoreButton=Ql,v.OverLay=hn,v.Page=Qn,v.PickerItem=zl,v.Popup=it,v.Price=fn,v.PriorityPolicy=_e,v.PullRefresh=Xl,v.RadioItem=Vl,v.RateItem=Ol,v.RollingProvider=sa,v.RowItem=cl,v.SearchBar=wn,v.SelectItem=dl,v.SlotItem=ul,v.StepsBar=Kl,v.SwitchItem=Al,v.TableItem=El,v.TableMappingColumn=$l,v.TableRadioColumn=kl,v.TableSetting=pn,v.TabsBar=Cn,v.TabsContainer=Tn,v.TabsPane=xn,v.Text=Jl,v.TimeItem=bl,v.TimeSelectItem=vl,v.Toast=Gl,v.Tour=ea,v.TreeSelectItem=Fl,v.UniqueID=Ja,v.ValidateSchema=Fa,v.ValidateSchemaKey=qe,v.calendarpicker=gn,v.cancelRaf=Fr,v.cascaderpicker=Wl,v.clearNonNumber=Kr,v.clone=jn,v.compareTo=_n,v.createBroadcast=Wt,v.createValidateSchema=Gt,v.datepicker=Yl,v.debounce=Nt,v.debounceRef=ai,v.decimalLength=Na,v.default=Gg,v.defineBroadcast=Gr,v.defineConfigDomain=Ra,v.defineDataItem=_a,v.defineDomain=Un,v.defineItem=xe,v.definePageState=Pa,v.defineSimpleItem=Gn,v.deleteGlobalValidator=ei,v.disabledProperty=Ie,v.divide=Ln,v.excludeProps=ke,v.extend=at,v.floatData=Ur,v.getGlobalValidateCheckEvents=Ia,v.getGlobalValidateResetEvents=Aa,v.getPageContentAreaHeight=en,v.getPageContentAreaWidth=tn,v.getPageFooterAreaHeight=Vt,v.getPageHeaderAreaHeight=Et,v.getRootDomain=ht,v.hasSymbol=Sa,v.includeProps=xt,v.indexOf=Yr,v.installRules=La,v.integerLength=Da,v.isArray=Mr,v.isArrayLike=Ta,v.isBrowser=ot,v.isDate=Je,v.isESModule=Pr,v.isEmptyString=pe,v.isEqual=Pe,v.isFunction=qn,v.isHidden=Yt,v.isInnerPage=ii,v.isMap=Rr,v.isNil=Kn,v.isNumberString=ka,v.isObject=Le,v.isPlainObject=zn,v.isPromise=jt,v.isRegExp=$a,v.isSet=Lr,v.isString=va,v.isSubPage=si,v.isSymbol=_r,v.isTouch=_l,v.isWindow=Ca,v.lastIndexOf=Wr,v.makeArray=Hr,v.merge=xa,v.multiply=pa,v.negate=ya,v.nextTick=zr,v.numberFormat=zt,v.objectToString=wa,v.once=oi,v.overrideGlobalValidateHandler=Jr,v.picker=Mt,v.property=Ee,v.raf=Pn,v.readonlyProperty=Ve,v.setGlobalValidateCheckEvents=ti,v.setGlobalValidateHandler=Zr,v.setGlobalValidateMessages=li,v.setGlobalValidateResetEvents=ni,v.setGlobalValidator=Qr,v.throttle=Ma,v.toBoolean=ce,v.toNumber=he,v.toPadding=He,v.toPx=me,v.toPxDesc=Ae,v.toTypeString=Ht,v.toValue=de,v.tryTimes=Zt,v.typeOf=Kt,v.unNumberFormat=ba,v.updatePageState=Xn,v.useBroadcast=$t,v.useDomain=Ue,v.useExpose=ye,v.useInnerSize=el,v.usePageState=Qt,v.usePosition=Ga,v.useRawTouch=Pl,v.useRect=Ll,v.useSize=ln,v.useTouch=nr,v.valueLength=je,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|