@fox-js/foxui 4.0.1-35 → 4.0.1-37
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 +10 -10
- package/dist/index.esm.js +11345 -11052
- package/dist/index.umd.js +9 -9
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +227 -211
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(w,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(w=typeof globalThis<"u"?globalThis:w||self,t(w.FoxUI={},w.Vue,w.FoxValidator,w.FoxIconsVue,w.FoxI18n))})(this,function(w,t,
|
|
2
|
-
* @fox-js/foxui-base v4.0.0
|
|
3
|
-
*/const
|
|
1
|
+
(function(w,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(w=typeof globalThis<"u"?globalThis:w||self,t(w.FoxUI={},w.Vue,w.FoxValidator,w.FoxIconsVue,w.FoxI18n))})(this,function(w,t,et,le,re){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-base v4.0.0 Tue Apr 02 2024 16:03:14 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const Zt=window,Rs=typeof window<"u";function Os(){return typeof Zt<"u"?Zt.requestAnimationFrame||Zt.webkitRequestAnimationFrame||function(e){Zt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function qa(e){Rs?cancelAnimationFrame(e):clearTimeout(e)}const Xe=Os();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function Zt(e,n="0"){let l=0,o=-1;e[0]=="-"&&(l++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(l++,o=2,n=n.substring(1),n.length),e=we(e),n=we(n),[e,n]=Yn(we(e),we(n)),l==1&&(o==1?e=Wn(e):n=Wn(n));let a=Ea(e,n);return l?l==2?"-"+we(a):e.length<a.length?we(a.substring(1)):"-"+we(Wn(a)):we(a)}function Wn(e){let n="",l=e.length,o=e.split(".")[1],a=o?o.length:0;for(let s=0;s<l;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return Ea(n,r)}function we(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 Yn(e,n){let l=e.split("."),o=n.split("."),a=l[0].length,r=o[0].length;return a>r?o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""):l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""),a=l[1]?l[1].length:0,r=o[1]?o[1].length:0,(a||r)&&(a>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function Ea(e,n){[e,n]=Yn(e,n);let l="",o=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){l="."+l;continue}let r=parseInt(e[a])+parseInt(n[a])+o;l=r%10+l,o=Math.floor(r/10)}return o?o.toString()+l:l}var ke=(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))(ke||{});function At(e,n=0,l=ke.HALF_EVEN){if(l===ke.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+s,c=At(e,0,l),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,Da(a[1],r,o,l)?(o?"-":"")+Xn(r):(o?"-":"")+r;if(a[1]){if(a[1].length<n)return(o?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");s=a[1].substring(0,n);let i=a[1].substring(n);return i&&Da(i,s,o,l)&&(s=Xn(s),s.length>n)?(o?"-":"")+Xn(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function Da(e,n,l,o){if(!e||e===new Array(e.length+1).join("0")||o===ke.DOWN||!l&&o===ke.FLOOR||l&&o===ke.CEILING)return!1;if(o===ke.UP||l&&o===ke.FLOOR||!l&&o===ke.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(o){case ke.HALF_DOWN:return!1;case ke.HALF_UP:return!0;case ke.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Xn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let l=e.length-1,o="";for(let a=l;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function Qn(e,n){e=e.toString(),n=n.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),n[0]=="-"&&(l++,n=n.substr(1)),e=$t(e),n=$t(n);let o=0,a=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=o+a;if(e=$t(e.replace(".","")),n=$t(n.replace(".","")),e.length<n.length){let f=e;e=n,n=f}if(n=="0")return"0";let s=n.length,i=0,c=[],u=s-1,m="";for(let f=0;f<s;f++)c[f]=e.length-1;for(let f=0;f<2*e.length;f++){let h=0;for(let y=n.length-1;y>=u&&y>=0;y--)c[y]>-1&&c[y]<e.length&&(h+=parseInt(e[c[y]--])*parseInt(n[y]));h+=i,i=Math.floor(h/10),m=h%10+m,u--}return m=$t(zs(m,r)),l==1&&(m="-"+m),m}function zs(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 $t(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 Gn(e,n,l=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=we(n.replace(".","")),a>=0){let u=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(u==-1)e=we(e+new Array(a+1).join("0"));else if(a>u)e=e.replace(".",""),e=we(e+new Array(a-u+1).join("0"));else if(a<u){e=e.replace(".","");let m=e.length-u+a;e=we(e.substring(0,m)+"."+e.substring(m))}else a==u&&(e=we(e.replace(".","")))}let r=0,s=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let u=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(u+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=u,i="0."+new Array(u).join("0")}for(l=l+2;r<=l;){let u=0;for(;parseInt(c)>=parseInt(n);)c=Zt(c,"-"+n),u++;i+=u,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+we(At(i,l-2))}function Zn(e,n){return e=e.toString(),n=n.toString(),n=Jn(n),Zt(e,n)}function Jn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ia(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),xa(e),xa(n);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=Zn(e,Qn(n,At(Gn(e,n),0,ke.FLOOR)));return l+o}function xa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function qa(e,n){let l=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),l=!0),[e,n]=Yn(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?l?-1:1:l?1:-1;return 0}class se{value;static RoundingModes=ke;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[l,o]=n.split(/[eE]/);l=we(l);let a="";l[0]=="-"&&(a="-",l=l.substring(1)),l.indexOf(".")>=0?(o=parseInt(o)+l.indexOf("."),l=l.replace(".","")):o=parseInt(o)+l.length,l.length<o?n=a+l+new Array(o-l.length+1).join("0"):l.length>=o&&o>0?n=a+we(l.substring(0,o))+(l.length>o?"."+l.substring(o):""):n=a+"0."+new Array(-o+1).join("0")+l}return n}constructor(n="0"){this.value=se.validate(n)}getValue(){return this.value}static getPrettyValue(n,l,o){if(!(l||o))l=3,o=",";else if(!(l&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=se.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<l?(l=i,i=0):i-=l,s=n.substring(i,i+l)+(i<r-l&&i>=0?o:"")+s;return(a?"-":"")+s+n.substring(r)}getPrettyValue(n,l){return se.getPrettyValue(this.value,n,l)}static round(n,l=0,o=ke.HALF_EVEN){if(n=se.validate(n),isNaN(l))throw Error("Precision is not a number: "+l);return At(n,l,o)}round(n=0,l=ke.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new se(At(this.value,n,l))}static floor(n){return n=se.validate(n),n.indexOf(".")===-1?n:se.round(n,0,ke.FLOOR)}floor(){return this.value.indexOf(".")===-1?new se(this.value):new se(this.value).round(0,ke.FLOOR)}static ceil(n){return n=se.validate(n),n.indexOf(".")===-1?n:se.round(n,0,ke.CEILING)}ceil(){return this.value.indexOf(".")===-1?new se(this.value):new se(this.value).round(0,ke.CEILING)}static add(n,l){return n=se.validate(n),l=se.validate(l),Zt(n,l)}add(n){return new se(Zt(this.value,n.getValue()))}static subtract(n,l){return n=se.validate(n),l=se.validate(l),Zn(n,l)}subtract(n){return new se(Zn(this.value,n.getValue()))}static multiply(n,l){return n=se.validate(n),l=se.validate(l),Qn(n,l)}multiply(n){return new se(Qn(this.value,n.getValue()))}static divide(n,l,o){return n=se.validate(n),l=se.validate(l),Gn(n,l,o)}divide(n,l){return new se(Gn(this.value,n.getValue(),l))}static modulus(n,l){return n=se.validate(n),l=se.validate(l),Ia(n,l)}modulus(n){return new se(Ia(this.value,n.getValue()))}static compareTo(n,l){return n=se.validate(n),l=se.validate(l),qa(n,l)}compareTo(n){return qa(this.value,n.getValue())}static negate(n){return n=se.validate(n),Jn(n)}negate(){return new se(Jn(this.value))}}function Ma(e,n){return se.multiply(`${e}`,`${n}`)}function _n(e,n,l=8){return se.divide(`${e}`,`${n}`,l)}function eo(e,n){return e=`${e}`,n=`${n}`,se.compareTo(e,n)}function za(e){return se.negate(e)}function Jt(e,n=-1,l=!1,o=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",u=r.indexOf(".");u!=-1&&(i=r.substring(0,u),c=r.substring(u+1)),n!=-1&&(n<c.length?c=c.substring(0,n):l&&n>c.length&&(c=c.padEnd(n,"0")));let m;if(o>0){let f="",h=i.split("").reverse();for(let y=0;y<h.length;y++)f+=h[y]+((y+1)%o==0&&y+1!=h.length?a:"");c.length==0?m=`${s}${f.split("").reverse().join("")}`:m=`${s}${f.split("").reverse().join("")}.${c}`}else c.length==0?m=`${s}${i}`:m=`${s}${i}.${c}`;return m}function Pa(e){let n=`${e}`,l=n.charAt(0);l=="-"?n=n.substring(1):l="";let o=n.replace(/[^\d\.-]/g,"");return`${l}${o}`}const _e=typeof window<"u",Re=Ye;function La(e){return e==null}const _t=Array.isArray,Ps=e=>tn(e)==="[object Map]",Ls=e=>tn(e)==="[object Set]",ve=e=>e instanceof Date,en=e=>typeof e=="function",Fa=e=>typeof e=="string",Fs=e=>typeof e=="symbol",$e=e=>e!==null&&typeof e=="object",ct=e=>$e(e)&&en(e.then)&&en(e.catch),Ra=Object.prototype.toString,tn=e=>Ra.call(e),to=e=>tn(e)==="[object Object]",va=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Rs(e){return e.__esModule||va&&e[Symbol.toStringTag]==="Module"}const vs=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function et(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,o=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[l]??{},l++),typeof n!="object"&&(n={});l<o;l++)if(e[l]!==null&&e[l]!==void 0){let r=e[l];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(a===!0&&c&&typeof c=="object"){let u;Array.isArray(c)?u=i&&Array.isArray(i)?i:[]:u=i&&typeof i=="object"?i:{},n[s]=et(a,u,c)}else c!==void 0&&(n[s]=c)}}return n}function no(e,n,l=!1){if(!l)et(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let a in n){let r=e[a],s=n[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!to(s))continue;r=no(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}const o=Object.getOwnPropertySymbols(n);for(let a of o){let r=e[a],s=n[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!to(s))continue;r=no(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}}return e}const oo=vs?Promise.resolve():null;function Os(e,...n){oo!==null?n&&n.length>0?oo.then(()=>{e(n)}):oo.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function pe(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function me(e){return typeof e=="number"?e:Number(e)}const Ks={"[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 tt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):Ks[l]||"object"}function nn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Oa(e){return e&&typeof e=="object"&&"setInterval"in e}function Ka(e){let n=!!e&&"length"in e&&e.length,l=tt(e);return l==="function"||Oa(e)?!1:l==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ua(e,n){let l=+n.length,o=0,a=e.length;for(;o<l;o++)e[a++]=n[o];return e.length=a,e}function Us(e,n=[]){let l=n;return e!=null&&(Ka(Object(e))?Ua(l,typeof e=="string"?[e]:e):l.push(e)),l}function qe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let l=tt(e),o=tt(n);if(l!==o)return!1;if(l==="object"){let a=Object.keys(e),r=Object.keys(n);if(a.length!==r.length)return!1;for(let s=0;s<a.length;s++){let i=a[s],c=e[i],u=n[i];if(!qe(c,u))return!1}return!0}else if(l==="array"){if(e.length!==n.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],s=n[a];if(!qe(r,s))return!1}return!0}return!1}function Ha(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function ja(e){return ce(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ce(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Wa(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const l=n.indexOf(".");return l==-1?n.length:l}function Ya(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const l=n.indexOf(".");return l==-1?0:n.length-(l+1)}function Xa(e,n,l){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(l,"")}function lo(e,n=!0,l=!0){n?e=Xa(e,".",/\./g):e=e.replace(/\./g,""),l?e=Xa(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function Hs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(l=>{if(qe(e,l))return!0}):n.indexOf(e)}function js(e,n){if(typeof e=="object"||Array.isArray(e)){let l=n.reverse().findIndex(o=>{if(qe(e,o))return!0});return l!==-1&&(l=n.length-1-l),l}return n.lastIndexOf(e)}function ye(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function he(e,...n){const l={};return n.forEach(o=>{for(const a in o)l[a]=e[a]}),l}function ao(e,...n){const l=[];n.forEach(a=>{Reflect.apply([].push,l,Reflect.ownKeys(a))});const o={};for(const a in e)l.includes(a)||(o[a]=e[a]);return o}const Qa=(e,n,l)=>{const o=Object.assign({},e),a=Object.assign({},l);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(o[r]=n[a[r]]):n[r]&&(o[r]=n[r])}),o):e};function ro(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const nt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Oe=(e,n,l)=>Math.min(Math.max(e,n),l),so=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Se=Symbol.for("BroadcastKey");class io{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,l,o){this.parent=n,this.proxy=l,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const l=this.children.findIndex(o=>n===o);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,l,...o){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let a=!1;!n.name||n.name==="*"?a=!0:!n.name||n.name==="+"?(a=!1,n.name="*"):Ha(n.name)&&this.name&&n.name.test(this.name)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(a=!0);const r=[];if(a){const s=this.callbacks.get(l);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...o]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[l]=="function"){const c=Reflect.apply(i[l],i,[...o]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...n},l,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(n,l,...o){const a=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...n},l,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(n,l){this.callbacks.set(n,l)}}function on(e,n,l,o){const a=new io(n,e,l);if(o&&typeof o=="object")for(const r in o)a.on(r,o[r]);return a}function Ws(e,n,l){const o=l;if(o[Se])return o[Se];const a=t.inject(Se,null),r=new io(a,l,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[Se]=r,t.provide(Se,r),t.onUnmounted(()=>{r.destroy(),o[Se]=void 0}),r}function Tt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Se]??t.inject(Se,null):t.inject(Se,null)}const ot=e=>e.default??e;class Ys{error(n,l){const o=l,a=Tt(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const l=n,o=Tt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(n){const l=n,o=Tt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(n,l,o){Array.isArray(n)||(n=[n]);const a=o,r=Tt(o),s=l.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let Ga=new Ys;function Xs(e){Ga=e}function Qs(e,n){ot(Je).setValidator(e,n)}function Gs(e){ot(Je).deleteValidator(e)}let Za=["blur","clear"];function Zs(e){Za=e}function Ja(){return Za}let _a=["focus","change"];function Js(e){_a=e}function er(){return _a}function _s(e){ot(Je).messages(e)}function Vt(...e){const n=[];return e.forEach(l=>{l.forEach(o=>{const a=n.findIndex(r=>r.type===o.type);a!==-1&&n.splice(a,1),n.push(o)})}),n}function ln(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 Ke=Symbol("ValidateSchemaKey");class tr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,l,o){this.parent=n,this.descriptor=l,this.proxy=o,(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 l=ln(Vt(this.attrRules,this.rules)),o=[];for(let r in n){let s=n[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),o.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};o.push(c)}}this.attrRules=ln(o);const a=Vt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...l){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...l]);const a=Ga;return a&&typeof a[n]=="function"?Reflect.apply(a[n],a,[...l]):null}decorate(n,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,l,o=!1){o?ot(Je).setValidator(n,l):this.validators[n]=l}getValidator(n){let l=this.validators[n]??null;return l||(l=this.parent?.getValidator(n)??null),l}deleteValidator(n,l=!1){l?ot(Je).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,l=!1){if(l)return ot(Je).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const l=Vt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=ln(n):this.rules=ln([n]);const o=Vt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=Vt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(l.length>0){const a={[`${o}`]:l},r=this.getValue(),s={[`${o}`]:r},i=ot(Je),c=new i(a),u=this.proxy??s;return c.validate(s,{context:u}).then(f=>{if(f.pass)this.success();else{let h="error";Array.isArray(f.errors)&&f.errors.length>0&&(h=f.errors[0].message??h,f.errors=[f.errors[0]],f.errors[0].ref=u),this.error(h)}return f}).catch(f=>{const h=f.message??`${f}`;return this.error(h),f})}}return Promise.resolve({pass:!0})}}function an(e,n,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const a=l.valueName;l.validateHandler={getValue(r){return r[a]}}}return new tr(n,l,e)}const nr=Symbol("EventEmitterKey");class ei{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,l){let o=this.register.get(n);if(o&&Array.isArray(o)){let a=o.findIndex(r=>r===l);a!==-1&&o.splice(a,1)}}on(n,l){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(l)}emit(n,...l){const o=this.register.get(n);o&&o.forEach(a=>{try{Reflect.apply(a,null,[n,...l])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...l])}}function dt(e,n){let l=null;return function(...o){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...o])},n)}}function rn(e,n){let l=0;return function(...o){const a=new Date().getTime();a-l<n||(l=a,Reflect.apply(e,null,[...o]))}}function ti(e,n){const l=dt((o,a)=>{e=o,a()},n);return t.customRef((o,a)=>({get(){return o(),e},set(r){l(r,a)}}))}function ni(e){let n=!1;return function(...l){n||(n=!0,Reflect.apply(e,null,[...l]))}}function co(e,n,l,o=0,a=!0){let r=n,s=0;if(a){const c=e();if(s++,c||s>l)return}const i=()=>{const c=e();s++,!(c||s>l)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const xe=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class sn{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,l=[]){for(const o in n){const a=n[o];l.length>0&&l.indexOf(a)!==-1||(this._props[o]=a)}}has(n){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,l){this._props[n]=l}get(n,l){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?l:this.parent.get(n,l)}getForParent(n,l){return this.parent==null?l:this.parent.get(n,l)}getForSelf(n){return this._props[n]}getAll(n){const l=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const a=o._props[n];l.push(a)}o=o._parent}return l}}const oi=new sn;function ft(){return oi}function Ue(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[xe]??t.inject(xe,null):t.inject(xe,null)}const uo=Symbol("OriginalDateKey");function fo(e,n,l=[],o){const a=t.getCurrentInstance(),r=a?.proxy;let s=t.inject(xe,null);s===null&&(s=ft());const i=e||n.prop||n.name,c=new sn(i);c.parent=s;const u=b=>{r[uo]||h(b),c.set("modelValue",b)},m=()=>c.getForSelf("modelValue")??null,f=()=>r[uo]??null,h=b=>{const k={};et(!0,k,t.toRaw(b)),r[uo]=k};t.isReactive(n)||typeof n=="function"?t.watch(n,b=>{c.merge(b,l)},{immediate:!0}):c.merge(n,l),n.modelValue&&h(n.modelValue),r[xe]=c,t.provide(xe,c);let y=null,g=null;if(a!==null){const b=t.inject(Se,null);y=on(r,b,i,o),c.broadcast=y,r[Se]=y,t.provide(Se,y),r.broadcast=(d,p,...S)=>Reflect.apply(y.emit,y,[d,p,...S]);const k=t.inject(Ke,null);g=an(r,k,{componentName:""}),c.validateSchema=g,r[Ke]=g,t.provide(Ke,g),r[ut]=new Map,r.validate=(d=!0)=>{const p=[];let S=null;const C={deep:!1};if(d===!0)S={name:"*"};else if(Array.isArray(d)&&d.length>0){const A=d;S={name:N=>N?A.indexOf(N)!==-1:!1}}else if(d!=null&&typeof d=="object"){const A=d;if(C.ignoreHidden=A.ignoreHidden,Array.isArray(A.include)&&A.include.length>0){const N=A.include;S={name:T=>T?N.indexOf(T)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const N=A.exclude;S={name:T=>T?N.indexOf(T)===-1:!1}}else S={name:"*"}}if(S){const A=y?.emitToChildren(S,"validate",C);A&&Reflect.apply([].push,p,A)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(A=>{let N=[];return A.forEach(T=>{T.pass===!1&&Array.isArray(T.errors)&&(N=[...N,...T.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(d,p=!0,S=!1)=>{if(S===!0){Reflect.ownKeys(d).forEach(A=>{let N=String(A);const $=ar(c,N,{componentName:"",fieldName:N,pureDataValidate:!0},y,g);r[ut].set(N,$);const P=d[N];P&&$.validateSchema.setRule(P)});return}if(p){const C=Reflect.ownKeys(d),A={name:N=>C.includes(N)};y?.emitToChildren(A,"setNameValidateRules",d,!1)}},r.clearValidate=(d=!0)=>{let p=null;if(d===!0)p={name:"*"};else if(Array.isArray(d)&&d.length>0){const S=d;p={name:C=>C?S.indexOf(C)!==-1:!1}}else if(d!=null&&typeof d=="object"){const S=d;if(Array.isArray(S.include)&&S.include.length>0){const C=S.include;p={name:A=>A?C.indexOf(A)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const C=S.exclude;p={name:A=>A?C.indexOf(A)===-1:!1}}else p={name:"*"}}p&&y?.emitToChildren(p,"clearValidate",!1)},r.resetFields=d=>{const p=m();if(!p)return;const S={};if(et(!0,S,f()??{}),Array.isArray(d))d.forEach(C=>{p[C]=S[C]});else if(d&&Array.isArray(d.include))(d.include??[]).forEach(A=>{p[A]=S[A]});else if(d&&Array.isArray(d.exclude)){let C=d.exclude??[];Reflect.ownKeys(S).forEach(A=>{C.includes(A)||(p[A]=S[A])})}else Object.assign(p,S);r.clearValidate(d)},r.setModelValue=(d,p)=>{!p||p===i?u(d):y?.emitToChildren({name:p},"setModelValue",d)},r.getModelValue=()=>m()}return t.onUnmounted(()=>{c.destroy(),r[xe]=void 0,r[ut]&&(r[ut].clear(),r[ut]=void 0),y!==null&&(y.destroy(),r[Se]=void 0),g!==null&&(g.destroy(),r[Ke]=void 0)}),c}function or(e,n,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(xe,null);r===null&&(r=ft());const s=e||n.prop||n.name,i=new sn(s);return i.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{i.merge(c,l)},{immediate:!0}):i.merge(n,l),a[xe]=i,t.provide(xe,i),t.onUnmounted(()=>{i.destroy(),a[xe]=void 0}),i}function lr(e,n,l){const a=Ue(e)?.get("rules");if(!a)return;let r=a[l];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Ne(e,n,l){const a=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(Se,null),i=on(a,s,r,l);a[Se]=i,t.provide(Se,i),a.broadcast=(g,b,...k)=>Reflect.apply(i.emit,i,[g,b,...k]);const c=t.inject(Ke,null);e.fieldName=e.fieldName??r;const u=an(a,c,e);a[Ke]=u,t.provide(Ke,u),lr(a,u,r),a.validate=(g=null)=>{const b=[];let k=!1,d=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)d=!0,k=!0;else if(g&&typeof g=="object"){const p=g;p.ignoreHidden===!0&&nn(a.$el)?d=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),d=!0),k=p.deep??!1}else typeof g=="boolean"&&(k=g),d=!0;if(d){const p=u?.validate();b.push(p)}if(k){let p=null;const S={deep:!1};if(g===!0)p={name:"*"};else if(Array.isArray(g)&&g.length>0){const C=g;p={name:A=>A?C.indexOf(A)!==-1:!1}}else if(g!=null&&typeof g=="object"){const C=g;if(S.ignoreHidden=C.ignoreHidden,Array.isArray(C.include)&&C.include.length>0){const A=C.include;p={name:N=>N?A.indexOf(N)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const A=C.exclude;p={name:N=>N?A.indexOf(N)===-1:!1}}else p={name:"*"}}if(p){const C=i.emitToChildren(p,"validate",S);Reflect.apply([].push,b,C)}}return b.length==1?b[0]:b.length>1?Promise.all(b).then(p=>{let S=[];return p.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(S=[...S,...C.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=g=>u?.setRule(g),a.setNameValidateRules=(g,b=!1)=>{const k=g[r];if(k&&u?.setRule(k),b){const d={name:p=>Reflect.ownKeys(g).includes(p)};i.emitToChildren(d,"setNameValidateRules",g,!1)}},a.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(n??"")!==-1)&&u?.clear();let b=null;if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const k=g;b={name:d=>d?k.indexOf(d)!==-1:!1}}else if(g!=null&&typeof g=="object"){const k=g;if(Array.isArray(k.include)&&k.include.length>0){const d=k.include;b={name:p=>p?d.indexOf(p)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const d=k.exclude;b={name:p=>p?d.indexOf(p)===-1:!1}}else b={name:"*"}}b&&i.emitToChildren(b,"clearValidate",!1)};const m=new ei(a);a[nr]=m;const f=dt((g="validate")=>{g==="reset"?u.clear():u.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ja()).forEach(g=>{m.on(g,b=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:er()).forEach(g=>{m.on(g,b=>{f("reset")})}),t.onUnmounted(()=>{i.destroy(),a[Se]=void 0,u.destroy(),a[Ke]=void 0,m.destroy(),a[nr]=void 0}),{broadcast:i,validateSchema:u,emitEvent:(g,...b)=>{Reflect.apply(m.emit,m,[g,...b])},onEvent:(g,b)=>{Reflect.apply(m.on,m,[b])},offEvent:(g,b)=>{Reflect.apply(m.off,m,[b])}}}function ar(e,n,l,o,a){const r={},s=n??"",i={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};l.fieldName=s,l.validateHandler={getValue(m){return i.getValue()}};const c=an({},a,l);r.validate=(m=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const f=[];let h=!1,y=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)y=!0,h=!0;else if(m&&typeof m=="object"){const g=m;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),y=!0,h=g.deep??!1}else typeof m=="boolean"&&(h=m),y=!0;if(y){const g=c?.validate();f.push(g)}if(h){let g=null;const b={deep:!1};if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const k=m;g={name:d=>d?k.indexOf(d)!==-1:!1}}else if(m!=null&&typeof m=="object"){const k=m;if(Array.isArray(k.include)&&k.include.length>0){const d=k.include;g={name:p=>p?d.indexOf(p)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const d=k.exclude;g={name:p=>p?d.indexOf(p)===-1:!1}}else g={name:"*"}}if(g){const k=u.emitToChildren(g,"validate",b);Reflect.apply([].push,f,k)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(g=>{let b=[];return g.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(b=[...b,...k.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>c?.setRule(m),r.setNameValidateRules=m=>{const f=m[s];f&&c?.setRule(f)};const u=on(null,o,s,r);return{broadcast:u,validateSchema:c}}const ge=e=>e?`${ie(e)}px`:"";function ie(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let a=Number(e.substring(0,l)),r=1;if(_e){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return a*=r,a}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))*n;const o=Number(e);return isNaN(o)?0:o}const Xe="PageStateKey";function ze(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ie(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ie(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ie(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ie(e.right))),n}function mo(e,n,l={},o=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=ie(l.headerHeight??n.headerHeight??-1),e.headerPadding=ze(l.headerPadding??n.headerPadding),e.footerHeight=ie(l.footerHeight??n.footerHeight??-1),e.footerPadding=ze(l.footerPadding??n.footerPadding),e.contentPadding=ze(l.contentPadding??n.contentPadding),o){const c=l.height??n.height;c?e.height=ie(c,r):e.height=ie(r)-ie(s,r)-ie(i,r),e.width=ie(l.width??n.width??0,a)}}function rr(e,n={}){const l={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(o.safeAreaTop=ie(a.top),o.safeAreaBottom=ie(a.bottom),o.safeAreaLeft=ie(a.left),o.safeAreaRight=ie(a.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,u=e.get("footerBarHeight")??0;mo(o,r,n,!0,s,i,c,u);const m=t.reactive(o),f=e.getForParent(Xe);f&&(o.height=fn(e,f),o.width=mn(e,f),t.watch([()=>fn(e,f),()=>mn(e,f)],([y,g])=>{m.height=y,m.width=g}));const h=!f;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,g,b=-1,k=-1,d=0,p=0])=>{mo(m,g,n,h,b,k,d,p)}),e.set(Xe,m),m}function cn(e){return e.get(Xe)}function dn(e,n){if(n=n??e.get(Xe),n&&n.headerMounted){const l=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+l}return 0}function un(e,n){if(n=n??e.get(Xe),n&&n.footerMounted){const l=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+l}return 0}function fn(e,n){if(n=n??e.get(Xe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const l=dn(e,n),o=un(e,n);return n.height-l-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function mn(e,n){return n=n??e.get(Xe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function li(e,n){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[n,e]):!1}function ai(e){return!!e.getForParent(Xe)}var pn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(pn||{});function po(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,l=1,o){const a=Ue();return a==null?e:l===0?t.computed(()=>{const r=a.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(po(c,o))return c}const s=e.value;return po(s,o)?s:null}):t.computed(()=>{const r=e.value;return po(r,o)?r:a?.get(n)})}function Te(e){return Ae(e,"readonly",0,function(l){return pe(l)})}function Be(e){return Ae(e,"disabled",0,function(l){return pe(l)})}function De(e,n="modelValue",l){const o=t.toRef(e,n);let a=o.value;typeof l=="function"&&(a=l(o.value));const r=t.ref(a);return t.watch(o,s=>{if(typeof l=="function"){const i=l(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const sr=new Map,hn=new Map;let ho=null;function ri(e){ho=e}function ir(e,n,l){if(l){let o=hn.get(l);o||(o=new Map,hn.set(l,o)),o.set(e,n)}else sr.set(e,n)}function Qe(e,n,l){!l&&ho&&(l=ho(e)??void 0);let o=null;if(l){let a=hn.get(l);a&&(o=a.get(n))}return o||(o=sr.get(n)),o}function si(e,n){for(let l in e){const o=e[l];ir(l,o,n)}}function ii(e){hn.delete(e)}function ci(){return{top:0,left:0,bottom:0,right:0}}function di(e=0,n=0){if(_e){const l=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,a={width:l,height:o-ie(e,o)-ie(n,o)};return{rootWidth:l,rootHeight:o,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:-1,footerHeight:-1}}}class ui{packages;_version;get version(){return this._version}constructor(n,l){this.packages=n,this._version=l}install(n,l){l?.install!==!1&&this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=ft();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=rn(()=>{const i={...l},c=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=u,this.initPageLayout(i,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in l)o.indexOf(r)===-1&&a.set(r,l[r])}initPageLayout(n,l){const o=n.headerBarHeight??0,a=n.footerBarHeight??0,r=et({},ci(),n.safeAreaInset),s=di(o,a),i=et({},s.pageLayout,n.pageLayout);l=l??ft(),l.set("safeAreaInset",r),l.set("headerBarHeight",o),l.set("footerBarHeight",a),l.set("pageLayout",i),l.set("rootWidth",s.rootWidth),l.set("rootHeight",s.rootHeight)}setScopeGetter(n){ri(n)}setAPI(n,l,o){ir(n,l,o)}getAPI(n,l,o){return Qe(n,l,o)}batchSetAPI(n,l){si(n,l)}clearScopeAPI(n){ii(n)}getRootDomain(){return ft()}}function X(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=n,l.install=o=>{o.component(l.name,l)},t.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,t.defineComponent(l)}}}const fi=(e,n)=>{let l=document.body;const o=e.teleport||"body";o!="body"&&(Fa(o)?l=document.querySelector(o):l=e.teleport);const a=document.createElement("view"),r=n.name?n.name+"-":"",s=e.id||new Date().getTime();a.id=r+s;let i={};en(n.wrapper)?i=n.wrapper(l,a):i=n.wrapper;const c=t.createApp(i,e),u=n.components;return u&&u.forEach(m=>{c.use(m)}),l.appendChild(a),{instance:c.mount(a),unmount:()=>{c.unmount(),l.removeChild(a)}}},cr=(e,n)=>e?t.h(e,n):"",ue={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},fe={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},dr={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}},ur={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:!1},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}},fr=[];for(const e in ur)fr.push(e);function Ve(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}const mi=Symbol.for("InnerPageScopeKey"),pi=(e,n)=>({inheritAttrs:!0,props:{...ue,...dr,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},setup(l,o){const a=fo(l.name,l),r=t.inject(mi,!1);if(a){const m=rr(a,l);Ve({getPageContentHeight:()=>fn(a,m),getPageContentWidth:()=>mn(a,m),getPageHeaderHeight:()=>dn(a,m),getPageFooterHeight:()=>un(a,m)}),m&&r&&(m.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),u=(m,f=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(m,!0,f)};return t.watch([()=>l.rules,()=>l.pureDataRules],([m,f],[h,y])=>{if(m&&h){const g=t.toRaw(h),b=t.toRaw(m),k=b?Reflect.ownKeys(b):[];(g?Reflect.ownKeys(g):[]).forEach(p=>{k.includes(p)||(b[p]=[])}),u(b)}if(f&&y){const g=t.toRaw(y),b=t.toRaw(f),k=b?Reflect.ownKeys(b):[];(g?Reflect.ownKeys(g):[]).forEach(p=>{k.includes(p)||(b[p]=[])}),u(b,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const m=t.toRaw(l.rules);u(m)}if(l.pureDataRules){const m=t.toRaw(l.pureDataRules);u(m,!0)}}),{classes:s,styles:i}}}),{componentName:hi,create:gi,scope:H2}=X("page"),yi=gi(pi(hi));function ki(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const _=(e,n)=>{const l=e.__vccOpts||e;for(const[o,a]of n)l[o]=a;return l},go=_(yi,[["render",ki]]);function gn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function yo(e){const n=t.unref(e),l=window.getComputedStyle(n,null),o=parseFloat(l.getPropertyValue("padding-left")),a=parseFloat(l.getPropertyValue("padding-right")),r=parseFloat(l.getPropertyValue("padding-top")),s=parseFloat(l.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-a,height:n.clientHeight-r-s}}const bi=Symbol.for("InnerPageScopeKey"),Si=(e,n,l,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const s=Ue(),i=s?cn(s):null,c=t.inject(bi,!1),u=e,m=t.computed(()=>{const B={[u]:!0,[`${u}--border`]:a.border,[`${u}--fixed`]:a.fixed};return c||(B[`${u}--safe-area-inset-top`]=a.safeAreaInsetTop),B}),f=t.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${a.align}`]:!0})),h=a.height!==null&&a.height!==void 0?ie(a.height):null,y=t.computed(()=>{const B={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const L=ze(a.padding??i.headerPadding);return Object.assign(B,L),h&&(i.headerHeight=h),i.headerHeight>0&&(B.height=i.headerHeight),B.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,B.safeAreaTop>0&&(B.top=B.safeAreaTop+(L.top??0),B.height&&B.height>0&&(B.height=B.height+B.safeAreaTop)),B}if(h&&(B.height=h),a.padding){const L=ze(a.padding);Object.assign(B,L)}return B}),g=t.ref(null),b=()=>{if(i&&g.value&&!nn(g.value)){if(!o){const B=gn(g.value);i.headerAllHeight=B.height}return i.headerMounted=!0,!0}return!1};let k=null;t.onMounted(()=>{i&&(co(b,50,5,50,!0),window.ResizeObserver&&g.value&&(k=new window.ResizeObserver(()=>{b()}),k.observe(g.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,k&&(k.disconnect(),k=null))});const d=t.computed(()=>{const B={};return y.value.height!==null&&y.value.height!==void 0&&(B.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(B.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(B.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(B.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(B.paddingBottom=`${y.value.bottom}px`),B}),p=t.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function S(){r.emit("back")}function C(){r.emit("click-title")}function A(){r.emit("click-right")}function N(){r.emit("click-right-text")}const T=()=>{if(!a.leftShow)return null;const B=[];if(r.slots.left)B.push(r.slots.left());else{if(r.slots.leftIcon){const L=t.h("view",{class:"left-icon",onClick:S},[r.slots.leftIcon()]);B.push(L)}else if(a.leftIcon){const L=t.h("view",{class:"left-icon",onClick:S},[t.h(a.leftIcon)]);B.push(L)}if(a.leftText){const L=t.h("view",{class:"left-text",onClick:S},[a.leftText]);B.push(L)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__left"},B)},$=()=>{if(!a.rightShow)return null;const B=[];if(r.slots.right)B.push(r.slots.right());else{if(a.rightText){const L=t.h("view",{class:"right-text",onClick:N},[a.rightText]);B.push(L)}if(r.slots.rightIcon){const L=t.h("view",{class:"right-icon",onClick:A},[r.slots.rightIcon()]);B.push(L)}else if(a.rightIcon){const L=t.h("view",{class:"right-icon",onClick:A},[t.h(a.rightIcon)]);B.push(L)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__right"},B)},P=()=>{if(!a.titleShow)return null;const B=[],L=r.slots.default?r.slots.default():null;if(L)B.push(L);else{if(a.title){const F=t.h("view",{class:"title-text"},[a.title]);B.push(F)}if(r.slots.titleIcon){const F=t.h("view",{class:"title-icon",onClick:C},[r.slots.titleIcon()]);B.push(F)}else if(a.titleIcon){const F=t.h("view",{class:"title-icon",onClick:C},[t.h(a.titleIcon)]);B.push(F)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__title"},B)},V=()=>{const B=[],L=r.slots.bottom?r.slots.bottom():null;return L&&B.push(L),B.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},B)};return()=>{if(!p.value)return null;const B=[];if(r.slots.all)B.push(r.slots.all());else{const F=[],I=T();I&&F.push(I);const q=P();q&&F.push(q);const H=$();if(H&&F.push(H),F.length>0){const Y=t.h("view",{class:f.value},F);B.push(Y)}const x=V();x&&B.push(x)}if(B.length===0)return null;const L={class:m.value,style:d.value,ref:g};return t.h("view",L,B)}}}),{componentName:Ci,create:wi,scope:Ni}=X("header-bar"),ko=wi(Si(Ci,Ni,ne.Left,!1)),Bi=Symbol.for("InnerPageScopeKey");function Ai(e,n,l=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,a){const r=Ue(),s=r?cn(r):null,i=t.inject(Bi,!1),c=e,u=t.computed(()=>{const k={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(k[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),k}),m=o.height!==null&&o.height!==void 0?ie(o.height):null,f=t.computed(()=>{const k={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const d=ze(o.padding??s.footerPadding);return Object.assign(k,d),m&&(s.footerHeight=m),s.footerHeight>0&&(k.height=s.footerHeight),k.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,k.safeAreaBottom>0&&(k.bottom=k.safeAreaBottom+(d.bottom??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaBottom)),k}if(m&&(k.height=m),o.padding){const d=ze(o.padding);Object.assign(k,d)}return k}),h=t.ref(null),y=()=>{if(s&&h.value&&!nn(h.value)){if(!l){const k=gn(h.value);s.footerAllHeight=k.height}return s.footerMounted=!0,!0}return!1};let g=null;t.onMounted(()=>{s&&(co(y,50,5,50,!0),window.ResizeObserver&&(g=new window.ResizeObserver(()=>{y()}),g.observe(h.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,g&&(g.disconnect(),g=null))});const b=t.computed(()=>{const k={};return f.value.height!==null&&f.value.height!==void 0&&(k.height=ge(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(k.paddingTop=ge(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(k.paddingLeft=ge(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(k.paddingRight=ge(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(k.paddingBottom=ge(f.value.bottom)),k});return()=>{const k=a.slots.default?a.slots.default():[],d={ref:h,class:u.value,style:b.value};return t.h("view",d,k)}}}}const{componentName:$i,create:Ti,scope:Vi}=X("footer-bar"),bo=Ti(Ai($i,Vi,!1));function Ei(e,n){return{props:{padding:{type:[Object],required:!1}},setup(l){const o=Ue(),a=t.computed(()=>({[e]:!0})),r=o?cn(o):null,s=t.computed(()=>{const u={};if(o&&r){if(l.padding){const d=ze(l.padding);Object.assign(r.contentPadding,d)}const m=dn(o,r),f=un(o,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",m),console.debug("[content]footer height:",f),console.debug("[content]padding:",r.contentPadding),u.height=h;let y=(r&&r.contentPadding&&r.contentPadding.top)??-1;(y>=0||m>0)&&(y=y<0?0:y,u.paddingTop=`${m+y}px`);let g=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(g>=0||f>0)&&(g=g<0?0:g,u.paddingBottom=`${f+g}px`);const b=(r&&r.contentPadding&&r.contentPadding.left)??-1;b>=0&&(u.paddingLeft=`${b}px`);const k=(r&&r.contentPadding&&r.contentPadding.right)??-1;return k>=0&&(u.paddingRight=`${k}px`),u}if(l.padding){const m=ze(l.padding);m.left&&(u.paddingLeft=`${m.left}px`),m.top&&(u.paddingTop=`${m.top}px`),m.right&&(u.paddingRight=`${m.right}px`),m.bottom&&(u.paddingBottom=`${m.bottom}px`)}return u}),i=t.ref(null),c=dt(()=>{if(r&&i.value){const u=yo(i.value);r.contentInnerHeight=u.height,r.contentInnerWidth=u.width}},0);return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>s.value,()=>a.value],([])=>{c()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:Di,create:Ii,scope:j2}=X("content"),xi=Ii(Ei(Di));function qi(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const So=_(xi,[["render",qi]]),mt="GroupStateKey",mr=Symbol.for("GroupScopeKey");function yn(){return t.inject(mr,!1)}function kn(e=!0){t.provide(mr,e)}function Mi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const a=n[o];La(a)||(e[o]=a)})}function zi(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Mi(o,n);const a=t.shallowRef(o),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(mt,r),r}function Co(e,n,l=-1,o=-1,a=!1,r,s,i){const c=e.get(mt);if(!c)return;const u=e.get("groupLayout")??{};l===-1&&(l=u.column??1),o===-1&&(o=u.gutter??0),r||(r=u.minItemWidth??-1),s||(s=u.maxItemWidth??-1);const m=ie(r),f=ie(s);i||(i=u.type??"grid");const h=()=>{const y=n===""||n===-1,g=ie(n);let b=me(l);const k=ie(o);if(!y){let S=(g-(b-1)*k)/b;for(;f!==-1&&S>f;)b++,S=(g-(b-1)*k)/b;for(;m!==-1&&b>1&&S<m;)b--,S=(g-(b-1)*k)/b}let d=!1;const p=c.layout;p.value.width=n,p.value.column!==b&&(p.value.column=b,d=!0),p.value.gutter!==k&&(p.value.gutter=k,d=!0),p.value.type!==i&&(p.value.type=i,d=!0),d&&t.triggerRef(p)};if(a)h();else{const y=++c.passport;setTimeout(()=>{y===c.passport&&h()},50)}}function bn(e,n=!1){let l;return n?l=e.getForParent(mt):l=e.get(mt),l.layout}function Sn(e,n=!1){let l;return n?l=e.getForParent(mt):l=e.get(mt),l.order}function pr(e,n=1){if(n==="stretch")return-1;const l=me(n);return l===-1?100:100*l/e}function Cn(e,n,l=1,o=0,a){const r={};let s=0;a?s=ie(a):s=pr(n.column,l),s>0&&(r.width=`${s}%`);const i=pr(n.column,o);i>0&&(r["margin-left"]=`${i}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function wn(e,n,l=1,o=0){if(l==="stretch"){const c=e.index%n.column,u=c+(n.column-c);return e.index=e.index+(u-c),{"grid-column":`${c+1} / -1`}}let a=me(l);if(a===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=me(o)%n.column;let s=(e.index+r)%n.column,i=s+a;return i>n.column?(s=0,i=s+a,e.index=e.index+(n.column-s)+a):e.index=e.index+r+a,r>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const hr=Symbol("RollingStateKey");function Pi(e){t.provide(hr,e)}function Li(){return t.inject(hr,null)}function wo(e){let n=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(l.getPropertyValue("padding-top")),r=parseFloat(l.getPropertyValue("padding-bottom"));n=e.clientHeight-a-r}else n=e.offsetHeight;return n}function Fi(e){let n=wo(e);if(n<=0){const l=e.cloneNode(!0),o=e.offsetWidth;l.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),n=wo(l),document.body.removeChild(l)}return n}function Ri(e,n,l){if(e<=0)return"1fr";const o=(e-(n-1)*l)/n;return o>0?`${o}px`:"1fr"}const vi={...ue,...dr,...ur};function Oi(e,n,l){return{props:vi,emits:["update:collapse"],setup(o,a){const r=fo(o.name,o,fr),s=zi(r,{type:o.type}),i=yn();kn(!0);const c=o.rollingDisplay?Li():null,u=t.ref(null),m=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),f=t.computed(()=>i&&r?bn(r,!0).value:null),h=t.getCurrentInstance(),y=(K,G=!1)=>{const J=h?.proxy;J&&typeof J.setNameValidateRules=="function"&&J.setNameValidateRules(K,!0,G)};t.watch([()=>o.rules,()=>o.pureDataRules],([K,G],[J,te])=>{if(K&&J){const ee=t.toRaw(J),oe=t.toRaw(K),ae=oe?Reflect.ownKeys(oe):[];(ee?Reflect.ownKeys(ee):[]).forEach(be=>{ae.includes(be)||(oe[be]=[])}),y(oe)}if(G&&te){const ee=t.toRaw(te),oe=t.toRaw(G),ae=oe?Reflect.ownKeys(oe):[];(ee?Reflect.ownKeys(ee):[]).forEach(be=>{ae.includes(be)||(oe[be]=[])}),y(oe,!0)}},{deep:!0});const g=e,b=t.computed(()=>{const K={};if(K.height=q.value,o.width)o.width!=="auto"&&(K.width=ge(o.width));else{const G=i?Sn(r,!0):null;if(f.value&&G){if(f.value.type==="grid"){const J=wn(G,f.value,o.span,o.offset);Object.assign(K,J)}else if(f.value.type==="flow"){const J=Cn(G,f.value,o.span,o.offset,o.width);Object.assign(K,J)}}}return K}),k=t.computed(()=>{const K=s.layout.value.type;return K==="grid"||K==="flow"?{[`${g}--${K}`]:!0,[`${g}--${K}-justify-${o.justify}`]:!0,[`${g}--${K}-align-${o.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${K}`]:!0,[`${g}--gutter`]:!0}}),d=t.computed(()=>{if(s.layout.value.type==="grid"){let G="";if(o.columnWidth)G=`repeat(auto-fill, ${o.columnWidth})`;else{const J=Ri($.value,s.layout.value.column,s.layout.value.gutter);G=`repeat(${s.layout.value.column}, ${J})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":G}}}),p=t.toRef(o,"gutter"),S=t.toRef(o,"column"),C=t.computed(()=>i||m.value?!0:pe(o.isWrap)),A=[],N=K=>{A.push(K)},T=()=>{let K=A.length;A.splice(0,K)},$=t.ref(-1),P=K=>{const G=yo(K).width;G>0&&G!==$.value&&($.value=G)};Co(r,$.value,S.value,p.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([$,S,p],([K,G,J])=>{s.order.index=0,Co(r,K,G,J,!1,o.minItemWidth,o.maxItemWidth,o.type)});const V=t.computed(()=>H.value?o.expandText??"":o.collapseText??""),B=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),L=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!H.value,"is-collapse":H.value})),F=t.ref(),I=t.ref(),q=t.computed(()=>x.value||ge(o.height)||""),H=t.ref(!1),x=t.ref(""),Y=t.ref(!1);let j=-1;const Z=(K,G=!0)=>{const J=F.value;if(J&&H.value!==K){if(j=j===-1?Fi(J):j,Y.value=!0,G)if(J.style["will-change"]="height",J.ontransitionend=function(){J.ontransitionend=null,this.style["will-change"]="auto",K||(x.value="",Y.value=!1)},K){let te=0;o.collapseHeight?te=o.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&(te=I.value.offsetHeight),x.value=`${j}px`,t.nextTick(()=>{x.value=`${te}px`})}else x.value=`${j}px`;else if(K){let te=0;o.collapseHeight?te=o.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&(te=I.value.offsetHeight),x.value=`${te}px`}else Y.value=!1,x.value=`${j}px`;H.value=K,a.emit("update:collapse",K)}};t.watch(()=>o.collapse,K=>{Z(K)});const U=()=>{R()},R=K=>{K=K??!H.value,Z(K)};Ve({toggleCollapse:R,doLayout:()=>{A[0]&&(P(A[0]),Co(r,$.value,S.value,p.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let z=null,D=!0;const O=K=>{if(o.rules){const G=t.toRaw(o.rules);y(G)}if(o.pureDataRules){const G=t.toRaw(o.pureDataRules);y(G,!0)}if(_e&&(K&&Z(pe(o.collapse),!1),o.autoLayout&&Array.isArray(A)&&A.length>0)){const G=A[0];P(G),window.ResizeObserver&&(z=new window.ResizeObserver(()=>{P(G)}),z.observe(G))}},M=()=>{z?.disconnect(),z=null},v=!m.value||c?.acquire();v&&(u.value=m.value?!0:null),t.onMounted(()=>{if(v&&(O(D),D=!1),m.value&&c){let K=null,G=c.initialHeight;c.observe(F.value,J=>{if(J!==u.value)if(J)u.value=!0,H.value||(x.value=""),K=setTimeout(()=>{K=null,u.value!==!1&&(O(D),D=!1)},100);else{if(K!==null&&clearTimeout(K),u.value=!1,!H.value)if(D)x.value=c.initialHeight;else{let te=wo(F.value);te<=0?x.value=G:(x.value=`${te}px`,G=x.value)}D||M()}})}}),t.onUnmounted(()=>{z?.disconnect(),c&&c.unobserve(F.value)});const W=(K="right")=>{const G=[];if(V.value){const ee={class:B.value},oe=t.h("span",ee,[V.value]);G.push(oe)}const J={class:L.value},te=l(o.collapseIcon,J);return te&&G.push(te),G.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${K}`]:!0},onClick:U},G):null},Q=(K,G,J,te)=>{const ee={...k.value};return G===0&&(ee[`${g}__first`]=!0),J>=te-1&&(ee[`${g}__last`]=!0),t.h("div",{ref:N,key:`${G}`,class:ee,style:d.value},K)};return()=>{if(m.value&&u.value!==!0){const ee=o.tag||"div";return t.h(ee,{ref:F,prop:o.name,class:{[`${g}`]:!0,"is-collapse":Y.value},style:b.value},[])}s.order.index=0;const K=[];let G=0;if(a.slots.header){const ee={key:`${G++}`,ref:I,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},oe=t.h("div",ee,[a.slots.header()]);K.push(oe)}else{const ee=[],oe=o.collapsePosition==="left";if(oe&&o.showCollapse){const ae=W("left");ae&&ee.push(ae)}if(o.title||a.slots.title){if(o.showMark){const ae={class:{[`${g}__header-mark`]:!0}};o.markColor&&(ae.style={background:o.markColor});const Ie=t.h("div",ae);ee.push(Ie)}if(a.slots.title){const ae=t.h("div",{class:{[`${g}__header-title`]:!0}},[a.slots.title()]);ee.push(ae)}else if(o.title){const ae=t.h("div",{class:{[`${g}__header-title`]:!0}},[o.title]);ee.push(ae)}}if(a.slots.toolbar&&ee.push(a.slots.toolbar()),!oe&&o.showCollapse){const ae=W("right");ae&&ee.push(ae)}if(ee.length>0){const ae={key:`${G++}`,ref:I,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},Ie=t.h("div",ae,ee);K.push(Ie)}}T();const J=a.slots.default?a.slots.default():[],te=s.layout.value.type;if(te==="grid"){const ee=Q(J,G++,0,J.length);K.push(ee)}else if(te==="flow"){const ee=Q(J,G++,0,J.length);K.push(ee)}else for(let ee=0;ee<J.length;ee++){const oe=J[ee],ae=Q([oe],G++,ee,J.length);K.push(ae)}if(C.value){const ee=o.tag||"div";return t.h(ee,{ref:F,prop:o.name,class:{[`${g}`]:!0,"is-collapse":Y.value},style:b.value},[K])}else return K}}}}const{componentName:Ki,create:Ui,scope:Hi}=X("group"),No=Ui(Oi(Ki,Hi,(e=ne.RectUp,n={})=>t.h(e,n)));function ji(e){return e===window}const Wi=/matrix\((.+)\)/,gr=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(ji(n))return{x:0,y:0};let l=0,o=0,a=n;for(;a!==null;)l+=a.offsetLeft,o+=a.offsetTop,a=a.offsetParent;let r=0,s=0,i=0,c=0;for(a=n;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:u}=window.getComputedStyle(a);if(u){const m=Wi.exec(u);if(m){let h=m[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}a=a.parentNode}return l-=r,o-=s,l+=i,o+=c,{x:l,y:o}};class Yi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const l=this.watchedListeners.indexOf(n);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Xi{monitorRegister=new WeakMap;watch(n,l){let o=n.parentNode;const a=document.body.parentNode;for(;o&&o!==a;){let r=this.monitorRegister.get(o);r||(r=new Yi,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(l),o=o.parentNode}}unwatch(n,l){let o=n.parentNode;const a=document.body.parentNode;for(;o&&o!==a;){let r=this.monitorRegister.get(o);r&&(r.remove(l),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const yr=new Xi,kr={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:Qi,create:Gi}=X("price"),Zi=Gi({props:{...kr},setup(e){const n=t.computed(()=>({[Qi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ye(e.price)==0?"":Jt(e.price,e.decimalLength,!0,me(e.digits),e.separator)),a=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:n,showSymbol:l,intText:a,decimalText:r}}}),Ji=["innerHTML"],_i=["innerHTML"];function ec(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ji)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,_i)):t.createCommentVNode("",!0)],2)}const Ge=_(Zi,[["render",ec]]),{componentName:Bo,create:tc}=X("hint-text"),nc=tc({components:{Price:Ge},props:{...kr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const l=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),u=(B,L,F,I,q,H)=>{const x=document.documentElement.clientWidth||document.body.clientWidth,Y=document.documentElement.clientHeight||document.body.clientHeight,j=B.split("-");let Z=[];j[0]==="top"?Z=["top","bottom","right","left"]:j[0]==="bottom"?Z=["bottom","top","right","left"]:j[0]==="left"?Z=["left","top","bottom","right"]:j[0]==="right"&&(Z=["right","top","bottom","left"]);const U={top:null,right:null,bottom:null,left:null},R=[];for(let E=0;E<Z.length;E++){const z=Z[E];if(R[0]=z,j[1]&&(R[1]=j[1]),z==="top"){const D=L.y-H-e.arrowSize-e.offset;if(D>=0){U.top=D;let O=0;j[1]==="start"?O=L.x:j[1]==="end"?O=L.x+F-q:O=L.x+F/2-q/2;const M=x-O-q;M<0?(O+=M,f.value=-M):f.value=0,U.left=O<0?0:O;break}}else if(z==="bottom"){const D=L.y+I+e.arrowSize+e.offset;if(D+H<=Y){U.top=D;let O=0;j[1]==="start"?O=L.x:j[1]==="end"?O=L.x+F-q:O=L.x+F/2-q/2;const M=x-O-q;M<0?(O+=M,f.value=-M):f.value=0,U.left=O<0?0:O;break}}else if(z==="left"){const D=L.x-q-e.arrowSize-e.offset;if(D>=0){U.left=D;let O=0;j[1]==="start"?O=L.y:j[1]==="end"?O=L.y+I-H:O=L.y+I/2-H/2,U.top=O<0?0:O;break}}else if(z==="right"){const D=L.x+F+e.arrowSize+e.offset;if(D+q<=x){U.left=D;let O=0;j[1]==="start"?O=L.y:j[1]==="end"?O=L.y+I-H:O=L.y+I/2-H/2,U.top=O<0?0:O;break}}}return{bestPlacement:R.join("-"),bestInsetRect:U}},m=(B,L,F=10)=>{if(!_e||L===!1||!B)return;o.value=gr(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const I=c.value.offsetHeight,q=c.value.offsetWidth,{bestPlacement:H,bestInsetRect:x}=u(e.placement,o.value,a.value,r.value,q,I);s.value=H,l.value=x,i.value=!0},f=t.ref(0),h=dt(()=>{m(e.message,e.visible)},10),y=t.ref(e.visible);t.watch(()=>e.visible,B=>{y.value=B});const g=t.computed(()=>y.value&&b.value),b=t.ref(!0),k=dt(B=>{const L=B[0];L&&(b.value=L.isIntersecting)},10),d=new IntersectionObserver(k);t.watch([()=>e.message,()=>e.visible],([B,L])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),yr.watch(e.reference,h),d.observe(e.reference)}),t.onBeforeMount(()=>{yr.unwatch(e.reference,h),d.unobserve(e.reference),d.disconnect()});const p=t.computed(()=>{const B={[Bo]:!0};return s.value.startsWith("top")?B["is-top"]=!0:s.value.startsWith("right")?B["is-right"]=!0:s.value.startsWith("bottom")?B["is-bottom"]=!0:s.value.startsWith("right")&&(B["is-right"]=!0),e.size==="small"?B["is-small"]=!0:e.size==="large"&&(B["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(B[`${e.customClass}`]=!0),B}),S=t.computed(()=>{const B={};l.value.top!==null&&(B.top=`${l.value.top}px`),l.value.right!==null&&(B.right=`${l.value.right}px`),l.value.bottom!==null&&(B.bottom=`${l.value.bottom}px`),l.value.left!==null&&(B.left=`${l.value.left}px`),e.autoFit&&(B["min-width"]=`${a.value}px`);const L=document.documentElement.clientWidth||document.body.clientWidth;return B["max-width"]=`${L}px`,i.value&&(B.opacity="1"),e.transition||(B.transition="none"),e.zIndex&&(B["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(B,e.customStyle),B}),C=t.computed(()=>{const B=[`${Bo}__content`];return e.customTextClass&&B.push(e.customTextClass),B}),A=t.computed(()=>{const B={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(B,e.customTextStyle),B}),N=t.computed(()=>({[`${Bo}__arrow`]:!0})),T=t.computed(()=>{const B={};return e.showArrow?(B.width=`${e.arrowSize}px`,B.height=`${e.arrowSize}px`,s.value==="top"?(B.left="50%",B.bottom=`-${e.arrowSize}px`,B.transform=" translate(-50%, 0%)"):s.value==="top-start"?(B.left=`${e.arrowOffset+f.value}px`,B.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(B.right=`${e.arrowOffset-f.value}px`,B.bottom=`-${e.arrowSize}px`):s.value==="right"?(B.left=`-${e.arrowSize}px`,B.top="50%",B.transform=" translate(0%, -50%)"):s.value==="right-start"?(B.left=`-${e.arrowSize}px`,B.top=`${e.arrowOffset}px`):s.value==="right-end"?(B.left=`-${e.arrowSize}px`,B.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(B.left="50%",B.top=`-${e.arrowSize}px`,B.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(B.left=`${e.arrowOffset+f.value}px`,B.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(B.right=`${e.arrowOffset-f.value}px`,B.top=`-${e.arrowSize}px`):s.value==="left"?(B.right=`-${e.arrowSize}px`,B.top="50%",B.transform=" translate(0%, -50%)"):s.value==="left-start"?(B.right=`-${e.arrowSize}px`,B.top=`${e.arrowOffset}px`):s.value==="left-end"&&(B.right=`-${e.arrowSize}px`,B.bottom=`-${e.arrowOffset}px`),B):{display:"none"}}),$=t.computed(()=>g.value&&e.closeOnClick),P=t.computed(()=>{const B={};return e.zIndex&&(B["z-index"]=`${e.zIndex}`),B});return{show:g,tipRef:c,classes:p,styles:S,textClasses:C,textStyles:A,arrowClasses:N,arrowStyles:T,overlayShow:$,overlayStyle:P,onClickOverlay:()=>{y.value=!1,n.emit("update:visible",!1)}}}});function oc(e,n,l,o,a,r){const s=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]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},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(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.message),1)],64))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const br=_(nc,[["render",oc]]);class Nn{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 Ao={},lc=new Nn,pt=new Map,Bn=e=>{if(e){const n=document.getElementById(e);pt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of pt.keys()){const l=document.getElementById(n);l&&l.parentNode?.removeChild(l)}pt.clear()}},ac=e=>{e.unmount=Bn;const n=document.getElementById(e.id);if(n){const l=pt.get(e.id);l?e={...Ao,...l,...e}:e={...Ao,...e},e.transition=!1;const o=t.createVNode(br,e);return t.render(o,n),e.id}},rc=e=>{e.unmount=Bn;let n=e.id??`hinttext_${lc.get()}`;e={...Ao,...e},e.id=n,pt.set(n,e);const l=document.createElement("div");l.id=e.id;const o=t.createVNode(br,e);return t.render(o,l),document.body.appendChild(l),n},sc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},lt={show(e,n,l={},o=!0){sc(n);const a=l.id;return a&&pt.has(a)?ac({...l,message:n,reference:e}):(o&&Bn(),rc({...l,message:n,reference:e}))},hide(e){Bn(e)},install(e){e.config.globalProperties.$hintText=lt}},{componentName:Sr,create:ic}=X("item"),cc=ic({inheritAttrs:!0,props:{...ue,...fe},emits:["appear","disappear"],setup(e,n){const l=e.prop??n.attrs.name;Ne({componentName:Sr,validate:!1},l);const o=Ue(),a=yn();kn(!1);const r=t.computed(()=>a&&o?bn(o,!1).value:null),s=Sr,i=t.ref(null),c=t.computed(()=>{const K={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:pe(e.hasBorder)};if(K[e.errorMarkClass]=!!L.value,K[e.warnMarkClass]=!!V.value,K[e.infoMarkClass]=!!$.value,typeof i.value=="function"){const G=i.value(l);K[G]=!0}else if(typeof i.value=="string"){const G=i.value;K[G]=!0}return K}),u=t.ref(null),m=t.computed(()=>{const K={};if(e.width)e.width!=="auto"&&(K.width=ge(e.width));else{const G=a&&o?Sn(o,!1):null;if(r.value&&G){if(r.value.type==="grid"){const J=wn(G,r.value,e.span,e.offset);Object.assign(K,J)}else if(r.value.type==="flow"){const J=Cn(G,r.value,e.span,e.offset,e.width);Object.assign(K,J)}}}if(typeof u.value=="function"){const G=u.value(l);G&&Object.assign(K,G)}else if(u.value&&typeof u.value=="object"){const G=u.value;Object.assign(K,G)}return K}),f=t.ref(null),h=t.computed({get:()=>f.value??pe(e.isRequired),set:K=>{f.value=K}}),y=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),g=Ae(t.toRef(e,"labelPosition"),"labelPosition",pn.Near),b=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),k=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${b.value}`]:!0})),d=t.computed(()=>({label:!0,[`label--${b.value}`]:!0})),p=Ae(t.toRef(e,"labelWidth"),"labelWidth",pn.Near),S=t.computed(()=>p&&p.value?{width:ge(p.value)}:{}),C=t.computed(()=>({"label--string":!0,"label--required":h.value})),A=t.computed(()=>({content:!0,[e.contentClass]:!0})),N=t.computed(()=>({...e.contentStyle})),T=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ve({setRequired(K){h.value=K},setErrorTip(K){T.errorTip=K},setErrorIcon(K){T.errorIcon=K},setWarnTip(K){T.warnTip=K},setWarnIcon(K){T.warnIcon=K},setInfoTip(K){T.infoTip=K},setInfoIcon(K){T.infoIcon=K},setCustomClassName(K){i.value=K},setCustomStyle(K){u.value=K}});const $=t.computed(()=>e.infoTip||T.infoTip),P=t.computed(()=>e.infoIcon||T.infoIcon),V=t.computed(()=>e.warnTip||T.warnTip),B=t.computed(()=>e.warnIcon||T.warnIcon),L=t.computed(()=>e.errorTip||T.errorTip),F=t.computed(()=>e.errorIcon||T.errorIcon),I=t.computed(()=>L.value?"error":V.value?"warn":$.value?"info":""),q=t.computed(()=>I.value.length>0),H=t.computed(()=>I.value==="error"?L.value:I.value==="warn"?V.value:I.value==="info"?$.value:""),x=t.computed(()=>I.value==="error"?F.value:I.value==="warn"?B.value:I.value==="info"?P.value:null),Y=t.computed(()=>{let K={[`${s}__tip`]:!0,[`${s}__tip--${I.value}`]:!0};return I.value==="error"&&e.errorClass?K[`${e.errorClass}`]=!0:I.value==="warn"&&e.warnClass?K[`${e.warnClass}`]=!0:I.value==="info"&&e.infoClass&&(K[`${e.infoClass}`]=!0),K}),j=t.computed(()=>{let K={};return g&&g.value==="top"||!y.value?K["padding-left"]="0px":p&&p.value&&(K["padding-left"]=ge(p.value)),K}),Z=()=>{const K=x.value;return K?typeof K=="function"?t.h("div",{class:"fox-item__tip--icon"},[K()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(K)]):null},U=()=>{const K=H.value;return K?typeof K=="function"?t.h("div",{class:"fox-item__tip--text"},[K()]):t.h("div",{class:"fox-item__tip--text"},[K]):null},R=t.computed(()=>n.slots.fixedPreTip),E=t.computed(()=>({[`${s}__fixed-pre-tip`]:!0})),z=t.computed(()=>n.slots.fixedTip),D=t.computed(()=>({[`${s}__fixed-tip`]:!0})),O=t.ref();let M="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([K,G,J,te])=>{O.value&&(K&&!ce(G)?M?lt.show(O.value,G,{...te,id:M,type:J},!0):M=lt.show(O.value,G,{...te,type:J},!0):lt.hide(M))});let v=null;const W=()=>{v||!O.value||(v=new IntersectionObserver(K=>{let G=!1;for(let J of K)if(J.intersectionRatio>0){G=!0,G&&n.emit("appear",J);break}G||n.emit("disappear")}),v.observe(O.value))},Q=()=>{!v||!O.value||(v.unobserve(O.value),v=null)};return t.watch(()=>pe(e.appearListen),K=>{K?W():Q()}),t.onMounted(()=>{pe(e.appearListen)&&W()}),t.onUnmounted(Q),{classes:c,styles:m,mainClasses:k,hasLabel:y,labelClasses:d,labelStyles:S,labelStringClasses:C,contentClasses:A,contentStyles:N,contentRef:O,hasTip:q,mTip:H,mIcon:x,renderIcon:Z,renderTip:U,tipClasses:Y,tipStyles:j,hasFixedTip:z,fixedTipClasses:D,hasFixedPreTip:R,fixedPreTipClasses:E}}}),dc=["prop"];function uc(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2),t.renderSlot(e.$slots,"fixedPreTip")],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon()),{key:0})):t.createCommentVNode("",!0),e.mTip?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderTip()),{key:1})):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,dc)}const Ce=_(cc,[["render",uc]]);function fc(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(l,o){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:l.span==="stretch",[`${a}__${l.align}`]:!0})),s=Ue(),i=yn();kn(!1);const c=t.computed(()=>{const u={};if(l.width)l.width!=="auto"&&(u.width=ge(l.width));else if(i&&s){const m=bn(s,!1),f=Sn(s,!1);if(m.value&&f){if(m.value.type==="grid"){const h=wn(f,m.value,l.span,l.offset);Object.assign(u,h)}else if(m.value.type==="flow"){const h=Cn(f,m.value,l.span,l.offset,l.width);Object.assign(u,h)}}}return u});return()=>{const u=[];if(o.slots.default){const f=o.slots.default();if(l.divide)for(let h=0;h<f.length;h++){if(h>0){const y=t.h("div",{class:{[`${a}__divide`]:!0}});u.push(y)}u.push(f[h])}else Reflect.apply([].push,u,f)}const m={class:r.value,style:c.value};return t.h("div",m,u)}}}}const{componentName:mc,create:pc,scope:Y2}=X("row-item"),$o=pc(fc(mc));function hc(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(l,o){const a=Ue(),r=yn();kn(!1);const s=t.computed(()=>r&&a?bn(a,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:l.span==="stretch"})),u=t.computed(()=>{const m={};if(l.width)l.width!=="auto"&&(m.width=ge(l.width));else{const f=r&&a?Sn(a,!1):null;if(s.value&&f){if(s.value.type==="grid"){const h=wn(f,s.value,l.span,l.offset);Object.assign(m,h)}else if(s.value.type==="flow"){const h=Cn(f,s.value,l.span,l.offset,l.width);Object.assign(m,h)}}}return m});return()=>{const m={class:c.value,style:u.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",m,o.slots.default()):t.h("div",m)}}}}const{componentName:gc,create:yc,scope:X2}=X("slot-item"),To=yc(hc(gc)),Cr={type:{type:String,default:"text"},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function kc(e,n,l,o){return{props:{...ue,...fe,...Cr},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Be(t.computed(()=>a.disabled)),i=Te(t.computed(()=>a.readonly)),{emitEvent:c}=Ne({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),{toLocaleRefs:u}=re.useFoxI18n(n),m=u(a,["placeholder"]),f=t.ref(!1),h=De(a,"modelValue"),y=e,g=t.computed(()=>({[y]:!0,[`${y}--disabled`]:s.value,[`${y}--readonly`]:i.value})),b=Ae(t.computed(()=>a.textAlign),"textAlign"),k=t.computed(()=>{const q={};return b.value&&(q["text-align"]=b.value),q}),d=q=>{let x=q.target.value;a.type==="digit"&&(x=lo(x,!0)),a.type==="number"&&(x=lo(x,!1)),a.maxLength&&x.length>Number(a.maxLength)&&(x=x.slice(0,Number(a.maxLength))),h.value=x,c("update:modelValue",x,q),c("change",x,q)};let p=De(a,"hintText"),S=t.ref(!1);const C=q=>{let x=q.target.value;f.value=!0,ce(p.value)||(S.value=!0),c("focus",x,q)},A=q=>{setTimeout(()=>{S.value&&(S.value=!1),f.value=!1},0);let x=q.target.value;a.maxLength&&x.length>Number(a.maxLength)&&(x=x.slice(0,Number(a.maxLength))),c("blur",x,q)},N=t.computed(()=>({[`${y}__append`]:!0})),T=t.computed(()=>{const q={};return r.slots.append&&!$.value&&!F.value&&(q.display="none"),q}),$=t.computed(()=>ye(a.unit)>0),P=t.computed(()=>!F.value),V=t.computed(()=>({[`${y}__unit`]:!0,hidden:!P.value})),B=q=>{h.value="",c("update:modelValue","",q),c("change","",q),c("clear","")},L=t.computed(()=>pe(a.clearable)&&!s.value&&!i.value),F=t.computed(()=>{let q=ye(h.value)>0;return pe(a.clearable)&&q&&f.value}),I=t.computed(()=>({action:!0,hidden:!F.value}));return()=>{const q={class:g.value,style:k.value,type:a.type,maxlength:a.maxLength,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:d,onFocus:C,onBlur:A},H=[],x=t.h("input",q);H.push(x);const Y=[];if(L.value){const D={class:["action-icon"]},O=t.h(o,D),M={class:I.value,onClick:B},v=t.h("view",M,{default:()=>[O]});Y.push(v)}if($.value){const D=t.h("view",{class:V.value},[a.unit]);Y.push(D)}const j={class:N.value,style:T.value},Z=t.h("view",j,{default:()=>Y});H.push(Z);const U={default:()=>H};U.label=r.slots.default,U.prepend=r.slots.prepend,U.append=r.slots.append,U.fixedPreTip=r.slots.fixedPreTip,U.fixedTip=r.slots.fixedTip;const E={...ao(a,Cr),hintText:p.value,hintVisible:S.value};return t.h(l,E,U)}}}}const{componentName:bc,create:Sc,scope:Cc}=X("input-item"),Vo=Sc(kc(bc,Cc,Ce,ne.CircleClose));function wr(e,n=0){let l=`${e}`,o=l.indexOf(".");if(o==-1)return l;let a=o;for(let r=l.length-1;r>=o;r--)if(l.charAt(r)!="0"){a=r;break}return a-o<n?a=o+n+1:a!=o&&(a+=1),a>l.length?l=l.padEnd(a,"0"):l=l.substring(0,a),l}function Nr(e,n,l=20){if(typeof n=="string"&&(n=me(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Ma(`${e}`,`${n}`);return wr(o)}else{let o=_n(`${e}`,za(`${n}`),20);return wr(o)}}function wc(e,n=-1,l=!1,o=3,a=","){return Jt(e,n,l,o,a)}function Br(e,n,l,o,a=!0){if(e=="")return"";if(e=Pa(e),n=me(n),n==1)return e;if(o)e=Nr(e,n),l&&(e=="0"&&a?e=`${e}.`.padEnd(me(l)+2,"0"):e=_n(e,1,me(l)));else{let r=-1*n;e=Nr(e,r)}return e}function Ar(e,n){let l={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=pe(n.minInclude),a=eo(e,n.min);if(o&&a==-1||!o&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";l.message=r.replace("{0}",n.min),l.minValid=!1}}if(n.max!=null){let o=pe(n.maxInclude),a=eo(e,n.max);(o&&a==1||!o&&(a==0||a==1))&&(l.maxValid=!1)}return l}const $r={clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},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},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Nc(e,n,l,o){return{props:{...ue,...fe,...$r},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Be(t.computed(()=>a.disabled)),i=Te(t.computed(()=>a.readonly)),{emitEvent:c}=Ne({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=t.ref(!1),m=De(a,"modelValue"),f=t.ref("");t.watch([()=>m.value,()=>a.rates,()=>a.precision],([j,Z,U])=>{if(ce(j)){f.value="";return}const R=Br(j,Z,U,!1);f.value!==R&&(f.value=R)},{immediate:!0});const h=t.computed(()=>{let j="";return u.value&&(j=f.value),j}),{t:y}=re.useFoxI18n(n),g=t.computed(()=>{let j=a.placeholder??"";return!u.value&&!ce(f.value)?j=wc(f.value,a.decimalLength,a.autoPadding,a.digits,a.separator):j=ce(j)?y(["placeholder"]):j,j}),b=e,k=t.computed(()=>({[b]:!0,[`${b}--disabled`]:s.value,[`${b}__placeholder`]:f.value.length>0})),d=Ae(t.computed(()=>a.textAlign),"textAlign"),p=t.computed(()=>{const j={};return d.value&&(j["text-align"]=d.value),j}),S=t.ref(""),C=t.computed(()=>{let j=S.value;return ce(j)&&(j=a.errorTip??""),j}),A=t.ref(""),N=t.ref(!1),T=j=>{let U=j.target.value;if(ce(U)){f.value="",m.value="",c("update:modelValue","",j),c("change","",j),pe(a.showTip)&&N.value&&(N.value=!1);return}if(U.length>=2){let R=U;if(R.charAt(0)=="-"&&(R=R.substring(1)),R.length>=2&&R.charAt(0)=="0"&&R.charAt(1)!="."){t.triggerRef(f);return}}if(U!="-"){if(!ja(U)){t.triggerRef(f);return}if(a.integerLength!=-1&&Wa(U)>Number(a.integerLength)){t.triggerRef(f);return}if(a.decimalLength&&a.decimalLength!=-1&&Ya(U)>Number(a.decimalLength)){t.triggerRef(f);return}let R=Ar(U,a);if(R.maxValid===!1){S.value=R.message,t.triggerRef(f);return}}else if(a.min!=null&&me(a.min)>=0){t.triggerRef(f);return}A.value=U,pe(a.showTip)&&(N.value=U.length>0),f.value=U,m.value=Br(U,a.rates,a.precision,!0),c("update:modelValue",m.value,j),c("change",m.value,j)},$=j=>{if(u.value=!0,pe(a.showTip)){let Z=f.value;ce(Z)&&(Z=a.hintText),ce(Z)||(A.value=Z,N.value=!0)}S.value="",c("focus",m.value,j)},P=j=>{if(setTimeout(()=>{u.value=!1,pe(a.showTip)&&N.value===!0&&(N.value=!1)},0),!ce(f.value)){let Z=Ar(f.value,a);if(Z.minValid===!1||Z.maxValid===!1){S.value=Z.message;return}}c("update:modelValue",m.value,j),c("blur",m.value,j)},V=t.computed(()=>({[`${b}__append`]:!0})),B=t.computed(()=>{const j={};return r.slots.append&&!L.value&&!x.value&&(j.display="none"),j}),L=t.computed(()=>ye(a.unit)>0),F=t.computed(()=>!x.value),I=t.computed(()=>({[`${b}__unit`]:!0,hidden:!F.value})),q=j=>{m.value="",c("update:modelValue","",j),c("change","",j),c("clear","")},H=t.computed(()=>pe(a.clearable)&&!s.value&&!i.value),x=t.computed(()=>{let j=ye(m.value)>0;return pe(a.clearable)&&j&&u.value}),Y=t.computed(()=>({action:!0,hidden:!x.value}));return()=>{let j={class:k.value,style:p.value,type:"digit",maxlength:a.maxLength,placeholder:g.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:T,onFocus:$,onBlur:P},Z=[],U=t.h("input",j);Z.push(U);let R=[];if(H.value){const W={class:["action-icon"]},Q=t.h(o,W),K={class:Y.value,onClick:q},G=t.h("view",K,{default:()=>[Q]});R.push(G)}if(L.value){const W=t.h("view",{class:I.value},[a.unit]);R.push(W)}const E={class:V.value,style:B.value},z=t.h("view",E,{default:()=>R});Z.push(z);const D={default:()=>Z};D.label=r.slots.default,D.prepend=r.slots.prepend,D.append=r.slots.append,D.fixedPreTip=r.slots.fixedPreTip,D.fixedTip=r.slots.fixedTip;let M={...ao(a,$r),errorTip:C.value,hintText:A.value,hintVisible:N.value,hintType:"number"};return t.h(l,M,D)}}}}const{componentName:Bc,create:Ac,scope:$c}=X("money-item"),Eo=Ac(Nc(Bc,$c,Ce,ne.CircleClose)),Do={modelValue:{type:[String,Number],default:""},textAlign:{type:String,default:""},limitShow:{type:Boolean,default:!1},maxLength:{type:[String,Number],default:""},rows:{type:[String,Number],default:"2"},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},autofocus:{type:Boolean,default:!1}},{componentName:Tc,create:Vc,scope:Ec}=X("textarea"),Dc=Vc({props:{...Do},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:l}=re.useFoxI18n(Ec);const o=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=Tc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=a.value;h.style.height="auto";let y=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:g,minHeight:b}=e.autosize;g!==void 0&&(y=Math.min(y,g)),b!==void 0&&(y=Math.max(y,b))}y&&(h.style.height=y+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,y)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,y),n("change",h,y)};return{...o,textareaRef:a,classes:r,styles:s,change:h=>{const y=h.target;c(y.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let g=h.target.value;c(g,h),n("blur",{value:g,event:h})}}}}),Ic=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],xc={key:0,class:"fox-textarea__limit"};function qc(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...s)=>e.change&&e.change(...s)),onBlur:n[1]||(n[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[2]||(n[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Ic),e.limitShow?(t.openBlock(),t.createElementBlock("view",xc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const An=_(Dc,[["render",qc]]);function Mc(e,n,l,o){return{props:{...ue,...fe,...Do},emits:["update:modelValue","change","blur","focus"],setup(a,r){const s=Be(t.computed(()=>a.disabled)),i=Te(t.computed(()=>a.readonly)),{emitEvent:c}=Ne({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=De(a,"modelValue"),m=b=>{u.value=b,c("update:modelValue",b,{}),c("change",b,{})};let f=De(a,"hintText"),h=t.ref(!1);const y=b=>{ce(f.value)||(h.value=!0),c("focus",u.value,b)},g=b=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",u.value,b)};return()=>{const k={...he(a,Do),disabled:s.value,readonly:i.value,value:u.value,"onUpdate:modelValue":m,onFocus:y,onBlur:g},d=[],p=t.h(o,k);d.push(p);const S={default:()=>d};S.label=r.slots.default,S.prepend=r.slots.prepend,S.append=r.slots.append,S.fixedPreTip=r.slots.fixedPreTip,S.fixedTip=r.slots.fixedTip;const C=he(a,fe,ue);return t.h(l,C,S)}}}}const{componentName:zc,create:Pc,scope:Lc}=X("textarea-item"),Io=Pc(Mc(zc,Lc,Ce,An));function Fc(e){return e===window}const Ee=e=>{const n=t.unref(e);if(Fc(n)){const l=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:l,bottom:o,width:l,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Pe={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:{}}},Tr=2e3;let Vr=Tr;const Rc=(e,n)=>({components:n,props:{...Pe},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:o}){const a=t.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),r=t.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),s=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${l.duration}s`,...l.style})),i=t.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),c=()=>{l.zIndex!==Tr&&(Vr=Number(l.zIndex)),o("update:visible",!0),a.zIndex=++Vr,l.destroyOnClose&&(a.showSlot=!0),o("open")},u=()=>{o("update:visible",!1),o("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},m=b=>{o("click-pop",b)},f=b=>{b.stopPropagation(),o("click-close-icon",b),o("update:visible",!1)},h=b=>{o("click-overlay",b),l.closeOnClickOverlay&&o("update:visible",!1)},y=b=>{o("opend",b)},g=b=>{o("closed",b)};return t.watch(()=>l.visible,b=>{l.visible?c():u()}),t.watch(()=>l.closeable,b=>{a.closed=b}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:f,onClickOverlay:h,onOpened:y,onClosed:g}}});let Et=0;const Er="fox-overflow-hidden",Dr=()=>_e?document.body:{classList:[]},vc=e=>[()=>{if(e())try{!Et&&Dr().classList.add(Er),Et++}catch{}},()=>{if(e()&&Et)try{Et--,!Et&&Dr().classList.remove(Er)}catch{}}],Oc={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:Kc,create:Uc}=X("overlay"),Hc=Uc({props:{...Oc},emits:["click","update:visible"],setup(e,{emit:n}){const[l,o]=vc(()=>e.lockScroll),a=t.computed(()=>({[Kc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,i=>{i?l():o()}),{classes:a,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function jc(e,n,l,o,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const at=_(Hc,[["render",jc]]),{componentName:Wc,create:Yc}=X("popup"),Xc=Yc(Rc(Wc,{FoxOverLay:at,Close:ne.Close}));function Qc(e,n,l,o,a,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const de=_(Xc,[["render",Qc]]),Ir=10;function Gc(e,n){return e>n&&e>Ir?"horizontal":n>e&&n>Ir?"vertical":""}function He(){const e=t.ref(0),n=t.ref(0),l=t.ref(0),o=t.ref(0),a=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),u=t.ref(0),m=t.ref(""),f=()=>m.value==="vertical",h=()=>m.value==="horizontal",y=()=>{s.value=0,i.value=0,c.value=0,u.value=0,m.value="",l.value=0};return{move:k=>{const d=k.touches[0];s.value=d.clientX-e.value,i.value=d.clientY-n.value,a.value=d.clientX,r.value=d.clientY,c.value=Math.abs(s.value),u.value=Math.abs(i.value),o.value=Date.now()-l.value,m.value||(m.value=Gc(c.value,u.value))},start:k=>{y(),e.value=k.touches[0].clientX,n.value=k.touches[0].clientY,l.value=Date.now()},reset:y,startX:e,startY:n,startTime:l,duration:o,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:u,direction:m,isVertical:f,isHorizontal:h}}const xr={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},xo={...Pe,...xr,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},cancelText:{type:String},clearText:{type:String},confirmText:{type:String}};let qr=36;function Zc(){return qr}function Jc(e){qr=e}function Le(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function qo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function _c(e,n,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=l),n.children=l}function rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Mr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let ed=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const a=Qe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function td(){const e=t.getCurrentInstance();return new ed(e.proxy)}function zr(e,n,l){const o=Le(e,n),a=Le(e,l);if(o!==a)return!1;const r=rt(e,n),s=rt(e,l);return r===s}function nd(e,n,l,o){if(l.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<l.length;s++){const i=n[s];let u=l[s].findIndex(m=>{if(r==="text")return Le(e,m)===i;if(r==="value"){let f=rt(e,m);return f==null&&(f=Le(e,m)),f===i}else if(r==="item")return zr(e,m,i)});if(u==-1)break;a.push(u)}else{let s=l[0];for(let i=0;i<n.length;i++){const c=n[i];let u=s.findIndex(f=>{if(r==="text")return Le(e,f)===c;if(r==="value"){let h=rt(e,f);return h==null&&(h=Le(e,f)),h===c}else if(r==="item")return zr(e,f,c)});if(u==-1)break;a.push(u);const m=qo(e,s[u]);if(!Array.isArray(m))break;s=m}}return a}function Pr(e,n,l,o){if(l.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<l.length;s++){const i=l[s];let c=n[s];c<0&&c>=i.length&&(c=0);const u=i[c],m=Le(e,u);if(a.texts.push(m),a.items.push(u),r==="text")a.values.push(m);else if(r==="value"){let f=rt(e,u);f==null&&(f=m),a.values.push(f)}else a.values.push(u)}else{let s=l[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const u=s[c],m=Object.assign({},u);m.children=null;const f=Le(e,u);if(a.texts.push(f),a.items.push(m),r==="text")a.values.push(f);else if(r==="value"){let h=rt(e,u);h==null&&(h=f),a.values.push(h)}else a.values.push(m);if(!Array.isArray(u.children))break;s=u.children}}return a}function Lr(e){return{text:e,value:e}}const od=15,ld=300,ad=200,{create:rd}=X("picker-column");function sd(e){e.stopPropagation()}function id(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&sd(e)}const cd=rd({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},...xr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const l=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${me(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=$=>$>=f.currIndex+8||$<=f.currIndex-8,i=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${r.value}px`})),c=$=>`transform: rotate3d(1, 0, 0, ${-f.rotation*$}deg) translate3d(0px, 0px, 104px)`,u=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+r.value}px, 0)`})),m=t.ref(null),f=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=t.toRef(e,"source"),y=$=>Le(e,$),g=$=>rt(e,$),b=He(),k=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},d=($,P=!1,V=!1)=>{if(f.currIndex=$,P){const B=()=>{f.moving=!1,n("update:modelValue",$),n("change",$)};V?f.transitionEndTrigger=B:B()}},p=($,P,V)=>{let B=$+f.startDistance;if(P==="end"){const L=-(h.value.length-1)*e.itemHeight;B<L&&(B=L,(!V||V<=0)&&(V=e.swipeDuration)),B>0&&(B=0,(!V||V<=0)&&(V=e.swipeDuration));let F=Math.abs(Math.round(-B/e.itemHeight));const I=-F*e.itemHeight,q=`${(F+1)*f.rotation}deg`,H=V?V>0:!1;d(F,!0,H),S(I,P,V,q)}else{let L=(-B/e.itemHeight+1)*f.rotation;const F=(h.value.length+1)*f.rotation,I=0;if(L=Math.min(Math.max(L,I),F),e.threeDimensional&&(L<I||L>F))return;S(B,null,void 0,`${L}deg`)}},S=($=0,P,V=ad,B)=>{P==="end"?f.scrollTime=V:f.scrollTime=0,f.deg=B,f.scrollDistance=$},C=($,P)=>($=Math.abs($/P)/.003*($<0?-1:1),$),A=$=>{e.readonly||(f.startDistance=f.scrollDistance,b.start($),f.transitionEndTrigger=null)},N=$=>{e.readonly||(f.moving=!0,b.move($),b.isVertical()&&(f.moving=!0,id($,!0)),p(b.deltaY.value,"",0))},T=()=>{if(e.readonly)return;const $=b.deltaY.value,P=b.duration.value;if(P<ld&&Math.abs($)>od){const B=C($,P);p(B,"end",e.swipeDuration)}else p($,"end",0)};return t.watch(()=>e.modelValue,$=>{if(f.currIndex!==$){f.currIndex=$;const P=-$*e.itemHeight;p(P)}}),t.onMounted(()=>{const $=-e.modelValue*e.itemHeight;p($)}),{classes:l,styles:o,contentClasses:a,source:h,itemText:y,itemValue:g,...t.toRefs(f),roller:m,getItemText:Le,onTouchStart:A,onTouchMove:N,onTouchEnd:T,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:u,stopMomentum:k}}}),dd={key:1,class:"fox-picker__item-tile"};function ud(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[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,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",dd,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Fr=_(cd,[["render",ud]]),{create:fd,componentName:md,scope:pd}=X("picker"),hd=fd({components:{[Fr.name]:Fr,[de.name]:de},props:{...xo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:l,t:o}=re.useFoxI18n(pd),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Zc());t.watch(()=>e.visible,V=>{V&&s.value<=0&&setTimeout(()=>{if(r.value){const B=Ee(r.value);s.value=B.height,Jc(s.value)}},50)});const i=t.computed(()=>({[md]:!0})),c=td(),u=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([V,B])=>{if(V){let L=await c.load("picker",V,B);if(L.length>0){let F=L[0];if(Array.isArray(F)){if(typeof F[0]=="string"){let I=L,q=[];I.forEach(H=>{let x=H.map(Y=>Lr(Y));q.push(x)}),m.value=q}else m.value=L;u.value="multipleColumn"}else if(typeof F=="string"){let I=L,q=[],H=I.map(x=>Lr(x));q.push(H),m.value=q,u.value="singleColumn"}else{const I=qo(e,F);Array.isArray(I)?(u.value="cascade",m.value=[L]):(u.value="singleColumn",m.value=[L])}}else m.value=[]}},{immediate:!0});const f=t.ref([]),h=t.ref(e.modelValue),y=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([V,B])=>{let L=nd(e,V,B,u.value);if(!qe(L,g.value)){g.value=L;let F=Pr(e,L,B,u.value);F&&(f.value=F.texts,n("update:text",f.value))}});const b=t.ref(e.visible);t.watch(()=>e.visible,V=>{b.value=V});const k=V=>{let B=Mr(e,V);return $e(B)?B.defaultIndex??0:0},d=V=>{if(e.readonly===!0)return!0;let B=Mr(e,V);return $e(B)?B.readonly??!1:!1},p=(V,B)=>{let L=g.value;L[V]=B;for(let I=0;I<V;I++)L[I]==null&&(L[I]=k(I));if(u.value==="cascade")for(let I=V+1;I<C.value.length;I++){let q=k(I);I<L.length?L[I]=q:L.push(q)}else for(let I=L.length;I<C.value.length;I++){let q=k(I);L.push(q)}g.value=L;let F=Pr(e,L,m.value,u.value);F&&(f.value=F.texts,h.value=F.values,y.value=F.items)},S=V=>V<g.value.length?g.value[V]:k(V),C=t.computed(()=>{if(m.value.length==0)return[];if(u.value=="singleColumn"||u.value=="multipleColumn")return m.value;let V=[],B=0,L=m.value[0],F=0;for(;;){let I=L.map(x=>{let Y=Object.assign({},x);return _c(e,Y,null),Y});V.push(I),B>=g.value.length?F=0:F=g.value[B],(F<0||F>=L.length)&&(F=0);let q=L[F];const H=qo(e,q);if(!Array.isArray(H))break;L=H,B++}return V}),A=t.computed(()=>me(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:C,dataType:u,show:b,itemHeight:s,top:A,isReadonly:d,getIndex:S,change:(V,B)=>{p(V,B)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let V=m.value.length-1;for(;V>=0&&!(g.value[V]===null||g.value[V]===void 0);V--);if(V>=0&&p(V,0),u.value==="singleColumn"){let B=h.value.length>0?h.value[0]:"",L=y.value.length>0?y.value[0]:null;e.readonly||(n("update:modelValue",B),n("update:text",f.value),n("change",B,L)),n("confirm",B)}else e.readonly||(n("update:modelValue",h.value),n("update:text",f.value),n("change",h.value,y.value)),n("confirm",h.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}u.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),gd={class:"fox-picker__bar"},yd={class:"fox-picker__title"},kd={class:"fox-picker__bar__action"},bd={class:"fox-picker__column"};function Sd(e,n,l,o,a,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",gd,[t.createElementVNode("view",yd,t.toDisplayString(e.title),1),t.createElementVNode("view",kd,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",bd,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(u),"column-index":u,modelValue:e.getIndex(u),"onUpdate:modelValue":m=>e.change(u,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const ht=_(hd,[["render",Sd]]);function Cd(e,n,l,o,a,r,s=!0){return{props:{...ue,...fe,...xo,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},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const u=Be(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:f}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),y=h(i,["placeholder"]),g=t.ref(!1),b=De(i,"modelValue"),k=t.ref([]),d=t.computed(()=>Array.isArray(k.value)?k.value.join(i.separator):k.value),p="fox-input-item",S=t.computed(()=>({[p]:!0,[`${p}__disabled`]:u.value})),C=Ae(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const z={};return C.value&&(z["text-align"]=C.value),z}),N=t.ref(!1),T=()=>{N.value=!0},$=z=>{N.value=z},P=z=>{b.value=z,f("update:modelValue",z)},V=(z,D)=>{f("change",z,D)},B=z=>{let O=z.target.value;g.value=!0,f("focus",O,z)},L=z=>{setTimeout(()=>{g.value=!1},0);let O=z.target.value;i.maxLength&&O.length>Number(i.maxLength)&&(O=O.slice(0,Number(i.maxLength))),f("blur",O,z)},F=z=>{k.value=z,Array.isArray(z)&&z.length===0?f("update:text",z[0]):f("update:text",z)},I=t.computed(()=>({[`${p}__append`]:!0})),q=t.computed(()=>ye(i.unit)>0),H=t.computed(()=>ye(i.unit)>0&&!g.value),x=t.computed(()=>({hidden:!H.value})),Y=z=>{b.value="",f("update:modelValue","",z),f("change","",z),f("clear","")},j=t.computed(()=>i.clearable&&!u.value&&!m.value),Z=t.computed(()=>ye(b.value)>0&&g.value),U=z=>{Z.value?Y(z):T()},R=t.computed(()=>Z.value&&j.value?o:a),E=t.computed(()=>({action:!0}));return()=>{const z={class:S.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:T,onFocus:B,onBlur:L};s&&(z.disabled=!0);const D=[],O=t.h("input",z);D.push(O);const M=[],v={class:["action-icon"]},W=t.h(R.value,v),Q={class:E.value,onClick:U},K=t.h("view",Q,{default:()=>[W]});if(M.push(K),q.value){const be=t.h("view",{class:x.value},[i.unit]);M.push(be)}const G={class:I.value},J=t.h("view",G,{default:()=>M});D.push(J);const te={default:()=>D};te.label=c.slots.default,te.prepend=c.slots.prepend,te.append=c.slots.append,te.fixedPreTip=c.slots.fixedPreTip,te.fixedTip=c.slots.fixedTip;const ee=he(i,xo);ee.disabled=!1,ee.readonly=u.value||m.value,ee.visible=N.value,ee["onUpdate:visible"]=$,ee.modelValue=b.value,ee["onUpdate:modelValue"]=P,ee.text=k.value,ee["onUpdate:text"]=F,ee.onChange=V;const oe=t.h(r,ee);te.hide=()=>[oe];const ae=he(i,fe,ue);return t.h(l,ae,te)}}}}const{componentName:wd,create:Nd,scope:Bd}=X("picker-item"),Mo=Nd(Cd(wd,Bd,Ce,ne.CircleClose,ne.ArrowRight,ht,!1)),$n=(e,n,l)=>e.map(o=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:c,[s]:u,...m}=o,f={loading:!1,...m,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:u,_parent:n};return f.children&&f.children.length&&(f.children=$n(f.children,f,l)),f}),Rr=(e,n)=>{let l=0,o;for(;(o=e[l++])&&n(o)!==!0;)o.children&&o.children.length&&Rr(o.children,n)},Ad={topId:null,idKey:"id",pidKey:"pid",sortKey:""},$d=(e,n)=>{const l={...Ad,...n||{}},{topId:o,idKey:a,pidKey:r,sortKey:s}=l;let i=[],c={};return e.forEach(u=>{u={...u};const{[a]:m,[r]:f}=u,h=c[f]=c[f]||[];!i.length&&f===o&&(i=h),h.push(u),u.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(u=>{c[u].length>1&&c[u].sort((m,f)=>m[s]-f[s])}),c=null,i},Td=/scroll|auto|overlay/i,vr=window;function Vd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function zo(e,n=vr){let l=e;for(;l&&l!==n&&Vd(l);){const{overflowY:o}=window.getComputedStyle(l);if(Td.test(o))return l;l=l.parentNode}return n}function Or(e,n=vr){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=zo(e.value,n))}),l}const{create:Ed}=X("sticky"),Dd=Ed({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const l=t.ref(),o=t.ref(),a=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>a.fixed?{height:`${a.height}px`}:{}),i=t.computed(()=>a.fixed?{[e.position]:`${r.value}px`,transform:a.transform?`translate3d(0, ${a.transform}px, 0)`:void 0,position:a.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const u=e.container;if(!l.value&&!u)return;const m=Ee(l),f=o.value,h=Ee(f),y=Ee(u);a.height=m.height;const g=()=>{let k=!1;if(e.position==="top")k=u?r.value>m.top&&y.bottom>0:r.value>m.top;else{const d=document.documentElement.clientHeight;k=u?y.bottom>0&&d-r.value-h.height>y.top:d-r.value<m.bottom}return k},b=()=>{if(u)if(e.position==="top"){const k=y.bottom-r.value-h.height;return k<0?k:0}else{const k=document.documentElement.clientHeight,d=y.bottom-(k-r.value);return d<0?d:0}return 0};a.transform=b(),a.fixed=g()};return t.watch(()=>a.fixed,u=>{n("change",u)}),t.onMounted(()=>{c(),zo(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{zo(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:s,stickyRef:o,stickyStyle:i}}});function Id(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Dt=_(Dd,[["render",Id]]),xd=(e,n,l,o)=>{const a=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let h=await o(a,l);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=He();let u="";const m=(h,y)=>{let g=h;switch(e.direction=="horizontal"?(u=h>0?"right":"left",g=Math.abs(g)/r.value.width*100):(u=y>0?"bottom":"top",g=y,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),u){case"left":case"top":n.isEnd()&&(g=0,i.moving=!1);break;case"right":case"bottom":g=-g,n.isBegin()&&(g=0,i.moving=!1);break}i.offset=g};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,m(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,u){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:a}};class qd{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Md}=X("tabs"),zd=Md({components:{[Dt.name]:Dt,JoySmile:ne.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:l}){const o=t.ref(null);let a;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=V=>{V.forEach((B,L)=>{let F=B.type;if(F=F.name||F,F=="fox-tab-pane"){let I=new qd;if(B.props?.title||B.props?.["pane-key"]||B.props?.paneKey){let q=tt(B.props?.["pane-key"]),H=q=="number"||q=="string"?String(B.props?.["pane-key"]):null,x=tt(B.props?.paneKey),Y=x=="number"||x=="string"?String(B.props?.paneKey):null;I.title=B.props?.title,I.paneKey=H||Y||String(L),I.disabled=B.props?.disabled}r.value.push(I)}else{if(B.children==" ")return;Array.isArray(B.children)&&s(B.children)}})},i=t.ref(e.modelValue||0),c=V=>{let B=r.value.findIndex(L=>L.paneKey==V);r.value.length==0||B==-1||(i.value=B)},u=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),f=t.ref([]),h=V=>{const B=m.value,L=f.value;if(!B||!L||!L[i.value])return;const F=L[i.value];let I=0;e.direction==="vertical"?I=F.offsetTop-B.offsetTop+10-(B.offsetHeight-F.offsetHeight)/2:I=F.offsetLeft-(B.offsetWidth-F.offsetWidth)/2,y(B,I,V?0:.3,e.direction)},y=(V,B,L,F)=>{let I=0;const q=F==="horizontal"?V.scrollLeft:V.scrollTop,H=L===0?1:Math.round(L*1e3/16);function x(){F==="horizontal"?V.scrollLeft+=(B-q)/H:V.scrollTop+=(B-q)/H,++I<H&&Re(x)}x()},g=(V=l.default?.())=>{r.value=[],V=V?.filter(B=>typeof B.children!="string"),V&&V.length&&s(V),c(e.modelValue),t.nextTick(()=>{h()})},b=V=>{a=V.fixed};t.watch(()=>l.default?.(),V=>{g(V)});const k=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,V=>{if(c(V),h(),a){let B=Ee(o.value).top+k(),L=Math.ceil(B-e.top);window.scrollTo({top:L,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);const d={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,d.updateValue(r.value[i.value])},prev:()=>{i.value-=1,d.updateValue(r.value[i.value])},updateValue:V=>{n("update:modelValue",V.paneKey),n("change",V)},tabChange:(V,B)=>{n("click",V),!(V.disabled||i.value==B)&&(i.value=B,d.updateValue(V))},setTabItemRef:(V,B)=>{f.value[B]=V}},{tabsContentRef:p,touchState:S,touchMethods:C}=xd(e,d),A=t.computed(()=>{let V=i.value*100;S.moving&&(V+=S.offset);let B={transform:e.direction=="horizontal"?`translate3d(-${V}%, 0, 0)`:`translate3d( 0,-${V}%, 0)`,transitionDuration:S.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(B={}),B}),N=t.computed(()=>({background:e.background})),T=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),$=t.computed(()=>{if(!e.titleGutter)return{};const V=ge(e.titleGutter);return e.direction==="vertical"?{marginTop:V,marginBottom:V}:{marginLeft:V,marginRight:V}}),P=t.computed(()=>l.fixedTitle);return{navRef:m,tabsContentRef:p,titles:r,contentStyle:A,tabsNavStyle:N,titleStyle:$,tabsActiveStyle:T,container:o,getScrollY:u,onStickyScroll:b,...d,...C,hasFixedTitle:P}}}),Pd=["onClick"],Ld={key:0,class:"fox-tabs__titles-fixed-item"},Fd=["onClick"],Rd={key:0,class:"fox-tabs__titles-fixed-item"};function vd(e,n,l,o,a,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,u),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Pd))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Ld,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,u),key:c.paneKey,ref_for:!0,ref:m=>e.setTabItemRef(m,u)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Fd))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Rd,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[1]||(n[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[2]||(n[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const It=_(zd,[["render",vd]]),{create:Od}=X("tab-pane"),Kd=Od({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const l=t.inject("tabsOpiton"),o=t.computed(()=>({display:l.animatedTime.value==0&&e.paneKey!=l.activeKey.value?"none":void 0}));return{...l,paneStyle:o}}});function Ud(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const xt=_(Kd,[["render",Ud]]);class Kr{nodes;config;constructor(n,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=$n(n,null,this.config)}updateChildren(n,l){l?l.children=$n(n,l,this.config):this.nodes=$n(n,null,this.config)}getNodeByValue(n){let l;return Rr(this.nodes,o=>{if(o.value===n)return l=o,!0}),l}getPathNodesByValue(n){if(!n.length)return[];const l=[];let o=this.nodes;for(;o&&o.length;){const a=o.find(r=>r.value===n[r.level]);if(!a)break;l.push(a),o=a.children}return l}isLeaf(n,l){const{leaf:o,children:a}=n,r=Array.isArray(a)&&!!a.length;return o||!r&&!l}hasChildren(n,l){if(this.isLeaf(n,l))return!1;const{children:a}=n;return Array.isArray(a)&&!!a.length}}const{create:Hd,scope:jd}=X("cascader-pane"),Wd=Hd({components:{Loading:ne.Loading,Checklist:ne.Checklist,[It.name]:It,[xt.name]:xt},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),a=t.ref(!1),r=t.ref(e.modelValue),s=t.ref(new Kr([],{})),i=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),u=new Map;let m;const f=async()=>{u.clear(),i.value=[],o.value=0,a.value=!1,m=null;let{options:d}=e;l.value.convertConfig&&(d=$d(d,l.value.convertConfig)),s.value=new Kr(d,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),c.value&&!s.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:s.value.nodes,selectedNode:null}],h()},h=async()=>{const d=r.value;if(d===void 0||!s.value.nodes.length)return;if(d.length===0){o.value=0,i.value=[{nodes:s.value.nodes,selectedNode:null}];return}let p=d;if(c.value&&Array.isArray(d)&&d.length){p=[];let S=s.value.nodes.find(C=>C.value===d[0]);if(S){p=[S.value],a.value=!0;const C=await d.slice(1).reduce(async(A,N)=>{const T=await A;await y(T);const $=T?.children?.find(P=>P.value===N);return $&&p.push(N),Promise.resolve($)},Promise.resolve(S));await y(C),a.value=!1}}p.length&&d===e.modelValue&&s.value.getPathNodesByValue(p).map((C,A)=>{o.value=A,k.handleNode(C,!0)})},y=async d=>{if(!d)return;if(!l.value.lazyLoad){d.leaf=!0;return}if(s.value.isLeaf(d,c.value)||s.value.hasChildren(d,c.value))return;d.loading=!0;const p=d.root?null:d;let S=u.get(d);S||(S=new Promise(A=>{l.value.lazyLoad?.(d,A)}),u.set(d,S));const C=await S;Array.isArray(C)&&C.length>0?s.value.updateChildren(C,p):d.leaf=!0,d.loading=!1,u.delete(d)},g=d=>{const p=d.map(S=>S.value);r.value=p,n("change",p,d),n("update:modelValue",p,d)},{t:b}=re.useFoxI18n(jd),k={async handleNode(d,p){const{disabled:S,loading:C}=d;if(!(!p&&S||!i.value[o.value])){if(s.value.isLeaf(d,c.value)){if(d.leaf=!0,i.value[o.value].selectedNode=d,i.value=i.value.slice(0,d.level+1),!p){const A=i.value.map(N=>N.selectedNode);g(A),n("pathChange",A)}return}if(s.value.hasChildren(d,c.value)){const A=d.level+1;if(i.value[o.value].selectedNode=d,i.value=i.value.slice(0,A),i.value.push({nodes:d.children||[],selectedNode:null}),o.value=A,!p){const N=i.value.map(T=>T.selectedNode);n("pathChange",N)}return}m=d,!C&&(await y(d),m===d&&(i.value[o.value].selectedNode=d,k.handleNode(d,p)))}},handleTabClick(d){m=null,o.value=Number(d.paneKey)},formatTabTitle(d){return d.selectedNode?d.selectedNode.text:b("select")},isSelected(d,p){return d.selectedNode&&d.selectedNode.value===p.value}};return t.watch([l,()=>e.options],()=>{f()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,d=>{d!==r.value&&(r.value=d,h())}),t.watch(()=>e.visible,d=>{d&&Array.isArray(r.value)&&r.value.length>0&&h()}),{panes:i,initLoading:a,tabsCursor:o,...k}}}),Yd={role:"menu",class:"fox-cascader__pane"},Xd=["aria-checked","aria-disabled","onClick"],Qd={class:"fox-cascader__item__title"},Gd=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Zd(e,n,l,o,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-tab-pane"),u=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(u,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=m=>e.tabsCursor=m),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(m,f)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(m),key:f},{default:t.withCtx(()=>[t.createElementVNode("view",Yd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.nodes,h=>(t.openBlock(),t.createElementBlock("view",{key:h.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(m,h),disabled:h.disabled}]),"aria-checked":e.isSelected(m,h),"aria-disabled":h.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(h,!1)},[t.createElementVNode("view",Qd,t.toDisplayString(h.text),1),h.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Xd))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Gd]),_:1}))]),_:1},8,["modelValue","onClick"])}const Jd=_(Wd,[["render",Zd]]),{create:_d}=X("cascader"),eu=_d({components:{FoxCascaderPane:Jd,FoxPopup:de},props:{...Pe,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 l=t.ref(e.modelValue),o=t.computed({get(){return e.visible},set(s){n("update:visible",s)}}),a=(s,i)=>{l.value=s,o.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==l.value&&(l.value=s)}),{onChange:a,onPathChange:r,innerValue:l,innerVisible:o}}}),tu=["innerHTML"];function nu(e,n,l,o,a,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,tu)):t.createCommentVNode("",!0),t.createVNode(s,{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(s,{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 Tn=_(eu,[["render",nu]]);function qt(e,n){const l=e.textKey??"text";return n[l]??""}function Mt(e,n){const l=e.valueKey??"value";return n[l]}function Ur(e,n){const l=e.childrenKey??"children";return n[l]}function Vn(e,n=[]){const l={texts:[],values:[]};for(let o=0;o<n.length;o++){const a=n[o],r=qt(e,a),s=Mt(e,a);l.texts.push(r),l.values.push(s??"")}return l}function Hr(e,n,l,o,a=[]){if(!l)return;const r=l[o];for(let s=0;s<n.length;s++)if(qt(e,n[s])===r){const c=Mt(e,n[s])??"",u={[e.textKey]:r,[e.valueKey]:c};a.push(u);const m=Ur(e,n[s]);Array.isArray(m)&&Hr(e,m,l,o+1,a);return}}function jr(e,n,l,o,a=[]){if(!l)return;const r=l[o];for(let s=0;s<n.length;s++)if(Mt(e,n[s])===r){const c=qt(e,n[s])??"",u={[e.textKey]:c,[e.valueKey]:r};a.push(u);const m=Ur(e,n[s]);Array.isArray(m)&&jr(e,m,l,o+1,a);return}}function Po(e,n,l){if(n===l)return!0;if(n.length!==l.length)return!1;for(let o=0;o<n.length;o++){const a=qt(e,n[o]),r=qt(e,l[o]);if(a!==r)return!1;const s=Mt(e,n[o]),i=Mt(e,l[o]);if(s!==i)return!1}return!0}let ou=class{proxy;constructor(n){this.proxy=n}async load(n,l){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(l);const a=Qe(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):($e(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(n,l))}};function lu(){const e=t.getCurrentInstance();return new ou(e.proxy)}function au(e,n,l,o,a,r,s=!1){return{props:{...ue,...fe,modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes"],setup(i,c){const u=Be(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:f}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),y=h(i,["placeholder"]),g=t.ref(!1),b=lu(),k=t.ref([]);t.watch([()=>i.source,()=>i.params],async([O,M])=>{O&&(k.value=await b.load(O,M))},{immediate:!0});const d=t.ref([]),p=t.computed(()=>Array.isArray(d.value)?d.value.join(" "):d.value),S=t.ref([]),C=t.ref([]);t.watch([()=>i.modelValue],async([O])=>{if(i.lazy===!0){C.value.length==0&&(d.value=Array.isArray(O)?O:[],S.value=Array.isArray(O)?O:[]);return}if(i.valueType==="item"){let M=O;if(!Po(i,M,C.value)){C.value=M;let v=Vn(i,M);d.value=v.texts,S.value=v.values}}else if(i.valueType==="text"){let M=O,v=[];if(Hr(i,k.value,M,0,v),!Po(i,v,C.value)){C.value=v;let W=Vn(i,v);M.value=W.texts,S.value=W.values}}else{let M=[];if(jr(i,k.value,O,0,M),!Po(i,M,C.value)){C.value=M;let v=Vn(i,M);d.value=v.texts,S.value=v.values}}},{immediate:!0});const A="fox-input-item",N=t.computed(()=>({[A]:!0,[`${A}__disabled`]:u.value})),T=Ae(t.computed(()=>i.textAlign),"textAlign"),$=t.computed(()=>{const O={};return T.value&&(O["text-align"]=T.value),O}),P=t.ref(!1),V=()=>{u.value===!0||m.value===!0||(P.value=!0)},B=O=>{P.value=O},L=(O,M)=>{let v=M.map(Q=>{if(Q==null)return Q;let K={...Q};return Reflect.deleteProperty(K,"text"),K[i.textKey]=Q.text??"",Reflect.deleteProperty(K,"value"),K[i.valueKey]=Q.value??"",K});C.value=v;let W=Vn(i,v);d.value=W.texts,S.value=W.values,i.valueType==="text"?(f("change",d.value,v),f("update:modelValue",d.value)):i.valueType==="item"?(f("change",v,v),f("update:modelValue",v)):(f("change",S.value,v),f("update:modelValue",S.value)),f("update:pathNodes",v)},F=O=>{let M=O.map(v=>{if(v==null)return v;let W={...v};return Reflect.deleteProperty(W,"text"),W[i.textKey]=v.text??"",Reflect.deleteProperty(W,"value"),W[i.valueKey]=v.value??"",W});f("pathChange",M)},I=O=>{g.value=!0,f("focus",S.value,O)},q=O=>{setTimeout(()=>{g.value=!1},0),f("blur",S.value,O)},H=t.computed(()=>({[`${A}__append`]:!0})),x=t.computed(()=>ye(i.unit)>0),Y=t.computed(()=>ye(i.unit)>0&&!g.value),j=t.computed(()=>({hidden:!Y.value})),Z=O=>{C.value=[],d.value=[],S.value=[],f("update:modelValue",[]),f("change",[],O),f("clear",[]),f("update:pathNodes",[])},U=t.computed(()=>i.clearable&&!u.value&&!m.value),R=t.computed(()=>{let O=S.value&&S.value.length>0;return i.clearable&&O&&g.value}),E=O=>{R.value?Z(O):V()},z=t.computed(()=>R.value&&U.value?o:a),D=t.computed(()=>({action:!0}));return()=>{const O={class:N.value,style:$.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:V,onFocus:I,onBlur:q};s&&(O.disabled=!0);const M=[],v=t.h("input",O);M.push(v);const W=[],Q={class:["action-icon"]},K=t.h(z.value,Q),G={class:D.value,onClick:E},J=t.h("view",G,{default:()=>[K]});if(W.push(J),x.value){const it=t.h("view",{class:j.value},[i.unit]);W.push(it)}const te={class:H.value},ee=t.h("view",te,{default:()=>W});M.push(ee);const oe={default:()=>M};oe.label=c.slots.default,oe.prepend=c.slots.prepend,oe.append=c.slots.append,oe.fixedPreTip=c.slots.fixedPreTip,oe.fixedTip=c.slots.fixedTip;let ae={};ae.visible=P.value,ae["onUpdate:visible"]=B,ae.modelValue=S.value,ae.onChange=L,ae.onPathChange=F,ae.options=k.value,ae.title=i.title,ae.lazy=i.lazy,ae.lazyLoad=i.lazyLoad,ae.valueKey=i.valueKey,ae.textKey=i.textKey,ae.childrenKey=i.childrenKey,ae.convertConfig=i.convertConfig;const Ie=t.h(r,ae);oe.hide=()=>[Ie];const be=he(i,fe,ue);return t.h(l,be,oe)}}}}const{componentName:ru,create:su,scope:iu}=X("cascader-item"),Lo=su(au(ru,iu,Ce,ne.CircleClose,ne.ArrowRight,Tn,!1));var je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){var l=1e3,o=6e4,a=36e5,r="millisecond",s="second",i="minute",c="hour",u="day",m="week",f="month",h="quarter",y="year",g="date",b="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|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,p={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("_")},S=function(F,I,q){var H=String(F);return!H||H.length>=I?F:""+Array(I+1-H.length).join(q)+F},C={s:S,z:function(F){var I=-F.utcOffset(),q=Math.abs(I),H=Math.floor(q/60),x=q%60;return(I<=0?"+":"-")+S(H,2,"0")+":"+S(x,2,"0")},m:function F(I,q){if(I.date()<q.date())return-F(q,I);var H=12*(q.year()-I.year())+(q.month()-I.month()),x=I.clone().add(H,f),Y=q-x<0,j=I.clone().add(H+(Y?-1:1),f);return+(-(H+(q-x)/(Y?x-j:j-x))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y,w:m,d:u,D:g,h:c,m:i,s,ms:r,Q:h}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},A="en",N={};N[A]=p;var T=function(F){return F instanceof B},$=function F(I,q,H){var x;if(!I)return A;if(typeof I=="string"){var Y=I.toLowerCase();N[Y]&&(x=Y),q&&(N[Y]=q,x=Y);var j=I.split("-");if(!x&&j.length>1)return F(j[0])}else{var Z=I.name;N[Z]=I,x=Z}return!H&&x&&(A=x),x||!H&&A},P=function(F,I){if(T(F))return F.clone();var q=typeof I=="object"?I:{};return q.date=F,q.args=arguments,new B(q)},V=C;V.l=$,V.i=T,V.w=function(F,I){return P(F,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var B=function(){function F(q){this.$L=$(q.locale,null,!0),this.parse(q)}var I=F.prototype;return I.parse=function(q){this.$d=function(H){var x=H.date,Y=H.utc;if(x===null)return new Date(NaN);if(V.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var j=x.match(k);if(j){var Z=j[2]-1||0,U=(j[7]||"0").substring(0,3);return Y?new Date(Date.UTC(j[1],Z,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)):new Date(j[1],Z,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)}}return new Date(x)}(q),this.$x=q.x||{},this.init()},I.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},I.$utils=function(){return V},I.isValid=function(){return this.$d.toString()!==b},I.isSame=function(q,H){var x=P(q);return this.startOf(H)<=x&&x<=this.endOf(H)},I.isAfter=function(q,H){return P(q)<this.startOf(H)},I.isBefore=function(q,H){return this.endOf(H)<P(q)},I.$g=function(q,H,x){return V.u(q)?this[H]:this.set(x,q)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(q,H){var x=this,Y=!!V.u(H)||H,j=V.p(q),Z=function(v,W){var Q=V.w(x.$u?Date.UTC(x.$y,W,v):new Date(x.$y,W,v),x);return Y?Q:Q.endOf(u)},U=function(v,W){return V.w(x.toDate()[v].apply(x.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(W)),x)},R=this.$W,E=this.$M,z=this.$D,D="set"+(this.$u?"UTC":"");switch(j){case y:return Y?Z(1,0):Z(31,11);case f:return Y?Z(1,E):Z(0,E+1);case m:var O=this.$locale().weekStart||0,M=(R<O?R+7:R)-O;return Z(Y?z-M:z+(6-M),E);case u:case g:return U(D+"Hours",0);case c:return U(D+"Minutes",1);case i:return U(D+"Seconds",2);case s:return U(D+"Milliseconds",3);default:return this.clone()}},I.endOf=function(q){return this.startOf(q,!1)},I.$set=function(q,H){var x,Y=V.p(q),j="set"+(this.$u?"UTC":""),Z=(x={},x[u]=j+"Date",x[g]=j+"Date",x[f]=j+"Month",x[y]=j+"FullYear",x[c]=j+"Hours",x[i]=j+"Minutes",x[s]=j+"Seconds",x[r]=j+"Milliseconds",x)[Y],U=Y===u?this.$D+(H-this.$W):H;if(Y===f||Y===y){var R=this.clone().set(g,1);R.$d[Z](U),R.init(),this.$d=R.set(g,Math.min(this.$D,R.daysInMonth())).$d}else Z&&this.$d[Z](U);return this.init(),this},I.set=function(q,H){return this.clone().$set(q,H)},I.get=function(q){return this[V.p(q)]()},I.add=function(q,H){var x,Y=this;q=Number(q);var j=V.p(H),Z=function(E){var z=P(Y);return V.w(z.date(z.date()+Math.round(E*q)),Y)};if(j===f)return this.set(f,this.$M+q);if(j===y)return this.set(y,this.$y+q);if(j===u)return Z(1);if(j===m)return Z(7);var U=(x={},x[i]=o,x[c]=a,x[s]=l,x)[j]||1,R=this.$d.getTime()+q*U;return V.w(R,this)},I.subtract=function(q,H){return this.add(-1*q,H)},I.format=function(q){var H=this,x=this.$locale();if(!this.isValid())return x.invalidDate||b;var Y=q||"YYYY-MM-DDTHH:mm:ssZ",j=V.z(this),Z=this.$H,U=this.$m,R=this.$M,E=x.weekdays,z=x.months,D=function(W,Q,K,G){return W&&(W[Q]||W(H,Y))||K[Q].slice(0,G)},O=function(W){return V.s(Z%12||12,W,"0")},M=x.meridiem||function(W,Q,K){var G=W<12?"AM":"PM";return K?G.toLowerCase():G},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:R+1,MM:V.s(R+1,2,"0"),MMM:D(x.monthsShort,R,z,3),MMMM:D(z,R),D:this.$D,DD:V.s(this.$D,2,"0"),d:String(this.$W),dd:D(x.weekdaysMin,this.$W,E,2),ddd:D(x.weekdaysShort,this.$W,E,3),dddd:E[this.$W],H:String(Z),HH:V.s(Z,2,"0"),h:O(1),hh:O(2),a:M(Z,U,!0),A:M(Z,U,!1),m:String(U),mm:V.s(U,2,"0"),s:String(this.$s),ss:V.s(this.$s,2,"0"),SSS:V.s(this.$ms,3,"0"),Z:j};return Y.replace(d,function(W,Q){return Q||v[W]||j.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(q,H,x){var Y,j=V.p(H),Z=P(q),U=(Z.utcOffset()-this.utcOffset())*o,R=this-Z,E=V.m(this,Z);return E=(Y={},Y[y]=E/12,Y[f]=E,Y[h]=E/3,Y[m]=(R-U)/6048e5,Y[u]=(R-U)/864e5,Y[c]=R/a,Y[i]=R/o,Y[s]=R/l,Y)[j]||R,x?E:V.a(E)},I.daysInMonth=function(){return this.endOf(f).$D},I.$locale=function(){return N[this.$L]},I.locale=function(q,H){if(!q)return this.$L;var x=this.clone(),Y=$(q,H,!0);return Y&&(x.$L=Y),x},I.clone=function(){return V.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},F}(),L=B.prototype;return P.prototype=L,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",u],["$M",f],["$y",y],["$D",g]].forEach(function(F){L[F[1]]=function(I){return this.$g(I,F[0],F[1])}}),P.extend=function(F,I){return F.$i||(F(I,B,P),F.$i=!0),P},P.locale=$,P.isDayjs=T,P.unix=function(F){return P(1e3*F)},P.en=N[A],P.Ls=N,P.p={},P})})(Wr);var cu=Wr.exports;const Fe=We(cu);var Yr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(b){return(b=+b)+(b>68?1900:2e3)},u=function(b){return function(k){this[b]=+k}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var d=k.match(/([+-]|\d\d)/g),p=60*d[1]+(+d[2]||0);return p===0?0:d[0]==="+"?-p:p}(b)}],f=function(b){var k=i[b];return k&&(k.indexOf?k:k.s.concat(k.f))},h=function(b,k){var d,p=i.meridiem;if(p){for(var S=1;S<=24;S+=1)if(b.indexOf(p(S,0,k))>-1){d=S>12;break}}else d=b===(k?"pm":"PM");return d},y={A:[s,function(b){this.afternoon=h(b,!1)}],a:[s,function(b){this.afternoon=h(b,!0)}],S:[/\d/,function(b){this.milliseconds=100*+b}],SS:[a,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[a,u("day")],Do:[s,function(b){var k=i.ordinal,d=b.match(/\d+/);if(this.day=d[0],k)for(var p=1;p<=31;p+=1)k(p).replace(/\[|\]/g,"")===b&&(this.day=p)}],M:[r,u("month")],MM:[a,u("month")],MMM:[s,function(b){var k=f("months"),d=(f("monthsShort")||k.map(function(p){return p.slice(0,3)})).indexOf(b)+1;if(d<1)throw new Error;this.month=d%12||d}],MMMM:[s,function(b){var k=f("months").indexOf(b)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(b){this.year=c(b)}],YYYY:[/\d{4}/,u("year")],Z:m,ZZ:m};function g(b){var k,d;k=b,d=i&&i.formats;for(var p=(b=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,V,B){var L=B&&B.toUpperCase();return V||d[B]||l[B]||d[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,I,q){return I||q.slice(1)})})).match(o),S=p.length,C=0;C<S;C+=1){var A=p[C],N=y[A],T=N&&N[0],$=N&&N[1];p[C]=$?{regex:T,parser:$}:A.replace(/^\[|\]$/g,"")}return function(P){for(var V={},B=0,L=0;B<S;B+=1){var F=p[B];if(typeof F=="string")L+=F.length;else{var I=F.regex,q=F.parser,H=P.slice(L),x=I.exec(H)[0];q.call(V,x),P=P.replace(x,"")}}return function(Y){var j=Y.afternoon;if(j!==void 0){var Z=Y.hours;j?Z<12&&(Y.hours+=12):Z===12&&(Y.hours=0),delete Y.afternoon}}(V),V}}return function(b,k,d){d.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(c=b.parseTwoDigitYear);var p=k.prototype,S=p.parse;p.parse=function(C){var A=C.date,N=C.utc,T=C.args;this.$u=N;var $=T[1];if(typeof $=="string"){var P=T[2]===!0,V=T[3]===!0,B=P||V,L=T[2];V&&(L=T[2]),i=this.$locale(),!P&&L&&(i=d.Ls[L]),this.$d=function(H,x,Y){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1e3:1)*H);var j=g(x)(H),Z=j.year,U=j.month,R=j.day,E=j.hours,z=j.minutes,D=j.seconds,O=j.milliseconds,M=j.zone,v=new Date,W=R||(Z||U?1:v.getDate()),Q=Z||v.getFullYear(),K=0;Z&&!U||(K=U>0?U-1:v.getMonth());var G=E||0,J=z||0,te=D||0,ee=O||0;return M?new Date(Date.UTC(Q,K,W,G,J,te,ee+60*M.offset*1e3)):Y?new Date(Date.UTC(Q,K,W,G,J,te,ee)):new Date(Q,K,W,G,J,te,ee)}catch{return new Date("")}}(A,$,N),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),B&&A!=this.format($)&&(this.$d=new Date("")),i={}}else if($ instanceof Array)for(var F=$.length,I=1;I<=F;I+=1){T[1]=$[I-1];var q=d.apply(this,T);if(q.isValid()){this.$d=q.$d,this.$L=q.$L,this.init();break}I===F&&(this.$d=new Date(""))}else S.call(this,C)}}})})(Yr);var du=Yr.exports;const uu=We(du);var Xr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){return function(l,o,a){var r=o.prototype,s=r.format;a.en.ordinal=function(i){var c=["th","st","nd","rd"],u=i%100;return"["+i+(c[(u-20)%10]||c[u]||c[0])+"]"},r.format=function(i){var c=this,u=this.$locale();if(!this.isValid())return s.bind(this)(i);var m=this.$utils(),f=(i||"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(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return u.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return u.ordinal(c.week(),"W");case"w":case"ww":return m.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return m.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return m.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(f)}}})})(Xr);var fu=Xr.exports;const mu=We(fu);var Qr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){return function(l,o,a){var r=o.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,h,y,g,b){var k=f.name?f:f.$locale(),d=s(k[h]),p=s(k[y]),S=d||p.map(function(A){return A.slice(0,g)});if(!b)return S;var C=k.weekStart;return S.map(function(A,N){return S[(N+(C||0))%7]})},c=function(){return a.Ls[a.locale()]},u=function(f,h){return f.formats[h]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,b,k){return b||k.slice(1)})}(f.formats[h.toUpperCase()])},m=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):i(f,"months")},monthsShort:function(h){return h?h.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return u(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},a.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return u(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(f){return i(c(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return i(c(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return i(c(),"weekdaysMin","weekdays",2,f)}}})})(Qr);var pu=Qr.exports;const hu=We(pu);var Gr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){var l="week",o="year";return function(a,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(o).add(1,o).date(u),f=s(this).endOf(l);if(m.isBefore(f))return 1}var h=s(this).startOf(o).date(u).startOf(l).subtract(1,"millisecond"),y=this.diff(h,l,!0);return y<0?s(this).startOf("week").week():Math.ceil(y)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Gr);var gu=Gr.exports;const yu=We(gu);var Zr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){return function(l,o){o.prototype.weekYear=function(){var a=this.month(),r=this.week(),s=this.year();return r===1&&a===11?s+1:a===0&&r>=52?s-1:s}}})})(Zr);var ku=Zr.exports;const bu=We(ku);var Jr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){return function(l,o,a){o.prototype.dayOfYear=function(r){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(Jr);var Su=Jr.exports;const Cu=We(Su);var _r={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){return function(l,o){o.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(_r);var wu=_r.exports;const Nu=We(wu);var es={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){return function(l,o){o.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(es);var Bu=es.exports;const Au=We(Bu);Fe.extend(hu),Fe.extend(mu),Fe.extend(uu),Fe.extend(yu),Fe.extend(bu),Fe.extend(Cu),Fe.extend(Nu),Fe.extend(Au);const le={format(e,n){return Fe(e).format(n)},parser(e,n){return Fe(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,l){const a=new Date(e+"/"+n+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const l=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[l,o,a].join(n)},getDay(e,n){e=e||0;let l=n??new Date;const o=e*(1e3*60*60*24);return l=new Date(l.getTime()+o),this.date2Str(l)},compareDate(e,n){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(l>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,l==o},getMonthWeek:function(e,n,l,o=0){const a=new Date(Number(e),parseInt(n)-1,Number(l));let r=a.getDay(),s=a.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,l,o=0){const a=new Date(Number(e),parseInt(n)-1,Number(l)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);let i=a.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,l,o=0){const a=new Date(Number(e),parseInt(n)-1,Number(l)),r=a.getTime();let s=a.getDay();if(o===0){const c=r-s*864e5,u=r+(6-s)*864e5,m=this.date2Str(new Date(c)),f=this.date2Str(new Date(u));return[m,f]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,u=r+(7-s)*i,m=this.date2Str(new Date(c)),f=this.date2Str(new Date(u));return[m,f]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=le.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=le.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,l){const o=new Date(new Date(n).setDate(n.getDate()+l)),a=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s},inScope4Month(e,n,l){const o=new Date(new Date(n).setMonth(n.getMonth()+l)),a=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s}},ts=new Date().getFullYear(),Fo={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"},En=(e,n,l)=>{let o;if(ve(n)?o=n:typeof n=="string"&&ye(n)>0?o=le.parser(n,l):o=new Date,o.toString()==="Invalid Date")return null;let a=Math.max(o.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Ro=(e,n,l)=>{ve(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),le.format(new Date(o),l)};let vo={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},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(ts-10,0,1),validator:ve},maxDate:{type:Date,default:()=>new Date(ts+10,11,31),validator:ve},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:$u,scope:Tu}=X("date-picker"),Vu=$u({components:{[ht.name]:ht},props:{...vo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(Tu),o={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds")},a=t.ref(!1);t.watch(()=>e.visible,d=>{a.value=d});function r(d,p){return new Date(d,p,0).getDate()}const s=(d,p)=>{const S=e[`${d}Date`],C=S.getFullYear();let A=1,N=1,T=0,$=0;d==="max"&&(A=12,N=r(p.getFullYear(),p.getMonth()+1),T=23,$=59);const P=$;return p.getFullYear()===C&&(A=S.getMonth()+1,p.getMonth()+1===A&&(N=S.getDate(),p.getDate()===N&&(T=S.getHours(),p.getHours()===T&&($=S.getMinutes())))),{[`${d}Year`]:C,[`${d}Month`]:A,[`${d}Date`]:N,[`${d}Hour`]:T,[`${d}Minute`]:$,[`${d}Seconds`]:P}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:d,maxDate:p,maxMonth:S,maxHour:C,maxMinute:A,maxSeconds:N}=s("max",h.value),{minYear:T,minDate:$,minMonth:P,minHour:V,minMinute:B,minSeconds:L}=s("min",h.value);let F=[{type:"year",range:[T,d]},{type:"month",range:[P,S]},{type:"day",range:[$,p]},{type:"hour",range:[V,C]},{type:"minute",range:[B,A]},{type:"seconds",range:[L,N]}];switch(e.type){case"date":F=F.slice(0,3);break;case"datetime":F=F.slice(0,5);break;case"time":F=F.slice(3,6);break;case"year-month":F=F.slice(0,2);break;case"month-day":F=F.slice(1,3);break;case"datehour":F=F.slice(0,4);break;case"hour-minute":F=F.slice(3,5);break}return F}),c=(d,p,S)=>{if(!(p>d))return null;const C=[];for(;d<=p;)e.isShowChinese?C.push({text:d+o[S],value:d}):C.push({text:`${d}`,value:d}),S==="minute"?d+=e.minuteStep:d++;return C},u=t.computed(()=>{let d=[];return i.value.forEach(p=>{let S=c(p.range[0],p.range[1],p.type);S&&d.push(S)}),d}),m=(d,p)=>d==="year"?p.getFullYear():d==="month"?p.getMonth()+1:d==="day"?p.getDate():d==="hour"?p.getHours():d==="minute"?p.getMinutes():d==="seconds"?p.getSeconds():0,f=t.ref(),h=t.ref(null);t.watchEffect(()=>{let d,p=e.modelValue;if(typeof p=="string"?p.length==0?d=new Date:e.valueFormat?d=En(e,e.modelValue,e.valueFormat):d=En(e,p,Fo[e.type]):ve(p)?d=p:d=new Date,!!d&&(!h.value||d.getTime()!==h.value.getTime())){h.value=d;let S=[];i.value.forEach(C=>{let A=m(C.type,d);S.push(A)}),f.value=S}});const y=d=>{if(e.type==="date"){let p=d;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])))}else if(e.type==="datetime"){let p=d;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3],p[4])}else if(e.type==="time"){let p=d,S=h.value??new Date,C=new Date(S.getFullYear(),S.getMonth(),S.getDate(),p[0],p[1],p[2]);h.value=C}else if(e.type==="year-month"){let p=d,S=new Date(p[0],p[1]-1);h.value=S}else if(e.type==="month-day"){let p=d,S=h.value??new Date,C=new Date(S.getFullYear(),p[0]-1,p[1]);h.value=C}else if(e.type==="datehour"){let p=d;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3])}else if(e.type==="hour-minute"){let p=d,S=h.value??new Date,C=new Date(S.getFullYear(),S.getMonth(),S.getDate(),p[0],p[1]);h.value=C}f.value=d};return{columns:u,dateIndexs:f,show:a,onClose:()=>{a.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:d=>{y(d),a.value=!1;let p=h.value??new Date;if(e.valueFormat){let S=Ro(e,p,e.valueFormat);n("update:modelValue",S)}else n("update:modelValue",p);n("update:visible",!1),n("confirm",d)},onClear:()=>{n("clear")}}}});function Eu(e,n,l,o,a,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Dn=_(Vu,[["render",Eu]]);function Du(e){let n=e.format;if(!n){let l=e.type??"date";n=Fo[l]}return n}function Iu(e,n,l,o,a,r,s=!1){return{props:{...ue,...fe,...vo,format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const u=Be(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:f}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),y=h(i,["placeholder"]),g=t.ref(!1),k=De(i,"modelValue",E=>E==null?null:typeof E=="string"?E.length==0?null:i.valueFormat?En(i,E,i.valueFormat)??E:En(i,E,Fo[i.type])??E:ve(E)?E:null),d=t.computed(()=>{if(!k.value)return"";const E=Du(i);return Ro(i,k.value,E)}),p="fox-input-item",S=t.computed(()=>({[p]:!0,[`${p}__disabled`]:u.value})),C=Ae(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const E={};return C.value&&(E["text-align"]=C.value),E}),N=t.ref(!1),T=()=>{N.value=!0},$=()=>{N.value=!1};c.expose({showPicker:T,hidePicker:$});const P=E=>{N.value=E},V=E=>{if(k.value=E,i.valueFormat){let z=Ro(i,E,i.valueFormat);f("update:modelValue",z,{}),f("change",z,{})}else f("update:modelValue",E,{}),f("change",E,{})},B=E=>{let D=E.target.value;g.value=!0,f("focus",D,E)},L=E=>{setTimeout(()=>{g.value=!1},0);let D=E.target.value;i.maxLength&&D.length>Number(i.maxLength)&&(D=D.slice(0,Number(i.maxLength))),f("blur",D,E)},F=t.computed(()=>({[`${p}__append`]:!0})),I=t.computed(()=>ye(i.unit)>0),q=t.computed(()=>ye(i.unit)>0&&!g.value),H=t.computed(()=>({hidden:!q.value})),x=E=>{k.value="",f("update:modelValue","",E),f("change","",E),f("clear",""),$()},Y=t.computed(()=>i.clearable&&!u.value&&!m.value),j=t.computed(()=>{let E=ye(k.value)>0;return i.clearable&&E&&g.value}),Z=E=>{j.value?x(E):T()},U=t.computed(()=>j.value&&Y.value?o:a),R=t.computed(()=>({action:!0}));return()=>{const E={class:S.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:T,onFocus:B,onBlur:L};s&&(E.disabled=!0);const z=[],D=t.h("input",E);z.push(D);const O=[],M={class:["action-icon"]},v=t.h(U.value,M),W={class:R.value,onClick:Z},Q=t.h("view",W,{default:()=>[v]});if(O.push(Q),I.value){const be=t.h("view",{class:H.value},[i.unit]);O.push(be)}const K={class:F.value},G=t.h("view",K,{default:()=>O});z.push(G);const J={default:()=>z};J.label=c.slots.default,J.prepend=c.slots.prepend,J.append=c.slots.append,J.fixedPreTip=c.slots.fixedPreTip,J.fixedTip=c.slots.fixedTip;const te=he(i,vo);te.valueFormat=null,te.disabled=!1,te.readonly=u.value||m.value,te.visible=N.value,te["onUpdate:visible"]=P,te.modelValue=k.value,te["onUpdate:modelValue"]=V,te.onClear=x;const ee={};if(c.slots.top){const be=c.slots.top();ee.top=()=>be}if(c.slots.bottom){const be=c.slots.bottom();ee.default=()=>be}const oe=t.h(r,te,ee);J.hide=()=>[oe];const ae=he(i,fe,ue);return t.h(l,ae,J)}}}}const{create:xu,componentName:qu,scope:Mu}=X("date-item"),Oo=xu(Iu(qu,Mu,Ce,ne.CircleClose,ne.Date,Dn,!1)),zu=39,Pu=64,{create:Lu,scope:Fu}=X("calendar-pane"),Ru=Lu({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:le.getDay(0)},endDate:{type:String,default:le.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:l}){const{toLocaleRefs:o,t:a}=re.useFoxI18n(Fu),r=o(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(a("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),u=t.ref(null),m=t.ref(null),f=t.ref(null),h=t.ref(0),y=t.computed(()=>d.monthsData.slice(d.defaultRange[0],d.defaultRange[1])),g=t.computed(()=>l.btn),b=t.computed(()=>l["top-info"]),k=t.computed(()=>l["bottom-info"]),d=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}),p=M=>M.split("-"),S=M=>le.isEqual(d.currDate[0],M),C=M=>le.isEqual(d.currDate[1],M),A=M=>d.currDate?.length>0?d.currDate?.some(v=>le.isEqual(v,M)):!1,N=(M,v)=>v.curData[0]+"-"+v.curData[1]+"-"+le.getNumTwoBit(+M.day),T=(M,v)=>{const W=N(M,v),{type:Q}=e;return M.type=="curr"?le.isEqual(d.currDate,W)||(Q=="range"||Q=="week")&&(S(W)||C(W))||Q=="multiple"&&A(W)?`${d.dayPrefix}--active`:d.propStartDate&&le.compareDate(W,d.propStartDate)||d.propEndDate&&le.compareDate(d.propEndDate,W)?`${d.dayPrefix}--disabled`:(Q=="range"||Q=="week")&&Array.isArray(d.currDate)&&Object.values(d.currDate).length==2&&le.compareDate(d.currDate[0],W)&&le.compareDate(W,d.currDate[1])?`${d.dayPrefix}--choose`:null:`${d.dayPrefix}--disabled`},$=()=>{const{type:M}=e;if(M=="range"&&d.chooseData.length==2||M!="range"){let v=d.chooseData.slice(0);M=="week"&&(v={weekDate:[V(d.chooseData[0]),V(d.chooseData[1])]}),n("choose",v),e.poppable&&n("update")}},P=(M,v,W=!1)=>{if(T(M,v)!=`${d.dayPrefix}--disabled`){const{type:Q}=e;let[K,G]=v.curData,J=[...v.curData];if(J[2]=le.getNumTwoBit(Number(M.day)),J[3]=`${J[0]}-${J[1]}-${J[2]}`,J[4]=le.getWhatDay(+J[0],+J[1],+J[2]),Q=="multiple")if(d.currDate?.length>0){let te;d.currDate?.forEach((ee,oe)=>{ee==J[3]&&(te=oe)}),W?d.chooseData.push([...J]):te!==void 0?(d.currDate.splice(te,1),d.chooseData.splice(te,1)):(d.currDate.push(J[3]),d.chooseData.push([...J]))}else d.currDate=[J[3]],d.chooseData=[[...J]];else if(Q=="range"){let te=Object.values(d.currDate).length;te==2||te==0?d.currDate=[J[3]]:le.compareDate(d.currDate[0],J[3])?Array.isArray(d.currDate)&&d.currDate.push(J[3]):Array.isArray(d.currDate)&&d.currDate.unshift(J[3]),d.chooseData.length==2||!d.chooseData.length?d.chooseData=[[...J]]:le.compareDate(d.chooseData[0][3],J[3])?d.chooseData=[...d.chooseData,[...J]]:d.chooseData=[[...J],...d.chooseData]}else if(Q=="week"){let te=le.getWeekDate(K,G,M.day,e.firstDayOfWeek);d.propStartDate&&le.compareDate(te[0],d.propStartDate)&&te.splice(0,1,d.propStartDate),d.propEndDate&&le.compareDate(d.propEndDate,te[1])&&te.splice(1,1,d.propEndDate),d.currDate=te,d.chooseData=[le.formatResultDate(te[0]),le.formatResultDate(te[1])]}else d.currDate=J[3],d.chooseData=[...J];if(!W){let te=d.chooseData;Q=="week"&&(te={weekDate:[V(d.chooseData[0]),V(d.chooseData[1])]}),n("select",te),(e.isAutoBackFill||!e.poppable)&&$()}}},V=M=>{let[v,W,Q]=M;return{date:M,monthWeekNum:le.getMonthWeek(v,W,Q,e.firstDayOfWeek),yearWeekNum:le.getYearWeek(v,W,Q,e.firstDayOfWeek)}},B=M=>{const v=M=="prev"?d.monthsData[0]:d.monthsData[d.monthsData.length-1];let W=parseInt(v.curData[0]),Q=parseInt(v.curData[1].toString().replace(/^0/,""));switch(M){case"prev":Q==1&&(W-=1),Q=Q==1?12:--Q;break;case"next":Q==12&&(W+=1),Q=Q==12?1:++Q;break}return[W+"",le.getNumTwoBit(Q),le.getMonthDays(String(W),String(Q))+""]},L=(M,v,W)=>{let{year:Q,month:K}=W;return v=="prev"&&M>=7&&(M-=7),Array.from(Array(M),(G,J)=>({day:String(J+1),type:v,year:Q,month:K}))},F=(M,v,W,Q)=>{M=M-e.firstDayOfWeek;let{year:K,month:G}=W;return v=="prev"&&M>=7&&(M-=7),Array.from(Array(Q),(te,ee)=>({day:String(ee+1),type:v,year:K,month:G})).slice(Q-M)},I=(M,v)=>{const W=le.getMonthPreDay(+M[0],+M[1]);let Q=Number(M[1])-1,K=Number(M[0]);Q<=0&&(Q=12,K+=1);const G=le.getMonthDays(String(M[0]),String(M[1])),J=le.getMonthDays(K+"",Q+""),te={year:M[0],month:M[1]},ee={curData:M,title:a("monthTitle",{year:te.year,month:te.month}),monthData:[...F(W,"prev",{month:String(Q),year:String(K)},J),...L(G,"curr",te)],cssHeight:0,cssScrollHeight:0},oe=ee.monthData.length>35?6:5;ee.cssHeight=zu+Pu*oe;let ae=0;d.monthsData.length>0&&(ae=d.monthsData[d.monthsData.length-1].cssScrollHeight+d.monthsData[d.monthsData.length-1].cssHeight),ee.cssScrollHeight=ae,v=="next"?(!d.endData||!le.compareDate(`${d.endData[0]}-${d.endData[1]}-${le.getMonthDays(d.endData[0],d.endData[1])}`,`${M[0]}-${M[1]}-${M[2]}`))&&d.monthsData.push(ee):!d.startData||!le.compareDate(`${M[0]}-${M[1]}-${M[2]}`,`${d.startData[0]}-${d.startData[1]}-01`)?d.monthsData.unshift(ee):d.unLoadPrev=!0},q=()=>{let M=e.startDate?e.startDate:le.getDay(0),v=e.endDate?e.endDate:le.getDay(365);d.propStartDate=M,d.propEndDate=v,d.startData=p(M),d.endData=p(v),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(d.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const W={year:Number(d.startData[0]),month:Number(d.startData[1])},Q={year:Number(d.endData[0]),month:Number(d.endData[1])};let K=Q.month-W.month;Q.year-W.year>0&&(K=K+12*(Q.year-W.year)),K<=0&&(K=1),I(d.startData,"next");let G=1;do I(B("next"),"next");while(G++<K);if(d.monthsNum=K,e.type=="range"&&Array.isArray(d.currDate))d.currDate.length>0&&(M&&le.compareDate(d.currDate[0],M)&&d.currDate.splice(0,1,M),v&&le.compareDate(v,d.currDate[1])&&d.currDate.splice(1,1,v),d.defaultData=[...p(d.currDate[0]),...p(d.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let J=[],te={};d.currDate.forEach(ee=>{M&&!le.compareDate(ee,M)&&v&&!le.compareDate(v,ee)&&(Object.hasOwnProperty.call(te,ee)||(J.push(ee),te[ee]=ee))}),d.currDate=[...J],d.defaultData=[...p(J[0])]}}else if(e.type=="week"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let[J,te,ee]=p(d.currDate[0]),oe=le.getWeekDate(J,te,ee,e.firstDayOfWeek);d.currDate=oe,M&&le.compareDate(d.currDate[0],M)&&d.currDate.splice(0,1,M),v&&le.compareDate(v,d.currDate[1])&&d.currDate.splice(1,1,v),d.defaultData=[...p(d.currDate[0]),...p(d.currDate[1])]}}else d.currDate&&(M&&le.compareDate(d.currDate,M)?d.currDate=M:v&&!le.compareDate(d.currDate,v)&&(d.currDate=v),d.defaultData=[...p(d.currDate)])};Ve({scrollToDate:M=>{le.compareDate(M,d.propStartDate)?M=d.propStartDate:le.compareDate(M,d.propEndDate)||(M=d.propEndDate);let v=p(M);d.monthsData.forEach((W,Q)=>{if(W.title==a("monthTitle",{year:v[0],month:v[1]})&&c.value){let K=d.monthsData[Q].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let G=0,J=setInterval(()=>{if(G++,c.value){let te=K/10;c.value.scrollTop=c.value.scrollTop+te}G>=10&&(clearInterval(J),c.value&&(c.value.scrollTop=d.monthsData[Q].cssScrollHeight))},40)}else c.value.scrollTop=d.monthsData[Q].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)},doLayout:()=>{let M=0,v=0;d.defaultData.length>0&&d.monthsData.forEach((K,G)=>{K.title==a("monthTitle",{year:d.defaultData[0],month:d.defaultData[1]})&&(M=G),(e.type=="range"||e.type=="week")&&K.title==a("monthTitle",{year:d.defaultData[3],month:d.defaultData[4]})&&(v=G)}),j(d.monthsNum,M),d.currentIndex=M,d.yearMonthTitle=d.monthsData[d.currentIndex].title,d.defaultData.length>0&&(d.isRange?(P({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0),P({day:d.defaultData[5],type:"curr"},d.monthsData[v],!0)):e.type=="week"?P({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0):e.type=="multiple"?[...d.currDate].forEach(K=>{let G=p(K),J=d.currentIndex;d.monthsData.forEach((te,ee)=>{te.title==a("monthTitle",{year:G[0],month:G[1]})&&(J=ee)}),P({day:G[2],type:"curr"},d.monthsData[J],!0)}):P({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0));let W=d.monthsData[d.monthsData.length-1],Q=W.cssHeight+W.cssScrollHeight;Ye(()=>{c?.value&&u?.value&&f?.value&&(h.value=c.value.clientHeight,u.value.style.height=`${Q}px`,c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)}),d.avgHeight=Math.floor(Q/(d.monthsNum+1))}});const j=(M,v)=>{M>=3?v>0&&v<M?d.defaultRange=[v-1,v+3]:v==0?d.defaultRange=[v,v+4]:v==M&&(d.defaultRange=[v-2,v+2]):d.defaultRange=[0,M+2];let W=d.monthsData[d.defaultRange[0]].cssScrollHeight;d.translateY=W},Z=(M,v)=>(e.type=="range"||e.type=="week")&&M.type=="curr"&&T(M,v)=="fox-calendar__day--active",U=(M,v)=>Z(M,v)&&S(N(M,v)),R=(M,v)=>d.currDate.length>=2&&C(N(M,v))?Z(M,v):!1,E=()=>{if(d.currDate.length>=2)return le.isEqual(d.currDate[0],d.currDate[1])},z=M=>{const v=`${M.year}-${M.month}-${Number(M.day)<10?"0"+M.day:M.day}`;return le.isEqual(v,le.date2Str(new Date))},D=M=>{if(d.monthsData.length<=1)return;const v=M.target.scrollTop;let W=Math.floor(v/d.avgHeight);if(W==0)v>=d.monthsData[W+1].cssScrollHeight&&(W+=1);else if(W>0&&W<d.monthsNum-1)v>=d.monthsData[W+1].cssScrollHeight&&(W+=1),v<d.monthsData[W].cssScrollHeight&&(W-=1);else{const Q=Math.round(v+h.value);Q<d.monthsData[W].cssScrollHeight+d.monthsData[W].cssHeight&&v>d.monthsData[W-1].cssScrollHeight&&(W-=1),W+1<=d.monthsNum&&Q>=d.monthsData[W+1].cssScrollHeight+d.monthsData[W+1].cssHeight&&(W+=1),W>=1&&v<d.monthsData[W-1].cssScrollHeight&&(W-=1)}d.currentIndex!==W&&(d.currentIndex=W,j(d.monthsNum,W)),d.yearMonthTitle=d.monthsData[W].title},O=()=>{d.chooseData.splice(0),d.monthsData.splice(0),q()};return q(),t.watch(()=>e.defaultValue,M=>{M&&e.poppable&&O()}),{weeks:i,compConthsData:y,showTopBtn:g,topInfo:b,bottomInfo:k,rangeTip:E,mothsViewScroll:D,getClass:T,isStartTip:U,isEndTip:R,chooseDay:P,isCurrDay:z,confirm:$,months:c,...t.toRefs(d),...t.toRefs(e),...r,monthsPanel:u,weeksPanel:m,viewArea:f}}}),vu={class:"fox-calendar__header"},Ou={key:0,class:"fox-calendar__header-title"},Ku={key:1,class:"fox-calendar__header-slot"},Uu={key:2,class:"fox-calendar__header-subtitle"},Hu={class:"fox-calendar__weekdays",ref:"weeksPanel"},ju={class:"fox-calendar__panel",ref:"monthsPanel"},Wu={class:"fox-calendar__month-title"},Yu={class:"fox-calendar__days"},Xu=["onClick"],Qu={class:"fox-calendar__day-value"},Gu={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Zu={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Ju={key:2,class:"fox-calendar__day-tips--curr"},_u={key:4,class:"fox-calendar__day-tip"},ef={key:0,class:"fox-calendar__footer"};function tf(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",vu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Ou,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",Uu,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Hu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",ju,[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,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:i},[t.createElementVNode("view",Wu,t.toDisplayString(s.title),1),t.createElementVNode("view",Yu,[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(s.monthData,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",Qu,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Gu,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Zu,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",Ju,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,s)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,s)?(t.openBlock(),t.createElementBlock("view",_u,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Xu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",ef,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const ns=_(Ru,[["render",tf]]),nf=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Ko={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}},{create:of}=X("calendar"),lf=of({components:{[ns.name]:ns,[de.name]:de},props:{...Ko},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:l}){const o=t.computed(()=>l.btn),a=t.computed(()=>l["top-info"]),r=t.computed(()=>l.day),s=t.computed(()=>l["bottom-info"]),i=t.ref(null),c=b=>{i.value?.scrollToDate(b)},u=()=>{i.value?.initPosition()};t.watch(()=>e.visible,b=>{b&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Ve({scrollToDate:c,initPosition:u});const m=()=>{n("update:visible",!1)},f=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{f()},update:m,close:f,select:b=>{n("select",b)},choose:b=>{f(),n("choose",b)},calendarRef:i,showTopBtn:o,topInfo:a,dayInfo:r,bottomInfo:s}}});function af(e,n,l,o,a,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const In=_(lf,[["render",af]]),Uo=(e,n)=>{let l;return ve(e)?l=e:typeof e=="string"&&ye(e)>0?l=le.parser(e,n):l=new Date,l},gt=(e,n,l)=>(ve(n)||(n=new Date),le.format(n,l)),yt=e=>{let n=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,o=`${e.getDate()}`,a=le.date2Str(e),r=le.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,l,o,a,r]};function rf(e,n,l,o,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...ue,...fe,...Ko,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}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const u=Be(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:f}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),y=h(i,["placeholder"]),g=t.ref(!1),b=t.computed(()=>i.type==="range"),k=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),d=()=>{k.startDate!==null&&(k.startDate=null,k.endDate=null,k.startArray=[],k.endArray=[])},p=(D,O="one",M="YYYY-MM-DD")=>{if(nf(D)){d();return}if(b.value&&Array.isArray(D)&&D.length==2){let v,W;typeof D[0]=="string"?(v=Uo(D[0],M),W=Uo(D[1],M)):(v=D[0],W=D[1]);let Q=yt(v),K=yt(W);(k.startDate===null||k.startDate.getTime()!==v.getTime()||k.endDate?.getTime()!==W.getTime())&&(k.startDate=v,k.startArray=Q,k.endDate=W,k.endArray=K)}else{let v;typeof D=="string"?v=Uo(D,M):v=D;let W=yt(v);(k.startDate===null||k.startDate.getTime()!==v.getTime())&&(k.startDate=v,k.startArray=W)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,D=>{p(D,i.type,i.valueFormat)});const S=t.computed(()=>{if(k.startDate===null)return"";if(b.value){let D=gt(i,k.startDate,i.format),O=gt(i,k.endDate,i.format);return`${D} ${i.rangeSeparator} ${O}`}else{let D=gt(i,k.startDate,i.format);return i.showWeek&&(D=`${D} ${k.startArray[4]}`),D}}),C=t.computed(()=>{if(k.startDate===null)return null;if(b.value){let D=le.date2Str(k.startDate),O=le.date2Str(k.endDate??new Date);return[D,O]}else return le.date2Str(k.startDate)}),A="fox-input-item",N=t.computed(()=>({[A]:!0,[`${A}__disabled`]:u.value})),T=Ae(t.computed(()=>i.textAlign),"textAlign"),$=t.computed(()=>{const D={};return T.value&&(D["text-align"]=T.value),D}),P=t.ref(!1),V=()=>{m.value||u.value||(P.value=!0)},B=D=>{P.value=D},L=D=>{if(D){if(b.value&&Array.isArray(D)){let O=D[0],M=me(O[0]),v=me(O[1]),W=me(O[2]),Q=new Date(M,v-1,W),K=D[1];M=me(K[0]),v=me(K[1]),W=me(K[2]);let G=new Date(M,v-1,W);if(k.startDate=Q,k.startArray=yt(Q),k.endDate=G,k.endArray=yt(G),i.valueFormat){let J=gt(i,Q,i.valueFormat),te=gt(i,G,i.valueFormat);f("update:modelValue",[J,te],{})}else f("update:modelValue",[Q,G],{})}else{let O=D,M=me(O[0]),v=me(O[1]),W=me(O[2]),Q=new Date(M,v-1,W);if(k.startDate=Q,k.startArray=yt(Q),i.valueFormat){let K=gt(i,Q,i.valueFormat);f("update:modelValue",K,{})}else f("update:modelValue",Q,{})}f("change",D,{})}},F=D=>{let M=D.target.value;g.value=!0,f("focus",M,D)},I=D=>{setTimeout(()=>{g.value=!1},0);let M=D.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),f("blur",M,D)},q=t.computed(()=>({[`${A}__append`]:!0})),H=t.computed(()=>ye(i.unit)>0),x=t.computed(()=>ye(i.unit)>0&&!g.value),Y=t.computed(()=>({hidden:!x.value})),j=D=>{d(),f("update:modelValue",null,D),f("change","",D),f("clear","")},Z=t.computed(()=>i.clearable&&!u.value&&!m.value),U=t.computed(()=>{let D=ye(S.value)>0;return i.clearable&&D&&g.value}),R=D=>{U.value?j(D):V()},E=t.computed(()=>U.value&&Z.value?a:r),z=t.computed(()=>({action:!0}));return()=>{const D={class:N.value,style:$.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:S.value,onClick:V,onFocus:F,onBlur:I};s&&(D.disabled=!0);const O=[],M=t.h("input",D);O.push(M);const v=[],W={class:["action-icon"]},Q=t.h(E.value,W),K={class:z.value,onClick:R},G=t.h("view",K,{default:()=>[Q]});if(v.push(G),H.value){const it=t.h("view",{class:Y.value},[i.unit]);v.push(it)}const J={class:q.value},te=t.h("view",J,{default:()=>v});O.push(te);const ee={default:()=>O};ee.label=c.slots.default,ee.prepend=c.slots.prepend,ee.append=c.slots.append,ee.fixedPreTip=c.slots.fixedPreTip,ee.fixedTip=c.slots.fixedTip;const oe=he(i,Ko);oe.visible=P.value,oe["onUpdate:visible"]=B,oe["default-value"]=C.value,oe.onChoose=L;const ae={};if(c.slots.btn){const it=c.slots.btn();ae.btn=()=>it}c.slots.day&&(ae.day=c.slots.day),c.slots.topInfo&&(ae.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(ae.bottomInfo=c.slots.bottomInfo);const Ie=t.h(l,oe,ae);ee.hide=()=>[Ie];const be=he(i,fe,ue);return t.h(o,be,ee)}}}}const{componentName:sf,create:cf,scope:df}=X("calendar-item"),Ho=cf(rf(sf,df,In,Ce,{CloseIcon:ne.CircleClose,MarkIcon:ne.Date},!1)),uf={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function ff(e,{CheckNormal:n,Checked:l}){return{props:{...uf},setup(o,{emit:a,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===o.label),c=t.computed(()=>o.disabled?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),u=t.computed(()=>s.position),m=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const b=ie(o.iconSize),k=o.checkedIcon??l;return t.h(k,{width:b,height:b,class:c.value})}}else{if(r.icon)return r.icon();{const b=ie(o.iconSize),k=o.icon??n;return t.h(k,{width:b,height:b,class:c.value})}}},f=()=>t.h("view",{class:`${e}__label ${o.disabled?`${e}__label--disabled`:""}`},r.default?.()),h=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${o.disabled?`${e}__button--disabled`:""}`},r.default?.()),y=()=>{i.value||o.disabled||o.readonly||s.updateValue(o.label)},g=u.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${g?`${e}--reverse`:""}`,onClick:y},[o.shape=="button"?h():g?[f(),m()]:[m(),f()]])}}}const{componentName:mf,create:pf}=X("radio"),xn=pf(ff(mf,{CheckNormal:ne.CheckNormal,Checked:ne.CheckChecked})),{componentName:os,create:hf}=X("radio-group"),qn=hf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{emit:n,slots:l}){const o=a=>n("update:modelValue",a);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:o}),t.watch(()=>e.modelValue,a=>n("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),t.h("view",{class:`${os} ${os}--${e.direction}`,style:a},l.default?.())}}});function ls(e,n,l,o="value"){for(let a=0;a<n.length;a++){let r=n[a];if(o==="text"){if(Mn(e,r)===l)return a}else if(o==="item"){if(qe(l,r))return a}else if(zt(e,r)===l)return a}return-1}function Mn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function zt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function gf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function yf(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let kf=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);let a=Qe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function bf(){const e=t.getCurrentInstance();return new kf(e.proxy)}function Sf(e){return{text:e,value:e}}const as={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Cf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}};function wf(e,n,l,o,a){return{props:{...ue,...fe,...as,...Cf,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"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}},emits:["change","update:modelValue"],setup(r,s){const i=Te(t.computed(()=>r.readonly)),c=Be(t.computed(()=>r.disabled)),u=Ae(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),f=bf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,p])=>{if(d){const S=await f.load("radio",d,p);if(S.length>0)if(typeof S[0]=="string"){const N=S.map(T=>Sf(T));h.value=N}else h.value=S}},{immediate:!0});let y=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([d,p])=>{y.value=ls(r,p,d,r.valueType)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;if(y.value===-1)return null;const d=h.value[y.value];return zt(r,d)}),b=d=>{let p=null,S=null;if(h.value.length>0){let C=ls(r,h.value,d,"value");y.value=C,C>=0&&(S=h.value[C],r.valueType==="text"?p=Mn(r,S):r.valueType==="item"?p=S:p=zt(r,S))}else p=d;m("update:modelValue",p),m("change",p,S)},k=()=>{let d=null,p=null;if(h.value.length>0&&y.value!==-1){let S=h.value[y.value];r.valueType==="text"?d=Mn(r,S):r.valueType==="item"?d=S:d=zt(r,S)}m("update:modelValue",d),m("change",d,p)};if(Ve({clear(){y.value!==-1&&(y.value=-1,k())}}),r.source){const d=()=>{const p=[],S=he(r,as);return h.value.forEach((C,A)=>{const N=zt(r,C),T=gf(r,C);let $={...S,label:N,disabled:T};const P=yf(r,C,A);$={...$,...P},c.value&&($.disabled=!0),i.value&&($.readonly=!0);const V={};if(s.slots.icon&&(V.icon=s.slots.icon),s.slots.checkedIcon&&(V.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const L=s.slots.text(C);V.default=()=>[L]}else{const L=Mn(r,C);V.default=()=>L}let B=t.h(a,$,V);p.push(B)}),p};return()=>{const p=d(),S={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"onUpdate:modelValue":b},C=t.h(o,S,{default:()=>p}),A={default:()=>C};A.label=s.slots.default,A.prepend=s.slots.prepend,A.append=s.slots.append,A.fixedPreTip=s.slots.fixedPreTip,A.fixedTip=s.slots.fixedTip;const N=he(r,fe,ue);return t.h(l,N,A)}}else return()=>{const d=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"update:modelValue":b},{default:()=>d})}}}}const{componentName:Nf,create:Bf,scope:Af}=X("radio-item"),jo=Bf(wf(Nf,Af,Ce,qn,xn)),$f=(e,{CheckNormal:n,Checked:l,Indeterminate:o})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:a.indeterminate});t.watch(()=>a.indeterminate,S=>{c.partialSelect=S});const u=t.computed(()=>!!i),m=t.computed(()=>u.value?i.value.value.includes(a.label):!!a.modelValue),f=t.computed(()=>u.value?i.position:a.textPosition),h=t.computed(()=>a.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":m.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let y="";const g=(S,C)=>{y="click",r("update:modelValue",S),r("change",S,C)};t.watch(()=>a.modelValue,S=>{y=="click"?y="":r("change",S)});const b=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const S=ie(a.iconSize),C=a.indeterminateIcon??o;return t.h(C,{width:S,height:S,class:h.value})}}else if(m.value){if(s.checkedIcon)return s.checkedIcon();{const S=ie(a.iconSize),C=a.checkedIcon??l;return t.h(C,{width:S,height:S,class:h.value})}}else{if(s.icon)return s.icon();{const S=ie(a.iconSize),C=a.icon??n;return t.h(C,{width:S,height:S,class:h.value})}}},k=()=>t.h("view",{class:`${e}__label ${a.disabled?`${e}__label--disabled`:""}`},s.default?.()),d=()=>t.h("view",{class:`${e}__button ${m.value&&`${e}__button--active`} ${a.disabled?`${e}__button--disabled`:""}`},s.default?.()),p=S=>{if(!(a.disabled||a.readonly)){if(m.value&&c.partialSelect){c.partialSelect=!1,g(m.value,s.default?.()[0].children);return}if(g(!m.value,s.default?.()[0].children),u.value){const C=i.value.value,A=i.max.value,{label:N}=a,T=C.indexOf(N);T>-1?C.splice(T,1):T<=-1&&(C.length<A||!A)&&C.push(N),i.updateValue(C)}}};return t.onMounted(()=>{u.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{u.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${a.shape} ${f.value==="left"?`${e}--reverse`:""}`,onClick:p},[a.shape=="button"?d():[b(),k()]])}}),{componentName:Tf,create:Vf}=X("checkbox"),zn=Vf($f(Tf,{CheckNormal:ne.CheckNormal,Checked:ne.Checked,Indeterminate:ne.CheckDisabled})),{create:Ef,componentName:rs}=X("checkbox-group"),Pn=Ef({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n,emit:l}){const o=t.reactive({children:[]}),a=u=>{u.proxy&&o.children.push(u.proxy)},r=u=>{u.proxy&&(o.children=o.children.filter(m=>m!==u.proxy))},s=u=>{l("update:modelValue",u),l("change",u)},i=u=>{const m=[];u&&o.children.forEach(f=>{f?.disabled||m.push(f?.label)}),l("update:modelValue",m)},c=()=>{const u=o.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label);l("update:modelValue",u)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:a,unlink:r}),t.watch(()=>e.modelValue,u=>{l("change",u)}),Ve({toggleAll:i,toggleReverse:c}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),t.h("view",{class:`${rs} ${rs}--${e.direction}`,style:u},n.default?.())}}});function ss(e,n,l,o="value"){for(let a=0;a<n.length;a++){let r=n[a];if(o==="text"){if(Wo(e,r)===l)return a}else if(o==="item"){if(qe(l,r))return a}else if(Ln(e,r)===l)return a}return-1}function Wo(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ln(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Df(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function If(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let xf=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);let a=Qe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function qf(){const e=t.getCurrentInstance();return new xf(e.proxy)}function Mf(e){return{text:e,value:e}}const zf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},is={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}};function Pf(e,n,l,o,a){return{props:{...zf,...is,...ue,...fe,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"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}},emits:["change","update:modelValue"],setup(r,s){const i=Be(t.computed(()=>r.disabled)),c=Be(t.computed(()=>r.readonly)),u=Ae(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),f=qf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,p])=>{if(d){const S=await f.load("checkbox",d,p);if(S.length>0)if(typeof S[0]=="string"){const N=S.map(T=>Mf(T));h.value=N}else h.value=S}},{immediate:!0});const y=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([d,p])=>{const S=[];Array.isArray(d)&&d.forEach(C=>{let A=ss(r,p,C,r.valueType);A!==-1&&S.push(A)}),!qe(S,y.value)&&(y.value=S)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let d=[];return y.value.forEach(p=>{let S=h.value[p];d.push(Ln(r,S))}),d}),b=d=>{let p=[],S=[];if(h.value.length>0){const C=[];Array.isArray(d)&&d.forEach(A=>{let N=ss(r,h.value,A,"value");N!==-1&&C.push(N);const T=h.value[N];S.push(T),r.valueType==="text"?p.push(Wo(r,T)):r.valueType==="item"?p.push(T):p.push(Ln(r,T))}),y.value=C}else p=d;m("update:modelValue",p),m("change",p,S)},k=t.ref();if(Ve({toggleAll:d=>{k.value.toggleAll(d)},toggleReverse:()=>{k.value.toggleReverse()}}),r.source){const d=()=>{const p=[],S=he(r,is);return h.value.forEach((C,A)=>{const N=Ln(r,C),T=Df(r,C);let $={...S,label:N,disabled:T};const P=If(r,C,A);$={...$,...P},i.value&&($.disabled=!0),c.value&&($.readonly=!0);const V={};if(s.slots.icon&&(V.icon=s.slots.icon),s.slots.checkedIcon&&(V.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(V.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const L=s.slots.text(C);V.default=()=>[L]}else{const L=Wo(r,C);V.default=()=>L}let B=t.h(a,$,V);p.push(B)}),p};return()=>{const p=d(),S={class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":b},C=t.h(o,S,{default:()=>p}),A={default:()=>C};A.label=s.slots.default,A.prepend=s.slots.prepend,A.append=s.slots.append,A.fixedPreTip=s.slots.fixedPreTip,A.fixedTip=s.slots.fixedTip;const N=he(r,fe,ue);return t.h(l,N,A)}}else return()=>{const d=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"onUpdate:modelValue":b},{default:()=>d})}}}}const{componentName:Lf,create:Ff,scope:Rf}=X("checkbox-item"),Yo=Ff(Pf(Lf,Rf,Ce,Pn,zn)),Xo={modelValue:{type:[String,Number,Boolean],default:!1},disable:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:vf,create:Of}=X("switch"),Kf=Of({components:{Loading1:ne.Loading1},props:{...Xo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const l=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=vf;return{[i]:!0,[l.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-disable`]:e.disable,[`${i}-base`]:!0}}),a=t.computed(()=>({backgroundColor:l.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disable||e.loading)return;r="click";const c=l.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":n("change",i)}),{classes:o,style:a,isActive:l,onClick:s}}}),Uf={class:"fox-switch-button"};function Hf(e,n,l,o,a,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",Uf,[e.loading?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(s,{name:"loading",color:e.activeColor},null,8,["color"])]):t.createCommentVNode("",!0),e.activeText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label open"},t.toDisplayString(e.activeText),513),[[t.vShow,e.isActive]]),t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label close"},t.toDisplayString(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):t.createCommentVNode("",!0)])],6)}const Fn=_(Kf,[["render",Hf]]);function jf(e,n,l,o){return{props:{...ue,...fe,...Xo},emits:["change","update:modelValue"],setup(a,r){const s=Be(t.computed(()=>a.disabled)),i=Te(t.computed(()=>a.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=e,m=De(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...he(a,Xo),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},g=[],b=t.h(o,y);g.push(b);const k={default:()=>g};k.label=r.slots.default,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const d=he(a,fe,ue);return d["content-class"]=u,t.h(l,d,k)}}}}const{componentName:Wf,create:Yf,scope:Xf}=X("switch-item"),Qo=Yf(jf(Wf,Xf,Ce,Fn));function Qf(e,n,l,o){return{props:{...ue,...fe,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur"],setup(a,r){const{emitEvent:s}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},a.prop??r.attrs.name),{toLocaleRefs:i}=re.useFoxI18n(n),c=i(a,["placeholder"]),u=Be(t.computed(()=>a.disabled)),m=Te(t.computed(()=>a.readonly)),f=De(a,"modelValue"),h=t.computed(()=>({[`${e}`]:!0})),y=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:u.value,[`${e}__placeholder`]:!u.value&&ce(f.value)})),g=Ae(t.computed(()=>a.textAlign),"textAlign"),b=t.computed(()=>{const L={};return g.value&&(L["text-align"]=g.value),L}),k=t.computed(()=>!ce(a.modelValue)||r.slots.main?!0:!!ce(a.desc)),d=t.computed(()=>ce(f.value)?c.placeholder.value:f.value),p=t.computed(()=>!ce(a.desc)||r.slots.sub),S=t.computed(()=>({[`${e}__sub`]:!0})),C=t.computed(()=>{const L={};return g.value&&(L["text-align"]=g.value),L}),A=()=>{s("focus",f.value)},N=()=>{s("blur",f.value)},T=t.computed(()=>({[`${e}__append`]:!0})),$=t.computed(()=>ye(a.unit)>0),P=L=>{u.value==!0||m.value==!0||s("click")},V=t.computed(()=>a.icon??l),B=t.computed(()=>({action:!0}));return()=>{const L=[];if(typeof r.slots.content=="function"){const E=r.slots.content();L.push(E)}else{const E=[];if(k.value){const O={tabIndex:0,class:y.value,style:b.value,onFocus:A,onBlur:N,onClick:P};let M=null;r.slots.main?M=t.h("view",O,[r.slots.main(d.value)]):M=t.h("view",O,[d.value]),E.push(M)}if(p.value){const O={tabIndex:0,class:S.value,style:C.value,onFocus:A,onBlur:N,onClick:P};let M=null;r.slots.sub?M=t.h("view",O,[r.slots.sub(a.desc)]):M=t.h("view",O,[a.desc]),E.push(M)}const z={class:h.value},D=t.h("view",z,E);L.push(D)}const F=[],I=ie(a.iconSize);let q=r.slots.icon;if(!q){const E={width:I,height:I,class:["action-icon"]};q=t.h(V.value,E)}const H={class:B.value,onClick:P},x=t.h("view",H,{default:()=>[q]});if(F.push(x),$.value){const E=t.h("view",{},[a.unit]);F.push(E)}const Y={class:T.value},j=t.h("view",Y,{default:()=>F});L.push(j);const Z={default:()=>L};Z.label=r.slots.default,Z.prepend=r.slots.prepend,Z.append=r.slots.append,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const U=he(a,fe,ue);return t.h(o,U,Z)}}}}const{componentName:Gf,create:Zf,scope:Jf}=X("link-item"),Go=Zf(Qf(Gf,Jf,ne.ArrowRight,Ce)),Zo={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:_f,componentName:em}=X("rate"),tm=_f({props:{...Zo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:l}){const o=t.ref([]),a=t.computed(()=>({[em]:!0})),r=y=>{n("update:modelValue",y),n("change",y)},s=(y,g)=>{if(e.disabled||e.readonly)return;let b=0;g===1&&e.modelValue===g||(b=g,e.allowHalf&&y==2&&(b-=.5)),r(b)},i=(y,g,b)=>{let k=0;for(let d=g.value.length-1;d>=0;d--){const p=g.value[d];if(y>p.offsetLeft){b?k=d+(y>p.offsetLeft+p.clientWidth/2?1:.5):k=d+1;break}}return k},c=He(),u={onTouchStart(y){!e.touchable||e.readonly||c.start(y)},onTouchMove(y){e.touchable&&(c.move(y),c.isHorizontal()&&o.value&&(y.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},m=Math.random().toString(36).slice(-8),f=t.computed(()=>e.customIcon??ne.StarFillN);return{classes:a,...u,onClick:s,toPxDesc:ge,renderIcon:(y,g)=>t.h(y,g),rateRefs:o,refRandomId:m,slots:l,customIcon:f}}}),nm=["id"],om={class:"fox-rate-item__icon--full"},lm={key:0,class:"fox-rate-item__icon--half"},am={key:1,class:"fox-rate-item__icon--half"};function rm(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:t.normalizeStyle(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",om,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=e.modelValue?e.activeColor:e.voidColor})),{class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||s>e.modelValue}]),onClick:i=>e.onClick(1,s)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>s?(t.openBlock(),t.createElementBlock("view",lm,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<s?(t.openBlock(),t.createElementBlock("view",am,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,nm))),128))],34)}const kt=_(tm,[["render",rm]]);function sm(e,n,l,o){return{props:{...ue,...fe,...Zo},emits:["change","update:modelValue"],setup(a,r){const s=Be(t.computed(()=>a.disabled)),i=Te(t.computed(()=>a.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=e,m=De(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...he(a,Zo),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},g=[],b=t.h(o,y);g.push(b);const k={default:()=>g};if(r.slots.default){const S=r.slots.default();k.label=()=>S}const d=he(a,fe,ue);return d["content-class"]=u,t.h(l,d,k)}}}}const{componentName:im,create:cm,scope:dm}=X("rate-item"),Jo=cm(sm(im,dm,Ce,kt)),_o={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},popCloseable:{type:Boolean,required:!1,default:!0},beforeClose:{type:Function}};function um(e,n,l,o="value"){for(let a=0;a<n.length;a++){let r=n[a];if(o==="text"){if(Rn(e,r)===l)return a}else if(o==="item"){if(qe(l,r))return a}else if(ds(e,r)===l)return a}return-1}function Rn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function cs(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function ds(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function fm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function mm(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let pm=class{proxy;constructor(n){this.proxy=n}async load(n,l,o,a,r,s,i){if(Array.isArray(l)){let u=l;typeof i=="function"&&(u=u.filter(i));let m=(o-1)*a,f=m+a;f>u.length&&(f=u.length);const h=u.slice(m,f);return{totalSize:u.length,page:h}}if(typeof l=="function")return await Reflect.apply(l,null,[o,a,r,s]);const c=Qe(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):($e(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[l,o,a,r]))}};function hm(){const e=t.getCurrentInstance();return new pm(e.proxy)}const{componentName:gm,create:ym,scope:km}=X("infinite-loading"),bm=ym({props:{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}},emits:["scroll-change","load-more","update:modelValue"],components:{Loading:ne.Loading},setup(e,{emit:n,slots:l}){const{toLocaleRefs:o}=re.useFoxI18n(km),a=o(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=Or(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[gm]:!0})),u=b=>b?b.offsetTop+u(b.offsetParent):0,m=()=>{let b=0,k=0,d="down";if(s.value==window){const p=so();r.value&&(b=u(r.value)+r.value.offsetHeight-p-window.innerHeight),k=p}else{const{scrollHeight:p,clientHeight:S,scrollTop:C}=s.value;b=p-S-C,k=C}return i.beforeScrollTop>k?d="up":d="down",i.beforeScrollTop=k,n("scroll-change",k),b<=e.threshold&&d=="down"},f=()=>{Ye(()=>{if(!m()||!e.hasMore||i.isInfiniting)return!1;i.isInfiniting=!0,n("update:modelValue",!0),t.nextTick(()=>n("load-more"))})},h=()=>{s.value&&s.value.addEventListener("scroll",f,e.useCapture)},y=()=>{s.value&&s.value.removeEventListener("scroll",f,e.useCapture)};t.onMounted(()=>{h()}),t.onUnmounted(()=>{y()});const g=t.ref(!1);return t.onActivated(()=>{g.value&&(g.value=!1,h())}),t.onDeactivated(()=>{g.value=!0,y()}),t.watch(()=>e.modelValue,b=>{b||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),Sm={class:"fox-infinite__container"},Cm={class:"fox-infinite__bottom"},wm={key:0,class:"fox-infinite__bottom-box"},Nm={class:"fox-infinite__bottom-box__text"},Bm={class:"fox-infinite__bottom-tips"};function Am(e,n,l,o,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"scroller"},[t.createElementVNode("view",Sm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Cm,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",wm,[t.renderSlot(e.$slots,"loading",{},()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[t.createVNode(s,{class:"fox-icon-loading fox-infinite__bottom-box__img"})]),t.createElementVNode("view",Nm,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",Bm,t.toDisplayString(e.loadMoreText),1)])])],2)}const vn=_(bm,[["render",Am]]),{componentName:$m,create:Tm}=X("button"),Vm=Tm({components:{Loading:ne.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:l}){const{type:o,size:a,shape:r,disabled:s,loading:i,color:c,plain:u,block:m}=t.toRefs(e),f=g=>{!i.value&&!s.value&&n("click",g)},h=t.computed(()=>{const g=$m;return{[g]:!0,[`${g}--${o.value}`]:o.value,[`${g}--${a.value}`]:a.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:u.value,[`${g}--block`]:m.value,[`${g}--disabled`]:s.value,[`${g}--loading`]:i.value}}),y=t.computed(()=>{const g={};return c?.value&&(u.value?(g.color=c.value,g.background="#fff",c.value?.includes("gradient")||(g.borderColor=c.value)):(g.color="#fff",g.background=c.value)),g});return{handleClick:f,classes:h,getStyle:y}}}),Em={class:"fox-button__wrap"};function Dm(e,n,l,o,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",Em,[e.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading"})):t.createCommentVNode("",!0),e.$slots.icon&&!e.loading?t.renderSlot(e.$slots,"icon",{key:1}):t.createCommentVNode("",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass({"fox-button__text":e.$slots.icon||e.loading})},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)])],6)}const Me=_(Vm,[["render",Dm]]),{create:Im,scope:xm}=X("searchbar"),qm=Im({props:{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,default:()=>ne.CircleClose},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"}},emits:["change","update:modelValue","blur","focus","clear","search","click-input","click-left-icon","click-right-icon"],setup(e,{emit:n}){const{toLocaleRefs:l}=re.useFoxI18n(xm),o=l(e,["placeholder"]),a=t.reactive({active:!1}),r=t.computed(()=>({background:e.background})),s=t.computed(()=>({background:e.inputBackground})),i=p=>{let C=p.target.value;e.maxLength&&C.length>Number(e.maxLength)&&(C=C.slice(0,Number(e.maxLength))),n("update:modelValue",C,p),n("change",C,p)},c=t.ref({}),u=p=>{let C=p.target.value;a.active=!0,c.value=e.focusStyle,n("focus",C,p)},m=p=>{setTimeout(()=>{a.active=!1},0);let C=p.target.value;e.maxLength&&C.length>Number(e.maxLength)&&(C=C.slice(0,Number(e.maxLength))),c.value={},n("blur",C,p)},f=p=>{n("update:modelValue","",p),n("change","",p),n("clear","")},h=()=>{n("search",e.modelValue)},y=p=>{n("click-input",p)},g=p=>{n("click-left-icon",e.modelValue,p)},b=p=>{n("click-right-icon",e.modelValue,p)},k=t.computed(()=>({textAlign:e.inputAlign})),d=t.ref(null);return t.onMounted(()=>{e.autofocus&&d.value.focus()}),{...o,inputsearch:d,...t.toRefs(a),valueChange:i,valueFocus:u,valueBlur:m,handleClear:f,handleSubmit:h,searchbarStyle:r,inputSearchbarStyle:s,focusCss:c,clickInput:y,leftIconClick:g,rightIconClick:b,styleSearchbar:k}}}),Mm={key:0,class:"fox-searchbar__search-label"},zm={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},Pm=["type","maxlength","placeholder","value","disabled","readonly"],Lm={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},Fm={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function Rm(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:"fox-searchbar",style:t.normalizeStyle(e.searchbarStyle)},[e.label?(t.openBlock(),t.createElementBlock("span",Mm,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",zm,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__search-input",e.shape]),style:t.normalizeStyle({...e.inputSearchbarStyle,...e.focusCss})},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon",onClick:n[0]||(n[0]=(...s)=>e.leftIconClick&&e.leftIconClick(...s))},[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner",e.$slots.rightin&&"fox-searchbar__input-inner-absolute"])},[t.createElementVNode("form",{class:"fox-searchbar__input-form",action:"#",onSubmit:n[5]||(n[5]=t.withModifiers((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[t.createElementVNode("input",{ref:"inputsearch",class:t.normalizeClass(["fox-searchbar__input-bar",e.clearable&&"fox-searchbar__input-bar_clear"]),type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,readonly:e.readonly,onClick:n[1]||(n[1]=(...s)=>e.clickInput&&e.clickInput(...s)),onInput:n[2]||(n[2]=(...s)=>e.valueChange&&e.valueChange(...s)),onFocus:n[3]||(n[3]=(...s)=>e.valueFocus&&e.valueFocus(...s)),onBlur:n[4]||(n[4]=(...s)=>e.valueBlur&&e.valueBlur(...s)),style:t.normalizeStyle(e.styleSearchbar)},null,46,Pm)],32)],2),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner-icon",e.$slots.rightin&&"fox-searchbar__input-inner-icon-absolute"])},[e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[6]||(n[6]=(...s)=>e.handleClear&&e.handleClear(...s)),class:"fox-searchbar__search-icon fox-searchbar__input-clear"},[e.$slots["clear-icon"]?t.renderSlot(e.$slots,"clear-icon",{key:0}):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon),{key:1}))],512)),[[t.vShow,String(e.modelValue).length>0]]):t.createCommentVNode("",!0),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",Lm,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",Fm,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const On=_(qm,[["render",Rm]]);function vm(e,n,l){return{props:{..._o},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(o,{emit:a,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),c=hm(),u=t.ref([]),m=t.ref(0),f=t.ref(""),h=t.shallowRef(null),y=t.computed(()=>{const R={};return o.params&&Object.assign(R,o.params),ce(f.value)||(R[`${o.searchKey}`]=f.value),h.value&&Object.assign(R,h.value),R});let g=!0;const b=async(R,E,z)=>{try{if(d.value===!1)return;let D=null;ce(f.value)||(D=M=>{const v=Rn(o,M);if(typeof v=="string"&&v.includes(f.value))return!0;const W=cs(o,M);return!!(typeof W=="string"&&W.includes(f.value))});const O=await c.load("actionsheet",R,E,z,y.value,g,D??void 0);g=!1,Array.isArray(O)?(u.value=O,m.value=1,d.value=!1):!Array.isArray(O.page)||O.page.length===0?(console.warn("[FoxUI] can not load more data"),d.value=!1):(Reflect.apply([].push,u.value,O.page),m.value=Math.ceil(u.value.length/o.pageSize),(O.totalSize&&u.value.length>=O.totalSize||z<O.page.length)&&(d.value=!1)),k.value=!1}catch(D){console.error("[FoxUI] ActionSheet load more data fail",D),d.value=!0,m.value=0,u.value=[]}setTimeout(()=>{a("loaded-data")},250)},k=t.ref(!1),d=t.ref(!0),p=async()=>{if(!o.source){k.value=!1;return}await b(o.source,m.value+1,o.pageSize)};t.watch(()=>f.value,(R,E)=>{ce(R)&&!ce(E)&&p()}),t.watch([()=>o.source,()=>o.pageSize,()=>o.params],async([R,E,z])=>{o.source&&p()},{immediate:!0});const S=t.computed(()=>!o.multiple&&o.isAutoBackFill),C=t.ref([]);let A=null;const N=t.ref(o.visible);t.watch(()=>o.visible,R=>{N.value!==R&&(N.value=R),R?A=[...C.value]:A=null});const T=(R,E)=>{const z=[];return Array.isArray(R)||(R=[R]),R.forEach(D=>{let O=um(o,E,D,o.valueType);O!==-1&&z.push(O)}),qe(z,C.value)?!1:(C.value=z,!0)};t.watch([()=>o.modelValue,()=>u.value],([R,E],[z,D])=>{if(T(R,E)){const M=$();P(M)}},{deep:!0});const $=()=>{const R=[],E=[],z=[];for(let v of C.value){const W=u.value[v];E.push(W);const Q=Rn(o,W);if(z.push(Q),o.valueType==="item")R.push(W);else if(o.valueType==="text")R.push(Q);else{const K=ds(o,W);R.push(K)}}let D=null,O=null,M=null;return o.multiple?(D=R,O=z,M=E):(D=R[0]??null,O=z[0]??null,M=E[0]??null),{value:D,text:O,item:M}},P=R=>{a("update:modelValue",R.value),a("update:text",R.text),a("change",R.value,R.item,R.text)},V=()=>{A&&(C.value=A)},B=R=>{const E=C.value.indexOf(R);o.multiple?E===-1?C.value.push(R):C.value.splice(E,1):E===-1?C.value=[R]:C.value=[],(S.value||!o.poppable&&!o.showFooter)&&I()},L=R=>{N.value=R,a("update:visible",R)},F=()=>{const R=()=>{V(),L(!1)};if(typeof o.beforeClose=="function"){const E=o.beforeClose("close");ct(E)?E.then(z=>{z!==!1&&R()}).catch(()=>{R()}):E!==!1&&R()}else R()},I=()=>{const R=$(),E=()=>{P(R),L(!1)};if(typeof o.beforeClose=="function"){const z=o.beforeClose("confirm",R.value,R.item,R.text);ct(z)?z.then(D=>{D!==!1&&E()}).catch(()=>{E()}):z!==!1&&E()}else E()},q=()=>{d.value=!0,m.value=0,u.value=[],o.source&&p()},H=()=>{let R=i.title.value??"";r.title&&(R=r.title());const E=t.h("view",{class:["fox-actionsheet__header-title"]},[R]),z=t.h(ne.Close,{class:["fox-actionsheet__header-icon"],onClick:F});return t.h("view",{class:["fox-actionsheet__header"]},[E,z])},x=()=>{let R=null;if(r.search)R=r.search();else{const E={onSearch:q,placeholder:i.seachPlaceholder.value,disabled:o.disabled,modelValue:f.value,"onUpdate:modelValue":z=>{f.value=z}};R=t.h(On,E,{leftin:()=>t.h(ne.Search2)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[R])},Y=(R,E,z,D,O)=>{if(r.optionLabel)return r.optionLabel({text:R,checked:E,disabled:z,subText:D,item:O});const M=[],v=t.h("view",{class:"fox-actionsheet__list-item-text"},[R]);if(M.push(v),D){const W=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[D]);M.push(W)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},M)},j=(R,E,z,D)=>{if(r.optionIcon)return r.optionIcon({checked:R,disabled:E,iconSize:z,item:D});if(R){if(r.checkedIcon)return r.checkedIcon({disabled:E,item:D});{const O=o.checkedIcon??ne.Checked;return t.h(O,{width:z,height:z,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:E,item:D});{const O=o.icon??ne.CheckNormal;return t.h(O,{width:z,height:z,class:["fox-actionsheet__list-item-icon"]})}}},Z=()=>{const R=[];for(let E=0;E<u.value.length;E++){const z=u.value[E],D=Rn(o,z),O=cs(o,z),M=["fox-actionsheet__list-item"],v={};let W=fm(o,z),Q=o.iconSize?ie(o.iconSize):null;const K=mm(o,z,E);K&&(W=W||K.disabled,K.class&&M.push(K.class),K.style&&Object.assign(v,K.style)),W=!!(o.disabled||W);const G=C.value.includes(E);W&&M.push("is-disabled"),G&&M.push("is-checked");const J={class:M,style:v,key:`${E}`,onClick:()=>{W||B(E)}};let te=[];if(r.option)te.push(r.option({item:z,checked:G,disabled:W}));else{const oe=Y(D,G,W,O,z);te.push(oe);const ae=j(G,W,Q,z);te.push(ae)}const ee=t.h("view",J,te);R.push(ee)}return R},U=()=>{let R=[];if(r.buttons)R=r.buttons();else{const z=t.h(Me,{type:"primary",block:"block",onClick:I,disabled:o.disabled},{default:()=>i.confirmText.value});R.push(z)}return t.h("view",{class:"fox-actionsheet__footer"},[R])};return Ve({search:async(R=null,E=!0)=>{h.value=R&&t.toRaw(R),t.triggerRef(h),E&&(d.value=!0,m.value=0,u.value=[]),t.nextTick(()=>{p()})},clear:()=>{d.value=!0,m.value=0,u.value=[]},confirm:()=>{I()},cancel:()=>{F()}}),()=>{const R=[];if(o.showHeader){const Q=H();R.push(Q)}if(o.showSearchbar){const Q=x();R.push(Q)}let E=null;if(r.content)E=r.content();else{const Q=Z(),K={hasMore:d.value,loadText:i.loadText.value,loadMoreText:i.loadMoreText.value,modelValue:k.value,"onUpdate:modelValue":G=>{k.value=G},onLoadMore:p};E=t.h(vn,K,{default:()=>Q})}const z={};o.optionsHeight&&(z.height=o.optionsHeight);const D={"fox-actionsheet__list":!0};o.poppable||(D["fox-actionsheet__list--inner"]=!0);const O=t.h("view",{class:D,style:z},[E]);if(R.push(O),o.showFooter&&!S.value){const Q=U();R.push(Q)}const M=t.h("view",{class:"fox-actionsheet"},R);if(!o.poppable)return M;const v=["fox-actionsheet__popup"];o.popClass&&v.push(o.popClass);const W={popClass:v.join(" "),visible:N.value,closeable:!1,"onUpdate:visible":L,position:o.position,round:"round",onClickOverlay:F,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(de,W,{default:()=>M})}}}}const{componentName:Om,create:Km,scope:Um}=X("actionsheet-pane"),Kn=Km(vm(Om,Um)),Hm={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 jm(e,n,l,o,a,r,s){return{props:{...ue,...fe,...Hm,..._o},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const u=Be(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:f}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),y=h(i,["placeholder"]),g=t.ref(!1),b=De(i,"modelValue"),k=t.ref(""),d=t.computed(()=>Array.isArray(k.value)?k.value.join(i.separator):k.value),p="fox-input-item",S=t.computed(()=>({[p]:!0,[`${p}__disabled`]:u.value})),C=Ae(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const D={};return C.value&&(D["text-align"]=C.value),D}),N=t.ref(!1),T=()=>{N.value=!0},$=D=>{N.value=D},P=D=>{b.value=D,f("update:modelValue",D)},V=(D,O)=>{f("change",D,O)},B=D=>{let M=D.target.value;g.value=!0,f("focus",M,D)},L=D=>{setTimeout(()=>{g.value=!1},0);let M=D.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),f("blur",M,D)},F=D=>{k.value=D,f("update:text",D)},I=t.computed(()=>({[`${p}__append`]:!0})),q=t.computed(()=>ye(i.unit)>0),H=t.computed(()=>ye(i.unit)>0&&!g.value),x=t.computed(()=>({hidden:!H.value})),Y=D=>{b.value="",f("update:modelValue","",D),f("change","",D),f("clear","")},j=t.computed(()=>i.clearable&&!u.value&&!m.value),Z=t.computed(()=>ye(b.value)>0&&g.value),U=D=>{Z.value?Y(D):T()},R=t.computed(()=>Z.value&&j.value?o:a),E=t.computed(()=>({action:!0})),z=t.ref(null);return Ve({search:D=>{z.value&&z.value.search(D)},clear:()=>{z.value&&z.value.clear},confirm:D=>{z.value&&z.value.confirm()},cancel:()=>{z.value&&z.value.cancel()}}),()=>{const D={class:S.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:T,onFocus:B,onBlur:L};s&&(D.disabled=!0);const O=[],M=t.h("input",D);O.push(M);const v=[],W={class:["action-icon"]},Q=t.h(R.value,W),K={class:E.value,onClick:U},G=t.h("view",K,{default:()=>[Q]});if(v.push(G),q.value){const it=t.h("view",{class:x.value},[i.unit]);v.push(it)}const J={class:I.value},te=t.h("view",J,{default:()=>v});O.push(te);const ee={default:()=>O};ee.label=c.slots.default,ee.prepend=c.slots.prepend,ee.append=c.slots.append,ee.fixedPreTip=c.slots.fixedPreTip,ee.fixedTip=c.slots.fixedTip;const oe=he(i,_o);oe.ref=z,oe.class=i.actionsheetProps,oe.disabled=u.value||m.value,oe.visible=N.value,oe["onUpdate:visible"]=$,oe.modelValue=b.value,oe["onUpdate:modelValue"]=P,oe.text=k.value,oe["onUpdate:text"]=F,oe.onChange=V,oe.poppable=!0;const ae={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},Ie=t.h(r,oe,ae);ee.hide=()=>[Ie];const be=he(i,fe,ue);return t.h(l,be,ee)}}}}const{componentName:Wm,create:Ym,scope:Xm}=X("actionsheet-item"),el=Ym(jm(Wm,Xm,Ce,ne.CircleClose,ne.ArrowRight,Kn)),tl={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{componentName:Qm,create:Gm}=X("input-number"),Zm=Gm({components:{Minus:ne.Minus,Plus:ne.Plus},props:{...tl},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const l=t.computed(()=>{const y=Qm;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),o=y=>Number(y).toFixed(Number(e.decimalPlaces)),a=y=>{const g=y.target;n("update:modelValue",g.valueAsNumber,y)},r=(y,g)=>{let b=o(y);n("update:modelValue",b,g),n("change",b,g)},s=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,i=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,c=y=>{if(n("reduce",y),i()){let g=Number(e.modelValue)-Number(e.step);r(g,y)}else n("overlimit",y,"reduce")},u=y=>{if(n("add",y),s()){let g=Number(e.modelValue)+Number(e.step);r(g,y)}else n("overlimit",y,"add")},m=y=>{e.disabled||e.readonly||n("focus",y)},f=y=>{if(e.disabled||e.readonly)return;let b=y.target.valueAsNumber;b<Number(e.min)?b=Number(e.min):b>Number(e.max)&&(b=Number(e.max)),r(b,y),n("blur",y)},h=y=>{let g=Number(y);return g<Number(e.min)?g=Number(e.min):g>Number(e.max)&&(g=Number(e.max)),g};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const y=h(e.modelValue);y!==Number(e.modelValue)&&r(y,{})}),{classes:l,change:a,blur:f,focus:m,add:u,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:ge}}}),Jm=["min","max","disabled","readonly","value"];function _m(e,n,l,o,a,r){const s=t.resolveComponent("Minus"),i=t.resolveComponent("Plus");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...c)=>e.reduce&&e.reduce(...c))},[t.renderSlot(e.$slots,"left-icon",{},()=>[t.createVNode(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth),height:e.toPxDesc(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...c)=>e.change&&e.change(...c)),onBlur:n[2]||(n[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:n[3]||(n[3]=(...c)=>e.focus&&e.focus(...c))},null,44,Jm),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...c)=>e.add&&e.add(...c))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(i,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const Ze=_(Zm,[["render",_m]]);function ep(e,n,l,o){return{props:{...ue,...fe,...tl},emits:["change","update:modelValue"],setup(a,r){const s=Be(t.computed(()=>a.disabled)),i=Te(t.computed(()=>a.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=e,m=De(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const h={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},g={...he(a,tl),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},b=t.h(o,g,h),k=[];k.push(b);const d={default:()=>k};d.label=r.slots.default,d.fixedPreTip=r.slots.fixedPreTip,d.fixedTip=r.slots.fixedTip;const p=he(a,fe,ue);return p["content-class"]=u,t.h(l,p,d)}}}}const{componentName:tp,create:np,scope:op}=X("inputnumber-item"),nl=np(ep(tp,op,Ce,Ze)),lp={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}},us=(e,n)=>n[e.textKey],Pt=(e,n)=>n[e.valueKey],ap=(e,n)=>n[e.visibleKey],fs=(e,n)=>n[e.disabledKey],rp=(e,n)=>{const l=n[e.doitKey];return pe(l)},sp=(e,n)=>{const l=n[e.numKey];return l==null?null:me(n[l])},ms=(e,n,l)=>{const o=e.itemOptions;return typeof o=="function"?o(n,l):o||null};function ip(e,n,l,o=!1){return{props:{...lp},emits:["update:modelValue","change"],setup(a,{slots:r,emit:s}){t.computed(()=>{const U={};return U[`${e}`]=!0,U});const i=t.computed(()=>{const U={};return U[`${e}__titles`]=!0,U[`${a.direction}`]=!0,a.align==="left"&&(U.left=!0),a.scroll===!0&&(U.scrollable=!0),a.shape&&(U[`${a.shape}`]=!0),U}),c=t.computed(()=>({})),u=t.computed(()=>{if(!a.gutter)return 0;const U=ie(a.gutter);return U<=0?0:U}),m=t.ref(a.modelValue);t.watch(()=>a.modelValue,U=>{m.value!==U&&(m.value=U,H(!1))});const f=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),h=t.computed(()=>{const U={};return g.value||(U.display="none"),U}),y=t.ref(),g=t.ref(!1),b=()=>{const U=!g.value;k(U)},k=U=>{const R=U;R?(g.value=R,setTimeout(()=>{f.value["fox-tabs-bar__popup--show"]=!0,f.value["fox-tabs-bar__popup--hide"]=!1},0)):(f.value["fox-tabs-bar__popup--show"]=!1,f.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{g.value=!1},{once:!0}):setTimeout(()=>{g.value=!1},0))},d=t.ref(),p=t.ref([]),S=(U,R)=>{p.value[R]=U},C=U=>R=>{S(R,U)},A=(U,R)=>{const E=d.value,z=p.value;if(!E||!z||!z[U])return;const D=z[U];let O=0;a.direction==="vertical"?O=D.offsetTop-(E.offsetHeight-D.offsetHeight)/2:O=D.offsetLeft-(E.offsetWidth-D.offsetWidth)/2,N(E,O,R?0:.3,a.direction)},N=(U,R,E,z)=>{let D=0;const O=z==="horizontal"?U.scrollLeft:U.scrollTop,M=E===0?1:Math.round(E*1e3/16);function v(){z==="horizontal"?U.scrollLeft+=(R-O)/M:U.scrollTop+=(R-O)/M,++D<M&&Re(v)}v()},T=(U,R)=>{const E=Pt(a,U),z={};return z[`${e}__titles-item`]=!0,z.disabled=fs(a,U),z.active=E===m.value,a.shape&&(z[`${a.shape}`]=!0),a.ellipsis&&(z.ellipsis=!0),R&&(R.class&&(z[`${R.class}`]=!0),R.disabled===!0&&(z.disabled=R.disabled)),z},$=(U,R)=>{const E={};if(u.value>0){const z=Math.abs(u.value/2);a.direction==="vertical"?(E["margin-top"]=`${z}px`,E["margin-bottom"]=`${z}px`):(E["margin-left"]=`${z}px`,E["margin-right"]=`${z}px`)}return R&&R.style&&Object.assign(E,R.style),E},P=(U,R)=>`${Pt(a,U)??R}`,V=(U,R)=>{const E=Pt(a,U),z={};z[`${e}__popup-item`]=!0,z.disabled=fs(a,U),z.active=E===m.value,a.shape&&(z[`${a.shape}`]=!0);const D=ms(a,U,R);return D&&D.disabled===!0&&(z.disabled=D.disabled),z},B=t.computed(()=>(a.data??[]).filter(R=>ap(a,R)!==!1)),L=(U,R)=>{const E=Pt(a,U);if(m.value==E)return;const z=()=>{m.value=E,a.scroll&&A(R,!1),s("update:modelValue",E),s("change",U,R)};if(typeof a.beforeChange=="function"){const D=a.beforeChange(U,R);ct(D)?D.then(O=>{O!==!1&&z()}).catch(()=>{z()}):D!==!1&&z()}else z()},F=(U,R)=>function(){L(U,R)},I=(U,R)=>{L(U,R),k(!1)},q=(U,R)=>function(){I(U,R)},H=U=>{if(!Array.isArray(a.data)||!a.scroll)return;const R=a.data.findIndex(E=>Pt(a,E)===m.value);R!==-1&&A(R,U)};t.watch(()=>a.data,()=>{setTimeout(H,0)}),t.onMounted(()=>{H(!0)});const x=(U,R)=>{if(r.item)return r.item({item:U,index:R});const E=ms(a,U,R),z=[];if(r.text){const v=r.text({item:U,index:R});z.push(v)}else{const v=[];if(E?.doit===!0||rp(a,U)){const G={class:[`${e}__titles-item-tip`,"doit"]},J=t.h("view",G);v.push(J)}const W=E?.num??sp(a,U);if(W){let G="";const J=me(W);J>=100?G="99+":G=`${J}`;const te={class:[`${e}__titles-item-tip`,"num"]},ee=t.h("view",te,[G]);v.push(ee)}const Q={class:`${e}__titles-item-text`};v.push(us(a,U));const K=t.h("view",Q,v);z.push(K)}const D={class:`${e}__titles-item-line`},O=t.h("view",D);z.push(O);const M={ref:C(R),class:T(U,E),style:$(U,E),key:P(U,R),onClick:F(U,R)};return t.h("view",M,z)},Y=()=>{const U=r.default?r.default():[];if(U.length===0)for(let E=0;E<B.value.length;E++){const z=B.value[E],D=x(z,E);U.push(D)}const R={ref:d,class:i.value,style:c.value};return t.h("view",R,U)},j=()=>{let U=null;r.navigation?U=r.navigation():U=t.h(l);const R={class:`${e}__navigation`,onClick:b};return t.h("view",R,[U])},Z=()=>{const U=[];for(let E=0;E<B.value.length;E++){const z=B.value[E];let D=null;r.popupItem?D=r.popupItem({item:z,index:E}):D=us(a,z);const O={class:V(z,E),key:P(z,E),onClick:q(z,E)},M=t.h("view",O,[D]);U.push(M)}const R={class:f.value,style:h.value};return t.h("view",R,U)};return()=>{const U=[],R=Y();if(U.push(R),a.showQuickNavigation){const z=j();U.push(z);const D=Z();U.push(D)}const E={class:`${e}`};return t.h("view",E,U)}}}}const{create:cp,componentName:dp,scope:up}=X("tabs-bar"),ol=cp(ip(dp,up,ne.MoreH,!1)),ps=Symbol("TabsStatesKey"),{create:fp}=X("tabs-container"),mp=fp({props:{modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"}},emits:["update:modelValue","change"],setup(e,{emit:n}){const l=t.shallowRef([]),o={current:t.ref(e.modelValue??""),direction:t.ref(e.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:m=>{const f={name:m};o.current.value===m&&(f.loaded=!0),l.value.push(f),t.triggerRef(l)},remove:m=>{const f=l.value.findIndex(h=>h.name===m);f!==-1&&l.value.splice(f,1)},isLoaded:m=>{const f=l.value.findIndex(h=>h.name===m);return f!==-1?o.current.value?l.value[f].loaded??!1:f===0:!1}};t.provide(ps,o);const a=m=>{const f=l.value.findIndex(h=>h.name===m);f!==-1&&(l.value[f].loaded=!0,t.triggerRef(l))};t.watch([()=>e.modelValue,()=>e.direction],([m,f])=>{o.current.value!==m&&(o.current.value=m??"",a(m??"")),o.direction.value!==f&&(o.direction.value=f)});const r=t.ref(null),s=t.ref(null),i=t.computed(()=>({"fox-tabs-container":!0,[`${e.direction}`]:!0})),c=t.computed(()=>{const m={},f=l.value.length;if(f<=0)return m;const h=l.value.findIndex(y=>y.name===o.current.value);return o.direction.value==="vertical"?o.tabHeight.value>0&&(m.height=`${f*o.tabHeight.value}px`,h!==-1&&(m.transform=`translate(0, -${h*o.tabHeight.value}px)`)):o.tabWidth.value>0&&(m.width=`${f*o.tabWidth.value}px`,h!==-1&&(m.transform=`translate(-${h*o.tabWidth.value}px, 0)`)),m});let u=null;return t.onMounted(()=>{if(!r.value)return;const m=()=>{const f=gn(r.value);o.tabWidth.value=f.width,o.tabHeight.value=f.height};window.ResizeObserver&&(u=new window.ResizeObserver(m),u.observe(r.value)),m()}),t.onBeforeUnmount(()=>{u&&(u.disconnect(),u=null)}),{tabsRef:r,panesRef:s,classes:i,panesStyles:c}}});function pp(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"tabsRef"},[t.createElementVNode("view",{class:"fox-tabs-container__panes",style:t.normalizeStyle(e.panesStyles),ref:"panesRef"},[t.renderSlot(e.$slots,"default")],4)],2)}const ll=_(mp,[["render",pp]]),{create:hp}=X("tabs-pane"),gp=hp({components:{Loading:ne.Loading},props:{paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null}},setup(e,{emit:n}){const l=t.inject(ps);t.onMounted(()=>{l.add(e.paneKey)}),t.onBeforeUnmount(()=>{l.remove(e.paneKey)});const o=t.computed(()=>{const r={};return l.direction.value==="vertical"&&l.tabHeight.value>0?r.height=`${l.tabHeight.value}px`:l.tabWidth.value>0&&(r.width=`${l.tabWidth.value}px`),r}),a=t.computed(()=>e.loaded!=null?pe(e.loaded):l.isLoaded(e.paneKey));return{styles:o,isLoaded:a}}}),yp={class:"fox-tabs-pane__empty"},kp=t.createElementVNode("view",{class:"fox-tabs-pane__empty-text"},"loading",-1);function bp(e,n,l,o,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:"fox-tabs-pane",style:t.normalizeStyle(e.styles)},[e.isLoaded?t.renderSlot(e.$slots,"default",{key:0}):t.renderSlot(e.$slots,"empty",{key:1},()=>[t.createElementVNode("view",yp,[t.createVNode(s,{class:"fox-tabs-pane__empty-icon"}),kp])])],4)}const al=_(gp,[["render",bp]]),Sp={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 Cp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function hs(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function gs(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function wp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function rl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function ys(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function ks(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function sl(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let Np=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[o]);const a=Qe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(a,null,[l,o]))}};function Bp(){const e=t.getCurrentInstance();return new Np(e.proxy)}function Ap(e,n,l,o){return{props:{...Sp},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:s}){const i=e,c=Bp(),u=t.ref([]),m=t.computed(()=>u.value.filter(E=>wp(a,E)!==!1)),f=t.ref(-1),h=()=>{const E=a.modelValue,z=m.value.findIndex(D=>hs(a,D)===E);f.value!==z&&(f.value=z,a.scroll&&U(z,!1))};t.watch([()=>a.modelValue,m],()=>{h()});const y=E=>f.value===E,g=E=>{if(E<0&&E>=m.value.length)return!1;const z=m.value[E],O=(sl(a,z,E)??{}).status??rl(a,z);return y(E)||O},b=t.computed(()=>{const E={[i]:!0};return a.mode?E[`is-${a.mode}`]=!0:a.direction&&(E[`is-${a.direction}`]=!0),a.scroll&&(E["is-scroll"]=!0),E}),k=t.computed(()=>({})),d=(E,z,D,O,M)=>{const v={[`${i}__step`]:!0};return M&&(v[`${M}`]=!0),v[`${p.value}`]=!0,O&&(v["is-doit"]=!0),E===f.value?v["is-active"]=!0:z==="done"?v["is-done"]=!0:z==="error"?v["is-error"]=!0:z==="half"?v["is-half"]=!0:D?v["is-disabled"]=!0:v["is-normal"]=!0,v},p=t.computed(()=>{if(a.mode==="simple")return"start";let E=a.align;return E||(a.direction==="vertical"?E="start":E="center"),E}),S=(E,z={})=>{const D={...z};return p.value==="start"&&E===m.value.length-1?D.flex="0 0 auto":a.step?a.direction==="vertical"?D.height=a.step:D.width=a.step:D.flex="1 1 100%",D},C=(E,z)=>{let D={};if(z<m.value.length-1){const O=z+1;g(z)&&g(O)?a.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},A=E=>m.value.length-1===E,N=(E,z)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&z>f.value||f.value===z)return;const D=f.value,O=z;f.value=z,a.scroll&&U(z,!1);const M=hs(a,E);s("update:modelValue",M);const v={fromIndex:D,currentIndex:O,item:E,items:m.value,clickNavigatePolicy:a.clickNavigatePolicy};s("change",M,v)},T=t.ref(!0),$=async(E,z)=>{try{const D=await c.load("stesbar",E,z);Array.isArray(D)&&(u.value=D),T.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),u.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([E,z])=>{E&&$(E,z)},{immediate:!0});const P=(E,z,D,O,M)=>{let v=null;if(r.icon)v=r.icon({item:E,index:z,status:O});else if(O==="done"){const Q={};a.iconSize&&(Q.width=a.iconSize,Q.height=a.iconSize);const K=a.icon??l;v=t.h(K,Q)}else{const Q=D??`${z+1}`;v=t.h("span",{},[Q])}const W={class:"fox-steps-bar__icon",onClick:()=>{M||N(E,z)}};return t.h("view",W,[v])},V=(E,z,D)=>{const O=t.h("i",{class:"fox-steps-bar__line-inner",style:C(E,z)});return t.h("view",{class:"fox-steps-bar__line"},[O])},B=()=>{let E=null;if(r.markIcon)E=r.markIcon();else{const D={};a.iconSize&&(D.width=a.markIconSize,D.height=a.markIconSize);const O=a.markIcon??o;E=t.h(O,D)}return t.h("view",{class:"fox-steps-bar__mark"},[E])},L=(E,z,D,O,M)=>{const v=[];if(!A(z)){const K=V(E,z);v.push(K)}const W=P(E,z,D,O,M);v.push(W);const Q={class:"fox-steps-bar__head"};return t.h("view",Q,v)},F=(E,z,D,O)=>{let M=null;r.main?M=r.main({item:E,index:z,status:D}):M=Cp(a,E);const v={class:"fox-steps-bar__main",onClick:()=>{O||N(E,z)}};return t.h("view",v,[M])},I=(E,z,D)=>{let O=null;if(r.sub){O=r.sub({item:E,index:z,status:D});const M={class:"fox-steps-bar__sub"};return t.h("view",M,[O])}return null},q=(E,z)=>{const D=sl(a,E,z)??{},O=D.status??rl(a,E);let M=gs(a,E);D.disabled===!0&&(M=!0),a.disabled===!0&&(M=!0);const v=D.label??ks(a,E),W=[],Q=P(E,z,v,O,M);Q&&W.push(Q);const K=F(E,z,O,M);if(K&&W.push(K),!A(z)){const ae=V(E,z);ae&&W.push(ae)}const G=t.h("view",{class:"fox-steps-bar__head"},W),J=D.class,te=D.style??{};let ee=ys(a,E);D.doit===!0&&(ee=!0);const oe={ref:Z(z),class:d(z,O,M,ee,J),style:S(z,te)};return t.h("view",oe,[G])},H=(E,z)=>{const D=sl(a,E,z)??{},O=D.status??rl(a,E);let M=gs(a,E);D.disabled===!0&&(M=!0),a.disabled===!0&&(M=!0);const v=D.label??ks(a,E),W=[],Q=a.layout;for(let ee of Q)if(ee==="head"){const oe=L(E,z,v,O,M);W.push(oe)}else if(ee==="main"){const oe=F(E,z,O,M);W.push(oe)}else if(ee==="sub"){const oe=I(E,z,O);W.push(oe)}else if(ee==="mark"){const oe=B();W.push(oe)}const K=D.class,G=D.style??{};let J=ys(a,E);D.doit===!0&&(J=!0);const te={ref:Z(z),class:d(z,O,M,J,K),style:S(z,G)};return t.h("view",te,W)},x=t.ref(),Y=t.ref([]),j=(E,z)=>{Y.value[z]=E},Z=E=>z=>{j(z,E)},U=(E,z)=>{const D=x.value,O=Y.value;if(!D||!O||!O[E])return;const M=O[E];let v=0;a.direction==="vertical"?v=M.offsetTop-(D.offsetHeight-M.offsetHeight)/2:v=M.offsetLeft-(D.offsetWidth-M.offsetWidth)/2,R(D,v,z?0:.3,a.direction)},R=(E,z,D,O)=>{let M=0;const v=O==="horizontal"?E.scrollLeft:E.scrollTop,W=D===0?1:Math.round(D*1e3/16);function Q(){O==="horizontal"?E.scrollLeft+=(z-v)/W:E.scrollTop+=(z-v)/W,++M<W&&Re(Q)}Q()};return()=>{const E=[];if(a.mode==="simple")for(let D=0;D<m.value.length;D++){const O=m.value[D],M=q(O,D);E.push(M)}else for(let D=0;D<m.value.length;D++){const O=m.value[D],M=H(O,D);E.push(M)}const z={ref:x,class:b.value,style:k.value};return t.h("view",z,E)}}}}const{componentName:$p,create:Tp,scope:Vp}=X("steps-bar"),il=Tp(Ap($p,Vp,ne.Checklist,ne.ArrowRight)),bs=10;function Ep(e,n){return e>n&&e>bs?"horizontal":n>e&&n>bs?"vertical":""}function Dp(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else 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=Ep(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:l,state:e}}function Ip(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function xp(e){e.stopPropagation()}class qp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,l){this.startMove=n,this.updateMove=l,this.isTouch=Ip()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const l=Dp(),o=(a,r,s,i)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(l.start(a),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(l.move(a),xp(a),o(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{o(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Mp(e,n){return new qp(e,n)}const zp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]}},Pp=(e,n,l,o=!1)=>({props:{...zp},emits:["click"],setup(a,{slots:r,emit:s}){const i=t.reactive({top:a.top,right:a.right,bottom:a.bottom,left:a.left}),c=t.computed(()=>{const p=[`${e}`];return a.customClass&&p.push(a.customClass),p}),u=t.computed(()=>{const p={};return ce(i.top)||(p.top=i.top),ce(i.right)||(p.right=i.right),ce(i.bottom)||(p.bottom=i.bottom),ce(i.left)||(p.left=i.left),ce(a.width)||(p.width=a.width),ce(a.height)||(p.height=a.height),ce(a.color)||(p.color=a.color),ce(a.background)||(p.background=a.background),ce(a.borderRadius)||(p["border-radius"]=a.borderRadius),p}),m=t.computed(()=>({[`${e}__icon`]:!0})),f=()=>{s("click")},h=t.ref(null),y=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},g={x:0,y:0},d=Mp(p=>{if(!h.value)return;const S=h.value;y(),i.left=S.offsetLeft,i.top=S.offsetTop,S.style.left=`${i.left}px`,S.style.top=`${i.top}px`,S.style.right=null,S.style.bottom=null,g.x=i.left,g.y=i.top},p=>{if(!h.value)return;const S=h.value;y(),i.left=g.x+p.x,i.top=g.y+p.y,S.style.left=`${i.left}px`,S.style.top=`${i.top}px`});return t.onMounted(()=>{if(a.draggable&&h.value){const p=[h.value];d.open(p)}}),t.onBeforeUnmount(()=>{a.draggable&&h.value&&d.close()}),()=>{let p=[];const S=typeof r.default=="function"?r.default():[];if(S&&S.length>0)p=S;else{const A=t.h(l,{class:m.value});p.push(A)}const C={ref:A=>{h.value=A},class:c.value,style:u.value,onClick:f};return t.h("view",C,p)}}}),{componentName:Lp,create:Fp,scope:Rp}=X("floating-button"),cl=Fp(Pp(Lp,Rp,ne.Uploader,!1)),vp={width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Op=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Kp(e,n,l){return{props:{...vp},setup(o,{attrs:a,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["confirmText","cancelText"]),c=e,u=t.ref(!0),m=C=>{u.value=C},f=C=>{if(typeof o.unmount=="function")try{o.unmount()}catch(A){console.error(A)}if(typeof o.callback=="function")try{o.callback(C)}catch(A){console.error(A)}},h=()=>{f("confirm")},y=()=>{f("cancel")},g=()=>{f("close")},b=(C,A)=>Op(C)?(A.src=C,t.h("img",A)):typeof C=="string"?(Array.isArray(A.class)?A.class.push(C):A.class&&typeof A.class=="object"?A[`${C}`]=!0:typeof A.class=="string"?A.class=`${A.class}, ${C}`:A.class=C,t.h(o.tag,A)):t.h(C,A),k=()=>{const C=[];if(o.icon){const N={class:[`${c}__header-icon`]},T=b(o.icon,N);C.push(T)}if(o.title){const N=t.h("view",{class:`${c}__header-title`},[o.title]);C.push(N)}if(o.showClose&&o.closeIcon){const N={class:[`${c}__header-close-icon`],onClick:g},T=b(o.closeIcon,N);C.push(T)}const A={class:[`${c}__header`]};return t.h("view",A,C)},d=(C,A)=>{const N=[];if(A){const $={class:`${c}__group-title`},P=t.h("view",$,[A]);N.push(P)}if(C){const $=[];Array.isArray(C)||(C=[C]);for(let P of C){const V={class:`${c}__group-row`,innerHTML:P},B=t.h("view",V);$.push(B)}if($.length>0){const P={class:`${c}__group-rows`},V=t.h("view",P,$);N.push(V)}}if(N.length===0)return null;const T={class:`${c}__group`};return t.h("view",T,N)},p=()=>{const C=[];if(typeof o.message=="string")C.push(o.message);else if(Array.isArray(o.message))for(let N of o.message)if(typeof N=="string"){const T=d(N);C.push(T)}else{const T=d(N.content,N.title);C.push(T)}else if(typeof o.message=="function"){const N=o.message();C.push(N)}else{const N=o.message;C.push(N)}const A={class:`${c}__body`};return t.h("view",A,C)},S=()=>{const C=[];if(o.showCancelButton){const N={class:[`${c}__footer-button`],style:{},onClick:y};o.cancelButtonClass&&N.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(N.style,o.cancleButtonStyle);const T=t.h("button",N,[o.cancelButtonText??i.cancelText.value]);C.push(T)}if(o.showConfirmButton){const N={class:[`${c}__footer-button`],style:{},onClick:h};o.confirmButtonClass&&N.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(N.style,o.confirmButtonStyle);const T=t.h("button",N,[o.confirmButtonText??i.confirmText.value]);C.push(T)}if(C.length===0)return null;const A={class:`${c}__footer`};return t.h("view",A,C)};return()=>{const C=[],A=k();A&&C.push(A);const N=p();N&&C.push(N);const T=S();T&&C.push(T);const $={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},P=t.h("view",$,C),V=[`${c}__popup`];o.popClass&&V.push(o.popClass);const B={};o.width&&(B.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(B.height=typeof o.height=="number"?`${o.height}px`:o.height);const L={popClass:V.join(" "),style:B,visible:u.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":m,position:o.position,round:"round",onClickOverlay:g,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(l,L,{default:()=>P})}}}}const{componentName:Up,create:Hp,scope:jp}=X("messagebox"),Wp=Hp(Kp(Up,jp,de)),Yp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Xp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",Qp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",Gp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Zp=new Nn,Jp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},_p=e=>{let n=document.body,l=e.teleport;l!="body"&&(typeof l=="string"?n=document.querySelector(l):l&&(n=e.teleport));const o=document.createElement("view"),a=`messagebox-${Zp.get()}`;o.id=a,o.classList.add("fox-messagebox__root"),e.zIndex&&(o.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${a}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(Wp,e);n.appendChild(o),t.render(r,o)},st={show:(e,n,l,o)=>{const a={...Jp};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(a,n):(n&&(a.message=n),l&&typeof l=="object"?Object.assign(a,l):(typeof l=="string"&&(a.title=l),o&&typeof o=="object"?Object.assign(a,o):typeof o=="string"&&(a.type=o)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=Qp:r==="warning"?a.icon=Gp:r==="error"?a.icon=Yp:a.icon=Xp),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=ne.Close),new Promise((s,i)=>{const c=a.callback;a.callback=u=>{if(typeof c=="function")try{c(u)}catch(m){console.error(m)}s({action:u})},_p(a)})},alert:(e,n,l)=>st.show("alert",e,n,l),confirm:(e,n,l)=>st.show("confirm",e,n,l),install(e){e.config.globalProperties.$alert=st.alert,e.config.globalProperties.$confirm=st.confirm}},eh=(e,n,l)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let a=!0,r=!0;for(let i in n)i==="bubbles"?a=!!n[i]:i==="cancelable"?r=!!n[i]:o[i]=n[i];o.initEvent(e,a,r),(l??document).dispatchEvent(o)},th=new Nn,nh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),oh=e=>`${e}-${th.get()}`,lh=Symbol.for("InnerPageScopeKey"),ah=Symbol.for("PageWrapperKey"),rh="FoxLeave",sh="FoxLeaveEnd",ih={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function ch(e,n,l,o){return{props:{...Pe,...ih},emits:["update:visible"],setup(a,{attrs:r,slots:s,emit:i}){t.provide(lh,!0);const c={};t.provide(ah,c);const u=N=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),m=()=>{u()},f=e,h=N=>{y.value=N,i("update:visible",N)},y=t.ref(!1),g=(N,T)=>nh(N)?(T.src=N,t.h("img",T)):typeof N=="string"?(Array.isArray(T.class)?T.class.push(N):T.class&&typeof T.class=="object"?T[`${N}`]=!0:typeof T.class=="string"?T.class=`${T.class}, ${N}`:T.class=N,t.h(a.tag,T)):t.h(N,T),b=()=>{if(!a.showHeader)return null;const N=[];if(s.header){const $=s.header();N.push($)}else if(a.title){const $=t.h("view",{class:`${f}__header-title`},[a.title]);N.push($)}if(N.length===0)return null;const T={class:[`${f}__header`]};return t.h("view",T,N)},k=()=>{if(!a.showClose)return null;const N={class:[`${f}__close-icon`],onClick:m},T=a.closeIcon??o;return g(T,N)};let d=null;const p=N=>{eh(sh,{},d)},S=oh(e),C=()=>{h(!0)},A=()=>{if(!d)return;const N=d.querySelector(".fox-overlay");N&&(N.classList.add("overlay-fade-leave-active"),N.classList.add("overlay-fade-leave-to"));const T=d.querySelector(".fox-popup");T&&(T.classList.add(`fox-popup-slide-${a.position}-leave-active`),T.classList.add(`fox-popup-slide-${a.position}-leave-to`),T.addEventListener("animationend",p,{once:!0}),T.addEventListener("transitionend",p,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{d=document.querySelector(`.${S}`),d?.addEventListener(rh,A,{once:!0}),C()}),()=>{const N=[],T=b();T&&N.push(T);const $=k();$&&N.push($);const P=s.default?s.default():[];Reflect.apply([].push,N,P);const V={[`${f}`]:!0};a.mode&&(V[`${f}--${a.mode}`]=!0);const B={class:V},L=t.h("view",B,N),F=[`${f}__popup`,S];a.popClass&&F.push(a.popClass),a.position&&F.push(`${f}__popup--${a.position}`);const I={};a.width&&(I.width=typeof a.width=="number"?`${a.width}px`:a.width),a.height&&(I.height=typeof a.height=="number"?`${a.height}px`:a.height);const H={...he(a,Pe),popClass:F.join(" "),style:I,visible:y.value,teleportDisable:!0,closeable:!1,position:a.position,closeOnClickOverlay:a.closeOnClickOverlay,onClickOverlay:m,"onUpdate:visible":h},x=t.h(l,H,{default:()=>L});return t.h("div",{class:[`${f}__root`,S]},[x])}}}}const{componentName:dh,create:uh,scope:fh}=X("popup-wrapper"),dl=uh(ch(dh,fh,de,ne.Close));function mh(e,n){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const o=l.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const a=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}const ph={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function hh(e,n,l=!1){return{props:{...ph},emits:["click"],setup(o,a){const r=t.ref(!0),s=t.ref(null),i=t.computed(()=>{const y={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(y[`${e}--${o.type??"default"}`]=!0),o.size&&(y[`${e}--${o.size}`]=!0),y}),c=t.computed(()=>{const y={},g=o.textColor??o.color;return g&&(y.color=g),y}),u=y=>{if(y&&pe(o.showOverflowTooltip)){const g=y.clientWidth;mh(y,b=>{r.value=b<=g})}};let m=null;t.onMounted(()=>{if(!pe(o.showOverflowTooltip))return;const y=s.value;u(y),y&&window.ResizeObserver&&(m=new window.ResizeObserver(()=>{u(y)}),m.observe(y))}),t.onUnmounted(()=>{m?.disconnect()});const f=(y,g)=>{let b=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const k=o.highlightFilter;if(y.indexOf(k)!==-1){const p=y.replace(new RegExp(k,"g"),`<span>${k}</span>`);g.innerHTML=p,g.class["is-highlight"]=!0,b=t.h(o.tag,g)}}else if(typeof o.highlightFilter=="function"){const k=o.highlightFilter(y);k&&(g.innerHTML=k,g.class["is-highlight"]=!0,b=t.h(o.tag,g))}return b},h=y=>{a.emit("click",y)};return()=>{const y={onClick:h,class:i.value,style:c.value,ref:s};let g=null;if(pe(o.numberFormat)&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const S=p[0].type.toString();if(S==="Symbol(Text)"||S==="Symbol(v-txt)"){const C=me(o.digits),A=me(o.decimalLength),N=pe(o.autoPadding);let T=`${p[0].children}`,$=T.split("").reverse().join("");$=Jt($,A,N,C,o.separator),T=$.split("").reverse().join(""),o.highlightFilter!==void 0&&(g=f(T,y)),g||(y.innerHTML=T,g=t.h(o.tag,y))}}}else{if(o.highlightFilter!==void 0&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const S=p[0].type.toString();if(S==="Symbol(Text)"||S==="Symbol(v-txt)"){const C=`${p[0].children}`;g=f(C,y),g||(y.innerHTML=C,g=t.h(o.tag,y))}}}g||(g=t.h(o.tag,y,{default:a.slots.default}))}if(!o.mark&&!o.icon&&!a.slots.mark)return g;let k=null;if(o.icon){const p={[`${e}__mark-wrap`]:!0};o.type&&(p[`${e}__mark-wrap--${o.type}`]=!0);const S={},C=o.color;C&&(S.color=C);const A={class:p,style:S};k=t.h("view",A,t.h(o.icon))}else if(a.slots.mark){const p={[`${e}__mark-wrap`]:!0};o.type&&(p[`${e}__mark-wrap--${o.type}`]=!0);const S={},C=o.color;C&&(S.color=C);const A={class:p,style:S};k=t.h("view",A,{default:a.slots.mark})}else{const p={[`${e}__mark`]:!0};o.type&&(p[`${e}__mark--${o.type??"default"}`]=!0);const S={},C=o.color;C&&(S["background-color"]=C);const A={class:p,style:S};k=t.h("view",A)}const d={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}};return t.h("view",d,[k,g])}}}}const{componentName:gh,create:yh,scope:kh}=X("text"),ul=yh(hh(gh,kh,!1));function bh(e,n,l,o,a){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[a]){let c=n;for(let u=0;c&&u<r.length;u++){let m=r[u],f=c.find(h=>h[o]===m);if(!f)break;s.push(f[l])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let u=n[c],m=r[c];const f=u.find(h=>h[o]===m);if(!f)break;s.push(f[l])}else{let c=n;for(let u=0;c&&u<r.length;u++){let m=r[u],f=c.find(h=>h[o]===m);if(!f)break;s.push(f[l]),c=f[a]}}return s}class Sh{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const a=Qe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}}function Ch(){const e=t.getCurrentInstance();return new Sh(e.proxy)}const wh={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 Nh(e,n,l=!1){return{props:{...wh},setup(o,{attrs:a,slots:r}){const s=Ch(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([m,f])=>{i.value=await s.load(o.sourceType,m,f)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let m=bh(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return m.length==0?o.emptyText??"":m.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${m[0]}`:m[0]:m.join(o.separator)}),u=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const m={...a};return r.default?r.default({text:c.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===c.value?t.h(o.emptyTag??"span",{...a,class:o.emptyClass},c.value):t.h(u,m,{default:()=>c.value}):t.h(u,m,c.value)}}}}const{componentName:Bh,create:Ah,scope:$h}=X("mapping"),fl=Ah(Nh(Bh,$h,!1));function Th(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:o}){return or(l.name,()=>l.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:Q2,create:Vh,scope:G2}=X("domain-provider"),ml=Vh(Th()),Eh={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 Dh(e,n){return{inheritAttrs:!1,props:Eh,setup(l,{slots:o}){if(_e&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const s=(h,y)=>{if(m===null){r.set(h,{visible:null,callback:y});return}a.has(h)&&m.unobserve(h),a.set(h,{visible:null,callback:y}),m.observe(h)},i=h=>{if(m===null){r.delete(h);return}a.has(h)&&(a.delete(h),m.unobserve(h))};let c=l.initialVisibleObserverSize;Pi({acquire:()=>{const h=c>0;return c--,h},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:s,unobserve:i});let m=null;const f=(h,y,g)=>{m=new IntersectionObserver(b=>{for(let k of b){let d=!1;k.intersectionRatio>0&&(d=!0);const p=a.get(k.target);if(p)try{if(l.loadPolicy==="lazy"&&!d&&p.visible!==null)return;p.visible=d,p.callback(d)}catch(S){console.error(S)}}},{root:h,rootMargin:y,threshold:g}),r.forEach((b,k)=>{a.set(k,b),m?.observe(k)}),r.clear()};t.watch([()=>l.root,()=>l.disabled],([h,y])=>{if(y||!h||m)return;let g=null;typeof h=="string"?g=document.querySelector(h):g=h,g&&f(g,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:Z2,create:Ih,scope:J2}=X("rolling-provider"),pl=Ih(Dh()),{componentName:xh,create:qh}=X("cell"),Mh=qh({components:{Right:ne.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const l=t.computed(()=>{const r=xh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:ge(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:l,baseStyle:o}}}),zh={key:0,class:"fox-cell__icon"},Ph={key:1,class:"fox-cell__title"},Lh={class:"title"},Fh={class:"fox-cell__title-desc"};function Rh(e,n,l,o,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",zh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Ph,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Lh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Fh,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const hl=_(Mh,[["render",Rh]]),{componentName:vh,create:Oh}=X("cell-group"),Kh=Oh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[vh]:!0}))}}}),Uh={key:1,class:"fox-cell-group__title"},Hh={key:3,class:"fox-cell-group__desc"},jh={class:"fox-cell-group__wrap"};function Wh(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",Uh,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.$slots.desc?t.renderSlot(e.$slots,"desc",{key:2}):e.desc?(t.openBlock(),t.createElementBlock("view",Hh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",jh,[t.renderSlot(e.$slots,"default")])],2)}const gl=_(Kh,[["render",Wh]]),{componentName:Yh,create:Xh}=X("image"),Qh=Xh({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:ne.Image,ImageError:ne.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const l=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const y=Yh;return{[y]:!0,[`${y}-round`]:e.round}}),a=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const y={threshold:[0],rootMargin:"0px"};a.value=new IntersectionObserver(g=>{g.forEach(b=>{b.isIntersecting&&(r.value=!0,a.value.disconnect())})},y),s.value&&a.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{a.value&&a.value.disconnect()});const c=t.computed(()=>{let y={};return e.width&&(y.width=ge(e.width)),e.height&&(y.height=ge(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=ge(e.radius)),y}),u=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,y=>{l.isError=!1,l.loading=!0});const m=()=>{l.loading=!1,n("load")},f=()=>{l.isError=!0,l.loading=!1,n("error")},h=y=>{n("click",y)};return{...t.toRefs(l),imageClick:h,classes:o,styles:u,stylebox:c,error:f,load:m,show:r,imgRef:s}}}),Gh=["src","date-src","alt"],Zh={key:0,class:"fox-img-loading"},Jh={key:1,class:"fox-img-error"};function _h(e,n,l,o,a,r){const s=t.resolveComponent("Image"),i=t.resolveComponent("ImageError");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:n[2]||(n[2]=(...c)=>e.imageClick&&e.imageClick(...c))},[t.createElementVNode("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...c)=>e.load&&e.load(...c)),onError:n[1]||(n[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,Gh),e.loading?(t.openBlock(),t.createElementBlock("div",Zh,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"image"})),t.renderSlot(e.$slots,"loading")])):t.createCommentVNode("",!0),e.isError&&!e.loading?(t.openBlock(),t.createElementBlock("div",Jh,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const yl=_(Qh,[["render",_h]]),{create:eg}=X("layout"),kl=eg({}),{componentName:tg,create:ng}=X("col"),og=ng({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=tg,l=t.inject("gutter"),o=t.computed(()=>({[n]:!0,[`${n}-gutter`]:l,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),a=t.computed(()=>({paddingLeft:l/2+"px",paddingRight:l/2+"px"}));return{classes:o,style:a}}});function lg(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const bl=_(og,[["render",lg]]),{componentName:ag,create:rg}=X("row"),sg=rg({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const n=ag;t.provide("gutter",e.gutter);const l=(a,r)=>a?r?`fox-row-${a}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
|
|
6
|
-
${
|
|
7
|
-
${
|
|
8
|
-
${
|
|
9
|
-
${
|
|
5
|
+
*/function Jt(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Ne(e),n=Ne(n),[e,n]=_n(Ne(e),Ne(n)),a==1&&(o==1?e=Jn(e):n=Jn(n));let l=va(e,n);return a?a==2?"-"+Ne(l):e.length<l.length?Ne(l.substring(1)):"-"+Ne(Jn(l)):Ne(l)}function Jn(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return va(n,r)}function Ne(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function _n(e,n){let a=e.split("."),o=n.split("."),l=a[0].length,r=o[0].length;return l>r?o[0]=new Array(Math.abs(l-r)+1).join("0")+(o[0]?o[0]:""):a[0]=new Array(Math.abs(l-r)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,r=o[1]?o[1].length:0,(l||r)&&(l>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function va(e,n){[e,n]=_n(e,n);let a="",o=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let r=parseInt(e[l])+parseInt(n[l])+o;a=r%10+a,o=Math.floor(r/10)}return o?o.toString()+a:a}var Se=(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))(Se||{});function Vt(e,n=0,a=Se.HALF_EVEN){if(a===Se.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let l=e.split("."),r=l[0],s=l[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+s,c=Vt(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,Ma(l[1],r,o,a)?(o?"-":"")+eo(r):(o?"-":"")+r;if(l[1]){if(l[1].length<n)return(o?"-":"")+r+"."+l[1]+new Array(n-l[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");s=l[1].substring(0,n);let i=l[1].substring(n);return i&&Ma(i,s,o,a)&&(s=eo(s),s.length>n)?(o?"-":"")+eo(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function Ma(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===Se.DOWN||!a&&o===Se.FLOOR||a&&o===Se.CEILING)return!1;if(o===Se.UP||a&&o===Se.FLOOR||!a&&o===Se.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(o){case Se.HALF_DOWN:return!1;case Se.HALF_UP:return!0;case Se.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function eo(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,o="";for(let l=a;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function to(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=Et(e),n=Et(n);let o=0,l=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(l=n.length-n.indexOf(".")-1);let r=o+l;if(e=Et(e.replace(".","")),n=Et(n.replace(".","")),e.length<n.length){let u=e;e=n,n=u}if(n=="0")return"0";let s=n.length,i=0,c=[],f=s-1,p="";for(let u=0;u<s;u++)c[u]=e.length-1;for(let u=0;u<2*e.length;u++){let h=0;for(let b=n.length-1;b>=f&&b>=0;b--)c[b]>-1&&c[b]<e.length&&(h+=parseInt(e[c[b]--])*parseInt(n[b]));h+=i,i=Math.floor(h/10),p=h%10+p,f--}return p=Et(Ks(p,r)),a==1&&(p="-"+p),p}function Ks(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 Et(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 no(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 o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var l=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ne(n.replace(".","")),l>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ne(e+new Array(l+1).join("0"));else if(l>f)e=e.replace(".",""),e=Ne(e+new Array(l-f+1).join("0"));else if(l<f){e=e.replace(".","");let p=e.length-f+l;e=Ne(e.substring(0,p)+"."+e.substring(p))}else l==f&&(e=Ne(e.replace(".","")))}let r=0,s=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let f=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(f+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=f,i="0."+new Array(f).join("0")}for(a=a+2;r<=a;){let f=0;for(;parseInt(c)>=parseInt(n);)c=Jt(c,"-"+n),f++;i+=f,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+Ne(Vt(i,a-2))}function oo(e,n){return e=e.toString(),n=n.toString(),n=lo(n),Jt(e,n)}function lo(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Pa(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),La(e),La(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=oo(e,to(n,Vt(no(e,n),0,Se.FLOOR)));return a+o}function La(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function za(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]=_n(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class ie{value;static RoundingModes=Se;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,o]=n.split(/[eE]/);a=Ne(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(o=parseInt(o)+a.indexOf("."),a=a.replace(".","")):o=parseInt(o)+a.length,a.length<o?n=l+a+new Array(o-a.length+1).join("0"):a.length>=o&&o>0?n=l+Ne(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=ie.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ie.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<a?(a=i,i=0):i-=a,s=n.substring(i,i+a)+(i<r-a&&i>=0?o:"")+s;return(l?"-":"")+s+n.substring(r)}getPrettyValue(n,a){return ie.getPrettyValue(this.value,n,a)}static round(n,a=0,o=Se.HALF_EVEN){if(n=ie.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Vt(n,a,o)}round(n=0,a=Se.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ie(Vt(this.value,n,a))}static floor(n){return n=ie.validate(n),n.indexOf(".")===-1?n:ie.round(n,0,Se.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ie(this.value):new ie(this.value).round(0,Se.FLOOR)}static ceil(n){return n=ie.validate(n),n.indexOf(".")===-1?n:ie.round(n,0,Se.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ie(this.value):new ie(this.value).round(0,Se.CEILING)}static add(n,a){return n=ie.validate(n),a=ie.validate(a),Jt(n,a)}add(n){return new ie(Jt(this.value,n.getValue()))}static subtract(n,a){return n=ie.validate(n),a=ie.validate(a),oo(n,a)}subtract(n){return new ie(oo(this.value,n.getValue()))}static multiply(n,a){return n=ie.validate(n),a=ie.validate(a),to(n,a)}multiply(n){return new ie(to(this.value,n.getValue()))}static divide(n,a,o){return n=ie.validate(n),a=ie.validate(a),no(n,a,o)}divide(n,a){return new ie(no(this.value,n.getValue(),a))}static modulus(n,a){return n=ie.validate(n),a=ie.validate(a),Pa(n,a)}modulus(n){return new ie(Pa(this.value,n.getValue()))}static compareTo(n,a){return n=ie.validate(n),a=ie.validate(a),za(n,a)}compareTo(n){return za(this.value,n.getValue())}static negate(n){return n=ie.validate(n),lo(n)}negate(){return new ie(lo(this.value))}}function Fa(e,n){return ie.multiply(`${e}`,`${n}`)}function ao(e,n,a=8){return ie.divide(`${e}`,`${n}`,a)}function ro(e,n){return e=`${e}`,n=`${n}`,ie.compareTo(e,n)}function Ra(e){return ie.negate(e)}function _t(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",f=r.indexOf(".");f!=-1&&(i=r.substring(0,f),c=r.substring(f+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let p;if(o>0){let u="",h=i.split("").reverse();for(let b=0;b<h.length;b++)u+=h[b]+((b+1)%o==0&&b+1!=h.length?l:"");c.length==0?p=`${s}${u.split("").reverse().join("")}`:p=`${s}${u.split("").reverse().join("")}.${c}`}else c.length==0?p=`${s}${i}`:p=`${s}${i}.${c}`;return p}function Oa(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const tt=typeof window<"u",Oe=Xe;function Ka(e){return e==null}const en=Array.isArray,Us=e=>nn(e)==="[object Map]",Hs=e=>nn(e)==="[object Set]",Ke=e=>e instanceof Date,tn=e=>typeof e=="function",Ua=e=>typeof e=="string",js=e=>typeof e=="symbol",$e=e=>e!==null&&typeof e=="object",dt=e=>$e(e)&&tn(e.then)&&tn(e.catch),Ha=Object.prototype.toString,nn=e=>Ha.call(e),so=e=>nn(e)==="[object Object]",ja=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ws(e){return e.__esModule||ja&&e[Symbol.toStringTag]==="Module"}const Ys=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function nt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(l===!0&&c&&typeof c=="object"){let f;Array.isArray(c)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},n[s]=nt(l,f,c)}else c!==void 0&&(n[s]=c)}}return n}function io(e,n,a=!1){if(!a)nt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!so(s))continue;r=io(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!so(s))continue;r=io(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const co=Ys?Promise.resolve():null;function Xs(e,...n){co!==null?n&&n.length>0?co.then(()=>{e(n)}):co.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function he(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function me(e){return typeof e=="number"?e:Number(e)}const Qs={"[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 ot(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Qs[a]||"object"}function on(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Wa(e){return e&&typeof e=="object"&&"setInterval"in e}function Ya(e){let n=!!e&&"length"in e&&e.length,a=ot(e);return a==="function"||Wa(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Xa(e,n){let a=+n.length,o=0,l=e.length;for(;o<a;o++)e[l++]=n[o];return e.length=l,e}function Gs(e,n=[]){let a=n;return e!=null&&(Ya(Object(e))?Xa(a,typeof e=="string"?[e]:e):a.push(e)),a}function Me(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=ot(e),o=ot(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],c=e[i],f=n[i];if(!Me(c,f))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],s=n[l];if(!Me(r,s))return!1}return!0}return!1}function Qa(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Ga(e){return ue(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ue(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Za(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 Ja(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 _a(e,n,a){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(a,"")}function uo(e,n=!0,a=!0){n?e=_a(e,".",/\./g):e=e.replace(/\./g,""),a?e=_a(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function Zs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Me(e,a))return!0}):n.indexOf(e)}function Js(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Me(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function be(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ke(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function ut(e,...n){const a=[];n.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const o={};for(const l in e)a.includes(l)||(o[l]=e[l]);return o}const er=(e,n,a)=>{const o=Object.assign({},e),l=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{l.hasOwnProperty(r)?typeof l[r]=="string"&&(o[r]=n[l[r]]):n[r]&&(o[r]=n[r])}),o):e};function fo(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const lt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ue=(e,n,a)=>Math.min(Math.max(e,n),a),Ce=Symbol.for("BroadcastKey");class mo{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,o){this.parent=n,this.proxy=a,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(o=>n===o);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...o){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let l=!1;!n.name||n.name==="*"?l=!0:!n.name||n.name==="+"?(l=!1,n.name="*"):Qa(n.name)&&this.name&&n.name.test(this.name)?l=!0:typeof n.name=="function"?l=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(l=!0);const r=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...o]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[a]=="function"){const c=Reflect.apply(i[a],i,[...o]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(n,a){this.callbacks.set(n,a)}}function ln(e,n,a,o){const l=new mo(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function _s(e,n,a){const o=a;if(o[Ce])return o[Ce];const l=t.inject(Ce,null),r=new mo(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[Ce]=r,t.provide(Ce,r),t.onUnmounted(()=>{r.destroy(),o[Ce]=void 0}),r}function Dt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ce]??t.inject(Ce,null):t.inject(Ce,null)}const at=e=>e.default??e;class ei{error(n,a){const o=a,l=Dt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=Dt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=Dt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=Dt(o),s=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let tr=new ei;function ti(e){tr=e}function ni(e,n){at(et).setValidator(e,n)}function oi(e){at(et).deleteValidator(e)}let nr=["blur","clear"];function li(e){nr=e}function or(){return nr}let lr=["focus","change"];function ai(e){lr=e}function ar(){return lr}function ri(e){at(et).messages(e)}function It(...e){const n=[];return e.forEach(a=>{a.forEach(o=>{const l=n.findIndex(r=>r.type===o.type);l!==-1&&n.splice(l,1),n.push(o)})}),n}function an(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 He=Symbol("ValidateSchemaKey");class rr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,o){this.parent=n,this.descriptor=a,this.proxy=o,(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=an(It(this.attrRules,this.rules)),o=[];for(let r in n){let s=n[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),o.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};o.push(c)}}this.attrRules=an(o);const l=It(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=tr;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...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,o=!1){o?at(et).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?at(et).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return at(et).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const a=It(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=an(n):this.rules=an([n]);const o=It(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=It(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),s={[`${o}`]:r},i=at(et),c=new i(l),f=this.proxy??s;return c.validate(s,{context:f}).then(u=>{if(u.pass)this.success();else{let h="error";Array.isArray(u.errors)&&u.errors.length>0&&(h=u.errors[0].message??h,u.errors=[u.errors[0]],u.errors[0].ref=f),this.error(h)}return u}).catch(u=>{const h=u.message??`${u}`;return this.error(h),u})}}return Promise.resolve({pass:!0})}}function rn(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(r){return r[l]}}}return new rr(n,a,e)}const sr=Symbol("EventEmitterKey");class si{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let o=this.register.get(n);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===a);l!==-1&&o.splice(l,1)}}on(n,a){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(a)}emit(n,...a){const o=this.register.get(n);o&&o.forEach(l=>{try{Reflect.apply(l,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function ft(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function sn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function ii(e,n){const a=ft((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function ci(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function po(e,n,a,o=0,l=!0){let r=n,s=0;if(l){const c=e();if(s++,c||s>a)return}const i=()=>{const c=e();s++,!(c||s>a)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const qe=Symbol("DomainKey"),mt=Symbol("DataItemsKey");class cn{_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 o in n){const l=n[o];a.length>0&&a.indexOf(l)!==-1||(this._props[o]=l)}}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 o=this._props[n];if(o!=null)return o}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 o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const l=o._props[n];a.push(l)}o=o._parent}return a}}const di=new cn;function pt(){return di}function je(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[qe]??t.inject(qe,null):t.inject(qe,null)}const ho=Symbol("OriginalDateKey");function go(e,n,a=[],o){const l=t.getCurrentInstance(),r=l?.proxy;let s=t.inject(qe,null);s===null&&(s=pt());const i=e||n.prop||n.name,c=new cn(i);c.parent=s;const f=S=>{r[ho]||h(S),c.set("modelValue",S)},p=()=>c.getForSelf("modelValue")??null,u=()=>r[ho]??null,h=S=>{const k={};nt(!0,k,t.toRaw(S)),r[ho]=k};t.isReactive(n)||typeof n=="function"?t.watch(n,S=>{c.merge(S,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&h(n.modelValue),r[qe]=c,t.provide(qe,c);let b=null,y=null;if(l!==null){const S=t.inject(Ce,null);b=ln(r,S,i,o),c.broadcast=b,r[Ce]=b,t.provide(Ce,b),r.broadcast=(d,m,...g)=>Reflect.apply(b.emit,b,[d,m,...g]);const k=t.inject(He,null);y=rn(r,k,{componentName:""}),c.validateSchema=y,r[He]=y,t.provide(He,y),r[mt]=new Map,r.validate=(d=!0)=>{const m=[];let g=null;const N={deep:!1};if(d===!0)g={name:"*"};else if(Array.isArray(d)&&d.length>0){const $=d;g={name:C=>C?$.indexOf(C)!==-1:!1}}else if(d!=null&&typeof d=="object"){const $=d;if(N.ignoreHidden=$.ignoreHidden,Array.isArray($.include)&&$.include.length>0){const C=$.include;g={name:V=>V?C.indexOf(V)!==-1:!1}}else if(Array.isArray($.exclude)&&$.exclude.length>0){const C=$.exclude;g={name:V=>V?C.indexOf(V)===-1:!1}}else g={name:"*"}}if(g){const $=b?.emitToChildren(g,"validate",N);$&&Reflect.apply([].push,m,$)}return m.length==1?m[0]:m.length>1?Promise.all(m).then($=>{let C=[];return $.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(C=[...C,...V.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(d,m=!0,g=!1)=>{if(g===!0){Reflect.ownKeys(d).forEach($=>{let C=String($);const A=dr(c,C,{componentName:"",fieldName:C,pureDataValidate:!0},b,y);r[mt].set(C,A);const E=d[C];E&&A.validateSchema.setRule(E)});return}if(m){const N=Reflect.ownKeys(d),$={name:C=>N.includes(C)};b?.emitToChildren($,"setNameValidateRules",d,!1)}},r.clearValidate=(d=!0)=>{let m=null;if(d===!0)m={name:"*"};else if(Array.isArray(d)&&d.length>0){const g=d;m={name:N=>N?g.indexOf(N)!==-1:!1}}else if(d!=null&&typeof d=="object"){const g=d;if(Array.isArray(g.include)&&g.include.length>0){const N=g.include;m={name:$=>$?N.indexOf($)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const N=g.exclude;m={name:$=>$?N.indexOf($)===-1:!1}}else m={name:"*"}}m&&b?.emitToChildren(m,"clearValidate",!1)},r.resetFields=d=>{const m=p();if(!m)return;const g={};if(nt(!0,g,u()??{}),Array.isArray(d))d.forEach(N=>{m[N]=g[N]});else if(d&&Array.isArray(d.include))(d.include??[]).forEach($=>{m[$]=g[$]});else if(d&&Array.isArray(d.exclude)){let N=d.exclude??[];Reflect.ownKeys(g).forEach($=>{N.includes($)||(m[$]=g[$])})}else Object.assign(m,g);r.clearValidate(d)},r.setModelValue=(d,m)=>{!m||m===i?f(d):b?.emitToChildren({name:m},"setModelValue",d)},r.getModelValue=()=>p()}return t.onUnmounted(()=>{c.destroy(),r[qe]=void 0,r[mt]&&(r[mt].clear(),r[mt]=void 0),b!==null&&(b.destroy(),r[Ce]=void 0),y!==null&&(y.destroy(),r[He]=void 0)}),c}function ir(e,n,a=[]){const l=t.getCurrentInstance()?.proxy;let r=t.inject(qe,null);r===null&&(r=pt());const s=e||n.prop||n.name,i=new cn(s);return i.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{i.merge(c,a)},{immediate:!0}):i.merge(n,a),l[qe]=i,t.provide(qe,i),t.onUnmounted(()=>{i.destroy(),l[qe]=void 0}),i}function cr(e,n,a){const l=je(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Be(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(Ce,null),i=ln(l,s,r,a);l[Ce]=i,t.provide(Ce,i),l.broadcast=(y,S,...k)=>Reflect.apply(i.emit,i,[y,S,...k]);const c=t.inject(He,null);e.fieldName=e.fieldName??r;const f=rn(l,c,e);l[He]=f,t.provide(He,f),cr(l,f,r),l.validate=(y=null)=>{const S=[];let k=!1,d=!1;if(Array.isArray(y)&&y.indexOf(r)!==-1)d=!0,k=!0;else if(y&&typeof y=="object"){const m=y;m.ignoreHidden===!0&&on(l.$el)?d=!1:(Array.isArray(m.include)&&m.include.indexOf(r)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(r),d=!0),k=m.deep??!1}else typeof y=="boolean"&&(k=y),d=!0;if(d){const m=f?.validate();S.push(m)}if(k){let m=null;const g={deep:!1};if(y===!0)m={name:"*"};else if(Array.isArray(y)&&y.length>0){const N=y;m={name:$=>$?N.indexOf($)!==-1:!1}}else if(y!=null&&typeof y=="object"){const N=y;if(g.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const $=N.include;m={name:C=>C?$.indexOf(C)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const $=N.exclude;m={name:C=>C?$.indexOf(C)===-1:!1}}else m={name:"*"}}if(m){const N=i.emitToChildren(m,"validate",g);Reflect.apply([].push,S,N)}}return S.length==1?S[0]:S.length>1?Promise.all(S).then(m=>{let g=[];return m.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(g=[...g,...N.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=y=>f?.setRule(y),l.setNameValidateRules=(y,S=!1)=>{const k=y[r];if(k&&f?.setRule(k),S){const d={name:m=>Reflect.ownKeys(y).includes(m)};i.emitToChildren(d,"setNameValidateRules",y,!1)}},l.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(n??"")!==-1)&&f?.clear();let S=null;if(y===!0)S={name:"*"};else if(Array.isArray(y)&&y.length>0){const k=y;S={name:d=>d?k.indexOf(d)!==-1:!1}}else if(y!=null&&typeof y=="object"){const k=y;if(Array.isArray(k.include)&&k.include.length>0){const d=k.include;S={name:m=>m?d.indexOf(m)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const d=k.exclude;S={name:m=>m?d.indexOf(m)===-1:!1}}else S={name:"*"}}S&&i.emitToChildren(S,"clearValidate",!1)};const p=new si(l);l[sr]=p;const u=ft((y="validate")=>{y==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:or()).forEach(y=>{p.on(y,S=>{u("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ar()).forEach(y=>{p.on(y,S=>{u("reset")})}),t.onUnmounted(()=>{i.destroy(),l[Ce]=void 0,f.destroy(),l[He]=void 0,p.destroy(),l[sr]=void 0}),{broadcast:i,validateSchema:f,emitEvent:(y,...S)=>{Reflect.apply(p.emit,p,[y,...S])},onEvent:(y,S)=>{Reflect.apply(p.on,p,[S])},offEvent:(y,S)=>{Reflect.apply(p.off,p,[S])}}}function dr(e,n,a,o,l){const r={},s=n??"",i={getValue(){const p=e.getForSelf("modelValue");return p?p[s]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,s):!1}};a.fieldName=s,a.validateHandler={getValue(p){return i.getValue()}};const c=rn({},l,a);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const u=[];let h=!1,b=!1;if(Array.isArray(p)&&p.indexOf(s)!==-1)b=!0,h=!0;else if(p&&typeof p=="object"){const y=p;Array.isArray(y.include)&&y.include.indexOf(s)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(s),b=!0,h=y.deep??!1}else typeof p=="boolean"&&(h=p),b=!0;if(b){const y=c?.validate();u.push(y)}if(h){let y=null;const S={deep:!1};if(p===!0)y={name:"*"};else if(Array.isArray(p)&&p.length>0){const k=p;y={name:d=>d?k.indexOf(d)!==-1:!1}}else if(p!=null&&typeof p=="object"){const k=p;if(Array.isArray(k.include)&&k.include.length>0){const d=k.include;y={name:m=>m?d.indexOf(m)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const d=k.exclude;y={name:m=>m?d.indexOf(m)===-1:!1}}else y={name:"*"}}if(y){const k=f.emitToChildren(y,"validate",S);Reflect.apply([].push,u,k)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(y=>{let S=[];return y.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(S=[...S,...k.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=p=>{const u=p[s];u&&c?.setRule(u)};const f=ln(null,o,s,r);return{broadcast:f,validateSchema:c}}const ge=e=>e?`${ce(e)}px`:"";function ce(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(tt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*n;const o=Number(e);return isNaN(o)?0:o}const Qe="PageStateKey";function Le(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ce(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ce(e.right))),n}function yo(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=ce(a.headerHeight??n.headerHeight??-1),e.headerPadding=Le(a.headerPadding??n.headerPadding),e.footerHeight=ce(a.footerHeight??n.footerHeight??-1),e.footerPadding=Le(a.footerPadding??n.footerPadding),e.contentPadding=Le(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=ce(c,r):e.height=ce(r)-ce(s,r)-ce(i,r),e.width=ce(a.width??n.width??0,l)}}function ur(e,n={}){const a={top:null,left:null,bottom:null,right:null},o={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},l=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});l&&(o.safeAreaTop=ce(l.top),o.safeAreaBottom=ce(l.bottom),o.safeAreaLeft=ce(l.left),o.safeAreaRight=ce(l.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;yo(o,r,n,!0,s,i,c,f);const p=t.reactive(o),u=e.getForParent(Qe);u&&(o.height=mn(e,u),o.width=pn(e,u),t.watch([()=>mn(e,u),()=>pn(e,u)],([b,y])=>{p.height=b,p.width=y}));const h=!u;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([b,y,S=-1,k=-1,d=0,m=0])=>{yo(p,y,n,h,S,k,d,m)}),e.set(Qe,p),p}function dn(e){return e.get(Qe)}function un(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 fn(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 mn(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=un(e,n),o=fn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function pn(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function ui(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function fi(e){return!!e.getForParent(Qe)}var hn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(hn||{});function bo(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Te(e,n,a=1,o){const l=je();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(bo(c,o))return c}const s=e.value;return bo(s,o)?s:null}):t.computed(()=>{const r=e.value;return bo(r,o)?r:l?.get(n)})}function Ve(e){return Te(e,"readonly",0,function(a){return he(a)})}function Ae(e){return Te(e,"disabled",0,function(a){return he(a)})}function Ie(e,n="modelValue",a){const o=t.toRef(e,n);let l=o.value;typeof a=="function"&&(l=a(o.value));const r=t.ref(l);return t.watch(o,s=>{if(typeof a=="function"){const i=a(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const fr=new Map,gn=new Map;let ko=null;function mi(e){ko=e}function mr(e,n,a){if(a){let o=gn.get(a);o||(o=new Map,gn.set(a,o)),o.set(e,n)}else fr.set(e,n)}function Ge(e,n,a){!a&&ko&&(a=ko(e)??void 0);let o=null;if(a){let l=gn.get(a);l&&(o=l.get(n))}return o||(o=fr.get(n)),o}function pi(e,n){for(let a in e){const o=e[a];mr(a,o,n)}}function hi(e){gn.delete(e)}function gi(){return{top:0,left:0,bottom:0,right:0}}function yi(e=0,n=0){if(tt){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ce(e,o)-ce(n,o)};return{rootWidth:a,rootHeight:o,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:-1,footerHeight:-1}}}class bi{packages;_version;get version(){return this._version}constructor(n,a){this.packages=n,this._version=a}install(n,a){a?.install!==!1&&this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=pt();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=sn(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=f,this.initPageLayout(i,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=nt({},gi(),n.safeAreaInset),s=yi(o,l),i=nt({},s.pageLayout,n.pageLayout);a=a??pt(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(n){mi(n)}setAPI(n,a,o){mr(n,a,o)}getAPI(n,a,o){return Ge(n,a,o)}batchSetAPI(n,a){pi(n,a)}clearScopeAPI(n){hi(n)}getRootDomain(){return pt()}}function Q(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const ki=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(Ua(o)?a=document.querySelector(o):a=e.teleport);const l=document.createElement("view"),r=n.name?n.name+"-":"",s=e.id||new Date().getTime();l.id=r+s;let i={};tn(n.wrapper)?i=n.wrapper(a,l):i=n.wrapper;const c=t.createApp(i,e),f=n.components;return f&&f.forEach(p=>{c.use(p)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},pr=(e,n)=>e?t.h(e,n):"";function Ee(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const pe={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}},ye={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}},hr={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}},gr={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:!1},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}},yr=[];for(const e in gr)yr.push(e);const Si=Symbol.for("InnerPageScopeKey"),Ci={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:{...pe,...hr,...Ci},setup(a,{slots:o}){const l=go(a.name,a),r=t.inject(Si,!1);if(l){const p=ur(l,a);Ee({getPageContentHeight:()=>mn(l,p),getPageContentWidth:()=>pn(l,p),getPageHeaderHeight:()=>un(l,p),getPageFooterHeight:()=>fn(l,p)}),p&&r&&(p.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),f=(p,u=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(p,!0,u)};return t.watch([()=>a.rules,()=>a.pureDataRules],([p,u],[h,b])=>{if(p&&h){const y=t.toRaw(h),S=t.toRaw(p),k=S?Reflect.ownKeys(S):[];(y?Reflect.ownKeys(y):[]).forEach(m=>{k.includes(m)||(S[m]=[])}),f(S)}if(u&&b){const y=t.toRaw(b),S=t.toRaw(u),k=S?Reflect.ownKeys(S):[];(y?Reflect.ownKeys(y):[]).forEach(m=>{k.includes(m)||(S[m]=[])}),f(S,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const p=t.toRaw(a.rules);f(p)}if(a.pureDataRules){const p=t.toRaw(a.pureDataRules);f(p,!0)}}),()=>{const p={class:s.value,style:i.value};return t.h("div",p,[o?.default?.()])}}}),{componentName:Ni,create:Bi,scope:Q2}=Q("page"),So=Bi(wi(Ni));function yn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Co(e){const n=t.unref(e),a=window.getComputedStyle(n,null),o=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-s}}const Ai=Symbol.for("InnerPageScopeKey"),Ti=(e,n,a,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default: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(l,r){const s=je(),i=s?dn(s):null,c=t.inject(Ai,!1),f=e,p=t.computed(()=>{const B={[f]:!0,[`${f}--border`]:l.border,[`${f}--fixed`]:l.fixed};return c||(B[`${f}--safe-area-inset-top`]=l.safeAreaInsetTop),B}),u=t.computed(()=>({[`${f}__inner`]:!0,[`${f}__inner--${l.align}`]:!0})),h=l.height!==null&&l.height!==void 0?ce(l.height):null,b=t.computed(()=>{const B={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const v=Le(l.padding??i.headerPadding);return Object.assign(B,v),h&&(i.headerHeight=h),i.headerHeight>0&&(B.height=i.headerHeight),B.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,B.safeAreaTop>0&&(B.top=B.safeAreaTop+(v.top??0),B.height&&B.height>0&&(B.height=B.height+B.safeAreaTop)),B}if(h&&(B.height=h),l.padding){const v=Le(l.padding);Object.assign(B,v)}return B}),y=t.ref(null),S=()=>{if(i&&y.value&&!on(y.value)){if(!o){const B=yn(y.value);i.headerAllHeight=B.height}return i.headerMounted=!0,!0}return!1};let k=null;t.onMounted(()=>{i&&(po(S,50,5,50,!0),window.ResizeObserver&&y.value&&(k=new window.ResizeObserver(()=>{S()}),k.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,k&&(k.disconnect(),k=null))});const d=t.computed(()=>{const B={};return b.value.height!==null&&b.value.height!==void 0&&(B.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(B.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(B.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(B.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(B.paddingBottom=`${b.value.bottom}px`),B}),m=t.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function g(){r.emit("back")}function N(){r.emit("click-title")}function $(){r.emit("click-right")}function C(){r.emit("click-right-text")}const V=()=>{if(!l.leftShow)return null;const B=[];if(r.slots.left)B.push(r.slots.left());else{if(r.slots.leftIcon){const v=t.h("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);B.push(v)}else if(l.leftIcon){const v=t.h("view",{class:"left-icon",onClick:g},[t.h(l.leftIcon)]);B.push(v)}if(l.leftText){const v=t.h("view",{class:"left-text",onClick:g},[l.leftText]);B.push(v)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__left"},B)},A=()=>{if(!l.rightShow)return null;const B=[];if(r.slots.right)B.push(r.slots.right());else{if(l.rightText){const v=t.h("view",{class:"right-text",onClick:C},[l.rightText]);B.push(v)}if(r.slots.rightIcon){const v=t.h("view",{class:"right-icon",onClick:$},[r.slots.rightIcon()]);B.push(v)}else if(l.rightIcon){const v=t.h("view",{class:"right-icon",onClick:$},[t.h(l.rightIcon)]);B.push(v)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__right"},B)},E=()=>{if(!l.titleShow)return null;const B=[],v=r.slots.default?r.slots.default():null;if(v)B.push(v);else{if(l.title){const L=t.h("view",{class:"title-text"},[l.title]);B.push(L)}if(r.slots.titleIcon){const L=t.h("view",{class:"title-icon",onClick:N},[r.slots.titleIcon()]);B.push(L)}else if(l.titleIcon){const L=t.h("view",{class:"title-icon",onClick:N},[t.h(l.titleIcon)]);B.push(L)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__title"},B)},T=()=>{const B=[],v=r.slots.bottom?r.slots.bottom():null;return v&&B.push(v),B.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},B)};return()=>{if(!m.value)return null;const B=[];if(r.slots.all)B.push(r.slots.all());else{const L=[],D=V();D&&L.push(D);const x=E();x&&L.push(x);const U=A();if(U&&L.push(U),L.length>0){const Y=t.h("view",{class:u.value},L);B.push(Y)}const q=T();q&&B.push(q)}if(B.length===0)return null;const v={class:p.value,style:d.value,ref:y};return t.h("view",v,B)}}}),{componentName:$i,create:Vi,scope:Ei}=Q("header-bar"),wo=Vi(Ti($i,Ei,le.Left,!1)),Di=Symbol.for("InnerPageScopeKey");function Ii(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(o,l){const r=je(),s=r?dn(r):null,i=t.inject(Di,!1),c=e,f=t.computed(()=>{const k={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(k[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),k}),p=o.height!==null&&o.height!==void 0?ce(o.height):null,u=t.computed(()=>{const k={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const d=Le(o.padding??s.footerPadding);return Object.assign(k,d),p&&(s.footerHeight=p),s.footerHeight>0&&(k.height=s.footerHeight),k.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,k.safeAreaBottom>0&&(k.bottom=k.safeAreaBottom+(d.bottom??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaBottom)),k}if(p&&(k.height=p),o.padding){const d=Le(o.padding);Object.assign(k,d)}return k}),h=t.ref(null),b=()=>{if(s&&h.value&&!on(h.value)){if(!a){const k=yn(h.value);s.footerAllHeight=k.height}return s.footerMounted=!0,!0}return!1};let y=null;t.onMounted(()=>{s&&(po(b,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{b()}),y.observe(h.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,y&&(y.disconnect(),y=null))});const S=t.computed(()=>{const k={};return u.value.height!==null&&u.value.height!==void 0&&(k.height=ge(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(k.paddingTop=ge(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(k.paddingLeft=ge(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(k.paddingRight=ge(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(k.paddingBottom=ge(u.value.bottom)),k});return()=>{const k=l.slots.default?l.slots.default():[],d={ref:h,class:f.value,style:S.value};return t.h("view",d,k)}}}}const{componentName:xi,create:qi,scope:vi}=Q("footer-bar"),No=qi(Ii(xi,vi,!1));function Mi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=je(),l=t.computed(()=>({[e]:!0})),r=o?dn(o):null,s=t.computed(()=>{const f={};if(o&&r){if(a.padding){const d=Le(a.padding);Object.assign(r.contentPadding,d)}const p=un(o,r),u=fn(o,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",p),console.debug("[content]footer height:",u),console.debug("[content]padding:",r.contentPadding),f.height=h;let b=(r&&r.contentPadding&&r.contentPadding.top)??-1;(b>=0||p>0)&&(b=b<0?0:b,f.paddingTop=`${p+b}px`);let y=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(y>=0||u>0)&&(y=y<0?0:y,f.paddingBottom=`${u+y}px`);const S=(r&&r.contentPadding&&r.contentPadding.left)??-1;S>=0&&(f.paddingLeft=`${S}px`);const k=(r&&r.contentPadding&&r.contentPadding.right)??-1;return k>=0&&(f.paddingRight=`${k}px`),f}if(a.padding){const p=Le(a.padding);p.left&&(f.paddingLeft=`${p.left}px`),p.top&&(f.paddingTop=`${p.top}px`),p.right&&(f.paddingRight=`${p.right}px`),p.bottom&&(f.paddingBottom=`${p.bottom}px`)}return f}),i=t.ref(null),c=ft(()=>{if(r&&i.value){const f=Co(i.value);r.contentInnerHeight=f.height,r.contentInnerWidth=f.width}},0);return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>s.value,()=>l.value],([])=>{c()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:Pi,create:Li,scope:G2}=Q("content"),zi=Li(Mi(Pi));function Fi(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const oe=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},Bo=oe(zi,[["render",Fi]]),ht="GroupStateKey",br=Symbol.for("GroupScopeKey");function bn(){return t.inject(br,!1)}function kn(e=!0){t.provide(br,e)}function Ri(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Ka(l)||(e[o]=l)})}function Oi(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ri(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(ht,r),r}function Ao(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(ht);if(!c)return;const f=e.get("groupLayout")??{};a===-1&&(a=f.column??1),o===-1&&(o=f.gutter??0),r||(r=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const p=ce(r),u=ce(s);i||(i=f.type??"grid");const h=()=>{const b=n===""||n===-1,y=ce(n);let S=me(a);const k=ce(o);if(!b){let g=(y-(S-1)*k)/S;for(;u!==-1&&g>u;)S++,g=(y-(S-1)*k)/S;for(;p!==-1&&S>1&&g<p;)S--,g=(y-(S-1)*k)/S}let d=!1;const m=c.layout;m.value.width=n,m.value.column!==S&&(m.value.column=S,d=!0),m.value.gutter!==k&&(m.value.gutter=k,d=!0),m.value.type!==i&&(m.value.type=i,d=!0),d&&t.triggerRef(m)};if(l)h();else{const b=++c.passport;setTimeout(()=>{b===c.passport&&h()},50)}}function Sn(e,n=!1){let a;return n?a=e.getForParent(ht):a=e.get(ht),a.layout}function Cn(e,n=!1){let a;return n?a=e.getForParent(ht):a=e.get(ht),a.order}function kr(e,n=1){if(n==="stretch")return-1;const a=me(n);return a===-1?100:100*a/e}function wn(e,n,a=1,o=0,l){const r={};let s=0;l?s=ce(l):s=kr(n.column,a),s>0&&(r.width=`${s}%`);const i=kr(n.column,o);i>0&&(r["margin-left"]=`${i}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Nn(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,f=c+(n.column-c);return e.index=e.index+(f-c),{"grid-column":`${c+1} / -1`}}let l=me(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=me(o)%n.column;let s=(e.index+r)%n.column,i=s+l;return i>n.column?(s=0,i=s+l,e.index=e.index+(n.column-s)+l):e.index=e.index+r+l,r>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Sr=Symbol("RollingStateKey");function Ki(e){t.provide(Sr,e)}function Ui(){return t.inject(Sr,null)}function To(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function Hi(e){let n=To(e);if(n<=0){const a=e.cloneNode(!0),o=e.offsetWidth;a.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=To(a),document.body.removeChild(a)}return n}function ji(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const Wi={...pe,...hr,...gr};function Yi(e,n,a){return{props:Wi,emits:["update:collapse"],setup(o,l){const r=go(o.name,o,yr),s=Oi(r,{type:o.type}),i=bn();kn(!0);const c=o.rollingDisplay?Ui():null,f=t.ref(null),p=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),u=t.computed(()=>i&&r?Sn(r,!0).value:null),h=t.getCurrentInstance(),b=(H,Z=!1)=>{const G=h?.proxy;G&&typeof G.setNameValidateRules=="function"&&G.setNameValidateRules(H,!0,Z)};t.watch([()=>o.rules,()=>o.pureDataRules],([H,Z],[G,_])=>{if(H&&G){const F=t.toRaw(G),te=t.toRaw(H),ne=te?Reflect.ownKeys(te):[];(F?Reflect.ownKeys(F):[]).forEach(de=>{ne.includes(de)||(te[de]=[])}),b(te)}if(Z&&_){const F=t.toRaw(_),te=t.toRaw(Z),ne=te?Reflect.ownKeys(te):[];(F?Reflect.ownKeys(F):[]).forEach(de=>{ne.includes(de)||(te[de]=[])}),b(te,!0)}},{deep:!0});const y=e,S=t.computed(()=>{const H={};if(H.height=x.value,o.width)o.width!=="auto"&&(H.width=ge(o.width));else{const Z=i?Cn(r,!0):null;if(u.value&&Z){if(u.value.type==="grid"){const G=Nn(Z,u.value,o.span,o.offset);Object.assign(H,G)}else if(u.value.type==="flow"){const G=wn(Z,u.value,o.span,o.offset,o.width);Object.assign(H,G)}}}return H}),k=t.computed(()=>{const H=s.layout.value.type;return H==="grid"||H==="flow"?{[`${y}--${H}`]:!0,[`${y}--${H}-justify-${o.justify}`]:!0,[`${y}--${H}-align-${o.align}`]:!0,[`${y}--gutter`]:!0}:{[`${y}--${H}`]:!0,[`${y}--gutter`]:!0}}),d=t.computed(()=>{if(s.layout.value.type==="grid"){let Z="";if(o.columnWidth)Z=`repeat(auto-fill, ${o.columnWidth})`;else{const G=ji(A.value,s.layout.value.column,s.layout.value.gutter);Z=`repeat(${s.layout.value.column}, ${G})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Z}}}),m=t.toRef(o,"gutter"),g=t.toRef(o,"column"),N=t.computed(()=>i||p.value?!0:he(o.isWrap)),$=[],C=H=>{$.push(H)},V=()=>{let H=$.length;$.splice(0,H)},A=t.ref(-1),E=H=>{const Z=Co(H).width;Z>0&&Z!==A.value&&(A.value=Z)};Ao(r,A.value,g.value,m.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([A,g,m],([H,Z,G])=>{s.order.index=0,Ao(r,H,Z,G,!1,o.minItemWidth,o.maxItemWidth,o.type)});const T=t.computed(()=>U.value?o.expandText??"":o.collapseText??""),B=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),v=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),L=t.ref(),D=t.ref(),x=t.computed(()=>q.value||ge(o.height)||""),U=t.ref(!1),q=t.ref(""),Y=t.ref(!1);let j=-1;const J=(H,Z=!0)=>{const G=L.value;if(G&&U.value!==H){if(j=j===-1?Hi(G):j,Y.value=!0,Z)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",H||(q.value="",Y.value=!1)},H){let _=0;o.collapseHeight?_=o.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(_=D.value.offsetHeight),q.value=`${j}px`,t.nextTick(()=>{q.value=`${_}px`})}else q.value=`${j}px`;else if(H){let _=0;o.collapseHeight?_=o.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(_=D.value.offsetHeight),q.value=`${_}px`}else Y.value=!1,q.value=`${j}px`;U.value=H,l.emit("update:collapse",H)}};t.watch(()=>o.collapse,H=>{J(H)});const ee=()=>{W()},W=H=>{H=H??!U.value,J(H)};Ee({toggleCollapse:W,doLayout:()=>{$[0]&&(E($[0]),Ao(r,A.value,g.value,m.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let z=null,I=!0;const R=H=>{if(o.rules){const Z=t.toRaw(o.rules);b(Z)}if(o.pureDataRules){const Z=t.toRaw(o.pureDataRules);b(Z,!0)}if(tt&&(H&&J(he(o.collapse),!1),o.autoLayout&&Array.isArray($)&&$.length>0)){const Z=$[0];E(Z),window.ResizeObserver&&(z=new window.ResizeObserver(()=>{E(Z)}),z.observe(Z))}},P=()=>{z?.disconnect(),z=null},O=!p.value||c?.acquire();O&&(f.value=p.value?!0:null),t.onMounted(()=>{if(O&&(R(I),I=!1),p.value&&c){let H=null,Z=c.initialHeight;c.observe(L.value,G=>{if(G!==f.value)if(G)f.value=!0,U.value||(q.value=""),H=setTimeout(()=>{H=null,f.value!==!1&&(R(I),I=!1)},100);else{if(H!==null&&clearTimeout(H),f.value=!1,!U.value)if(I)q.value=c.initialHeight;else{let _=To(L.value);_<=0?q.value=Z:(q.value=`${_}px`,Z=q.value)}I||P()}})}}),t.onUnmounted(()=>{z?.disconnect(),c&&c.unobserve(L.value)});const X=(H="right")=>{const Z=[];if(T.value){const te={class:B.value},ne=t.h("span",te,[T.value]);Z.push(ne)}const G={class:v.value},_=o.collapseIcon??a,F=t.h(_,G);return Z.push(F),Z.length>0?t.h("div",{class:{[`${y}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:ee},Z):null},K=(H,Z,G,_)=>{const F={...k.value};return Z===0&&(F[`${y}__first`]=!0),G>=_-1&&(F[`${y}__last`]=!0),t.h("div",{ref:C,key:`${Z}`,class:F,style:d.value},H)};return()=>{if(p.value&&f.value!==!0){const F=o.tag||"div";return t.h(F,{ref:L,prop:o.name,class:{[`${y}`]:!0,"is-collapse":Y.value},style:S.value},[])}s.order.index=0;const H=[];let Z=0;if(l.slots.header){const F={key:`${Z++}`,ref:D,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},te=t.h("div",F,[l.slots.header()]);H.push(te)}else{const F=[],te=o.collapsePosition==="left";if(te&&o.showCollapse){const ne=X("left");ne&&F.push(ne)}if(o.title||l.slots.title){if(o.showMark){const ne={class:{[`${y}__header-mark`]:!0}};o.markColor&&(ne.style={background:o.markColor});const se=t.h("div",ne);F.push(se)}if(l.slots.title){const ne=t.h("div",{class:{[`${y}__header-title`]:!0}},[l.slots.title()]);F.push(ne)}else if(o.title){const ne=t.h("div",{class:{[`${y}__header-title`]:!0}},[o.title]);F.push(ne)}}if(l.slots.toolbar&&F.push(l.slots.toolbar()),!te&&o.showCollapse){const ne=X("right");ne&&F.push(ne)}if(F.length>0){const ne={key:`${Z++}`,ref:D,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},se=t.h("div",ne,F);H.push(se)}}V();const G=l.slots.default?l.slots.default():[],_=s.layout.value.type;if(_==="grid"){const F=K(G,Z++,0,G.length);H.push(F)}else if(_==="flow"){const F=K(G,Z++,0,G.length);H.push(F)}else for(let F=0;F<G.length;F++){const te=G[F],ne=K([te],Z++,F,G.length);H.push(ne)}if(N.value){const F=o.tag||"div";return t.h(F,{ref:L,prop:o.name,class:{[`${y}`]:!0,"is-collapse":Y.value},style:S.value},[H])}else return H}}}}const{componentName:Xi,create:Qi,scope:Gi}=Q("group"),$o=Qi(Yi(Xi,Gi,le.RectUp));function Zi(e){return e===window}const Ji=/matrix\((.+)\)/,Cr=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Zi(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,s=0,i=0,c=0;for(l=n;l!==document;){s+=l.scrollTop,r+=l.scrollLeft;const{transform:f}=window.getComputedStyle(l);if(f){const p=Ji.exec(f);if(p){let h=p[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}l=l.parentNode}return a-=r,o-=s,a+=i,o+=c,{x:a,y:o}};class _i{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 ec{monitorRegister=new WeakMap;watch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new _i,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(a),o=o.parentNode}}unwatch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const wr=new ec,Nr={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:tc,create:nc}=Q("price"),oc=nc({props:{...Nr},setup(e){const n=t.computed(()=>({[tc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>be(e.price)==0?"":_t(e.price,e.decimalLength,!0,me(e.digits),e.separator)),l=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),lc=["innerHTML"],ac=["innerHTML"];function rc(e,n,a,o,l,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,lc)):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,ac)):t.createCommentVNode("",!0)],2)}const Ze=oe(oc,[["render",rc]]),{componentName:Vo,create:sc}=Q("hint-text"),ic=sc({components:{Price:Ze},props:{...Nr,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}),o=t.ref({x:0,y:0}),l=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),f=(B,v,L,D,x,U)=>{const q=document.documentElement.clientWidth||document.body.clientWidth,Y=document.documentElement.clientHeight||document.body.clientHeight,j=B.split("-");let J=[];j[0]==="top"?J=["top","bottom","right","left"]:j[0]==="bottom"?J=["bottom","top","right","left"]:j[0]==="left"?J=["left","top","bottom","right"]:j[0]==="right"&&(J=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},W=[];for(let M=0;M<J.length;M++){const z=J[M];if(W[0]=z,j[1]&&(W[1]=j[1]),z==="top"){const I=v.y-U-e.arrowSize-e.offset;if(I>=0){ee.top=I;let R=0;j[1]==="start"?R=v.x:j[1]==="end"?R=v.x+L-x:R=v.x+L/2-x/2;const P=q-R-x;P<0?(R+=P,u.value=-P):u.value=0,ee.left=R<0?0:R;break}}else if(z==="bottom"){const I=v.y+D+e.arrowSize+e.offset;if(I+U<=Y){ee.top=I;let R=0;j[1]==="start"?R=v.x:j[1]==="end"?R=v.x+L-x:R=v.x+L/2-x/2;const P=q-R-x;P<0?(R+=P,u.value=-P):u.value=0,ee.left=R<0?0:R;break}}else if(z==="left"){const I=v.x-x-e.arrowSize-e.offset;if(I>=0){ee.left=I;let R=0;j[1]==="start"?R=v.y:j[1]==="end"?R=v.y+D-U:R=v.y+D/2-U/2,ee.top=R<0?0:R;break}}else if(z==="right"){const I=v.x+L+e.arrowSize+e.offset;if(I+x<=q){ee.left=I;let R=0;j[1]==="start"?R=v.y:j[1]==="end"?R=v.y+D-U:R=v.y+D/2-U/2,ee.top=R<0?0:R;break}}}return{bestPlacement:W.join("-"),bestInsetRect:ee}},p=(B,v,L=10)=>{if(!tt||v===!1||!B)return;o.value=Cr(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const D=c.value.offsetHeight,x=c.value.offsetWidth,{bestPlacement:U,bestInsetRect:q}=f(e.placement,o.value,l.value,r.value,x,D);s.value=U,a.value=q,i.value=!0},u=t.ref(0),h=ft(()=>{p(e.message,e.visible)},10),b=t.ref(e.visible);t.watch(()=>e.visible,B=>{b.value=B});const y=t.computed(()=>b.value&&S.value),S=t.ref(!0),k=ft(B=>{const v=B[0];v&&(S.value=v.isIntersecting)},10),d=new IntersectionObserver(k);t.watch([()=>e.message,()=>e.visible],([B,v])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{p(e.message,e.visible)},0),wr.watch(e.reference,h),d.observe(e.reference)}),t.onBeforeMount(()=>{wr.unwatch(e.reference,h),d.unobserve(e.reference),d.disconnect()});const m=t.computed(()=>{const B={[Vo]:!0};return s.value.startsWith("top")?B["is-top"]=!0:s.value.startsWith("right")?B["is-right"]=!0:s.value.startsWith("bottom")?B["is-bottom"]=!0:s.value.startsWith("right")&&(B["is-right"]=!0),e.size==="small"?B["is-small"]=!0:e.size==="large"&&(B["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(B[`${e.customClass}`]=!0),B}),g=t.computed(()=>{const B={};a.value.top!==null&&(B.top=`${a.value.top}px`),a.value.right!==null&&(B.right=`${a.value.right}px`),a.value.bottom!==null&&(B.bottom=`${a.value.bottom}px`),a.value.left!==null&&(B.left=`${a.value.left}px`),e.autoFit&&(B["min-width"]=`${l.value}px`);const v=document.documentElement.clientWidth||document.body.clientWidth;return B["max-width"]=`${v}px`,i.value&&(B.opacity="1"),e.transition||(B.transition="none"),e.zIndex&&(B["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(B,e.customStyle),B}),N=t.computed(()=>{const B=[`${Vo}__content`];return e.customTextClass&&B.push(e.customTextClass),B}),$=t.computed(()=>{const B={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(B,e.customTextStyle),B}),C=t.computed(()=>({[`${Vo}__arrow`]:!0})),V=t.computed(()=>{const B={};return e.showArrow?(B.width=`${e.arrowSize}px`,B.height=`${e.arrowSize}px`,s.value==="top"?(B.left="50%",B.bottom=`-${e.arrowSize}px`,B.transform=" translate(-50%, 0%)"):s.value==="top-start"?(B.left=`${e.arrowOffset+u.value}px`,B.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(B.right=`${e.arrowOffset-u.value}px`,B.bottom=`-${e.arrowSize}px`):s.value==="right"?(B.left=`-${e.arrowSize}px`,B.top="50%",B.transform=" translate(0%, -50%)"):s.value==="right-start"?(B.left=`-${e.arrowSize}px`,B.top=`${e.arrowOffset}px`):s.value==="right-end"?(B.left=`-${e.arrowSize}px`,B.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(B.left="50%",B.top=`-${e.arrowSize}px`,B.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(B.left=`${e.arrowOffset+u.value}px`,B.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(B.right=`${e.arrowOffset-u.value}px`,B.top=`-${e.arrowSize}px`):s.value==="left"?(B.right=`-${e.arrowSize}px`,B.top="50%",B.transform=" translate(0%, -50%)"):s.value==="left-start"?(B.right=`-${e.arrowSize}px`,B.top=`${e.arrowOffset}px`):s.value==="left-end"&&(B.right=`-${e.arrowSize}px`,B.bottom=`-${e.arrowOffset}px`),B):{display:"none"}}),A=t.computed(()=>y.value&&e.closeOnClick),E=t.computed(()=>{const B={};return e.zIndex&&(B["z-index"]=`${e.zIndex}`),B});return{show:y,tipRef:c,classes:m,styles:g,textClasses:N,textStyles:$,arrowClasses:C,arrowStyles:V,overlayShow:A,overlayStyle:E,onClickOverlay:()=>{b.value=!1,n.emit("update:visible",!1)}}}}),cc=["innerHTML"];function dc(e,n,a,o,l,r){const s=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]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},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(s,{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,cc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Br=oe(ic,[["render",dc]]);class Bn{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 Eo={},uc=new Bn,gt=new Map,An=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()}},fc=e=>{e.unmount=An;const n=document.getElementById(e.id);if(n){const a=gt.get(e.id);a?e={...Eo,...a,...e}:e={...Eo,...e},e.transition=!1;const o=t.createVNode(Br,e);return t.render(o,n),e.id}},mc=e=>{e.unmount=An;let n=e.id??`hinttext_${uc.get()}`;e={...Eo,...e},e.id=n,gt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Br,e);return t.render(o,a),document.body.appendChild(a),n},pc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},yt={show(e,n,a={},o=!0){pc(n);const l=a.id;return l&>.has(l)?fc({...a,message:n,reference:e}):(o&&An(),mc({...a,message:n,reference:e}))},hide(e){An(e)},install(e){e.config.globalProperties.$hintText=yt}};function hc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...pe,...ye},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Be({componentName:e,validate:!1},s);const i=je(),c=bn();kn(!1);const f=t.computed(()=>c&&i?Sn(i,!1).value:null),p=e,u=t.ref(null),h=t.computed(()=>{const F={[p]:!0,[`${p}__gutter`]:f.value&&f.value.type!=="flow",[`${p}__stretch`]:l.span==="stretch",[`${p}__input--border`]:he(l.hasBorder)};if(F[l.errorMarkClass]=!!U.value,F[l.warnMarkClass]=!!D.value,F[l.infoMarkClass]=!!v.value,typeof u.value=="function"){const te=u.value(s);F[te]=!0}else if(typeof u.value=="string"){const te=u.value;F[te]=!0}return F}),b=t.ref(null),y=t.computed(()=>{const F={};if(l.width)l.width!=="auto"&&(F.width=ge(l.width));else{const te=c&&i?Cn(i,!1):null;if(f.value&&te){if(f.value.type==="grid"){const ne=Nn(te,f.value,l.span,l.offset);Object.assign(F,ne)}else if(f.value.type==="flow"){const ne=wn(te,f.value,l.span,l.offset,l.width);Object.assign(F,ne)}}}if(typeof b.value=="function"){const te=b.value(s);te&&Object.assign(F,te)}else if(b.value&&typeof b.value=="object"){const te=b.value;Object.assign(F,te)}return F}),S=t.ref(null),k=t.computed({get:()=>S.value??he(l.isRequired),set:F=>{S.value=F}}),d=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",m=Te(t.toRef(l,"labelPosition"),"labelPosition",hn.Near),g=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),N=t.computed(()=>({[`${p}__main`]:!0,[`${p}__main--${g.value}`]:!0})),$=t.computed(()=>({label:!0,[`label--${g.value}`]:!0})),C=Te(t.toRef(l,"labelWidth"),"labelWidth",hn.Near),V=t.computed(()=>C&&C.value?{width:ge(C.value)}:{}),A=t.computed(()=>({"label--string":!0,"label--required":k.value})),E=t.computed(()=>({content:!0,[l.contentClass]:!0})),T=t.computed(()=>({...l.contentStyle})),B=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ee({setRequired(F){k.value=F},setErrorTip(F){B.errorTip=F},setErrorIcon(F){B.errorIcon=F},setWarnTip(F){B.warnTip=F},setWarnIcon(F){B.warnIcon=F},setInfoTip(F){B.infoTip=F},setInfoIcon(F){B.infoIcon=F},setCustomClassName(F){u.value=F},setCustomStyle(F){b.value=F}});const v=t.computed(()=>l.infoTip||B.infoTip),L=t.computed(()=>l.infoIcon||B.infoIcon),D=t.computed(()=>l.warnTip||B.warnTip),x=t.computed(()=>l.warnIcon||B.warnIcon),U=t.computed(()=>l.errorTip||B.errorTip),q=t.computed(()=>l.errorIcon||B.errorIcon),Y=t.computed(()=>U.value?"error":D.value?"warn":v.value?"info":""),j=()=>Y.value.length>0,J=t.computed(()=>Y.value==="error"?U.value:Y.value==="warn"?D.value:Y.value==="info"?v.value:""),ee=t.computed(()=>Y.value==="error"?q.value:Y.value==="warn"?x.value:Y.value==="info"?L.value:null),W=t.computed(()=>{const F={[`${p}__tip`]:!0,[`${p}__tip--${Y.value}`]:!0,[`${p}--animate`]:!0};return Y.value==="error"&&l.errorClass?F[`${l.errorClass}`]=!0:Y.value==="warn"&&l.warnClass?F[`${l.warnClass}`]=!0:Y.value==="info"&&l.infoClass&&(F[`${l.infoClass}`]=!0),F}),M=t.computed(()=>{const F={};return m&&m.value==="top"||!d()?F["padding-left"]="0px":C&&C.value&&(F["padding-left"]=ge(C.value)),F}),z=t.ref();let I="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([F,te,ne,se])=>{z.value&&(F&&!ue(te)?I?a.show(z.value,te,{...se,id:I,type:ne},!0):I=a.show(z.value,te,{...se,type:ne},!0):a.hide(I))});let R=null;const P=()=>{R||!z.value||(R=new IntersectionObserver(F=>{let te=!1;for(let ne of F)if(ne.intersectionRatio>0){te=!0,te&&r.emit("appear",ne);break}te||r.emit("disappear")}),R.observe(z.value))},O=()=>{!R||!z.value||(R.unobserve(z.value),R=null)};t.watch(()=>he(l.appearListen),F=>{F?P():O()}),t.onMounted(()=>{he(l.appearListen)&&P()}),t.onUnmounted(O);const X=()=>{if(!d())return null;const F=[],te=r.slots?.label?.()??l.label,ne={class:A.value},se=t.h("div",ne,[te]);if(F.push(se),r.slots.fixedPreTip){const xe=r.slots.fixedPreTip();F.push(xe)}const de={class:$.value,style:V.value};return t.h("div",de,F)},K=()=>{const F=[];if(r.slots.prepend){const ne=r.slots.prepend();F.push(ne)}if(r.slots.default){const ne=r.slots.default();F.push(ne)}if(r.slots.append){const ne=r.slots.append();F.push(ne)}if(r.slots.fixedTip){const ne={class:[`${p}__fixed-tip`]},se=t.h("div",ne,[r.slots.fixedTip()]);F.push(se)}const te={ref:z,class:E.value,style:T.value};return t.h("div",te,F)},H=()=>{const F=ee.value;return F?typeof F=="function"?t.h("div",{class:"fox-item__tip--icon"},[F()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(F)]):null},Z=()=>{const F=J.value;return F?typeof F=="function"?t.h("div",{class:"fox-item__tip--text"},[F()]):t.h("div",{class:"fox-item__tip--text"},[F]):null},G=()=>{if(!j())return null;const F=[],te=H();te&&F.push(te);const ne=Z();ne&&F.push(ne);const se={class:W.value,style:M.value};return t.h("div",se,F)},_=()=>r.slots?.hide?.()??null;return()=>{const F=[],te=[],ne=X();ne&&te.push(ne);const se=K();se&&te.push(se);const de={class:N.value},xe=t.h("div",de,te);F.push(xe);const ve=G();ve&&F.push(ve);const ct=_();ct&&F.push(ct);const xa={class:h.value,style:y.value,prop:l.prop};return t.h("div",xa,F)}}}}const{componentName:gc,create:yc,scope:bc}=Q("item"),we=yc(hc(gc,bc,yt,!1));function kc(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,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=je(),i=bn();kn(!1);const c=t.computed(()=>{const f={};if(a.width)a.width!=="auto"&&(f.width=ge(a.width));else if(i&&s){const p=Sn(s,!1),u=Cn(s,!1);if(p.value&&u){if(p.value.type==="grid"){const h=Nn(u,p.value,a.span,a.offset);Object.assign(f,h)}else if(p.value.type==="flow"){const h=wn(u,p.value,a.span,a.offset,a.width);Object.assign(f,h)}}}return f});return()=>{const f=[];if(o.slots.default){const u=o.slots.default();if(a.divide)for(let h=0;h<u.length;h++){if(h>0){const b=t.h("div",{class:{[`${l}__divide`]:!0}});f.push(b)}f.push(u[h])}else Reflect.apply([].push,f,u)}const p={class:r.value,style:c.value};return t.h("div",p,f)}}}}const{componentName:Sc,create:Cc,scope:Z2}=Q("row-item"),Do=Cc(kc(Sc));function wc(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,o){const l=je(),r=bn();kn(!1);const s=t.computed(()=>r&&l?Sn(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),f=t.computed(()=>{const p={};if(a.width)a.width!=="auto"&&(p.width=ge(a.width));else{const u=r&&l?Cn(l,!1):null;if(s.value&&u){if(s.value.type==="grid"){const h=Nn(u,s.value,a.span,a.offset);Object.assign(p,h)}else if(s.value.type==="flow"){const h=wn(u,s.value,a.span,a.offset,a.width);Object.assign(p,h)}}}return p});return()=>{const p={class:c.value,style:f.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",p,o.slots.default()):t.h("div",p)}}}}const{componentName:Nc,create:Bc,scope:J2}=Q("slot-item"),Io=Bc(wc(Nc)),Ar={type:{type:String,default:"text"},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Ac(e,n,a,o){return{props:{...pe,...ye,...Ar},emits:["change","update:modelValue","blur","focus","clear"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),{toLocaleRefs:f}=re.useFoxI18n(n),p=f(l,["placeholder"]),u=t.ref(!1),h=Ie(l,"modelValue"),b=e,y=t.computed(()=>({[b]:!0,[`${b}--disabled`]:s.value,[`${b}--readonly`]:i.value})),S=Te(t.computed(()=>l.textAlign),"textAlign"),k=t.computed(()=>{const x={};return S.value&&(x["text-align"]=S.value),x}),d=x=>{let q=x.target.value;l.type==="digit"&&(q=uo(q,!0)),l.type==="number"&&(q=uo(q,!1)),l.maxLength&&q.length>Number(l.maxLength)&&(q=q.slice(0,Number(l.maxLength))),h.value=q,c("update:modelValue",q,x),c("change",q,x)};let m=Ie(l,"hintText"),g=t.ref(!1);const N=x=>{let q=x.target.value;u.value=!0,ue(m.value)||(g.value=!0),c("focus",q,x)},$=x=>{setTimeout(()=>{g.value&&(g.value=!1),u.value=!1},0);let q=x.target.value;l.maxLength&&q.length>Number(l.maxLength)&&(q=q.slice(0,Number(l.maxLength))),c("blur",q,x)},C=t.computed(()=>({[`${b}__append`]:!0})),V=t.computed(()=>{const x={};return r.slots.append&&!A.value&&!L.value&&(x.display="none"),x}),A=t.computed(()=>be(l.unit)>0),E=t.computed(()=>!L.value),T=t.computed(()=>({[`${b}__unit`]:!0,hidden:!E.value})),B=x=>{h.value="",c("update:modelValue","",x),c("change","",x),c("clear","")},v=t.computed(()=>he(l.clearable)&&!s.value&&!i.value),L=t.computed(()=>{let x=be(h.value)>0;return he(l.clearable)&&x&&u.value}),D=t.computed(()=>({action:!0,hidden:!L.value}));return()=>{const x={class:y.value,style:k.value,type:l.type,maxlength:l.maxLength,placeholder:p.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:d,onFocus:N,onBlur:$},U=[],q=t.h("input",x);U.push(q);const Y=[];if(v.value){const I={class:["action-icon"]},R=t.h(o,I),P={class:D.value,onClick:B},O=t.h("view",P,{default:()=>[R]});Y.push(O)}if(A.value){const I=t.h("view",{class:T.value},[l.unit]);Y.push(I)}const j={class:C.value,style:V.value},J=t.h("view",j,{default:()=>Y});U.push(J);const ee={default:()=>U};ee.label=r.slots.default,ee.prepend=r.slots.prepend,ee.append=r.slots.append,ee.fixedPreTip=r.slots.fixedPreTip,ee.fixedTip=r.slots.fixedTip;const M={...ut(l,Ar),hintText:m.value,hintVisible:g.value,prop:`${l.prop}_item`};return t.h(a,M,ee)}}}}const{componentName:Tc,create:$c,scope:Vc}=Q("input-item"),xo=$c(Ac(Tc,Vc,we,le.CircleClose));function Tr(e,n=0){let a=`${e}`,o=a.indexOf(".");if(o==-1)return a;let l=o;for(let r=a.length-1;r>=o;r--)if(a.charAt(r)!="0"){l=r;break}return l-o<n?l=o+n+1:l!=o&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function $r(e,n,a=20){if(typeof n=="string"&&(n=me(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Fa(`${e}`,`${n}`);return Tr(o)}else{let o=ao(`${e}`,Ra(`${n}`),20);return Tr(o)}}function Ec(e,n=-1,a=!1,o=3,l=","){return _t(e,n,a,o,l)}function Vr(e,n,a,o,l=!0){if(e=="")return"";if(e=Oa(e),n=me(n),n==1)return e;if(o)e=$r(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(me(a)+2,"0"):e=ao(e,1,me(a)));else{let r=-1*n;e=$r(e,r)}return e}function Er(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=he(n.minInclude),l=ro(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=he(n.maxInclude),l=ro(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Dr={clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},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},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Dc(e,n,a,o){return{props:{...pe,...ye,...Dr},emits:["change","update:modelValue","blur","focus","clear"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=t.ref(!1),p=Ie(l,"modelValue"),u=t.ref("");t.watch([()=>p.value,()=>l.rates,()=>l.precision],([j,J,ee])=>{if(ue(j)){u.value="";return}const W=Vr(j,J,ee,!1);u.value!==W&&(u.value=W)},{immediate:!0});const h=t.computed(()=>{let j="";return f.value&&(j=u.value),j}),{t:b}=re.useFoxI18n(n),y=t.computed(()=>{let j=l.placeholder??"";return!f.value&&!ue(u.value)?j=Ec(u.value,l.decimalLength,l.autoPadding,l.digits,l.separator):j=ue(j)?b(["placeholder"]):j,j}),S=e,k=t.computed(()=>({[S]:!0,[`${S}--disabled`]:s.value,[`${S}__placeholder`]:u.value.length>0})),d=Te(t.computed(()=>l.textAlign),"textAlign"),m=t.computed(()=>{const j={};return d.value&&(j["text-align"]=d.value),j}),g=t.ref(""),N=t.computed(()=>{let j=g.value;return ue(j)&&(j=l.errorTip??""),j}),$=t.ref(""),C=t.ref(!1),V=j=>{let ee=j.target.value;if(ue(ee)){u.value="",p.value="",c("update:modelValue","",j),c("change","",j),he(l.showTip)&&C.value&&(C.value=!1);return}if(ee.length>=2){let W=ee;if(W.charAt(0)=="-"&&(W=W.substring(1)),W.length>=2&&W.charAt(0)=="0"&&W.charAt(1)!="."){t.triggerRef(u);return}}if(ee!="-"){if(!Ga(ee)){t.triggerRef(u);return}if(l.integerLength!=-1&&Za(ee)>Number(l.integerLength)){t.triggerRef(u);return}if(l.decimalLength&&l.decimalLength!=-1&&Ja(ee)>Number(l.decimalLength)){t.triggerRef(u);return}let W=Er(ee,l);if(W.maxValid===!1){g.value=W.message,t.triggerRef(u);return}}else if(l.min!=null&&me(l.min)>=0){t.triggerRef(u);return}$.value=ee,he(l.showTip)&&(C.value=ee.length>0),u.value=ee,p.value=Vr(ee,l.rates,l.precision,!0),c("update:modelValue",p.value,j),c("change",p.value,j)},A=j=>{if(f.value=!0,he(l.showTip)){let J=u.value;ue(J)&&(J=l.hintText),ue(J)||($.value=J,C.value=!0)}g.value="",c("focus",p.value,j)},E=j=>{if(setTimeout(()=>{f.value=!1,he(l.showTip)&&C.value===!0&&(C.value=!1)},0),!ue(u.value)){let J=Er(u.value,l);if(J.minValid===!1||J.maxValid===!1){g.value=J.message;return}}c("update:modelValue",p.value,j),c("blur",p.value,j)},T=t.computed(()=>({[`${S}__append`]:!0})),B=t.computed(()=>{const j={};return r.slots.append&&!v.value&&!q.value&&(j.display="none"),j}),v=t.computed(()=>be(l.unit)>0),L=t.computed(()=>!q.value),D=t.computed(()=>({[`${S}__unit`]:!0,hidden:!L.value})),x=j=>{p.value="",c("update:modelValue","",j),c("change","",j),c("clear","")},U=t.computed(()=>he(l.clearable)&&!s.value&&!i.value),q=t.computed(()=>{let j=be(p.value)>0;return he(l.clearable)&&j&&f.value}),Y=t.computed(()=>({action:!0,hidden:!q.value}));return()=>{let j={class:k.value,style:m.value,type:"digit",maxlength:l.maxLength,placeholder:y.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:V,onFocus:A,onBlur:E},J=[],ee=t.h("input",j);J.push(ee);let W=[];if(U.value){const X={class:["action-icon"]},K=t.h(o,X),H={class:Y.value,onClick:x},Z=t.h("view",H,{default:()=>[K]});W.push(Z)}if(v.value){const X=t.h("view",{class:D.value},[l.unit]);W.push(X)}const M={class:T.value,style:B.value},z=t.h("view",M,{default:()=>W});J.push(z);const I={default:()=>J};I.label=r.slots.default,I.prepend=r.slots.prepend,I.append=r.slots.append,I.fixedPreTip=r.slots.fixedPreTip,I.fixedTip=r.slots.fixedTip;let P={...ut(l,Dr),errorTip:N.value,hintText:$.value,hintVisible:C.value,hintType:"number",prop:`${l.prop}_item`};return t.h(a,P,I)}}}}const{componentName:Ic,create:xc,scope:qc}=Q("money-item"),qo=xc(Dc(Ic,qc,we,le.CircleClose)),vo={modelValue:{type:[String,Number],default:""},textAlign:{type:String,default:""},limitShow:{type:Boolean,default:!1},maxLength:{type:[String,Number],default:""},rows:{type:[String,Number],default:"2"},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},autofocus:{type:Boolean,default:!1}},{componentName:vc,create:Mc,scope:Pc}=Q("textarea"),Lc=Mc({props:{...vo},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=re.useFoxI18n(Pc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=vc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=l.value;h.style.height="auto";let b=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:y,minHeight:S}=e.autosize;y!==void 0&&(b=Math.min(b,y)),S!==void 0&&(b=Math.max(b,S))}b&&(h.style.height=b+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,b)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,b),n("change",h,b)};return{...o,textareaRef:l,classes:r,styles:s,change:h=>{const b=h.target;c(b.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let y=h.target.value;c(y,h),n("blur",{value:y,event:h})}}}}),zc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Fc={key:0,class:"fox-textarea__limit"};function Rc(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...s)=>e.change&&e.change(...s)),onBlur:n[1]||(n[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[2]||(n[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,zc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Fc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Tn=oe(Lc,[["render",Rc]]);function Oc(e,n,a,o){return{props:{...pe,...ye,...vo},emits:["update:modelValue","change","blur","focus"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=Ie(l,"modelValue"),p=S=>{f.value=S,c("update:modelValue",S,{}),c("change",S,{})};let u=Ie(l,"hintText"),h=t.ref(!1);const b=S=>{ue(u.value)||(h.value=!0),c("focus",f.value,S)},y=S=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",f.value,S)};return()=>{const k={...ke(l,vo),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":p,onFocus:b,onBlur:y},d=[],m=t.h(o,k);d.push(m);const g={default:()=>d};g.label=r.slots.default,g.prepend=r.slots.prepend,g.append=r.slots.append,g.fixedPreTip=r.slots.fixedPreTip,g.fixedTip=r.slots.fixedTip;const N=ke(l,ye,pe);return t.h(a,{...N,prop:`${l.prop}_item`},g)}}}}const{componentName:Kc,create:Uc,scope:Hc}=Q("textarea-item"),Mo=Uc(Oc(Kc,Hc,we,Tn));function jc(e){return e===window}const De=e=>{const n=t.unref(e);if(jc(n)){const a=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},ze={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:{}}},Ir=2e3;let xr=Ir;const Wc=(e,n)=>({components:n,props:{...ze},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:o}){const l=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})),s=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),i=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{a.zIndex!==Ir&&(xr=Number(a.zIndex)),o("update:visible",!0),l.zIndex=++xr,a.destroyOnClose&&(l.showSlot=!0),o("open")},f=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},p=S=>{o("click-pop",S)},u=S=>{S.stopPropagation(),o("click-close-icon",S),o("update:visible",!1)},h=S=>{o("click-overlay",S),a.closeOnClickOverlay&&o("update:visible",!1)},b=S=>{o("opend",S)},y=S=>{o("closed",S)};return t.watch(()=>a.visible,S=>{a.visible?c():f()}),t.watch(()=>a.closeable,S=>{l.closed=S}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:p,onClickCloseIcon:u,onClickOverlay:h,onOpened:b,onClosed:y}}});let xt=0;const qr="fox-overflow-hidden",vr=()=>tt?document.body:{classList:[]},Yc=e=>[()=>{if(e())try{!xt&&vr().classList.add(qr),xt++}catch{}},()=>{if(e()&&xt)try{xt--,!xt&&vr().classList.remove(qr)}catch{}}],Xc={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:Qc,create:Gc}=Q("overlay"),Zc=Gc({props:{...Xc},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=Yc(()=>e.lockScroll),l=t.computed(()=>({[Qc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,i=>{i?a():o()}),{classes:l,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Jc(e,n,a,o,l,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((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const rt=oe(Zc,[["render",Jc]]),{componentName:_c,create:ed}=Q("popup"),td=ed(Wc(_c,{FoxOverLay:rt,Close:le.Close}));function nd(e,n,a,o,l,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const fe=oe(td,[["render",nd]]),Mr=10;function Pr(e,n){return e>n&&e>Mr?"horizontal":n>e&&n>Mr?"vertical":""}function Po(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Lo(){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",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const f=s.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const c=s;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Pr(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const f=s.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const c=s;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function Je(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),f=t.ref(0),p=t.ref(""),u=()=>p.value==="vertical",h=()=>p.value==="horizontal",b=()=>{s.value=0,i.value=0,c.value=0,f.value=0,p.value="",a.value=0};return{move:k=>{if(k.touches){const g=k.touches[0];s.value=g.clientX-e.value,i.value=g.clientY-n.value,l.value=g.clientX,r.value=g.clientY}else{const m=k;s.value=m.clientX-e.value,i.value=m.clientY-n.value,l.value=m.clientX,r.value=m.clientY}c.value=Math.abs(s.value),f.value=Math.abs(i.value),o.value=Date.now()-a.value,p.value||(p.value=Pr(c.value,f.value))},start:k=>{if(b(),k.touches){const g=k.touches[0];e.value=g.clientX,n.value=g.clientY}else{const m=k;e.value=m.clientX,n.value=m.clientY}a.value=Date.now()},reset:b,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:f,direction:p,isVertical:u,isHorizontal:h}}const Lr={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},zo={...ze,...Lr,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},cancelText:{type:String},clearText:{type:String},confirmText:{type:String}};let zr=36;function od(){return zr}function ld(e){zr=e}function Fe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Fo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function ad(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Fr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let rd=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function sd(){const e=t.getCurrentInstance();return new rd(e.proxy)}function Rr(e,n,a){const o=Fe(e,n),l=Fe(e,a);if(o!==l)return!1;const r=st(e,n),s=st(e,a);return r===s}function id(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=n[s];let f=a[s].findIndex(p=>{if(r==="text")return Fe(e,p)===i;if(r==="value"){let u=st(e,p);return u==null&&(u=Fe(e,p)),u===i}else if(r==="item")return Rr(e,p,i)});if(f==-1)break;l.push(f)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let f=s.findIndex(u=>{if(r==="text")return Fe(e,u)===c;if(r==="value"){let h=st(e,u);return h==null&&(h=Fe(e,u)),h===c}else if(r==="item")return Rr(e,u,c)});if(f==-1)break;l.push(f);const p=Fo(e,s[f]);if(!Array.isArray(p))break;s=p}}return l}function Or(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const f=i[c],p=Fe(e,f);if(l.texts.push(p),l.items.push(f),r==="text")l.values.push(p);else if(r==="value"){let u=st(e,f);u==null&&(u=p),l.values.push(u)}else l.values.push(f)}else{let s=a[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const f=s[c],p=Object.assign({},f);p.children=null;const u=Fe(e,f);if(l.texts.push(u),l.items.push(p),r==="text")l.values.push(u);else if(r==="value"){let h=st(e,f);h==null&&(h=u),l.values.push(h)}else l.values.push(p);if(!Array.isArray(f.children))break;s=f.children}}return l}function Kr(e){return{text:e,value:e}}const cd=15,dd=300,ud=200,{create:fd}=Q("picker-column");function md(e){e.stopPropagation()}function pd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&md(e)}const hd=fd({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},...Lr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${me(e.visibleItemCount)*+e.itemHeight}px`})),l=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)),s=A=>A>=u.currIndex+8||A<=u.currIndex-8,i=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${r.value}px`})),c=A=>`transform: rotate3d(1, 0, 0, ${-u.rotation*A}deg) translate3d(0px, 0px, 104px)`,f=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+r.value}px, 0)`})),p=t.ref(null),u=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=t.toRef(e,"source"),b=A=>Fe(e,A),y=A=>st(e,A),S=Je(),k=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},d=(A,E=!1,T=!1)=>{if(u.currIndex=A,E){const B=()=>{u.moving=!1,n("update:modelValue",A),n("change",A)};T?u.transitionEndTrigger=B:B()}},m=(A,E,T)=>{let B=A+u.startDistance;if(E==="end"){const v=-(h.value.length-1)*e.itemHeight;B<v&&(B=v,(!T||T<=0)&&(T=e.swipeDuration)),B>0&&(B=0,(!T||T<=0)&&(T=e.swipeDuration));let L=Math.abs(Math.round(-B/e.itemHeight));const D=-L*e.itemHeight,x=`${(L+1)*u.rotation}deg`,U=T?T>0:!1;d(L,!0,U),g(D,E,T,x)}else{let v=(-B/e.itemHeight+1)*u.rotation;const L=(h.value.length+1)*u.rotation,D=0;if(v=Math.min(Math.max(v,D),L),e.threeDimensional&&(v<D||v>L))return;g(B,null,void 0,`${v}deg`)}},g=(A=0,E,T=ud,B)=>{E==="end"?u.scrollTime=T:u.scrollTime=0,u.deg=B,u.scrollDistance=A},N=(A,E)=>(A=Math.abs(A/E)/.003*(A<0?-1:1),A),$=A=>{e.readonly||(u.startDistance=u.scrollDistance,S.start(A),u.transitionEndTrigger=null)},C=A=>{e.readonly||(u.moving=!0,S.move(A),S.isVertical()&&(u.moving=!0,pd(A,!0)),m(S.deltaY.value,"",0))},V=()=>{if(e.readonly)return;const A=S.deltaY.value,E=S.duration.value;if(E<dd&&Math.abs(A)>cd){const B=N(A,E);m(B,"end",e.swipeDuration)}else m(A,"end",0)};return t.watch(()=>e.modelValue,A=>{if(u.currIndex!==A){u.currIndex=A;const E=-A*e.itemHeight;m(E)}}),t.onMounted(()=>{const A=-e.modelValue*e.itemHeight;m(A)}),{classes:a,styles:o,contentClasses:l,source:h,itemText:b,itemValue:y,...t.toRefs(u),roller:p,getItemText:Fe,onTouchStart:$,onTouchMove:C,onTouchEnd:V,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:f,stopMomentum:k}}}),gd={key:1,class:"fox-picker__item-tile"};function yd(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[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,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",gd,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Ur=oe(hd,[["render",yd]]),{create:bd,componentName:kd,scope:Sd}=Q("picker"),Cd=bd({components:{[Ur.name]:Ur,[fe.name]:fe},props:{...zo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=re.useFoxI18n(Sd),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(od());t.watch(()=>e.visible,T=>{T&&s.value<=0&&setTimeout(()=>{if(r.value){const B=De(r.value);s.value=B.height,ld(s.value)}},50)});const i=t.computed(()=>({[kd]:!0})),c=sd(),f=t.ref("singleColumn");let p=t.ref([]);t.watch([()=>e.source,()=>e.params],async([T,B])=>{if(T){let v=await c.load("picker",T,B);if(v.length>0){let L=v[0];if(Array.isArray(L)){if(typeof L[0]=="string"){let D=v,x=[];D.forEach(U=>{let q=U.map(Y=>Kr(Y));x.push(q)}),p.value=x}else p.value=v;f.value="multipleColumn"}else if(typeof L=="string"){let D=v,x=[],U=D.map(q=>Kr(q));x.push(U),p.value=x,f.value="singleColumn"}else{const D=Fo(e,L);Array.isArray(D)?(f.value="cascade",p.value=[v]):(f.value="singleColumn",p.value=[v])}}else p.value=[]}},{immediate:!0});const u=t.ref([]),h=t.ref(e.modelValue),b=t.ref([]),y=t.ref([]);t.watch([()=>e.modelValue,()=>p.value],([T,B])=>{let v=id(e,T,B,f.value);if(!Me(v,y.value)){y.value=v;let L=Or(e,v,B,f.value);L&&(u.value=L.texts,n("update:text",u.value))}});const S=t.ref(e.visible);t.watch(()=>e.visible,T=>{S.value=T});const k=T=>{let B=Fr(e,T);return $e(B)?B.defaultIndex??0:0},d=T=>{if(e.readonly===!0)return!0;let B=Fr(e,T);return $e(B)?B.readonly??!1:!1},m=(T,B)=>{let v=y.value;v[T]=B;for(let D=0;D<T;D++)v[D]==null&&(v[D]=k(D));if(f.value==="cascade")for(let D=T+1;D<N.value.length;D++){let x=k(D);D<v.length?v[D]=x:v.push(x)}else for(let D=v.length;D<N.value.length;D++){let x=k(D);v.push(x)}y.value=v;let L=Or(e,v,p.value,f.value);L&&(u.value=L.texts,h.value=L.values,b.value=L.items)},g=T=>T<y.value.length?y.value[T]:k(T),N=t.computed(()=>{if(p.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return p.value;let T=[],B=0,v=p.value[0],L=0;for(;;){let D=v.map(q=>{let Y=Object.assign({},q);return ad(e,Y,null),Y});T.push(D),B>=y.value.length?L=0:L=y.value[B],(L<0||L>=v.length)&&(L=0);let x=v[L];const U=Fo(e,x);if(!Array.isArray(U))break;v=U,B++}return T}),$=t.computed(()=>me(+e.visibleItemCount-1)/2*s.value);return{...l,pickerLineRef:r,classes:i,columns:N,dataType:f,show:S,itemHeight:s,top:$,isReadonly:d,getIndex:g,change:(T,B)=>{m(T,B)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let T=p.value.length-1;for(;T>=0&&!(y.value[T]===null||y.value[T]===void 0);T--);if(T>=0&&m(T,0),f.value==="singleColumn"){let B=h.value.length>0?h.value[0]:"",v=b.value.length>0?b.value[0]:null;e.readonly||(n("update:modelValue",B),n("update:text",u.value),n("change",B,v)),n("confirm",B)}else e.readonly||(n("update:modelValue",h.value),n("update:text",u.value),n("change",h.value,b.value)),n("confirm",h.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}f.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),wd={class:"fox-picker__bar"},Nd={class:"fox-picker__title"},Bd={class:"fox-picker__bar__action"},Ad={class:"fox-picker__column"};function Td(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",wd,[t.createElementVNode("view",Nd,t.toDisplayString(e.title),1),t.createElementVNode("view",Bd,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Ad,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(f),"column-index":f,modelValue:e.getIndex(f),"onUpdate:modelValue":p=>e.change(f,p),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const bt=oe(Cd,[["render",Td]]);function $d(e,n,a,o,l,r,s=!0){return{props:{...pe,...ye,...zo,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},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const f=Ae(t.computed(()=>i.disabled)),p=Ve(t.computed(()=>i.readonly)),{emitEvent:u}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),b=h(i,["placeholder"]),y=t.ref(!1),S=Ie(i,"modelValue"),k=t.ref([]),d=t.computed(()=>Array.isArray(k.value)?k.value.join(i.separator):k.value),m="fox-input-item",g=t.computed(()=>({[m]:!0,[`${m}__disabled`]:f.value})),N=Te(t.computed(()=>i.textAlign),"textAlign"),$=t.computed(()=>{const z={};return N.value&&(z["text-align"]=N.value),z}),C=t.ref(!1),V=()=>{C.value=!0},A=z=>{C.value=z},E=z=>{S.value=z,u("update:modelValue",z)},T=(z,I)=>{u("change",z,I)},B=z=>{let R=z.target.value;y.value=!0,u("focus",R,z)},v=z=>{setTimeout(()=>{y.value=!1},0);let R=z.target.value;i.maxLength&&R.length>Number(i.maxLength)&&(R=R.slice(0,Number(i.maxLength))),u("blur",R,z)},L=z=>{k.value=z,Array.isArray(z)&&z.length===0?u("update:text",z[0]):u("update:text",z)},D=t.computed(()=>({[`${m}__append`]:!0})),x=t.computed(()=>be(i.unit)>0),U=t.computed(()=>be(i.unit)>0&&!y.value),q=t.computed(()=>({hidden:!U.value})),Y=z=>{S.value="",u("update:modelValue","",z),u("change","",z),u("clear","")},j=t.computed(()=>i.clearable&&!f.value&&!p.value),J=t.computed(()=>be(S.value)>0&&y.value),ee=z=>{J.value?Y(z):V()},W=t.computed(()=>J.value&&j.value?o:l),M=t.computed(()=>({action:!0}));return()=>{const z={class:g.value,style:$.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:V,onFocus:B,onBlur:v};s&&(z.disabled=!0);const I=[],R=t.h("input",z);I.push(R);const P=[],O={class:["action-icon"]},X=t.h(W.value,O),K={class:M.value,onClick:ee},H=t.h("view",K,{default:()=>[X]});if(P.push(H),x.value){const de=t.h("view",{class:q.value},[i.unit]);P.push(de)}const Z={class:D.value},G=t.h("view",Z,{default:()=>P});I.push(G);const _={default:()=>I};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const F=ke(i,zo);F.disabled=!1,F.readonly=f.value||p.value,F.visible=C.value,F["onUpdate:visible"]=A,F.modelValue=S.value,F["onUpdate:modelValue"]=E,F.text=k.value,F["onUpdate:text"]=L,F.onChange=T;const te=t.h(r,F);_.hide=()=>[te];const ne=ke(i,ye,pe);return t.h(a,ne,_)}}}}const{componentName:Vd,create:Ed,scope:Dd}=Q("picker-item"),Ro=Ed($d(Vd,Dd,we,le.CircleClose,le.ArrowRight,bt,!1)),$n=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:f,...p}=o,u={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:f,_parent:n};return u.children&&u.children.length&&(u.children=$n(u.children,u,a)),u}),Hr=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Hr(o.children,n)},Id={topId:null,idKey:"id",pidKey:"pid",sortKey:""},xd=(e,n)=>{const a={...Id,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(f=>{f={...f};const{[l]:p,[r]:u}=f,h=c[u]=c[u]||[];!i.length&&u===o&&(i=h),h.push(f),f.children=c[p]||(c[p]=[])}),s&&Object.keys(c).forEach(f=>{c[f].length>1&&c[f].sort((p,u)=>p[s]-u[s])}),c=null,i},qd={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}},jr=(e,n)=>n[e.textKey],qt=(e,n)=>n[e.valueKey],vd=(e,n)=>n[e.visibleKey],Wr=(e,n)=>n[e.disabledKey],Md=(e,n)=>{const a=n[e.doitKey];return he(a)},Pd=(e,n)=>{const a=n[e.numKey];return a==null?null:me(n[a])},Yr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Ld(e,n,a,o=!1){return{props:{...qd},emits:["update:modelValue","change"],setup(l,{slots:r,emit:s}){const i=t.computed(()=>{const W={};return W[`${e}`]=!0,W}),c=t.computed(()=>{const W={};return W[`${e}__titles`]=!0,W[`${l.direction}`]=!0,l.align==="left"&&(W.left=!0),l.scroll===!0&&(W.scrollable=!0),l.shape&&(W[`${l.shape}`]=!0),W}),f=t.computed(()=>({})),p=t.computed(()=>{if(!l.gutter)return 0;const W=ce(l.gutter);return W<=0?0:W}),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,W=>{u.value!==W&&(u.value=W,q(!1))});const h=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=t.computed(()=>{const W={};return S.value||(W.display="none"),W}),y=t.ref(),S=t.ref(!1),k=()=>{const W=!S.value;d(W)},d=W=>{const M=W;M?(S.value=M,setTimeout(()=>{h.value["fox-tabs-bar__popup--show"]=!0,h.value["fox-tabs-bar__popup--hide"]=!1},0)):(h.value["fox-tabs-bar__popup--show"]=!1,h.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{S.value=!1},{once:!0}):setTimeout(()=>{S.value=!1},0))},m=t.ref(),g=t.ref([]),N=(W,M)=>{g.value[M]=W},$=W=>M=>{N(M,W)},C=(W,M)=>{const z=m.value,I=g.value;if(!z||!I||!I[W])return;const R=I[W];let P=0;l.direction==="vertical"?P=R.offsetTop-(z.offsetHeight-R.offsetHeight)/2:P=R.offsetLeft-(z.offsetWidth-R.offsetWidth)/2,V(z,P,M?0:.3,l.direction)},V=(W,M,z,I)=>{let R=0;const P=I==="horizontal"?W.scrollLeft:W.scrollTop,O=z===0?1:Math.round(z*1e3/16);function X(){I==="horizontal"?W.scrollLeft+=(M-P)/O:W.scrollTop+=(M-P)/O,++R<O&&Oe(X)}X()},A=(W,M)=>{const z=qt(l,W),I={};return I[`${e}__titles-item`]=!0,I.disabled=Wr(l,W),I.active=z===u.value,l.shape&&(I[`${l.shape}`]=!0),l.ellipsis&&(I.ellipsis=!0),M&&(M.class&&(I[`${M.class}`]=!0),M.disabled===!0&&(I.disabled=M.disabled)),I},E=(W,M)=>{const z={};if(p.value>0){const I=Math.abs(p.value/2);l.direction==="vertical"?(z["margin-top"]=`${I}px`,z["margin-bottom"]=`${I}px`):(z["margin-left"]=`${I}px`,z["margin-right"]=`${I}px`)}return M&&M.style&&Object.assign(z,M.style),z},T=(W,M)=>`${qt(l,W)??M}`,B=(W,M)=>{const z=qt(l,W),I={};I[`${e}__popup-item`]=!0,I.disabled=Wr(l,W),I.active=z===u.value,l.shape&&(I[`${l.shape}`]=!0);const R=Yr(l,W,M);return R&&R.disabled===!0&&(I.disabled=R.disabled),I},v=t.computed(()=>(l.data??[]).filter(M=>vd(l,M)!==!1)),L=(W,M)=>{const z=qt(l,W);if(u.value==z)return;const I=()=>{u.value=z,l.scroll&&C(M,!1),s("update:modelValue",z),s("change",W,M)};if(typeof l.beforeChange=="function"){const R=l.beforeChange(W,M);dt(R)?R.then(P=>{P!==!1&&I()}).catch(()=>{I()}):R!==!1&&I()}else I()},D=(W,M)=>function(){L(W,M)},x=(W,M)=>{L(W,M),d(!1)},U=(W,M)=>function(){x(W,M)},q=W=>{if(!Array.isArray(l.data)||!l.scroll)return;const M=l.data.findIndex(z=>qt(l,z)===u.value);M!==-1&&C(M,W)};t.watch(()=>l.data,()=>{setTimeout(q,0)}),t.onMounted(()=>{q(!0)});const Y=(W,M)=>{if(r.item)return r.item({item:W,index:M});const z=Yr(l,W,M),I=[];if(r.text){const X=r.text({item:W,index:M});I.push(X)}else{const X=[];if(z?.doit===!0||Md(l,W)){const G={class:[`${e}__titles-item-tip`,"doit"]},_=t.h("view",G);X.push(_)}const K=z?.num??Pd(l,W);if(K){let G="";const _=me(K);_>=100?G="99+":G=`${_}`;const F={class:[`${e}__titles-item-tip`,"num"]},te=t.h("view",F,[G]);X.push(te)}const H={class:`${e}__titles-item-text`};X.push(jr(l,W));const Z=t.h("view",H,X);I.push(Z)}const R={class:`${e}__titles-item-line`},P=t.h("view",R);I.push(P);const O={ref:$(M),class:A(W,z),style:E(W,z),key:T(W,M),onClick:D(W,M)};return t.h("view",O,I)},j=()=>{const W=r.default?r.default():[];if(W.length===0)for(let z=0;z<v.value.length;z++){const I=v.value[z],R=Y(I,z);W.push(R)}const M={ref:m,class:c.value,style:f.value};return t.h("view",M,W)},J=()=>{let W=null;r.navigation?W=r.navigation():W=t.h(a);const M={class:`${e}__navigation`,onClick:k};return t.h("view",M,[W])},ee=()=>{const W=[];for(let z=0;z<v.value.length;z++){const I=v.value[z];let R=null;r.popupItem?R=r.popupItem({item:I,index:z}):R=jr(l,I);const P={class:B(I,z),key:T(I,z),onClick:U(I,z)},O=t.h("view",P,[R]);W.push(O)}const M={class:h.value,style:b.value};return t.h("view",M,W)};return()=>{const W=[],M=j();if(W.push(M),l.showQuickNavigation){const I=J();W.push(I);const R=ee();W.push(R)}const z={class:i.value};return t.h("view",z,W)}}}}const{create:zd,componentName:Fd,scope:Rd}=Q("tabs-bar"),Vn=zd(Ld(Fd,Rd,le.MoreH,!1)),Xr=Symbol("TabsStatesKey"),Od={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Kd(e,n,a=!1){return{props:{...Od},emits:["update:modelValue","change"],setup(o,{emit:l,slots:r}){const s=t.shallowRef([]),i={current:t.ref(o.modelValue??""),direction:t.ref(o.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:S=>{const k={name:S};i.current.value===S&&(k.loaded=!0),s.value.push(k),t.triggerRef(s)},remove:S=>{const k=s.value.findIndex(d=>d.name===S);k!==-1&&s.value.splice(k,1)},isLoaded:S=>{if(!o.lazy)return!0;const k=s.value.findIndex(d=>d.name===S);return k!==-1?i.current.value?s.value[k].loaded??!1:k===0:!1}};t.provide(Xr,i);const c=S=>{const k=s.value.findIndex(d=>d.name===S);k!==-1&&(s.value[k].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([S,k])=>{i.current.value!==S&&(i.current.value=S??"",c(S??"")),i.direction.value!==k&&(i.direction.value=k)});const f=t.ref(null),p=t.ref(null),u=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let h=!0;const b=t.computed(()=>{const S={},k=s.value.length;if(k<=0)return S;const d=s.value.findIndex(m=>m.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(S.height=`${k*i.tabHeight.value}px`,d!==-1&&(S.transform=`translate(0, -${d*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(S.width=`${k*i.tabWidth.value}px`,d!==-1&&(S.transform=`translate(-${d*i.tabWidth.value}px, 0)`)),h&&(h=!1,S.transition="transform 0s ease;"),S});let y=null;return t.onMounted(()=>{if(!f.value)return;const S=()=>{const k=yn(f.value);i.tabWidth.value=k.width,i.tabHeight.value=k.height};window.ResizeObserver&&(y=new window.ResizeObserver(S),y.observe(f.value)),S()}),t.onBeforeUnmount(()=>{y&&(y.disconnect(),y=null)}),()=>{const S={class:`${e}__panes`,style:b.value,ref:p},k=t.h("view",S,[r?.default?.()]),d={class:u.value,ref:f};return t.h("view",d,[k])}}}}const{create:Ud,componentName:Hd,scope:jd}=Q("tabs-container"),En=Ud(Kd(Hd,jd,!1)),Wd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Yd(e,n,a){return{props:{...Wd},setup(o,{emit:l,slots:r}){const s=t.inject(Xr);t.onMounted(()=>{s.add(o.paneKey)}),t.onBeforeUnmount(()=>{s.remove(o.paneKey)});const i=t.computed(()=>{const f={};return s.direction.value==="vertical"&&s.tabHeight.value>0?f.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(f.width=`${s.tabWidth.value}px`),f}),c=t.computed(()=>o.loaded!=null?he(o.loaded):s.isLoaded(o.paneKey));return()=>{let f=[];if(c.value)f=r?.default?.()??[];else if(r.empty)f=r.empty();else{const u={class:`${e}__empty-icon`},h=o.emptyIcon??a,b=t.h(h,u),y={class:`${e}__empty-text`},S=o.emptyText??"Loading",k=t.h("view",y,[S]),d={class:`${e}__empty`},m=t.h("view",d,[b,k]);f.push(m)}const p={class:`${e}`,style:i.value};return t.h("view",p,f)}}}}const{create:Xd,componentName:Qd,scope:Gd}=Q("tabs-pane"),Dn=Xd(Yd(Qd,Gd,le.Loading));class Qr{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 Hr(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:Zd,scope:Jd}=Q("cascader-pane"),_d=Zd({components:{Loading:le.Loading,Checklist:le.Checklist,TabsBar:Vn,TabsContainer:En,TabsPane:Dn},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}=re.useFoxI18n(Jd),o=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),l=t.ref(0),r=t.ref(!1),s=t.ref(e.modelValue),i=t.ref(new Qr([],{})),c=t.ref([]),f=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),p=t.computed(()=>r.value==!0||c.value.length==0?[{text:"Loading",value:0}]:c.value.map((m,g)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:g}))),u=new Map;let h;const b=async()=>{u.clear(),c.value=[],l.value=0,r.value=!1,h=null;let{options:m}=e;o.value.convertConfig&&(m=xd(m,o.value.convertConfig)),i.value=new Qr(m,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),f.value&&!i.value.nodes.length&&await S({root:!0,loading:!0,text:"",value:""}),c.value=[{nodes:i.value.nodes,selectedNode:null}],y()},y=async()=>{const m=s.value;if(m===void 0||!i.value.nodes.length)return;if(m.length===0){l.value=0,c.value=[{nodes:i.value.nodes,selectedNode:null}];return}let g=m;if(f.value&&Array.isArray(m)&&m.length){g=[];let N=i.value.nodes.find($=>$.value===m[0]);if(N){g=[N.value],r.value=!0;const $=await m.slice(1).reduce(async(C,V)=>{const A=await C;await S(A);const E=A?.children?.find(T=>T.value===V);return E&&g.push(V),Promise.resolve(E)},Promise.resolve(N));await S($),r.value=!1}}g.length&&m===e.modelValue&&i.value.getPathNodesByValue(g).map(($,C)=>{l.value=C,d.handleNode($,!0)})},S=async m=>{if(!m)return;if(!o.value.lazyLoad){m.leaf=!0;return}if(i.value.isLeaf(m,f.value)||i.value.hasChildren(m,f.value))return;m.loading=!0;const g=m.root?null:m;let N=u.get(m);N||(N=new Promise(C=>{o.value.lazyLoad?.(m,C)}),u.set(m,N));const $=await N;Array.isArray($)&&$.length>0?i.value.updateChildren($,g):m.leaf=!0,m.loading=!1,u.delete(m)},k=m=>{const g=m.map(N=>N.value);s.value=g,n("change",g,m),n("update:modelValue",g,m)},d={async handleNode(m,g){const{disabled:N,loading:$}=m;if(!(!g&&N||!c.value[l.value])){if(i.value.isLeaf(m,f.value)){if(m.leaf=!0,c.value[l.value].selectedNode=m,c.value=c.value.slice(0,m.level+1),!g){const C=c.value.map(V=>V.selectedNode);k(C),n("pathChange",C)}return}if(i.value.hasChildren(m,f.value)){const C=m.level+1;if(c.value[l.value].selectedNode=m,c.value=c.value.slice(0,C),c.value.push({nodes:m.children||[],selectedNode:null}),l.value=C,!g){const V=c.value.map(A=>A.selectedNode);n("pathChange",V)}return}h=m,!$&&(await S(m),h===m&&(c.value[l.value].selectedNode=m,d.handleNode(m,g)))}},handleTabChange(m,g){h=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,g){return m.selectedNode&&m.selectedNode.value===g.value}};return t.watch([o,()=>e.options],()=>{b()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{m!==s.value&&(s.value=m,y())}),t.watch(()=>e.visible,m=>{m&&Array.isArray(s.value)&&s.value.length>0&&y()}),{panes:c,panesTitles:p,initLoading:r,tabsCursor:l,...d}}}),eu={class:"fox-cascader"},tu={role:"menu",class:"fox-cascader__pane"},nu=["aria-checked","aria-disabled","onClick"],ou={class:"fox-cascader__item__title"},lu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function au(e,n,a,o,l,r){const s=t.resolveComponent("TabsBar"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),f=t.resolveComponent("TabsPane"),p=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",eu,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(p,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,h)=>(t.openBlock(),t.createBlock(f,{"pane-key":h,key:h},{default:t.withCtx(()=>[t.createElementVNode("view",tu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,b=>(t.openBlock(),t.createElementBlock("view",{key:b.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,b),disabled:b.disabled}]),"aria-checked":e.isSelected(u,b),"aria-disabled":b.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(b,!1)},[t.createElementVNode("view",ou,t.toDisplayString(b.text),1),b.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(c,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,nu))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(f,{key:1,"pane-key":0},{default:t.withCtx(()=>[lu]),_:1}))]),_:1},8,["modelValue"])])}const ru=oe(_d,[["render",au]]),{create:su}=Q("cascader"),iu=su({components:{FoxCascaderPane:ru,FoxPopup:fe},props:{...ze,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),o=t.computed({get(){return e.visible},set(s){n("update:visible",s)}}),l=(s,i)=>{a.value=s,o.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==a.value&&(a.value=s)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),cu=["innerHTML"];function du(e,n,a,o,l,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,cu)):t.createCommentVNode("",!0),t.createVNode(s,{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(s,{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 In=oe(iu,[["render",du]]);function vt(e,n){const a=e.textKey??"text";return n[a]??""}function Mt(e,n){const a=e.valueKey??"value";return n[a]}function Gr(e,n){const a=e.childrenKey??"children";return n[a]}function xn(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=vt(e,l),s=Mt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function Zr(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(vt(e,n[s])===r){const c=Mt(e,n[s])??"",f={[e.textKey]:r,[e.valueKey]:c};l.push(f);const p=Gr(e,n[s]);Array.isArray(p)&&Zr(e,p,a,o+1,l);return}}function Jr(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Mt(e,n[s])===r){const c=vt(e,n[s])??"",f={[e.textKey]:c,[e.valueKey]:r};l.push(f);const p=Gr(e,n[s]);Array.isArray(p)&&Jr(e,p,a,o+1,l);return}}function Oo(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++){const l=vt(e,n[o]),r=vt(e,a[o]);if(l!==r)return!1;const s=Mt(e,n[o]),i=Mt(e,a[o]);if(s!==i)return!1}return!0}let uu=class{proxy;constructor(n){this.proxy=n}async load(n,a){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=Ge(this.proxy,o);return l===null?(console.error(`${o} component not found api function`),[]):($e(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await l(n,a))}};function fu(){const e=t.getCurrentInstance();return new uu(e.proxy)}const _r={modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function mu(e,n,a,o,l,r,s=!1){return{props:{...pe,...ye,..._r},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes"],setup(i,c){const f=Ae(t.computed(()=>i.disabled)),p=Ve(t.computed(()=>i.readonly)),{emitEvent:u}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),b=h(i,["placeholder"]),y=t.ref(!1),S=fu(),k=t.ref([]);t.watch([()=>i.source,()=>i.params],async([R,P])=>{R&&(k.value=await S.load(R,P))},{immediate:!0});const d=t.ref([]),m=t.computed(()=>Array.isArray(d.value)?d.value.join(" "):d.value),g=t.ref([]),N=t.ref([]);t.watch([()=>i.modelValue],async([R])=>{if(i.lazy===!0){N.value.length==0&&(d.value=Array.isArray(R)?R:[],g.value=Array.isArray(R)?R:[]);return}if(i.valueType==="item"){let P=R;if(!Oo(i,P,N.value)){N.value=P;let O=xn(i,P);d.value=O.texts,g.value=O.values}}else if(i.valueType==="text"){let P=R,O=[];if(Zr(i,k.value,P,0,O),!Oo(i,O,N.value)){N.value=O;let X=xn(i,O);P.value=X.texts,g.value=X.values}}else{let P=[];if(Jr(i,k.value,R,0,P),!Oo(i,P,N.value)){N.value=P;let O=xn(i,P);d.value=O.texts,g.value=O.values}}},{immediate:!0});const $="fox-input-item",C=t.computed(()=>({[$]:!0,[`${$}__disabled`]:f.value})),V=Te(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const R={};return V.value&&(R["text-align"]=V.value),R}),E=t.ref(!1),T=()=>{f.value===!0||p.value===!0||(E.value=!0)},B=R=>{E.value=R},v=(R,P)=>{let O=P.map(K=>{if(K==null)return K;let H={...K};return Reflect.deleteProperty(H,"text"),H[i.textKey]=K.text??"",Reflect.deleteProperty(H,"value"),H[i.valueKey]=K.value??"",H});N.value=O;let X=xn(i,O);d.value=X.texts,g.value=X.values,i.valueType==="text"?(u("change",d.value,O),u("update:modelValue",d.value)):i.valueType==="item"?(u("change",O,O),u("update:modelValue",O)):(u("change",g.value,O),u("update:modelValue",g.value)),u("update:pathNodes",O)},L=R=>{let P=R.map(O=>{if(O==null)return O;let X={...O};return Reflect.deleteProperty(X,"text"),X[i.textKey]=O.text??"",Reflect.deleteProperty(X,"value"),X[i.valueKey]=O.value??"",X});u("pathChange",P)},D=R=>{y.value=!0,u("focus",g.value,R)},x=R=>{setTimeout(()=>{y.value=!1},0),u("blur",g.value,R)},U=t.computed(()=>({[`${$}__append`]:!0})),q=t.computed(()=>be(i.unit)>0),Y=t.computed(()=>be(i.unit)>0&&!y.value),j=t.computed(()=>({hidden:!Y.value})),J=R=>{N.value=[],d.value=[],g.value=[],u("update:modelValue",[]),u("change",[],R),u("clear",[]),u("update:pathNodes",[])},ee=t.computed(()=>i.clearable&&!f.value&&!p.value),W=t.computed(()=>{let R=g.value&&g.value.length>0;return i.clearable&&R&&y.value}),M=R=>{W.value?J(R):T()},z=t.computed(()=>W.value&&ee.value?o:l),I=t.computed(()=>({action:!0}));return()=>{const R={class:C.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:T,onFocus:D,onBlur:x};s&&(R.disabled=!0);const P=[],O=t.h("input",R);P.push(O);const X=[],K={class:["action-icon"]},H=t.h(z.value,K),Z={class:I.value,onClick:M},G=t.h("view",Z,{default:()=>[H]});if(X.push(G),q.value){const ve=t.h("view",{class:j.value},[i.unit]);X.push(ve)}const _={class:U.value},F=t.h("view",_,{default:()=>X});P.push(F);const te={default:()=>P};te.label=c.slots.default,te.prepend=c.slots.prepend,te.append=c.slots.append,te.fixedPreTip=c.slots.fixedPreTip,te.fixedTip=c.slots.fixedTip;let ne={};ne.visible=E.value,ne["onUpdate:visible"]=B,ne.modelValue=g.value,ne.onChange=v,ne.onPathChange=L,ne.options=k.value,ne.title=i.title,ne.lazy=i.lazy,ne.lazyLoad=i.lazyLoad,ne.valueKey=i.valueKey,ne.textKey=i.textKey,ne.childrenKey=i.childrenKey,ne.convertConfig=i.convertConfig;const se=t.h(r,ne);te.hide=()=>[se];const de=ut(i,_r);return t.h(a,{...de,prop:`${i.prop}_item`},te)}}}}const{componentName:pu,create:hu,scope:gu}=Q("cascader-item"),Ko=hu(mu(pu,gu,we,le.CircleClose,le.ArrowRight,In,!1));var We=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var es={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",f="day",p="week",u="month",h="quarter",b="year",y="date",S="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|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("_")},g=function(L,D,x){var U=String(L);return!U||U.length>=D?L:""+Array(D+1-U.length).join(x)+L},N={s:g,z:function(L){var D=-L.utcOffset(),x=Math.abs(D),U=Math.floor(x/60),q=x%60;return(D<=0?"+":"-")+g(U,2,"0")+":"+g(q,2,"0")},m:function L(D,x){if(D.date()<x.date())return-L(x,D);var U=12*(x.year()-D.year())+(x.month()-D.month()),q=D.clone().add(U,u),Y=x-q<0,j=D.clone().add(U+(Y?-1:1),u);return+(-(U+(x-q)/(Y?q-j:j-q))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:u,y:b,w:p,d:f,D:y,h:c,m:i,s,ms:r,Q:h}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},$="en",C={};C[$]=m;var V=function(L){return L instanceof B},A=function L(D,x,U){var q;if(!D)return $;if(typeof D=="string"){var Y=D.toLowerCase();C[Y]&&(q=Y),x&&(C[Y]=x,q=Y);var j=D.split("-");if(!q&&j.length>1)return L(j[0])}else{var J=D.name;C[J]=D,q=J}return!U&&q&&($=q),q||!U&&$},E=function(L,D){if(V(L))return L.clone();var x=typeof D=="object"?D:{};return x.date=L,x.args=arguments,new B(x)},T=N;T.l=A,T.i=V,T.w=function(L,D){return E(L,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var B=function(){function L(x){this.$L=A(x.locale,null,!0),this.parse(x)}var D=L.prototype;return D.parse=function(x){this.$d=function(U){var q=U.date,Y=U.utc;if(q===null)return new Date(NaN);if(T.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var j=q.match(k);if(j){var J=j[2]-1||0,ee=(j[7]||"0").substring(0,3);return Y?new Date(Date.UTC(j[1],J,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ee)):new Date(j[1],J,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ee)}}return new Date(q)}(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 T},D.isValid=function(){return this.$d.toString()!==S},D.isSame=function(x,U){var q=E(x);return this.startOf(U)<=q&&q<=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,q){return T.u(x)?this[U]:this.set(q,x)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(x,U){var q=this,Y=!!T.u(U)||U,j=T.p(x),J=function(O,X){var K=T.w(q.$u?Date.UTC(q.$y,X,O):new Date(q.$y,X,O),q);return Y?K:K.endOf(f)},ee=function(O,X){return T.w(q.toDate()[O].apply(q.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(X)),q)},W=this.$W,M=this.$M,z=this.$D,I="set"+(this.$u?"UTC":"");switch(j){case b:return Y?J(1,0):J(31,11);case u:return Y?J(1,M):J(0,M+1);case p:var R=this.$locale().weekStart||0,P=(W<R?W+7:W)-R;return J(Y?z-P:z+(6-P),M);case f:case y:return ee(I+"Hours",0);case c:return ee(I+"Minutes",1);case i:return ee(I+"Seconds",2);case s:return ee(I+"Milliseconds",3);default:return this.clone()}},D.endOf=function(x){return this.startOf(x,!1)},D.$set=function(x,U){var q,Y=T.p(x),j="set"+(this.$u?"UTC":""),J=(q={},q[f]=j+"Date",q[y]=j+"Date",q[u]=j+"Month",q[b]=j+"FullYear",q[c]=j+"Hours",q[i]=j+"Minutes",q[s]=j+"Seconds",q[r]=j+"Milliseconds",q)[Y],ee=Y===f?this.$D+(U-this.$W):U;if(Y===u||Y===b){var W=this.clone().set(y,1);W.$d[J](ee),W.init(),this.$d=W.set(y,Math.min(this.$D,W.daysInMonth())).$d}else J&&this.$d[J](ee);return this.init(),this},D.set=function(x,U){return this.clone().$set(x,U)},D.get=function(x){return this[T.p(x)]()},D.add=function(x,U){var q,Y=this;x=Number(x);var j=T.p(U),J=function(M){var z=E(Y);return T.w(z.date(z.date()+Math.round(M*x)),Y)};if(j===u)return this.set(u,this.$M+x);if(j===b)return this.set(b,this.$y+x);if(j===f)return J(1);if(j===p)return J(7);var ee=(q={},q[i]=o,q[c]=l,q[s]=a,q)[j]||1,W=this.$d.getTime()+x*ee;return T.w(W,this)},D.subtract=function(x,U){return this.add(-1*x,U)},D.format=function(x){var U=this,q=this.$locale();if(!this.isValid())return q.invalidDate||S;var Y=x||"YYYY-MM-DDTHH:mm:ssZ",j=T.z(this),J=this.$H,ee=this.$m,W=this.$M,M=q.weekdays,z=q.months,I=function(X,K,H,Z){return X&&(X[K]||X(U,Y))||H[K].slice(0,Z)},R=function(X){return T.s(J%12||12,X,"0")},P=q.meridiem||function(X,K,H){var Z=X<12?"AM":"PM";return H?Z.toLowerCase():Z},O={YY:String(this.$y).slice(-2),YYYY:this.$y,M:W+1,MM:T.s(W+1,2,"0"),MMM:I(q.monthsShort,W,z,3),MMMM:I(z,W),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:I(q.weekdaysMin,this.$W,M,2),ddd:I(q.weekdaysShort,this.$W,M,3),dddd:M[this.$W],H:String(J),HH:T.s(J,2,"0"),h:R(1),hh:R(2),a:P(J,ee,!0),A:P(J,ee,!1),m:String(ee),mm:T.s(ee,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:j};return Y.replace(d,function(X,K){return K||O[X]||j.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(x,U,q){var Y,j=T.p(U),J=E(x),ee=(J.utcOffset()-this.utcOffset())*o,W=this-J,M=T.m(this,J);return M=(Y={},Y[b]=M/12,Y[u]=M,Y[h]=M/3,Y[p]=(W-ee)/6048e5,Y[f]=(W-ee)/864e5,Y[c]=W/l,Y[i]=W/o,Y[s]=W/a,Y)[j]||W,q?M:T.a(M)},D.daysInMonth=function(){return this.endOf(u).$D},D.$locale=function(){return C[this.$L]},D.locale=function(x,U){if(!x)return this.$L;var q=this.clone(),Y=A(x,U,!0);return Y&&(q.$L=Y),q},D.clone=function(){return T.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()},L}(),v=B.prototype;return E.prototype=v,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",f],["$M",u],["$y",b],["$D",y]].forEach(function(L){v[L[1]]=function(D){return this.$g(D,L[0],L[1])}}),E.extend=function(L,D){return L.$i||(L(D,B,E),L.$i=!0),E},E.locale=A,E.isDayjs=V,E.unix=function(L){return E(1e3*L)},E.en=C[$],E.Ls=C,E.p={},E})})(es);var yu=es.exports;const Re=Ye(yu);var ts={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(S){return(S=+S)+(S>68?1900:2e3)},f=function(S){return function(k){this[S]=+k}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var d=k.match(/([+-]|\d\d)/g),m=60*d[1]+(+d[2]||0);return m===0?0:d[0]==="+"?-m:m}(S)}],u=function(S){var k=i[S];return k&&(k.indexOf?k:k.s.concat(k.f))},h=function(S,k){var d,m=i.meridiem;if(m){for(var g=1;g<=24;g+=1)if(S.indexOf(m(g,0,k))>-1){d=g>12;break}}else d=S===(k?"pm":"PM");return d},b={A:[s,function(S){this.afternoon=h(S,!1)}],a:[s,function(S){this.afternoon=h(S,!0)}],S:[/\d/,function(S){this.milliseconds=100*+S}],SS:[l,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[r,f("seconds")],ss:[r,f("seconds")],m:[r,f("minutes")],mm:[r,f("minutes")],H:[r,f("hours")],h:[r,f("hours")],HH:[r,f("hours")],hh:[r,f("hours")],D:[r,f("day")],DD:[l,f("day")],Do:[s,function(S){var k=i.ordinal,d=S.match(/\d+/);if(this.day=d[0],k)for(var m=1;m<=31;m+=1)k(m).replace(/\[|\]/g,"")===S&&(this.day=m)}],M:[r,f("month")],MM:[l,f("month")],MMM:[s,function(S){var k=u("months"),d=(u("monthsShort")||k.map(function(m){return m.slice(0,3)})).indexOf(S)+1;if(d<1)throw new Error;this.month=d%12||d}],MMMM:[s,function(S){var k=u("months").indexOf(S)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,f("year")],YY:[l,function(S){this.year=c(S)}],YYYY:[/\d{4}/,f("year")],Z:p,ZZ:p};function y(S){var k,d;k=S,d=i&&i.formats;for(var m=(S=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,T,B){var v=B&&B.toUpperCase();return T||d[B]||a[B]||d[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(L,D,x){return D||x.slice(1)})})).match(o),g=m.length,N=0;N<g;N+=1){var $=m[N],C=b[$],V=C&&C[0],A=C&&C[1];m[N]=A?{regex:V,parser:A}:$.replace(/^\[|\]$/g,"")}return function(E){for(var T={},B=0,v=0;B<g;B+=1){var L=m[B];if(typeof L=="string")v+=L.length;else{var D=L.regex,x=L.parser,U=E.slice(v),q=D.exec(U)[0];x.call(T,q),E=E.replace(q,"")}}return function(Y){var j=Y.afternoon;if(j!==void 0){var J=Y.hours;j?J<12&&(Y.hours+=12):J===12&&(Y.hours=0),delete Y.afternoon}}(T),T}}return function(S,k,d){d.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(c=S.parseTwoDigitYear);var m=k.prototype,g=m.parse;m.parse=function(N){var $=N.date,C=N.utc,V=N.args;this.$u=C;var A=V[1];if(typeof A=="string"){var E=V[2]===!0,T=V[3]===!0,B=E||T,v=V[2];T&&(v=V[2]),i=this.$locale(),!E&&v&&(i=d.Ls[v]),this.$d=function(U,q,Y){try{if(["x","X"].indexOf(q)>-1)return new Date((q==="X"?1e3:1)*U);var j=y(q)(U),J=j.year,ee=j.month,W=j.day,M=j.hours,z=j.minutes,I=j.seconds,R=j.milliseconds,P=j.zone,O=new Date,X=W||(J||ee?1:O.getDate()),K=J||O.getFullYear(),H=0;J&&!ee||(H=ee>0?ee-1:O.getMonth());var Z=M||0,G=z||0,_=I||0,F=R||0;return P?new Date(Date.UTC(K,H,X,Z,G,_,F+60*P.offset*1e3)):Y?new Date(Date.UTC(K,H,X,Z,G,_,F)):new Date(K,H,X,Z,G,_,F)}catch{return new Date("")}}($,A,C),this.init(),v&&v!==!0&&(this.$L=this.locale(v).$L),B&&$!=this.format(A)&&(this.$d=new Date("")),i={}}else if(A instanceof Array)for(var L=A.length,D=1;D<=L;D+=1){V[1]=A[D-1];var x=d.apply(this,V);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}D===L&&(this.$d=new Date(""))}else g.call(this,N)}}})})(ts);var bu=ts.exports;const ku=Ye(bu);var ns={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.en.ordinal=function(i){var c=["th","st","nd","rd"],f=i%100;return"["+i+(c[(f-20)%10]||c[f]||c[0])+"]"},r.format=function(i){var c=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var p=this.$utils(),u=(i||"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(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return f.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return f.ordinal(c.week(),"W");case"w":case"ww":return p.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return p.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return p.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(u)}}})})(ns);var Su=ns.exports;const Cu=Ye(Su);var os={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o,l){var r=o.prototype,s=function(u){return u&&(u.indexOf?u:u.s)},i=function(u,h,b,y,S){var k=u.name?u:u.$locale(),d=s(k[h]),m=s(k[b]),g=d||m.map(function($){return $.slice(0,y)});if(!S)return g;var N=k.weekStart;return g.map(function($,C){return g[(C+(N||0))%7]})},c=function(){return l.Ls[l.locale()]},f=function(u,h){return u.formats[h]||function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,S,k){return S||k.slice(1)})}(u.formats[h.toUpperCase()])},p=function(){var u=this;return{months:function(h){return h?h.format("MMMM"):i(u,"months")},monthsShort:function(h){return h?h.format("MMM"):i(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(u,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(u,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return f(u.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},l.localeData=function(){var u=c();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(h){return f(u,h)},meridiem:u.meridiem,ordinal:u.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(u){return i(c(),"weekdays",null,null,u)},l.weekdaysShort=function(u){return i(c(),"weekdaysShort","weekdays",3,u)},l.weekdaysMin=function(u){return i(c(),"weekdaysMin","weekdays",2,u)}}})})(os);var wu=os.exports;const Nu=Ye(wu);var ls={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){var a="week",o="year";return function(l,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=s(this).startOf(o).add(1,o).date(f),u=s(this).endOf(a);if(p.isBefore(u))return 1}var h=s(this).startOf(o).date(f).startOf(a).subtract(1,"millisecond"),b=this.diff(h,a,!0);return b<0?s(this).startOf("week").week():Math.ceil(b)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(ls);var Bu=ls.exports;const Au=Ye(Bu);var as={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),s=this.year();return r===1&&l===11?s+1:l===0&&r>=52?s-1:s}}})})(as);var Tu=as.exports;const $u=Ye(Tu);var rs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(rs);var Vu=rs.exports;const Eu=Ye(Vu);var ss={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(ss);var Du=ss.exports;const Iu=Ye(Du);var is={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(is);var xu=is.exports;const qu=Ye(xu);Re.extend(Nu),Re.extend(Cu),Re.extend(ku),Re.extend(Au),Re.extend($u),Re.extend(Eu),Re.extend(Iu),Re.extend(qu);const ae={format(e,n){return Re(e).format(n)},parser(e,n){return Re(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const o=e*(1e3*60*60*24);return a=new Date(a.getTime()+o),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},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 o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),s=l.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),s=Math.round((l.valueOf()-r.valueOf())/864e5);let i=l.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let s=l.getDay();if(o===0){const c=r-s*864e5,f=r+(6-s)*864e5,p=this.date2Str(new Date(c)),u=this.date2Str(new Date(f));return[p,u]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,f=r+(7-s)*i,p=this.date2Str(new Date(c)),u=this.date2Str(new Date(f));return[p,u]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ae.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ae.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s}},cs=new Date().getFullYear(),Uo={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"},qn=(e,n,a)=>{let o;if(Ke(n)?o=n:typeof n=="string"&&be(n)>0?o=ae.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},Ho=(e,n,a)=>{Ke(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),ae.format(new Date(o),a)};let jo={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},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(cs-10,0,1),validator:Ke},maxDate:{type:Date,default:()=>new Date(cs+10,11,31),validator:Ke},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:vu,scope:Mu}=Q("date-picker"),Pu=vu({components:{[bt.name]:bt},props:{...jo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Mu),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},l=t.ref(!1);t.watch(()=>e.visible,d=>{l.value=d});function r(d,m){return new Date(d,m,0).getDate()}const s=(d,m)=>{const g=e[`${d}Date`],N=g.getFullYear();let $=1,C=1,V=0,A=0;d==="max"&&($=12,C=r(m.getFullYear(),m.getMonth()+1),V=23,A=59);const E=A;return m.getFullYear()===N&&($=g.getMonth()+1,m.getMonth()+1===$&&(C=g.getDate(),m.getDate()===C&&(V=g.getHours(),m.getHours()===V&&(A=g.getMinutes())))),{[`${d}Year`]:N,[`${d}Month`]:$,[`${d}Date`]:C,[`${d}Hour`]:V,[`${d}Minute`]:A,[`${d}Seconds`]:E}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:d,maxDate:m,maxMonth:g,maxHour:N,maxMinute:$,maxSeconds:C}=s("max",h.value),{minYear:V,minDate:A,minMonth:E,minHour:T,minMinute:B,minSeconds:v}=s("min",h.value);let L=[{type:"year",range:[V,d]},{type:"month",range:[E,g]},{type:"day",range:[A,m]},{type:"hour",range:[T,N]},{type:"minute",range:[B,$]},{type:"seconds",range:[v,C]}];switch(e.type){case"date":L=L.slice(0,3);break;case"datetime":L=L.slice(0,5);break;case"time":L=L.slice(3,6);break;case"year-month":L=L.slice(0,2);break;case"month-day":L=L.slice(1,3);break;case"datehour":L=L.slice(0,4);break;case"hour-minute":L=L.slice(3,5);break}return L}),c=(d,m,g)=>{if(!(m>d))return null;const N=[];for(;d<=m;)e.isShowChinese?N.push({text:d+o[g],value:d}):N.push({text:`${d}`,value:d}),g==="minute"?d+=e.minuteStep:d++;return N},f=t.computed(()=>{let d=[];return i.value.forEach(m=>{let g=c(m.range[0],m.range[1],m.type);g&&d.push(g)}),d}),p=(d,m)=>d==="year"?m.getFullYear():d==="month"?m.getMonth()+1:d==="day"?m.getDate():d==="hour"?m.getHours():d==="minute"?m.getMinutes():d==="seconds"?m.getSeconds():0,u=t.ref(),h=t.ref(null);t.watchEffect(()=>{let d,m=e.modelValue;if(typeof m=="string"?m.length==0?d=new Date:e.valueFormat?d=qn(e,e.modelValue,e.valueFormat):d=qn(e,m,Uo[e.type]):Ke(m)?d=m:d=new Date,!!d&&(!h.value||d.getTime()!==h.value.getTime())){h.value=d;let g=[];i.value.forEach(N=>{let $=p(N.type,d);g.push($)}),u.value=g}});const b=d=>{if(e.type==="date"){let m=d;h.value=new Date(m[0],m[1]-1,Math.min(m[2],r(m[0],m[1])))}else if(e.type==="datetime"){let m=d;h.value=new Date(m[0],m[1]-1,Math.min(m[2],r(m[0],m[1])),m[3],m[4])}else if(e.type==="time"){let m=d,g=h.value??new Date,N=new Date(g.getFullYear(),g.getMonth(),g.getDate(),m[0],m[1],m[2]);h.value=N}else if(e.type==="year-month"){let m=d,g=new Date(m[0],m[1]-1);h.value=g}else if(e.type==="month-day"){let m=d,g=h.value??new Date,N=new Date(g.getFullYear(),m[0]-1,m[1]);h.value=N}else if(e.type==="datehour"){let m=d;h.value=new Date(m[0],m[1]-1,Math.min(m[2],r(m[0],m[1])),m[3])}else if(e.type==="hour-minute"){let m=d,g=h.value??new Date,N=new Date(g.getFullYear(),g.getMonth(),g.getDate(),m[0],m[1]);h.value=N}u.value=d};return{columns:f,dateIndexs:u,show:l,onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:d=>{b(d),l.value=!1;let m=h.value??new Date;if(e.valueFormat){let g=Ho(e,m,e.valueFormat);n("update:modelValue",g)}else n("update:modelValue",m);n("update:visible",!1),n("confirm",d)},onClear:()=>{n("clear")}}}});function Lu(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const vn=oe(Pu,[["render",Lu]]),zu={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Fu(e){let n=e.format;if(!n){let a=e.type??"date";n=Uo[a]}return n}function Ru(e,n,a,o,l,r,s=!1){return{props:{...pe,...ye,...jo,...zu},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const f=Ae(t.computed(()=>i.disabled)),p=Ve(t.computed(()=>i.readonly)),{emitEvent:u}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),b=h(i,["placeholder"]),y=t.ref(!1),k=Ie(i,"modelValue",M=>M==null?null:typeof M=="string"?M.length==0?null:i.valueFormat?qn(i,M,i.valueFormat)??M:qn(i,M,Uo[i.type])??M:Ke(M)?M:null),d=t.computed(()=>{if(!k.value)return"";const M=Fu(i);return Ho(i,k.value,M)}),m="fox-input-item",g=t.computed(()=>({[m]:!0,[`${m}__disabled`]:f.value})),N=Te(t.computed(()=>i.textAlign),"textAlign"),$=t.computed(()=>{const M={};return N.value&&(M["text-align"]=N.value),M}),C=t.ref(!1),V=()=>{C.value=!0},A=()=>{C.value=!1};c.expose({showPicker:V,hidePicker:A});const E=M=>{C.value=M},T=M=>{if(k.value=M,i.valueFormat){let z=Ho(i,M,i.valueFormat);u("update:modelValue",z,{}),u("change",z,{})}else u("update:modelValue",M,{}),u("change",M,{})},B=M=>{let I=M.target.value;y.value=!0,u("focus",I,M)},v=M=>{setTimeout(()=>{y.value=!1},0);let I=M.target.value;i.maxLength&&I.length>Number(i.maxLength)&&(I=I.slice(0,Number(i.maxLength))),u("blur",I,M)},L=t.computed(()=>({[`${m}__append`]:!0})),D=t.computed(()=>be(i.unit)>0),x=t.computed(()=>be(i.unit)>0&&!y.value),U=t.computed(()=>({hidden:!x.value})),q=M=>{k.value="",u("update:modelValue","",M),u("change","",M),u("clear",""),A()},Y=t.computed(()=>i.clearable&&!f.value&&!p.value),j=t.computed(()=>{let M=be(k.value)>0;return i.clearable&&M&&y.value}),J=M=>{j.value?q(M):V()},ee=t.computed(()=>j.value&&Y.value?o:l),W=t.computed(()=>({action:!0}));return()=>{const M={class:g.value,style:$.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:V,onFocus:B,onBlur:v};s&&(M.disabled=!0);const z=[],I=t.h("input",M);z.push(I);const R=[],P={class:["action-icon"]},O=t.h(ee.value,P),X={class:W.value,onClick:J},K=t.h("view",X,{default:()=>[O]});if(R.push(K),D.value){const de=t.h("view",{class:U.value},[i.unit]);R.push(de)}const H={class:L.value},Z=t.h("view",H,{default:()=>R});z.push(Z);const G={default:()=>z};G.label=c.slots.default,G.prepend=c.slots.prepend,G.append=c.slots.append,G.fixedPreTip=c.slots.fixedPreTip,G.fixedTip=c.slots.fixedTip;const _=ke(i,jo);_.valueFormat=null,_.disabled=!1,_.readonly=f.value||p.value,_.visible=C.value,_["onUpdate:visible"]=E,_.modelValue=k.value,_["onUpdate:modelValue"]=T,_.onClear=q;const F={};if(c.slots.top){const de=c.slots.top();F.top=()=>de}if(c.slots.bottom){const de=c.slots.bottom();F.default=()=>de}const te=t.h(r,_,F);G.hide=()=>[te];const ne=ke(i,ye,pe);return t.h(a,{...ne,prop:`${i.prop}_item`},G)}}}}const{create:Ou,componentName:Ku,scope:Uu}=Q("date-item"),Wo=Ou(Ru(Ku,Uu,we,le.CircleClose,le.Date,vn,!1)),Hu=39,ju=64,{create:Wu,scope:Yu}=Q("calendar-pane"),Xu=Wu({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ae.getDay(0)},endDate:{type:String,default:ae.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=re.useFoxI18n(Yu),r=o(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(l("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),f=t.ref(null),p=t.ref(null),u=t.ref(null),h=t.ref(0),b=t.computed(()=>d.monthsData.slice(d.defaultRange[0],d.defaultRange[1])),y=t.computed(()=>a.btn),S=t.computed(()=>a["top-info"]),k=t.computed(()=>a["bottom-info"]),d=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),m=P=>P.split("-"),g=P=>ae.isEqual(d.currDate[0],P),N=P=>ae.isEqual(d.currDate[1],P),$=P=>d.currDate?.length>0?d.currDate?.some(O=>ae.isEqual(O,P)):!1,C=(P,O)=>O.curData[0]+"-"+O.curData[1]+"-"+ae.getNumTwoBit(+P.day),V=(P,O)=>{const X=C(P,O),{type:K}=e;return P.type=="curr"?ae.isEqual(d.currDate,X)||(K=="range"||K=="week")&&(g(X)||N(X))||K=="multiple"&&$(X)?`${d.dayPrefix}--active`:d.propStartDate&&ae.compareDate(X,d.propStartDate)||d.propEndDate&&ae.compareDate(d.propEndDate,X)?`${d.dayPrefix}--disabled`:(K=="range"||K=="week")&&Array.isArray(d.currDate)&&Object.values(d.currDate).length==2&&ae.compareDate(d.currDate[0],X)&&ae.compareDate(X,d.currDate[1])?`${d.dayPrefix}--choose`:null:`${d.dayPrefix}--disabled`},A=()=>{const{type:P}=e;if(P=="range"&&d.chooseData.length==2||P!="range"){let O=d.chooseData.slice(0);P=="week"&&(O={weekDate:[T(d.chooseData[0]),T(d.chooseData[1])]}),n("choose",O),e.poppable&&n("update")}},E=(P,O,X=!1)=>{if(V(P,O)!=`${d.dayPrefix}--disabled`){const{type:K}=e;let[H,Z]=O.curData,G=[...O.curData];if(G[2]=ae.getNumTwoBit(Number(P.day)),G[3]=`${G[0]}-${G[1]}-${G[2]}`,G[4]=ae.getWhatDay(+G[0],+G[1],+G[2]),K=="multiple")if(d.currDate?.length>0){let _;d.currDate?.forEach((F,te)=>{F==G[3]&&(_=te)}),X?d.chooseData.push([...G]):_!==void 0?(d.currDate.splice(_,1),d.chooseData.splice(_,1)):(d.currDate.push(G[3]),d.chooseData.push([...G]))}else d.currDate=[G[3]],d.chooseData=[[...G]];else if(K=="range"){let _=Object.values(d.currDate).length;_==2||_==0?d.currDate=[G[3]]:ae.compareDate(d.currDate[0],G[3])?Array.isArray(d.currDate)&&d.currDate.push(G[3]):Array.isArray(d.currDate)&&d.currDate.unshift(G[3]),d.chooseData.length==2||!d.chooseData.length?d.chooseData=[[...G]]:ae.compareDate(d.chooseData[0][3],G[3])?d.chooseData=[...d.chooseData,[...G]]:d.chooseData=[[...G],...d.chooseData]}else if(K=="week"){let _=ae.getWeekDate(H,Z,P.day,e.firstDayOfWeek);d.propStartDate&&ae.compareDate(_[0],d.propStartDate)&&_.splice(0,1,d.propStartDate),d.propEndDate&&ae.compareDate(d.propEndDate,_[1])&&_.splice(1,1,d.propEndDate),d.currDate=_,d.chooseData=[ae.formatResultDate(_[0]),ae.formatResultDate(_[1])]}else d.currDate=G[3],d.chooseData=[...G];if(!X){let _=d.chooseData;K=="week"&&(_={weekDate:[T(d.chooseData[0]),T(d.chooseData[1])]}),n("select",_),(e.isAutoBackFill||!e.poppable)&&A()}}},T=P=>{let[O,X,K]=P;return{date:P,monthWeekNum:ae.getMonthWeek(O,X,K,e.firstDayOfWeek),yearWeekNum:ae.getYearWeek(O,X,K,e.firstDayOfWeek)}},B=P=>{const O=P=="prev"?d.monthsData[0]:d.monthsData[d.monthsData.length-1];let X=parseInt(O.curData[0]),K=parseInt(O.curData[1].toString().replace(/^0/,""));switch(P){case"prev":K==1&&(X-=1),K=K==1?12:--K;break;case"next":K==12&&(X+=1),K=K==12?1:++K;break}return[X+"",ae.getNumTwoBit(K),ae.getMonthDays(String(X),String(K))+""]},v=(P,O,X)=>{let{year:K,month:H}=X;return O=="prev"&&P>=7&&(P-=7),Array.from(Array(P),(Z,G)=>({day:String(G+1),type:O,year:K,month:H}))},L=(P,O,X,K)=>{P=P-e.firstDayOfWeek;let{year:H,month:Z}=X;return O=="prev"&&P>=7&&(P-=7),Array.from(Array(K),(_,F)=>({day:String(F+1),type:O,year:H,month:Z})).slice(K-P)},D=(P,O)=>{const X=ae.getMonthPreDay(+P[0],+P[1]);let K=Number(P[1])-1,H=Number(P[0]);K<=0&&(K=12,H+=1);const Z=ae.getMonthDays(String(P[0]),String(P[1])),G=ae.getMonthDays(H+"",K+""),_={year:P[0],month:P[1]},F={curData:P,title:l("monthTitle",{year:_.year,month:_.month}),monthData:[...L(X,"prev",{month:String(K),year:String(H)},G),...v(Z,"curr",_)],cssHeight:0,cssScrollHeight:0},te=F.monthData.length>35?6:5;F.cssHeight=Hu+ju*te;let ne=0;d.monthsData.length>0&&(ne=d.monthsData[d.monthsData.length-1].cssScrollHeight+d.monthsData[d.monthsData.length-1].cssHeight),F.cssScrollHeight=ne,O=="next"?(!d.endData||!ae.compareDate(`${d.endData[0]}-${d.endData[1]}-${ae.getMonthDays(d.endData[0],d.endData[1])}`,`${P[0]}-${P[1]}-${P[2]}`))&&d.monthsData.push(F):!d.startData||!ae.compareDate(`${P[0]}-${P[1]}-${P[2]}`,`${d.startData[0]}-${d.startData[1]}-01`)?d.monthsData.unshift(F):d.unLoadPrev=!0},x=()=>{let P=e.startDate?e.startDate:ae.getDay(0),O=e.endDate?e.endDate:ae.getDay(365);d.propStartDate=P,d.propEndDate=O,d.startData=m(P),d.endData=m(O),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(d.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const X={year:Number(d.startData[0]),month:Number(d.startData[1])},K={year:Number(d.endData[0]),month:Number(d.endData[1])};let H=K.month-X.month;K.year-X.year>0&&(H=H+12*(K.year-X.year)),H<=0&&(H=1),D(d.startData,"next");let Z=1;do D(B("next"),"next");while(Z++<H);if(d.monthsNum=H,e.type=="range"&&Array.isArray(d.currDate))d.currDate.length>0&&(P&&ae.compareDate(d.currDate[0],P)&&d.currDate.splice(0,1,P),O&&ae.compareDate(O,d.currDate[1])&&d.currDate.splice(1,1,O),d.defaultData=[...m(d.currDate[0]),...m(d.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let G=[],_={};d.currDate.forEach(F=>{P&&!ae.compareDate(F,P)&&O&&!ae.compareDate(O,F)&&(Object.hasOwnProperty.call(_,F)||(G.push(F),_[F]=F))}),d.currDate=[...G],d.defaultData=[...m(G[0])]}}else if(e.type=="week"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let[G,_,F]=m(d.currDate[0]),te=ae.getWeekDate(G,_,F,e.firstDayOfWeek);d.currDate=te,P&&ae.compareDate(d.currDate[0],P)&&d.currDate.splice(0,1,P),O&&ae.compareDate(O,d.currDate[1])&&d.currDate.splice(1,1,O),d.defaultData=[...m(d.currDate[0]),...m(d.currDate[1])]}}else d.currDate&&(P&&ae.compareDate(d.currDate,P)?d.currDate=P:O&&!ae.compareDate(d.currDate,O)&&(d.currDate=O),d.defaultData=[...m(d.currDate)])};Ee({scrollToDate:P=>{ae.compareDate(P,d.propStartDate)?P=d.propStartDate:ae.compareDate(P,d.propEndDate)||(P=d.propEndDate);let O=m(P);d.monthsData.forEach((X,K)=>{if(X.title==l("monthTitle",{year:O[0],month:O[1]})&&c.value){let H=d.monthsData[K].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let Z=0,G=setInterval(()=>{if(Z++,c.value){let _=H/10;c.value.scrollTop=c.value.scrollTop+_}Z>=10&&(clearInterval(G),c.value&&(c.value.scrollTop=d.monthsData[K].cssScrollHeight))},40)}else c.value.scrollTop=d.monthsData[K].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)},doLayout:()=>{let P=0,O=0;d.defaultData.length>0&&d.monthsData.forEach((H,Z)=>{H.title==l("monthTitle",{year:d.defaultData[0],month:d.defaultData[1]})&&(P=Z),(e.type=="range"||e.type=="week")&&H.title==l("monthTitle",{year:d.defaultData[3],month:d.defaultData[4]})&&(O=Z)}),j(d.monthsNum,P),d.currentIndex=P,d.yearMonthTitle=d.monthsData[d.currentIndex].title,d.defaultData.length>0&&(d.isRange?(E({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0),E({day:d.defaultData[5],type:"curr"},d.monthsData[O],!0)):e.type=="week"?E({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0):e.type=="multiple"?[...d.currDate].forEach(H=>{let Z=m(H),G=d.currentIndex;d.monthsData.forEach((_,F)=>{_.title==l("monthTitle",{year:Z[0],month:Z[1]})&&(G=F)}),E({day:Z[2],type:"curr"},d.monthsData[G],!0)}):E({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0));let X=d.monthsData[d.monthsData.length-1],K=X.cssHeight+X.cssScrollHeight;Xe(()=>{c?.value&&f?.value&&u?.value&&(h.value=c.value.clientHeight,f.value.style.height=`${K}px`,c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)}),d.avgHeight=Math.floor(K/(d.monthsNum+1))}});const j=(P,O)=>{P>=3?O>0&&O<P?d.defaultRange=[O-1,O+3]:O==0?d.defaultRange=[O,O+4]:O==P&&(d.defaultRange=[O-2,O+2]):d.defaultRange=[0,P+2];let X=d.monthsData[d.defaultRange[0]].cssScrollHeight;d.translateY=X},J=(P,O)=>(e.type=="range"||e.type=="week")&&P.type=="curr"&&V(P,O)=="fox-calendar__day--active",ee=(P,O)=>J(P,O)&&g(C(P,O)),W=(P,O)=>d.currDate.length>=2&&N(C(P,O))?J(P,O):!1,M=()=>{if(d.currDate.length>=2)return ae.isEqual(d.currDate[0],d.currDate[1])},z=P=>{const O=`${P.year}-${P.month}-${Number(P.day)<10?"0"+P.day:P.day}`;return ae.isEqual(O,ae.date2Str(new Date))},I=P=>{if(d.monthsData.length<=1)return;const O=P.target.scrollTop;let X=Math.floor(O/d.avgHeight);if(X==0)O>=d.monthsData[X+1].cssScrollHeight&&(X+=1);else if(X>0&&X<d.monthsNum-1)O>=d.monthsData[X+1].cssScrollHeight&&(X+=1),O<d.monthsData[X].cssScrollHeight&&(X-=1);else{const K=Math.round(O+h.value);K<d.monthsData[X].cssScrollHeight+d.monthsData[X].cssHeight&&O>d.monthsData[X-1].cssScrollHeight&&(X-=1),X+1<=d.monthsNum&&K>=d.monthsData[X+1].cssScrollHeight+d.monthsData[X+1].cssHeight&&(X+=1),X>=1&&O<d.monthsData[X-1].cssScrollHeight&&(X-=1)}d.currentIndex!==X&&(d.currentIndex=X,j(d.monthsNum,X)),d.yearMonthTitle=d.monthsData[X].title},R=()=>{d.chooseData.splice(0),d.monthsData.splice(0),x()};return x(),t.watch(()=>e.defaultValue,P=>{P&&e.poppable&&R()}),{weeks:i,compConthsData:b,showTopBtn:y,topInfo:S,bottomInfo:k,rangeTip:M,mothsViewScroll:I,getClass:V,isStartTip:ee,isEndTip:W,chooseDay:E,isCurrDay:z,confirm:A,months:c,...t.toRefs(d),...t.toRefs(e),...r,monthsPanel:f,weeksPanel:p,viewArea:u}}}),Qu={class:"fox-calendar__header"},Gu={key:0,class:"fox-calendar__header-title"},Zu={key:1,class:"fox-calendar__header-slot"},Ju={key:2,class:"fox-calendar__header-subtitle"},_u={class:"fox-calendar__weekdays",ref:"weeksPanel"},ef={class:"fox-calendar__panel",ref:"monthsPanel"},tf={class:"fox-calendar__month-title"},nf={class:"fox-calendar__days"},of=["onClick"],lf={class:"fox-calendar__day-value"},af={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},rf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},sf={key:2,class:"fox-calendar__day-tips--curr"},cf={key:4,class:"fox-calendar__day-tip"},df={key:0,class:"fox-calendar__footer"};function uf(e,n,a,o,l,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",Qu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Gu,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Zu,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Ju,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",_u,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",ef,[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,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:i},[t.createElementVNode("view",tf,t.toDisplayString(s.title),1),t.createElementVNode("view",nf,[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(s.monthData,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:p=>e.chooseDay(c,s)},[t.createElementVNode("view",lf,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",af,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",rf,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",sf,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,s)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,s)?(t.openBlock(),t.createElementBlock("view",cf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,of))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",df,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const ds=oe(Xu,[["render",uf]]),ff=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Mn={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}},{create:mf}=Q("calendar"),pf=mf({components:{[ds.name]:ds,[fe.name]:fe},props:{...Mn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const o=t.computed(()=>a.btn),l=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),s=t.computed(()=>a["bottom-info"]),i=t.ref(null),c=S=>{i.value?.scrollToDate(S)},f=()=>{i.value?.initPosition()};t.watch(()=>e.visible,S=>{S&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Ee({scrollToDate:c,initPosition:f});const p=()=>{n("update:visible",!1)},u=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{u()},update:p,close:u,select:S=>{n("select",S)},choose:S=>{u(),n("choose",S)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function hf(e,n,a,o,l,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const Pn=oe(pf,[["render",hf]]),us={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}},Yo=(e,n)=>{let a;return Ke(e)?a=e:typeof e=="string"&&be(e)>0?a=ae.parser(e,n):a=new Date,a},kt=(e,n,a)=>(Ke(n)||(n=new Date),ae.format(n,a)),St=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=ae.date2Str(e),r=ae.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function gf(e,n,a,o,{CloseIcon:l,MarkIcon:r},s=!1){return{props:{...pe,...ye,...Mn,...us},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const f=Ae(t.computed(()=>i.disabled)),p=Ve(t.computed(()=>i.readonly)),{emitEvent:u}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),b=h(i,["placeholder"]),y=t.ref(!1),S=t.computed(()=>i.type==="range"),k=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),d=()=>{k.startDate!==null&&(k.startDate=null,k.endDate=null,k.startArray=[],k.endArray=[])},m=(I,R="one",P="YYYY-MM-DD")=>{if(ff(I)){d();return}if(S.value&&Array.isArray(I)&&I.length==2){let O,X;typeof I[0]=="string"?(O=Yo(I[0],P),X=Yo(I[1],P)):(O=I[0],X=I[1]);let K=St(O),H=St(X);(k.startDate===null||k.startDate.getTime()!==O.getTime()||k.endDate?.getTime()!==X.getTime())&&(k.startDate=O,k.startArray=K,k.endDate=X,k.endArray=H)}else{let O;typeof I=="string"?O=Yo(I,P):O=I;let X=St(O);(k.startDate===null||k.startDate.getTime()!==O.getTime())&&(k.startDate=O,k.startArray=X)}};m(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,I=>{m(I,i.type,i.valueFormat)});const g=t.computed(()=>{if(k.startDate===null)return"";if(S.value){let I=kt(i,k.startDate,i.format),R=kt(i,k.endDate,i.format);return`${I} ${i.rangeSeparator} ${R}`}else{let I=kt(i,k.startDate,i.format);return i.showWeek&&(I=`${I} ${k.startArray[4]}`),I}}),N=t.computed(()=>{if(k.startDate===null)return null;if(S.value){let I=ae.date2Str(k.startDate),R=ae.date2Str(k.endDate??new Date);return[I,R]}else return ae.date2Str(k.startDate)}),$="fox-input-item",C=t.computed(()=>({[$]:!0,[`${$}__disabled`]:f.value})),V=Te(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const I={};return V.value&&(I["text-align"]=V.value),I}),E=t.ref(!1),T=()=>{p.value||f.value||(E.value=!0)},B=I=>{E.value=I},v=I=>{if(I){if(S.value&&Array.isArray(I)){let R=I[0],P=me(R[0]),O=me(R[1]),X=me(R[2]),K=new Date(P,O-1,X),H=I[1];P=me(H[0]),O=me(H[1]),X=me(H[2]);let Z=new Date(P,O-1,X);if(k.startDate=K,k.startArray=St(K),k.endDate=Z,k.endArray=St(Z),i.valueFormat){let G=kt(i,K,i.valueFormat),_=kt(i,Z,i.valueFormat);u("update:modelValue",[G,_],{})}else u("update:modelValue",[K,Z],{})}else{let R=I,P=me(R[0]),O=me(R[1]),X=me(R[2]),K=new Date(P,O-1,X);if(k.startDate=K,k.startArray=St(K),i.valueFormat){let H=kt(i,K,i.valueFormat);u("update:modelValue",H,{})}else u("update:modelValue",K,{})}u("change",I,{})}},L=I=>{let P=I.target.value;y.value=!0,u("focus",P,I)},D=I=>{setTimeout(()=>{y.value=!1},0);let P=I.target.value;i.maxLength&&P.length>Number(i.maxLength)&&(P=P.slice(0,Number(i.maxLength))),u("blur",P,I)},x=t.computed(()=>({[`${$}__append`]:!0})),U=t.computed(()=>be(i.unit)>0),q=t.computed(()=>be(i.unit)>0&&!y.value),Y=t.computed(()=>({hidden:!q.value})),j=I=>{d(),u("update:modelValue",null,I),u("change","",I),u("clear","")},J=t.computed(()=>i.clearable&&!f.value&&!p.value),ee=t.computed(()=>{let I=be(g.value)>0;return i.clearable&&I&&y.value}),W=I=>{ee.value?j(I):T()},M=t.computed(()=>ee.value&&J.value?l:r),z=t.computed(()=>({action:!0}));return()=>{const I={class:C.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:T,onFocus:L,onBlur:D};s&&(I.disabled=!0);const R=[],P=t.h("input",I);R.push(P);const O=[],X={class:["action-icon"]},K=t.h(M.value,X),H={class:z.value,onClick:W},Z=t.h("view",H,{default:()=>[K]});if(O.push(Z),U.value){const ve=t.h("view",{class:Y.value},[i.unit]);O.push(ve)}const G={class:x.value},_=t.h("view",G,{default:()=>O});R.push(_);const F={default:()=>R};F.label=c.slots.default,F.prepend=c.slots.prepend,F.append=c.slots.append,F.fixedPreTip=c.slots.fixedPreTip,F.fixedTip=c.slots.fixedTip;const te=ke(i,Mn);te.visible=E.value,te["onUpdate:visible"]=B,te["default-value"]=N.value,te.onChoose=v;const ne={};if(c.slots.btn){const ve=c.slots.btn();ne.btn=()=>ve}c.slots.day&&(ne.day=c.slots.day),c.slots.topInfo&&(ne.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(ne.bottomInfo=c.slots.bottomInfo);const se=t.h(a,te,ne);F.hide=()=>[se];const de=ut(i,Mn,us);return t.h(o,{...de,prop:`${i.prop}_item`},F)}}}}const{componentName:yf,create:bf,scope:kf}=Q("calendar-item"),Xo=bf(gf(yf,kf,Pn,we,{CloseIcon:le.CircleClose,MarkIcon:le.Date},!1)),Sf={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function Cf(e,{CheckNormal:n,Checked:a}){return{props:{...Sf},setup(o,{emit:l,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===o.label),c=t.computed(()=>o.disabled?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),f=t.computed(()=>s.position),p=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const S=ce(o.iconSize),k=o.checkedIcon??a;return t.h(k,{width:S,height:S,class:c.value})}}else{if(r.icon)return r.icon();{const S=ce(o.iconSize),k=o.icon??n;return t.h(k,{width:S,height:S,class:c.value})}}},u=()=>t.h("view",{class:`${e}__label ${o.disabled?`${e}__label--disabled`:""}`},r.default?.()),h=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${o.disabled?`${e}__button--disabled`:""}`},r.default?.()),b=()=>{i.value||o.disabled||o.readonly||s.updateValue(o.label)},y=f.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${y?`${e}--reverse`:""}`,onClick:b},[o.shape=="button"?h():y?[u(),p()]:[p(),u()]])}}}const{componentName:wf,create:Nf}=Q("radio"),Ln=Nf(Cf(wf,{CheckNormal:le.CheckNormal,Checked:le.CheckChecked})),{componentName:fs,create:Bf}=Q("radio-group"),zn=Bf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{emit:n,slots:a}){const o=l=>n("update:modelValue",l);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:o}),t.watch(()=>e.modelValue,l=>n("change",l)),()=>{const l={};return e.textAlign&&(l["text-align"]=e.textAlign),t.h("view",{class:`${fs} ${fs}--${e.direction}`,style:l},a.default?.())}}});function ms(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Fn(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(Pt(e,r)===a)return l}return-1}function Fn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Pt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Af(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Tf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let $f=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Vf(){const e=t.getCurrentInstance();return new $f(e.proxy)}function Ef(e){return{text:e,value:e}}const ps={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Df={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},If={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"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}};function xf(e,n,a,o,l){return{props:{...pe,...ye,...ps,...Df,...If},emits:["change","update:modelValue"],setup(r,s){const i=Ve(t.computed(()=>r.readonly)),c=Ae(t.computed(()=>r.disabled)),f=Te(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),u=Vf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,m])=>{if(d){const g=await u.load("radio",d,m);if(g.length>0)if(typeof g[0]=="string"){const C=g.map(V=>Ef(V));h.value=C}else h.value=g}},{immediate:!0});let b=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([d,m])=>{b.value=ms(r,m,d,r.valueType)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;if(b.value===-1)return null;const d=h.value[b.value];return Pt(r,d)}),S=d=>{let m=null,g=null;if(h.value.length>0){let N=ms(r,h.value,d,"value");b.value=N,N>=0&&(g=h.value[N],r.valueType==="text"?m=Fn(r,g):r.valueType==="item"?m=g:m=Pt(r,g))}else m=d;p("update:modelValue",m),p("change",m,g)},k=()=>{let d=null,m=null;if(h.value.length>0&&b.value!==-1){let g=h.value[b.value];r.valueType==="text"?d=Fn(r,g):r.valueType==="item"?d=g:d=Pt(r,g)}p("update:modelValue",d),p("change",d,m)};if(Ee({clear(){b.value!==-1&&(b.value=-1,k())}}),r.source){const d=()=>{const m=[],g=ke(r,ps);return h.value.forEach((N,$)=>{const C=Pt(r,N),V=Af(r,N);let A={...g,label:C,disabled:V};const E=Tf(r,N,$);A={...A,...E},c.value&&(A.disabled=!0),i.value&&(A.readonly=!0);const T={};if(s.slots.icon&&(T.icon=s.slots.icon),s.slots.checkedIcon&&(T.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const v=s.slots.text(N);T.default=()=>[v]}else{const v=Fn(r,N);T.default=()=>v}let B=t.h(l,A,T);m.push(B)}),m};return()=>{const m=d(),g={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:f.value,modelValue:y,"onUpdate:modelValue":S},N=t.h(o,g,{default:()=>m}),$={default:()=>N};$.label=s.slots.default,$.prepend=s.slots.prepend,$.append=s.slots.append,$.fixedPreTip=s.slots.fixedPreTip,$.fixedTip=s.slots.fixedTip;const C=ke(r,ye,pe);return t.h(a,{...C,prop:`${r.prop}_item`},$)}}else return()=>{const d=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:f.value,modelValue:y,"update:modelValue":S},{default:()=>d})}}}}const{componentName:qf,create:vf,scope:Mf}=Q("radio-item"),Qo=vf(xf(qf,Mf,we,zn,Ln)),Pf=(e,{CheckNormal:n,Checked:a,Indeterminate:o})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(l,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,g=>{c.partialSelect=g});const f=t.computed(()=>!!i),p=t.computed(()=>f.value?i.value.value.includes(l.label):!!l.modelValue),u=t.computed(()=>f.value?i.position:l.textPosition),h=t.computed(()=>l.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":p.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let b="";const y=(g,N)=>{b="click",r("update:modelValue",g),r("change",g,N)};t.watch(()=>l.modelValue,g=>{b=="click"?b="":r("change",g)});const S=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const g=ce(l.iconSize),N=l.indeterminateIcon??o;return t.h(N,{width:g,height:g,class:h.value})}}else if(p.value){if(s.checkedIcon)return s.checkedIcon();{const g=ce(l.iconSize),N=l.checkedIcon??a;return t.h(N,{width:g,height:g,class:h.value})}}else{if(s.icon)return s.icon();{const g=ce(l.iconSize),N=l.icon??n;return t.h(N,{width:g,height:g,class:h.value})}}},k=()=>t.h("view",{class:`${e}__label ${l.disabled?`${e}__label--disabled`:""}`},s.default?.()),d=()=>t.h("view",{class:`${e}__button ${p.value&&`${e}__button--active`} ${l.disabled?`${e}__button--disabled`:""}`},s.default?.()),m=g=>{if(!(l.disabled||l.readonly)){if(p.value&&c.partialSelect){c.partialSelect=!1,y(p.value,s.default?.()[0].children);return}if(y(!p.value,s.default?.()[0].children),f.value){const N=i.value.value,$=i.max.value,{label:C}=l,V=N.indexOf(C);V>-1?N.splice(V,1):V<=-1&&(N.length<$||!$)&&N.push(C),i.updateValue(N)}}};return t.onMounted(()=>{f.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{f.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${l.shape} ${u.value==="left"?`${e}--reverse`:""}`,onClick:m},[l.shape=="button"?d():[S(),k()]])}}),{componentName:Lf,create:zf}=Q("checkbox"),Rn=zf(Pf(Lf,{CheckNormal:le.CheckNormal,Checked:le.Checked,Indeterminate:le.CheckDisabled})),{create:Ff,componentName:hs}=Q("checkbox-group"),On=Ff({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n,emit:a}){const o=t.reactive({children:[]}),l=f=>{f.proxy&&o.children.push(f.proxy)},r=f=>{f.proxy&&(o.children=o.children.filter(p=>p!==f.proxy))},s=f=>{a("update:modelValue",f),a("change",f)},i=f=>{const p=[];f&&o.children.forEach(u=>{u?.disabled||p.push(u?.label)}),a("update:modelValue",p)},c=()=>{const f=o.children.filter(p=>p?.disabled?!1:!e.modelValue.includes(p.label)).map(p=>p.label);a("update:modelValue",f)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:l,unlink:r}),t.watch(()=>e.modelValue,f=>{a("change",f)}),Ee({toggleAll:i,toggleReverse:c}),()=>{const f={};return e.textAlign&&(f["text-align"]=e.textAlign),t.h("view",{class:`${hs} ${hs}--${e.direction}`,style:f},n.default?.())}}});function gs(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Go(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(Kn(e,r)===a)return l}return-1}function Go(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Kn(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}function Of(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Kf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Uf(){const e=t.getCurrentInstance();return new Kf(e.proxy)}function Hf(e){return{text:e,value:e}}const jf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},ys={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},Wf={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"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}};function Yf(e,n,a,o,l){return{props:{...pe,...ye,...jf,...ys,...Wf},emits:["change","update:modelValue"],setup(r,s){const i=Ae(t.computed(()=>r.disabled)),c=Ae(t.computed(()=>r.readonly)),f=Te(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),u=Uf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,m])=>{if(d){const g=await u.load("checkbox",d,m);if(g.length>0)if(typeof g[0]=="string"){const C=g.map(V=>Hf(V));h.value=C}else h.value=g}},{immediate:!0});const b=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([d,m])=>{const g=[];Array.isArray(d)&&d.forEach(N=>{let $=gs(r,m,N,r.valueType);$!==-1&&g.push($)}),!Me(g,b.value)&&(b.value=g)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;let d=[];return b.value.forEach(m=>{let g=h.value[m];d.push(Kn(r,g))}),d}),S=d=>{let m=[],g=[];if(h.value.length>0){const N=[];Array.isArray(d)&&d.forEach($=>{let C=gs(r,h.value,$,"value");C!==-1&&N.push(C);const V=h.value[C];g.push(V),r.valueType==="text"?m.push(Go(r,V)):r.valueType==="item"?m.push(V):m.push(Kn(r,V))}),b.value=N}else m=d;p("update:modelValue",m),p("change",m,g)},k=t.ref();if(Ee({toggleAll:d=>{k.value.toggleAll(d)},toggleReverse:()=>{k.value.toggleReverse()}}),r.source){const d=()=>{const m=[],g=ke(r,ys);return h.value.forEach((N,$)=>{const C=Kn(r,N),V=Rf(r,N);let A={...g,label:C,disabled:V};const E=Of(r,N,$);A={...A,...E},i.value&&(A.disabled=!0),c.value&&(A.readonly=!0);const T={};if(s.slots.icon&&(T.icon=s.slots.icon),s.slots.checkedIcon&&(T.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(T.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const v=s.slots.text(N);T.default=()=>[v]}else{const v=Go(r,N);T.default=()=>v}let B=t.h(l,A,T);m.push(B)}),m};return()=>{const m=d(),g={class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:y.value,"onUpdate:modelValue":S},N=t.h(o,g,{default:()=>m}),$={default:()=>N};$.label=s.slots.default,$.prepend=s.slots.prepend,$.append=s.slots.append,$.fixedPreTip=s.slots.fixedPreTip,$.fixedTip=s.slots.fixedTip;const C=ke(r,ye,pe);return t.h(a,{...C,prop:`${r.prop}_item`},$)}}else return()=>{const d=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:f.value,modelValue:y,"onUpdate:modelValue":S},{default:()=>d})}}}}const{componentName:Xf,create:Qf,scope:Gf}=Q("checkbox-item"),Zo=Qf(Yf(Xf,Gf,we,On,Rn)),Jo={modelValue:{type:[String,Number,Boolean],default:!1},disable:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:Zf,create:Jf}=Q("switch"),_f=Jf({components:{Loading1:le.Loading1},props:{...Jo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=Zf;return{[i]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-disable`]:e.disable,[`${i}-base`]:!0}}),l=t.computed(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disable||e.loading)return;r="click";const c=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":n("change",i)}),{classes:o,style:l,isActive:a,onClick:s}}}),em={class:"fox-switch-button"};function tm(e,n,a,o,l,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",em,[e.loading?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(s,{name:"loading",color:e.activeColor},null,8,["color"])]):t.createCommentVNode("",!0),e.activeText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label open"},t.toDisplayString(e.activeText),513),[[t.vShow,e.isActive]]),t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label close"},t.toDisplayString(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):t.createCommentVNode("",!0)])],6)}const Un=oe(_f,[["render",tm]]);function nm(e,n,a,o){return{props:{...pe,...ye,...Jo},emits:["change","update:modelValue"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=e,p=Ie(l,"modelValue"),u=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const b={...ke(l,Jo),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":u},y=[],S=t.h(o,b);y.push(S);const k={default:()=>y};k.label=r.slots.default,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const d=ke(l,ye,pe);return d["content-class"]=f,t.h(a,{...d,prop:`${l.prop}_item`},k)}}}}const{componentName:om,create:lm,scope:am}=Q("switch-item"),_o=lm(nm(om,am,we,Un));function rm(e,n,a,o){return{props:{...pe,...ye,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const{emitEvent:s}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"]},l.prop??r.attrs.name),{toLocaleRefs:i}=re.useFoxI18n(n),c=i(l,["placeholder"]),f=Ae(t.computed(()=>l.disabled)),p=Ve(t.computed(()=>l.readonly)),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,v=>{u.value=v,s("change",v)});const h=t.computed(()=>({[`${e}`]:!0})),b=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:f.value,[`${e}__placeholder`]:!f.value&&ue(u.value)})),y=Te(t.computed(()=>l.textAlign),"textAlign"),S=t.computed(()=>{const v={};return y.value&&(v["text-align"]=y.value),v}),k=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),d=t.computed(()=>ue(u.value)?c.placeholder.value:u.value),m=t.computed(()=>!ue(l.desc)||r.slots.sub),g=t.computed(()=>({[`${e}__sub`]:!0})),N=t.computed(()=>{const v={};return y.value&&(v["text-align"]=y.value),v}),$=()=>{s("focus",u.value)},C=()=>{s("blur",u.value)},V=t.computed(()=>({[`${e}__append`]:!0})),A=t.computed(()=>be(l.unit)>0),E=v=>{f.value==!0||p.value==!0||s("click")},T=t.computed(()=>l.icon??a),B=t.computed(()=>({action:!0}));return()=>{const v=[];if(typeof r.slots.content=="function"){const M=r.slots.content();v.push(M)}else{const M=[];if(k.value){const R={tabIndex:0,class:b.value,style:S.value,onFocus:$,onBlur:C,onClick:E};let P=null;r.slots.main?P=t.h("view",R,[r.slots.main(d.value)]):P=t.h("view",R,[d.value]),M.push(P)}if(m.value){const R={tabIndex:0,class:g.value,style:N.value,onFocus:$,onBlur:C,onClick:E};let P=null;r.slots.sub?P=t.h("view",R,[r.slots.sub(l.desc)]):P=t.h("view",R,[l.desc]),M.push(P)}const z={class:h.value},I=t.h("view",z,M);v.push(I)}const L=[],D=ce(l.iconSize);let x=r.slots.icon;if(!x){const M={width:D,height:D,class:["action-icon"]};x=t.h(T.value,M)}const U={class:B.value,onClick:E},q=t.h("view",U,{default:()=>[x]});if(L.push(q),A.value){const M=t.h("view",{},[l.unit]);L.push(M)}const Y={class:V.value},j=t.h("view",Y,{default:()=>L});v.push(j);const J={default:()=>v};J.label=r.slots.default,J.prepend=r.slots.prepend,J.append=r.slots.append,J.fixedPreTip=r.slots.fixedPreTip,J.fixedTip=r.slots.fixedTip;const ee=ke(l,ye,pe);return t.h(o,{...ee,prop:`${l.prop}_item`},J)}}}}const{componentName:sm,create:im,scope:cm}=Q("link-item"),el=im(rm(sm,cm,le.ArrowRight,we)),tl={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:dm,componentName:um}=Q("rate"),fm=dm({props:{...tl},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[um]:!0})),r=b=>{n("update:modelValue",b),n("change",b)},s=(b,y)=>{if(e.disabled||e.readonly)return;let S=0;y===1&&e.modelValue===y||(S=y,e.allowHalf&&b==2&&(S-=.5)),r(S)},i=(b,y,S)=>{let k=0;for(let d=y.value.length-1;d>=0;d--){const m=y.value[d];if(b>m.offsetLeft){S?k=d+(b>m.offsetLeft+m.clientWidth/2?1:.5):k=d+1;break}}return k},c=Je(),f={onTouchStart(b){!e.touchable||e.readonly||c.start(b)},onTouchMove(b){e.touchable&&(c.move(b),c.isHorizontal()&&o.value&&(b.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),u=t.computed(()=>e.customIcon??le.StarFillN);return{classes:l,...f,onClick:s,toPxDesc:ge,renderIcon:(b,y)=>t.h(b,y),rateRefs:o,refRandomId:p,slots:a,customIcon:u}}}),mm=["id"],pm={class:"fox-rate-item__icon--full"},hm={key:0,class:"fox-rate-item__icon--half"},gm={key:1,class:"fox-rate-item__icon--half"};function ym(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:t.normalizeStyle(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",pm,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=e.modelValue?e.activeColor:e.voidColor})),{class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||s>e.modelValue}]),onClick:i=>e.onClick(1,s)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>s?(t.openBlock(),t.createElementBlock("view",hm,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<s?(t.openBlock(),t.createElementBlock("view",gm,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,mm))),128))],34)}const Ct=oe(fm,[["render",ym]]);function bm(e,n,a,o){return{props:{...pe,...ye,...tl},emits:["change","update:modelValue"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=e,p=Ie(l,"modelValue"),u=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const b={...ke(l,tl),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":u},y=[],S=t.h(o,b);y.push(S);const k={default:()=>y};if(r.slots.default){const g=r.slots.default();k.label=()=>g}const d=ke(l,ye,pe);return d["content-class"]=f,t.h(a,d,k)}}}}const{componentName:km,create:Sm,scope:Cm}=Q("rate-item"),nl=Sm(bm(km,Cm,we,Ct)),wm=/scroll|auto|overlay/i,bs=window;function Nm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ol(e,n=bs){let a=e;for(;a&&a!==n&&Nm(a);){const{overflowY:o}=window.getComputedStyle(a);if(wm.test(o))return a;a=a.parentNode}return n}function ks(e,n=bs){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=ol(e.value,n))}),a}const Ss=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Bm={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 Am(e,n,a){return{props:{...Bm},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["pullText","loadText","loadMoreText"]),c=t.ref(),f=ks(c),p=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),u=t.computed(()=>({[e]:!0})),h=m=>m?m.offsetTop+h(m.offsetParent):0,b=()=>{let m=0,g=0,N="down";if(f.value==window){const $=Ss();c.value&&(m=h(c.value)+c.value.offsetHeight-$-window.innerHeight),g=$}else{const{scrollHeight:$,clientHeight:C,scrollTop:V}=f.value;m=$-C-V,g=V}return p.beforeScrollTop>g?N="up":N="down",p.beforeScrollTop=g,l("scroll-change",g),m<=o.threshold&&N=="down"},y=()=>{Xe(()=>{if(!b()||!o.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},S=()=>{f.value&&f.value.addEventListener("scroll",y,o.useCapture)},k=()=>{f.value&&f.value.removeEventListener("scroll",y,o.useCapture)};t.onMounted(()=>{S(),o.immediate&&y()}),t.onUnmounted(()=>{k()});const d=t.ref(!1);return t.onActivated(()=>{d.value&&(d.value=!1,S())}),t.onDeactivated(()=>{d.value=!0,k()}),t.watch(()=>o.modelValue,m=>{m||(p.isInfiniting=!1)}),()=>{const m={class:"fox-infinite__container"},g=t.h("view",m,[r?.default?.()]),N=[];if(p.isInfiniting){let A=r?.loading?.()??null;if(!A){let B=r?.loadingIcon?.()??null;if(!B){const D={class:["fox-infinite__bottom-box__img"]};B=t.h(a,D)}const v={class:"fox-infinite__bottom-box__text"},L=t.h("view",v,[i.loadText.value]);A=[B,L]}const E={class:"fox-infinite__bottom-box"},T=t.h("view",E,A);N.push(T)}else if(!o.hasMore){let A=r?.finished?.()??null;if(!A){const E={class:"fox-infinite__bottom-tips"};A=t.h("view",E,[i.loadMoreText.value]),N.push(A)}}const $={class:"fox-infinite__bottom"},C=t.h("view",$,N),V={class:u.value,ref:c};return t.h("view",V,[g,C])}}}}const{componentName:Tm,create:$m,scope:Vm}=Q("infinite-loading"),Hn=$m(Am(Tm,Vm,le.Loading)),{componentName:Em,create:Dm}=Q("button"),Im=Dm({components:{Loading:le.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:o,size:l,shape:r,disabled:s,loading:i,color:c,plain:f,block:p}=t.toRefs(e),u=y=>{!i.value&&!s.value&&n("click",y)},h=t.computed(()=>{const y=Em;return{[y]:!0,[`${y}--${o.value}`]:o.value,[`${y}--${l.value}`]:l.value,[`${y}--${r.value}`]:r.value,[`${y}--plain`]:f.value,[`${y}--block`]:p.value,[`${y}--disabled`]:s.value,[`${y}--loading`]:i.value}}),b=t.computed(()=>{const y={};return c?.value&&(f.value?(y.color=c.value,y.background="#fff",c.value?.includes("gradient")||(y.borderColor=c.value)):(y.color="#fff",y.background=c.value)),y});return{handleClick:u,classes:h,getStyle:b}}}),xm={class:"fox-button__wrap"};function qm(e,n,a,o,l,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",xm,[e.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading"})):t.createCommentVNode("",!0),e.$slots.icon&&!e.loading?t.renderSlot(e.$slots,"icon",{key:1}):t.createCommentVNode("",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass({"fox-button__text":e.$slots.icon||e.loading})},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)])],6)}const Pe=oe(Im,[["render",qm]]),vm={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Mm=(e,n,a)=>({props:{...vm},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["placeholder"]),c=t.reactive({active:!1}),f=t.computed(()=>({background:o.background})),p=t.computed(()=>({background:o.inputBackground})),u=E=>{let B=E.target.value;o.maxLength&&B.length>Number(o.maxLength)&&(B=B.slice(0,Number(o.maxLength))),l("update:modelValue",B,E),l("change",B,E)},h=t.ref({}),b=E=>{let B=E.target.value;c.active=!0,h.value=o.focusStyle,l("focus",B,E)},y=E=>{setTimeout(()=>{c.active=!1},0);let B=E.target.value;o.maxLength&&B.length>Number(o.maxLength)&&(B=B.slice(0,Number(o.maxLength))),h.value={},l("blur",B,E)},S=E=>{l("update:modelValue","",E),l("change","",E),l("clear","")},k=t.computed(()=>String(o.modelValue).length>0),d=t.computed(()=>{const E={};return k.value||(E.display="none"),E}),m=()=>{l("search",o.modelValue)},g=E=>{l("keyup-input",E),E.key.toLocaleUpperCase()==="ENTER"&&m()},N=E=>{l("click-input",E)},$=E=>{l("click-left-icon",o.modelValue,E)},C=t.computed(()=>({textAlign:o.inputAlign})),V=t.ref(null);t.onMounted(()=>{o.autofocus&&V.value.focus()});const A=()=>{const E=[];if(r.leftin){const D={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:$},x=t.h("view",D,[r.leftin()]);E.push(x)}const T={ref:V,class:[`${e}__input-inner`],style:C.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:N,onInput:u,onFocus:b,onBlur:y,onkeyup:g},B=t.h("input",T);E.push(B);const v=[];if(o.clearable){const D={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:d.value,onClick:S},x=r?.clear?.()??o.clearIcon??a,U=t.h("view",D,[t.h(x)]);v.push(U)}if(r.rightin){const D={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},x=t.h("view",D,[r.rightin()]);v.push(x)}if(v.length>0){const D={class:`${e}__input-inner-right`},x=t.h("view",D,v);E.push(x)}const L={class:[`${e}__search-input`,`${o.shape}`],style:{...p.value,...h.value}};return t.h("view",L,E)};return()=>{const E=[];if(o.label){const v={class:`${e}__search-label`},L=t.h("span",v,[o.label]);E.push(L)}if(r.leftout){const v={class:[`${e}__search-icon`,`${e}__left-search-icon`]},L=t.h("view",v,[r.leftout()]);E.push(L)}const T=A();if(E.push(T),r.rightout){const v={class:[`${e}__search-icon`,`${e}__right-search-icon`]},L=t.h("view",v,[r.rightout()]);E.push(L)}const B={class:`${e}`,style:f.value};return t.h("view",B,E)}}}),{componentName:Pm,create:Lm,scope:zm}=Q("searchbar"),jn=Lm(Mm(Pm,zm,le.CircleClose)),Wn={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},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Fm(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Yn(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(ws(e,r)===a)return l}return-1}function Yn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Cs(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function ws(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Rm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Om(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Km=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let f=a;typeof i=="function"&&(f=f.filter(i));let p=(o-1)*l,u=p+l;u>f.length&&(u=f.length);const h=f.slice(p,u);return{totalSize:f.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=Ge(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):($e(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function Um(){const e=t.getCurrentInstance();return new Km(e.proxy)}function Hm(e,n,a,o,l,r,s,i,c,f,p){return{props:{...Wn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,{emit:h,slots:b}){const{toLocaleRefs:y}=re.useFoxI18n(n),S=y(u,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),k=Um(),d=t.ref([]),m=t.ref(0),g=t.ref(""),N=t.shallowRef(null),$=t.computed(()=>{const K={};return u.params&&Object.assign(K,u.params),ue(g.value)||(K[`${u.searchKey}`]=g.value),N.value&&Object.assign(K,N.value),K});let C=!0;const V=async(K,H,Z)=>{try{if(E.value===!1)return;let G=null;ue(g.value)||(G=F=>{const te=Yn(u,F);if(typeof te=="string"&&te.includes(g.value))return!0;const ne=Cs(u,F);return!!(typeof ne=="string"&&ne.includes(g.value))});const _=await k.load("actionsheet",K,H,Z,$.value,C,G??void 0);C=!1,Array.isArray(_)?(d.value=_,m.value=1,E.value=!1):!Array.isArray(_.page)||_.page.length===0?(console.warn("[FoxUI] can not load more data"),E.value=!1):(Reflect.apply([].push,d.value,_.page),m.value=Math.ceil(d.value.length/u.pageSize),(_.totalSize&&d.value.length>=_.totalSize||Z<_.page.length)&&(E.value=!1)),A.value=!1}catch(G){console.error("[FoxUI] ActionSheet load more data fail",G),E.value=!0,m.value=0,d.value=[]}setTimeout(()=>{h("loaded-data")},250)},A=t.ref(!1),E=t.ref(!0),T=async()=>{if(!u.source){A.value=!1;return}await V(u.source,m.value+1,u.pageSize)};t.watch(()=>g.value,(K,H)=>{ue(K)&&!ue(H)&&T()}),t.watch([()=>u.source,()=>u.pageSize,()=>u.params],async([K,H,Z])=>{u.source&&T()},{immediate:!0});const B=t.computed(()=>!u.multiple&&u.isAutoBackFill),v=t.ref([]);let L=null;const D=t.ref(u.visible);t.watch(()=>u.visible,K=>{D.value!==K&&(D.value=K),K?L=[...v.value]:L=null});const x=(K,H)=>{const Z=[];return Array.isArray(K)||(K=[K]),K.forEach(G=>{let _=Fm(u,H,G,u.valueType);_!==-1&&Z.push(_)}),Me(Z,v.value)?!1:(v.value=Z,!0)};t.watch([()=>u.modelValue,()=>d.value],([K,H],[Z,G])=>{if(x(K,H)){const F=U();q(F)}},{deep:!0});const U=()=>{const K=[],H=[],Z=[];for(let te of v.value){const ne=d.value[te];H.push(ne);const se=Yn(u,ne);if(Z.push(se),u.valueType==="item")K.push(ne);else if(u.valueType==="text")K.push(se);else{const de=ws(u,ne);K.push(de)}}let G=null,_=null,F=null;return u.multiple?(G=K,_=Z,F=H):(G=K[0]??null,_=Z[0]??null,F=H[0]??null),{value:G,text:_,item:F}},q=K=>{h("update:modelValue",K.value),h("update:text",K.text),h("change",K.value,K.item,K.text)},Y=()=>{L&&(v.value=L)},j=K=>{const H=v.value.indexOf(K);u.multiple?H===-1?v.value.push(K):v.value.splice(H,1):H===-1?v.value=[K]:v.value=[],(B.value||!u.poppable&&!u.showFooter)&&W()},J=K=>{D.value=K,h("update:visible",K)},ee=()=>{const K=()=>{Y(),J(!1)},H=u.beforeMethod??u.beforeClose;if(typeof H=="function"){const Z=H("close");dt(Z)?Z.then(G=>{G!==!1&&K()}).catch(()=>{K()}):Z!==!1&&K()}else K()},W=()=>{const K=U(),H=()=>{q(K),J(!1)},Z=u.beforeMethod??u.beforeClose;if(typeof Z=="function"){const G=Z("confirm",K.value,K.item,K.text);dt(G)?G.then(_=>{_!==!1&&H()}).catch(()=>{H()}):G!==!1&&H()}else H()},M=()=>{E.value=!0,m.value=0,d.value=[],u.source&&T()},z=()=>{let K=S.title.value??"";b.title&&(K=b.title());const H=t.h("view",{class:["fox-actionsheet__header-title"]},[K]),Z=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:ee});return t.h("view",{class:["fox-actionsheet__header"]},[H,Z])},I=()=>{let K=null;if(b.search)K=b.search();else{const H={onSearch:M,placeholder:S.seachPlaceholder.value,disabled:u.disabled,modelValue:g.value,"onUpdate:modelValue":Z=>{g.value=Z}};K=t.h(r,H,{leftin:()=>t.h(f)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[K])},R=(K,H,Z,G,_)=>{if(b.optionLabel)return b.optionLabel({text:K,checked:H,disabled:Z,subText:G,item:_});const F=[],te=t.h("view",{class:"fox-actionsheet__list-item-text"},[K]);if(F.push(te),G){const ne=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[G]);F.push(ne)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},F)},P=(K,H,Z,G)=>{if(b.optionIcon)return b.optionIcon({checked:K,disabled:H,iconSize:Z,item:G});if(K){if(b.checkedIcon)return b.checkedIcon({disabled:H,item:G});{const _=u.checkedIcon??i;return t.h(_,{width:Z,height:Z,class:["fox-actionsheet__list-item-icon"]})}}else{if(b.icon)return b.icon({disabled:H,item:G});{const _=u.icon??s;return t.h(_,{width:Z,height:Z,class:["fox-actionsheet__list-item-icon"]})}}},O=()=>{const K=[];for(let H=0;H<d.value.length;H++){const Z=d.value[H],G=Yn(u,Z),_=Cs(u,Z),F=["fox-actionsheet__list-item"],te={};let ne=Rm(u,Z),se=u.iconSize?ce(u.iconSize):null;const de=Om(u,Z,H);de&&(ne=ne||de.disabled,de.class&&F.push(de.class),de.style&&Object.assign(te,de.style)),ne=!!(u.disabled||ne);const xe=v.value.includes(H);ne&&F.push("is-disabled"),xe&&F.push("is-checked");const ve={class:F,style:te,key:`${H}`,onClick:()=>{ne||j(H)}};let ct=[];if(b.option)ct.push(b.option({item:Z,checked:xe,disabled:ne}));else{const Y2=R(G,xe,ne,_,Z);ct.push(Y2);const X2=P(xe,ne,se,Z);ct.push(X2)}const xa=t.h("view",ve,ct);K.push(xa)}return K},X=()=>{let K=[];if(b.buttons)K=b.buttons();else{const Z=t.h(l,{type:"primary",block:"block",onClick:W,disabled:u.disabled},{default:()=>S.confirmText.value});K.push(Z)}return t.h("view",{class:"fox-actionsheet__footer"},[K])};return Ee({search:async(K=null,H=!0)=>{N.value=K&&t.toRaw(K),t.triggerRef(N),H&&(E.value=!0,m.value=0,d.value=[]),t.nextTick(()=>{T()})},clear:()=>{E.value=!0,m.value=0,d.value=[]},confirm:()=>{W()},cancel:()=>{ee()}}),()=>{const K=[];if(u.showHeader){const se=z();K.push(se)}if(u.showSearchbar){const se=I();K.push(se)}let H=null;if(b.content)H=b.content();else{const se=O(),de={hasMore:E.value,loadText:S.loadText.value,loadMoreText:S.loadMoreText.value,modelValue:A.value,"onUpdate:modelValue":xe=>{A.value=xe},onLoadMore:T};H=t.h(o,de,{default:()=>se})}const Z={};u.optionsHeight&&(Z.height=u.optionsHeight);const G={"fox-actionsheet__list":!0};u.poppable||(G["fox-actionsheet__list--inner"]=!0);const _=t.h("view",{class:G,style:Z},[H]);if(K.push(_),u.showFooter&&!B.value){const se=X();K.push(se)}const F=t.h("view",{class:"fox-actionsheet"},K);if(!u.poppable)return F;const te=["fox-actionsheet__popup"];u.popClass&&te.push(u.popClass);const ne={popClass:te.join(" "),visible:D.value,closeable:!1,"onUpdate:visible":J,position:u.position,round:"round",onClickOverlay:ee,closeOnClickOverlay:u.closeOnClickOverlay};return t.h(a,ne,{default:()=>F})}}}}const{componentName:jm,create:Wm,scope:Ym}=Q("actionsheet-pane"),Xn=Wm(Hm(jm,Ym,fe,Hn,Pe,jn,le.CheckNormal,le.Checked,le.Close,le.Search2)),Ns={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 Xm(e,n,a,o,l,r,s){return{props:{...pe,...ye,...Ns,...Wn},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const f=Ae(t.computed(()=>i.disabled)),p=Ve(t.computed(()=>i.readonly)),{emitEvent:u}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),b=h(i,["placeholder"]),y=t.ref(!1),S=Ie(i,"modelValue"),k=t.ref(""),d=t.computed(()=>Array.isArray(k.value)?k.value.join(i.separator):k.value),m="fox-input-item",g=t.computed(()=>({[m]:!0,[`${m}__disabled`]:f.value})),N=Te(t.computed(()=>i.textAlign),"textAlign"),$=t.computed(()=>{const I={};return N.value&&(I["text-align"]=N.value),I}),C=t.ref(!1),V=()=>{C.value=!0},A=I=>{C.value=I},E=I=>{S.value=I,u("update:modelValue",I)},T=(I,R)=>{u("change",I,R)},B=I=>{let P=I.target.value;y.value=!0,u("focus",P,I)},v=I=>{setTimeout(()=>{y.value=!1},0);let P=I.target.value;i.maxLength&&P.length>Number(i.maxLength)&&(P=P.slice(0,Number(i.maxLength))),u("blur",P,I)},L=I=>{k.value=I,u("update:text",I)},D=t.computed(()=>({[`${m}__append`]:!0})),x=t.computed(()=>be(i.unit)>0),U=t.computed(()=>be(i.unit)>0&&!y.value),q=t.computed(()=>({hidden:!U.value})),Y=I=>{S.value="",u("update:modelValue","",I),u("change","",I),u("clear","")},j=t.computed(()=>i.clearable&&!f.value&&!p.value),J=t.computed(()=>be(S.value)>0&&y.value),ee=I=>{J.value?Y(I):V()},W=t.computed(()=>J.value&&j.value?o:l),M=t.computed(()=>({action:!0})),z=t.ref(null);return Ee({search:I=>{z.value&&z.value.search(I)},clear:()=>{z.value&&z.value.clear},confirm:I=>{z.value&&z.value.confirm()},cancel:()=>{z.value&&z.value.cancel()}}),()=>{const I={class:g.value,style:$.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:V,onFocus:B,onBlur:v};s&&(I.disabled=!0);const R=[],P=t.h("input",I);R.push(P);const O=[],X={class:["action-icon"]},K=t.h(W.value,X),H={class:M.value,onClick:ee},Z=t.h("view",H,{default:()=>[K]});if(O.push(Z),x.value){const ve=t.h("view",{class:q.value},[i.unit]);O.push(ve)}const G={class:D.value},_=t.h("view",G,{default:()=>O});R.push(_);const F={default:()=>R};F.label=c.slots.default,F.prepend=c.slots.prepend,F.append=c.slots.append,F.fixedPreTip=c.slots.fixedPreTip,F.fixedTip=c.slots.fixedTip;const te=ke(i,Wn);te.ref=z,te.class=i.actionsheetProps,te.disabled=f.value||p.value,te.visible=C.value,te["onUpdate:visible"]=A,te.modelValue=S.value,te["onUpdate:modelValue"]=E,te.text=k.value,te["onUpdate:text"]=L,te.onChange=T,te.poppable=!0;const ne={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},se=t.h(r,te,ne);F.hide=()=>[se];const de=ut(i,Ns,Wn);return t.h(a,{...de,prop:`${i.prop}_item`},F)}}}}const{componentName:Qm,create:Gm,scope:Zm}=Q("actionsheet-item"),ll=Gm(Xm(Qm,Zm,we,le.CircleClose,le.ArrowRight,Xn)),al={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{componentName:Jm,create:_m}=Q("input-number"),ep=_m({components:{Minus:le.Minus,Plus:le.Plus},props:{...al},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const b=Jm;return{[b]:!0,[`${b}--disabled`]:e.disabled}}),o=b=>Number(b).toFixed(Number(e.decimalPlaces)),l=b=>{const y=b.target;n("update:modelValue",y.valueAsNumber,b)},r=(b,y)=>{let S=o(b);n("update:modelValue",S,y),n("change",S,y)},s=(b=Number(e.modelValue))=>b<Number(e.max)&&!e.disabled,i=(b=Number(e.modelValue))=>b>Number(e.min)&&!e.disabled,c=b=>{if(n("reduce",b),i()){let y=Number(e.modelValue)-Number(e.step);r(y,b)}else n("overlimit",b,"reduce")},f=b=>{if(n("add",b),s()){let y=Number(e.modelValue)+Number(e.step);r(y,b)}else n("overlimit",b,"add")},p=b=>{e.disabled||e.readonly||n("focus",b)},u=b=>{if(e.disabled||e.readonly)return;let S=b.target.valueAsNumber;S<Number(e.min)?S=Number(e.min):S>Number(e.max)&&(S=Number(e.max)),r(S,b),n("blur",b)},h=b=>{let y=Number(b);return y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),y};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const b=h(e.modelValue);b!==Number(e.modelValue)&&r(b,{})}),{classes:a,change:l,blur:u,focus:p,add:f,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:ge}}}),tp=["min","max","disabled","readonly","value"];function np(e,n,a,o,l,r){const s=t.resolveComponent("Minus"),i=t.resolveComponent("Plus");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...c)=>e.reduce&&e.reduce(...c))},[t.renderSlot(e.$slots,"left-icon",{},()=>[t.createVNode(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth),height:e.toPxDesc(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...c)=>e.change&&e.change(...c)),onBlur:n[2]||(n[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:n[3]||(n[3]=(...c)=>e.focus&&e.focus(...c))},null,44,tp),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...c)=>e.add&&e.add(...c))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(i,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const _e=oe(ep,[["render",np]]);function op(e,n,a,o){return{props:{...pe,...ye,...al},emits:["change","update:modelValue"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=e,p=Ie(l,"modelValue"),u=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const h={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},y={...ke(l,al),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":u},S=t.h(o,y,h),k=[];k.push(S);const d={default:()=>k};d.label=r.slots.default,d.fixedPreTip=r.slots.fixedPreTip,d.fixedTip=r.slots.fixedTip;const m=ke(l,ye,pe);return m["content-class"]=f,t.h(a,{...m,prop:`${l.prop}_item`},d)}}}}const{componentName:lp,create:ap,scope:rp}=Q("inputnumber-item"),rl=ap(op(lp,rp,we,_e)),sp={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 ip(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Bs(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function As(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function cp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function sl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Ts(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function $s(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function il(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let dp=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[o]);const l=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function up(){const e=t.getCurrentInstance();return new dp(e.proxy)}function fp(e,n,a,o){return{props:{...sp},emits:["update:modelValue","change","loaded-data"],setup(l,{slots:r,emit:s}){const i=e,c=up(),f=t.ref([]),p=t.computed(()=>f.value.filter(M=>cp(l,M)!==!1)),u=t.ref(-1),h=()=>{const M=l.modelValue,z=p.value.findIndex(I=>Bs(l,I)===M);u.value!==z&&(u.value=z,l.scroll&&ee(z,!1))};t.watch([()=>l.modelValue,p],()=>{h()});const b=M=>u.value===M,y=M=>{if(M<0&&M>=p.value.length)return!1;const z=p.value[M],R=(il(l,z,M)??{}).status??sl(l,z);return b(M)||R},S=t.computed(()=>{const M={[i]:!0};return l.mode?M[`is-${l.mode}`]=!0:l.direction&&(M[`is-${l.direction}`]=!0),l.scroll&&(M["is-scroll"]=!0),M}),k=t.computed(()=>({})),d=(M,z,I,R,P)=>{const O={[`${i}__step`]:!0};return P&&(O[`${P}`]=!0),O[`${m.value}`]=!0,R&&(O["is-doit"]=!0),M===u.value?O["is-active"]=!0:z==="done"?O["is-done"]=!0:z==="error"?O["is-error"]=!0:z==="half"?O["is-half"]=!0:I?O["is-disabled"]=!0:O["is-normal"]=!0,O},m=t.computed(()=>{if(l.mode==="simple")return"start";let M=l.align;return M||(l.direction==="vertical"?M="start":M="center"),M}),g=(M,z={})=>{const I={...z};return m.value==="start"&&M===p.value.length-1?I.flex="0 0 auto":l.step?l.direction==="vertical"?I.height=l.step:I.width=l.step:I.flex="1 1 100%",I},N=(M,z)=>{let I={};if(z<p.value.length-1){const R=z+1;y(z)&&y(R)?l.direction==="vertical"?I.height="100%":I.width="100%":I.opacity="0"}return I},$=M=>p.value.length-1===M,C=(M,z)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&z>u.value||u.value===z)return;const I=u.value,R=z;u.value=z,l.scroll&&ee(z,!1);const P=Bs(l,M);s("update:modelValue",P);const O={fromIndex:I,currentIndex:R,item:M,items:p.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",P,O)},V=t.ref(!0),A=async(M,z)=>{try{const I=await c.load("stesbar",M,z);Array.isArray(I)&&(f.value=I),V.value=!1}catch(I){console.error("[FoxUI] Load StepsBar Data Fail",I),f.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([M,z])=>{M&&A(M,z)},{immediate:!0});const E=(M,z,I,R,P)=>{let O=null;if(r.icon)O=r.icon({item:M,index:z,status:R});else if(R==="done"){const K={};l.iconSize&&(K.width=l.iconSize,K.height=l.iconSize);const H=l.icon??a;O=t.h(H,K)}else{const K=I??`${z+1}`;O=t.h("span",{},[K])}const X={class:"fox-steps-bar__icon",onClick:()=>{P||C(M,z)}};return t.h("view",X,[O])},T=(M,z,I)=>{const R=t.h("i",{class:"fox-steps-bar__line-inner",style:N(M,z)});return t.h("view",{class:"fox-steps-bar__line"},[R])},B=()=>{let M=null;if(r.markIcon)M=r.markIcon();else{const I={};l.iconSize&&(I.width=l.markIconSize,I.height=l.markIconSize);const R=l.markIcon??o;M=t.h(R,I)}return t.h("view",{class:"fox-steps-bar__mark"},[M])},v=(M,z,I,R,P)=>{const O=[];if(!$(z)){const H=T(M,z);O.push(H)}const X=E(M,z,I,R,P);O.push(X);const K={class:"fox-steps-bar__head"};return t.h("view",K,O)},L=(M,z,I,R)=>{let P=null;r.main?P=r.main({item:M,index:z,status:I}):P=ip(l,M);const O={class:"fox-steps-bar__main",onClick:()=>{R||C(M,z)}};return t.h("view",O,[P])},D=(M,z,I)=>{let R=null;if(r.sub){R=r.sub({item:M,index:z,status:I});const P={class:"fox-steps-bar__sub"};return t.h("view",P,[R])}return null},x=(M,z)=>{const I=il(l,M,z)??{},R=I.status??sl(l,M);let P=As(l,M);I.disabled===!0&&(P=!0),l.disabled===!0&&(P=!0);const O=I.label??$s(l,M),X=[],K=E(M,z,O,R,P);K&&X.push(K);const H=L(M,z,R,P);if(H&&X.push(H),!$(z)){const ne=T(M,z);ne&&X.push(ne)}const Z=t.h("view",{class:"fox-steps-bar__head"},X),G=I.class,_=I.style??{};let F=Ts(l,M);I.doit===!0&&(F=!0);const te={ref:J(z),class:d(z,R,P,F,G),style:g(z,_)};return t.h("view",te,[Z])},U=(M,z)=>{const I=il(l,M,z)??{},R=I.status??sl(l,M);let P=As(l,M);I.disabled===!0&&(P=!0),l.disabled===!0&&(P=!0);const O=I.label??$s(l,M),X=[],K=l.layout;for(let F of K)if(F==="head"){const te=v(M,z,O,R,P);X.push(te)}else if(F==="main"){const te=L(M,z,R,P);X.push(te)}else if(F==="sub"){const te=D(M,z,R);X.push(te)}else if(F==="mark"){const te=B();X.push(te)}const H=I.class,Z=I.style??{};let G=Ts(l,M);I.doit===!0&&(G=!0);const _={ref:J(z),class:d(z,R,P,G,H),style:g(z,Z)};return t.h("view",_,X)},q=t.ref(),Y=t.ref([]),j=(M,z)=>{Y.value[z]=M},J=M=>z=>{j(z,M)},ee=(M,z)=>{const I=q.value,R=Y.value;if(!I||!R||!R[M])return;const P=R[M];let O=0;l.direction==="vertical"?O=P.offsetTop-(I.offsetHeight-P.offsetHeight)/2:O=P.offsetLeft-(I.offsetWidth-P.offsetWidth)/2,W(I,O,z?0:.3,l.direction)},W=(M,z,I,R)=>{let P=0;const O=R==="horizontal"?M.scrollLeft:M.scrollTop,X=I===0?1:Math.round(I*1e3/16);function K(){R==="horizontal"?M.scrollLeft+=(z-O)/X:M.scrollTop+=(z-O)/X,++P<X&&Oe(K)}K()};return()=>{const M=[];if(l.mode==="simple")for(let I=0;I<p.value.length;I++){const R=p.value[I],P=x(R,I);M.push(P)}else for(let I=0;I<p.value.length;I++){const R=p.value[I],P=U(R,I);M.push(P)}const z={ref:q,class:S.value,style:k.value};return t.h("view",z,M)}}}}const{componentName:mp,create:pp,scope:hp}=Q("steps-bar"),cl=pp(fp(mp,hp,le.Checklist,le.ArrowRight));function gp(e){e.stopPropagation()}class yp{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=Po()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=Lo(),o=(l,r,s,i)=>{this.updateMove({x:l,y:r})};this.touchstart=l=>{this.moving||(a.start(l),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=l=>{this.moving&&(a.move(l),gp(l),o(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{o(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(l=>{this.touchstart&&l.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 bp(e,n){return new yp(e,n)}const kp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]}},Sp=(e,n,a,o=!1)=>({props:{...kp},emits:["click"],setup(l,{slots:r,emit:s}){const i=t.reactive({top:l.top,right:l.right,bottom:l.bottom,left:l.left}),c=t.computed(()=>{const m=[`${e}`];return l.customClass&&m.push(l.customClass),m}),f=t.computed(()=>{const m={};return ue(i.top)||(m.top=i.top),ue(i.right)||(m.right=i.right),ue(i.bottom)||(m.bottom=i.bottom),ue(i.left)||(m.left=i.left),ue(l.width)||(m.width=l.width),ue(l.height)||(m.height=l.height),ue(l.color)||(m.color=l.color),ue(l.background)||(m.background=l.background),ue(l.borderRadius)||(m["border-radius"]=l.borderRadius),m}),p=t.computed(()=>({[`${e}__icon`]:!0})),u=()=>{s("click")},h=t.ref(null),b=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},y={x:0,y:0},d=bp(m=>{if(!h.value)return;const g=h.value;b(),i.left=g.offsetLeft,i.top=g.offsetTop,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`,g.style.right=null,g.style.bottom=null,y.x=i.left,y.y=i.top},m=>{if(!h.value)return;const g=h.value;b(),i.left=y.x+m.x,i.top=y.y+m.y,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`});return t.onMounted(()=>{if(l.draggable&&h.value){const m=[h.value];d.open(m)}}),t.onBeforeUnmount(()=>{l.draggable&&h.value&&d.close()}),()=>{let m=[];const g=typeof r.default=="function"?r.default():[];if(g&&g.length>0)m=g;else{const $=t.h(a,{class:p.value});m.push($)}const N={ref:$=>{h.value=$},class:c.value,style:f.value,onClick:u};return t.h("view",N,m)}}}),{componentName:Cp,create:wp,scope:Np}=Q("floating-button"),dl=wp(Sp(Cp,Np,le.Uploader,!1)),Bp={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1}};function Ap(e,n,a){return{props:{...Bp},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const u={[`${e}`]:!0};return o.disabled?u[`${e}--disabled`]=!0:u[`${e}--${o.type}`]=!0,u}),s=Ie(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),f=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),p=()=>{l("update:modelValue",!s.value)};return()=>{const u=[];if(i.value){const k={class:c.value},d=t.h("span",k,[i.value]);u.push(d)}const h={class:f.value},b=o.icon??a,y=t.h(b,h);return u.push(y),o.textPosition==="right"&&u.reverse(),t.h("view",{class:r.value,onClick:p},u)}}}}const{componentName:Tp,create:$p,scope:Vp}=Q("more-button"),ul=$p(Ap(Tp,Vp,le.RectUp)),Ep={width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Dp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Ip(e,n,a){return{props:{...Ep},setup(o,{attrs:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["confirmText","cancelText"]),c=e,f=t.ref(!0),p=N=>{f.value=N},u=N=>{if(typeof o.unmount=="function")try{o.unmount()}catch($){console.error($)}if(typeof o.callback=="function")try{o.callback(N)}catch($){console.error($)}},h=()=>{u("confirm")},b=()=>{u("cancel")},y=()=>{u("close")},S=(N,$)=>Dp(N)?($.src=N,t.h("img",$)):typeof N=="string"?(Array.isArray($.class)?$.class.push(N):$.class&&typeof $.class=="object"?$[`${N}`]=!0:typeof $.class=="string"?$.class=`${$.class}, ${N}`:$.class=N,t.h(o.tag,$)):t.h(N,$),k=()=>{const N=[];if(o.icon){const C={class:[`${c}__header-icon`]},V=S(o.icon,C);N.push(V)}if(o.title){const C=t.h("view",{class:`${c}__header-title`},[o.title]);N.push(C)}if(o.showClose&&o.closeIcon){const C={class:[`${c}__header-close-icon`],onClick:y},V=S(o.closeIcon,C);N.push(V)}const $={class:[`${c}__header`]};return t.h("view",$,N)},d=(N,$)=>{const C=[];if($){const A={class:`${c}__group-title`},E=t.h("view",A,[$]);C.push(E)}if(N){const A=[];Array.isArray(N)||(N=[N]);for(let E of N){const T={class:`${c}__group-row`,innerHTML:E},B=t.h("view",T);A.push(B)}if(A.length>0){const E={class:`${c}__group-rows`},T=t.h("view",E,A);C.push(T)}}if(C.length===0)return null;const V={class:`${c}__group`};return t.h("view",V,C)},m=()=>{const N=[];if(typeof o.message=="string")N.push(o.message);else if(Array.isArray(o.message))for(let C of o.message)if(typeof C=="string"){const V=d(C);N.push(V)}else{const V=d(C.content,C.title);N.push(V)}else if(typeof o.message=="function"){const C=o.message();N.push(C)}else{const C=o.message;N.push(C)}const $={class:`${c}__body`};return t.h("view",$,N)},g=()=>{const N=[];if(o.showCancelButton){const C={class:[`${c}__footer-button`],style:{},onClick:b};o.cancelButtonClass&&C.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(C.style,o.cancleButtonStyle);const V=t.h("button",C,[o.cancelButtonText??i.cancelText.value]);N.push(V)}if(o.showConfirmButton){const C={class:[`${c}__footer-button`],style:{},onClick:h};o.confirmButtonClass&&C.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(C.style,o.confirmButtonStyle);const V=t.h("button",C,[o.confirmButtonText??i.confirmText.value]);N.push(V)}if(N.length===0)return null;const $={class:`${c}__footer`};return t.h("view",$,N)};return()=>{const N=[],$=k();$&&N.push($);const C=m();C&&N.push(C);const V=g();V&&N.push(V);const A={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},E=t.h("view",A,N),T=[`${c}__popup`];o.popClass&&T.push(o.popClass);const B={};o.width&&(B.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(B.height=typeof o.height=="number"?`${o.height}px`:o.height);const v={popClass:T.join(" "),style:B,visible:f.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":p,position:o.position,round:"round",onClickOverlay:y,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,v,{default:()=>E})}}}}const{componentName:xp,create:qp,scope:vp}=Q("messagebox"),Mp=qp(Ip(xp,vp,fe)),Pp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Lp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",zp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",Fp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Rp=new Bn,Op={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Kp=e=>{let n=document.body,a=e.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):a&&(n=e.teleport));const o=document.createElement("view"),l=`messagebox-${Rp.get()}`;o.id=l,o.classList.add("fox-messagebox__root"),e.zIndex&&(o.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${l}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(Mp,e);n.appendChild(o),t.render(r,o)},it={show:(e,n,a,o)=>{const l={...Op};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(l,n):(n&&(l.message=n),a&&typeof a=="object"?Object.assign(l,a):(typeof a=="string"&&(l.title=a),o&&typeof o=="object"?Object.assign(l,o):typeof o=="string"&&(l.type=o)));const r=l.type??"info";return l.icon||(r==="success"?l.icon=zp:r==="warning"?l.icon=Fp:r==="error"?l.icon=Pp:l.icon=Lp),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=le.Close),new Promise((s,i)=>{const c=l.callback;l.callback=f=>{if(typeof c=="function")try{c(f)}catch(p){console.error(p)}s({action:f})},Kp(l)})},alert:(e,n,a)=>it.show("alert",e,n,a),confirm:(e,n,a)=>it.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=it.alert,e.config.globalProperties.$confirm=it.confirm}},Up=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let l=!0,r=!0;for(let i in n)i==="bubbles"?l=!!n[i]:i==="cancelable"?r=!!n[i]:o[i]=n[i];o.initEvent(e,l,r),(a??document).dispatchEvent(o)},Hp=new Bn,jp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Wp=e=>`${e}-${Hp.get()}`,Yp=Symbol.for("InnerPageScopeKey"),Xp=Symbol.for("PageWrapperKey"),Qp="FoxLeave",Gp="FoxLeaveEnd",Zp={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function Jp(e,n,a,o){return{props:{...ze,...Zp},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(Yp,!0);const c={};t.provide(Xp,c);const f=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),p=()=>{f()},u=e,h=C=>{b.value=C,i("update:visible",C)},b=t.ref(!1),y=(C,V)=>jp(C)?(V.src=C,t.h("img",V)):typeof C=="string"?(Array.isArray(V.class)?V.class.push(C):V.class&&typeof V.class=="object"?V[`${C}`]=!0:typeof V.class=="string"?V.class=`${V.class}, ${C}`:V.class=C,t.h(l.tag,V)):t.h(C,V),S=()=>{if(!l.showHeader)return null;const C=[];if(s.header){const A=s.header();C.push(A)}else if(l.title){const A=t.h("view",{class:`${u}__header-title`},[l.title]);C.push(A)}if(C.length===0)return null;const V={class:[`${u}__header`]};return t.h("view",V,C)},k=()=>{if(!l.showClose)return null;const C={class:[`${u}__close-icon`],onClick:p},V=l.closeIcon??o;return y(V,C)};let d=null;const m=C=>{Up(Gp,{},d)},g=Wp(e),N=()=>{h(!0)},$=()=>{if(!d)return;const C=d.querySelector(".fox-overlay");C&&(C.classList.add("overlay-fade-leave-active"),C.classList.add("overlay-fade-leave-to"));const V=d.querySelector(".fox-popup");V&&(V.classList.add(`fox-popup-slide-${l.position}-leave-active`),V.classList.add(`fox-popup-slide-${l.position}-leave-to`),V.addEventListener("animationend",m,{once:!0}),V.addEventListener("transitionend",m,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{d=document.querySelector(`.${g}`),d?.addEventListener(Qp,$,{once:!0}),N()}),()=>{const C=[],V=S();V&&C.push(V);const A=k();A&&C.push(A);const E=s.default?s.default():[];Reflect.apply([].push,C,E);const T={[`${u}`]:!0};l.mode&&(T[`${u}--${l.mode}`]=!0);const B={class:T},v=t.h("view",B,C),L=[`${u}__popup`,g];l.popClass&&L.push(l.popClass),l.position&&L.push(`${u}__popup--${l.position}`);const D={};l.width&&(D.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(D.height=typeof l.height=="number"?`${l.height}px`:l.height);const U={...ke(l,ze),popClass:L.join(" "),style:D,visible:b.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},q=t.h(a,U,{default:()=>v});return t.h("div",{class:[`${u}__root`,g]},[q])}}}}const{componentName:_p,create:eh,scope:th}=Q("popup-wrapper"),fl=eh(Jp(_p,th,fe,le.Close));function nh(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(l)},500)}const oh={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 lh(e,n,a,o=!1){return{props:{...oh},emits:["click"],setup(l,r){const s=t.ref(null),i=t.computed(()=>{const g={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(g[`${e}--${l.type??"default"}`]=!0),l.size&&(g[`${e}--${l.size}`]=!0),g}),c=t.computed(()=>{const g={},N=l.textColor??l.color;return N&&(g.color=N),g}),f=(g,N)=>{let $=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const C=l.highlightFilter;if(g.indexOf(C)!==-1){const A=g.replace(new RegExp(C,"g"),`<span>${C}</span>`);N.innerHTML=A,N.class["is-highlight"]=!0,$=t.h(l.tag,N)}}else if(typeof l.highlightFilter=="function"){const C=l.highlightFilter(g);C&&(N.innerHTML=C,N.class["is-highlight"]=!0,$=t.h(l.tag,N))}return $},p=g=>{r.emit("click",g)};let u="";const h=()=>{const g=s.value;if(!g)return;const N=g.clientWidth;nh(g,$=>{const C=g.innerHTML??"";ue(C)||$<N||(u?a?.show(g,C,{type:"text",id:u,showArrow:l.showArrow},!0):u=a?.show(g,C,{type:"text",showArrow:l.showArrow},!0)??"")})},b=()=>{u&&a?.hide(u)};let y=null;const S=g=>{y||(y=setTimeout(()=>{h(),y=null},l.showAfter??0))},k=g=>{y&&(clearTimeout(y),y=null),setTimeout(()=>{b()},l.hideAfter??0)},d=()=>{const g=s.value;g&&(g.addEventListener("mouseover",S),g.addEventListener("mouseleave",k))},m=()=>{const g=s.value;g&&(g.removeEventListener("mouseover",S),g.removeEventListener("mouseleave",k))};return t.onMounted(()=>{!he(l.showOverflowTooltip)||!a||d()}),t.onBeforeUnmount(()=>{!he(l.showOverflowTooltip)||!a||m()}),()=>{const g={onClick:p,class:i.value,style:c.value,ref:s};let N=null;if(he(l.numberFormat)&&typeof r.slots.default=="function"){const A=r.slots.default();if(Array.isArray(A)&&A.length===1){const E=A[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const T=me(l.digits),B=me(l.decimalLength),v=he(l.autoPadding);let L=`${A[0].children}`,D=L.split("").reverse().join("");D=_t(D,B,v,T,l.separator),L=D.split("").reverse().join(""),l.highlightFilter!==void 0&&(N=f(L,g)),N||(g.innerHTML=L,N=t.h(l.tag,g))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const A=r.slots.default();if(Array.isArray(A)&&A.length===1){const E=A[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const T=`${A[0].children}`;N=f(T,g),N||(g.innerHTML=T,N=t.h(l.tag,g))}}}N||(N=t.h(l.tag,g,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return N;let C=null;if(l.icon){const A={[`${e}__mark-wrap`]:!0};l.type&&(A[`${e}__mark-wrap--${l.type}`]=!0);const E={},T=l.color;T&&(E.color=T);const B={class:A,style:E};C=t.h("view",B,t.h(l.icon))}else if(r.slots.mark){const A={[`${e}__mark-wrap`]:!0};l.type&&(A[`${e}__mark-wrap--${l.type}`]=!0);const E={},T=l.color;T&&(E.color=T);const B={class:A,style:E};C=t.h("view",B,{default:r.slots.mark})}else{const A={[`${e}__mark`]:!0};l.type&&(A[`${e}__mark--${l.type??"default"}`]=!0);const E={},T=l.color;T&&(E["background-color"]=T);const B={class:A,style:E};C=t.h("view",B)}const V={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",V,[C,N])}}}}const{componentName:ah,create:rh,scope:sh}=Q("text"),ml=rh(lh(ah,sh,yt,!1));function ih(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let f=0;c&&f<r.length;f++){let p=r[f],u=c.find(h=>h[o]===p);if(!u)break;s.push(u[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let f=n[c],p=r[c];const u=f.find(h=>h[o]===p);if(!u)break;s.push(u[a])}else{let c=n;for(let f=0;c&&f<r.length;f++){let p=r[f],u=c.find(h=>h[o]===p);if(!u)break;s.push(u[a]),c=u[l]}}return s}class ch{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function dh(){const e=t.getCurrentInstance();return new ch(e.proxy)}const uh={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 fh(e,n,a=!1){return{props:{...uh},setup(o,{attrs:l,slots:r}){const s=dh(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([p,u])=>{i.value=await s.load(o.sourceType,p,u)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let p=ih(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return p.length==0?o.emptyText??"":p.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${p[0]}`:p[0]:p.join(o.separator)}),f=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const p={...l};return r.default?r.default({text:c.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===c.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},c.value):t.h(f,p,{default:()=>c.value}):t.h(f,p,c.value)}}}}const{componentName:mh,create:ph,scope:hh}=Q("mapping"),pl=ph(fh(mh,hh,!1));function gh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return ir(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:_2,create:yh,scope:eA}=Q("domain-provider"),hl=yh(gh()),bh={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function kh(e,n){return{inheritAttrs:!1,props:bh,setup(a,{slots:o}){if(tt&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(h,b)=>{if(p===null){r.set(h,{visible:null,callback:b});return}l.has(h)&&p.unobserve(h),l.set(h,{visible:null,callback:b}),p.observe(h)},i=h=>{if(p===null){r.delete(h);return}l.has(h)&&(l.delete(h),p.unobserve(h))};let c=a.initialVisibleObserverSize;Ki({acquire:()=>{const h=c>0;return c--,h},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let p=null;const u=(h,b,y)=>{p=new IntersectionObserver(S=>{for(let k of S){let d=!1;k.intersectionRatio>0&&(d=!0);const m=l.get(k.target);if(m)try{if(a.loadPolicy==="lazy"&&!d&&m.visible!==null)return;m.visible=d,m.callback(d)}catch(g){console.error(g)}}},{root:h,rootMargin:b,threshold:y}),r.forEach((S,k)=>{l.set(k,S),p?.observe(k)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([h,b])=>{if(b||!h||p)return;let y=null;typeof h=="string"?y=document.querySelector(h):y=h,y&&u(y,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:tA,create:Sh,scope:nA}=Q("rolling-provider"),gl=Sh(kh()),{componentName:Ch,create:wh}=Q("cell"),Nh=wh({components:{Right:le.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.computed(()=>{const r=Ch;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:ge(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),Bh={key:0,class:"fox-cell__icon"},Ah={key:1,class:"fox-cell__title"},Th={class:"title"},$h={class:"fox-cell__title-desc"};function Vh(e,n,a,o,l,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",Bh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Ah,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Th,t.toDisplayString(e.title),1)]),t.createElementVNode("view",$h,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const yl=oe(Nh,[["render",Vh]]),{componentName:Eh,create:Dh}=Q("cell-group"),Ih=Dh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Eh]:!0}))}}}),xh={key:1,class:"fox-cell-group__title"},qh={key:3,class:"fox-cell-group__desc"},vh={class:"fox-cell-group__wrap"};function Mh(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",xh,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.$slots.desc?t.renderSlot(e.$slots,"desc",{key:2}):e.desc?(t.openBlock(),t.createElementBlock("view",qh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",vh,[t.renderSlot(e.$slots,"default")])],2)}const bl=oe(Ih,[["render",Mh]]),{componentName:Ph,create:Lh}=Q("image"),zh=Lh({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:le.Image,ImageError:le.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const b=Ph;return{[b]:!0,[`${b}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const b={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(y=>{y.forEach(S=>{S.isIntersecting&&(r.value=!0,l.value.disconnect())})},b),s.value&&l.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let b={};return e.width&&(b.width=ge(e.width)),e.height&&(b.height=ge(e.height)),e.radius!==void 0&&e.radius!==null&&(b.overflow="hidden",b.borderRadius=ge(e.radius)),b}),f=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,b=>{a.isError=!1,a.loading=!0});const p=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},h=b=>{n("click",b)};return{...t.toRefs(a),imageClick:h,classes:o,styles:f,stylebox:c,error:u,load:p,show:r,imgRef:s}}}),Fh=["src","date-src","alt"],Rh={key:0,class:"fox-img-loading"},Oh={key:1,class:"fox-img-error"};function Kh(e,n,a,o,l,r){const s=t.resolveComponent("Image"),i=t.resolveComponent("ImageError");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:n[2]||(n[2]=(...c)=>e.imageClick&&e.imageClick(...c))},[t.createElementVNode("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...c)=>e.load&&e.load(...c)),onError:n[1]||(n[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,Fh),e.loading?(t.openBlock(),t.createElementBlock("div",Rh,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"image"})),t.renderSlot(e.$slots,"loading")])):t.createCommentVNode("",!0),e.isError&&!e.loading?(t.openBlock(),t.createElementBlock("div",Oh,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const kl=oe(zh,[["render",Kh]]),{create:Uh}=Q("layout"),Sl=Uh({}),{componentName:Hh,create:jh}=Q("col"),Wh=jh({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Hh,a=t.inject("gutter"),o=t.computed(()=>({[n]:!0,[`${n}-gutter`]:a,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),l=t.computed(()=>({paddingLeft:a/2+"px",paddingRight:a/2+"px"}));return{classes:o,style:l}}});function Yh(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Cl=oe(Wh,[["render",Yh]]),{componentName:Xh,create:Qh}=Q("row"),Gh=Qh({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const n=Xh;t.provide("gutter",e.gutter);const a=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
|
|
6
|
+
${a("",e.type)}
|
|
7
|
+
${a("justify",e.justify)}
|
|
8
|
+
${a("align",e.align)}
|
|
9
|
+
${a("flex",e.flexWrap)}
|
|
10
10
|
${n}
|
|
11
11
|
`:`
|
|
12
12
|
${n}
|
|
13
|
-
`)}}});function ig(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Sl=_(sg,[["render",ig]]),{componentName:cg,create:dg}=X("divider"),ug=dg({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:t.computed(()=>{const o=cg;let a={[o]:!0},r={};return e.direction==="horizontal"?r={...a,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:r={...a,[`${o}-vertical`]:e.direction==="vertical"},r})}}});function fg(e,n,l,o,a,r){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}const Cl=_(ug,[["render",fg]]);function mg(e,n){const l=[],o=a=>{Array.isArray(a)&&a.forEach(r=>{if(t.isVNode(r)){if(n){if(r.type&&r.type.name===n){l.push(r);return}}else l.push(r);r.component?.subTree&&o(r.component.subTree.children),r.children&&o(r.children)}})};return o(e),l}function pg(e,n,l){const o=mg(e.subTree.children,l);n.sort((a,r)=>o.indexOf(a.vnode)-o.indexOf(r.vnode))}function hg(e,n){const l=t.shallowReactive([]),o=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),pg(o,l,n))},r=i=>{l.splice(l.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:a,remove:r,internalChildren:l},i)),{internalChildren:l})}const{componentName:Ss}=X("grid"),Cs=Symbol("grid"),gg={props:{columnNum:{type:[Number,String],default:4},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},setup(e,{slots:n}){hg(Cs,`${Ss}-item`)({props:e});const l=t.computed(()=>{const a=Ss;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=ge(e.gutter)),a});return()=>t.h("view",{class:l.value,style:o.value},n.default?.())}},{create:yg}=X("grid"),wl=yg(gg);function kg(e){const n=t.inject(e,null);if(n){const l=t.getCurrentInstance(),{add:o,remove:a,internalChildren:r}=n;o(l),t.onUnmounted(()=>a(l));const s=t.computed(()=>r.indexOf(l));return{parent:n,index:s}}return{parent:null,index:t.ref(-1)}}const{create:bg,componentName:ws}=X("grid-item"),Sg=bg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const l=kg(Cs);if(!l.parent)return{};const o=l.index,a=l.parent.props,r=t.computed(()=>({[ws]:!0})),s=t.computed(()=>{const u={flexBasis:`${100/+a.columnNum}%`};return a.square?u.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(u.paddingRight=ge(a.gutter),o.value>=a.columnNum&&(u.marginTop=ge(a.gutter))),u}),i=t.computed(()=>{const u=`${ws}__content`;return{[`${u}`]:!0,[`${u}--border`]:a.border,[`${u}--surround`]:a.border&&a.gutter,[`${u}--center`]:a.center,[`${u}--square`]:a.square,[`${u}--reverse`]:a.reverse,[`${u}--${a.direction}`]:!!a.direction,[`${u}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:u=>{n("click",u)}}}}),Cg={class:"fox-grid-item__text"};function wg(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",Cg,[e.text?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.text),1)],64)):t.renderSlot(e.$slots,"text",{key:1})])],2)],6)}const Nl=_(Sg,[["render",wg]]),{componentName:Ng,create:Bg}=X("navbar"),Ag=Bg({components:{Left:ne.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:l,fixed:o,safeAreaInsetTop:a,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let u=t.ref();const m=t.computed(()=>{const k=Ng;return{[k]:!0,[`${k}--border`]:l.value,[`${k}--fixed`]:o.value,[`${k}--safe-area-inset-top`]:a.value}}),f=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{u.value=c?.value?.getBoundingClientRect().height,i.value.style.height=u.value+"px"})});function h(){n("on-click-back")}function y(){n("on-click-title")}function g(){n("on-click-icon")}function b(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:f,handleLeft:h,handleCenter:y,handleCenterIcon:g,handleRight:b}}}),$g={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Tg={key:1,class:"fox-navbar__text"},Vg={class:"fox-navbar__title"},Eg={key:0,class:"fox-navbar__text"},Dg={key:1,class:"fox-navbar__text"},Ig={class:"fox-navbar__title"},xg={key:0,class:"fox-navbar__text"};function qg(e,n,l,o,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",$g,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Tg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Vg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",Eg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[5]||(n[5]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Dg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Ig,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",xg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Bl=_(Ag,[["render",qg]]),Mg=(e,n,l)=>({components:l,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(o,{emit:a}){const{toLocaleRefs:r}=re.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(f=!o.visible)=>{a("update:visible",f)},selected:(f,h)=>{a("selected",{item:f,event:h}),c.value=f.id},current:c}}}),{componentName:zg,create:Pg,scope:Lg}=X("fixednav"),Fg=Pg(Mg(zg,Lg,{[at.name]:at,Left:ne.Left})),Rg={class:"fox-fixednav__list"},vg=["onClick"],Og=["src"],Kg={class:"span"},Ug={key:0,class:"b"},Hg={class:"text"};function jg(e,n,l,o,a,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Left");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",Rg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:m=>e.selected(c,m),key:c.id||u},[t.createElementVNode("img",{src:c.icon},null,8,Og),t.createElementVNode("view",Kg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Ug,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,vg))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",Hg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Al=_(Fg,[["render",jg]]),{componentName:Wg,create:Yg}=X("menu"),Xg=Yg({components:{ArrowUp2:ne.ArrowUp2,ArrowDown2:ne.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:l}){const o=t.ref(),a=t.ref(0),r=t.ref(!1),s=()=>{const k=t.reactive([]),d=t.reactive([]);return{children:k,linkChildren:S=>{const C=N=>{N.proxy&&(d.push(N),k.push(N.proxy))},A=N=>{if(N.proxy){let T=d.indexOf(N);T>-1&&d.splice(T,1);let $=k.indexOf(N.proxy);T>-1&&k.splice($,1)}};t.provide("menuParent",Object.assign({removeLink:A,link:C,children:k,internalChildren:d},S))}}},{children:i,linkChildren:c}=s(),u=t.computed(()=>i.some(k=>k.state.showWrapper)),m=t.computed(()=>({[Wg]:!0,"scroll-fixed":r.value})),f=()=>{if(o.value){const k=Ee(o);e.direction==="down"?a.value=k.bottom:a.value=window.innerHeight-k.top}};c({props:e,offset:a});const h=k=>{i.forEach((d,p)=>{p===k?(f(),d.toggle()):d.state.showPopup&&d.toggle(!1,{immediate:!0})})},y=k=>Math.max(0,"scrollTop"in k?k.scrollTop:k.pageYOffset),g=()=>{const{scrollFixed:k}=e,d=y(window);r.value=d>(typeof k=="boolean"?30:Number(k))},b=k=>{let d="";const{titleClass:p}=e;return k&&(d+="active"),p&&(d+=` ${p}`),d};return t.onMounted(()=>{const{scrollFixed:k}=e;k&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:k}=e;k&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:i,opened:u,classes:m,barRef:o,getClasses:b}}}),Qg=["onClick"],Gg={class:"fox-menu__title-text"},Zg={class:"fox-menu__title-icon"};function Jg(e,n,l,o,a,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:m=>!c.disabled&&e.toggleItem(u),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",Gg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Zg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Qg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const $l=_(Xg,[["render",Jg]]),{componentName:_g,create:ey}=X("menu-item"),ty=ey({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[de.name]:de,Check:ne.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:l}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const y=t.inject("menuParent",null);if(y){const g=t.getCurrentInstance(),{link:b,removeLink:k}=y;return b(g),t.onUnmounted(()=>{k(g)}),{parent:y}}},{parent:r}=a(),s=t.computed(()=>({[_g]:!0})),i=t.computed(()=>{const y={height:r.offset.value+"px"};return r.props.direction==="down"?y:{...y,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const y=e.options?.find(g=>g.value===e.modelValue);return y?y.text:""},state:o,parent:r,toggle:(y=!o.showPopup,g={})=>{y!==o.showPopup&&(o.showPopup=y,o.isShowPlaceholderElement=y,y&&(o.showWrapper=!0,n("open")))},onClick:y=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,y.value!==e.modelValue&&(n("update:modelValue",y.value),n("change",y.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),ny={class:"fox-menu-item__content fox-menu-item__overflow"},oy=["onClick"];function ly(e,n,l,o,a,r){const s=t.resolveComponent("Check"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:n[0]||(n[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",ny,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:m=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps(e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,oy))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}const Tl=_(ty,[["render",ly]]),{create:ay}=X("tabbar"),ry=ay({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function l(a){o.value!==a&&(o.value=a,n.emit("update:modelValue",a),n.emit("change",a,o.children[a]))}const o=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:l});return t.provide("parent",o),t.watch(()=>e.modelValue,a=>{o.value=a}),{changeIndex:l}}});function sy(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}const Vl=_(ry,[["render",sy]]),{create:iy}=X("tabbar-item"),cy=iy({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,n){const l=t.inject("parent"),o=t.reactive({size:l.size,inactiveColor:l.inactiveColor,activeColor:l.activeColor,value:l.value,index:0}),a=t.getCurrentInstance();a!==null&&(u=>{if(u.proxy){let m=l.children.length;o.index=m;let f=Object.assign(u.proxy,{index:m});l.children.push(f)}})(a);const r=t.computed(()=>o.index===o.value);function s(c){l&&typeof l.changeIndex=="function"&&l.changeIndex(c)}const i=t.computed(()=>l?l.value:null);return t.watch(i,c=>{o.value=c}),{state:o,active:r,change:s}}}),dy={class:"fox-tabbar-item_icon-box"},uy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},fy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},my={key:1,class:"fox-tabbar-item_icon-box_dot"},py={key:2},hy={key:0};function gy(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",dy,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",uy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",fy,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",my)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",py,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):t.createCommentVNode("",!0),!e.icon&&e.activeImg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:t.normalizeStyle({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?(t.openBlock(),t.createElementBlock("view",hy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const El=_(cy,[["render",gy]]),{componentName:yy,create:ky}=X("elevator"),by=ky({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const l=t.ref(null),o=t.reactive({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),a=t.computed(()=>({[yy]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>l.value.clientHeight),i=(d,p)=>{const S="data-";return d.getAttribute(S+p)},c=d=>{t.nextTick(()=>{!o.listGroup.includes(d)&&d!=null&&o.listGroup.push(d)})},u=()=>{let d=0;o.listHeight.push(d);for(let p=0;p<o.listGroup.length;p++){let S=o.listGroup[p];d+=Math.floor(S.clientHeight),o.listHeight.push(d)}},m=d=>{!d&&d!==0||(d<0&&(d=0),d>o.listHeight.length-2&&(d=o.listHeight.length-2),o.codeIndex=d,l.value.scrollTo(0,o.listHeight[d]))},f=d=>{o.scrollStart=!0;let p=i(d.target,"index"),S=d.touches[0];o.touchState.y1=S.pageY,o.anchorIndex=+p,o.codeIndex=+p,m(+p)},h=d=>{let p=d.touches[0];o.touchState.y2=p.pageY;let S=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+S,m(o.codeIndex)},y=()=>{o.scrollStart=!1},g=(d,p)=>{n.emit("click-item",d,p),o.currentData=p,o.currentKey=d},b=d=>{n.emit("click-index",d)},k=d=>{let S=d.target.scrollTop;const C=o.listHeight;o.scrollY=S;for(let A=0;A<C.length-1;A++){let N=C[A],T=C[A+1];if(o.scrollY>=N&&o.scrollY<T){o.currentIndex=A,o.diff=T-o.scrollY;return}}o.currentIndex=C.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",k)}),Ve({scrollTo:m}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(u)}),t.watch(()=>o.diff,d=>{const p=o.listHeight;let S=d>0&&d<e.titleHeight?d-e.titleHeight:0;o.scrollY+s.value===p[p.length-1]&&S!==0&&(S=0),o.fixedTop!==S&&(o.fixedTop=S)}),t.watch(()=>o.currentIndex,d=>{n.emit("change",d)}),{classes:a,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:l,touchStart:f,touchMove:h,touchEnd:y,handleClickItem:g,handleClickIndex:b}}}),Sy={class:"fox-elevator__list__item__code"},Cy=["onClick"],wy=["innerHTML"],Ny={class:"fox-elevator__fixed-title"},By={class:"fox-elevator__bars__inner"},Ay=["data-index","onClick"];function $y(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",Sy,t.toDisplayString(s[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===s[e.acceptKey]}]),key:i.id,onClick:c=>e.handleClickItem(s[e.acceptKey],i)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:i}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:i.name},null,8,wy))],10,Cy))),128))]))),128)),e.isSticky?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__list__fixed",style:t.normalizeStyle(e.fixedStyle)},[t.createElementVNode("span",Ny,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:n[1]||(n[1]=t.withModifiers((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",By,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:s[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:s[e.acceptKey],onClick:c=>e.handleClickIndex(s[e.acceptKey])},t.toDisplayString(s[e.acceptKey]),11,Ay))),128))])],32)],2)}const Lt=_(by,[["render",$y]]),{componentName:eA,create:Ty,scope:Vy}=X("pagination"),Ey=Ty({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:l}=re.useFoxI18n(Vy),o=l(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:y,itemsPerPage:g}=t.toRefs(e),b=+h.value||Math.ceil(+y.value/+g.value);return Math.max(1,b)}),u=(h,y)=>{h>c.value||h<1||(h!=a.value&&n("update:modelValue",h),y&&n("change",h))},m=(h,y,g=!1)=>({number:h,text:y,active:g}),f=t.computed(()=>{if(r.value=="simple")return;let h=[];const y=c.value,g=+s.value;let b=1,k=y;const d=y>g;d&&(b=Math.max(a.value-Math.floor(g/2),1),k=b+g-1,k>y&&(k=y,b=k-g+1));for(var p=b;p<=k;p++){const S=m(p,p,a.value==p);h.push(S)}if(d&&g>0&&i.value){if(b>1){const S=m(b-1,"...");h.unshift(S)}if(k<y){const S=m(k+1,"...");h.push(S)}}return h});return t.watchEffect(()=>{u(a.value,!1)}),{...o,modelValue:a,select:u,countRef:c,mode:r,pages:f,forceEllipses:i}}}),Dy={class:"fox-pagination"},Iy={key:0,class:"fox-pagination-contain"},xy=["onClick"],qy={key:1,class:"fox-pagination-contain"},My={class:"fox-pagination-simple"};function zy(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",Dy,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=s=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",Iy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(s,i)=>(t.openBlock(),t.createElementBlock("view",{key:i+"pagination",class:t.normalizeClass(["fox-pagination-item",s.active?"active":""]),onClick:c=>e.select(s.number,!0)},[t.renderSlot(e.$slots,"page",{item:s},()=>[t.createTextVNode(t.toDisplayString(s.text),1)])],10,xy))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",qy,[t.createElementVNode("view",My,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const Dl=_(Ey,[["render",zy]]),{componentName:Ns,create:Py}=X("indicator"),Ly=Py({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:l}=t.toRefs(e);return{classes:t.computed(()=>{const a=Ns;return{[a]:!0,[`${a}--block`]:n.value,[`${a}--align__${l.value}`]:n.value&&l.value}}),componentName:Ns,padZero:nt}}});function Fy(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,s=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[s===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(s)||s),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const Il=_(Ly,[["render",Fy]]),{componentName:Ry,create:vy}=X("side-navbar"),Oy=vy({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=t.ref(null),l=t.reactive({count:1,observer:null}),o=t.computed(()=>({[Ry]:!0})),a=(s,i=1)=>{for(let c=0;c<s.length;c++){let u=s[c];u?.children?.[0]&&(u.children[0].style.paddingLeft=+e.offset*i+"px",u.className.includes("fox-side-navbar-item")||a(Array.from(u.children[1].children),++l.count))}l.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),a(s))};return t.onMounted(()=>{r(),l.observer=new MutationObserver(function(){l.count=1,r()}),l.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(l),list:n,classes:o}}}),Ky={class:"fox-side-navbar__content"},Uy={class:"fox-side-navbar__content__list",ref:"list"};function Hy(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Ky,[t.createElementVNode("view",Uy,[t.renderSlot(e.$slots,"default")],512)])],2)}const xl=_(Oy,[["render",Hy]]),{componentName:jy,create:Wy}=X("side-navbar-item"),Yy=Wy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[jy]:!0})),handleClick:()=>{n.emit("click")}})}),Xy=["ikey"],Qy={class:"fox-side-navbar-item__title"};function Gy(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",Qy,t.toDisplayString(e.title),1)],10,Xy)}const ql=_(Yy,[["render",Gy]]),{componentName:Zy,create:Jy}=X("sub-side-navbar"),_y=Jy({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:ne.ArrowDown2,ArrowUp2:ne.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const l=t.reactive({direction:""}),o=t.computed(()=>({[Zy]:!0})),a=t.computed(()=>({height:l.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),l.direction=l.direction?"":"up"};return t.onMounted(()=>{l.direction=e.open?"":"up"}),{...t.toRefs(l),classes:o,style:a,handleClick:r}}}),e0=["ikey"],t0={class:"fox-sub-side-navbar__title__text"},n0={class:"fox-sub-side-navbar__title__icon"};function o0(e,n,l,o,a,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",t0,t.toDisplayString(e.title),1),t.createElementVNode("span",n0,[e.direction?(t.openBlock(),t.createBlock(i,{key:1})):(t.openBlock(),t.createBlock(s,{key:0}))])]),t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,e0)}const Ml=_(_y,[["render",o0]]),{componentName:l0,create:a0}=X("range"),r0=a0({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const l=t.ref(0);let o,a;const r=t.ref(),s=t.ref(),i=He(),c=t.computed(()=>{const{marks:I,max:q,min:H}=e;return Object.keys(I).map(parseFloat).sort((j,Z)=>j-Z).filter(j=>j>=H&&j<=q)}),u=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const I=l0;return{[I]:!0,[`${I}-disabled`]:e.disabled,[`${I}-vertical`]:e.vertical,[`${I}-show-number`]:!e.hiddenRange}}),f=t.computed(()=>{const I="fox-range-container";return{[I]:!0,[`${I}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),y=t.computed(()=>({borderColor:e.buttonColor})),g=I=>!!e.range&&Array.isArray(I),b=()=>{const{modelValue:I,min:q}=e;return g(I)?`${(I[1]-I[0])*100/u.value}%`:`${(I-Number(q))*100/u.value}%`},k=()=>{const{modelValue:I,min:q}=e;return g(I)?`${(I[0]-Number(q))*100/u.value}%`:"0%"},d=t.computed(()=>e.vertical?{height:b(),top:k(),background:e.activeColor,transition:s.value?"none":void 0}:{width:b(),left:k(),background:e.activeColor,transition:s.value?"none":void 0}),p=I=>{const q="fox-range-mark",{modelValue:H,max:x,min:Y}=e;let j=Number(Y),Z=Number(x);if(e.range){const[R,E]=H;j=R,Z=E}else Z=H;let U=I<=Z&&I>=j;return{[`${q}-text`]:!0,[`${q}-text-active`]:U}},S=I=>{const{min:q,vertical:H}=e;let x={left:`${(I-Number(q))/u.value*100}%`};return H&&(x={top:`${(I-Number(q))/u.value*100}%`}),x},C=I=>{const{modelValue:q,max:H,min:x}=e;let Y=Number(x),j=Number(H);if(e.range){const[R,E]=q;Y=R,j=E}return{background:I<=j&&I>=Y?e.activeColor:e.inactiveColor}},A=I=>{const{min:q,max:H,step:x}=e;return I=Math.max(+q,Math.min(I,+H)),Math.round(I/+x)*+x},N=(I,q)=>JSON.stringify(I)===JSON.stringify(q),T=I=>I[0]>I[1]?I.slice(0).reverse():I,$=(I,q)=>{g(I)?I=T(I).map(A):I=A(I),N(I,e.modelValue)||n("update:modelValue",I),q&&!N(I,o)&&n("change",I)},P=I=>{if(e.disabled)return;const{min:q,modelValue:H}=e,x=Ee(r);let Y=I.clientX-x.left,j=x.width;e.vertical&&(Y=I.clientY-x.top,j=x.height);const Z=Number(q)+Y/j*u.value;if(g(H)){const[U,R]=H,E=(U+R)/2;Z<=E?$([Z,R],!0):$([U,Z],!0)}else $(Z,!0)},V=I=>{e.disabled||(i.start(I),a=e.modelValue,g(a)?o=a.map(A):o=A(a),s.value="start")},B=I=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(I),s.value="draging";const q=Ee(r);let H=i.deltaX.value,x=q.width,Y=H/x*u.value;e.vertical&&(H=i.deltaY.value,x=q.height,Y=H/x*u.value),g(o)?a[l.value]=o[l.value]+Y:a=o+Y,$(a),I.stopPropagation(),I.preventDefault()},L=()=>{e.disabled||(s.value==="draging"&&($(a,!0),n("drag-end")),s.value="")},F=I=>_t(e.modelValue)&&typeof I=="number"?e.modelValue[I]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:y,onClick:P,onTouchStart:V,onTouchMove:B,onTouchEnd:L,...t.toRefs(e),barStyle:d,curValue:F,buttonIndex:l,containerClasses:f,markClassName:p,marksStyle:S,marksList:c,tickStyle:C}}}),s0={key:0,class:"fox-range-min"},i0={key:0,class:"fox-range-mark"},c0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],d0={key:0,class:"number"},u0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],f0={key:0,class:"number"},m0={key:1,class:"fox-range-max"};function p0(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",s0,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:n[9]||(n[9]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",i0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,s=>(t.openBlock(),t.createElementBlock("span",{key:s,class:t.normalizeClass(e.markClassName(s)),style:t.normalizeStyle(e.marksStyle(s))},[t.createTextVNode(t.toDisplayString(s)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(s))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],s=>t.createElementVNode("view",{key:s,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":s==0,"fox-range-button-wrapper-right":s==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(s),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(i=>{typeof s=="number"&&(e.buttonIndex=s),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[1]||(n[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[3]||(n[3]=i=>i.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",d0,t.toDisplayString(e.curValue(s)),1))],4))],42,c0)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=t.withModifiers(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:n[6]||(n[6]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:n[8]||(n[8]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",f0,t.toDisplayString(e.curValue()),1))],4))],40,u0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",m0,t.toDisplayString(+e.max),1))],2)}const Ft=_(r0,[["render",p0]]),{create:h0,scope:g0}=X("short-password"),y0=h0({components:{[de.name]:de,Tips:ne.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:l}=re.useFoxI18n(g0),o=l(e,["title","desc","tips"]),a=t.ref(e.modelValue),r=t.computed(()=>u(Number(e.length))),s=t.ref(e.visible),i=f=>{f.stopPropagation(),n("focus")};t.watch(()=>e.visible,f=>{s.value=f}),t.watch(()=>e.modelValue,f=>{a.value=f,String(f).length===r.value&&n("complete",f)});const c=()=>{n("update:visible",!1),n("close")},u=f=>Math.min(Math.max(4,f),6);return{comLen:r,realInput:a,onTouchStart:i,range:u,close:c,onTips:()=>{n("tips")},show:s,...o}}}),k0={class:"fox-short-password-title"},b0={class:"fox-short-password-subtitle"},S0={class:"fox-short-password-wrapper"},C0={key:0,class:"fox-short-password__item-icon"},w0={class:"fox-short-password__message"},N0={class:"fox-short-password--error"},B0={key:0,class:"fox-short-password--forget"};function A0(e,n,l,o,a,r){const s=t.resolveComponent("Tips"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",k0,t.toDisplayString(e.title),1),t.createElementVNode("view",b0,t.toDisplayString(e.desc),1),t.createElementVNode("div",S0,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:u},[String(e.realInput).length>u?(t.openBlock(),t.createElementBlock("view",C0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",w0,[t.createElementVNode("view",N0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",B0,[t.createVNode(s,{class:"icon",width:"11px",height:"11px"}),t.createElementVNode("view",{onClick:n[1]||(n[1]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}const zl=_(y0,[["render",A0]]);class $0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let T0=class{options;constructor(n){this.options=n}upload(){const n=this.options,l=new XMLHttpRequest;if(l.timeout=n.timeout,l.upload){l.upload.addEventListener("progress",o=>{n.onProgress?.(o,n)},!1),l.onreadystatechange=()=>{l.readyState===4&&(l.status==n.xhrState?n.onSuccess?.(l.responseText,n):n.onFailure?.(l.responseText,n))},l.withCredentials=n.withCredentials,l.open(n.method,n.url,!0);for(const[o,a]of Object.entries(n.headers))l.setRequestHeader(o,a);n.onStart?.(n),n.beforeXhrUpload?n.beforeXhrUpload(l,n):l.send(n.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class V0{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Bs=(e,{args:n=[],done:l,canceled:o})=>{if(e){const a=e.apply(null,n);ct(a)?a.then(r=>{r?l(r):o&&o()}).catch(()=>{}):a?l():o&&o()}else l()},{create:E0}=X("progress"),D0=E0({components:{Checked:ne.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,l=t.ref(e.strokeWidth+"px"),o=t.ref(),a=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:l,percentage:r,bgStyle:s,textStyle:i,progressOuter:o,insideText:a,slotDefault:n}}}),I0={class:"fox-progress"},x0={key:0,class:"fox-progress-text"};function q0(e,n,l,o,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",I0,[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:t.normalizeStyle(e.bgStyle)},null,6),e.showText&&e.textInside&&!e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:t.normalizeStyle({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[t.createElementVNode("span",{style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)],4)):t.createCommentVNode("",!0),e.showText&&e.textInside&&e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:1,ref:"insideText",style:t.normalizeStyle({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("",!0)],6),e.showText&&!e.textInside?(t.openBlock(),t.createElementBlock("div",x0,[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?t.renderSlot(e.$slots,"icon-name",{key:1},()=>[t.createVNode(s,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Rt=_(D0,[["render",q0]]),{componentName:M0,create:z0,scope:P0}=X("uploader"),L0=z0({components:{[Rt.name]:Rt,Photograph:ne.Photograph,Failure:ne.Failure,Loading:ne.Loading,Del:ne.Del,Link:ne.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(P0),o=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[M0]:!0})),s=()=>{let p={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(p.capture="camera"),t.h("input",p)},i=p=>{p.value=""},c=p=>{n("file-item-click",{fileItem:p})},u=(p,S)=>{const C=new $0;C.url=e.url,C.formData=p.formData,C.timeout=e.timeout*1,C.method=e.method,C.xhrState=e.xhrState,C.headers=e.headers,C.withCredentials=e.withCredentials,C.beforeXhrUpload=e.beforeXhrUpload;try{C.sourceFile=p.formData.get(e.name)}catch{}C.onStart=N=>{p.status="ready",p.message=l("readyUpload"),m(S),n("start",N)},C.onProgress=(N,T)=>{p.status="uploading",p.message=l("uploading"),p.percentage=(N.loaded/N.total*100).toFixed(0),n("progress",{event:N,option:T,percentage:p.percentage})},C.onSuccess=(N,T)=>{p.status="success",p.message=l("success"),n("success",{responseText:N,option:T,fileItem:p}),n("update:fileList",o)},C.onFailure=(N,T)=>{p.status="error",p.message=l("error"),n("failure",{responseText:N,option:T,fileItem:p})};let A=new T0(C);e.autoUpload?A.upload():a.push(new Promise((N,T)=>{N(A)}))},m=(p=-1)=>{p>-1?a.splice(p,1):(a=[],o.splice(0,o.length))},f=()=>{Promise.all(a).then(p=>{p.forEach(S=>S.upload())})},h=p=>{p.forEach((S,C)=>{const A=new FormData;for(const[T,$]of Object.entries(e.data))A.append(T,$);A.append(e.name,S);const N=t.reactive(new V0);if(N.name=S.name,N.status="ready",N.type=S.type,N.formData=A,N.message=l("waitingUpload"),u(N,C),e.isPreview&&S.type.includes("image")){const T=new FileReader;T.onload=$=>{N.url=$.target.result,o.push(N)},T.readAsDataURL(S)}else o.push(N)})},y=p=>{const S=e.maximum*1,C=e.maximize*1,A=new Array;p=p.filter(T=>T.size>C?(A.push(T),!1):!0),A.length&&n("oversize",A);let N=p.length+o.length;return N>S&&p.splice(p.length-(N-S)),p},g=(p,S)=>{o.splice(S,1),n("delete",{file:p,fileList:o,index:S})},b=(p,S)=>{m(S),Bs(e.beforeDelete,{args:[p,o],done:()=>g(p,S)})},k=p=>{if(e.disabled)return;const S=p.target;let{files:C}=S;e.beforeUpload?e.beforeUpload(C).then(A=>d(A)):d(C),n("change",{fileList:o,event:p}),e.clearInput&&i(S)},d=p=>{const S=y(new Array().slice.call(p));h(S)};return{onChange:k,onDelete:b,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:m,submit:f,renderInput:s}}}),F0={key:0,class:"fox-uploader__slot"},R0={key:0,class:"fox-uploader__preview-img"},v0={key:0,class:"fox-uploader__preview__progress"},O0={class:"fox-uploader__preview__progress__msg"},K0=["onClick"],U0=["onClick","src"],H0={key:3,class:"fox-uploader__preview-img__file"},j0=["onClick"],W0={class:"file__name_tips"},Y0={class:"tips"},X0={key:1,class:"fox-uploader__preview-list"},Q0=["onClick"],G0={class:"file__name_tips"};function Z0(e,n,l,o,a,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),u=t.resolveComponent("Del"),m=t.resolveComponent("fox-progress"),f=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",F0,[t.renderSlot(e.$slots,"default"),Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(h,y)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",R0,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",v0,[h.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.status=="error"?(t.openBlock(),t.createBlock(s,{key:0,color:"#fff"})):(t.openBlock(),t.createBlock(i,{key:1,name:"loading",color:"#fff"}))],64)):t.createCommentVNode("",!0),t.createElementVNode("view",O0,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:g=>e.onDelete(h,y)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,K0)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:g=>e.fileItemClick(h),src:h.url},null,8,U0)):(t.openBlock(),t.createElementBlock("view",H0,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",W0,t.toDisplayString(h.name),1)],8,j0)])),t.createElementVNode("view",Y0,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",X0,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[h.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",G0,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(u,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:g=>e.onDelete(h,y)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,Q0),h.status=="uploading"?(t.openBlock(),t.createBlock(m,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(f,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Pl=_(L0,[["render",Z0]]),J0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxM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50x5oX/Gs75qiiKpb9XSg2NMc+r5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:ek,scope:tk}=X("number-keyboard"),nk=ek({components:{[de.name]:de},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:l}=re.useFoxI18n(tk),o=l(e,["confirmText"]),a=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:d}=e;let p={id:"lock",type:"lock"},S=Array.isArray(d)?d:[d];return S.length===1&&(p={id:S[0],type:"custom"}),[...c(),p,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const d=[];for(let p=1;p<=9;p++)d.push({id:p,type:"number"});return e.randomKeys?d.sort(()=>Math.random()>.5?1:-1):d}function u(){const d=c(),{customKey:p}=e;let S=Array.isArray(p)?p:[p];return S.length>2&&(S=[S[0],S[1]]),S.length==2&&e.title&&e.type!="rightColumn"&&(S=[S[0]]),S.length===1?e.title&&e.type!="rightColumn"?d.push({id:S[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):d.push({id:0,type:"number"},{id:S[0],type:"custom"}):S.length===2&&d.push({id:S[0],type:"custom"},{id:0,type:"number"},{id:S[1],type:"custom"}),d}const m=t.computed(()=>e.type=="rightColumn"||e.title!=""?u():i()),f=()=>{e.visible&&n("blur")},h=d=>{const p=s.value;p&&!p.contains(d.target)&&f()};t.watch(()=>e.visible,d=>{r.value=d,d?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function y(d,p){p.stopPropagation(),a.value=d.id,(d.type=="number"||d.type=="custom")&&(n("input",d.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+d.id)),d.type=="lock"&&k(),d.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(d){d.stopPropagation()}function b(d){d.preventDefault(),a.value=void 0}function k(){n("update:visible",!1),n("close")}return{...o,delImg:J0,lockImg:_0,clickKeyIndex:a,defaultKey:i,closeBoard:k,onTouchEnd:b,onTouchMove:g,onTouchstart:y,keysList:m,genCustomKeys:u,getBasicKeys:c,root:s,show:r}}}),ok={ref:"root"},lk={class:"fox-number-keyboard"},ak={key:0,class:"fox-number-keyboard__header"},rk={class:"fox-number-keyboard__title"},sk={class:"fox-number-keyboard__body"},ik={class:"fox-number-keyboard__keys"},ck=["onTouchstart"],dk=["src"],uk=["src"],fk={key:0,class:"fox-number-keyboard__sidebar"},mk={class:"fox-key__wrapper"},pk=["src"];function hk(e,n,l,o,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",ok,[t.createVNode(s,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",lk,[e.title?(t.openBlock(),t.createElementBlock("div",ak,[t.createElementVNode("h3",rk,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",sk,[t.createElementVNode("div",ik,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{key:"key"+i.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":i.id==e.clickKeyIndex},{"fox-key--lock":i.type=="lock"},{"fox-key--delete":i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:n[1]||(n[1]=c=>e.onTouchMove(c)),onTouchend:n[2]||(n[2]=c=>e.onTouchEnd(c))},[i.type=="number"||i.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.id),1)],64)):t.createCommentVNode("",!0),i.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,dk)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,uk)):t.createCommentVNode("",!0)],42,ck)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",fk,[t.createElementVNode("div",mk,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:n[4]||(n[4]=i=>e.onTouchMove(i)),onTouchend:n[5]||(n[5]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,pk)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=i=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])])):t.createCommentVNode("",!0)])])]),_:1},8,["visible","popClass"])],512)}const Ll=_(nk,[["render",hk]]),{componentName:gk,create:yk}=X("swipe"),kk=yk({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const l=t.computed(()=>({[gk]:!0})),o=p=>p.value?.clientWidth||0,a=t.ref(),r=t.computed(()=>o(a)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,u="",m="";const f=t.reactive({offset:0,moving:!1}),h=(p="")=>{c=!0,p&&(f.offset=p==="left"?-i.value:r.value),n("open",{name:e.name,position:u||p})},y=()=>{f.offset=0,c=!1,n("close",{name:e.name,position:u})},g=t.computed(()=>({transform:`translate3d(${f.offset}px, 0, 0)`})),b=p=>{u=p>0?"right":"left";let S=p;switch(u){case"left":c&&m===u?S=-i.value:S=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&m===u?S=r.value:S=Math.abs(p)>r.value?r.value:p;break}f.offset=S},k=He();return{classes:l,touchStyle:g,...{onTouchStart(p){e.disabled||k.start(p)},onTouchMove(p){e.disabled||(k.move(p),k.isHorizontal()&&(f.moving=!0,b(k.deltaX.value),e.touchMovePreventDefault&&p.preventDefault(),e.touchMoveStopPropagation&&p.stopPropagation()))},onTouchEnd(){if(f.moving)switch(f.moving=!1,m=u,u){case"left":Math.abs(f.offset)<=i.value/2?y():(f.offset=-i.value,h());break;case"right":Math.abs(f.offset)<=r.value/2?y():(f.offset=r.value,h());break}}},leftRef:a,rightRef:s,open:h,close:y}}}),bk={class:"fox-swipe__left",ref:"leftRef"},Sk={class:"fox-swipe__content"},Ck={class:"fox-swipe__right",ref:"rightRef"};function wk(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",bk,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",Sk,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Ck,[t.renderSlot(e.$slots,"right")],512)],38)}const vt=_(kk,[["render",wk]]),{componentName:Nk,create:Bk}=X("action-sheet"),Ak=Bk({components:{[de.name]:de,Loading:ne.Loading},props:{...Pe,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const l=!!t.useSlots().default,o=t.computed(()=>({[Nk]:!0}));return{slotDefault:l,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,u)=>{!c.disable&&!c.loading&&(n("choose",c,u),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),$k={key:0,class:"fox-action-sheet__title"},Tk={key:1},Vk={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Ek={key:1,class:"fox-action-sheet__menu"},Dk=["onClick"],Ik={key:1},xk={class:"fox-action-sheet__subdesc"};function qk(e,n,l,o,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",$k,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Tk,[e.description?(t.openBlock(),t.createElementBlock("view",Vk,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Ek,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:u,onClick:m=>e.chooseItem(c,u)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",Ik,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",xk,t.toDisplayString(c[e.optionSubTag]),1)],14,Dk))),128))])):t.createCommentVNode("",!0),e.cancelTxt?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-action-sheet__cancel",onClick:n[0]||(n[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},t.toDisplayString(e.cancelTxt),1)):t.createCommentVNode("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}const Fl=_(Ak,[["render",qk]]),{componentName:Mk,create:zk}=X("backtop"),Rl=zk({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:l}){const o=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=t.computed(()=>({[Mk]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function i(g=0){o.scrollEl instanceof Window?window.scrollTo(0,g):o.scrollEl.scrollTop=g}function c(){let g=Ye(function b(){var k=e.duration-Math.max(0,o.startTime-+new Date+e.duration),d=k*-o.scrollTop/e.duration+o.scrollTop;i(d),g=Ye(b),(k==e.duration||d==0)&&Va(g)})}function u(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function m(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function f(g){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",g)}function h(){y.value?o.scrollEl=y.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),u()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),h()}),t.onUnmounted(()=>{m()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,m()});const y=t.computed(()=>{if(typeof l.content=="function"){const g=l.content();return Array.isArray(g)?g[0]:g}return null});return()=>{const g=[];y.value&&g.push(y.value);const b=[];if(typeof l.default=="function")b.push(l.default());else{const d=t.h(ne.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});b.push(d)}const k=t.h("div",{class:a.value,style:r.value,onClick:f},b);return g.push(k),g}}}),{componentName:Pk,create:Lk}=X("drag"),Fk=Lk({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const l=t.ref(),o=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),a=t.computed(()=>({[Pk]:!0}));function r(){const f=document.documentElement;o.elWidth=l.value.offsetWidth,o.elHeight=l.value.offsetHeight,o.screenWidth=f.clientWidth,o.screenHeight=f.clientHeight}function s(f){o.boundary.left?+f.style.left.split("px")[0]>o.boundary.left?(f.style.left=+f.style.left.split("px")[0]-10+"px",Re(()=>{s(f)})):f.style.left=`${o.boundary.left}px`:+f.style.left.split("px")[0]>10?(f.style.left=+f.style.left.split("px")[0]-10+"px",Re(()=>{s(f)})):f.style.left="0px"}function i(f,h){h-parseInt(f.style.left.split("px")[0])>10?(f.style.left=parseInt(f.style.left.split("px")[0])+10+"px",Re(()=>{i(f,h)})):f.style.left=h+"px"}function c(f){f.preventDefault();const h=f.currentTarget;if(f.targetTouches.length===1){const y=f.targetTouches[0];o.nx=y.clientX-o.position.x,o.ny=y.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const g=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>g?o.xPum=g:o.xPum<=o.boundary.left&&(o.xPum=o.boundary.left),o.yPum<o.boundary.top?o.yPum=o.boundary.top:o.yPum>o.screenHeight-o.elHeight-o.boundary.bottom&&(o.yPum=o.screenHeight-o.elHeight-o.boundary.bottom),e.direction!="y"&&(h.style.left=o.xPum+"px"),e.direction!="x"&&(h.style.top=o.yPum+"px")}}function u(f){const h=f.currentTarget;let g=f.changedTouches[0].clientX;const b=o.screenWidth-o.elWidth-o.boundary.right;g>b?g=b:g<o.boundary.left?g=o.boundary.left:g=g<o.screenWidth/2?o.boundary.left:b,e.direction!="y"&&e.attract&&(g<o.screenWidth/2?Re(()=>{s(h)}):Re(()=>{i(h,b)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function m(f){const h=f.currentTarget,y=f.touches[0],g=f.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=y.clientX,o.position.y=y.clientY,o.nx=g.clientX-o.position.x,o.ny=g.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}return t.onMounted(()=>{r(),o.boundary=e.boundary}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1)}),t.onDeactivated(()=>{o.keepAlive=!0;const f=l;f.value.removeEventListener("touchstart",m),f.value.removeEventListener("touchmove",c),f.value.removeEventListener("touchend",u)}),{classes:a,myDrag:l,touchStart:m,touchMove:c,touchEnd:u}}});function Rk(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=s=>e.touchStart(s)),onTouchmove:n[1]||(n[1]=s=>e.touchMove(s)),onTouchend:n[2]||(n[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const vl=_(Fk,[["render",Rk]]),vk={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},Ok=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Kk(e,n,l,o,a){return{props:{...Pe,...vk},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:u}=re.useFoxI18n(n),m=u(r,["confirmText","cancelText"]),f=e,h=t.ref(r.visible);t.watch(()=>r.visible,N=>{h.value!==N&&(h.value=N,N&&c("opened"))});const y=N=>{h.value=N,c("update:visible",N),c("update",N)},g=N=>{if(c(N),!(N==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const T=r.beforeClose(N);ct(T)?T.then($=>{$&&(y(!1),c("closed",N))}):T===!0&&(y(!1),c("closed",N))}else y(!1),c("closed",N)},b=()=>{g("confirm")},k=()=>{g("cancel")},d=()=>{g("close")},p=(N,T)=>Ok(N)?(T.src=N,t.h("img",T)):typeof N=="string"?(Array.isArray(T.class)?T.class.push(N):T.class&&typeof T.class=="object"?T[`${N}`]=!0:typeof T.class=="string"?T.class=`${T.class}, ${N}`:T.class=N,t.h(r.tag,T)):t.h(N,T),S=()=>{const N=[];if(i.header){const $=i.header();N.push($)}else{if(r.title){const $=t.h("view",{class:`${f}__header-title`},[r.title]);N.push($)}if(r.showClose){const $={class:[`${f}__header-close-icon`],onClick:d},P=r.closeIcon??a,V=p(P,$);N.push(V)}}if(N.length===0)return null;const T={class:[`${f}__header`]};return t.h("view",T,N)},C=()=>{const N=[];if(i.default)N.push(i.default());else{const $={class:[`${f}__content`]};if(r.textAlign&&$.class.push(r.textAlign),typeof r.content=="string"){$.innerHTML=r.content;const P=t.h("view",$);N.push(P)}else if(typeof r.content=="function"){const P=t.h("view",$,[r.content()]);N.push(P)}else{const P=t.h("view",$,[r.content]);N.push(P)}}if(N.length===0)return null;const T={class:[`${f}__body`]};return t.h("view",T,N)},A=()=>{if(!r.showFooter)return null;const N=[];if(i.footer)N.push(i.footer());else if(r.plain){if(r.showCancelButton){const $={class:[`${f}__footer-button`,`${f}__footer-cancel`],style:{},onClick:k};r.cancelButtonClass&&$.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign($.style,r.cancleButtonStyle);const P=t.h("view",$,[r.cancelButtonText??m.cancelText.value]);N.push(P)}if(r.showConfirmButton){const $={class:[`${f}__footer-button`,`${f}__footer-confirm`],style:{},onClick:b};r.confirmButtonClass&&$.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign($.style,r.confirmButtonStyle);const P=t.h("view",$,[r.confirmButtonText??m.confirmText.value]);N.push(P)}}else{if(r.showCancelButton){const $={class:[`${f}__footer-button`,`${f}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:k};r.cancelButtonClass&&$.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign($.style,r.cancleButtonStyle);const P=t.h(o,$,{default:()=>[r.cancelButtonText??m.cancelText.value]});N.push(P)}if(r.showConfirmButton){const $={class:[`${f}__footer-button`,`${f}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:b};r.confirmButtonClass&&$.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign($.style,r.confirmButtonStyle);const P=t.h(o,$,{default:()=>[r.confirmButtonText??m.confirmText.value]});N.push(P)}}if(N.length===0)return null;const T={class:[`${f}__footer`,`${f}__footer--${r.footerDirection}`]};return t.h("view",T,N)};return()=>{const N=[],T=S();T&&N.push(T);const $=C();$&&N.push($);const P=A();P&&N.push(P);const V={class:{[`${f}`]:!0,[`${f}--plain`]:r.plain}},B=t.h("view",V,N),L=[`${f}__popup`];r.popClass&&L.push(r.popClass);const F={};r.width&&(F.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(F.height=typeof r.height=="number"?`${r.height}px`:r.height);const q={...he(r,Pe),popClass:L.join(" "),style:F,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:r.position,onClickOverlay:d,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(l,q,{default:()=>B})}}}}const{componentName:Uk,create:Hk,scope:jk}=X("dialog"),As=Hk(Kk(Uk,jk,de,Me,ne.Close));class Wk{title="";content="";cancelText="";confirmText="";textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=n=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1}class Yk{options=new Wk;constructor(n){let l=Object.assign(this.options,n),o=document.body,a=l.teleport;a!="body"&&(typeof a=="string"?o=document.querySelector(a):o=l.teleport);const r=document.createElement("view"),s=`dialog-${l.id}`;r.id=s;const i={setup(){return l.onUpdate=u=>{if(u===!1){const m=document.querySelector(`#${s}`);m&&m.parentNode?.removeChild(m)}},l?.onOpened&&l?.onOpened(),()=>t.h(As,l)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Ot=function(e){return new Yk(e)};Ot.install=e=>{e.use(As),e.config.globalProperties.$dialog=Ot};const{componentName:Xk,create:Qk,scope:Gk}=X("pull-refresh"),Zk=Qk({props:{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}},emits:["change","refresh","update:modelValue"],components:{Loading:ne.Loading},setup(e,{emit:n,slots:l}){const{toLocaleRefs:o}=re.useFoxI18n(Gk),a=o(e,["pullingText","loosingText","loadingText"]),r=He(),s=t.ref(),i=Or(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),u=t.computed(()=>({[Xk]:!0})),m=t.computed(()=>{switch(c.status){case"pulling":return l.pulling?"":a.pullingText.value;case"loosing":return l.loosing?"":a.loosingText.value;case"loading":return l.loading?"":a.loadingText.value}}),f=t.computed(()=>({transitionDuration:`${e.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=t.computed(()=>{const C={};return e.headHeight!=50&&(C.height=ge(e.headHeight)),C}),y=C=>{const A=+(e.pullDistance||e.headHeight);let N=C;return C>A&&(C<A*2?N=(C+A)/2:N=A+C/4),Math.round(N)},g=(C,A)=>{const N=+(e.pullDistance||e.headHeight);c.distance=C,A?c.status="loading":C===0?c.status="normal":C<N?c.status="pulling":c.status="loosing",n("change",{status:c.status,distance:C})},b=()=>c.status!=="loading"&&c.status!=="complete",k=()=>i.value==window?so()==0:i.value&&i.value.scrollTop==0,d=C=>{b()&&(k()?(r.start(C),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},p=C=>{if(b()){r.move(C);const{deltaY:A}=r;r.isVertical()&&A.value>0&&c.isPullRefresh&&(C.cancelable&&C.preventDefault(),g(y(A.value)))}},S=()=>{c.isPullRefresh&&b()&&r.deltaY.value&&(c.status==="loosing"?(g(+e.headHeight,!0),n("update:modelValue",!0),t.nextTick(()=>n("refresh"))):g(0)),setTimeout(()=>{r.reset()},0)};return t.watch(()=>e.modelValue,C=>{C?g(+e.headHeight,!0):g(0)}),{classes:u,scroller:s,...t.toRefs(c),touchStart:d,touchMove:p,touchEnd:S,getStyle:f,slots:l,getHeightStyle:h,getPullStatus:m}}}),Jk={class:"fox-pull-refresh-container-topbox-text"};function _k(e,n,l,o,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),ref:"scroller",onTouchstart:n[0]||(n[0]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.touchMove&&e.touchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("div",{class:"fox-pull-refresh-container",style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("div",{class:"fox-pull-refresh-container-topbox",style:t.normalizeStyle(e.getHeightStyle)},[e.status=="loading"&&!e.slots.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading fox-pull-refresh-container-topbox-icon"})):t.createCommentVNode("",!0),t.createElementVNode("div",Jk,t.toDisplayString(e.getPullStatus),1),e.status=="pulling"?t.renderSlot(e.$slots,"pulling",{key:1}):t.createCommentVNode("",!0),e.status=="loosing"?t.renderSlot(e.$slots,"loosing",{key:2}):t.createCommentVNode("",!0),e.status=="loading"?t.renderSlot(e.$slots,"loading",{key:3}):t.createCommentVNode("",!0)],4),t.renderSlot(e.$slots,"default")],4)],34)}const Ol=_(Zk,[["render",_k]]),{create:eb}=X("notify"),tb=eb({components:{[de.name]:de},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const l=()=>{e.onClick&&e.onClick()};let o=null;const a=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,u=>{s.value=e.visible;const m=e.duration;u&&m&&(o=setTimeout(()=>{r()},m))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:l,isShowPopup:s}}});function nb(e,n,l,o,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const Kl=_(tb,[["render",nb]]),Ul={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let bt=[],Kt=[];const $s=e=>{if(e){const n=document.getElementById(e);Kt=Kt.filter(l=>l.id!==e),bt=bt.filter(l=>l!==e),n&&document.body.removeChild(n)}else bt.forEach(n=>{const l=document.getElementById(n);l&&document.body.removeChild(l)}),Kt=[],bt=[]},ob=e=>{const n=document.getElementById(e.id);if(n){const l=Kt.find(a=>a.id===e.id);l?e={...Ul,...l,...e}:e={...Ul,...e};const o=t.createVNode(Kl,e);return t.render(o,n),o.component.data}},Ut=e=>{e.unmount=$s;let n;if(e.id){if(n=e.id,bt.find(r=>r===e.id))return ob(e)}else n=new Date().getTime()+"";e={...Ul,...e},e.id=n,bt.push(e.id),Kt.push(e);const l=document.createElement("view");l.id="notify-"+e.id;const o={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(l)},e.duration)}),()=>t.h(Kl,e)}},a=t.createVNode(o);document.body.appendChild(l),t.render(a,l)},Ht=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Hl={text(e,n={}){return Ht(e),Ut({...n,msg:e})},primary(e,n={}){return Ht(e),Ut({...n,msg:e,type:"primary"})},success(e,n={}){return Ht(e),Ut({...n,msg:e,type:"success"})},danger(e,n={}){return Ht(e),Ut({...n,msg:e,type:"danger"})},warn(e,n={}){return Ht(e),Ut({...n,msg:e,type:"warning"})},hide(){$s()},install(e){e.use(Kl)}},{create:lb}=X("toast"),ab=lb({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let l=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const a=()=>{l&&(clearTimeout(l),l=null)},r=()=>{o.mounted=!1},s=()=>{a(),e.duration&&(l=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,y=>{y&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),u=()=>{const y=ie(e.iconSize);return t.h(e.icon,{width:y,height:y,color:e.iconColor})},m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),f=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:u,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:f,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),rb={key:1,class:"fox-toast-title"},sb=["innerHTML"];function ib(e,n,l,o,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[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",rb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,sb)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const jl=_(ab,[["render",ib]]),Wl={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1};let St=[],jt=[];const Ts=e=>{if(e){const n=document.getElementById(e);jt=jt.filter(l=>l.id!==e),St=St.filter(l=>l!==e),n&&document.body.removeChild(n)}else St.forEach(n=>{const l=document.getElementById(n);l&&document.body.removeChild(l)}),jt=[],St=[]},cb=e=>{const n=document.getElementById(e.id);if(n){const l=jt.find(a=>a.id===e.id);l?e={...Wl,...l,...e}:e={...Wl,...e};const o=t.createVNode(jl,e);return t.render(o,n),Ct}},Wt=e=>{e.unmount=Ts;let n;if(e.id){if(n=e.id,St.find(a=>a===e.id))return cb(e)}else n=new Date().getTime()+"";e={...Wl,...e},e.id=n,St.push(e.id),jt.push(e);const l=document.createElement("div");l.id=e.id;const o=t.createVNode(jl,e);return t.render(o,l),document.body.appendChild(l),Ct},Un=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Ct={text(e,n={}){return Un(e),Wt({...n,type:"text",msg:e})},success(e,n={}){return Un(e),Wt({icon:ne.Success,...n,msg:e,type:"success"})},fail(e,n={}){return Un(e),Wt({icon:ne.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return Un(e),Wt({icon:ne.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Wt({icon:ne.Loading,...n,msg:e,type:"loading"})},hide(e){Ts(e)},install(e){e.use(jl),e.config.globalProperties.$toast=Ct}},{componentName:tA,create:db}=X("audio"),ub=db({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:ne.Service,[Ft.name]:Ft},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:l}){const o=t.ref(null),a=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var b=["webkitVisibilityState","visibilitychange"];try{for(let k=0;k<b.length;k++)document.addEventListener(b[k],()=>{document.hidden?o.value.pause():a.playing&&setTimeout(()=>{o.value.play()},200)})}catch(k){k.message}});const r=b=>{const k=o.value;e.autoplay&&k&&k.paused&&k.play(),a.second=k.duration,a.duration=g(k.duration),n("can-play",b)},s=b=>{a.currentTime=parseInt(b.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,o.value.currentTime=a.currentTime,n("fastBack",a.currentTime)},c=()=>{const b=o.value;a.playing?(b.pause(),a.handPlaying=!1):(b.play(),a.handPlaying=!0),a.playing=!a.playing,n("play",a.playing)},u=()=>{a.currentTime++,o.value.currentTime=a.currentTime,n("forward",a.currentTime)},m=b=>{a.currentDuration=g(b),a.percent=b/a.second*100},f=()=>{a.playing=!1,n("ended")},h=b=>{const k=o.value;k.currentTime=a.second*b/100,n("changeProgress",k.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,n("mute",a.hanMuted)},g=b=>{if(!b)return"00:00:00";let k=parseInt(b),d=Math.floor(k/3600),p=Math.floor((k-d*3600)/60),S=k-d*3600-p*60,C="";return C+=("0"+d.toString()).slice(-2)+":",C+=("0"+p.toString()).slice(-2)+":",C+=("0"+S.toString()).slice(-2),C};return t.watch(()=>a.currentTime,b=>{m(b)}),t.provide("audioParent",{children:[],props:e,audioData:a,handleMute:y,forward:u,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(a),audioRef:o,fastBack:i,forward:u,changeStatus:c,progressChange:h,audioEnd:f,onTimeupdate:s,handleMute:y,onCanplay:r,slots:l}}}),fb={class:"fox-audio"},mb={key:0,class:"fox-audio__progress"},pb={class:"fox-audio__time"},hb={class:"fox-audio__bar"},gb=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),yb={class:"fox-audio__time"},kb={key:1,class:"fox-audio__icon"},bb=["controls","src","preload","autoplay","loop","muted"];function Sb(e,n,l,o,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",fb,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",mb,[t.createElementVNode("div",pb,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",hb,[t.createVNode(s,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[gb]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",yb,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",kb,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(i,{key:1}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:n[2]||(n[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onCanplay:n[4]||(n[4]=(...c)=>e.onCanplay&&e.onCanplay(...c)),onEnded:n[5]||(n[5]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,bb)])}const Yl=_(ub,[["render",Sb]]),{componentName:nA,create:Cb,scope:wb}=X("audio-operate"),Nb=Cb({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(wb),o=t.inject("audioParent"),a=t.reactive(o),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(a),customSlot:r,t:l}}}),Bb={class:"fox-audio-operate"};function Ab(e,n,l,o,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Bb,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}const Xl=_(Nb,[["render",Ab]]),{componentName:$b,create:Tb}=X("avatar"),Vb=Tb({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:l,bgColor:o,color:a}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),u=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const g=s?.avatarGroupRef?.value?.children;g&&y(g)});const m=t.computed(()=>({[$b]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${l.value||s?.props?.shape||"normal"}`]:!0})),f=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${a.value}`,marginLeft:u.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(u.maxIndex-u.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),y=g=>{u.maxIndex=g.length;for(let b=0;b<g.length;b++)g[b]&&g[b].classList&&g[b].classList[0]=="fox-avatar"&&g[b].setAttribute("data-index",b+1);u.index=i?.value?.dataset?.index,u.index==u.maxIndex&&u.index!=s?.props?.maxCount&&(u.showMax=!0)};return{classes:m,styles:f,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(u)}}});function Eb(e,n,l,o,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const Yt=_(Vb,[["render",Eb]]),{componentName:Db,create:Ib}=X("avatar-group"),xb=Ib({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:l}){t.toRefs(e);const o=t.ref(null),a=t.ref(0),r=t.computed(()=>({[Db]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:a}),{classes:r,avatarGroupRef:o}}});function qb(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const Ql=_(xb,[["render",qb]]);var Hn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(Hn||{});function Mb(e,n,l){let o=0,a=e.length-1,r=null;for(;o<=a;){r=Math.floor((o+a)/2);const s=e[r],i=l(s,n);if(i===1)return r;i===2?o=r+1:i===3&&(a=r-1)}return r}const{componentName:zb,create:Pb}=X("list"),Vs=document.documentElement.clientHeight||document.body.clientHeight||667,Lb=Pb({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Vs},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const l=t.ref(null),o=t.ref(null),a=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=t.computed(()=>Math.min(e.containerHeight,Vs)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),u=t.computed(()=>({[zb]:!0})),m=t.computed(()=>r.list.slice(r.start,c.value)),f=()=>{if(a.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let d=0;d<r.list.length;++d)r.cachePositions[d]={index:d,height:e.height,top:d*e.height,bottom:(d+1)*(e.height+e.margin),dValue:0}},y=()=>{let d=a.value.childNodes;d=Array.from(d).filter(T=>T.nodeType===1);const p=d[0];d.forEach((T,$)=>{if(!T)return;const P=Ee(T),{height:V}=P,L=r.cachePositions[$+r.start].height-V;L&&(r.cachePositions[$+r.start].bottom-=L,r.cachePositions[$+r.start].height=V,r.cachePositions[$+r.start].dValue=L)});let S=0;p&&(S=r.start);const C=r.cachePositions.length;let A=r.cachePositions[S].dValue;r.cachePositions[S].dValue=0;for(let T=S+1;T<C;++T){const $=r.cachePositions[T];r.cachePositions[T].top=r.cachePositions[T-1].bottom,r.cachePositions[T].bottom=r.cachePositions[T].bottom-A,$.dValue!==0&&(A+=$.dValue,$.dValue=0)}const N=r.cachePositions[C-1].bottom;r.phantomHeight=N},g=(d=0)=>{let p=Mb(r.cachePositions,d,(C,A)=>{const N=C.bottom;return N===A?Hn.eq:N<A?Hn.lt:Hn.gt});return r.cachePositions[p].bottom<d&&(p+=1),p},b=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,l.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},k=()=>{const d=l.value?.scrollTop,{originStartIndex:p}=r,S=g(d);S!==p&&(r.originStartIndex=S,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(d>r.scrollTop?"scroll-up":"scroll-down",d),r.scrollTop=d};return t.watch(()=>e.listData,d=>{if(r.list=d.slice(),r.list.length===d.length)h(),y();else{b();return}}),t.watch(()=>r.start,()=>{a.value&&r.list.length>0&&y()}),{...t.toRefs(r),list:l,phantom:o,actualContent:a,getTransform:f,visibleData:m,classes:u,getContainerHeight:s,handleScrollEvent:k}}});function Fb(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const Gl=_(Lb,[["render",Fb]]),{componentName:Rb,create:vb}=X("circleprogress"),Ob=vb({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const l=!!t.useSlots().default,o=Math.random().toString(36).slice(-8),a=t.computed(()=>({[Rb]:!0})),r=t.computed(()=>{const m=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${m} 0 90 a 45 45 0 1, ${m} 0 -90`}),s=t.computed(()=>$e(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let m=283,f=m*Number(e.progress)/100;return{stroke:$e(e.color)?`url(#${o})`:e.color,strokeDasharray:`${f}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),u=t.computed(()=>{if(!$e(e.color))return;let m=e.color;const f=Object.keys(m).sort((y,g)=>parseFloat(y)-parseFloat(g));let h=[];return f.map((y,g)=>{let b={key:"",value:""};b.key=y,b.value=m[y],h.push(b)}),h});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:u,slotDefault:l,refRandomId:o}}}),Kb={viewBox:"0 0 100 100"},Ub=["id"],Hb=["offset","stop-color"],jb=["d","stroke-width"],Wb=["d","stroke","stroke-linecap","stroke-width"],Yb={class:"fox-circleprogress-text"},Xb={key:0};function Qb(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",Kb,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.stop,(s,i)=>(t.openBlock(),t.createElementBlock("stop",{key:i,offset:s.key,"stop-color":s.value},null,8,Hb))),128))],8,Ub)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,jb),t.createElementVNode("path",{class:"fox-circleprogress-hover",style:t.normalizeStyle(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,Wb)])),t.createElementVNode("div",Yb,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Xb,t.toDisplayString(e.progress)+"%",1))])],6)}const Zl=_(Ob,[["render",Qb]]),{componentName:Gb,create:Zb}=X("noticebar"),Jb=Zb({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:ne.Notice,CircleClose:ne.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:l}){const o=t.ref(null),a=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[Gb]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),u=t.computed(()=>{let T={};return e.color&&(T.color=e.color),e.background&&(T.background=e.background),e.direction=="vertical"&&(T.height=`${e.height}px`),T}),m=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),f=t.computed(()=>{let T={};if(e.complexAm)T={transform:`translateY(${r.distance}px)`};else if(r.animate){let $=~~(e.height/e.speed/4);T={transition:`all ${$==0?~~(e.height/e.speed):$}s`,"margin-top":`-${e.height}px`}}return T});t.watch(()=>e.text,T=>{h()}),t.watch(()=>e.list,T=>{r.scrollList=[...T]});const h=T=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!a.value)return;const $=o.value.getBoundingClientRect().width,P=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?P>$:e.scrollable,r.isCanScroll?(r.wrapWidth=$,r.offsetWidth=P,r.duration=P/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=T=>{n("click",T)},g=T=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",T)},b=T=>{r.firstRound=!1,n("across-end",T),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},k=()=>{d(),r.timer=setInterval(d,~~(e.height/e.speed/4*1e3)+e.standTime)},d=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},p=()=>{r.timer=setInterval(()=>{let T=100;for(let $=0;$<T;$++)S($,!($<T-1))},e.standTime+100*e.speed)},S=(T,$)=>{setTimeout(()=>{r.distance-=e.height/100,$&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},T*e.speed)},C=T=>{n("click",T)},A=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(l.default?N(l.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?p():k()},e.standTime)):h(e.text)}),t.watch(()=>l.default?l.default():[],T=>{e.direction==="vertical"&&l.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),N(T))});const N=T=>{T&&T.length>0&&(r.scrollList=T[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:u,contentStyle:m,horseLampStyle:f,wrap:o,content:a,handleClick:y,onClickIcon:g,onAnimationEnd:b,go:C,handleClickIcon:A,slots:l,toPxDesc:ge,wrapContentClass:c}}}),_b={class:"fox-noticebar__page-lefticon"},eS={ref:"wrap",class:"fox-noticebar__page-wrap"},tS={class:"showNotica"},nS=["onClick"];function oS(e,n,l,o,a,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:n[3]||(n[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[t.createElementVNode("view",_b,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",eS,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u)),"on:webkitAnimationEnd":n[1]||(n[1]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...u)=>e.onClickIcon&&e.onClickIcon(...u),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",tS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,m)=>(t.openBlock(),t.createBlock(c,{key:m,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:u},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,m)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:m,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:f=>e.go(u)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(u),1)])],12,nS))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=u=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const Jl=_(Jb,[["render",oS]]),lS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y9X+w879ws3/y9X1tMH8s8H/y9UkJSWAgYHj5OT/ytTY2NheXWDs7e7r7Ozv8PDs7u55eYH09fXMzMzY2NgyMD3/y9UzMzP8s8GwsLDm5+eKiorv8PDLy8s6Ojrl5ubZ2trPz88UFBTh4uLV1dXc3Ny5ubnu7u7T09O1tbXf39+zsrLx8vLR0dHJycm8vLzj5OQ3NUHq6+vo6ek2NjbGxsbCwsK3t7f9x9K+vr79t8Q4ODjs7e0+O0XAwMBiYWaSkZVbW1/27e/8vspUSlZMTExwcHL709tERESjo6ZHQU5MR1N8fH762uD35un54eaCgoThtL7hzNCGhozcsbuqqqzm5ubWq7Z3YG3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4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:oA,create:sS,scope:iS}=X("empty"),cS={empty:lS,error:aS,network:rS},dS=sS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=re.useFoxI18n(iS),l=n(e,["description"]),{image:o,imageSize:a}=t.toRefs(e),r=t.computed(()=>a.value?typeof a.value=="number"?`width:${a.value}px;height:${a.value}px`:`width:${a.value};height:${a.value}`:""),i=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:cS[o.value];return{...l,imageUrl:i,imgStyle:r}}}),uS={class:"fox-empty"},fS=["src"],mS={key:1,class:"fox-empty-description"};function pS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",uS,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,fS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",mS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const _l=_(dS,[["render",pS]]),{create:hS,scope:gS}=X("video"),yS=hS({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(gS),o=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),a=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,N=>{N.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,N=>{o.state.isMuted=N?N.muted:!1},{immediate:!0});const s=()=>{o.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{o.videoElm.play()},200),e.options.touchPlay&&(o.showTouchMask=!0),e.options.playsinline&&(o.videoElm.setAttribute("playsinline",e.options.playsinline),o.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),o.videoElm.setAttribute("x5-video-player-type","h5-page"),o.videoElm.setAttribute("x5-video-player-fullscreen",!1)),g(),o.showToolbox?i():(o.videoElm.addEventListener("play",()=>{o.state.playing=!0,n("play",o.videoElm)}),o.videoElm.addEventListener("pause",()=>{o.state.playing=!1,n("pause",o.videoElm)}),o.videoElm.addEventListener("ended",h),o.videoElm.addEventListener("timeupdate",rn(f,1e3)))},i=()=>{const N=a.value,T=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=N,o.progressBar.progressElm=T,o.progressBar.pos=T.getBoundingClientRect(),o.videoSet.progress.width=Math.round(T.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return o.state.playing=!0,!1;if(o.state.playing=!o.state.playing,o.videoElm)if(o.state.playing)try{setTimeout(()=>{o.videoElm.play()},200),o.videoElm.addEventListener("progress",()=>{m()}),o.videoElm.addEventListener("timeupdate",rn(f,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{y()}else o.videoElm.pause(),n("pause",o.videoElm)},u=N=>{var T=Math.floor(N/3600);T<10&&(T="0"+T);var $=Math.floor(N%3600/60);$<10&&($="0"+$);var P=Math.round(N%3600%60);P<10&&(P="0"+P);var V="";return T!=0?V=T+":"+$+":"+P:V=$+":"+P,V},m=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},f=()=>{const N=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*N),o.videoSet.totalTime=u(o.videoElm.duration),o.videoSet.displayTime=u(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},h=()=>{o.state.playing=!1,o.state.isEnd=!0,o.videoSet.displayTime="00:00",o.videoSet.progress.current=0,o.videoElm.currentTime=0,n("playend",o.videoElm)},y=()=>{o.state.isError=!0},g=()=>{o.state.vol=e.options.volume},b=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},k=()=>{},d=N=>{let $=N.targetTouches[0].pageX-o.progressBar.pos.left;$<=0&&($=0),$>=o.videoSet.progress.width&&($=o.videoSet.progress.width),o.videoSet.progress.current=$;let P=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&S(P,o.videoElm.duration)},p=N=>{let $=N.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=$;let P=$/o.videoSet.progress.width;o.videoElm.duration&&S(P,o.videoElm.duration)},S=(N,T)=>{o.videoElm.currentTime=Math.floor(N*T)},C=()=>{o.state.isError=!1,s()},A=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:a,...t.toRefs(e),...t.toRefs(o),handleError:y,isDisabled:r,play:c,handleMuted:b,touchSlidSrart:k,touchSlidMove:d,touchSlidEnd:p,retry:C,fullScreen:A,t:l}}}),kS={class:"fox-video",ref:"videocon"},bS=["muted","autoplay","loop","poster","controls","preload"],SS=["src","type"],CS={class:"fox-video-controller__now"},wS={class:"fox-video-controller__progress"},NS={class:"fox-video-controller__progress-value",ref:"progressBar"},BS=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)],AS={class:"fox-video-controller__played",ref:"playedBar"},$S={class:"fox-video-controller__total"},TS={class:"fox-video-error"},VS={class:"fox-video-error-tip"};function ES(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",kS,[t.createElementVNode("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:n[0]||(n[0]=(...s)=>e.handleError&&e.handleError(...s))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,SS)],40,bS),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...s)=>e.play&&e.play(...s))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...s)=>e.play&&e.play(...s))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[t.createElementVNode("div",{class:"fox-video-controller__playbtn",onClick:n[3]||(n[3]=(...s)=>e.play&&e.play(...s))}),t.createElementVNode("div",CS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",wS,[t.createElementVNode("div",NS,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"fox-video-controller__ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=t.withModifiers(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:n[5]||(n[5]=t.withModifiers(s=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=t.withModifiers(s=>e.touchSlidEnd(s),["stop"]))},BS,36),t.createElementVNode("div",AS,null,512)],512)]),t.createElementVNode("div",$S,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...s)=>e.fullScreen&&e.fullScreen(...s))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",TS,[t.createElementVNode("p",VS,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const wt=_(yS,[["render",ES]]),{create:DS,componentName:IS}=X("steps"),ea=DS({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:l}){const o=t.reactive({children:[]}),a=t.computed(()=>{const i=IS;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&o.children.push(i)},s=i=>{n("click-step",i)};return t.provide("parent",{relation:r,state:o,props:e,onEmit:s}),()=>t.h("view",{class:a.value},l.default?.())}}),{create:xS,componentName:qS}=X("step"),MS=xS({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),n=t.inject("parent");n.relation(e);const l=t.reactive({dot:n.props.progressDot}),o=t.computed(()=>n.state.children.indexOf(e)+1),a=()=>{const c=o.value;return c<+n.props.current?"finish":c===+n.props.current?"process":"wait"},r=t.computed(()=>a()),s=t.computed(()=>{const c=qS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(l),index:o,classes:s,handleClickStep:i}}}),zS={class:"fox-step-head"},PS=t.createElementVNode("view",{class:"fox-step-line"},null,-1),LS={class:"fox-step-icon-inner"},FS={key:1,class:"fox-step-inner"},RS={class:"fox-step-main"},vS={class:"fox-step-title"},OS={key:0},KS={key:0,class:"fox-step-content"},US=["innerHTML"];function HS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",zS,[PS,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",LS,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",FS,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",RS,[t.createElementVNode("view",vS,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",OS,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",KS,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,US)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ta=_(MS,[["render",HS]]),{create:jS,componentName:na}=X("swiper"),WS=jS({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:l}){const o=t.ref(),a=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=He(),s=t.computed(()=>({[na]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const x=na;return{[`${x}-inner`]:!0,[`${x}-vertical`]:i.value}}),u=t.computed(()=>{const x=na;return{[`${x}-pagination`]:!0,[`${x}-pagination-vertical`]:i.value}}),m=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),f=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>a.children.length),y=t.computed(()=>a[i.value?"height":"width"]),g=t.computed(()=>h.value*y.value),b=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),k=t.computed(()=>(a.active+h.value)%h.value),d=()=>{let x=0;x=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${x}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},p=x=>{let Y=[];const j=a.childrenVNode.length;let Z=l?.default?.();if(Z=Z.filter(U=>U.children&&Array.isArray(U.children)),Z.forEach(U=>{Y=Y.concat(U.children)}),!j)a.childrenVNode=Y.slice(),x.proxy&&a.children.push(x.proxy);else if(j>Y.length)a.children=a.children.filter(U=>x.proxy!==U);else if(j<Y.length){for(let U=0;U<j;U++)if(Y[U].key!==a.childrenVNode[U].key){x.proxy&&a.children.splice(U,0,x.proxy),x.vnode&&a.childrenVNode.splice(U,0,x.vnode);break}j!==Y.length&&(x.proxy&&a.children.push(x.proxy),x.vnode&&a.childrenVNode.push(x.vnode))}else a.childrenVNode=Y.slice(),x.proxy&&a.children.push(x.proxy)},S=(x,Y=0)=>{let j=x*y.value;e.loop||(j=Math.min(j,-b.value));let Z=Y-j;return e.loop||(Z=Oe(Z,b.value,0)),Z},C=x=>{const{active:Y}=a;return x?e.loop?Oe(Y+x,-1,h.value):Oe(Y+x,0,h.value-1):Y},A=({pace:x=0,offset:Y=0,isEmit:j=!1})=>{if(h.value<=1)return;const{active:Z}=a,U=C(x),R=S(U,Y);if(e.loop){if(a.children[0]&&R!==b.value){const E=R<b.value;a.children[0].setOffset(E?g.value:0)}if(a.children[h.value-1]&&R!==0){const E=R>0;a.children[h.value-1].setOffset(E?-g.value:0)}}a.active=U,a.offset=R,j&&Z!==a.active&&n("change",k.value),d()},N=()=>{a.moving=!0,a.active<=-1&&A({pace:h.value}),a.active>=h.value&&A({pace:-h.value})},T=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},$=x=>{N(),r.reset(),Ye(()=>{Ye(()=>{a.moving=!1,A({pace:x,isEmit:!0})})})},P=()=>{$(-1)},V=()=>{$(1)},B=x=>{N(),r.reset(),Ye(()=>{a.moving=!1;let Y;e.loop&&h.value===x?Y=a.active===0?0:x:Y=x%h.value,A({pace:Y-a.active,isEmit:!0})})},L=()=>{e.autoPlay<=0||h.value<=1||(T(),a.autoplayTimer=setTimeout(()=>{V(),L()},Number(e.autoPlay)))},F=(x=+e.initPage)=>{T(),a.rect=o.value.getBoundingClientRect(),x=Math.min(h.value-1,x),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=x,a.offset=S(a.active),a.moving=!0,d(),L()},I=x=>{e.isPreventDefault&&x.preventDefault(),e.isStopPropagation&&x.stopPropagation(),e.touchable&&(r.start(x),a.touchTime=Date.now(),T(),N())},q=x=>{e.touchable&&a.moving&&(r.move(x),f.value&&A({offset:m.value}))},H=x=>{if(!e.touchable||!a.moving)return;const Y=m.value/(Date.now()-a.touchTime);if((Math.abs(Y)>.3||Math.abs(m.value)>+(y.value/2).toFixed(2))&&f.value){let Z=0;const U=i.value?r.offsetY.value:r.offsetX.value;e.loop?Z=U>0?m.value>0?-1:1:0:Z=-Math[m.value>0?"ceil":"floor"](m.value/y.value),A({pace:Z,isEmit:!0})}else m.value&&A({pace:0});a.moving=!1,d(),L()};return t.provide("parent",{props:e,size:y,relation:p}),Ve({prev:P,next:V,to:B}),t.onDeactivated(()=>{T()}),t.onBeforeUnmount(()=>{T()}),t.watch(()=>e.initPage,x=>{t.nextTick(()=>{F(Number(x))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{F()})}),t.watch(()=>e.autoPlay,x=>{x>0?L():T()}),{state:a,classes:s,classesInner:c,classesPagination:u,container:o,activePagination:k,onTouchStart:I,onTouchMove:q,onTouchEnd:H}}});function YS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const Nt=_(WS,[["render",YS]]),{create:XS,componentName:QS}=X("swiper-item"),GS=XS({setup(e,{slots:n}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),a=t.computed(()=>({[QS]:!0})),r=t.computed(()=>{const i={},c=l?.props.direction;return l?.size.value&&(i[c==="horizontal"?"width":"height"]=`${l?.size.value}px`),o.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${o.offset}px)`),i}),s=i=>{o.offset=i};return t.onUnmounted(()=>{l.relation(t.getCurrentInstance(),"unmount")}),Ve({setOffset:s}),{style:r,classes:a}}});function ZS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Bt=_(GS,[["render",ZS]]),Es={show:{type:Boolean,default:!1},initNo:{type:Number,default:0},showIndex:{type:Boolean,default:!0},minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3}},{create:JS}=X("image-preview-item"),_S=JS({props:{...Es,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[wt.name]:wt,[Bt.name]:Bt},setup(e,{emit:n}){const l=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),o=He(),a=t.computed(()=>{const{rootWidth:P,rootHeight:V}=e,B=V/P;return l.imageRatio>B}),r=t.computed(()=>{const P=e.image;if(P&&P.src){const{scale:V,moveX:B,moveY:L,moving:F,zooming:I}=l,q={transitionDuration:I||F?"0s":".3s"};if(V!==1){const H=B/V,x=L/V;q.transform=`scale(${V}, ${V}) translate(${H}px, ${x}px)`}return q}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:P,rootHeight:V}=e,B=a.value?V/l.imageRatio:P;return Math.max(0,(l.scale*B-P)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:P,rootHeight:V}=e,B=a.value?V:P*l.imageRatio;return Math.max(0,(l.scale*B-V)/2)}return 0}),c=P=>{const{naturalWidth:V,naturalHeight:B}=P.target;l.imageRatio=B/V},u=()=>{m(1),l.moveX=0,l.moveY=0},m=P=>{P=Oe(P,+e.minZoom,+e.maxZoom+1),P!==l.scale&&(l.scale=P,n("scale",{scale:P,index:e.initNo}))},f=()=>{const P=l.scale>1?1:2;m(P),l.moveX=0,l.moveY=0},h=P=>Math.sqrt((P[0].clientX-P[1].clientX)**2+(P[0].clientY-P[1].clientY)**2);let y,g,b,k,d,p,S;const C=P=>{const{touches:V}=P,{offsetX:B}=o;o.start(P),S=V.length,y=l.moveX,g=l.moveY,p=Date.now(),l.moving=S===1&&l.scale!==1,l.zooming=S===2&&!B.value,l.zooming&&(b=l.scale,k=h(P.touches))},A=P=>{const{touches:V}=P;if(o.move(P),(l.moving||l.zooming)&&ro(P,!0),l.moving){const{deltaX:B,deltaY:L}=o,F=B.value+y,I=L.value+g;l.moveX=Oe(F,-s.value,s.value),l.moveY=Oe(I,-i.value,i.value)}if(l.zooming&&V.length===2){const B=h(V),L=b*B/k;m(L)}},N=()=>{if(S==1&&e.video&&e.video.source||S>1)return;const{offsetX:P,offsetY:V}=o,B=Date.now()-p,L=250,F=5;P.value<F&&V.value<F&&B<L&&(d?(clearTimeout(d),d=null,f()):d=setTimeout(()=>{e.contentClose&&n("close"),d=null},L))},T=P=>{let V=!1;(l.moving||l.zooming)&&(V=!0,l.moving&&y===l.moveX&&g===l.moveY&&(V=!1),P.touches.length||(l.zooming&&(l.moveX=Oe(l.moveX,-s.value,s.value),l.moveY=Oe(l.moveY,-i.value,i.value),l.zooming=!1),l.moving=!1,y=0,g=0,b=1,l.scale<1&&u(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),ro(P,V),N(),o.reset()},$=()=>{n("close")};return t.watch(()=>e.initNo,u),t.watch(()=>e.show,P=>{P||u()}),{...t.toRefs(l),onTouchStart:C,onTouchMove:A,onTouchEnd:T,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:$}}}),e1=["src"];function t1(e,n,l,o,a,r){const s=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onClick:e.closeSwiper},{default:t.withCtx(()=>[t.createElementVNode("view",{style:t.normalizeStyle(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[2]||(n[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[4]||(n[4]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,e1)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createBlock(s,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):t.createCommentVNode("",!0)],36)]),_:1},8,["onClick"])}const n1=_(_S,[["render",t1]]),{create:o1}=X("image-preview"),l1=o1({props:{...Es,images:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},contentClose:{type:Boolean,default:!0},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},autoplay:{type:[Number,String],default:0},teleport:{type:[String,Element],default:"body"},teleportDisable:{ype:Boolean,default:!1},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},beforeClose:Function,isLoop:{type:Boolean,default:!0}},emits:["close","change"],components:{ImagePreviewItem:n1,CircleClose:ne.CircleClose,[de.name]:de,[Nt.name]:Nt},setup(e,{emit:n}){const l=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=t.computed(()=>{const m="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${m}-right`:`${m}-left`}`}),r=t.computed(()=>_t(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==o.active&&(o.active=m,n("change",o.active))},i=()=>{Bs(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},u=()=>{if(l.value){const m=Ee(l.value);o.rootHeight=m.height,o.rootWidth=m.width}};return t.watch(()=>e.show,m=>{o.showPop=m,m&&(s(e.initNo),u())}),t.watch(()=>e.initNo,m=>{m!=o.active&&s(m)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:l,...t.toRefs(o),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),a1={class:"fox-image-preview",ref:"swipeRef"},r1={key:0,class:"fox-image-preview-index"};function s1(e,n,l,o,a,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=m=>e.showPop=m),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",a1,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(m,f)=>(t.openBlock(),t.createBlock(s,{key:f,video:f<e.videos.length?m:{},image:f>=e.videos.length?m:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",r1,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:n[0]||(n[0]=(...m)=>e.onClose&&e.onClose(...m))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Ds=_(l1,[["render",s1]]);class i1{show=!1;images=[];videos=[];contentClose=!0;initNo=0;paginationVisible=!1;paginationColor="";autoplay=0;isWrapTeleport=!1;showIndex=!0;closeable=!1;closeIconPosition="top-right";beforeClose;maxZoom=3;minZoom=1/3;isLoop=!0;teleport="body"}class c1{options=new i1;constructor(n){const l=Object.assign(this.options,n),{unmount:o}=fi(l,{name:"image-preview",components:[de,wt,Nt,Bt,at],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{o()})},t.h(Ds,l))}})})}}const jn=e=>new c1(e);jn.install=e=>{e.use(Ds)};function d1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}const{componentName:aA,create:u1}=X("countup"),f1=u1({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const l=t.ref(null),o=t.ref([]),a=$=>{$&&o.value.push($)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:u}=t.reactive(e);t.watch(()=>e.customChangeNum,($,P)=>{f(),k(0)}),t.watch(()=>e.machinePrizeLevel,($,P)=>{r.prizeLevelTrun=$}),t.watch(()=>e.initNum,($,P)=>{r.current=$,r.valFlag=!1,m()}),t.watch(()=>e.endNum,($,P)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?u!="machine"&&k():(b(),setTimeout(()=>{r.valFlag=!0},300)))},f=()=>{clearInterval(Number(r.timer)),r.timer=null},h=($,P,V)=>{const B=($.toString().split(".")[1]||"").length,L=(P.toString().split(".")[1]||"").length,F=Math.pow(10,Math.max(B,L));return V=="-"?Number(($*F-P*F).toFixed(0))/F:Number(($*F+P*F).toFixed(0))/F},y=$=>{let{num_total_len:P,pointNum:V,initDigit1:B,initDigit2:L,sortFlag:F}=r,I=F=="add"||F=="equal"?String(L)[$-(P-V)]:10-Number(String(L)[$-(P-V)]),q=F=="add"||F=="equal"?String(B)[$]:10-Number(String(B)[$]),H=$>P-V-1?-I*100+"%":$<=String(B).length-1?-q*100+"%":0;return H=="-1000%"&&(H=0),H},g=$=>{let{num_total_len:P,pointNum:V,initDigit1:B,initDigit2:L,sortFlag:F}=r,I=String(L)[$-(P-V)];return $>P-V-1?I||0:$<=String(B).length-1?String(B)[$]:0},b=()=>{let{endNum:$,initNum:P,speed:V,toFixed:B}=e,L=setInterval(()=>{if(P>$)if(r.current<=$||r.current<=V)r.current=$.toFixed(B),clearInterval(L),n("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))-parseFloat(String(V));r.current=F.toFixed(B)}else if(r.current>=$)r.current=$.toFixed(B),clearInterval(L),n("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))+parseFloat(String(V));r.current=F.toFixed(B)}},e.during)},k=$=>{let{initNum:P,endNum:V,toFixed:B,customBgImg:L}=e;L&&(P=e.customChangeNum);let F,I,q,H;P!=0?(B!=0&&(P=Number(P.toFixed(B))),String(P).indexOf(".")>-1?(F=String(P).split(".")[0].length,I=String(P).split(".")[1].length):(F=String(P).length,I=0)):(F=1,I=0),V!=0?(B!=0&&(V=Number(V.toFixed(B))),String(V).indexOf(".")>-1?(q=String(V).split(".")[0].length,H=String(V).split(".")[1].length):(q=String(V).length,H=0)):(q=1,H=0);let x=F>=q?F:q,Y=I>=H?I:H;r.num_total_len=x+Y,r.pointNum=Y,P>V?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(P,V,"-"),r.numberVal=Number(String(P))):P<V?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(V,P,"-"),r.numberVal=Number(String(V))):r.sortFlag="equal";var j=1;for(let U=0;U<r.pointNum;U++)j*=10;var Z=r.numberVal*j;if(r.relNum=Z,B!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(Z).length),String(P).indexOf(".")>-1){let U=String(P).split(".");r.initDigit1=Number(U[0]),r.initDigit2=Number(U[1])}else r.initDigit1=P,r.initDigit2=0;i&&!L?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let U=o.value[r.num_total_len-1];d(U)}):$!==0&&C()},d=$=>{f();var P=1;r.pointNum!=0&&(P=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p($),r.totalCount=h(r.totalCount,P,"-"),r.totalCount<=0&&(f(),n("scroll-end"),r.valFlag=!1)},e.during)},p=$=>{let P=$.getAttribute("turn-number"),V;if(r.sortFlag=="add"?V=parseInt(String(P))+1:V=parseInt(String(P))-1>=0?parseInt(String(P))-1:9,$.setAttribute("turn-number",String(V)),($.style.transition=="none 0s ease 0s"||V==1||!$.style.transition)&&($.style.transition=`all linear ${e.during}ms`),V==10||r.sortFlag=="reduce"&&V==0){var B=null;$.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*100}%`,$.setAttribute("turn-number","0"),B=setTimeout(()=>{B&&clearTimeout(B),$.style.transition="none",$.style.top="0",S($,V)},.975*e.during)}else $.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*100}%`;$.style.top=="-100%"&&r.sortFlag=="reduce"&&p($.previousSibling)},S=($,P)=>{setTimeout(()=>{P==10&&$.previousSibling&&p($.previousSibling)},200)},C=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},A=()=>{for(r.notPrize=[];r.notPrize.length<3;){var $=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf($)==-1&&r.notPrize.push($)}};d1({machineLuck:()=>{const $=e.machineTurnMore<0?0:e.machineTurnMore;let P=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&A();for(let V=0;V<e.machineNum;V++)setTimeout(()=>{let B=P*(V+1+parseFloat(String($)));r.prizeYPrev.length!=0&&(r.prizeY[V]=r.prizeYPrev[V]);let L=r.prizeYPrev[V]?r.prizeYPrev[V]:0,F=B+L+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(P-L);r.prizeLevelTrun<0&&(F+=e.numHeight*r.notPrize[V]),T(V,F,L)},500*V)}});const T=($,P,V)=>{let B=setInterval(()=>{if(V<=P)V+=10,r.prizeY[$]=parseFloat(String(V));else if(clearInterval(B),B=null,r.finshMachine+=1,r.prizeY[$]=P,r.finshMachine==e.machineNum){let L=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(I=>{let q=I;for(;q>L;)q-=L;r.prizeYPrev.push(q)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{m()})}),t.onUnmounted(()=>{f(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:l,setRef:a,topNumber:y,turnNumber:g}}}),m1={class:"fox-countup"},p1=["turn-number"];function h1(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",m1,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+u,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,p1))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.current),1)],64))],64))])}const oa=_(f1,[["render",h1]]),g1=e=>{if(!e)return Date.now();let n=Number(e),l=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:y1,create:k1}=X("countdown"),b1=k1({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:l}){const o=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),a=t.computed(()=>({[y1]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-g1(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const y=Date.now()-o.diffTime,g=Math.max(o.handleEndTime-y,0);o.restTime=g,g||(o.counting=!1,f(),n("on-end")),g>0&&i()}}))},c=(y,g)=>{const b=y;let k={d:0,h:0,m:0,s:0,ms:0};const d=1e3,p=60*d,S=60*p,C=24*S;return b>0&&(k.d=b>=d?Math.floor(b/C):0,k.h=Math.floor(b%C/S),k.m=Math.floor(b%S/p),k.s=Math.floor(b%p/d),k.ms=Math.floor(b%d)),g=="custom"?k:u({...k})},u=y=>{let{d:g,h:b,m:k,s:d,ms:p}=y,S=e.format;if(S.includes("DD")?S=S.replace("DD",nt(g)):b+=Number(g)*24,S.includes("HH")?S=S.replace("HH",nt(b)):k+=Number(b)*60,S.includes("mm")?S=S.replace("mm",nt(k)):d+=Number(k)*60,S.includes("ss")?S=S.replace("ss",nt(d)):p+=Number(d)*1e3,S.includes("S")){const C=nt(p,3).toString();S.includes("SSS")?S=S.replace("SSS",C):S.includes("SS")?S=S.replace("SS",C.slice(0,2)):S.includes("S")&&(S=S.replace("SS",C.slice(0,1)))}return S},m=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},f=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(f(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,y=>{let g=c(y,"custom");n("update:modelValue",g),n("input",g)}),t.watch(()=>e.paused,(y,g)=>{g?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&f()}),t.watch(()=>e.endTime,y=>{s()}),t.watch(()=>e.startTime,y=>{s()}),{...t.toRefs(e),slots:l,classes:a,start:m,pause:f,renderTime:r,reset:h}}}),S1=["innerHTML"];function C1(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,S1))],2)}const la=_(b1,[["render",C1]]),{create:w1}=X("badge"),N1=w1({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const n=t.reactive({}),l=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),o=t.computed(()=>{if(e.dot)return;const a=e.value,r=e.max;return typeof a=="number"&&typeof r=="number"&&r<a?`${r}+`:a});return{state:n,stl:l,content:o}}}),B1={class:"fox-badge"},A1=["textContent"];function $1(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",B1,[t.withDirectives(t.createElementVNode("view",{class:"fox-badge__icon",style:t.normalizeStyle(e.stl)},[t.renderSlot(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("view",{textContent:t.toDisplayString(e.content),class:t.normalizeClass(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:t.normalizeStyle(e.stl)},null,14,A1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const aa=_(N1,[["render",$1]]),{componentName:T1,create:V1}=X("tag"),E1=V1({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:ne.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=T1;return{[s]:!0,[`${s}--${e.type}`]:!0,[`${s}--plain`]:e.plain,[`${s}--round`]:e.round,[`${s}--mark`]:e.mark,[`${s}--symbol`]:e.symbol,[`${s}--text`]:e.text,[`${s}--light`]:e.light}}),getStyle:()=>{const s={};return e.textColor?s.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(s.color=e.color),e.plain?(s.background="#fff",s["border-color"]=e.color):!e.text&&e.color&&(s.background=e.color),s},onClose:s=>{s.stopPropagation(),n("close",s)},onClick:s=>{n("click",s)}}}});function D1(e,n,l,o,a,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Xt=_(E1,[["render",D1]]),{create:I1}=X("popover"),x1=I1({components:{FoxPopup:de},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const l=t.ref(),o=t.ref(),a=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const p="fox-popover-arrow",S=e.location,C=S.split("-")[0];return`${p} ${p}-${C} ${p}--${S}`}),c=t.computed(()=>{const p={},{bgColor:S,arrowOffset:C,location:A}=e,N=A.split("-")[0],T=A.split("-")[1],$=16;return S&&(p[`border${u(N)}Color`]=S),e.arrowOffset!=0&&(["bottom","top"].includes(N)&&(T||(p.left=`calc(50% + ${C}px)`),T=="start"&&(p.left=`${$+C}px`),T=="end"&&(p.right=`${$-C}px`)),["left","right"].includes(N)&&(T||(p.top=`calc(50% - ${C}px)`),T=="start"&&(p.top=`${$-C}px`),T=="end"&&(p.bottom=`${$+C}px`))),p}),u=p=>(p=p.toLowerCase(),p=p.replace(/\b\w+\b/g,S=>S.substring(0,1).toUpperCase()+S.substring(1)),p),m=t.computed(()=>{let p={};if(!r.value||!s.value)return{};const S=s.value.width,C=s.value.height,{width:A,height:N,left:T,top:$}=r.value,{location:P,offset:V}=e,B=P.split("-")[0],L=P.split("-")[1];let F=0,I=0;if(_t(V)&&V.length==2&&(F+=Number(V[1]),I+=Number(V[0])),A){if(["bottom","top"].includes(B)){const q=B=="bottom"?N+F:-(C+F);p.top=`${$+q}px`,L||(p.left=`${-(S-A)/2+T+I}px`),L=="start"&&(p.left=`${T+I}px`),L=="end"&&(p.left=`${r.value.right+I}px`)}if(["left","right"].includes(B)){const q=B=="left"?-(S+F):A+F;p.left=`${T+q}px`,L||(p.top=`${$-C/2+N/2-4+I}px`),L=="start"&&(p.top=`${$+I}px`),L=="end"&&(p.top=`${$+N+I}px`)}}return p}),f=t.computed(()=>{const p={};return e.bgColor&&(p.background=e.bgColor),p}),h=()=>{let p=Ee(l.value);e.targetId&&(p=Ee(document.querySelector(`#${e.targetId}`))),r.value=p,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,p=>{a.value=p,p?(window.addEventListener("touchstart",d,!0),h()):window.removeEventListener("touchstart",d,!0)});const y=p=>{n("update",p),n("update:visible",p)},g=()=>{y(!e.visible),n("open")},b=()=>{n("update:visible",!1),n("close")},k=(p,S)=>{!p.disabled&&n("choose",p,S),e.closeOnClickAction&&b()},d=p=>{const S=l.value,C=o.value;let A=S&&!S.contains(p.target);if(e.targetId){const N=document.querySelector(`#${e.targetId}`);A=N&&!N.contains(p.target)}A&&C&&!C.contains(p.target)&&e.closeOnClickOutside&&b()};return{showPopup:a,openPopover:g,popoverArrow:i,closePopover:b,chooseItem:k,popoverRef:l,popoverContentRef:o,getRootPosition:m,customStyle:f,popoverArrowStyle:c,renderIcon:cr}}}),q1={ref:"popoverContentRef",class:"fox-popover-content-group"},M1=["onClick"],z1={class:"fox-popover-menu-item-name"};function P1(e,n,l,o,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",q1,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(u=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",z1,t.toDisplayString(i.name),1)],10,M1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Qt=_(x1,[["render",P1]]),L1=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:l,round:o,avatarSize:a}=t.toRefs(n),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${l.value}`]:l.value}});return{avatarShape:l,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:o.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:F1}=X("skeleton"),R1=F1(L1({[Yt.name]:Yt})),v1={key:0},O1={key:1,class:"fox-skeleton"},K1={key:0,class:"fox-skeleton-animation"},U1={class:"fox-skeleton-content"};function H1(e,n,l,o,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",O1,[e.animated?(t.openBlock(),t.createElementBlock("view",K1)):t.createCommentVNode("",!0),t.createElementVNode("view",U1,[e.avatar?(t.openBlock(),t.createBlock(s,{key:0,class:t.normalizeClass(e.avatarClass),shape:e.avatarShape,style:t.normalizeStyle(e.getStyle())},null,8,["class","shape","style"])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-skeleton-content__line",style:t.normalizeStyle({width:e.width})},[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockTitle")),style:t.normalizeStyle({height:e.height})},null,6)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.row),i=>(t.openBlock(),t.createElementBlock("view",{key:i,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockLine")),style:t.normalizeStyle({height:e.height})},null,6))),128))],4)])])):(t.openBlock(),t.createElementBlock("view",v1,[t.renderSlot(e.$slots,"default")]))}const ra=_(R1,[["render",H1]]),{create:j1,componentName:W1}=X("collapse"),Y1=j1({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const l=t.ref(null),o=t.ref(e.modelValue||(e.accordion?"":[])),a=t.computed(()=>({[W1]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,u,m=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,u,m)},s=c=>{if(e.accordion)o.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(o.value))if(o.value.includes(c)){const u=o.value.filter(m=>m!==c);r(u,c,!1)}else{const u=o.value.concat([c]);r(u,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:l,classes:a}}});function X1(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const sa=_(Y1,[["render",X1]]),{create:Q1,componentName:G1}=X("collapse-item"),Z1=Q1({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:ne.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),l=t.ref(null),o=t.inject("collapseParent"),a=t.reactive(o),r=t.computed(()=>{const h=G1;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>a?a.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{a.updateVal(e.name)},u=()=>{s.value&&(i.value="auto")},m=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},f=()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?m():f()}),{classes:r,renderIcon:cr,wrapperRef:n,contentRef:l,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:u}}}),J1={class:"fox-collapse-item__title-main"},_1={class:"fox-collapse-item__title-main-value"},eC=["innerHTML"],tC={key:2,class:"fox-collapse-item__title-label"},nC={key:0,class:"fox-collapse-item__title-sub"},oC=["innerHTML"],lC={key:0,class:"fox-collapse__item-extraWrapper"},aC={class:"fox-collapse__item-extraWrapper__extraRender"},rC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function sC(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",J1,[t.createElementVNode("view",_1,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,eC)),e.label?(t.openBlock(),t.createElementBlock("view",tC,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",nC,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,oC)),t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title-icon",{"fox-collapse-item__title-icon--expanded":e.expanded}]),style:t.normalizeStyle({transform:"rotate("+(e.expanded?e.rotate:0)+"deg)"})},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.icon))))],6)],2),e.$slots.extra?(t.openBlock(),t.createElementBlock("view",lC,[t.createElementVNode("div",aC,[t.renderSlot(e.$slots,"extra")])])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:t.normalizeStyle({willChange:"height",height:e.wrapperHeight}),onTransitionend:n[1]||(n[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[t.createElementVNode("view",rC,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const ia=_(Z1,[["render",sC]]),iC=t.defineComponent({setup(e){return()=>t.h("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:cC,create:dC,scope:uC}=X("table"),fC=dC({components:{RenderColumn:iC,DownArrow:ne.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:l}){const{t:o}=re.useFoxI18n(uC),a=t.reactive({curData:e.data}),r=t.computed(()=>({[cC]:!0})),s=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),i=y=>y.stylehead?y.stylehead:"",c=y=>y.stylecolumn?y.stylecolumn:"",u=y=>e.columns.filter(g=>g.key===y)[0],m=y=>{const g=e.columns.filter(b=>b.key===y);return g[0].stylecolumn?g[0].stylecolumn:""},f=y=>{y.sorter&&(n("sorter",y),a.curData=typeof y.sorter=="function"?a.curData.sort(y.sorter):y.sorter==="default"?a.curData.sort():a.curData)},h=()=>e.columns.map(y=>[y.key,y.render]);return t.watch(()=>e.data,y=>{a.curData=y.slice()}),{...t.toRefs(a),classes:r,cellClasses:s,getColumnItem:u,getColumnItemStyle:m,handleSorterClick:f,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),mC={class:"fox-table__main__head"},pC={class:"fox-table__main__head__tr"},hC=["onClick"],gC={class:"fox-table__main__body"},yC={key:1},kC={key:0,class:"fox-table__nodata"},bC={key:0,class:"fox-table__nodata__text"},SC={key:1,class:"fox-table__summary"},CC=["innerHTML"];function wC(e,n,l,o,a,r){const s=t.resolveComponent("DownArrow"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",mC,[t.createElementVNode("view",pC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:u=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,hC))),128))])]),t.createElementVNode("view",gC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([u,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(u))]),key:u,style:t.normalizeStyle(e.getColumnItemStyle(u))},[typeof c[u]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[m,c[u]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",yC,t.toDisplayString(c[u]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",kC,[t.createElementVNode("div",{class:t.normalizeClass(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[t.renderSlot(e.$slots,"nodata"),e.$slots.nodata?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",bC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",SC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,CC)])):t.createCommentVNode("",!0)],2)}const ca=_(fC,[["render",wC]]),{componentName:NC,create:BC}=X("ellipsis"),AC=BC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const l=t.ref(null);let o=null,a=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[NC]:!0}));t.watch(()=>e.content,(b,k)=>{b!=k&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!l.value)return;const b=window.getComputedStyle(l.value);o=document.createElement("div"),Array.prototype.slice.apply(b).forEach(p=>{o.style.setProperty(p,b.getPropertyValue(p))}),o.style.position="fixed",o.style.left="999999px",o.style.top="999999px",o.style.zIndex="-1000",o.style.height="auto",o.style.minHeight="auto",o.style.maxHeight="auto",o.style.textOverflow="clip",o.style.whiteSpace="normal",o.style.webkitLineClamp="unset",o.style.display="block";const d=h(b.lineHeight==="normal"?e.lineHeight:b.lineHeight);a=Math.floor(d*(Number(e.rows)+.5)+h(b.paddingTop)+h(b.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),u()},u=()=>{if(o.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const b=e.content.length,k=Math.floor((0+b)/2),d=e.direction==="middle"?f([0,k],[k,b]):m(0,b);r.value=d,document.body.removeChild(o)}},m=(b,k)=>{const d=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(k-b<=1)return e.direction==="end"?{leading:e.content.slice(0,b)+e.symbol}:{tailing:e.symbol+e.content.slice(k,p)};const S=Math.round((b+k)/2);return e.direction==="end"?o.innerText=e.content.slice(0,S)+e.symbol+d:o.innerText=d+e.symbol+e.content.slice(S,p),o.offsetHeight<=a?e.direction==="end"?m(S,k):m(b,S):e.direction==="end"?m(b,S):m(S,k)},f=(b,k)=>{const d=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(b[1]-b[0]<=1&&k[1]-k[0]<=1)return{leading:e.content.slice(0,b[0])+e.symbol,tailing:e.symbol+e.content.slice(k[1],p)};const S=Math.floor((b[0]+b[1])/2),C=Math.ceil((k[0]+k[1])/2);return o.innerText=e.content.slice(0,S)+e.symbol+d+e.symbol+e.content.slice(C,p),o.offsetHeight<=a?f([S,b[1]],[k[0],C]):f([b[0],S],[C,k[1]])},h=b=>{if(!b)return 0;const k=b.match(/^\d*(\.\d*)?/);return k?Number(k[0]):0},y=b=>{b==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},g=()=>{n("click")};return{...t.toRefs(s),root:l,ellipsis:r,classes:i,clickHandle:y,handleClick:g}}}),$C={key:0},TC={key:1},VC={key:2};function EC(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",$C,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",TC,[t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:n[0]||(n[0]=t.withModifiers(s=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",VC,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=t.withModifiers(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const da=_(AC,[["render",EC]]),{componentName:DC,create:IC}=X("animate"),xC=IC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:l,loop:o,action:a}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${DC}-${l.value}`]:a.value==="initial"||r.clicked?l.value:!1,loop:o.value}));const i=c=>{r.clicked=!0,o.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),qC={class:"fox-animate"};function MC(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",qC,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const ua=_(xC,[["render",MC]]),{componentName:zC,create:PC}=X("watermark"),LC=PC({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const l=t.reactive({base64Url:""}),{zIndex:o,gapX:a,gapY:r,width:s,height:i,rotate:c,image:u,imageWidth:m,imageHeight:f,content:h,fontStyle:y,fontWeight:g,fontColor:b,fontSize:k,fontFamily:d}=e,p=()=>{const C=document.createElement("canvas"),A=window.devicePixelRatio,N=C.getContext("2d"),T=`${(a+s)*A}px`,$=`${(r+i)*A}px`,P=s*A,V=i*A;if(C.setAttribute("width",T),C.setAttribute("height",$),N){if(u){N.translate(P/2,V/2),N.rotate(Math.PI/180*Number(c));const B=new Image;B.crossOrigin="anonymous",B.referrerPolicy="no-referrer",B.src=u,B.onload=()=>{N.drawImage(B,-m*A/2,-f*A/2,m*A,f*A),N.restore(),l.base64Url=C.toDataURL()}}else if(h){N.textBaseline="middle",N.textAlign="center",N.translate(P/2,V/2),N.rotate(Math.PI/180*Number(c));const B=Number(k)*A;N.font=`${y} normal ${g} ${B}px/${V}px ${d}`,N.fillStyle=b,N.fillText(h,0,0),N.restore(),l.base64Url=C.toDataURL()}}else throw new Error("当前环境不支持Canvas")};p(),t.watch(()=>[o,a,r,s,i,c,u,m,f,h,y,g,b,k,d],()=>{p()});const S=t.computed(()=>{const C=zC;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:S}}});function FC(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const fa=_(LC,[["render",FC]]);function RC(e,n=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,n))/Math.pow(10,n)).toFixed(n))}const{componentName:vC,create:OC}=X("trend-arrow"),KC=OC({components:{TriangleUp:ne.TriangleUp,TriangleDown:ne.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),l=t.computed(()=>({[vC]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const u=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${RC(Number(u),s)}%`}),a=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:u}=e;return{color:u===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:l,calcRate:o,calcStyle:a}}});function UC(e,n,l,o,a,r){const s=t.resolveComponent("TriangleUp"),i=t.resolveComponent("TriangleDown");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?t.renderSlot(e.$slots,"up-icon",{key:1},()=>[t.createVNode(s,{color:e.riseColor},null,8,["color"])]):t.createCommentVNode("",!0),Number(e.rate)!==0&&!e.rateTrend?t.renderSlot(e.$slots,"down-icon",{key:2},()=>[t.createVNode(i,{color:e.dropColor},null,8,["color"])]):t.createCommentVNode("",!0),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const ma=_(KC,[["render",UC]]),{create:HC}=X("tour"),jC=HC({components:{[Qt.name]:Qt,Close:ne.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),a=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:m,maskWidth:f,maskHeight:h}=e,{width:y,height:g,left:b,top:k}=o.value,d=[b+y/2,k+g/2],p=Number(f||y),S=Number(h||g);return{width:`${p+ +m[1]*2}px`,height:`${S+ +m[0]*2}px`,top:`${d[1]-S/2-+m[0]}px`,left:`${d[0]-p/2-+m[1]}px`}}),s=m=>{m=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,i()}),n("change",l.active)},i=()=>{const m=document.querySelector(`#${e.steps[l.active].target}`),f=Ee(m);o.value=f},c=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},u=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{l.active=0,i()}),t.watch(()=>e.modelValue,m=>{m&&i(),l.active=0,l.showTour=m,l.showPopup=m}),{...t.toRefs(l),classes:a,maskStyle:r,changeStep:s,close:c,handleClickMask:u}}}),WC={key:0,class:"fox-tour-content"},YC={key:0,class:"fox-tour-content-top"},XC={class:"fox-tour-content-inner"},QC={class:"fox-tour-content-bottom"},GC={class:"fox-tour-content-bottom-init"},ZC={class:"fox-tour-content-bottom-operate"},JC={key:1,class:"fox-tour-content fox-tour-content-tile"},_C={class:"fox-tour-content-inner"};function ew(e,n,l,o,a,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,style:{height:"0"}},[u==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[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),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=m=>e.showPopup=m),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",WC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",YC,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",XC,t.toDisplayString(c.content),1),t.createElementVNode("div",QC,[t.createElementVNode("div",GC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",ZC,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:n[2]||(n[2]=m=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...m)=>e.close&&e.close(...m))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=m=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",JC,[t.createElementVNode("div",_C,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const pa=_(jC,[["render",ew]]),{componentName:rA,create:tw,scope:nw}=X("address"),ow=tw({components:{Location:ne.Location,Location2:ne.Location2,Check:ne.Check,Close:ne.Close,Left:ne.Left,[de.name]:de,[Lt.name]:Lt},inheritAttrs:!1,props:{...Pe,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(nw),o=t.ref(null),a=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),u=t.ref(["province","city","country","town"]),m=t.ref(null),f=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),y=q=>{if(!Array.isArray(q))throw new TypeError("params muse be array.");if(!q.length)return[];q.forEach(x=>{if(!x.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const H=[];return q=q.sort((x,Y)=>x.title.localeCompare(Y.title)),q.forEach(x=>{const Y=H.findIndex(j=>j.title===x.title);Y<=-1?H.push({title:x.title,list:[].concat(x)}):H[Y].list.push(x)}),H};let g=t.ref([]),b=t.reactive({});const k=t.ref("self"),d=t.ref(20),p=()=>{const q=e.modelValue,H=q.length;if(H>0){if(i.value=H-1,h.value.length==0){i.value=0;return}for(let x=0;x<H;x++){let Y=[];switch(x){case 0:Y=e.province;break;case 1:Y=e.city;break;case 2:Y=e.country;break;default:Y=e.town}g.value[x]=Y.filter(j=>j.id==q[x])[0]}C()}},S=(q,H)=>q&&q.name||i.value<H&&q?q.name:e.columnsPlaceholder[H]||l("select"),C=()=>{T(),t.nextTick(()=>{const q=a.value&&a.value.getElementsByClassName("active")[0];if(q){const H=q.offsetLeft;d.value=H||20}})},A=q=>{const H=i.value;c.value=i.value;const x={custom:u.value[H]};g.value[H]=q;for(let Y=H+2;Y<4;Y++)g.value.splice(Y,1);H<3?(i.value=H+1,C(),x.next=u.value[i.value],x.value=q,n("change",x)):(V(),n("update:modelValue"))},N=(q,H)=>{c.value=i.value,S(q,H)&&(i.value=H,C())},T=()=>{const q=m.value,H=c.value,x=f.value[i.value];q?.scrollTop&&(f.value[H]=q?.scrollTop),t.nextTick(()=>{q?.scrollTo({top:x,behavior:"auto"})})},$=q=>{const H=e.existAddress;let x={};H.forEach(Y=>{Y&&Y.selectedAddress&&(x=Y),Y.selectedAddress=!1}),q.selectedAddress=!0,b=q,n("selected",x,q,H),V()},P=()=>{g.value=[],i.value=0,C()},V=(q="self")=>{k.value=q=="cross"?"cross":"self",r.value=!1},B=()=>{k.value="mask"},L=()=>{const q={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},H={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(x=>{const Y=g.value[x];q.addressIdStr+=`${x?"_":""}${Y&&Y.id||0}`,q.addressStr+=Y&&Y.name||""}),H.data=q):H.data=b,P(),k.value=="self"?n("close",H):n("close-mask",{closeWay:k}),n("update:visible",!1)},F=()=>{const q=s.value;s.value=q=="exist"?"custom":"exist",P(),n("switch-module",{type:s.value})},I=(q,H)=>{A(H)};return t.watch(()=>e.visible,q=>{r.value=q}),t.watch(()=>r.value,q=>{q&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:u,selectedRegion:g,switchModule:F,closeWay:k,close:L,getTabName:S,nextAreaList:A,regionLine:o,tabRegion:a,lineDistance:d,changeRegionTab:N,selectedExist:$,clickOverlay:B,handClose:V,handleElevatorItem:I,initCustomSelected:p,...t.toRefs(e),t:l,regionList:h,transformData:y,scrollDom:m}}}),lw={class:"fox-address"},aw={class:"fox-address__header"},rw={class:"fox-address__header__title"},sw={key:0,class:"fox-address__custom"},iw={class:"fox-address__region",ref:"tabRegion"},cw=["onClick"],dw={key:0,class:"active fox-address__region-item"},uw={key:0,class:"fox-address__detail"},fw={class:"fox-address__detail-list",ref:"scrollDom"},mw=["onClick"],pw={key:1,class:"fox-address__elevator-group"},hw={key:1,class:"fox-address__exist"},gw={class:"fox-address__exist-group"},yw={class:"fox-address__exist-group-list"},kw=["onClick"],bw={class:"fox-address__exist-item-info"},Sw={key:0,class:"fox-address__exist-item-info-name"},Cw={key:1,class:"fox-address__exist-item-info-phone"},ww={class:"fox-address__exist-item-info-bottom"},Nw={class:"fox-address__exist-choose-btn"};function Bw(e,n,l,o,a,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),u=t.resolveComponent("fox-elevator"),m=t.resolveComponent("Location2"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",lw,[t.createElementVNode("view",aw,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:n[0]||(n[0]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.renderSlot(e.$slots,"back-icon",{},()=>[t.withDirectives(t.createVNode(s,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),t.createElementVNode("view",rw,t.toDisplayString(e.privateType=="custom"?e.customAddressTitle||e.t("selectRegion"):e.existAddressTitle||e.t("deliveryTo")),1),t.createElementVNode("view",{class:"fox-address__header-close",onClick:n[1]||(n[1]=h=>e.handClose("cross"))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?(t.openBlock(),t.createElementBlock("view",sw,[t.createElementVNode("view",iw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,y)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",y==e.tabIndex?"active":""]),key:y,onClick:g=>e.changeRegionTab(h,y)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,y)),1)],10,cw))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",dw,[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(null,e.selectedRegion.length)),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-address__region-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),e.privateType=="custom"?(t.openBlock(),t.createElementBlock("view",uw,[t.createElementVNode("ul",fw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,y)=>(t.openBlock(),t.createElementBlock("li",{key:y,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:g=>e.nextAreaList(h)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==h.id?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(h.name),1)])],10,mw))),128))],512)])):(t.openBlock(),t.createElementBlock("view",pw,[t.createVNode(u,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",hw,[t.createElementVNode("div",gw,[t.createElementVNode("ul",yw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,y)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:y,onClick:g=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(m,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",bw,[h.name?(t.openBlock(),t.createElementBlock("div",Sw,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",Cw,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",ww,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,kw))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:n[2]||(n[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.createElementVNode("div",Nw,t.toDisplayString(e.customAndExistTitle||e.t("chooseAnotherAddress")),1)])):t.createCommentVNode("",!0)])),t.renderSlot(e.$slots,"bottom")])]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","teleportDisable","teleport"])}const ha=_(ow,[["render",Bw]]),{componentName:Aw,create:$w}=X("barrage"),Tw=$w({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),l=!!t.useSlots().default,o=t.computed(()=>({[Aw]:!0}));let a=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),u=t.ref(e.top),m=t.ref(0),f=e.speeds,h=t.ref(0);t.onMounted(()=>{y(),l&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(b(),m.value=0,g("hidden")):document.visibilityState==="visible"&&y()})}),t.onUnmounted(()=>{i.value=[],b()});const y=()=>{h.value=a.value.offsetWidth,l&&g("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),d()},300)},g=S=>{let A=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const N=[];A&&Array.from(A).forEach(T=>{S=="init"?(T.style.opacity="0",N.push(T)):(T.classList="",T.style={})}),S=="init"&&(i.value=N)},b=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,S=>{e.danmu.length>0&&(i.value=[...S])});const k=S=>{const C=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,S):i.value.splice(C,0,S)},d=()=>{b(),s=setTimeout(()=>{p()},e.frequency)},p=()=>{const S=e.loop?m.value%i.value.length:m.value;let C=document.createElement("view");l&&typeof i.value[S]=="object"?(C=i.value[S],C?.classList?.add("fox-barrage__item")):(C.innerHTML=i.value[S],C.classList.add("fox-barrage__item"),r.value.appendChild(C)),t.nextTick(()=>{const A=C.offsetHeight;if(C?.classList?.add("move"),C.style.animationDuration=`${f}ms`,C.style.top=S%c.value*(A+u.value)+20+"px",C.style.opacity="1",!l){const N=C.offsetWidth;C.style.width=N+20+"px"}C.addEventListener("animationend",()=>{l?C.classList.remove("move"):r.value.removeChild(C)}),!(!e.loop&&m.value>=i.value.length-1)&&(m.value++,m.value>=i.value.length&&(m.value=0),C.removeEventListener("animationend",()=>{}),d())})};return{classTime:n,classes:o,danmuList:i,dmBody:a,dmContainer:r,add:k}}});function Vw(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("div",{ref:"dmContainer",class:t.normalizeClass(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["slotBody","slotBody"+e.classTime])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)],2)}const ga=_(Tw,[["render",Vw]]),{componentName:Ew,create:Dw,scope:Iw}=X("signature"),xw=Dw({props:{customClass:{type:String,default:""},lineWidth:{type:Number,default:2},strokeStyle:{type:String,default:()=>document.getElementsByTagName("body")[0].className.indexOf("fox-theme-dark")==-1?"#000":"#fff"},type:{type:String,default:"png"},unSupportTpl:{type:String,default:""}},components:{[Me.name]:Me},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:l}=re.useFoxI18n(Iw),o=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[Ew]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let p=document.createElement("canvas");return!!(p.getContext&&p.getContext("2d"))},u=()=>{a.value.addEventListener(i.events[0],m,!1)},m=p=>{p.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),a.value.addEventListener(i.events[1],f,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],y,!1)},f=p=>{p.preventDefault();let S=i.isSupportTouch?p.touches[0]:p;n("signing",S);let C=a.value.getBoundingClientRect(),A=S.clientX-C.left,N=S.clientY-C.top;i.ctx.lineTo(A,N),i.ctx.stroke()},h=p=>{p.preventDefault(),n("end"),a.value.removeEventListener(i.events[1],f,!1),a.value.removeEventListener(i.events[2],h,!1)},y=p=>{p.preventDefault(),a.value.removeEventListener(i.events[1],f,!1),a.value.removeEventListener(i.events[2],h,!1)},g=()=>{a.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},b=()=>{d(a.value)},k=p=>{if(!p)return!0;var S=document.createElement("canvas");return S.width=p.width,S.height=p.height,p?.toDataURL()==S.toDataURL()},d=p=>{let S;switch(e.type){case"png":S=p.toDataURL("image/png");break;case"jpg":S=p.toDataURL("image/jpeg",.8);break}const C=k(p)?"请绘制签名":p,A=k(p)?"":S;n("confirm",C,A)};return t.onMounted(()=>{c()&&(i.ctx=a.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,u())}),{...o,...t.toRefs(i),canvas:a,wrap:r,isCanvasSupported:c,confirm:b,clear:g,classes:s}}}),qw={class:"fox-signature-inner",ref:"wrap"},Mw=["height","width"],zw={key:0,class:"fox-signature-unsopport"};function Pw(e,n,l,o,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",qw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,Mw),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",zw,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(s,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const ya=_(xw,[["render",Pw]]),{componentName:Lw,create:Fw,scope:Rw}=X("time-select"),vw=Fw({components:{[de.name]:de},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,n)=>{const{t:l}=re.useFoxI18n(Rw),o=t.computed(()=>({[Lw]:!0})),a=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{n.emit("update:visible",!1),n.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:o,popStyle:a,props:e,close:i,t:l}}}),Ow={class:"fox-time-select__title"},Kw={class:"fox-time-select__title__fixed"},Uw={key:0},Hw={class:"fox-time-select__content"},jw={class:"fox-time-select__content__pannel"},Ww={class:"fox-time-select__content__detail"};function Yw(e,n,l,o,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{position:"bottom",closeable:"",round:"",teleportDisable:e.teleportDisable,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Ow,[t.createElementVNode("view",Kw,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",Uw,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",Hw,[t.createElementVNode("view",jw,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",Ww,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const ka=_(vw,[["render",Yw]]),{componentName:Xw,create:Qw}=X("time-pannel"),Gw=Qw({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const l=t.inject("currentKey"),o=t.reactive({currentKey:l}),a=t.computed(()=>({[Xw]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:a,handlePannel:r}}});function Zw(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const ba=_(Gw,[["render",Zw]]),{componentName:Jw,create:_w}=X("time-detail"),eN=_w({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,n)=>{const l=t.inject("currentKey"),o=t.inject("currentTime"),a=t.reactive({currentKey:l,currentTime:o}),r=t.computed(()=>({[Jw]:!0})),s=u=>{let m=a.currentTime.find(f=>f.key==a.currentKey);if(m)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":m.list.filter(f=>f===u).length>0}},i=t.computed(()=>e.times.find(u=>u.key==a.currentKey).list),c=u=>{n.emit("select",u)};return{classes:r,...t.toRefs(a),getClass:s,renderData:i,handleTime:c}}}),tN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},nN={class:"fox-time-detail__detail__list"},oN=["onClick"];function lN(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",tN,[t.createElementVNode("view",nN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(s)),key:s,onClick:i=>e.handleTime(s)},t.toDisplayString(s),11,oN))),128))])])],2)}const Sa=_(eN,[["render",lN]]),{componentName:sA,create:aN,scope:rN}=X("sku-header"),sN=aN({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ge.name]:Ge},setup(e,{emit:n,slots:l}){const{t:o}=re.useFoxI18n(rN);return{getSlots:r=>l[r],t:o}}}),iN={class:"fox-sku-header"},cN=["src"],dN={class:"fox-sku-header-right"},uN={key:3,class:"fox-sku-header-right-extra"};function fN(e,n,l,o,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",iN,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,cN),t.createElementVNode("view",dN,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.goods.price,needSymbol:!0,thousands:!1},null,8,["price"])),e.getSlots("sku-header-extra")?t.renderSlot(e.$slots,"sku-header-extra",{key:2}):t.createCommentVNode("",!0),e.goods.skuId&&!e.getSlots("sku-header-extra")?(t.openBlock(),t.createElementBlock("view",uN,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const mN=_(sN,[["render",fN]]),{componentName:iA,create:pN}=X("sku-select"),hN=pN({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const l=t.ref([]);return t.watch(()=>e.sku,a=>{l.value=[].slice.call(a)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(l.value=[].slice.call(e.sku))}),{skuInfo:l,changeSaleChild:(a,r,s,i)=>{a.checkFlag||a.disable||n("selectSku",{sku:a,skuIndex:r,parentSku:s,parentIndex:i})}}}}),gN={class:"fox-sku-select"},yN={class:"fox-sku-select-item-title"},kN={class:"fox-sku-select-item-skus"},bN=["onClick"];function SN(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",gN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:s.id},[t.createElementVNode("view",yN,t.toDisplayString(s.name),1),t.createElementVNode("view",kN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:m=>e.changeSaleChild(c,u,s,i),key:c.name},t.toDisplayString(c.name),11,bN))),128))])]))),128))])}const CN=_(hN,[["render",SN]]),{componentName:cA,create:wN}=X("sku-stepper"),NN=wN({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"购买数量"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],components:{[Ze.name]:Ze},setup(e,{emit:n}){const l=t.ref(e.stepperMin);return t.onMounted(()=>{l.value=e.stepperMin}),{goodsCount:l,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,u)=>{n("overLimit",{action:u,value:parseInt(l.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&tt(c)=="function"?c():""},changeStepper:c=>{l.value=c,n("changeStepper",c)}}}}),BN={class:"fox-sku-stepper"},AN={class:"fox-sku-stepper-title"},$N=["innerHTML"],TN={class:"fox-sku-stepper-count"};function VN(e,n,l,o,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",BN,[t.createElementVNode("view",AN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,$N),t.createElementVNode("view",TN,[t.createVNode(s,{modelValue:e.goodsCount,"onUpdate:modelValue":n[0]||(n[0]=i=>e.goodsCount=i),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}const EN=_(NN,[["render",VN]]),{componentName:dA,create:DN}=X("sku-operate"),IN=DN({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"立即购买"},addCartText:{type:String,default:"加入购物车"},confirmText:{type:String,default:"确定"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:n,slots:l}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{n("clickBtnOperate",s)},getSlots:s=>l[s]}}}),xN={key:0,class:"fox-sku-operate"},qN={key:0,class:"fox-sku-operate-desc"},MN={key:1,class:"fox-sku-operate-btn"},zN=["onClick"];function PN(e,n,l,o,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",xN,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",qN,t.toDisplayString(e.btnExtraText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"operate-btn"),e.getSlots("operate-btn")?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",MN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${s}`,"fox-sku-operate-btn-item"]),key:i,onClick:c=>e.clickBtnOperate(s)},t.toDisplayString(e.getBtnDesc(s)),11,zN))),128))]))])):t.createCommentVNode("",!0)}const LN=_(IN,[["render",PN]]),{componentName:uA,create:FN,scope:RN}=X("sku"),vN=FN({props:{...Pe,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","select-sku","change-stepper","click-btn-operate","click-close-icon","click-overlay","close","reduce","add","over-limit"],components:{SkuHeader:mN,SkuSelect:CN,SkuStepper:EN,SkuOperate:LN,[de.name]:de},setup(e,{emit:n,slots:l}){const{toLocaleRefs:o}=re.useFoxI18n(RN),a=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,k=>{r.value=k}),t.watch(()=>r.value,k=>{k==!1&&b()}),t.onMounted(()=>{});const i=k=>l[k],c=k=>{n("select-sku",k)},u=k=>{s.value=k,n("change-stepper",k)},m=k=>{n("add",k)},f=k=>{n("reduce",k)},h=k=>{n("over-limit",k)},y=k=>{n("click-btn-operate",{type:k,value:s.value})},g=k=>{k=="icon"&&n("click-close-icon"),k=="overlay"&&n("click-overlay"),k=="close"&&n("close"),r.value=!1},b=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:u,stepperOverLimit:h,clickBtnOperate:y,add:m,reduce:f,getSlots:i,...a}}}),ON={class:"fox-sku"},KN={class:"fox-sku-content"};function UN(e,n,l,o,a,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),u=t.resolveComponent("sku-operate"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=f=>e.showPopup=f),onClickCloseIcon:n[1]||(n[1]=f=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=f=>e.closePopup("overlay")),onClose:n[3]||(n[3]=f=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",ON,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,goods:e.goods},t.createSlots({_:2},[e.getSlots("sku-header-price")?{name:"sku-header-price",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-price")]),key:"0"}:void 0,e.getSlots("sku-header-extra")?{name:"sku-header-extra",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-extra")]),key:"1"}:void 0]),1032,["goods"])),t.createElementVNode("view",KN,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(u,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const Ca=_(vN,[["render",UN]]),{create:HN}=X("card"),jN=HN({components:{[Ge.name]:Ge,[Xt.name]:Xt},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:n,slots:l}){return{isHaveSlot:a=>l[a]}}}),WN={class:"fox-card"},YN={class:"fox-card__left"},XN=["src"],QN={class:"fox-card__right"},GN={class:"fox-card__right__title"},ZN={key:0,class:"fox-card__right__price"},JN={class:"fox-card__right__other"},_N={class:"fox-card__right__shop"},eB={class:"fox-card__right__shop__name"};function tB(e,n,l,o,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",WN,[t.createElementVNode("div",YN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,XN)]),t.createElementVNode("div",QN,[t.createElementVNode("div",GN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",ZN,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(s,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",JN,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(i,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(i,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",_N,[t.createElementVNode("div",eB,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const wa=_(jN,[["render",tB]]),{create:nB,scope:oB}=X("ecard"),lB=nB({components:{[Ze.name]:Ze},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(oB),o=t.ref(null),a=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,y)=>{o.value=y,s.value=e.cardAmountMin,a.value=h.price,n("change",h),n("update:modelValue",h.price)},u=h=>{let g=h.target.value.replace(/[^\d]/g,"");r.value=g,a.value=g,Number(g)>e.cardAmountMax&&(r.value=e.cardAmountMax,a.value=e.cardAmountMax),Number(g)<e.cardAmountMin&&(r.value=e.cardAmountMin,a.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},m=()=>{o.value="input",s.value=e.cardAmountMin,a.value=r.value,n("update:modelValue",r.value),n("inputClick")},f=h=>{s.value=h,n("changeStep",s.value,a.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:f,change:u,inputClick:m,stepValue:s,currentIndex:o,inputValue:r,money:i,t:l}}}),aB={class:"fox-ecard"},rB={class:"fox-ecard__title"},sB={class:"fox-ecard__list"},iB=["onClick"],cB={class:"fox-ecard__list__input--con"},dB=["placeholder"],uB={class:"fox-ecard__list__step"};function fB(e,n,l,o,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",aB,[t.createElementVNode("view",rB,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",sB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:u=>e.handleClick(i,c)},t.toDisplayString(i.price),11,iB))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",cB,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=i=>e.inputValue=i),onInput:n[1]||(n[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,dB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",uB,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const Na=_(lB,[["render",fB]]),{create:mB,scope:pB}=X("address-list-item"),hB=mB({components:{Del:ne.Del,Edit:ne.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(pB);return{delClick:s=>{n("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{n("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{n("clickItem",s,e.item),s.stopPropagation()},t:l}}}),gB={class:"fox-address-list-item__info"},yB={class:"fox-address-list-item__info-contact"},kB={class:"fox-address-list-item__info-contact-name"},bB={class:"fox-address-list-item__info-contact-tel"},SB={key:0,class:"fox-address-list-item__info-contact-default"},CB={class:"fox-address-list-item__info-handle"},wB={class:"fox-address-list-item__addr"};function NB(e,n,l,o,a,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:n[0]||(n[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",gB,[t.createElementVNode("div",yB,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",kB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",bB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",SB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",CB,[t.renderSlot(e.$slots,"content-icon",{},()=>[t.createVNode(s,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(i,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",wB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Is=_(hB,[["render",NB]]),{create:BB}=X("address-list-general"),AB=BB({props:{item:{type:Object,default:{}},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1}},emits:["delIcon","editIcon","clickItem","longDown","longCopy","longSet","longDel","swipeDel"],components:{ItemContents:Is,[Me.name]:Me,[vt.name]:vt},setup(e,{emit:n}){const l=()=>t.h(Is,{item:e.item,onDelIcon(A){s(A)},onEditIcon(A){i(A)},onClickItem(A){c(A)}});let o=null;const a=t.ref(!1),r=t.ref(!1),s=A=>{n("delIcon",A,e.item),A.stopPropagation()},i=A=>{n("editIcon",A,e.item),A.stopPropagation()},c=A=>{a.value||(n("clickItem",A,e.item),A.stopPropagation())},u=A=>{n("longDel",A,e.item),A.stopPropagation()},m=A=>{o=0,r.value=!0,n("longDown",A,e.item)};return{renderCompontent:l,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:u,holddownstart:A=>{o=setTimeout(()=>{m(A)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:A=>{n("longCopy",A,e.item),A.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:A=>{n("longSet",A,e.item),A.stopPropagation()},maskClick:A=>{o!=0&&(r.value=!1),A.stopPropagation(),A.preventDefault()},swipeDelClick:A=>{n("swipeDel",A,e.item),A.stopPropagation()},swipestart:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),$B={key:0,class:"fox-address-list-general"},TB={class:"fox-address-list-swipe"};function VB(e,n,l,o,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(i,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[t.createTextVNode("删除")]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",TB,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchmove:e.swipemove,onTouchstart:e.swipestart},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchmove","onTouchstart"]))])]),_:3})):(t.openBlock(),t.createElementBlock("div",$B,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchstart:e.holddownstart,onTouchend:e.holddownend,onTouchmove:e.holddownmove},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchstart","onTouchend","onTouchmove"])),e.longPress&&e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list-general__mask",onClick:n[3]||(n[3]=(...c)=>e.maskClick&&e.maskClick(...c))},[t.renderSlot(e.$slots,"longpress-all",{},()=>[t.createElementVNode("div",{class:"fox-address-list-general__mask-copy",onClick:n[0]||(n[0]=(...c)=>e.copyCLick&&e.copyCLick(...c))},"复制地址"),t.createElementVNode("div",{class:"fox-address-list-general__mask-set",onClick:n[1]||(n[1]=(...c)=>e.setDefault&&e.setDefault(...c))},"设置默认"),t.createElementVNode("div",{class:"fox-address-list-general__mask-del",onClick:n[2]||(n[2]=(...c)=>e.delLongClick&&e.delLongClick(...c))},"删除地址")])])):t.createCommentVNode("",!0),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-address-list__mask-bottom",onClick:n[4]||(n[4]=(...c)=>e.hideMaskClick&&e.hideMaskClick(...c))})):t.createCommentVNode("",!0)]))}const EB=_(AB,[["render",VB]]),{componentName:DB,create:IB,scope:xB}=X("address-list"),qB=IB({props:{data:{type:Array,default:[]},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1},showBottomButton:{type:Boolean,default:!0},dataOptions:{type:Object,default:{}}},components:{GeneralShell:EB,[Me.name]:Me},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(xB),o=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[DB]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(b=>Qa(a,b,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(b,k)=>{n("delIcon",b,k),b.stopPropagation()},c=(b,k)=>{n("editIcon",b,k),b.stopPropagation()},u=(b,k)=>{n("clickItem",b,k),b.stopPropagation()},m=(b,k)=>{n("longCopy",b,k),b.stopPropagation()},f=(b,k)=>{n("longSet",b,k),b.stopPropagation()},h=(b,k)=>{n("longDel",b,k),b.stopPropagation()},y=(b,k)=>{n("swipeDel",b,k),b.stopPropagation()},g=b=>{n("add",b),b.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:u,clickLongCopy:m,clickLongSet:f,clickLongDel:h,clickSwipeDel:y,addAddress:g,dataArray:o,t:l}}});function MB(e,n,l,o,a,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,u)=>(t.openBlock(),t.createBlock(s,{key:u,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:n[0]||(n[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const Ba=_(qB,[["render",MB]]),{componentName:fA,create:zB}=X("category"),PB=zB({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:n,slots:l}){const o=t.ref(0),a=t.ref(!1);return{getChildList:s=>{o.value=s,n("change",s)},checkIndex:o,categoryLeft:a}}}),LB={class:"fox-category"},FB={class:"fox-category__cateList"},RB={key:0},vB=["onClick"];function OB(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",LB,[t.createElementVNode("div",FB,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",RB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:i},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==i?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(i)},t.toDisplayString(s.catName),11,vB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Aa=_(PB,[["render",OB]]),{componentName:mA,create:KB}=X("category-pane"),UB=KB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),HB={class:"fox-category-pane"},jB={key:0,class:"fox-category-pane__cateListRight"},WB={class:"fox-category-pane__childTitle"},YB={key:0,class:"fox-category-pane__childItemList"},XB=["onClick"],QB=["src"],GB={class:"fox-category-pane__skuImg"},ZB={key:1,class:"fox-category-pane__cateListRight"},JB={class:"fox-category-pane__childTitle"},_B={key:0,class:"fox-category-pane__childItemList"},e2=["onClick"],t2={class:"fox-category-pane__skuName"},n2={key:2,class:"fox-category-pane__selfItemList"},o2=["onClick"];function l2(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",HB,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",jB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",WB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",YB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:m=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,QB),t.createElementVNode("div",GB,t.toDisplayString(c?.catName),1)],8,XB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",ZB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",JB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",_B,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:m=>e.onChange(c)},[t.createElementVNode("div",t2,t.toDisplayString(c?.catName),1)],8,e2))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",n2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__skuName",key:i,onClick:c=>e.onChange(s)},t.toDisplayString(s?.catName),9,o2))),128))])):t.createCommentVNode("",!0)])}const $a=_(UB,[["render",l2]]),{componentName:pA,create:a2}=X("comment-header"),r2=a2({components:{[kt.name]:kt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),s2={class:"fox-comment-header__user"},i2={class:"fox-comment-header__user-avter"},c2=["src"],d2={class:"fox-comment-header__user-score"},u2={key:0,class:"fox-comment-header__time"};function f2(e,n,l,o,a,r){const s=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:n[1]||(n[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",s2,[t.createElementVNode("view",i2,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,c2)):t.createCommentVNode("",!0)]),e.type=="default"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},[t.createElementVNode("span",null,t.toDisplayString(e.info.nickName),1),t.renderSlot(e.$slots,"labels")],2),t.createElementVNode("view",d2,[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":n[0]||(n[0]=i=>e.info.score=i),size:"12",spacing:"5",readonly:"",onChange:e.handleClick},null,8,["modelValue","onChange"])])],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("span",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},t.toDisplayString(e.info.nickName),3),t.renderSlot(e.$slots,"labels")],2))]),e.info.time?(t.openBlock(),t.createElementBlock("view",u2,t.toDisplayString(e.info.time),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.type=="complex"?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__${e.type}-score`])},[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":n[2]||(n[2]=i=>e.info.score=i),size:"12",spacing:"3",readonly:""},null,8,["modelValue"]),t.createElementVNode("i",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-i`])},null,2),t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-size`])},t.toDisplayString(e.info.size),3)],2)):t.createCommentVNode("",!0)])}const m2=_(r2,[["render",f2]]),{componentName:hA,create:p2}=X("comment-images"),h2=p2({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:ne.Right},emits:["click","clickImages"],setup(e,{emit:n}){const l=t.ref(!1),o=t.ref(1),a=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),a.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),a.value=e.videos.concat(e.images)}),{isShowImage:l,initIndex:o,showImages:(s,i)=>{const{videos:c,images:u}=e,m=s=="img"?i-c.length:i;n("clickImages",{type:s,index:m,value:s=="img"?u[m]:c[m]})},totalImages:a}}}),g2=["onClick"],y2=["src"],k2=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),b2=["onClick"],S2=["src"],C2={key:0,class:"fox-comment-images__mask"};function w2(e,n,l,o,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:u=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,y2),k2],8,g2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:u=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,S2),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",C2,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,b2)):t.createCommentVNode("",!0)],64))),128))],2)}const N2=_(h2,[["render",w2]]),{componentName:gA,create:B2,scope:A2}=X("comment-bottom"),$2=B2({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:ne.Fabulous,Comment:ne.Comment,MoreX:ne.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(A2),o=t.ref(!1),a=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&a.value.push(c)})}),{showPopver:o,operate:i=>{i=="more"&&(o.value=!o.value),n("clickOperate",i)},mergeOp:a,handleClick:()=>{n("handleClick")},t:l}}}),T2={class:"fox-comment-bottom"},V2={key:0},E2={class:"fox-comment-bottom__cpx"},D2=["onClick"];function I2(e,n,l,o,a,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",T2,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",V2,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",E2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(u,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${u}`]),onClick:f=>e.operate(u)},[u!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[u]),1),u=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),u=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=f=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,D2))),128))])])}const x2=_($2,[["render",I2]]),{componentName:q2,create:M2,scope:z2}=X("comment"),P2=M2({props:{headerType:{type:String,default:"default"},imagesRows:{type:String,default:"one"},ellipsis:{type:[String,Number,Boolean],default:!1},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]},info:{type:Object,default:()=>({})},follow:{type:Object,default:()=>({})},labels:{type:Function,default:()=>""},operation:{type:Array,default:["replay","like","more"]}},components:{CommentHeader:m2,CommentImages:N2,CommentBottom:x2,Right:ne.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(z2),o=t.computed(()=>({[q2]:!0})),a=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:o,conEllipsis:a,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:l}}}),L2=["innerHTML"],F2={class:"fox-comment__follow-title"},R2={class:"fox-comment__follow-com"},v2={key:0,class:"fox-comment__follow-img"};function O2(e,n,l,o,a,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),u=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...m)=>e.handleClick&&e.handleClick(...m)),innerHTML:e.info.content},null,12,L2),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...m)=>e.handleClick&&e.handleClick(...m))},[t.createElementVNode("view",F2,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",R2,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",v2,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(u,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const Ta=_(P2,[["render",O2]]),K2=[go,ko,bo,So,No,Ce,$o,To,Vo,Eo,Io,An,Mo,Lo,Oo,Ho,xn,qn,jo,zn,Pn,Yo,Qo,lt,Go,Jo,Kn,el,nl,ol,ll,al,il,cl,st,dl,ul,fl,ml,pl,Me,hl,gl,at,de,yl,kl,bl,Sl,Dt,Cl,wl,Nl,Bl,Al,$l,Tl,Vl,El,Lt,Dl,It,xt,Il,xl,ql,Ml,Ft,On,Tn,In,Dn,Ze,kt,ht,zl,Pl,Ll,vt,Fl,Rl,vl,Ot,vn,Ol,Hl,Fn,Ct,Yl,Xl,Yt,Ql,Gl,Rt,Zl,Jl,_l,wt,ea,ta,Nt,Bt,Ge,jn,oa,la,aa,Xt,Qt,ra,sa,ia,ca,da,ua,fa,ma,pa,ha,ga,ya,ka,ba,Sa,Ca,wa,Na,Ba,Aa,$a,Ta],U2=new ui(K2,"4.0.0");w.ActionSheet=Fl,w.ActionsheetItem=el,w.ActionsheetPane=Kn,w.Address=ha,w.AddressList=Ba,w.Animate=ua,w.Audio=Yl,w.AudioOperate=Xl,w.Avatar=Yt,w.AvatarGroup=Ql,w.BackTop=Rl,w.Badge=aa,w.Barrage=ga,w.Broadcast=io,w.BroadcastKey=Se,w.Button=Me,w.Calendar=In,w.CalendarItem=Ho,w.Card=wa,w.Cascader=Tn,w.CascaderItem=Lo,w.Category=Aa,w.CategoryPane=$a,w.Cell=hl,w.CellGroup=gl,w.Checkbox=zn,w.CheckboxGroup=Pn,w.CheckboxItem=Yo,w.CircleProgress=Zl,w.Col=bl,w.Collapse=sa,w.CollapseItem=ia,w.Comment=Ta,w.Content=So,w.CountDown=la,w.CountUp=oa,w.DataItemsKey=ut,w.DateItem=Oo,w.DatePicker=Dn,w.DateUtils=le,w.Dialog=Ot,w.Divider=Cl,w.Domain=sn,w.DomainKey=xe,w.DomainProvider=ml,w.Drag=vl,w.Ecard=Na,w.Elevator=Lt,w.Ellipsis=da,w.Empty=_l,w.FixedNav=Al,w.FloatingButton=cl,w.FooterBar=bo,w.FoxActionSheet=Fl,w.FoxActionsheetItem=el,w.FoxActionsheetPane=Kn,w.FoxAddress=ha,w.FoxAddressList=Ba,w.FoxAnimate=ua,w.FoxAudio=Yl,w.FoxAudioOperate=Xl,w.FoxAvatar=Yt,w.FoxAvatarGroup=Ql,w.FoxBackTop=Rl,w.FoxBadge=aa,w.FoxBarrage=ga,w.FoxButton=Me,w.FoxCalendar=In,w.FoxCalendarItem=Ho,w.FoxCard=wa,w.FoxCascader=Tn,w.FoxCascaderItem=Lo,w.FoxCategory=Aa,w.FoxCategoryPane=$a,w.FoxCell=hl,w.FoxCellGroup=gl,w.FoxCheckbox=zn,w.FoxCheckboxGroup=Pn,w.FoxCheckboxItem=Yo,w.FoxCircleProgress=Zl,w.FoxCol=bl,w.FoxCollapse=sa,w.FoxCollapseItem=ia,w.FoxComment=Ta,w.FoxContent=So,w.FoxCountDown=la,w.FoxCountUp=oa,w.FoxDateItem=Oo,w.FoxDatePicker=Dn,w.FoxDialog=Ot,w.FoxDivider=Cl,w.FoxDomainProvider=ml,w.FoxDrag=vl,w.FoxEcard=Na,w.FoxElevator=Lt,w.FoxEllipsis=da,w.FoxEmpty=_l,w.FoxFixedNav=Al,w.FoxFloatingButton=cl,w.FoxFooterBar=bo,w.FoxGrid=wl,w.FoxGridItem=Nl,w.FoxGroup=No,w.FoxHeaderBar=ko,w.FoxHintText=lt,w.FoxImage=yl,w.FoxImagePreview=jn,w.FoxIndicator=Il,w.FoxInfiniteLoading=vn,w.FoxInputItem=Vo,w.FoxInputNumber=Ze,w.FoxInputnumberItem=nl,w.FoxItem=Ce,w.FoxLayout=kl,w.FoxLinkItem=Go,w.FoxList=Gl,w.FoxMapping=fl,w.FoxMenu=$l,w.FoxMenuItem=Tl,w.FoxMessageBox=st,w.FoxMoneyItem=Eo,w.FoxNavbar=Bl,w.FoxNoticeBar=Jl,w.FoxNotify=Hl,w.FoxNumberKeyboard=Ll,w.FoxOverLay=at,w.FoxPage=go,w.FoxPagination=Dl,w.FoxPicker=ht,w.FoxPickerItem=Mo,w.FoxPopover=Qt,w.FoxPopup=de,w.FoxPopupWrapper=dl,w.FoxPrice=Ge,w.FoxProgress=Rt,w.FoxPullRefresh=Ol,w.FoxRadio=xn,w.FoxRadioGroup=qn,w.FoxRadioItem=jo,w.FoxRange=Ft,w.FoxRate=kt,w.FoxRateItem=Jo,w.FoxRollingProvider=pl,w.FoxRow=Sl,w.FoxRowItem=$o,w.FoxSearchBar=On,w.FoxShortPassword=zl,w.FoxSideNavBar=xl,w.FoxSideNavBarItem=ql,w.FoxSignature=ya,w.FoxSkeleton=ra,w.FoxSku=Ca,w.FoxSlotItem=To,w.FoxStep=ta,w.FoxSteps=ea,w.FoxStepsBar=il,w.FoxSticky=Dt,w.FoxSubSideNavBar=Ml,w.FoxSwipe=vt,w.FoxSwiper=Nt,w.FoxSwiperItem=Bt,w.FoxSwitch=Fn,w.FoxSwitchItem=Qo,w.FoxTabPane=xt,w.FoxTabbar=Vl,w.FoxTabbarItem=El,w.FoxTable=ca,w.FoxTabs=It,w.FoxTabsBar=ol,w.FoxTabsContainer=ll,w.FoxTabsPane=al,w.FoxTag=Xt,w.FoxText=ul,w.FoxTextarea=An,w.FoxTextareaItem=Io,w.FoxTimeDetail=Sa,w.FoxTimePannel=ba,w.FoxTimeSelect=ka,w.FoxToast=Ct,w.FoxTour=pa,w.FoxTrendArrow=ma,w.FoxUploader=Pl,w.FoxVideo=wt,w.FoxWaterMark=fa,w.Grid=wl,w.GridItem=Nl,w.Group=No,w.HeaderBar=ko,w.HintText=lt,w.Image=yl,w.ImagePreview=jn,w.Indicator=Il,w.InfiniteLoading=vn,w.InputItem=Vo,w.InputNumber=Ze,w.InputnumberItem=nl,w.Item=Ce,w.Layout=kl,w.LinkItem=Go,w.List=Gl,w.Mapping=fl,w.Menu=$l,w.MenuItem=Tl,w.MessageBox=st,w.MoneyItem=Eo,w.Navbar=Bl,w.NoticeBar=Jl,w.Notify=Hl,w.NumberKeyboard=Ll,w.OverLay=at,w.Page=go,w.Pagination=Dl,w.Picker=ht,w.PickerItem=Mo,w.Popover=Qt,w.Popup=de,w.PopupWrapper=dl,w.Price=Ge,w.PriorityPolicy=pn,w.Progress=Rt,w.PullRefresh=Ol,w.Radio=xn,w.RadioGroup=qn,w.RadioItem=jo,w.Range=Ft,w.Rate=kt,w.RateItem=Jo,w.RollingProvider=pl,w.Row=Sl,w.RowItem=$o,w.SearchBar=On,w.ShortPassword=zl,w.SideNavBar=xl,w.SideNavBarItem=ql,w.Signature=ya,w.Skeleton=ra,w.Sku=Ca,w.SlotItem=To,w.Step=ta,w.Steps=ea,w.StepsBar=il,w.Sticky=Dt,w.SubSideNavBar=Ml,w.Swipe=vt,w.Swiper=Nt,w.SwiperItem=Bt,w.Switch=Fn,w.SwitchItem=Qo,w.TabPane=xt,w.Tabbar=Vl,w.TabbarItem=El,w.Table=ca,w.Tabs=It,w.TabsBar=ol,w.TabsContainer=ll,w.TabsPane=al,w.Tag=Xt,w.Text=ul,w.Textarea=An,w.TextareaItem=Io,w.TimeDetail=Sa,w.TimePannel=ba,w.TimeSelect=ka,w.Toast=Ct,w.Tour=pa,w.TrendArrow=ma,w.UniqueID=Nn,w.Uploader=Pl,w.ValidateSchema=tr,w.ValidateSchemaKey=Ke,w.Video=wt,w.WaterMark=fa,w.cancelRaf=Va,w.clamp=Oe,w.clearNonNumber=lo,w.clone=no,w.compareTo=eo,w.createBroadcast=on,w.createValidateSchema=an,w.debounce=dt,w.debounceRef=ti,w.decimalLength=Ya,w.default=U2,w.defineBroadcast=Ws,w.defineConfigDomain=or,w.defineDataItem=ar,w.defineDomain=fo,w.defineItem=Ne,w.definePageState=rr,w.deleteGlobalValidator=Gs,w.disabledProperty=Be,w.divide=_n,w.excludeProps=ao,w.extend=et,w.floatData=Qa,w.getGlobalValidateCheckEvents=Ja,w.getGlobalValidateResetEvents=er,w.getPageContentAreaHeight=fn,w.getPageContentAreaWidth=mn,w.getPageFooterAreaHeight=un,w.getPageHeaderAreaHeight=dn,w.getRootDomain=ft,w.getScrollTopRoot=so,w.hasSymbol=va,w.includeProps=he,w.indexOf=Hs,w.installRules=lr,w.integerLength=Wa,w.isArray=_t,w.isArrayLike=Ka,w.isBrowser=_e,w.isDate=ve,w.isESModule=Rs,w.isEmptyString=ce,w.isEqual=qe,w.isFunction=en,w.isHidden=nn,w.isInnerPage=li,w.isMap=Ps,w.isNil=La,w.isNumberString=ja,w.isObject=$e,w.isPlainObject=to,w.isPromise=ct,w.isRegExp=Ha,w.isSet=Ls,w.isString=Fa,w.isSubPage=ai,w.isSymbol=Fs,w.isWindow=Oa,w.lastIndexOf=js,w.makeArray=Us,w.merge=Ua,w.multiply=Ma,w.negate=za,w.nextTick=Os,w.numberFormat=Jt,w.objectToString=Ra,w.once=ni,w.padZero=nt,w.preventDefault=ro,w.property=Ae,w.raf=Re,w.readonlyProperty=Te,w.setGlobalValidateCheckEvents=Zs,w.setGlobalValidateHandler=Xs,w.setGlobalValidateMessages=_s,w.setGlobalValidateResetEvents=Js,w.setGlobalValidator=Qs,w.throttle=rn,w.toBoolean=pe,w.toNumber=me,w.toPadding=ze,w.toPx=ie,w.toPxDesc=ge,w.toTypeString=tn,w.toValue=De,w.tryTimes=co,w.typeOf=tt,w.unNumberFormat=Pa,w.updatePageState=mo,w.useBroadcast=Tt,w.useDomain=Ue,w.useExpose=Ve,w.useInnerSize=yo,w.usePageState=cn,w.usePosition=gr,w.useRect=Ee,w.useSize=gn,w.useTouch=He,w.valueLength=ye,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
13
|
+
`)}}});function Zh(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const wl=oe(Gh,[["render",Zh]]),{create:Jh}=Q("sticky"),_h=Jh({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),i=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const f=e.container;if(!a.value&&!f)return;const p=De(a),u=o.value,h=De(u),b=De(f);l.height=p.height;const y=()=>{let k=!1;if(e.position==="top")k=f?r.value>p.top&&b.bottom>0:r.value>p.top;else{const d=document.documentElement.clientHeight;k=f?b.bottom>0&&d-r.value-h.height>b.top:d-r.value<p.bottom}return k},S=()=>{if(f)if(e.position==="top"){const k=b.bottom-r.value-h.height;return k<0?k:0}else{const k=document.documentElement.clientHeight,d=b.bottom-(k-r.value);return d<0?d:0}return 0};l.transform=S(),l.fixed=y()};return t.watch(()=>l.fixed,f=>{n("change",f)}),t.onMounted(()=>{c(),ol(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{ol(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function eg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Lt=oe(_h,[["render",eg]]),{componentName:tg,create:ng}=Q("divider"),og=ng({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:t.computed(()=>{const o=tg;let l={[o]:!0},r={};return e.direction==="horizontal"?r={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:r={...l,[`${o}-vertical`]:e.direction==="vertical"},r})}}});function lg(e,n,a,o,l,r){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}const Nl=oe(og,[["render",lg]]);function ag(e,n){const a=[],o=l=>{Array.isArray(l)&&l.forEach(r=>{if(t.isVNode(r)){if(n){if(r.type&&r.type.name===n){a.push(r);return}}else a.push(r);r.component?.subTree&&o(r.component.subTree.children),r.children&&o(r.children)}})};return o(e),a}function rg(e,n,a){const o=ag(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function sg(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),rg(o,a,n))},r=i=>{a.splice(a.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:l,remove:r,internalChildren:a},i)),{internalChildren:a})}const{componentName:Vs}=Q("grid"),Es=Symbol("grid"),ig={props:{columnNum:{type:[Number,String],default:4},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},setup(e,{slots:n}){sg(Es,`${Vs}-item`)({props:e});const a=t.computed(()=>{const l=Vs;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=ge(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:cg}=Q("grid"),Bl=cg(ig);function dg(e){const n=t.inject(e,null);if(n){const a=t.getCurrentInstance(),{add:o,remove:l,internalChildren:r}=n;o(a),t.onUnmounted(()=>l(a));const s=t.computed(()=>r.indexOf(a));return{parent:n,index:s}}return{parent:null,index:t.ref(-1)}}const{create:ug,componentName:Ds}=Q("grid-item"),fg=ug({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=dg(Es);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Ds]:!0})),s=t.computed(()=>{const f={flexBasis:`${100/+l.columnNum}%`};return l.square?f.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(f.paddingRight=ge(l.gutter),o.value>=l.columnNum&&(f.marginTop=ge(l.gutter))),f}),i=t.computed(()=>{const f=`${Ds}__content`;return{[`${f}`]:!0,[`${f}--border`]:l.border,[`${f}--surround`]:l.border&&l.gutter,[`${f}--center`]:l.center,[`${f}--square`]:l.square,[`${f}--reverse`]:l.reverse,[`${f}--${l.direction}`]:!!l.direction,[`${f}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:f=>{n("click",f)}}}}),mg={class:"fox-grid-item__text"};function pg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",mg,[e.text?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.text),1)],64)):t.renderSlot(e.$slots,"text",{key:1})])],2)],6)}const Al=oe(fg,[["render",pg]]),{componentName:hg,create:gg}=Q("navbar"),yg=gg({components:{Left:le.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let f=t.ref();const p=t.computed(()=>{const k=hg;return{[k]:!0,[`${k}--border`]:a.value,[`${k}--fixed`]:o.value,[`${k}--safe-area-inset-top`]:l.value}}),u=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{f.value=c?.value?.getBoundingClientRect().height,i.value.style.height=f.value+"px"})});function h(){n("on-click-back")}function b(){n("on-click-title")}function y(){n("on-click-icon")}function S(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:p,styles:u,handleLeft:h,handleCenter:b,handleCenterIcon:y,handleRight:S}}}),bg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},kg={key:1,class:"fox-navbar__text"},Sg={class:"fox-navbar__title"},Cg={key:0,class:"fox-navbar__text"},wg={key:1,class:"fox-navbar__text"},Ng={class:"fox-navbar__title"},Bg={key:0,class:"fox-navbar__text"};function Ag(e,n,a,o,l,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",bg,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",kg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Sg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",Cg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[5]||(n[5]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",wg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Ng,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",Bg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Tl=oe(yg,[["render",Ag]]),Tg=(e,n,a)=>({components:a,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(o,{emit:l}){const{toLocaleRefs:r}=re.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(u=!o.visible)=>{l("update:visible",u)},selected:(u,h)=>{l("selected",{item:u,event:h}),c.value=u.id},current:c}}}),{componentName:$g,create:Vg,scope:Eg}=Q("fixednav"),Dg=Vg(Tg($g,Eg,{[rt.name]:rt,Left:le.Left})),Ig={class:"fox-fixednav__list"},xg=["onClick"],qg=["src"],vg={class:"span"},Mg={key:0,class:"b"},Pg={class:"text"};function Lg(e,n,a,o,l,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Left");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",Ig,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:p=>e.selected(c,p),key:c.id||f},[t.createElementVNode("img",{src:c.icon},null,8,qg),t.createElementVNode("view",vg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Mg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,xg))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",Pg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const $l=oe(Dg,[["render",Lg]]),{componentName:zg,create:Fg}=Q("menu"),Rg=Fg({components:{ArrowUp2:le.ArrowUp2,ArrowDown2:le.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),s=()=>{const k=t.reactive([]),d=t.reactive([]);return{children:k,linkChildren:g=>{const N=C=>{C.proxy&&(d.push(C),k.push(C.proxy))},$=C=>{if(C.proxy){let V=d.indexOf(C);V>-1&&d.splice(V,1);let A=k.indexOf(C.proxy);V>-1&&k.splice(A,1)}};t.provide("menuParent",Object.assign({removeLink:$,link:N,children:k,internalChildren:d},g))}}},{children:i,linkChildren:c}=s(),f=t.computed(()=>i.some(k=>k.state.showWrapper)),p=t.computed(()=>({[zg]:!0,"scroll-fixed":r.value})),u=()=>{if(o.value){const k=De(o);e.direction==="down"?l.value=k.bottom:l.value=window.innerHeight-k.top}};c({props:e,offset:l});const h=k=>{i.forEach((d,m)=>{m===k?(u(),d.toggle()):d.state.showPopup&&d.toggle(!1,{immediate:!0})})},b=k=>Math.max(0,"scrollTop"in k?k.scrollTop:k.pageYOffset),y=()=>{const{scrollFixed:k}=e,d=b(window);r.value=d>(typeof k=="boolean"?30:Number(k))},S=k=>{let d="";const{titleClass:m}=e;return k&&(d+="active"),m&&(d+=` ${m}`),d};return t.onMounted(()=>{const{scrollFixed:k}=e;k&&window.addEventListener("scroll",y)}),t.onUnmounted(()=>{const{scrollFixed:k}=e;k&&window.removeEventListener("scroll",y)}),{toggleItem:h,children:i,opened:f,classes:p,barRef:o,getClasses:S}}}),Og=["onClick"],Kg={class:"fox-menu__title-text"},Ug={class:"fox-menu__title-icon"};function Hg(e,n,a,o,l,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:p=>!c.disabled&&e.toggleItem(f),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",Kg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Ug,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Og))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Vl=oe(Rg,[["render",Hg]]),{componentName:jg,create:Wg}=Q("menu-item"),Yg=Wg({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[fe.name]:fe,Check:le.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),l=()=>{const b=t.inject("menuParent",null);if(b){const y=t.getCurrentInstance(),{link:S,removeLink:k}=b;return S(y),t.onUnmounted(()=>{k(y)}),{parent:b}}},{parent:r}=l(),s=t.computed(()=>({[jg]:!0})),i=t.computed(()=>{const b={height:r.offset.value+"px"};return r.props.direction==="down"?b:{...b,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const b=e.options?.find(y=>y.value===e.modelValue);return b?b.text:""},state:o,parent:r,toggle:(b=!o.showPopup,y={})=>{b!==o.showPopup&&(o.showPopup=b,o.isShowPlaceholderElement=b,b&&(o.showWrapper=!0,n("open")))},onClick:b=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,b.value!==e.modelValue&&(n("update:modelValue",b.value),n("change",b.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),Xg={class:"fox-menu-item__content fox-menu-item__overflow"},Qg=["onClick"];function Gg(e,n,a,o,l,r){const s=t.resolveComponent("Check"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:n[0]||(n[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",Xg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:p=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps(e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,Qg))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}const El=oe(Yg,[["render",Gg]]),{create:Zg}=Q("tabbar"),Jg=Zg({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function a(l){o.value!==l&&(o.value=l,n.emit("update:modelValue",l),n.emit("change",l,o.children[l]))}const o=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:a});return t.provide("parent",o),t.watch(()=>e.modelValue,l=>{o.value=l}),{changeIndex:a}}});function _g(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}const Dl=oe(Jg,[["render",_g]]),{create:ey}=Q("tabbar-item"),ty=ey({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,n){const a=t.inject("parent"),o=t.reactive({size:a.size,inactiveColor:a.inactiveColor,activeColor:a.activeColor,value:a.value,index:0}),l=t.getCurrentInstance();l!==null&&(f=>{if(f.proxy){let p=a.children.length;o.index=p;let u=Object.assign(f.proxy,{index:p});a.children.push(u)}})(l);const r=t.computed(()=>o.index===o.value);function s(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const i=t.computed(()=>a?a.value:null);return t.watch(i,c=>{o.value=c}),{state:o,active:r,change:s}}}),ny={class:"fox-tabbar-item_icon-box"},oy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},ly={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},ay={key:1,class:"fox-tabbar-item_icon-box_dot"},ry={key:2},sy={key:0};function iy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",ny,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",oy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",ly,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",ay)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",ry,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):t.createCommentVNode("",!0),!e.icon&&e.activeImg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:t.normalizeStyle({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?(t.openBlock(),t.createElementBlock("view",sy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Il=oe(ty,[["render",iy]]),{componentName:cy,create:dy}=Q("elevator"),uy=dy({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const a=t.ref(null),o=t.reactive({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),l=t.computed(()=>({[cy]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(d,m)=>{const g="data-";return d.getAttribute(g+m)},c=d=>{t.nextTick(()=>{!o.listGroup.includes(d)&&d!=null&&o.listGroup.push(d)})},f=()=>{let d=0;o.listHeight.push(d);for(let m=0;m<o.listGroup.length;m++){let g=o.listGroup[m];d+=Math.floor(g.clientHeight),o.listHeight.push(d)}},p=d=>{!d&&d!==0||(d<0&&(d=0),d>o.listHeight.length-2&&(d=o.listHeight.length-2),o.codeIndex=d,a.value.scrollTo(0,o.listHeight[d]))},u=d=>{o.scrollStart=!0;let m=i(d.target,"index"),g=d.touches[0];o.touchState.y1=g.pageY,o.anchorIndex=+m,o.codeIndex=+m,p(+m)},h=d=>{let m=d.touches[0];o.touchState.y2=m.pageY;let g=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+g,p(o.codeIndex)},b=()=>{o.scrollStart=!1},y=(d,m)=>{n.emit("click-item",d,m),o.currentData=m,o.currentKey=d},S=d=>{n.emit("click-index",d)},k=d=>{let g=d.target.scrollTop;const N=o.listHeight;o.scrollY=g;for(let $=0;$<N.length-1;$++){let C=N[$],V=N[$+1];if(o.scrollY>=C&&o.scrollY<V){o.currentIndex=$,o.diff=V-o.scrollY;return}}o.currentIndex=N.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",k)}),Ee({scrollTo:p}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(f)}),t.watch(()=>o.diff,d=>{const m=o.listHeight;let g=d>0&&d<e.titleHeight?d-e.titleHeight:0;o.scrollY+s.value===m[m.length-1]&&g!==0&&(g=0),o.fixedTop!==g&&(o.fixedTop=g)}),t.watch(()=>o.currentIndex,d=>{n.emit("change",d)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:a,touchStart:u,touchMove:h,touchEnd:b,handleClickItem:y,handleClickIndex:S}}}),fy={class:"fox-elevator__list__item__code"},my=["onClick"],py=["innerHTML"],hy={class:"fox-elevator__fixed-title"},gy={class:"fox-elevator__bars__inner"},yy=["data-index","onClick"];function by(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",fy,t.toDisplayString(s[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===s[e.acceptKey]}]),key:i.id,onClick:c=>e.handleClickItem(s[e.acceptKey],i)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:i}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:i.name},null,8,py))],10,my))),128))]))),128)),e.isSticky?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__list__fixed",style:t.normalizeStyle(e.fixedStyle)},[t.createElementVNode("span",hy,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:n[1]||(n[1]=t.withModifiers((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",gy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:s[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:s[e.acceptKey],onClick:c=>e.handleClickIndex(s[e.acceptKey])},t.toDisplayString(s[e.acceptKey]),11,yy))),128))])],32)],2)}const zt=oe(uy,[["render",by]]),{componentName:lA,create:ky,scope:Sy}=Q("pagination"),Cy=ky({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:a}=re.useFoxI18n(Sy),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:b,itemsPerPage:y}=t.toRefs(e),S=+h.value||Math.ceil(+b.value/+y.value);return Math.max(1,S)}),f=(h,b)=>{h>c.value||h<1||(h!=l.value&&n("update:modelValue",h),b&&n("change",h))},p=(h,b,y=!1)=>({number:h,text:b,active:y}),u=t.computed(()=>{if(r.value=="simple")return;let h=[];const b=c.value,y=+s.value;let S=1,k=b;const d=b>y;d&&(S=Math.max(l.value-Math.floor(y/2),1),k=S+y-1,k>b&&(k=b,S=k-y+1));for(var m=S;m<=k;m++){const g=p(m,m,l.value==m);h.push(g)}if(d&&y>0&&i.value){if(S>1){const g=p(S-1,"...");h.unshift(g)}if(k<b){const g=p(k+1,"...");h.push(g)}}return h});return t.watchEffect(()=>{f(l.value,!1)}),{...o,modelValue:l,select:f,countRef:c,mode:r,pages:u,forceEllipses:i}}}),wy={class:"fox-pagination"},Ny={key:0,class:"fox-pagination-contain"},By=["onClick"],Ay={key:1,class:"fox-pagination-contain"},Ty={class:"fox-pagination-simple"};function $y(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",wy,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=s=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",Ny,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(s,i)=>(t.openBlock(),t.createElementBlock("view",{key:i+"pagination",class:t.normalizeClass(["fox-pagination-item",s.active?"active":""]),onClick:c=>e.select(s.number,!0)},[t.renderSlot(e.$slots,"page",{item:s},()=>[t.createTextVNode(t.toDisplayString(s.text),1)])],10,By))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Ay,[t.createElementVNode("view",Ty,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const xl=oe(Cy,[["render",$y]]),Vy=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let h=await o(l,a);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=Je();let f="";const p=(h,b)=>{let y=h;switch(e.direction=="horizontal"?(f=h>0?"right":"left",y=Math.abs(y)/r.value.width*100):(f=b>0?"bottom":"top",y=b,y=Math.abs(y)/r.value?.height*100),y>85&&(y=85),f){case"left":case"top":n.isEnd()&&(y=0,i.moving=!1);break;case"right":case"bottom":y=-y,n.isBegin()&&(y=0,i.moving=!1);break}i.offset=y};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,p(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,f){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class Ey{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Dy}=Q("tabs"),Iy=Dy({components:{[Lt.name]:Lt,JoySmile:le.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=T=>{T.forEach((B,v)=>{let L=B.type;if(L=L.name||L,L=="fox-tab-pane"){let D=new Ey;if(B.props?.title||B.props?.["pane-key"]||B.props?.paneKey){let x=ot(B.props?.["pane-key"]),U=x=="number"||x=="string"?String(B.props?.["pane-key"]):null,q=ot(B.props?.paneKey),Y=q=="number"||q=="string"?String(B.props?.paneKey):null;D.title=B.props?.title,D.paneKey=U||Y||String(v),D.disabled=B.props?.disabled}r.value.push(D)}else{if(B.children==" ")return;Array.isArray(B.children)&&s(B.children)}})},i=t.ref(e.modelValue||0),c=T=>{let B=r.value.findIndex(v=>v.paneKey==T);r.value.length==0||B==-1||(i.value=B)},f=t.computed(()=>e.titleScroll&&e.direction==="vertical"),p=t.ref(),u=t.ref([]),h=T=>{const B=p.value,v=u.value;if(!B||!v||!v[i.value])return;const L=v[i.value];let D=0;e.direction==="vertical"?D=L.offsetTop-B.offsetTop+10-(B.offsetHeight-L.offsetHeight)/2:D=L.offsetLeft-(B.offsetWidth-L.offsetWidth)/2,b(B,D,T?0:.3,e.direction)},b=(T,B,v,L)=>{let D=0;const x=L==="horizontal"?T.scrollLeft:T.scrollTop,U=v===0?1:Math.round(v*1e3/16);function q(){L==="horizontal"?T.scrollLeft+=(B-x)/U:T.scrollTop+=(B-x)/U,++D<U&&Oe(q)}q()},y=(T=a.default?.())=>{r.value=[],T=T?.filter(B=>typeof B.children!="string"),T&&T.length&&s(T),c(e.modelValue),t.nextTick(()=>{h()})},S=T=>{l=T.fixed};t.watch(()=>a.default?.(),T=>{y(T)});const k=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,T=>{if(c(T),h(),l){let B=De(o.value).top+k(),v=Math.ceil(B-e.top);window.scrollTo({top:v,behavior:"smooth"})}}),t.onMounted(y),t.onActivated(y);const d={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,d.updateValue(r.value[i.value])},prev:()=>{i.value-=1,d.updateValue(r.value[i.value])},updateValue:T=>{n("update:modelValue",T.paneKey),n("change",T)},tabChange:(T,B)=>{n("click",T),!(T.disabled||i.value==B)&&(i.value=B,d.updateValue(T))},setTabItemRef:(T,B)=>{u.value[B]=T}},{tabsContentRef:m,touchState:g,touchMethods:N}=Vy(e,d),$=t.computed(()=>{let T=i.value*100;g.moving&&(T+=g.offset);let B={transform:e.direction=="horizontal"?`translate3d(-${T}%, 0, 0)`:`translate3d( 0,-${T}%, 0)`,transitionDuration:g.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(B={}),B}),C=t.computed(()=>({background:e.background})),V=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),A=t.computed(()=>{if(!e.titleGutter)return{};const T=ge(e.titleGutter);return e.direction==="vertical"?{marginTop:T,marginBottom:T}:{marginLeft:T,marginRight:T}}),E=t.computed(()=>a.fixedTitle);return{navRef:p,tabsContentRef:m,titles:r,contentStyle:$,tabsNavStyle:C,titleStyle:A,tabsActiveStyle:V,container:o,getScrollY:f,onStickyScroll:S,...d,...N,hasFixedTitle:E}}}),xy=["onClick"],qy={key:0,class:"fox-tabs__titles-fixed-item"},vy=["onClick"],My={key:0,class:"fox-tabs__titles-fixed-item"};function Py(e,n,a,o,l,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,f),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,xy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",qy,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,f),key:c.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,f)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,vy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",My,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[1]||(n[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[2]||(n[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const ql=oe(Iy,[["render",Py]]),{create:Ly}=Q("tab-pane"),zy=Ly({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=t.inject("tabsOpiton"),o=t.computed(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:o}}});function Fy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const vl=oe(zy,[["render",Fy]]),{componentName:Is,create:Ry}=Q("indicator"),Oy=Ry({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:a}=t.toRefs(e);return{classes:t.computed(()=>{const l=Is;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Is,padZero:lt}}});function Ky(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,s=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[s===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(s)||s),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const Ml=oe(Oy,[["render",Ky]]),{componentName:Uy,create:Hy}=Q("side-navbar"),jy=Hy({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=t.ref(null),a=t.reactive({count:1,observer:null}),o=t.computed(()=>({[Uy]:!0})),l=(s,i=1)=>{for(let c=0;c<s.length;c++){let f=s[c];f?.children?.[0]&&(f.children[0].style.paddingLeft=+e.offset*i+"px",f.className.includes("fox-side-navbar-item")||l(Array.from(f.children[1].children),++a.count))}a.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),l(s))};return t.onMounted(()=>{r(),a.observer=new MutationObserver(function(){a.count=1,r()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(a),list:n,classes:o}}}),Wy={class:"fox-side-navbar__content"},Yy={class:"fox-side-navbar__content__list",ref:"list"};function Xy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Wy,[t.createElementVNode("view",Yy,[t.renderSlot(e.$slots,"default")],512)])],2)}const Pl=oe(jy,[["render",Xy]]),{componentName:Qy,create:Gy}=Q("side-navbar-item"),Zy=Gy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[Qy]:!0})),handleClick:()=>{n.emit("click")}})}),Jy=["ikey"],_y={class:"fox-side-navbar-item__title"};function e0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",_y,t.toDisplayString(e.title),1)],10,Jy)}const Ll=oe(Zy,[["render",e0]]),{componentName:t0,create:n0}=Q("sub-side-navbar"),o0=n0({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:le.ArrowDown2,ArrowUp2:le.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[t0]:!0})),l=t.computed(()=>({height:a.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),a.direction=a.direction?"":"up"};return t.onMounted(()=>{a.direction=e.open?"":"up"}),{...t.toRefs(a),classes:o,style:l,handleClick:r}}}),l0=["ikey"],a0={class:"fox-sub-side-navbar__title__text"},r0={class:"fox-sub-side-navbar__title__icon"};function s0(e,n,a,o,l,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",a0,t.toDisplayString(e.title),1),t.createElementVNode("span",r0,[e.direction?(t.openBlock(),t.createBlock(i,{key:1})):(t.openBlock(),t.createBlock(s,{key:0}))])]),t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,l0)}const zl=oe(o0,[["render",s0]]),{componentName:i0,create:c0}=Q("range"),d0=c0({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const a=t.ref(0);let o,l;const r=t.ref(),s=t.ref(),i=Je(),c=t.computed(()=>{const{marks:D,max:x,min:U}=e;return Object.keys(D).map(parseFloat).sort((j,J)=>j-J).filter(j=>j>=U&&j<=x)}),f=t.computed(()=>Number(e.max)-Number(e.min)),p=t.computed(()=>{const D=i0;return{[D]:!0,[`${D}-disabled`]:e.disabled,[`${D}-vertical`]:e.vertical,[`${D}-show-number`]:!e.hiddenRange}}),u=t.computed(()=>{const D="fox-range-container";return{[D]:!0,[`${D}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),b=t.computed(()=>({borderColor:e.buttonColor})),y=D=>!!e.range&&Array.isArray(D),S=()=>{const{modelValue:D,min:x}=e;return y(D)?`${(D[1]-D[0])*100/f.value}%`:`${(D-Number(x))*100/f.value}%`},k=()=>{const{modelValue:D,min:x}=e;return y(D)?`${(D[0]-Number(x))*100/f.value}%`:"0%"},d=t.computed(()=>e.vertical?{height:S(),top:k(),background:e.activeColor,transition:s.value?"none":void 0}:{width:S(),left:k(),background:e.activeColor,transition:s.value?"none":void 0}),m=D=>{const x="fox-range-mark",{modelValue:U,max:q,min:Y}=e;let j=Number(Y),J=Number(q);if(e.range){const[W,M]=U;j=W,J=M}else J=U;let ee=D<=J&&D>=j;return{[`${x}-text`]:!0,[`${x}-text-active`]:ee}},g=D=>{const{min:x,vertical:U}=e;let q={left:`${(D-Number(x))/f.value*100}%`};return U&&(q={top:`${(D-Number(x))/f.value*100}%`}),q},N=D=>{const{modelValue:x,max:U,min:q}=e;let Y=Number(q),j=Number(U);if(e.range){const[W,M]=x;Y=W,j=M}return{background:D<=j&&D>=Y?e.activeColor:e.inactiveColor}},$=D=>{const{min:x,max:U,step:q}=e;return D=Math.max(+x,Math.min(D,+U)),Math.round(D/+q)*+q},C=(D,x)=>JSON.stringify(D)===JSON.stringify(x),V=D=>D[0]>D[1]?D.slice(0).reverse():D,A=(D,x)=>{y(D)?D=V(D).map($):D=$(D),C(D,e.modelValue)||n("update:modelValue",D),x&&!C(D,o)&&n("change",D)},E=D=>{if(e.disabled)return;const{min:x,modelValue:U}=e,q=De(r);let Y=D.clientX-q.left,j=q.width;e.vertical&&(Y=D.clientY-q.top,j=q.height);const J=Number(x)+Y/j*f.value;if(y(U)){const[ee,W]=U,M=(ee+W)/2;J<=M?A([J,W],!0):A([ee,J],!0)}else A(J,!0)},T=D=>{e.disabled||(i.start(D),l=e.modelValue,y(l)?o=l.map($):o=$(l),s.value="start")},B=D=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(D),s.value="draging";const x=De(r);let U=i.deltaX.value,q=x.width,Y=U/q*f.value;e.vertical&&(U=i.deltaY.value,q=x.height,Y=U/q*f.value),y(o)?l[a.value]=o[a.value]+Y:l=o+Y,A(l),D.stopPropagation(),D.preventDefault()},v=()=>{e.disabled||(s.value==="draging"&&(A(l,!0),n("drag-end")),s.value="")},L=D=>en(e.modelValue)&&typeof D=="number"?e.modelValue[D]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:h,buttonStyle:b,onClick:E,onTouchStart:T,onTouchMove:B,onTouchEnd:v,...t.toRefs(e),barStyle:d,curValue:L,buttonIndex:a,containerClasses:u,markClassName:m,marksStyle:g,marksList:c,tickStyle:N}}}),u0={key:0,class:"fox-range-min"},f0={key:0,class:"fox-range-mark"},m0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],p0={key:0,class:"number"},h0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],g0={key:0,class:"number"},y0={key:1,class:"fox-range-max"};function b0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",u0,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:n[9]||(n[9]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",f0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,s=>(t.openBlock(),t.createElementBlock("span",{key:s,class:t.normalizeClass(e.markClassName(s)),style:t.normalizeStyle(e.marksStyle(s))},[t.createTextVNode(t.toDisplayString(s)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(s))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],s=>t.createElementVNode("view",{key:s,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":s==0,"fox-range-button-wrapper-right":s==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(s),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(i=>{typeof s=="number"&&(e.buttonIndex=s),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[1]||(n[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[3]||(n[3]=i=>i.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",p0,t.toDisplayString(e.curValue(s)),1))],4))],42,m0)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=t.withModifiers(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:n[6]||(n[6]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:n[8]||(n[8]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",g0,t.toDisplayString(e.curValue()),1))],4))],40,h0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",y0,t.toDisplayString(+e.max),1))],2)}const Ft=oe(d0,[["render",b0]]),{create:k0,scope:S0}=Q("short-password"),C0=k0({components:{[fe.name]:fe,Tips:le.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:a}=re.useFoxI18n(S0),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>f(Number(e.length))),s=t.ref(e.visible),i=u=>{u.stopPropagation(),n("focus")};t.watch(()=>e.visible,u=>{s.value=u}),t.watch(()=>e.modelValue,u=>{l.value=u,String(u).length===r.value&&n("complete",u)});const c=()=>{n("update:visible",!1),n("close")},f=u=>Math.min(Math.max(4,u),6);return{comLen:r,realInput:l,onTouchStart:i,range:f,close:c,onTips:()=>{n("tips")},show:s,...o}}}),w0={class:"fox-short-password-title"},N0={class:"fox-short-password-subtitle"},B0={class:"fox-short-password-wrapper"},A0={key:0,class:"fox-short-password__item-icon"},T0={class:"fox-short-password__message"},$0={class:"fox-short-password--error"},V0={key:0,class:"fox-short-password--forget"};function E0(e,n,a,o,l,r){const s=t.resolveComponent("Tips"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",w0,t.toDisplayString(e.title),1),t.createElementVNode("view",N0,t.toDisplayString(e.desc),1),t.createElementVNode("div",B0,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:f},[String(e.realInput).length>f?(t.openBlock(),t.createElementBlock("view",A0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",T0,[t.createElementVNode("view",$0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",V0,[t.createVNode(s,{class:"icon",width:"11px",height:"11px"}),t.createElementVNode("view",{onClick:n[1]||(n[1]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}const Fl=oe(C0,[["render",E0]]);class D0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let I0=class{options;constructor(n){this.options=n}upload(){const n=this.options,a=new XMLHttpRequest;if(a.timeout=n.timeout,a.upload){a.upload.addEventListener("progress",o=>{n.onProgress?.(o,n)},!1),a.onreadystatechange=()=>{a.readyState===4&&(a.status==n.xhrState?n.onSuccess?.(a.responseText,n):n.onFailure?.(a.responseText,n))},a.withCredentials=n.withCredentials,a.open(n.method,n.url,!0);for(const[o,l]of Object.entries(n.headers))a.setRequestHeader(o,l);n.onStart?.(n),n.beforeXhrUpload?n.beforeXhrUpload(a,n):a.send(n.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class x0{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const xs=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);dt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:q0}=Q("progress"),v0=q0({components:{Checked:le.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,a=t.ref(e.strokeWidth+"px"),o=t.ref(),l=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:a,percentage:r,bgStyle:s,textStyle:i,progressOuter:o,insideText:l,slotDefault:n}}}),M0={class:"fox-progress"},P0={key:0,class:"fox-progress-text"};function L0(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",M0,[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:t.normalizeStyle(e.bgStyle)},null,6),e.showText&&e.textInside&&!e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:t.normalizeStyle({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[t.createElementVNode("span",{style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)],4)):t.createCommentVNode("",!0),e.showText&&e.textInside&&e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:1,ref:"insideText",style:t.normalizeStyle({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("",!0)],6),e.showText&&!e.textInside?(t.openBlock(),t.createElementBlock("div",P0,[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?t.renderSlot(e.$slots,"icon-name",{key:1},()=>[t.createVNode(s,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Rt=oe(v0,[["render",L0]]),{componentName:z0,create:F0,scope:R0}=Q("uploader"),O0=F0({components:{[Rt.name]:Rt,Photograph:le.Photograph,Failure:le.Failure,Loading:le.Loading,Del:le.Del,Link:le.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(R0),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[z0]:!0})),s=()=>{let m={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(m.capture="camera"),t.h("input",m)},i=m=>{m.value=""},c=m=>{n("file-item-click",{fileItem:m})},f=(m,g)=>{const N=new D0;N.url=e.url,N.formData=m.formData,N.timeout=e.timeout*1,N.method=e.method,N.xhrState=e.xhrState,N.headers=e.headers,N.withCredentials=e.withCredentials,N.beforeXhrUpload=e.beforeXhrUpload;try{N.sourceFile=m.formData.get(e.name)}catch{}N.onStart=C=>{m.status="ready",m.message=a("readyUpload"),p(g),n("start",C)},N.onProgress=(C,V)=>{m.status="uploading",m.message=a("uploading"),m.percentage=(C.loaded/C.total*100).toFixed(0),n("progress",{event:C,option:V,percentage:m.percentage})},N.onSuccess=(C,V)=>{m.status="success",m.message=a("success"),n("success",{responseText:C,option:V,fileItem:m}),n("update:fileList",o)},N.onFailure=(C,V)=>{m.status="error",m.message=a("error"),n("failure",{responseText:C,option:V,fileItem:m})};let $=new I0(N);e.autoUpload?$.upload():l.push(new Promise((C,V)=>{C($)}))},p=(m=-1)=>{m>-1?l.splice(m,1):(l=[],o.splice(0,o.length))},u=()=>{Promise.all(l).then(m=>{m.forEach(g=>g.upload())})},h=m=>{m.forEach((g,N)=>{const $=new FormData;for(const[V,A]of Object.entries(e.data))$.append(V,A);$.append(e.name,g);const C=t.reactive(new x0);if(C.name=g.name,C.status="ready",C.type=g.type,C.formData=$,C.message=a("waitingUpload"),f(C,N),e.isPreview&&g.type.includes("image")){const V=new FileReader;V.onload=A=>{C.url=A.target.result,o.push(C)},V.readAsDataURL(g)}else o.push(C)})},b=m=>{const g=e.maximum*1,N=e.maximize*1,$=new Array;m=m.filter(V=>V.size>N?($.push(V),!1):!0),$.length&&n("oversize",$);let C=m.length+o.length;return C>g&&m.splice(m.length-(C-g)),m},y=(m,g)=>{o.splice(g,1),n("delete",{file:m,fileList:o,index:g})},S=(m,g)=>{p(g),xs(e.beforeDelete,{args:[m,o],done:()=>y(m,g)})},k=m=>{if(e.disabled)return;const g=m.target;let{files:N}=g;e.beforeUpload?e.beforeUpload(N).then($=>d($)):d(N),n("change",{fileList:o,event:m}),e.clearInput&&i(g)},d=m=>{const g=b(new Array().slice.call(m));h(g)};return{onChange:k,onDelete:S,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:p,submit:u,renderInput:s}}}),K0={key:0,class:"fox-uploader__slot"},U0={key:0,class:"fox-uploader__preview-img"},H0={key:0,class:"fox-uploader__preview__progress"},j0={class:"fox-uploader__preview__progress__msg"},W0=["onClick"],Y0=["onClick","src"],X0={key:3,class:"fox-uploader__preview-img__file"},Q0=["onClick"],G0={class:"file__name_tips"},Z0={class:"tips"},J0={key:1,class:"fox-uploader__preview-list"},_0=["onClick"],eb={class:"file__name_tips"};function tb(e,n,a,o,l,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),f=t.resolveComponent("Del"),p=t.resolveComponent("fox-progress"),u=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",K0,[t.renderSlot(e.$slots,"default"),Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(h,b)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",U0,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",H0,[h.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.status=="error"?(t.openBlock(),t.createBlock(s,{key:0,color:"#fff"})):(t.openBlock(),t.createBlock(i,{key:1,name:"loading",color:"#fff"}))],64)):t.createCommentVNode("",!0),t.createElementVNode("view",j0,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:y=>e.onDelete(h,b)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,W0)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:y=>e.fileItemClick(h),src:h.url},null,8,Y0)):(t.openBlock(),t.createElementBlock("view",X0,[t.createElementVNode("view",{onClick:y=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",G0,t.toDisplayString(h.name),1)],8,Q0)])),t.createElementVNode("view",Z0,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",J0,[t.createElementVNode("view",{onClick:y=>e.fileItemClick(h),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[h.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",eb,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(f,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:y=>e.onDelete(h,b)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,_0),h.status=="uploading"?(t.openBlock(),t.createBlock(p,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(u,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Rl=oe(O0,[["render",tb]]),nb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54b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FZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:lb,scope:ab}=Q("number-keyboard"),rb=lb({components:{[fe.name]:fe},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:a}=re.useFoxI18n(ab),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:d}=e;let m={id:"lock",type:"lock"},g=Array.isArray(d)?d:[d];return g.length===1&&(m={id:g[0],type:"custom"}),[...c(),m,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const d=[];for(let m=1;m<=9;m++)d.push({id:m,type:"number"});return e.randomKeys?d.sort(()=>Math.random()>.5?1:-1):d}function f(){const d=c(),{customKey:m}=e;let g=Array.isArray(m)?m:[m];return g.length>2&&(g=[g[0],g[1]]),g.length==2&&e.title&&e.type!="rightColumn"&&(g=[g[0]]),g.length===1?e.title&&e.type!="rightColumn"?d.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):d.push({id:0,type:"number"},{id:g[0],type:"custom"}):g.length===2&&d.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:g[1],type:"custom"}),d}const p=t.computed(()=>e.type=="rightColumn"||e.title!=""?f():i()),u=()=>{e.visible&&n("blur")},h=d=>{const m=s.value;m&&!m.contains(d.target)&&u()};t.watch(()=>e.visible,d=>{r.value=d,d?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function b(d,m){m.stopPropagation(),l.value=d.id,(d.type=="number"||d.type=="custom")&&(n("input",d.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+d.id)),d.type=="lock"&&k(),d.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function y(d){d.stopPropagation()}function S(d){d.preventDefault(),l.value=void 0}function k(){n("update:visible",!1),n("close")}return{...o,delImg:nb,lockImg:ob,clickKeyIndex:l,defaultKey:i,closeBoard:k,onTouchEnd:S,onTouchMove:y,onTouchstart:b,keysList:p,genCustomKeys:f,getBasicKeys:c,root:s,show:r}}}),sb={ref:"root"},ib={class:"fox-number-keyboard"},cb={key:0,class:"fox-number-keyboard__header"},db={class:"fox-number-keyboard__title"},ub={class:"fox-number-keyboard__body"},fb={class:"fox-number-keyboard__keys"},mb=["onTouchstart"],pb=["src"],hb=["src"],gb={key:0,class:"fox-number-keyboard__sidebar"},yb={class:"fox-key__wrapper"},bb=["src"];function kb(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",sb,[t.createVNode(s,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",ib,[e.title?(t.openBlock(),t.createElementBlock("div",cb,[t.createElementVNode("h3",db,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",ub,[t.createElementVNode("div",fb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{key:"key"+i.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":i.id==e.clickKeyIndex},{"fox-key--lock":i.type=="lock"},{"fox-key--delete":i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:n[1]||(n[1]=c=>e.onTouchMove(c)),onTouchend:n[2]||(n[2]=c=>e.onTouchEnd(c))},[i.type=="number"||i.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.id),1)],64)):t.createCommentVNode("",!0),i.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,pb)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,hb)):t.createCommentVNode("",!0)],42,mb)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",gb,[t.createElementVNode("div",yb,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:n[4]||(n[4]=i=>e.onTouchMove(i)),onTouchend:n[5]||(n[5]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,bb)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=i=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])])):t.createCommentVNode("",!0)])])]),_:1},8,["visible","popClass"])],512)}const Ol=oe(rb,[["render",kb]]),{componentName:Sb,create:Cb}=Q("swipe"),wb=Cb({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const a=t.computed(()=>({[Sb]:!0})),o=m=>m.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,f="",p="";const u=t.reactive({offset:0,moving:!1}),h=(m="")=>{c=!0,m&&(u.offset=m==="left"?-i.value:r.value),n("open",{name:e.name,position:f||m})},b=()=>{u.offset=0,c=!1,n("close",{name:e.name,position:f})},y=t.computed(()=>({transform:`translate3d(${u.offset}px, 0, 0)`})),S=m=>{f=m>0?"right":"left";let g=m;switch(f){case"left":c&&p===f?g=-i.value:g=Math.abs(m)>i.value?-i.value:m;break;case"right":c&&p===f?g=r.value:g=Math.abs(m)>r.value?r.value:m;break}u.offset=g},k=Je();return{classes:a,touchStyle:y,...{onTouchStart(m){e.disabled||k.start(m)},onTouchMove(m){e.disabled||(k.move(m),k.isHorizontal()&&(u.moving=!0,S(k.deltaX.value),e.touchMovePreventDefault&&m.preventDefault(),e.touchMoveStopPropagation&&m.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,p=f,f){case"left":Math.abs(u.offset)<=i.value/2?b():(u.offset=-i.value,h());break;case"right":Math.abs(u.offset)<=r.value/2?b():(u.offset=r.value,h());break}}},leftRef:l,rightRef:s,open:h,close:b}}}),Nb={class:"fox-swipe__left",ref:"leftRef"},Bb={class:"fox-swipe__content"},Ab={class:"fox-swipe__right",ref:"rightRef"};function Tb(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",Nb,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",Bb,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Ab,[t.renderSlot(e.$slots,"right")],512)],38)}const Ot=oe(wb,[["render",Tb]]),{componentName:$b,create:Vb}=Q("action-sheet"),Eb=Vb({components:{[fe.name]:fe,Loading:le.Loading},props:{...ze,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const a=!!t.useSlots().default,o=t.computed(()=>({[$b]:!0}));return{slotDefault:a,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,f)=>{!c.disable&&!c.loading&&(n("choose",c,f),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),Db={key:0,class:"fox-action-sheet__title"},Ib={key:1},xb={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},qb={key:1,class:"fox-action-sheet__menu"},vb=["onClick"],Mb={key:1},Pb={class:"fox-action-sheet__subdesc"};function Lb(e,n,a,o,l,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",Db,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Ib,[e.description?(t.openBlock(),t.createElementBlock("view",xb,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",qb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:f,onClick:p=>e.chooseItem(c,f)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",Mb,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",Pb,t.toDisplayString(c[e.optionSubTag]),1)],14,vb))),128))])):t.createCommentVNode("",!0),e.cancelTxt?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-action-sheet__cancel",onClick:n[0]||(n[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},t.toDisplayString(e.cancelTxt),1)):t.createCommentVNode("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}const Kl=oe(Eb,[["render",Lb]]),{componentName:zb,create:Fb}=Q("backtop"),Ul=Fb({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:a}){const o=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),l=t.computed(()=>({[zb]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function i(y=0){o.scrollEl instanceof Window?window.scrollTo(0,y):o.scrollEl.scrollTop=y}function c(){let y=Xe(function S(){var k=e.duration-Math.max(0,o.startTime-+new Date+e.duration),d=k*-o.scrollTop/e.duration+o.scrollTop;i(d),y=Xe(S),(k==e.duration||d==0)&&qa(y)})}function f(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function p(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function u(y){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",y)}function h(){b.value?o.scrollEl=b.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),f()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),h()}),t.onUnmounted(()=>{p()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,p()});const b=t.computed(()=>{if(typeof a.content=="function"){const y=a.content();return Array.isArray(y)?y[0]:y}return null});return()=>{const y=[];b.value&&y.push(b.value);const S=[];if(typeof a.default=="function")S.push(a.default());else{const d=t.h(le.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});S.push(d)}const k=t.h("div",{class:l.value,style:r.value,onClick:u},S);return y.push(k),y}}}),{componentName:Rb,create:Ob}=Q("drag"),Kb=Ob({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),l=t.computed(()=>({[Rb]:!0}));function r(){const u=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=u.clientWidth,o.screenHeight=u.clientHeight}function s(u){o.boundary.left?+u.style.left.split("px")[0]>o.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",Oe(()=>{s(u)})):u.style.left=`${o.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",Oe(()=>{s(u)})):u.style.left="0px"}function i(u,h){h-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",Oe(()=>{i(u,h)})):u.style.left=h+"px"}function c(u){u.preventDefault();const h=u.currentTarget;if(u.targetTouches.length===1){const b=u.targetTouches[0];o.nx=b.clientX-o.position.x,o.ny=b.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const y=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>y?o.xPum=y:o.xPum<=o.boundary.left&&(o.xPum=o.boundary.left),o.yPum<o.boundary.top?o.yPum=o.boundary.top:o.yPum>o.screenHeight-o.elHeight-o.boundary.bottom&&(o.yPum=o.screenHeight-o.elHeight-o.boundary.bottom),e.direction!="y"&&(h.style.left=o.xPum+"px"),e.direction!="x"&&(h.style.top=o.yPum+"px")}}function f(u){const h=u.currentTarget;let y=u.changedTouches[0].clientX;const S=o.screenWidth-o.elWidth-o.boundary.right;y>S?y=S:y<o.boundary.left?y=o.boundary.left:y=y<o.screenWidth/2?o.boundary.left:S,e.direction!="y"&&e.attract&&(y<o.screenWidth/2?Oe(()=>{s(h)}):Oe(()=>{i(h,S)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function p(u){const h=u.currentTarget,b=u.touches[0],y=u.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=b.clientX,o.position.y=b.clientY,o.nx=y.clientX-o.position.x,o.ny=y.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}return t.onMounted(()=>{r(),o.boundary=e.boundary}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1)}),t.onDeactivated(()=>{o.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",p),u.value.removeEventListener("touchmove",c),u.value.removeEventListener("touchend",f)}),{classes:l,myDrag:a,touchStart:p,touchMove:c,touchEnd:f}}});function Ub(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=s=>e.touchStart(s)),onTouchmove:n[1]||(n[1]=s=>e.touchMove(s)),onTouchend:n[2]||(n[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const Hl=oe(Kb,[["render",Ub]]),Hb={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},jb=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Wb(e,n,a,o,l){return{props:{...ze,...Hb},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:f}=re.useFoxI18n(n),p=f(r,["confirmText","cancelText"]),u=e,h=t.ref(r.visible);t.watch(()=>r.visible,C=>{h.value!==C&&(h.value=C,C&&c("opened"))});const b=C=>{h.value=C,c("update:visible",C),c("update",C)},y=C=>{if(c(C),!(C==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const V=r.beforeClose(C);dt(V)?V.then(A=>{A&&(b(!1),c("closed",C))}):V===!0&&(b(!1),c("closed",C))}else b(!1),c("closed",C)},S=()=>{y("confirm")},k=()=>{y("cancel")},d=()=>{y("close")},m=(C,V)=>jb(C)?(V.src=C,t.h("img",V)):typeof C=="string"?(Array.isArray(V.class)?V.class.push(C):V.class&&typeof V.class=="object"?V[`${C}`]=!0:typeof V.class=="string"?V.class=`${V.class}, ${C}`:V.class=C,t.h(r.tag,V)):t.h(C,V),g=()=>{const C=[];if(i.header){const A=i.header();C.push(A)}else{if(r.title){const A=t.h("view",{class:`${u}__header-title`},[r.title]);C.push(A)}if(r.showClose){const A={class:[`${u}__header-close-icon`],onClick:d},E=r.closeIcon??l,T=m(E,A);C.push(T)}}if(C.length===0)return null;const V={class:[`${u}__header`]};return t.h("view",V,C)},N=()=>{const C=[];if(i.default)C.push(i.default());else{const A={class:[`${u}__content`]};if(r.textAlign&&A.class.push(r.textAlign),typeof r.content=="string"){A.innerHTML=r.content;const E=t.h("view",A);C.push(E)}else if(typeof r.content=="function"){const E=t.h("view",A,[r.content()]);C.push(E)}else{const E=t.h("view",A,[r.content]);C.push(E)}}if(C.length===0)return null;const V={class:[`${u}__body`]};return t.h("view",V,C)},$=()=>{if(!r.showFooter)return null;const C=[];if(i.footer)C.push(i.footer());else if(r.plain){if(r.showCancelButton){const A={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:k};r.cancelButtonClass&&A.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(A.style,r.cancleButtonStyle);const E=t.h("view",A,[r.cancelButtonText??p.cancelText.value]);C.push(E)}if(r.showConfirmButton){const A={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:S};r.confirmButtonClass&&A.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(A.style,r.confirmButtonStyle);const E=t.h("view",A,[r.confirmButtonText??p.confirmText.value]);C.push(E)}}else{if(r.showCancelButton){const A={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:k};r.cancelButtonClass&&A.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(A.style,r.cancleButtonStyle);const E=t.h(o,A,{default:()=>[r.cancelButtonText??p.cancelText.value]});C.push(E)}if(r.showConfirmButton){const A={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:S};r.confirmButtonClass&&A.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(A.style,r.confirmButtonStyle);const E=t.h(o,A,{default:()=>[r.confirmButtonText??p.confirmText.value]});C.push(E)}}if(C.length===0)return null;const V={class:[`${u}__footer`,`${u}__footer--${r.footerDirection}`]};return t.h("view",V,C)};return()=>{const C=[],V=g();V&&C.push(V);const A=N();A&&C.push(A);const E=$();E&&C.push(E);const T={class:{[`${u}`]:!0,[`${u}--plain`]:r.plain}},B=t.h("view",T,C),v=[`${u}__popup`];r.popClass&&v.push(r.popClass);const L={};r.width&&(L.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(L.height=typeof r.height=="number"?`${r.height}px`:r.height);const x={...ke(r,ze),popClass:v.join(" "),style:L,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":b,position:r.position,onClickOverlay:d,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,x,{default:()=>B})}}}}const{componentName:Yb,create:Xb,scope:Qb}=Q("dialog"),qs=Xb(Wb(Yb,Qb,fe,Pe,le.Close));class Gb{title="";content="";cancelText="";confirmText="";textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=n=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1}class Zb{options=new Gb;constructor(n){let a=Object.assign(this.options,n),o=document.body,l=a.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=a.teleport);const r=document.createElement("view"),s=`dialog-${a.id}`;r.id=s;const i={setup(){return a.onUpdate=f=>{if(f===!1){const p=document.querySelector(`#${s}`);p&&p.parentNode?.removeChild(p)}},a?.onOpened&&a?.onOpened(),()=>t.h(qs,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Kt=function(e){return new Zb(e)};Kt.install=e=>{e.use(qs),e.config.globalProperties.$dialog=Kt};const Jb={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}},_b=(e,n,a)=>({props:{...Jb},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=Lo(),f=t.ref(),p=ks(f),u=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),b=t.computed(()=>{switch(u.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),y=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:u.distance?`translate3d(0,${u.distance}px, 0)`:""})),S=t.computed(()=>{const V={};return o.headHeight!=50&&(V.height=ge(o.headHeight)),V}),k=V=>{const A=+(o.pullDistance||o.headHeight);let E=V;return V>A&&(V<A*2?E=(V+A)/2:E=A+V/4),Math.round(E)},d=(V,A)=>{const E=+(o.pullDistance||o.headHeight);u.distance=V,A?u.status="loading":V===0?u.status="normal":V<E?u.status="pulling":u.status="loosing",l("change",{status:u.status,distance:V})},m=()=>u.status!=="loading"&&u.status!=="complete",g=()=>p.value==window?Ss()==0:p.value&&p.value.scrollTop==0,N=V=>{m()&&(g()?(c.start(V),u.isPullRefresh=!0,u.moving=!0):(u.distance=0,u.isPullRefresh=!1))},$=V=>{m()&&u.moving&&(c.move(V),c.isVertical()&&c.state.deltaY>0&&u.isPullRefresh&&(V.cancelable&&V.preventDefault(),d(k(c.state.deltaY))))},C=()=>{u.moving=!1,u.isPullRefresh&&m()&&c.state.deltaY&&(u.status==="loosing"?(d(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):d(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,V=>{V?d(+o.headHeight,!0):d(0)}),()=>{const V=[];let A=null;if(u.status==="loading"){if(A=r?.loading?.()??null,!A){const U={class:["fox-pull-refresh-container-topbox-icon"]};A=t.h(a,U)}}else u.status==="pulling"?A=r?.pulling?.()??null:u.status==="loosing"&&(A=r?.loosing?.()??null);A&&V.push(A);const E={class:["fox-pull-refresh-container-topbox-text"]},T=t.h("dive",E,[b.value]);V.push(T);const B={class:["fox-pull-refresh-container-topbox"],style:S.value},v=t.h("div",B,V),L={class:"fox-pull-refresh-container",style:y.value},D=t.h("div",L,[v,r?.default?.()]),x={ref:f,class:h.value};return Po()?Object.assign(x,{onTouchstart:N,onTouchmove:$,onTouchend:C}):Object.assign(x,{onMousedown:N,onMousemove:$,onMouseup:C}),t.h("div",x,[D])}}}),{componentName:ek,create:tk,scope:nk}=Q("pull-refresh"),jl=tk(_b(ek,nk,le.Loading)),{create:ok}=Q("notify"),lk=ok({components:{[fe.name]:fe},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const a=()=>{e.onClick&&e.onClick()};let o=null;const l=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,f=>{s.value=e.visible;const p=e.duration;f&&p&&(o=setTimeout(()=>{r()},p))},{immediate:!0});return{onAfterLeave:()=>{l(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:s}}});function ak(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const Wl=oe(lk,[["render",ak]]),Yl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let wt=[],Ut=[];const vs=e=>{if(e){const n=document.getElementById(e);Ut=Ut.filter(a=>a.id!==e),wt=wt.filter(a=>a!==e),n&&document.body.removeChild(n)}else wt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Ut=[],wt=[]},rk=e=>{const n=document.getElementById(e.id);if(n){const a=Ut.find(l=>l.id===e.id);a?e={...Yl,...a,...e}:e={...Yl,...e};const o=t.createVNode(Wl,e);return t.render(o,n),o.component.data}},Ht=e=>{e.unmount=vs;let n;if(e.id){if(n=e.id,wt.find(r=>r===e.id))return rk(e)}else n=new Date().getTime()+"";e={...Yl,...e},e.id=n,wt.push(e.id),Ut.push(e);const a=document.createElement("view");a.id="notify-"+e.id;const o={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(a)},e.duration)}),()=>t.h(Wl,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},jt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Xl={text(e,n={}){return jt(e),Ht({...n,msg:e})},primary(e,n={}){return jt(e),Ht({...n,msg:e,type:"primary"})},success(e,n={}){return jt(e),Ht({...n,msg:e,type:"success"})},danger(e,n={}){return jt(e),Ht({...n,msg:e,type:"danger"})},warn(e,n={}){return jt(e),Ht({...n,msg:e,type:"warning"})},hide(){vs()},install(e){e.use(Wl)}},{create:sk}=Q("toast"),ik=sk({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 o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,b=>{b&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const b=ce(e.iconSize);return t.h(e.icon,{width:b,height:b,color:e.iconColor})},p=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),u=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:f,hasIcon:c,toastBodyClass:p,toastIconWrapperClass:u,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),ck={key:1,class:"fox-toast-title"},dk=["innerHTML"];function uk(e,n,a,o,l,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]=(...s)=>e.clickCover&&e.clickCover(...s))},[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",ck,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,dk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Ql=oe(ik,[["render",uk]]),Gl={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1};let Nt=[],Wt=[];const Ms=e=>{if(e){const n=document.getElementById(e);Wt=Wt.filter(a=>a.id!==e),Nt=Nt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Nt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Wt=[],Nt=[]},fk=e=>{const n=document.getElementById(e.id);if(n){const a=Wt.find(l=>l.id===e.id);a?e={...Gl,...a,...e}:e={...Gl,...e};const o=t.createVNode(Ql,e);return t.render(o,n),Bt}},Yt=e=>{e.unmount=Ms;let n;if(e.id){if(n=e.id,Nt.find(l=>l===e.id))return fk(e)}else n=new Date().getTime()+"";e={...Gl,...e},e.id=n,Nt.push(e.id),Wt.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Ql,e);return t.render(o,a),document.body.appendChild(a),Bt},Qn=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Bt={text(e,n={}){return Qn(e),Yt({...n,type:"text",msg:e})},success(e,n={}){return Qn(e),Yt({icon:le.Success,...n,msg:e,type:"success"})},fail(e,n={}){return Qn(e),Yt({icon:le.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return Qn(e),Yt({icon:le.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Yt({icon:le.Loading,...n,msg:e,type:"loading"})},hide(e){Ms(e)},install(e){e.use(Ql),e.config.globalProperties.$toast=Bt}},{componentName:aA,create:mk}=Q("audio"),pk=mk({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:le.Service,[Ft.name]:Ft},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var S=["webkitVisibilityState","visibilitychange"];try{for(let k=0;k<S.length;k++)document.addEventListener(S[k],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(k){k.message}});const r=S=>{const k=o.value;e.autoplay&&k&&k.paused&&k.play(),l.second=k.duration,l.duration=y(k.duration),n("can-play",S)},s=S=>{l.currentTime=parseInt(S.target.currentTime)},i=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const S=o.value;l.playing?(S.pause(),l.handPlaying=!1):(S.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},f=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},p=S=>{l.currentDuration=y(S),l.percent=S/l.second*100},u=()=>{l.playing=!1,n("ended")},h=S=>{const k=o.value;k.currentTime=l.second*S/100,n("changeProgress",k.currentTime)},b=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},y=S=>{if(!S)return"00:00:00";let k=parseInt(S),d=Math.floor(k/3600),m=Math.floor((k-d*3600)/60),g=k-d*3600-m*60,N="";return N+=("0"+d.toString()).slice(-2)+":",N+=("0"+m.toString()).slice(-2)+":",N+=("0"+g.toString()).slice(-2),N};return t.watch(()=>l.currentTime,S=>{p(S)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:b,forward:f,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:f,changeStatus:c,progressChange:h,audioEnd:u,onTimeupdate:s,handleMute:b,onCanplay:r,slots:a}}}),hk={class:"fox-audio"},gk={key:0,class:"fox-audio__progress"},yk={class:"fox-audio__time"},bk={class:"fox-audio__bar"},kk=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),Sk={class:"fox-audio__time"},Ck={key:1,class:"fox-audio__icon"},wk=["controls","src","preload","autoplay","loop","muted"];function Nk(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",hk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",gk,[t.createElementVNode("div",yk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",bk,[t.createVNode(s,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[kk]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Sk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Ck,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(i,{key:1}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:n[2]||(n[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onCanplay:n[4]||(n[4]=(...c)=>e.onCanplay&&e.onCanplay(...c)),onEnded:n[5]||(n[5]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,wk)])}const Zl=oe(pk,[["render",Nk]]),{componentName:rA,create:Bk,scope:Ak}=Q("audio-operate"),Tk=Bk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Ak),o=t.inject("audioParent"),l=t.reactive(o),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(l),customSlot:r,t:a}}}),$k={class:"fox-audio-operate"};function Vk(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",$k,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}const Jl=oe(Tk,[["render",Vk]]),{componentName:Ek,create:Dk}=Q("avatar"),Ik=Dk({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:o,color:l}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),f=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const y=s?.avatarGroupRef?.value?.children;y&&b(y)});const p=t.computed(()=>({[Ek]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),u=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${l.value}`,marginLeft:f.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(f.maxIndex-f.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),b=y=>{f.maxIndex=y.length;for(let S=0;S<y.length;S++)y[S]&&y[S].classList&&y[S].classList[0]=="fox-avatar"&&y[S].setAttribute("data-index",S+1);f.index=i?.value?.dataset?.index,f.index==f.maxIndex&&f.index!=s?.props?.maxCount&&(f.showMax=!0)};return{classes:p,styles:u,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(f)}}});function xk(e,n,a,o,l,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const Xt=oe(Ik,[["render",xk]]),{componentName:qk,create:vk}=Q("avatar-group"),Mk=vk({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:a}){t.toRefs(e);const o=t.ref(null),l=t.ref(0),r=t.computed(()=>({[qk]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function Pk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const _l=oe(Mk,[["render",Pk]]);var Gn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(Gn||{});function Lk(e,n,a){let o=0,l=e.length-1,r=null;for(;o<=l;){r=Math.floor((o+l)/2);const s=e[r],i=a(s,n);if(i===1)return r;i===2?o=r+1:i===3&&(l=r-1)}return r}const{componentName:zk,create:Fk}=Q("list"),Ps=document.documentElement.clientHeight||document.body.clientHeight||667,Rk=Fk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Ps},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(null),l=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=t.computed(()=>Math.min(e.containerHeight,Ps)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),f=t.computed(()=>({[zk]:!0})),p=t.computed(()=>r.list.slice(r.start,c.value)),u=()=>{if(l.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let d=0;d<r.list.length;++d)r.cachePositions[d]={index:d,height:e.height,top:d*e.height,bottom:(d+1)*(e.height+e.margin),dValue:0}},b=()=>{let d=l.value.childNodes;d=Array.from(d).filter(V=>V.nodeType===1);const m=d[0];d.forEach((V,A)=>{if(!V)return;const E=De(V),{height:T}=E,v=r.cachePositions[A+r.start].height-T;v&&(r.cachePositions[A+r.start].bottom-=v,r.cachePositions[A+r.start].height=T,r.cachePositions[A+r.start].dValue=v)});let g=0;m&&(g=r.start);const N=r.cachePositions.length;let $=r.cachePositions[g].dValue;r.cachePositions[g].dValue=0;for(let V=g+1;V<N;++V){const A=r.cachePositions[V];r.cachePositions[V].top=r.cachePositions[V-1].bottom,r.cachePositions[V].bottom=r.cachePositions[V].bottom-$,A.dValue!==0&&($+=A.dValue,A.dValue=0)}const C=r.cachePositions[N-1].bottom;r.phantomHeight=C},y=(d=0)=>{let m=Lk(r.cachePositions,d,(N,$)=>{const C=N.bottom;return C===$?Gn.eq:C<$?Gn.lt:Gn.gt});return r.cachePositions[m].bottom<d&&(m+=1),m},S=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},k=()=>{const d=a.value?.scrollTop,{originStartIndex:m}=r,g=y(d);g!==m&&(r.originStartIndex=g,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(d>r.scrollTop?"scroll-up":"scroll-down",d),r.scrollTop=d};return t.watch(()=>e.listData,d=>{if(r.list=d.slice(),r.list.length===d.length)h(),b();else{S();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&b()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:u,visibleData:p,classes:f,getContainerHeight:s,handleScrollEvent:k}}});function Ok(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const ea=oe(Rk,[["render",Ok]]),{componentName:Kk,create:Uk}=Q("circleprogress"),Hk=Uk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const a=!!t.useSlots().default,o=Math.random().toString(36).slice(-8),l=t.computed(()=>({[Kk]:!0})),r=t.computed(()=>{const p=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${p} 0 90 a 45 45 0 1, ${p} 0 -90`}),s=t.computed(()=>$e(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let p=283,u=p*Number(e.progress)/100;return{stroke:$e(e.color)?`url(#${o})`:e.color,strokeDasharray:`${u}px ${p}px`}}),c=t.computed(()=>({stroke:e.pathColor})),f=t.computed(()=>{if(!$e(e.color))return;let p=e.color;const u=Object.keys(p).sort((b,y)=>parseFloat(b)-parseFloat(y));let h=[];return u.map((b,y)=>{let S={key:"",value:""};S.key=b,S.value=p[b],h.push(S)}),h});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:f,slotDefault:a,refRandomId:o}}}),jk={viewBox:"0 0 100 100"},Wk=["id"],Yk=["offset","stop-color"],Xk=["d","stroke-width"],Qk=["d","stroke","stroke-linecap","stroke-width"],Gk={class:"fox-circleprogress-text"},Zk={key:0};function Jk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",jk,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.stop,(s,i)=>(t.openBlock(),t.createElementBlock("stop",{key:i,offset:s.key,"stop-color":s.value},null,8,Yk))),128))],8,Wk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Xk),t.createElementVNode("path",{class:"fox-circleprogress-hover",style:t.normalizeStyle(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,Qk)])),t.createElementVNode("div",Gk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Zk,t.toDisplayString(e.progress)+"%",1))])],6)}const ta=oe(Hk,[["render",Jk]]),{componentName:_k,create:eS}=Q("noticebar"),tS=eS({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:le.Notice,CircleClose:le.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[_k]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),f=t.computed(()=>{let V={};return e.color&&(V.color=e.color),e.background&&(V.background=e.background),e.direction=="vertical"&&(V.height=`${e.height}px`),V}),p=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),u=t.computed(()=>{let V={};if(e.complexAm)V={transform:`translateY(${r.distance}px)`};else if(r.animate){let A=~~(e.height/e.speed/4);V={transition:`all ${A==0?~~(e.height/e.speed):A}s`,"margin-top":`-${e.height}px`}}return V});t.watch(()=>e.text,V=>{h()}),t.watch(()=>e.list,V=>{r.scrollList=[...V]});const h=V=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const A=o.value.getBoundingClientRect().width,E=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?E>A:e.scrollable,r.isCanScroll?(r.wrapWidth=A,r.offsetWidth=E,r.duration=E/e.speed,r.animationClass="play"):r.animationClass=""},0)},b=V=>{n("click",V)},y=V=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",V)},S=V=>{r.firstRound=!1,n("across-end",V),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},k=()=>{d(),r.timer=setInterval(d,~~(e.height/e.speed/4*1e3)+e.standTime)},d=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},m=()=>{r.timer=setInterval(()=>{let V=100;for(let A=0;A<V;A++)g(A,!(A<V-1))},e.standTime+100*e.speed)},g=(V,A)=>{setTimeout(()=>{r.distance-=e.height/100,A&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},V*e.speed)},N=V=>{n("click",V)},$=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?C(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?m():k()},e.standTime)):h(e.text)}),t.watch(()=>a.default?a.default():[],V=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),C(V))});const C=V=>{V&&V.length>0&&(r.scrollList=V[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:f,contentStyle:p,horseLampStyle:u,wrap:o,content:l,handleClick:b,onClickIcon:y,onAnimationEnd:S,go:N,handleClickIcon:$,slots:a,toPxDesc:ge,wrapContentClass:c}}}),nS={class:"fox-noticebar__page-lefticon"},oS={ref:"wrap",class:"fox-noticebar__page-wrap"},lS={class:"showNotica"},aS=["onClick"];function rS(e,n,a,o,l,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:n[3]||(n[3]=(...f)=>e.handleClick&&e.handleClick(...f))},[t.createElementVNode("view",nS,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",oS,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...f)=>e.onAnimationEnd&&e.onAnimationEnd(...f)),"on:webkitAnimationEnd":n[1]||(n[1]=(...f)=>e.onAnimationEnd&&e.onAnimationEnd(...f))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...f)=>e.onClickIcon&&e.onClickIcon(...f),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",lS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(f,p)=>(t.openBlock(),t.createBlock(c,{key:p,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:f},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(f,p)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:p,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:u=>e.go(f)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(f),1)])],12,aS))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=f=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const na=oe(tS,[["render",rS]]),sS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzM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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:sA,create:dS,scope:uS}=Q("empty"),fS={empty:sS,error:iS,network:cS},mS=dS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=re.useFoxI18n(uS),a=n(e,["description"]),{image:o,imageSize:l}=t.toRefs(e),r=t.computed(()=>l.value?typeof l.value=="number"?`width:${l.value}px;height:${l.value}px`:`width:${l.value};height:${l.value}`:""),i=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:fS[o.value];return{...a,imageUrl:i,imgStyle:r}}}),pS={class:"fox-empty"},hS=["src"],gS={key:1,class:"fox-empty-description"};function yS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",pS,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,hS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",gS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const oa=oe(mS,[["render",yS]]),{create:bS,scope:kS}=Q("video"),SS=bS({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(kS),o=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),l=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,C=>{C.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,C=>{o.state.isMuted=C?C.muted:!1},{immediate:!0});const s=()=>{o.videoElm=l.value,e.options.autoplay&&setTimeout(()=>{o.videoElm.play()},200),e.options.touchPlay&&(o.showTouchMask=!0),e.options.playsinline&&(o.videoElm.setAttribute("playsinline",e.options.playsinline),o.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),o.videoElm.setAttribute("x5-video-player-type","h5-page"),o.videoElm.setAttribute("x5-video-player-fullscreen",!1)),y(),o.showToolbox?i():(o.videoElm.addEventListener("play",()=>{o.state.playing=!0,n("play",o.videoElm)}),o.videoElm.addEventListener("pause",()=>{o.state.playing=!1,n("pause",o.videoElm)}),o.videoElm.addEventListener("ended",h),o.videoElm.addEventListener("timeupdate",sn(u,1e3)))},i=()=>{const C=l.value,V=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=C,o.progressBar.progressElm=V,o.progressBar.pos=V.getBoundingClientRect(),o.videoSet.progress.width=Math.round(V.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return o.state.playing=!0,!1;if(o.state.playing=!o.state.playing,o.videoElm)if(o.state.playing)try{setTimeout(()=>{o.videoElm.play()},200),o.videoElm.addEventListener("progress",()=>{p()}),o.videoElm.addEventListener("timeupdate",sn(u,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{b()}else o.videoElm.pause(),n("pause",o.videoElm)},f=C=>{var V=Math.floor(C/3600);V<10&&(V="0"+V);var A=Math.floor(C%3600/60);A<10&&(A="0"+A);var E=Math.round(C%3600%60);E<10&&(E="0"+E);var T="";return V!=0?T=V+":"+A+":"+E:T=A+":"+E,T},p=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},u=()=>{const C=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*C),o.videoSet.totalTime=f(o.videoElm.duration),o.videoSet.displayTime=f(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},h=()=>{o.state.playing=!1,o.state.isEnd=!0,o.videoSet.displayTime="00:00",o.videoSet.progress.current=0,o.videoElm.currentTime=0,n("playend",o.videoElm)},b=()=>{o.state.isError=!0},y=()=>{o.state.vol=e.options.volume},S=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},k=()=>{},d=C=>{let A=C.targetTouches[0].pageX-o.progressBar.pos.left;A<=0&&(A=0),A>=o.videoSet.progress.width&&(A=o.videoSet.progress.width),o.videoSet.progress.current=A;let E=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&g(E,o.videoElm.duration)},m=C=>{let A=C.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=A;let E=A/o.videoSet.progress.width;o.videoElm.duration&&g(E,o.videoElm.duration)},g=(C,V)=>{o.videoElm.currentTime=Math.floor(C*V)},N=()=>{o.state.isError=!1,s()},$=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:l,...t.toRefs(e),...t.toRefs(o),handleError:b,isDisabled:r,play:c,handleMuted:S,touchSlidSrart:k,touchSlidMove:d,touchSlidEnd:m,retry:N,fullScreen:$,t:a}}}),CS={class:"fox-video",ref:"videocon"},wS=["muted","autoplay","loop","poster","controls","preload"],NS=["src","type"],BS={class:"fox-video-controller__now"},AS={class:"fox-video-controller__progress"},TS={class:"fox-video-controller__progress-value",ref:"progressBar"},$S=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)],VS={class:"fox-video-controller__played",ref:"playedBar"},ES={class:"fox-video-controller__total"},DS={class:"fox-video-error"},IS={class:"fox-video-error-tip"};function xS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",CS,[t.createElementVNode("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:n[0]||(n[0]=(...s)=>e.handleError&&e.handleError(...s))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,NS)],40,wS),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...s)=>e.play&&e.play(...s))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...s)=>e.play&&e.play(...s))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[t.createElementVNode("div",{class:"fox-video-controller__playbtn",onClick:n[3]||(n[3]=(...s)=>e.play&&e.play(...s))}),t.createElementVNode("div",BS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",AS,[t.createElementVNode("div",TS,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"fox-video-controller__ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=t.withModifiers(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:n[5]||(n[5]=t.withModifiers(s=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=t.withModifiers(s=>e.touchSlidEnd(s),["stop"]))},$S,36),t.createElementVNode("div",VS,null,512)],512)]),t.createElementVNode("div",ES,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...s)=>e.fullScreen&&e.fullScreen(...s))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",DS,[t.createElementVNode("p",IS,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const At=oe(SS,[["render",xS]]),{create:qS,componentName:vS}=Q("steps"),la=qS({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:a}){const o=t.reactive({children:[]}),l=t.computed(()=>{const i=vS;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&o.children.push(i)},s=i=>{n("click-step",i)};return t.provide("parent",{relation:r,state:o,props:e,onEmit:s}),()=>t.h("view",{class:l.value},a.default?.())}}),{create:MS,componentName:PS}=Q("step"),LS=MS({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),n=t.inject("parent");n.relation(e);const a=t.reactive({dot:n.props.progressDot}),o=t.computed(()=>n.state.children.indexOf(e)+1),l=()=>{const c=o.value;return c<+n.props.current?"finish":c===+n.props.current?"process":"wait"},r=t.computed(()=>l()),s=t.computed(()=>{const c=PS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),zS={class:"fox-step-head"},FS=t.createElementVNode("view",{class:"fox-step-line"},null,-1),RS={class:"fox-step-icon-inner"},OS={key:1,class:"fox-step-inner"},KS={class:"fox-step-main"},US={class:"fox-step-title"},HS={key:0},jS={key:0,class:"fox-step-content"},WS=["innerHTML"];function YS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",zS,[FS,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",RS,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",OS,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",KS,[t.createElementVNode("view",US,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",HS,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",jS,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,WS)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const aa=oe(LS,[["render",YS]]),{create:XS,componentName:ra}=Q("swiper"),QS=XS({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=Je(),s=t.computed(()=>({[ra]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const q=ra;return{[`${q}-inner`]:!0,[`${q}-vertical`]:i.value}}),f=t.computed(()=>{const q=ra;return{[`${q}-pagination`]:!0,[`${q}-pagination-vertical`]:i.value}}),p=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),u=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>l.children.length),b=t.computed(()=>l[i.value?"height":"width"]),y=t.computed(()=>h.value*b.value),S=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-b.value*h.value:0),k=t.computed(()=>(l.active+h.value)%h.value),d=()=>{let q=0;q=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${q}px)`,[i.value?"height":"width"]:`${b.value*h.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},m=q=>{let Y=[];const j=l.childrenVNode.length;let J=a?.default?.();if(J=J.filter(ee=>ee.children&&Array.isArray(ee.children)),J.forEach(ee=>{Y=Y.concat(ee.children)}),!j)l.childrenVNode=Y.slice(),q.proxy&&l.children.push(q.proxy);else if(j>Y.length)l.children=l.children.filter(ee=>q.proxy!==ee);else if(j<Y.length){for(let ee=0;ee<j;ee++)if(Y[ee].key!==l.childrenVNode[ee].key){q.proxy&&l.children.splice(ee,0,q.proxy),q.vnode&&l.childrenVNode.splice(ee,0,q.vnode);break}j!==Y.length&&(q.proxy&&l.children.push(q.proxy),q.vnode&&l.childrenVNode.push(q.vnode))}else l.childrenVNode=Y.slice(),q.proxy&&l.children.push(q.proxy)},g=(q,Y=0)=>{let j=q*b.value;e.loop||(j=Math.min(j,-S.value));let J=Y-j;return e.loop||(J=Ue(J,S.value,0)),J},N=q=>{const{active:Y}=l;return q?e.loop?Ue(Y+q,-1,h.value):Ue(Y+q,0,h.value-1):Y},$=({pace:q=0,offset:Y=0,isEmit:j=!1})=>{if(h.value<=1)return;const{active:J}=l,ee=N(q),W=g(ee,Y);if(e.loop){if(l.children[0]&&W!==S.value){const M=W<S.value;l.children[0].setOffset(M?y.value:0)}if(l.children[h.value-1]&&W!==0){const M=W>0;l.children[h.value-1].setOffset(M?-y.value:0)}}l.active=ee,l.offset=W,j&&J!==l.active&&n("change",k.value),d()},C=()=>{l.moving=!0,l.active<=-1&&$({pace:h.value}),l.active>=h.value&&$({pace:-h.value})},V=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},A=q=>{C(),r.reset(),Xe(()=>{Xe(()=>{l.moving=!1,$({pace:q,isEmit:!0})})})},E=()=>{A(-1)},T=()=>{A(1)},B=q=>{C(),r.reset(),Xe(()=>{l.moving=!1;let Y;e.loop&&h.value===q?Y=l.active===0?0:q:Y=q%h.value,$({pace:Y-l.active,isEmit:!0})})},v=()=>{e.autoPlay<=0||h.value<=1||(V(),l.autoplayTimer=setTimeout(()=>{T(),v()},Number(e.autoPlay)))},L=(q=+e.initPage)=>{V(),l.rect=o.value.getBoundingClientRect(),q=Math.min(h.value-1,q),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=q,l.offset=g(l.active),l.moving=!0,d(),v()},D=q=>{e.isPreventDefault&&q.preventDefault(),e.isStopPropagation&&q.stopPropagation(),e.touchable&&(r.start(q),l.touchTime=Date.now(),V(),C())},x=q=>{e.touchable&&l.moving&&(r.move(q),u.value&&$({offset:p.value}))},U=q=>{if(!e.touchable||!l.moving)return;const Y=p.value/(Date.now()-l.touchTime);if((Math.abs(Y)>.3||Math.abs(p.value)>+(b.value/2).toFixed(2))&&u.value){let J=0;const ee=i.value?r.offsetY.value:r.offsetX.value;e.loop?J=ee>0?p.value>0?-1:1:0:J=-Math[p.value>0?"ceil":"floor"](p.value/b.value),$({pace:J,isEmit:!0})}else p.value&&$({pace:0});l.moving=!1,d(),v()};return t.provide("parent",{props:e,size:b,relation:m}),Ee({prev:E,next:T,to:B}),t.onDeactivated(()=>{V()}),t.onBeforeUnmount(()=>{V()}),t.watch(()=>e.initPage,q=>{t.nextTick(()=>{L(Number(q))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{L()})}),t.watch(()=>e.autoPlay,q=>{q>0?v():V()}),{state:l,classes:s,classesInner:c,classesPagination:f,container:o,activePagination:k,onTouchStart:D,onTouchMove:x,onTouchEnd:U}}});function GS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const Tt=oe(QS,[["render",GS]]),{create:ZS,componentName:JS}=Q("swiper-item"),_S=ZS({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[JS]:!0})),r=t.computed(()=>{const i={},c=a?.props.direction;return a?.size.value&&(i[c==="horizontal"?"width":"height"]=`${a?.size.value}px`),o.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${o.offset}px)`),i}),s=i=>{o.offset=i};return t.onUnmounted(()=>{a.relation(t.getCurrentInstance(),"unmount")}),Ee({setOffset:s}),{style:r,classes:l}}});function e1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const $t=oe(_S,[["render",e1]]),Ls={show:{type:Boolean,default:!1},initNo:{type:Number,default:0},showIndex:{type:Boolean,default:!0},minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3}},{create:t1}=Q("image-preview-item"),n1=t1({props:{...Ls,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[At.name]:At,[$t.name]:$t},setup(e,{emit:n}){const a=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),o=Je(),l=t.computed(()=>{const{rootWidth:E,rootHeight:T}=e,B=T/E;return a.imageRatio>B}),r=t.computed(()=>{const E=e.image;if(E&&E.src){const{scale:T,moveX:B,moveY:v,moving:L,zooming:D}=a,x={transitionDuration:D||L?"0s":".3s"};if(T!==1){const U=B/T,q=v/T;x.transform=`scale(${T}, ${T}) translate(${U}px, ${q}px)`}return x}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:E,rootHeight:T}=e,B=l.value?T/a.imageRatio:E;return Math.max(0,(a.scale*B-E)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:E,rootHeight:T}=e,B=l.value?T:E*a.imageRatio;return Math.max(0,(a.scale*B-T)/2)}return 0}),c=E=>{const{naturalWidth:T,naturalHeight:B}=E.target;a.imageRatio=B/T},f=()=>{p(1),a.moveX=0,a.moveY=0},p=E=>{E=Ue(E,+e.minZoom,+e.maxZoom+1),E!==a.scale&&(a.scale=E,n("scale",{scale:E,index:e.initNo}))},u=()=>{const E=a.scale>1?1:2;p(E),a.moveX=0,a.moveY=0},h=E=>Math.sqrt((E[0].clientX-E[1].clientX)**2+(E[0].clientY-E[1].clientY)**2);let b,y,S,k,d,m,g;const N=E=>{const{touches:T}=E,{offsetX:B}=o;o.start(E),g=T.length,b=a.moveX,y=a.moveY,m=Date.now(),a.moving=g===1&&a.scale!==1,a.zooming=g===2&&!B.value,a.zooming&&(S=a.scale,k=h(E.touches))},$=E=>{const{touches:T}=E;if(o.move(E),(a.moving||a.zooming)&&fo(E,!0),a.moving){const{deltaX:B,deltaY:v}=o,L=B.value+b,D=v.value+y;a.moveX=Ue(L,-s.value,s.value),a.moveY=Ue(D,-i.value,i.value)}if(a.zooming&&T.length===2){const B=h(T),v=S*B/k;p(v)}},C=()=>{if(g==1&&e.video&&e.video.source||g>1)return;const{offsetX:E,offsetY:T}=o,B=Date.now()-m,v=250,L=5;E.value<L&&T.value<L&&B<v&&(d?(clearTimeout(d),d=null,u()):d=setTimeout(()=>{e.contentClose&&n("close"),d=null},v))},V=E=>{let T=!1;(a.moving||a.zooming)&&(T=!0,a.moving&&b===a.moveX&&y===a.moveY&&(T=!1),E.touches.length||(a.zooming&&(a.moveX=Ue(a.moveX,-s.value,s.value),a.moveY=Ue(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,b=0,y=0,S=1,a.scale<1&&f(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),fo(E,T),C(),o.reset()},A=()=>{n("close")};return t.watch(()=>e.initNo,f),t.watch(()=>e.show,E=>{E||f()}),{...t.toRefs(a),onTouchStart:N,onTouchMove:$,onTouchEnd:V,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:A}}}),o1=["src"];function l1(e,n,a,o,l,r){const s=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onClick:e.closeSwiper},{default:t.withCtx(()=>[t.createElementVNode("view",{style:t.normalizeStyle(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[2]||(n[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[4]||(n[4]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,o1)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createBlock(s,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):t.createCommentVNode("",!0)],36)]),_:1},8,["onClick"])}const a1=oe(n1,[["render",l1]]),{create:r1}=Q("image-preview"),s1=r1({props:{...Ls,images:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},contentClose:{type:Boolean,default:!0},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},autoplay:{type:[Number,String],default:0},teleport:{type:[String,Element],default:"body"},teleportDisable:{ype:Boolean,default:!1},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},beforeClose:Function,isLoop:{type:Boolean,default:!0}},emits:["close","change"],components:{ImagePreviewItem:a1,CircleClose:le.CircleClose,[fe.name]:fe,[Tt.name]:Tt},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),l=t.computed(()=>{const p="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${p}-right`:`${p}-left`}`}),r=t.computed(()=>en(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=p=>{p!==o.active&&(o.active=p,n("change",o.active))},i=()=>{xs(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},f=()=>{if(a.value){const p=De(a.value);o.rootHeight=p.height,o.rootWidth=p.width}};return t.watch(()=>e.show,p=>{o.showPop=p,p&&(s(e.initNo),f())}),t.watch(()=>e.initNo,p=>{p!=o.active&&s(p)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:i,mergeImages:r,setActive:s,iconClasses:l}}}),i1={class:"fox-image-preview",ref:"swipeRef"},c1={key:0,class:"fox-image-preview-index"};function d1(e,n,a,o,l,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",i1,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(p,u)=>(t.openBlock(),t.createBlock(s,{key:u,video:u<e.videos.length?p:{},image:u>=e.videos.length?p:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",c1,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:n[0]||(n[0]=(...p)=>e.onClose&&e.onClose(...p))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const zs=oe(s1,[["render",d1]]);class u1{show=!1;images=[];videos=[];contentClose=!0;initNo=0;paginationVisible=!1;paginationColor="";autoplay=0;isWrapTeleport=!1;showIndex=!0;closeable=!1;closeIconPosition="top-right";beforeClose;maxZoom=3;minZoom=1/3;isLoop=!0;teleport="body"}class f1{options=new u1;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=ki(a,{name:"image-preview",components:[fe,At,Tt,$t,rt],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(zs,a))}})})}}const Zn=e=>new f1(e);Zn.install=e=>{e.use(zs)};function m1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:cA,create:p1}=Q("countup"),h1=p1({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref([]),l=A=>{A&&o.value.push(A)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:f}=t.reactive(e);t.watch(()=>e.customChangeNum,(A,E)=>{u(),k(0)}),t.watch(()=>e.machinePrizeLevel,(A,E)=>{r.prizeLevelTrun=A}),t.watch(()=>e.initNum,(A,E)=>{r.current=A,r.valFlag=!1,p()}),t.watch(()=>e.endNum,(A,E)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||c?f!="machine"&&k():(S(),setTimeout(()=>{r.valFlag=!0},300)))},u=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(A,E,T)=>{const B=(A.toString().split(".")[1]||"").length,v=(E.toString().split(".")[1]||"").length,L=Math.pow(10,Math.max(B,v));return T=="-"?Number((A*L-E*L).toFixed(0))/L:Number((A*L+E*L).toFixed(0))/L},b=A=>{let{num_total_len:E,pointNum:T,initDigit1:B,initDigit2:v,sortFlag:L}=r,D=L=="add"||L=="equal"?String(v)[A-(E-T)]:10-Number(String(v)[A-(E-T)]),x=L=="add"||L=="equal"?String(B)[A]:10-Number(String(B)[A]),U=A>E-T-1?-D*100+"%":A<=String(B).length-1?-x*100+"%":0;return U=="-1000%"&&(U=0),U},y=A=>{let{num_total_len:E,pointNum:T,initDigit1:B,initDigit2:v,sortFlag:L}=r,D=String(v)[A-(E-T)];return A>E-T-1?D||0:A<=String(B).length-1?String(B)[A]:0},S=()=>{let{endNum:A,initNum:E,speed:T,toFixed:B}=e,v=setInterval(()=>{if(E>A)if(r.current<=A||r.current<=T)r.current=A.toFixed(B),clearInterval(v),n("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))-parseFloat(String(T));r.current=L.toFixed(B)}else if(r.current>=A)r.current=A.toFixed(B),clearInterval(v),n("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))+parseFloat(String(T));r.current=L.toFixed(B)}},e.during)},k=A=>{let{initNum:E,endNum:T,toFixed:B,customBgImg:v}=e;v&&(E=e.customChangeNum);let L,D,x,U;E!=0?(B!=0&&(E=Number(E.toFixed(B))),String(E).indexOf(".")>-1?(L=String(E).split(".")[0].length,D=String(E).split(".")[1].length):(L=String(E).length,D=0)):(L=1,D=0),T!=0?(B!=0&&(T=Number(T.toFixed(B))),String(T).indexOf(".")>-1?(x=String(T).split(".")[0].length,U=String(T).split(".")[1].length):(x=String(T).length,U=0)):(x=1,U=0);let q=L>=x?L:x,Y=D>=U?D:U;r.num_total_len=q+Y,r.pointNum=Y,E>T?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(E,T,"-"),r.numberVal=Number(String(E))):E<T?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(T,E,"-"),r.numberVal=Number(String(T))):r.sortFlag="equal";var j=1;for(let ee=0;ee<r.pointNum;ee++)j*=10;var J=r.numberVal*j;if(r.relNum=J,B!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(J).length),String(E).indexOf(".")>-1){let ee=String(E).split(".");r.initDigit1=Number(ee[0]),r.initDigit2=Number(ee[1])}else r.initDigit1=E,r.initDigit2=0;i&&!v?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let ee=o.value[r.num_total_len-1];d(ee)}):A!==0&&N()},d=A=>{u();var E=1;r.pointNum!=0&&(E=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{m(A),r.totalCount=h(r.totalCount,E,"-"),r.totalCount<=0&&(u(),n("scroll-end"),r.valFlag=!1)},e.during)},m=A=>{let E=A.getAttribute("turn-number"),T;if(r.sortFlag=="add"?T=parseInt(String(E))+1:T=parseInt(String(E))-1>=0?parseInt(String(E))-1:9,A.setAttribute("turn-number",String(T)),(A.style.transition=="none 0s ease 0s"||T==1||!A.style.transition)&&(A.style.transition=`all linear ${e.during}ms`),T==10||r.sortFlag=="reduce"&&T==0){var B=null;A.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`,A.setAttribute("turn-number","0"),B=setTimeout(()=>{B&&clearTimeout(B),A.style.transition="none",A.style.top="0",g(A,T)},.975*e.during)}else A.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`;A.style.top=="-100%"&&r.sortFlag=="reduce"&&m(A.previousSibling)},g=(A,E)=>{setTimeout(()=>{E==10&&A.previousSibling&&m(A.previousSibling)},200)},N=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},$=()=>{for(r.notPrize=[];r.notPrize.length<3;){var A=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(A)==-1&&r.notPrize.push(A)}};m1({machineLuck:()=>{const A=e.machineTurnMore<0?0:e.machineTurnMore;let E=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&$();for(let T=0;T<e.machineNum;T++)setTimeout(()=>{let B=E*(T+1+parseFloat(String(A)));r.prizeYPrev.length!=0&&(r.prizeY[T]=r.prizeYPrev[T]);let v=r.prizeYPrev[T]?r.prizeYPrev[T]:0,L=B+v+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(E-v);r.prizeLevelTrun<0&&(L+=e.numHeight*r.notPrize[T]),V(T,L,v)},500*T)}});const V=(A,E,T)=>{let B=setInterval(()=>{if(T<=E)T+=10,r.prizeY[A]=parseFloat(String(T));else if(clearInterval(B),B=null,r.finshMachine+=1,r.prizeY[A]=E,r.finshMachine==e.machineNum){let v=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(D=>{let x=D;for(;x>v;)x-=v;r.prizeYPrev.push(x)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{p()})}),t.onUnmounted(()=>{u(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:b,turnNumber:y}}}),g1={class:"fox-countup"},y1=["turn-number"];function b1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",g1,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+f,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,y1))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.current),1)],64))],64))])}const sa=oe(h1,[["render",b1]]),k1=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:S1,create:C1}=Q("countdown"),w1=C1({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:a}){const o=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),l=t.computed(()=>({[S1]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-k1(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const b=Date.now()-o.diffTime,y=Math.max(o.handleEndTime-b,0);o.restTime=y,y||(o.counting=!1,u(),n("on-end")),y>0&&i()}}))},c=(b,y)=>{const S=b;let k={d:0,h:0,m:0,s:0,ms:0};const d=1e3,m=60*d,g=60*m,N=24*g;return S>0&&(k.d=S>=d?Math.floor(S/N):0,k.h=Math.floor(S%N/g),k.m=Math.floor(S%g/m),k.s=Math.floor(S%m/d),k.ms=Math.floor(S%d)),y=="custom"?k:f({...k})},f=b=>{let{d:y,h:S,m:k,s:d,ms:m}=b,g=e.format;if(g.includes("DD")?g=g.replace("DD",lt(y)):S+=Number(y)*24,g.includes("HH")?g=g.replace("HH",lt(S)):k+=Number(S)*60,g.includes("mm")?g=g.replace("mm",lt(k)):d+=Number(k)*60,g.includes("ss")?g=g.replace("ss",lt(d)):m+=Number(d)*1e3,g.includes("S")){const N=lt(m,3).toString();g.includes("SSS")?g=g.replace("SSS",N):g.includes("SS")?g=g.replace("SS",N.slice(0,2)):g.includes("S")&&(g=g.replace("SS",N.slice(0,1)))}return g},p=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},u=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(u(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,b=>{let y=c(b,"custom");n("update:modelValue",y),n("input",y)}),t.watch(()=>e.paused,(b,y)=>{y?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&u()}),t.watch(()=>e.endTime,b=>{s()}),t.watch(()=>e.startTime,b=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:p,pause:u,renderTime:r,reset:h}}}),N1=["innerHTML"];function B1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,N1))],2)}const ia=oe(w1,[["render",B1]]),{create:A1}=Q("badge"),T1=A1({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const n=t.reactive({}),a=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),o=t.computed(()=>{if(e.dot)return;const l=e.value,r=e.max;return typeof l=="number"&&typeof r=="number"&&r<l?`${r}+`:l});return{state:n,stl:a,content:o}}}),$1={class:"fox-badge"},V1=["textContent"];function E1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",$1,[t.withDirectives(t.createElementVNode("view",{class:"fox-badge__icon",style:t.normalizeStyle(e.stl)},[t.renderSlot(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("view",{textContent:t.toDisplayString(e.content),class:t.normalizeClass(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:t.normalizeStyle(e.stl)},null,14,V1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const ca=oe(T1,[["render",E1]]),{componentName:D1,create:I1}=Q("tag"),x1=I1({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:le.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=D1;return{[s]:!0,[`${s}--${e.type}`]:!0,[`${s}--plain`]:e.plain,[`${s}--round`]:e.round,[`${s}--mark`]:e.mark,[`${s}--symbol`]:e.symbol,[`${s}--text`]:e.text,[`${s}--light`]:e.light}}),getStyle:()=>{const s={};return e.textColor?s.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(s.color=e.color),e.plain?(s.background="#fff",s["border-color"]=e.color):!e.text&&e.color&&(s.background=e.color),s},onClose:s=>{s.stopPropagation(),n("close",s)},onClick:s=>{n("click",s)}}}});function q1(e,n,a,o,l,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Qt=oe(x1,[["render",q1]]),{create:v1}=Q("popover"),M1=v1({components:{FoxPopup:fe},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const m="fox-popover-arrow",g=e.location,N=g.split("-")[0];return`${m} ${m}-${N} ${m}--${g}`}),c=t.computed(()=>{const m={},{bgColor:g,arrowOffset:N,location:$}=e,C=$.split("-")[0],V=$.split("-")[1],A=16;return g&&(m[`border${f(C)}Color`]=g),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(V||(m.left=`calc(50% + ${N}px)`),V=="start"&&(m.left=`${A+N}px`),V=="end"&&(m.right=`${A-N}px`)),["left","right"].includes(C)&&(V||(m.top=`calc(50% - ${N}px)`),V=="start"&&(m.top=`${A-N}px`),V=="end"&&(m.bottom=`${A+N}px`))),m}),f=m=>(m=m.toLowerCase(),m=m.replace(/\b\w+\b/g,g=>g.substring(0,1).toUpperCase()+g.substring(1)),m),p=t.computed(()=>{let m={};if(!r.value||!s.value)return{};const g=s.value.width,N=s.value.height,{width:$,height:C,left:V,top:A}=r.value,{location:E,offset:T}=e,B=E.split("-")[0],v=E.split("-")[1];let L=0,D=0;if(en(T)&&T.length==2&&(L+=Number(T[1]),D+=Number(T[0])),$){if(["bottom","top"].includes(B)){const x=B=="bottom"?C+L:-(N+L);m.top=`${A+x}px`,v||(m.left=`${-(g-$)/2+V+D}px`),v=="start"&&(m.left=`${V+D}px`),v=="end"&&(m.left=`${r.value.right+D}px`)}if(["left","right"].includes(B)){const x=B=="left"?-(g+L):$+L;m.left=`${V+x}px`,v||(m.top=`${A-N/2+C/2-4+D}px`),v=="start"&&(m.top=`${A+D}px`),v=="end"&&(m.top=`${A+C+D}px`)}}return m}),u=t.computed(()=>{const m={};return e.bgColor&&(m.background=e.bgColor),m}),h=()=>{let m=De(a.value);e.targetId&&(m=De(document.querySelector(`#${e.targetId}`))),r.value=m,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,m=>{l.value=m,m?(window.addEventListener("touchstart",d,!0),h()):window.removeEventListener("touchstart",d,!0)});const b=m=>{n("update",m),n("update:visible",m)},y=()=>{b(!e.visible),n("open")},S=()=>{n("update:visible",!1),n("close")},k=(m,g)=>{!m.disabled&&n("choose",m,g),e.closeOnClickAction&&S()},d=m=>{const g=a.value,N=o.value;let $=g&&!g.contains(m.target);if(e.targetId){const C=document.querySelector(`#${e.targetId}`);$=C&&!C.contains(m.target)}$&&N&&!N.contains(m.target)&&e.closeOnClickOutside&&S()};return{showPopup:l,openPopover:y,popoverArrow:i,closePopover:S,chooseItem:k,popoverRef:a,popoverContentRef:o,getRootPosition:p,customStyle:u,popoverArrowStyle:c,renderIcon:pr}}}),P1={ref:"popoverContentRef",class:"fox-popover-content-group"},L1=["onClick"],z1={class:"fox-popover-menu-item-name"};function F1(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",P1,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(f=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",z1,t.toDisplayString(i.name),1)],10,L1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Gt=oe(M1,[["render",F1]]),R1=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:a,round:o,avatarSize:l}=t.toRefs(n),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${a.value}`]:a.value}});return{avatarShape:a,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:o.value}),getStyle:()=>l.value?{width:l.value,height:l.value}:{width:"50px",height:"50px"}}}}),{create:O1}=Q("skeleton"),K1=O1(R1({[Xt.name]:Xt})),U1={key:0},H1={key:1,class:"fox-skeleton"},j1={key:0,class:"fox-skeleton-animation"},W1={class:"fox-skeleton-content"};function Y1(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",H1,[e.animated?(t.openBlock(),t.createElementBlock("view",j1)):t.createCommentVNode("",!0),t.createElementVNode("view",W1,[e.avatar?(t.openBlock(),t.createBlock(s,{key:0,class:t.normalizeClass(e.avatarClass),shape:e.avatarShape,style:t.normalizeStyle(e.getStyle())},null,8,["class","shape","style"])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-skeleton-content__line",style:t.normalizeStyle({width:e.width})},[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockTitle")),style:t.normalizeStyle({height:e.height})},null,6)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.row),i=>(t.openBlock(),t.createElementBlock("view",{key:i,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockLine")),style:t.normalizeStyle({height:e.height})},null,6))),128))],4)])])):(t.openBlock(),t.createElementBlock("view",U1,[t.renderSlot(e.$slots,"default")]))}const da=oe(K1,[["render",Y1]]),{create:X1,componentName:Q1}=Q("collapse"),G1=X1({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(e.modelValue||(e.accordion?"":[])),l=t.computed(()=>({[Q1]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,f,p=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,f,p)},s=c=>{if(e.accordion)o.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(o.value))if(o.value.includes(c)){const f=o.value.filter(p=>p!==c);r(f,c,!1)}else{const f=o.value.concat([c]);r(f,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:a,classes:l}}});function Z1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const ua=oe(G1,[["render",Z1]]),{create:J1,componentName:_1}=Q("collapse-item"),eC=J1({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:le.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),a=t.ref(null),o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const h=_1;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>l?l.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},f=()=>{s.value&&(i.value="auto")},p=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},u=()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?p():u()}),{classes:r,renderIcon:pr,wrapperRef:n,contentRef:a,open:p,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:f}}}),tC={class:"fox-collapse-item__title-main"},nC={class:"fox-collapse-item__title-main-value"},oC=["innerHTML"],lC={key:2,class:"fox-collapse-item__title-label"},aC={key:0,class:"fox-collapse-item__title-sub"},rC=["innerHTML"],sC={key:0,class:"fox-collapse__item-extraWrapper"},iC={class:"fox-collapse__item-extraWrapper__extraRender"},cC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function dC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",tC,[t.createElementVNode("view",nC,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,oC)),e.label?(t.openBlock(),t.createElementBlock("view",lC,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",aC,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,rC)),t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title-icon",{"fox-collapse-item__title-icon--expanded":e.expanded}]),style:t.normalizeStyle({transform:"rotate("+(e.expanded?e.rotate:0)+"deg)"})},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.icon))))],6)],2),e.$slots.extra?(t.openBlock(),t.createElementBlock("view",sC,[t.createElementVNode("div",iC,[t.renderSlot(e.$slots,"extra")])])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:t.normalizeStyle({willChange:"height",height:e.wrapperHeight}),onTransitionend:n[1]||(n[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[t.createElementVNode("view",cC,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const fa=oe(eC,[["render",dC]]),uC=t.defineComponent({setup(e){return()=>t.h("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:fC,create:mC,scope:pC}=Q("table"),hC=mC({components:{RenderColumn:uC,DownArrow:le.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:o}=re.useFoxI18n(pC),l=t.reactive({curData:e.data}),r=t.computed(()=>({[fC]:!0})),s=b=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${b.align?b.align:""}`]:!0}),i=b=>b.stylehead?b.stylehead:"",c=b=>b.stylecolumn?b.stylecolumn:"",f=b=>e.columns.filter(y=>y.key===b)[0],p=b=>{const y=e.columns.filter(S=>S.key===b);return y[0].stylecolumn?y[0].stylecolumn:""},u=b=>{b.sorter&&(n("sorter",b),l.curData=typeof b.sorter=="function"?l.curData.sort(b.sorter):b.sorter==="default"?l.curData.sort():l.curData)},h=()=>e.columns.map(b=>[b.key,b.render]);return t.watch(()=>e.data,b=>{l.curData=b.slice()}),{...t.toRefs(l),classes:r,cellClasses:s,getColumnItem:f,getColumnItemStyle:p,handleSorterClick:u,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),gC={class:"fox-table__main__head"},yC={class:"fox-table__main__head__tr"},bC=["onClick"],kC={class:"fox-table__main__body"},SC={key:1},CC={key:0,class:"fox-table__nodata"},wC={key:0,class:"fox-table__nodata__text"},NC={key:1,class:"fox-table__summary"},BC=["innerHTML"];function AC(e,n,a,o,l,r){const s=t.resolveComponent("DownArrow"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",gC,[t.createElementVNode("view",yC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:f=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,bC))),128))])]),t.createElementVNode("view",kC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([f,p])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(f))]),key:f,style:t.normalizeStyle(e.getColumnItemStyle(f))},[typeof c[f]=="function"||typeof p=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[p,c[f]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",SC,t.toDisplayString(c[f]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",CC,[t.createElementVNode("div",{class:t.normalizeClass(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[t.renderSlot(e.$slots,"nodata"),e.$slots.nodata?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",wC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",NC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,BC)])):t.createCommentVNode("",!0)],2)}const ma=oe(hC,[["render",AC]]),{componentName:TC,create:$C}=Q("ellipsis"),VC=$C({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const a=t.ref(null);let o=null,l=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[TC]:!0}));t.watch(()=>e.content,(S,k)=>{S!=k&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const S=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(S).forEach(m=>{o.style.setProperty(m,S.getPropertyValue(m))}),o.style.position="fixed",o.style.left="999999px",o.style.top="999999px",o.style.zIndex="-1000",o.style.height="auto",o.style.minHeight="auto",o.style.maxHeight="auto",o.style.textOverflow="clip",o.style.whiteSpace="normal",o.style.webkitLineClamp="unset",o.style.display="block";const d=h(S.lineHeight==="normal"?e.lineHeight:S.lineHeight);l=Math.floor(d*(Number(e.rows)+.5)+h(S.paddingTop)+h(S.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),f()},f=()=>{if(o.offsetHeight<=l)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const S=e.content.length,k=Math.floor((0+S)/2),d=e.direction==="middle"?u([0,k],[k,S]):p(0,S);r.value=d,document.body.removeChild(o)}},p=(S,k)=>{const d=s.expanded?e.collapseText:e.expandText,m=e.content.length;if(k-S<=1)return e.direction==="end"?{leading:e.content.slice(0,S)+e.symbol}:{tailing:e.symbol+e.content.slice(k,m)};const g=Math.round((S+k)/2);return e.direction==="end"?o.innerText=e.content.slice(0,g)+e.symbol+d:o.innerText=d+e.symbol+e.content.slice(g,m),o.offsetHeight<=l?e.direction==="end"?p(g,k):p(S,g):e.direction==="end"?p(S,g):p(g,k)},u=(S,k)=>{const d=s.expanded?e.collapseText:e.expandText,m=e.content.length;if(S[1]-S[0]<=1&&k[1]-k[0]<=1)return{leading:e.content.slice(0,S[0])+e.symbol,tailing:e.symbol+e.content.slice(k[1],m)};const g=Math.floor((S[0]+S[1])/2),N=Math.ceil((k[0]+k[1])/2);return o.innerText=e.content.slice(0,g)+e.symbol+d+e.symbol+e.content.slice(N,m),o.offsetHeight<=l?u([g,S[1]],[k[0],N]):u([S[0],g],[N,k[1]])},h=S=>{if(!S)return 0;const k=S.match(/^\d*(\.\d*)?/);return k?Number(k[0]):0},b=S=>{S==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},y=()=>{n("click")};return{...t.toRefs(s),root:a,ellipsis:r,classes:i,clickHandle:b,handleClick:y}}}),EC={key:0},DC={key:1},IC={key:2};function xC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",EC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",DC,[t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:n[0]||(n[0]=t.withModifiers(s=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",IC,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=t.withModifiers(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const pa=oe(VC,[["render",xC]]),{componentName:qC,create:vC}=Q("animate"),MC=vC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:o,action:l}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${qC}-${a.value}`]:l.value==="initial"||r.clicked?a.value:!1,loop:o.value}));const i=c=>{r.clicked=!0,o.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),PC={class:"fox-animate"};function LC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",PC,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const ha=oe(MC,[["render",LC]]),{componentName:zC,create:FC}=Q("watermark"),RC=FC({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.reactive({base64Url:""}),{zIndex:o,gapX:l,gapY:r,width:s,height:i,rotate:c,image:f,imageWidth:p,imageHeight:u,content:h,fontStyle:b,fontWeight:y,fontColor:S,fontSize:k,fontFamily:d}=e,m=()=>{const N=document.createElement("canvas"),$=window.devicePixelRatio,C=N.getContext("2d"),V=`${(l+s)*$}px`,A=`${(r+i)*$}px`,E=s*$,T=i*$;if(N.setAttribute("width",V),N.setAttribute("height",A),C){if(f){C.translate(E/2,T/2),C.rotate(Math.PI/180*Number(c));const B=new Image;B.crossOrigin="anonymous",B.referrerPolicy="no-referrer",B.src=f,B.onload=()=>{C.drawImage(B,-p*$/2,-u*$/2,p*$,u*$),C.restore(),a.base64Url=N.toDataURL()}}else if(h){C.textBaseline="middle",C.textAlign="center",C.translate(E/2,T/2),C.rotate(Math.PI/180*Number(c));const B=Number(k)*$;C.font=`${b} normal ${y} ${B}px/${T}px ${d}`,C.fillStyle=S,C.fillText(h,0,0),C.restore(),a.base64Url=N.toDataURL()}}else throw new Error("当前环境不支持Canvas")};m(),t.watch(()=>[o,l,r,s,i,c,f,p,u,h,b,y,S,k,d],()=>{m()});const g=t.computed(()=>{const N=zC;return{[N]:!0,[`${N}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:g}}});function OC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const ga=oe(RC,[["render",OC]]);function KC(e,n=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,n))/Math.pow(10,n)).toFixed(n))}const{componentName:UC,create:HC}=Q("trend-arrow"),jC=HC({components:{TriangleUp:le.TriangleUp,TriangleDown:le.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),a=t.computed(()=>({[UC]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const f=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${KC(Number(f),s)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:f}=e;return{color:f===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function WC(e,n,a,o,l,r){const s=t.resolveComponent("TriangleUp"),i=t.resolveComponent("TriangleDown");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?t.renderSlot(e.$slots,"up-icon",{key:1},()=>[t.createVNode(s,{color:e.riseColor},null,8,["color"])]):t.createCommentVNode("",!0),Number(e.rate)!==0&&!e.rateTrend?t.renderSlot(e.$slots,"down-icon",{key:2},()=>[t.createVNode(i,{color:e.dropColor},null,8,["color"])]):t.createCommentVNode("",!0),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const ya=oe(jC,[["render",WC]]),{create:YC}=Q("tour"),XC=YC({components:{[Gt.name]:Gt,Close:le.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},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=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),l=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:p,maskWidth:u,maskHeight:h}=e,{width:b,height:y,left:S,top:k}=o.value,d=[S+b/2,k+y/2],m=Number(u||b),g=Number(h||y);return{width:`${m+ +p[1]*2}px`,height:`${g+ +p[0]*2}px`,top:`${d[1]-g/2-+p[0]}px`,left:`${d[0]-m/2-+p[1]}px`}}),s=p=>{p=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,t.nextTick(()=>{a.showPopup=!0,i()}),n("change",a.active)},i=()=>{const p=document.querySelector(`#${e.steps[a.active].target}`),u=De(p);o.value=u},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},f=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,i()}),t.watch(()=>e.modelValue,p=>{p&&i(),a.active=0,a.showTour=p,a.showPopup=p}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:s,close:c,handleClickMask:f}}}),QC={key:0,class:"fox-tour-content"},GC={key:0,class:"fox-tour-content-top"},ZC={class:"fox-tour-content-inner"},JC={class:"fox-tour-content-bottom"},_C={class:"fox-tour-content-bottom-init"},ew={class:"fox-tour-content-bottom-operate"},tw={key:1,class:"fox-tour-content fox-tour-content-tile"},nw={class:"fox-tour-content-inner"};function ow(e,n,a,o,l,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[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),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=p=>e.showPopup=p),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",QC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",GC,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...p)=>e.close&&e.close(...p))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",ZC,t.toDisplayString(c.content),1),t.createElementVNode("div",JC,[t.createElementVNode("div",_C,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",ew,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:n[2]||(n[2]=p=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...p)=>e.close&&e.close(...p))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=p=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",tw,[t.createElementVNode("div",nw,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const ba=oe(XC,[["render",ow]]),{componentName:dA,create:lw,scope:aw}=Q("address"),rw=lw({components:{Location:le.Location,Location2:le.Location2,Check:le.Check,Close:le.Close,Left:le.Left,[fe.name]:fe,[zt.name]:zt},inheritAttrs:!1,props:{...ze,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(aw),o=t.ref(null),l=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),f=t.ref(["province","city","country","town"]),p=t.ref(null),u=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),b=x=>{if(!Array.isArray(x))throw new TypeError("params muse be array.");if(!x.length)return[];x.forEach(q=>{if(!q.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const U=[];return x=x.sort((q,Y)=>q.title.localeCompare(Y.title)),x.forEach(q=>{const Y=U.findIndex(j=>j.title===q.title);Y<=-1?U.push({title:q.title,list:[].concat(q)}):U[Y].list.push(q)}),U};let y=t.ref([]),S=t.reactive({});const k=t.ref("self"),d=t.ref(20),m=()=>{const x=e.modelValue,U=x.length;if(U>0){if(i.value=U-1,h.value.length==0){i.value=0;return}for(let q=0;q<U;q++){let Y=[];switch(q){case 0:Y=e.province;break;case 1:Y=e.city;break;case 2:Y=e.country;break;default:Y=e.town}y.value[q]=Y.filter(j=>j.id==x[q])[0]}N()}},g=(x,U)=>x&&x.name||i.value<U&&x?x.name:e.columnsPlaceholder[U]||a("select"),N=()=>{V(),t.nextTick(()=>{const x=l.value&&l.value.getElementsByClassName("active")[0];if(x){const U=x.offsetLeft;d.value=U||20}})},$=x=>{const U=i.value;c.value=i.value;const q={custom:f.value[U]};y.value[U]=x;for(let Y=U+2;Y<4;Y++)y.value.splice(Y,1);U<3?(i.value=U+1,N(),q.next=f.value[i.value],q.value=x,n("change",q)):(T(),n("update:modelValue"))},C=(x,U)=>{c.value=i.value,g(x,U)&&(i.value=U,N())},V=()=>{const x=p.value,U=c.value,q=u.value[i.value];x?.scrollTop&&(u.value[U]=x?.scrollTop),t.nextTick(()=>{x?.scrollTo({top:q,behavior:"auto"})})},A=x=>{const U=e.existAddress;let q={};U.forEach(Y=>{Y&&Y.selectedAddress&&(q=Y),Y.selectedAddress=!1}),x.selectedAddress=!0,S=x,n("selected",q,x,U),T()},E=()=>{y.value=[],i.value=0,N()},T=(x="self")=>{k.value=x=="cross"?"cross":"self",r.value=!1},B=()=>{k.value="mask"},v=()=>{const x={addressIdStr:"",addressStr:"",province:y.value[0],city:y.value[1],country:y.value[2],town:y.value[3]},U={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(q=>{const Y=y.value[q];x.addressIdStr+=`${q?"_":""}${Y&&Y.id||0}`,x.addressStr+=Y&&Y.name||""}),U.data=x):U.data=S,E(),k.value=="self"?n("close",U):n("close-mask",{closeWay:k}),n("update:visible",!1)},L=()=>{const x=s.value;s.value=x=="exist"?"custom":"exist",E(),n("switch-module",{type:s.value})},D=(x,U)=>{$(U)};return t.watch(()=>e.visible,x=>{r.value=x}),t.watch(()=>r.value,x=>{x&&m()}),{showPopup:r,privateType:s,tabIndex:i,tabName:f,selectedRegion:y,switchModule:L,closeWay:k,close:v,getTabName:g,nextAreaList:$,regionLine:o,tabRegion:l,lineDistance:d,changeRegionTab:C,selectedExist:A,clickOverlay:B,handClose:T,handleElevatorItem:D,initCustomSelected:m,...t.toRefs(e),t:a,regionList:h,transformData:b,scrollDom:p}}}),sw={class:"fox-address"},iw={class:"fox-address__header"},cw={class:"fox-address__header__title"},dw={key:0,class:"fox-address__custom"},uw={class:"fox-address__region",ref:"tabRegion"},fw=["onClick"],mw={key:0,class:"active fox-address__region-item"},pw={key:0,class:"fox-address__detail"},hw={class:"fox-address__detail-list",ref:"scrollDom"},gw=["onClick"],yw={key:1,class:"fox-address__elevator-group"},bw={key:1,class:"fox-address__exist"},kw={class:"fox-address__exist-group"},Sw={class:"fox-address__exist-group-list"},Cw=["onClick"],ww={class:"fox-address__exist-item-info"},Nw={key:0,class:"fox-address__exist-item-info-name"},Bw={key:1,class:"fox-address__exist-item-info-phone"},Aw={class:"fox-address__exist-item-info-bottom"},Tw={class:"fox-address__exist-choose-btn"};function $w(e,n,a,o,l,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),f=t.resolveComponent("fox-elevator"),p=t.resolveComponent("Location2"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",sw,[t.createElementVNode("view",iw,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:n[0]||(n[0]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.renderSlot(e.$slots,"back-icon",{},()=>[t.withDirectives(t.createVNode(s,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),t.createElementVNode("view",cw,t.toDisplayString(e.privateType=="custom"?e.customAddressTitle||e.t("selectRegion"):e.existAddressTitle||e.t("deliveryTo")),1),t.createElementVNode("view",{class:"fox-address__header-close",onClick:n[1]||(n[1]=h=>e.handClose("cross"))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?(t.openBlock(),t.createElementBlock("view",dw,[t.createElementVNode("view",uw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,b)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",b==e.tabIndex?"active":""]),key:b,onClick:y=>e.changeRegionTab(h,b)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,b)),1)],10,fw))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",mw,[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(null,e.selectedRegion.length)),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-address__region-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),e.privateType=="custom"?(t.openBlock(),t.createElementBlock("view",pw,[t.createElementVNode("ul",hw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,b)=>(t.openBlock(),t.createElementBlock("li",{key:b,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:y=>e.nextAreaList(h)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==h.id?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(h.name),1)])],10,gw))),128))],512)])):(t.openBlock(),t.createElementBlock("view",yw,[t.createVNode(f,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",bw,[t.createElementVNode("div",kw,[t.createElementVNode("ul",Sw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,b)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:b,onClick:y=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(p,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",ww,[h.name?(t.openBlock(),t.createElementBlock("div",Nw,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",Bw,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Aw,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,Cw))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:n[2]||(n[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.createElementVNode("div",Tw,t.toDisplayString(e.customAndExistTitle||e.t("chooseAnotherAddress")),1)])):t.createCommentVNode("",!0)])),t.renderSlot(e.$slots,"bottom")])]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","teleportDisable","teleport"])}const ka=oe(rw,[["render",$w]]),{componentName:Vw,create:Ew}=Q("barrage"),Dw=Ew({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),a=!!t.useSlots().default,o=t.computed(()=>({[Vw]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),f=t.ref(e.top),p=t.ref(0),u=e.speeds,h=t.ref(0);t.onMounted(()=>{b(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(S(),p.value=0,y("hidden")):document.visibilityState==="visible"&&b()})}),t.onUnmounted(()=>{i.value=[],S()});const b=()=>{h.value=l.value.offsetWidth,a&&y("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${h.value}px`),d()},300)},y=g=>{let $=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const C=[];$&&Array.from($).forEach(V=>{g=="init"?(V.style.opacity="0",C.push(V)):(V.classList="",V.style={})}),g=="init"&&(i.value=C)},S=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,g=>{e.danmu.length>0&&(i.value=[...g])});const k=g=>{const N=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,g):i.value.splice(N,0,g)},d=()=>{S(),s=setTimeout(()=>{m()},e.frequency)},m=()=>{const g=e.loop?p.value%i.value.length:p.value;let N=document.createElement("view");a&&typeof i.value[g]=="object"?(N=i.value[g],N?.classList?.add("fox-barrage__item")):(N.innerHTML=i.value[g],N.classList.add("fox-barrage__item"),r.value.appendChild(N)),t.nextTick(()=>{const $=N.offsetHeight;if(N?.classList?.add("move"),N.style.animationDuration=`${u}ms`,N.style.top=g%c.value*($+f.value)+20+"px",N.style.opacity="1",!a){const C=N.offsetWidth;N.style.width=C+20+"px"}N.addEventListener("animationend",()=>{a?N.classList.remove("move"):r.value.removeChild(N)}),!(!e.loop&&p.value>=i.value.length-1)&&(p.value++,p.value>=i.value.length&&(p.value=0),N.removeEventListener("animationend",()=>{}),d())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:k}}});function Iw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("div",{ref:"dmContainer",class:t.normalizeClass(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["slotBody","slotBody"+e.classTime])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)],2)}const Sa=oe(Dw,[["render",Iw]]),{componentName:xw,create:qw,scope:vw}=Q("signature"),Mw=qw({props:{customClass:{type:String,default:""},lineWidth:{type:Number,default:2},strokeStyle:{type:String,default:()=>document.getElementsByTagName("body")[0].className.indexOf("fox-theme-dark")==-1?"#000":"#fff"},type:{type:String,default:"png"},unSupportTpl:{type:String,default:""}},components:{[Pe.name]:Pe},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=re.useFoxI18n(vw),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[xw]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let m=document.createElement("canvas");return!!(m.getContext&&m.getContext("2d"))},f=()=>{l.value.addEventListener(i.events[0],p,!1)},p=m=>{m.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],u,!1),l.value.addEventListener(i.events[2],h,!1),l.value.addEventListener(i.events[3],b,!1)},u=m=>{m.preventDefault();let g=i.isSupportTouch?m.touches[0]:m;n("signing",g);let N=l.value.getBoundingClientRect(),$=g.clientX-N.left,C=g.clientY-N.top;i.ctx.lineTo($,C),i.ctx.stroke()},h=m=>{m.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},b=m=>{m.preventDefault(),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},y=()=>{l.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},S=()=>{d(l.value)},k=m=>{if(!m)return!0;var g=document.createElement("canvas");return g.width=m.width,g.height=m.height,m?.toDataURL()==g.toDataURL()},d=m=>{let g;switch(e.type){case"png":g=m.toDataURL("image/png");break;case"jpg":g=m.toDataURL("image/jpeg",.8);break}const N=k(m)?"请绘制签名":m,$=k(m)?"":g;n("confirm",N,$)};return t.onMounted(()=>{c()&&(i.ctx=l.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,f())}),{...o,...t.toRefs(i),canvas:l,wrap:r,isCanvasSupported:c,confirm:S,clear:y,classes:s}}}),Pw={class:"fox-signature-inner",ref:"wrap"},Lw=["height","width"],zw={key:0,class:"fox-signature-unsopport"};function Fw(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",Pw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,Lw),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",zw,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(s,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const Ca=oe(Mw,[["render",Fw]]),{componentName:Rw,create:Ow,scope:Kw}=Q("time-select"),Uw=Ow({components:{[fe.name]:fe},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,n)=>{const{t:a}=re.useFoxI18n(Kw),o=t.computed(()=>({[Rw]:!0})),l=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{n.emit("update:visible",!1),n.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:o,popStyle:l,props:e,close:i,t:a}}}),Hw={class:"fox-time-select__title"},jw={class:"fox-time-select__title__fixed"},Ww={key:0},Yw={class:"fox-time-select__content"},Xw={class:"fox-time-select__content__pannel"},Qw={class:"fox-time-select__content__detail"};function Gw(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{position:"bottom",closeable:"",round:"",teleportDisable:e.teleportDisable,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Hw,[t.createElementVNode("view",jw,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",Ww,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",Yw,[t.createElementVNode("view",Xw,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",Qw,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const wa=oe(Uw,[["render",Gw]]),{componentName:Zw,create:Jw}=Q("time-pannel"),_w=Jw({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.reactive({currentKey:a}),l=t.computed(()=>({[Zw]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function eN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const Na=oe(_w,[["render",eN]]),{componentName:tN,create:nN}=Q("time-detail"),oN=nN({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.inject("currentTime"),l=t.reactive({currentKey:a,currentTime:o}),r=t.computed(()=>({[tN]:!0})),s=f=>{let p=l.currentTime.find(u=>u.key==l.currentKey);if(p)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":p.list.filter(u=>u===f).length>0}},i=t.computed(()=>e.times.find(f=>f.key==l.currentKey).list),c=f=>{n.emit("select",f)};return{classes:r,...t.toRefs(l),getClass:s,renderData:i,handleTime:c}}}),lN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},aN={class:"fox-time-detail__detail__list"},rN=["onClick"];function sN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",lN,[t.createElementVNode("view",aN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(s)),key:s,onClick:i=>e.handleTime(s)},t.toDisplayString(s),11,rN))),128))])])],2)}const Ba=oe(oN,[["render",sN]]),{componentName:uA,create:iN,scope:cN}=Q("sku-header"),dN=iN({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ze.name]:Ze},setup(e,{emit:n,slots:a}){const{t:o}=re.useFoxI18n(cN);return{getSlots:r=>a[r],t:o}}}),uN={class:"fox-sku-header"},fN=["src"],mN={class:"fox-sku-header-right"},pN={key:3,class:"fox-sku-header-right-extra"};function hN(e,n,a,o,l,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",uN,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,fN),t.createElementVNode("view",mN,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.goods.price,needSymbol:!0,thousands:!1},null,8,["price"])),e.getSlots("sku-header-extra")?t.renderSlot(e.$slots,"sku-header-extra",{key:2}):t.createCommentVNode("",!0),e.goods.skuId&&!e.getSlots("sku-header-extra")?(t.openBlock(),t.createElementBlock("view",pN,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const gN=oe(dN,[["render",hN]]),{componentName:fA,create:yN}=Q("sku-select"),bN=yN({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const a=t.ref([]);return t.watch(()=>e.sku,l=>{a.value=[].slice.call(l)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(a.value=[].slice.call(e.sku))}),{skuInfo:a,changeSaleChild:(l,r,s,i)=>{l.checkFlag||l.disable||n("selectSku",{sku:l,skuIndex:r,parentSku:s,parentIndex:i})}}}}),kN={class:"fox-sku-select"},SN={class:"fox-sku-select-item-title"},CN={class:"fox-sku-select-item-skus"},wN=["onClick"];function NN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",kN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:s.id},[t.createElementVNode("view",SN,t.toDisplayString(s.name),1),t.createElementVNode("view",CN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:p=>e.changeSaleChild(c,f,s,i),key:c.name},t.toDisplayString(c.name),11,wN))),128))])]))),128))])}const BN=oe(bN,[["render",NN]]),{componentName:mA,create:AN}=Q("sku-stepper"),TN=AN({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"购买数量"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],components:{[_e.name]:_e},setup(e,{emit:n}){const a=t.ref(e.stepperMin);return t.onMounted(()=>{a.value=e.stepperMin}),{goodsCount:a,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,f)=>{n("overLimit",{action:f,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&ot(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),$N={class:"fox-sku-stepper"},VN={class:"fox-sku-stepper-title"},EN=["innerHTML"],DN={class:"fox-sku-stepper-count"};function IN(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",$N,[t.createElementVNode("view",VN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,EN),t.createElementVNode("view",DN,[t.createVNode(s,{modelValue:e.goodsCount,"onUpdate:modelValue":n[0]||(n[0]=i=>e.goodsCount=i),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}const xN=oe(TN,[["render",IN]]),{componentName:pA,create:qN}=Q("sku-operate"),vN=qN({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"立即购买"},addCartText:{type:String,default:"加入购物车"},confirmText:{type:String,default:"确定"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:n,slots:a}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{n("clickBtnOperate",s)},getSlots:s=>a[s]}}}),MN={key:0,class:"fox-sku-operate"},PN={key:0,class:"fox-sku-operate-desc"},LN={key:1,class:"fox-sku-operate-btn"},zN=["onClick"];function FN(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",MN,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",PN,t.toDisplayString(e.btnExtraText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"operate-btn"),e.getSlots("operate-btn")?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",LN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${s}`,"fox-sku-operate-btn-item"]),key:i,onClick:c=>e.clickBtnOperate(s)},t.toDisplayString(e.getBtnDesc(s)),11,zN))),128))]))])):t.createCommentVNode("",!0)}const RN=oe(vN,[["render",FN]]),{componentName:hA,create:ON,scope:KN}=Q("sku"),UN=ON({props:{...ze,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","select-sku","change-stepper","click-btn-operate","click-close-icon","click-overlay","close","reduce","add","over-limit"],components:{SkuHeader:gN,SkuSelect:BN,SkuStepper:xN,SkuOperate:RN,[fe.name]:fe},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=re.useFoxI18n(KN),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,k=>{r.value=k}),t.watch(()=>r.value,k=>{k==!1&&S()}),t.onMounted(()=>{});const i=k=>a[k],c=k=>{n("select-sku",k)},f=k=>{s.value=k,n("change-stepper",k)},p=k=>{n("add",k)},u=k=>{n("reduce",k)},h=k=>{n("over-limit",k)},b=k=>{n("click-btn-operate",{type:k,value:s.value})},y=k=>{k=="icon"&&n("click-close-icon"),k=="overlay"&&n("click-overlay"),k=="close"&&n("close"),r.value=!1},S=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:y,selectSku:c,changeStepper:f,stepperOverLimit:h,clickBtnOperate:b,add:p,reduce:u,getSlots:i,...l}}}),HN={class:"fox-sku"},jN={class:"fox-sku-content"};function WN(e,n,a,o,l,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),f=t.resolveComponent("sku-operate"),p=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(p,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=u=>e.showPopup=u),onClickCloseIcon:n[1]||(n[1]=u=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=u=>e.closePopup("overlay")),onClose:n[3]||(n[3]=u=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",HN,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,goods:e.goods},t.createSlots({_:2},[e.getSlots("sku-header-price")?{name:"sku-header-price",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-price")]),key:"0"}:void 0,e.getSlots("sku-header-extra")?{name:"sku-header-extra",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-extra")]),key:"1"}:void 0]),1032,["goods"])),t.createElementVNode("view",jN,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(f,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const Aa=oe(UN,[["render",WN]]),{create:YN}=Q("card"),XN=YN({components:{[Ze.name]:Ze,[Qt.name]:Qt},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:n,slots:a}){return{isHaveSlot:l=>a[l]}}}),QN={class:"fox-card"},GN={class:"fox-card__left"},ZN=["src"],JN={class:"fox-card__right"},_N={class:"fox-card__right__title"},eB={key:0,class:"fox-card__right__price"},tB={class:"fox-card__right__other"},nB={class:"fox-card__right__shop"},oB={class:"fox-card__right__shop__name"};function lB(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",QN,[t.createElementVNode("div",GN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,ZN)]),t.createElementVNode("div",JN,[t.createElementVNode("div",_N,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",eB,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(s,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",tB,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(i,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(i,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",nB,[t.createElementVNode("div",oB,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Ta=oe(XN,[["render",lB]]),{create:aB,scope:rB}=Q("ecard"),sB=aB({components:{[_e.name]:_e},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(rB),o=t.ref(null),l=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,b)=>{o.value=b,s.value=e.cardAmountMin,l.value=h.price,n("change",h),n("update:modelValue",h.price)},f=h=>{let y=h.target.value.replace(/[^\d]/g,"");r.value=y,l.value=y,Number(y)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(y)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},p=()=>{o.value="input",s.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},u=h=>{s.value=h,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:u,change:f,inputClick:p,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),iB={class:"fox-ecard"},cB={class:"fox-ecard__title"},dB={class:"fox-ecard__list"},uB=["onClick"],fB={class:"fox-ecard__list__input--con"},mB=["placeholder"],pB={class:"fox-ecard__list__step"};function hB(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",iB,[t.createElementVNode("view",cB,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",dB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:f=>e.handleClick(i,c)},t.toDisplayString(i.price),11,uB))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",fB,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=i=>e.inputValue=i),onInput:n[1]||(n[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,mB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",pB,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const $a=oe(sB,[["render",hB]]),{create:gB,scope:yB}=Q("address-list-item"),bB=gB({components:{Del:le.Del,Edit:le.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(yB);return{delClick:s=>{n("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{n("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{n("clickItem",s,e.item),s.stopPropagation()},t:a}}}),kB={class:"fox-address-list-item__info"},SB={class:"fox-address-list-item__info-contact"},CB={class:"fox-address-list-item__info-contact-name"},wB={class:"fox-address-list-item__info-contact-tel"},NB={key:0,class:"fox-address-list-item__info-contact-default"},BB={class:"fox-address-list-item__info-handle"},AB={class:"fox-address-list-item__addr"};function TB(e,n,a,o,l,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:n[0]||(n[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",kB,[t.createElementVNode("div",SB,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",CB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",wB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",NB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",BB,[t.renderSlot(e.$slots,"content-icon",{},()=>[t.createVNode(s,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(i,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",AB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Fs=oe(bB,[["render",TB]]),{create:$B}=Q("address-list-general"),VB=$B({props:{item:{type:Object,default:{}},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1}},emits:["delIcon","editIcon","clickItem","longDown","longCopy","longSet","longDel","swipeDel"],components:{ItemContents:Fs,[Pe.name]:Pe,[Ot.name]:Ot},setup(e,{emit:n}){const a=()=>t.h(Fs,{item:e.item,onDelIcon($){s($)},onEditIcon($){i($)},onClickItem($){c($)}});let o=null;const l=t.ref(!1),r=t.ref(!1),s=$=>{n("delIcon",$,e.item),$.stopPropagation()},i=$=>{n("editIcon",$,e.item),$.stopPropagation()},c=$=>{l.value||(n("clickItem",$,e.item),$.stopPropagation())},f=$=>{n("longDel",$,e.item),$.stopPropagation()},p=$=>{o=0,r.value=!0,n("longDown",$,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:f,holddownstart:$=>{o=setTimeout(()=>{p($)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:$=>{n("longCopy",$,e.item),$.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:$=>{n("longSet",$,e.item),$.stopPropagation()},maskClick:$=>{o!=0&&(r.value=!1),$.stopPropagation(),$.preventDefault()},swipeDelClick:$=>{n("swipeDel",$,e.item),$.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),EB={key:0,class:"fox-address-list-general"},DB={class:"fox-address-list-swipe"};function IB(e,n,a,o,l,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(i,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[t.createTextVNode("删除")]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",DB,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchmove:e.swipemove,onTouchstart:e.swipestart},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchmove","onTouchstart"]))])]),_:3})):(t.openBlock(),t.createElementBlock("div",EB,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchstart:e.holddownstart,onTouchend:e.holddownend,onTouchmove:e.holddownmove},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchstart","onTouchend","onTouchmove"])),e.longPress&&e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list-general__mask",onClick:n[3]||(n[3]=(...c)=>e.maskClick&&e.maskClick(...c))},[t.renderSlot(e.$slots,"longpress-all",{},()=>[t.createElementVNode("div",{class:"fox-address-list-general__mask-copy",onClick:n[0]||(n[0]=(...c)=>e.copyCLick&&e.copyCLick(...c))},"复制地址"),t.createElementVNode("div",{class:"fox-address-list-general__mask-set",onClick:n[1]||(n[1]=(...c)=>e.setDefault&&e.setDefault(...c))},"设置默认"),t.createElementVNode("div",{class:"fox-address-list-general__mask-del",onClick:n[2]||(n[2]=(...c)=>e.delLongClick&&e.delLongClick(...c))},"删除地址")])])):t.createCommentVNode("",!0),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-address-list__mask-bottom",onClick:n[4]||(n[4]=(...c)=>e.hideMaskClick&&e.hideMaskClick(...c))})):t.createCommentVNode("",!0)]))}const xB=oe(VB,[["render",IB]]),{componentName:qB,create:vB,scope:MB}=Q("address-list"),PB=vB({props:{data:{type:Array,default:[]},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1},showBottomButton:{type:Boolean,default:!0},dataOptions:{type:Object,default:{}}},components:{GeneralShell:xB,[Pe.name]:Pe},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(MB),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[qB]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(S=>er(l,S,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(S,k)=>{n("delIcon",S,k),S.stopPropagation()},c=(S,k)=>{n("editIcon",S,k),S.stopPropagation()},f=(S,k)=>{n("clickItem",S,k),S.stopPropagation()},p=(S,k)=>{n("longCopy",S,k),S.stopPropagation()},u=(S,k)=>{n("longSet",S,k),S.stopPropagation()},h=(S,k)=>{n("longDel",S,k),S.stopPropagation()},b=(S,k)=>{n("swipeDel",S,k),S.stopPropagation()},y=S=>{n("add",S),S.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:f,clickLongCopy:p,clickLongSet:u,clickLongDel:h,clickSwipeDel:b,addAddress:y,dataArray:o,t:a}}});function LB(e,n,a,o,l,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,f)=>(t.openBlock(),t.createBlock(s,{key:f,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:n[0]||(n[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const Va=oe(PB,[["render",LB]]),{componentName:gA,create:zB}=Q("category"),FB=zB({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:n,slots:a}){const o=t.ref(0),l=t.ref(!1);return{getChildList:s=>{o.value=s,n("change",s)},checkIndex:o,categoryLeft:l}}}),RB={class:"fox-category"},OB={class:"fox-category__cateList"},KB={key:0},UB=["onClick"];function HB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",RB,[t.createElementVNode("div",OB,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",KB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:i},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==i?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(i)},t.toDisplayString(s.catName),11,UB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Ea=oe(FB,[["render",HB]]),{componentName:yA,create:jB}=Q("category-pane"),WB=jB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),YB={class:"fox-category-pane"},XB={key:0,class:"fox-category-pane__cateListRight"},QB={class:"fox-category-pane__childTitle"},GB={key:0,class:"fox-category-pane__childItemList"},ZB=["onClick"],JB=["src"],_B={class:"fox-category-pane__skuImg"},e2={key:1,class:"fox-category-pane__cateListRight"},t2={class:"fox-category-pane__childTitle"},n2={key:0,class:"fox-category-pane__childItemList"},o2=["onClick"],l2={class:"fox-category-pane__skuName"},a2={key:2,class:"fox-category-pane__selfItemList"},r2=["onClick"];function s2(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",YB,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",XB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",QB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",GB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:f,onClick:p=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,JB),t.createElementVNode("div",_B,t.toDisplayString(c?.catName),1)],8,ZB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",e2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",t2,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",n2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:f,onClick:p=>e.onChange(c)},[t.createElementVNode("div",l2,t.toDisplayString(c?.catName),1)],8,o2))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",a2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__skuName",key:i,onClick:c=>e.onChange(s)},t.toDisplayString(s?.catName),9,r2))),128))])):t.createCommentVNode("",!0)])}const Da=oe(WB,[["render",s2]]),{componentName:bA,create:i2}=Q("comment-header"),c2=i2({components:{[Ct.name]:Ct},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),d2={class:"fox-comment-header__user"},u2={class:"fox-comment-header__user-avter"},f2=["src"],m2={class:"fox-comment-header__user-score"},p2={key:0,class:"fox-comment-header__time"};function h2(e,n,a,o,l,r){const s=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:n[1]||(n[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",d2,[t.createElementVNode("view",u2,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,f2)):t.createCommentVNode("",!0)]),e.type=="default"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},[t.createElementVNode("span",null,t.toDisplayString(e.info.nickName),1),t.renderSlot(e.$slots,"labels")],2),t.createElementVNode("view",m2,[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":n[0]||(n[0]=i=>e.info.score=i),size:"12",spacing:"5",readonly:"",onChange:e.handleClick},null,8,["modelValue","onChange"])])],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("span",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},t.toDisplayString(e.info.nickName),3),t.renderSlot(e.$slots,"labels")],2))]),e.info.time?(t.openBlock(),t.createElementBlock("view",p2,t.toDisplayString(e.info.time),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.type=="complex"?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__${e.type}-score`])},[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":n[2]||(n[2]=i=>e.info.score=i),size:"12",spacing:"3",readonly:""},null,8,["modelValue"]),t.createElementVNode("i",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-i`])},null,2),t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-size`])},t.toDisplayString(e.info.size),3)],2)):t.createCommentVNode("",!0)])}const g2=oe(c2,[["render",h2]]),{componentName:kA,create:y2}=Q("comment-images"),b2=y2({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:le.Right},emits:["click","clickImages"],setup(e,{emit:n}){const a=t.ref(!1),o=t.ref(1),l=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),l.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),l.value=e.videos.concat(e.images)}),{isShowImage:a,initIndex:o,showImages:(s,i)=>{const{videos:c,images:f}=e,p=s=="img"?i-c.length:i;n("clickImages",{type:s,index:p,value:s=="img"?f[p]:c[p]})},totalImages:l}}}),k2=["onClick"],S2=["src"],C2=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),w2=["onClick"],N2=["src"],B2={key:0,class:"fox-comment-images__mask"};function A2(e,n,a,o,l,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:f=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,S2),C2],8,k2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:f=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,N2),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",B2,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,w2)):t.createCommentVNode("",!0)],64))),128))],2)}const T2=oe(b2,[["render",A2]]),{componentName:SA,create:$2,scope:V2}=Q("comment-bottom"),E2=$2({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:le.Fabulous,Comment:le.Comment,MoreX:le.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(V2),o=t.ref(!1),l=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&l.value.push(c)})}),{showPopver:o,operate:i=>{i=="more"&&(o.value=!o.value),n("clickOperate",i)},mergeOp:l,handleClick:()=>{n("handleClick")},t:a}}}),D2={class:"fox-comment-bottom"},I2={key:0},x2={class:"fox-comment-bottom__cpx"},q2=["onClick"];function v2(e,n,a,o,l,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",D2,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...f)=>e.handleClick&&e.handleClick(...f)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",I2,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",x2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(f,p)=>(t.openBlock(),t.createElementBlock("view",{key:p,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${f}`]),onClick:u=>e.operate(f)},[f!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[f]),1),f=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),f=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=u=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,q2))),128))])])}const M2=oe(E2,[["render",v2]]),{componentName:P2,create:L2,scope:z2}=Q("comment"),F2=L2({props:{headerType:{type:String,default:"default"},imagesRows:{type:String,default:"one"},ellipsis:{type:[String,Number,Boolean],default:!1},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]},info:{type:Object,default:()=>({})},follow:{type:Object,default:()=>({})},labels:{type:Function,default:()=>""},operation:{type:Array,default:["replay","like","more"]}},components:{CommentHeader:g2,CommentImages:T2,CommentBottom:M2,Right:le.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(z2),o=t.computed(()=>({[P2]:!0})),l=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:o,conEllipsis:l,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:a}}}),R2=["innerHTML"],O2={class:"fox-comment__follow-title"},K2={class:"fox-comment__follow-com"},U2={key:0,class:"fox-comment__follow-img"};function H2(e,n,a,o,l,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),f=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...p)=>e.handleClick&&e.handleClick(...p)),innerHTML:e.info.content},null,12,R2),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...p)=>e.handleClick&&e.handleClick(...p))},[t.createElementVNode("view",O2,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",K2,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",U2,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(f,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const Ia=oe(F2,[["render",H2]]),j2=[So,wo,No,Bo,$o,we,Do,Io,xo,qo,Mo,Tn,Ro,Ko,Wo,Xo,Ln,zn,Qo,Rn,On,Zo,_o,yt,el,nl,Xn,ll,rl,Vn,En,Dn,cl,dl,ul,it,fl,ml,pl,hl,gl,Pe,yl,bl,rt,fe,kl,Sl,Cl,wl,Lt,Nl,Bl,Al,Tl,$l,Vl,El,Dl,Il,zt,xl,ql,vl,Ml,Pl,Ll,zl,Ft,jn,In,Pn,vn,_e,Ct,bt,Fl,Rl,Ol,Ot,Kl,Ul,Hl,Kt,Hn,jl,Xl,Un,Bt,Zl,Jl,Xt,_l,ea,Rt,ta,na,oa,At,la,aa,Tt,$t,Ze,Zn,sa,ia,ca,Qt,Gt,da,ua,fa,ma,pa,ha,ga,ya,ba,ka,Sa,Ca,wa,Na,Ba,Aa,Ta,$a,Va,Ea,Da,Ia],W2=new bi(j2,"4.0.0");w.ActionSheet=Kl,w.ActionsheetItem=ll,w.ActionsheetPane=Xn,w.Address=ka,w.AddressList=Va,w.Animate=ha,w.Audio=Zl,w.AudioOperate=Jl,w.Avatar=Xt,w.AvatarGroup=_l,w.BackTop=Ul,w.Badge=ca,w.Barrage=Sa,w.Broadcast=mo,w.BroadcastKey=Ce,w.Button=Pe,w.Calendar=Pn,w.CalendarItem=Xo,w.Card=Ta,w.Cascader=In,w.CascaderItem=Ko,w.Category=Ea,w.CategoryPane=Da,w.Cell=yl,w.CellGroup=bl,w.Checkbox=Rn,w.CheckboxGroup=On,w.CheckboxItem=Zo,w.CircleProgress=ta,w.Col=Cl,w.Collapse=ua,w.CollapseItem=fa,w.Comment=Ia,w.Content=Bo,w.CountDown=ia,w.CountUp=sa,w.DataItemsKey=mt,w.DateItem=Wo,w.DatePicker=vn,w.DateUtils=ae,w.Dialog=Kt,w.Divider=Nl,w.Domain=cn,w.DomainKey=qe,w.DomainProvider=hl,w.Drag=Hl,w.Ecard=$a,w.Elevator=zt,w.Ellipsis=pa,w.Empty=oa,w.FixedNav=$l,w.FloatingButton=dl,w.FooterBar=No,w.FoxActionSheet=Kl,w.FoxActionsheetItem=ll,w.FoxActionsheetPane=Xn,w.FoxAddress=ka,w.FoxAddressList=Va,w.FoxAnimate=ha,w.FoxAudio=Zl,w.FoxAudioOperate=Jl,w.FoxAvatar=Xt,w.FoxAvatarGroup=_l,w.FoxBackTop=Ul,w.FoxBadge=ca,w.FoxBarrage=Sa,w.FoxButton=Pe,w.FoxCalendar=Pn,w.FoxCalendarItem=Xo,w.FoxCard=Ta,w.FoxCascader=In,w.FoxCascaderItem=Ko,w.FoxCategory=Ea,w.FoxCategoryPane=Da,w.FoxCell=yl,w.FoxCellGroup=bl,w.FoxCheckbox=Rn,w.FoxCheckboxGroup=On,w.FoxCheckboxItem=Zo,w.FoxCircleProgress=ta,w.FoxCol=Cl,w.FoxCollapse=ua,w.FoxCollapseItem=fa,w.FoxComment=Ia,w.FoxContent=Bo,w.FoxCountDown=ia,w.FoxCountUp=sa,w.FoxDateItem=Wo,w.FoxDatePicker=vn,w.FoxDialog=Kt,w.FoxDivider=Nl,w.FoxDomainProvider=hl,w.FoxDrag=Hl,w.FoxEcard=$a,w.FoxElevator=zt,w.FoxEllipsis=pa,w.FoxEmpty=oa,w.FoxFixedNav=$l,w.FoxFloatingButton=dl,w.FoxFooterBar=No,w.FoxGrid=Bl,w.FoxGridItem=Al,w.FoxGroup=$o,w.FoxHeaderBar=wo,w.FoxHintText=yt,w.FoxImage=kl,w.FoxImagePreview=Zn,w.FoxIndicator=Ml,w.FoxInfiniteLoading=Hn,w.FoxInputItem=xo,w.FoxInputNumber=_e,w.FoxInputnumberItem=rl,w.FoxItem=we,w.FoxLayout=Sl,w.FoxLinkItem=el,w.FoxList=ea,w.FoxMapping=pl,w.FoxMenu=Vl,w.FoxMenuItem=El,w.FoxMessageBox=it,w.FoxMoneyItem=qo,w.FoxMoreButton=ul,w.FoxNavbar=Tl,w.FoxNoticeBar=na,w.FoxNotify=Xl,w.FoxNumberKeyboard=Ol,w.FoxOverLay=rt,w.FoxPage=So,w.FoxPagination=xl,w.FoxPicker=bt,w.FoxPickerItem=Ro,w.FoxPopover=Gt,w.FoxPopup=fe,w.FoxPopupWrapper=fl,w.FoxPrice=Ze,w.FoxProgress=Rt,w.FoxPullRefresh=jl,w.FoxRadio=Ln,w.FoxRadioGroup=zn,w.FoxRadioItem=Qo,w.FoxRange=Ft,w.FoxRate=Ct,w.FoxRateItem=nl,w.FoxRollingProvider=gl,w.FoxRow=wl,w.FoxRowItem=Do,w.FoxSearchBar=jn,w.FoxShortPassword=Fl,w.FoxSideNavBar=Pl,w.FoxSideNavBarItem=Ll,w.FoxSignature=Ca,w.FoxSkeleton=da,w.FoxSku=Aa,w.FoxSlotItem=Io,w.FoxStep=aa,w.FoxSteps=la,w.FoxStepsBar=cl,w.FoxSticky=Lt,w.FoxSubSideNavBar=zl,w.FoxSwipe=Ot,w.FoxSwiper=Tt,w.FoxSwiperItem=$t,w.FoxSwitch=Un,w.FoxSwitchItem=_o,w.FoxTabPane=vl,w.FoxTabbar=Dl,w.FoxTabbarItem=Il,w.FoxTable=ma,w.FoxTabs=ql,w.FoxTabsBar=Vn,w.FoxTabsContainer=En,w.FoxTabsPane=Dn,w.FoxTag=Qt,w.FoxText=ml,w.FoxTextarea=Tn,w.FoxTextareaItem=Mo,w.FoxTimeDetail=Ba,w.FoxTimePannel=Na,w.FoxTimeSelect=wa,w.FoxToast=Bt,w.FoxTour=ba,w.FoxTrendArrow=ya,w.FoxUploader=Rl,w.FoxVideo=At,w.FoxWaterMark=ga,w.Grid=Bl,w.GridItem=Al,w.Group=$o,w.HeaderBar=wo,w.HintText=yt,w.Image=kl,w.ImagePreview=Zn,w.Indicator=Ml,w.InfiniteLoading=Hn,w.InputItem=xo,w.InputNumber=_e,w.InputnumberItem=rl,w.Item=we,w.Layout=Sl,w.LinkItem=el,w.List=ea,w.Mapping=pl,w.Menu=Vl,w.MenuItem=El,w.MessageBox=it,w.MoneyItem=qo,w.MoreButton=ul,w.Navbar=Tl,w.NoticeBar=na,w.Notify=Xl,w.NumberKeyboard=Ol,w.OverLay=rt,w.Page=So,w.Pagination=xl,w.Picker=bt,w.PickerItem=Ro,w.Popover=Gt,w.Popup=fe,w.PopupWrapper=fl,w.Price=Ze,w.PriorityPolicy=hn,w.Progress=Rt,w.PullRefresh=jl,w.Radio=Ln,w.RadioGroup=zn,w.RadioItem=Qo,w.Range=Ft,w.Rate=Ct,w.RateItem=nl,w.RollingProvider=gl,w.Row=wl,w.RowItem=Do,w.SearchBar=jn,w.ShortPassword=Fl,w.SideNavBar=Pl,w.SideNavBarItem=Ll,w.Signature=Ca,w.Skeleton=da,w.Sku=Aa,w.SlotItem=Io,w.Step=aa,w.Steps=la,w.StepsBar=cl,w.Sticky=Lt,w.SubSideNavBar=zl,w.Swipe=Ot,w.Swiper=Tt,w.SwiperItem=$t,w.Switch=Un,w.SwitchItem=_o,w.TabPane=vl,w.Tabbar=Dl,w.TabbarItem=Il,w.Table=ma,w.Tabs=ql,w.TabsBar=Vn,w.TabsContainer=En,w.TabsPane=Dn,w.Tag=Qt,w.Text=ml,w.Textarea=Tn,w.TextareaItem=Mo,w.TimeDetail=Ba,w.TimePannel=Na,w.TimeSelect=wa,w.Toast=Bt,w.Tour=ba,w.TrendArrow=ya,w.UniqueID=Bn,w.Uploader=Rl,w.ValidateSchema=rr,w.ValidateSchemaKey=He,w.Video=At,w.WaterMark=ga,w.cancelRaf=qa,w.clamp=Ue,w.clearNonNumber=uo,w.clone=io,w.compareTo=ro,w.createBroadcast=ln,w.createValidateSchema=rn,w.debounce=ft,w.debounceRef=ii,w.decimalLength=Ja,w.default=W2,w.defineBroadcast=_s,w.defineConfigDomain=ir,w.defineDataItem=dr,w.defineDomain=go,w.defineItem=Be,w.definePageState=ur,w.deleteGlobalValidator=oi,w.disabledProperty=Ae,w.divide=ao,w.excludeProps=ut,w.extend=nt,w.floatData=er,w.getGlobalValidateCheckEvents=or,w.getGlobalValidateResetEvents=ar,w.getPageContentAreaHeight=mn,w.getPageContentAreaWidth=pn,w.getPageFooterAreaHeight=fn,w.getPageHeaderAreaHeight=un,w.getRootDomain=pt,w.hasSymbol=ja,w.includeProps=ke,w.indexOf=Zs,w.installRules=cr,w.integerLength=Za,w.isArray=en,w.isArrayLike=Ya,w.isBrowser=tt,w.isDate=Ke,w.isESModule=Ws,w.isEmptyString=ue,w.isEqual=Me,w.isFunction=tn,w.isHidden=on,w.isInnerPage=ui,w.isMap=Us,w.isNil=Ka,w.isNumberString=Ga,w.isObject=$e,w.isPlainObject=so,w.isPromise=dt,w.isRegExp=Qa,w.isSet=Hs,w.isString=Ua,w.isSubPage=fi,w.isSymbol=js,w.isTouch=Po,w.isWindow=Wa,w.lastIndexOf=Js,w.makeArray=Gs,w.merge=Xa,w.multiply=Fa,w.negate=Ra,w.nextTick=Xs,w.numberFormat=_t,w.objectToString=Ha,w.once=ci,w.padZero=lt,w.preventDefault=fo,w.property=Te,w.raf=Oe,w.readonlyProperty=Ve,w.setGlobalValidateCheckEvents=li,w.setGlobalValidateHandler=ti,w.setGlobalValidateMessages=ri,w.setGlobalValidateResetEvents=ai,w.setGlobalValidator=ni,w.throttle=sn,w.toBoolean=he,w.toNumber=me,w.toPadding=Le,w.toPx=ce,w.toPxDesc=ge,w.toTypeString=nn,w.toValue=Ie,w.tryTimes=po,w.typeOf=ot,w.unNumberFormat=Oa,w.updatePageState=yo,w.useBroadcast=Dt,w.useDomain=je,w.useExpose=Ee,w.useInnerSize=Co,w.usePageState=dn,w.usePosition=Cr,w.useRawTouch=Lo,w.useRect=De,w.useSize=yn,w.useTouch=Je,w.valueLength=be,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|