@fox-js/foxui 4.0.1-30 → 4.0.1-32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,8 +1,8 @@
1
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,Je,ne,re){"use strict";/*!
2
- * @fox-js/foxui-base v4.0.0 Wed Mar 06 2024 14:31:39 GMT+0800 (中国标准时间)
3
- */const Xt=window,Ts=typeof window<"u";function $s(){return typeof Xt<"u"?Xt.requestAnimationFrame||Xt.webkitRequestAnimationFrame||function(e){Xt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ta(e){Ts?cancelAnimationFrame(e):clearTimeout(e)}const We=$s();/*!
2
+ * @fox-js/foxui-base v4.0.0 Thu Mar 14 2024 16:23:01 GMT+0800 (中国标准时间)
3
+ */const Qt=window,Vs=typeof window<"u";function Es(){return typeof Qt<"u"?Qt.requestAnimationFrame||Qt.webkitRequestAnimationFrame||function(e){Qt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Va(e){Vs?cancelAnimationFrame(e):clearTimeout(e)}const Ye=Es();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function Qt(e,n="0"){let 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]=jn(we(e),we(n)),l==1&&(o==1?e=Hn(e):n=Hn(n));let a=$a(e,n);return l?l==2?"-"+we(a):e.length<a.length?we(a.substring(1)):"-"+we(Hn(a)):we(a)}function Hn(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 $a(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 jn(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 $a(e,n){[e,n]=jn(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 Bt(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=Bt(e,0,l),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,Ea(a[1],r,o,l)?(o?"-":"")+Wn(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&&Ea(i,s,o,l)&&(s=Wn(s),s.length>n)?(o?"-":"")+Wn(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function Ea(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 Wn(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 Yn(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=At(e),n=At(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=At(e.replace(".","")),n=At(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let s=n.length,i=0,c=[],u=s-1,f="";for(let m=0;m<s;m++)c[m]=e.length-1;for(let m=0;m<2*e.length;m++){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),f=h%10+f,u--}return f=At(Es(f,r)),l==1&&(f="-"+f),f}function Es(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 At(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 Xn(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 f=e.length-u+a;e=we(e.substring(0,f)+"."+e.substring(f))}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=Qt(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(Bt(i,l-2))}function Qn(e,n){return e=e.toString(),n=n.toString(),n=Gn(n),Qt(e,n)}function Gn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Da(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ia(e),Ia(n);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=Qn(e,Yn(n,Bt(Xn(e,n),0,ke.FLOOR)));return l+o}function Ia(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]=jn(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 Bt(n,l,o)}round(n=0,l=ke.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new se(Bt(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),Qt(n,l)}add(n){return new se(Qt(this.value,n.getValue()))}static subtract(n,l){return n=se.validate(n),l=se.validate(l),Qn(n,l)}subtract(n){return new se(Qn(this.value,n.getValue()))}static multiply(n,l){return n=se.validate(n),l=se.validate(l),Yn(n,l)}multiply(n){return new se(Yn(this.value,n.getValue()))}static divide(n,l,o){return n=se.validate(n),l=se.validate(l),Xn(n,l,o)}divide(n,l){return new se(Xn(this.value,n.getValue(),l))}static modulus(n,l){return n=se.validate(n),l=se.validate(l),Da(n,l)}modulus(n){return new se(Da(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),Gn(n)}negate(){return new se(Gn(this.value))}}function xa(e,n){return se.multiply(`${e}`,`${n}`)}function Zn(e,n,l=8){return se.divide(`${e}`,`${n}`,l)}function Jn(e,n){return e=`${e}`,n=`${n}`,se.compareTo(e,n)}function Ma(e){return se.negate(e)}function Gt(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 f;if(o>0){let m="",h=i.split("").reverse();for(let y=0;y<h.length;y++)m+=h[y]+((y+1)%o==0&&y+1!=h.length?a:"");c.length==0?f=`${s}${m.split("").reverse().join("")}`:f=`${s}${m.split("").reverse().join("")}.${c}`}else c.length==0?f=`${s}${i}`:f=`${s}${i}.${c}`;return f}function za(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",Fe=We;function La(e){return e==null}const Zt=Array.isArray,Ds=e=>_t(e)==="[object Map]",Is=e=>_t(e)==="[object Set]",Re=e=>e instanceof Date,Jt=e=>typeof e=="function",Pa=e=>typeof e=="string",qs=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",_n=e=>Ve(e)&&Jt(e.then)&&Jt(e.catch),Fa=Object.prototype.toString,_t=e=>Fa.call(e),eo=e=>_t(e)==="[object Object]",Ra=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function xs(e){return e.__esModule||Ra&&e[Symbol.toStringTag]==="Module"}const Ms=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 to(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)&&!eo(s))continue;r=to(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)&&!eo(s))continue;r=to(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}}return e}const no=Ms?Promise.resolve():null;function zs(e,...n){no!==null?n&&n.length>0?no.then(()=>{e(n)}):no.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 he(e){return typeof e=="number"?e:Number(e)}const Ls={"[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):Ls[l]||"object"}function en(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 va(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 Ka(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 Ps(e,n=[]){let l=n;return e!=null&&(va(Object(e))?Ka(l,typeof e=="string"?[e]:e):l.push(e)),l}function xe(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(!xe(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(!xe(r,s))return!1}return!0}return!1}function Ua(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Ha(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 ja(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 Wa(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 Ya(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 oo(e,n=!0,l=!0){n?e=Ya(e,".",/\./g):e=e.replace(/\./g,""),l?e=Ya(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function Fs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(l=>{if(xe(e,l))return!0}):n.indexOf(e)}function Rs(e,n){if(typeof e=="object"||Array.isArray(e)){let l=n.reverse().findIndex(o=>{if(xe(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 ge(e,...n){const l={};return n.forEach(o=>{for(const a in o)l[a]=e[a]}),l}function lo(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 Xa=(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 ao(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),ro=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Se=Symbol.for("BroadcastKey");class so{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="*"):Ua(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 tn(e,n,l,o){const a=new so(n,e,l);if(o&&typeof o=="object")for(const r in o)a.on(r,o[r]);return a}function Os(e,n,l){const o=l;if(o[Se])return o[Se];const a=t.inject(Se,null),r=new so(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 Vt(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 vs{error(n,l){const o=l,a=Vt(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const l=n,o=Vt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(n){const l=n,o=Vt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(n,l,o){Array.isArray(n)||(n=[n]);const a=o,r=Vt(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 Qa=new vs;function Ks(e){Qa=e}function Us(e,n){ot(Je).setValidator(e,n)}function Hs(e){ot(Je).deleteValidator(e)}let Ga=["blur","clear"];function js(e){Ga=e}function Za(){return Ga}let Ja=["focus","change"];function Ws(e){Ja=e}function _a(){return Ja}function Ys(e){ot(Je).messages(e)}function Tt(...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 nn(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 ve=Symbol("ValidateSchemaKey");class er{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=nn(Tt(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=nn(o);const a=Tt(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=Qa;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=Tt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=nn(n):this.rules=nn([n]);const o=Tt(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=Tt(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(m=>{if(m.pass)this.success();else{let h="error";Array.isArray(m.errors)&&m.errors.length>0&&(h=m.errors[0].message??h,m.errors=[m.errors[0]],m.errors[0].ref=u),this.error(h)}return m}).catch(m=>{const h=m.message??`${m}`;return this.error(h),m})}}return Promise.resolve({pass:!0})}}function on(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 er(n,l,e)}const tr=Symbol("EventEmitterKey");class Xs{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 ct(e,n){let l=null;return function(...o){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...o])},n)}}function ln(e,n){let l=0;return function(...o){const a=new Date().getTime();a-l<n||(l=a,Reflect.apply(e,null,[...o]))}}function Qs(e,n){const l=ct((o,a)=>{e=o,a()},n);return t.customRef((o,a)=>({get(){return o(),e},set(r){l(r,a)}}))}function Gs(e){let n=!1;return function(...l){n||(n=!0,Reflect.apply(e,null,[...l]))}}function io(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 qe=Symbol("DomainKey"),dt=Symbol("DataItemsKey");class an{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,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 Zs=new an;function ut(){return Zs}function Ke(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[qe]??t.inject(qe,null):t.inject(qe,null)}const co=Symbol("OriginalDateKey");function uo(e,n,l=[],o){const a=t.getCurrentInstance(),r=a?.proxy;let s=t.inject(qe,null);s===null&&(s=ut());const i=e||n.prop||n.name,c=new an(i);c.parent=s;const u=k=>{r[co]||h(k),c.set("modelValue",k)},f=()=>c.getForSelf("modelValue")??null,m=()=>r[co]??null,h=k=>{const S={};et(!0,S,t.toRaw(k)),r[co]=S};t.isReactive(n)||typeof n=="function"?t.watch(n,k=>{c.merge(k,l)},{immediate:!0}):c.merge(n,l),n.modelValue&&h(n.modelValue),r[qe]=c,t.provide(qe,c);let y=null,g=null;if(a!==null){const k=t.inject(Se,null);y=tn(r,k,i,o),c.broadcast=y,r[Se]=y,t.provide(Se,y),r.broadcast=(d,p,...b)=>Reflect.apply(y.emit,y,[d,p,...b]);const S=t.inject(ve,null);g=on(r,S,{componentName:""}),c.validateSchema=g,r[ve]=g,t.provide(ve,g),r[dt]=new Map,r.validate=(d=!0)=>{const p=[];let b=null;const C={deep:!1};if(d===!0)b={name:"*"};else if(Array.isArray(d)&&d.length>0){const B=d;b={name:A=>A?B.indexOf(A)!==-1:!1}}else if(d!=null&&typeof d=="object"){const B=d;if(C.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const A=B.include;b={name:E=>E?A.indexOf(E)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const A=B.exclude;b={name:E=>E?A.indexOf(E)===-1:!1}}else b={name:"*"}}if(b){const B=y?.emitToChildren(b,"validate",C);B&&Reflect.apply([].push,p,B)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(B=>{let A=[];return B.forEach(E=>{E.pass===!1&&Array.isArray(E.errors)&&(A=[...A,...E.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(d,p=!0,b=!1)=>{if(b===!0){Reflect.ownKeys(d).forEach(B=>{let A=String(B);const V=lr(c,A,{componentName:"",fieldName:A,pureDataValidate:!0},y,g);r[dt].set(A,V);const q=d[A];q&&V.validateSchema.setRule(q)});return}if(p){const C=Reflect.ownKeys(d),B={name:A=>C.includes(A)};y?.emitToChildren(B,"setNameValidateRules",d,!1)}},r.clearValidate=(d=!0)=>{let p=null;if(d===!0)p={name:"*"};else if(Array.isArray(d)&&d.length>0){const b=d;p={name:C=>C?b.indexOf(C)!==-1:!1}}else if(d!=null&&typeof d=="object"){const b=d;if(Array.isArray(b.include)&&b.include.length>0){const C=b.include;p={name:B=>B?C.indexOf(B)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const C=b.exclude;p={name:B=>B?C.indexOf(B)===-1:!1}}else p={name:"*"}}p&&y?.emitToChildren(p,"clearValidate",!1)},r.resetFields=d=>{const p=f();if(!p)return;const b={};if(et(!0,b,m()??{}),Array.isArray(d))d.forEach(C=>{p[C]=b[C]});else if(d&&Array.isArray(d.include))(d.include??[]).forEach(B=>{p[B]=b[B]});else if(d&&Array.isArray(d.exclude)){let C=d.exclude??[];Reflect.ownKeys(b).forEach(B=>{C.includes(B)||(p[B]=b[B])})}else Object.assign(p,b);r.clearValidate(d)},r.setModelValue=(d,p)=>{!p||p===i?u(d):y?.emitToChildren({name:p},"setModelValue",d)},r.getModelValue=()=>f()}return t.onUnmounted(()=>{c.destroy(),r[qe]=void 0,r[dt]&&(r[dt].clear(),r[dt]=void 0),y!==null&&(y.destroy(),r[Se]=void 0),g!==null&&(g.destroy(),r[ve]=void 0)}),c}function nr(e,n,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(qe,null);r===null&&(r=ut());const s=e||n.prop||n.name,i=new an(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[qe]=i,t.provide(qe,i),t.onUnmounted(()=>{i.destroy(),a[qe]=void 0}),i}function or(e,n,l){const a=Ke(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=tn(a,s,r,l);a[Se]=i,t.provide(Se,i),a.broadcast=(g,k,...S)=>Reflect.apply(i.emit,i,[g,k,...S]);const c=t.inject(ve,null);e.fieldName=e.fieldName??r;const u=on(a,c,e);a[ve]=u,t.provide(ve,u),or(a,u,r),a.validate=(g=null)=>{const k=[];let S=!1,d=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)d=!0,S=!0;else if(g&&typeof g=="object"){const p=g;p.ignoreHidden===!0&&en(a.$el)?d=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),d=!0),S=p.deep??!1}else typeof g=="boolean"&&(S=g),d=!0;if(d){const p=u?.validate();k.push(p)}if(S){let p=null;const b={deep:!1};if(g===!0)p={name:"*"};else if(Array.isArray(g)&&g.length>0){const C=g;p={name:B=>B?C.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const C=g;if(b.ignoreHidden=C.ignoreHidden,Array.isArray(C.include)&&C.include.length>0){const B=C.include;p={name:A=>A?B.indexOf(A)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const B=C.exclude;p={name:A=>A?B.indexOf(A)===-1:!1}}else p={name:"*"}}if(p){const C=i.emitToChildren(p,"validate",b);Reflect.apply([].push,k,C)}}return k.length==1?k[0]:k.length>1?Promise.all(k).then(p=>{let b=[];return p.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(b=[...b,...C.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=g=>u?.setRule(g),a.setNameValidateRules=(g,k=!1)=>{const S=g[r];if(S&&u?.setRule(S),k){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 k=null;if(g===!0)k={name:"*"};else if(Array.isArray(g)&&g.length>0){const S=g;k={name:d=>d?S.indexOf(d)!==-1:!1}}else if(g!=null&&typeof g=="object"){const S=g;if(Array.isArray(S.include)&&S.include.length>0){const d=S.include;k={name:p=>p?d.indexOf(p)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const d=S.exclude;k={name:p=>p?d.indexOf(p)===-1:!1}}else k={name:"*"}}k&&i.emitToChildren(k,"clearValidate",!1)};const f=new Xs(a);a[tr]=f;const m=ct((g="validate")=>{g==="reset"?u.clear():u.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Za()).forEach(g=>{f.on(g,k=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:_a()).forEach(g=>{f.on(g,k=>{m("reset")})}),t.onUnmounted(()=>{i.destroy(),a[Se]=void 0,u.destroy(),a[ve]=void 0,f.destroy(),a[tr]=void 0}),{broadcast:i,validateSchema:u,emitEvent:(g,...k)=>{Reflect.apply(f.emit,f,[g,...k])},onEvent:(g,k)=>{Reflect.apply(f.on,f,[k])},offEvent:(g,k)=>{Reflect.apply(f.off,f,[k])}}}function lr(e,n,l,o,a){const r={},s=n??"",i={getValue(){const f=e.getForSelf("modelValue");return f?f[s]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,s):!1}};l.fieldName=s,l.validateHandler={getValue(f){return i.getValue()}};const c=on({},a,l);r.validate=(f=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const m=[];let h=!1,y=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)y=!0,h=!0;else if(f&&typeof f=="object"){const g=f;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 f=="boolean"&&(h=f),y=!0;if(y){const g=c?.validate();m.push(g)}if(h){let g=null;const k={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const S=f;g={name:d=>d?S.indexOf(d)!==-1:!1}}else if(f!=null&&typeof f=="object"){const S=f;if(Array.isArray(S.include)&&S.include.length>0){const d=S.include;g={name:p=>p?d.indexOf(p)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const d=S.exclude;g={name:p=>p?d.indexOf(p)===-1:!1}}else g={name:"*"}}if(g){const S=u.emitToChildren(g,"validate",k);Reflect.apply([].push,m,S)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(g=>{let k=[];return g.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(k=[...k,...S.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=f=>c?.setRule(f),r.setNameValidateRules=f=>{const m=f[s];m&&c?.setRule(m)};const u=tn(null,o,s,r);return{broadcast:u,validateSchema:c}}const me=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 Ye="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 fo(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 ar(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;fo(o,r,n,!0,s,i,c,u);const f=t.reactive(o),m=e.getForParent(Ye);m&&(o.height=dn(e,m),o.width=un(e,m),t.watch([()=>dn(e,m),()=>un(e,m)],([y,g])=>{f.height=y,f.width=g}));const h=!m;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,g,k=-1,S=-1,d=0,p=0])=>{fo(f,g,n,h,k,S,d,p)}),e.set(Ye,f),f}function rn(e){return e.get(Ye)}function sn(e,n){if(n=n??e.get(Ye),n&&n.headerMounted){const l=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+l}return 0}function cn(e,n){if(n=n??e.get(Ye),n&&n.footerMounted){const l=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+l}return 0}function dn(e,n){if(n=n??e.get(Ye),n){if(n.contentInnerHeight)return n.contentInnerHeight;const l=sn(e,n),o=cn(e,n);return n.height-l-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function un(e,n){return n=n??e.get(Ye),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Js(e,n){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[n,e]):!1}function _s(e){return!!e.getForParent(Ye)}var fn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(fn||{});function mo(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,l=1,o){const a=Ke();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(mo(c,o))return c}const s=e.value;return mo(s,o)?s:null}):t.computed(()=>{const r=e.value;return mo(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 rr=new Map,mn=new Map;let po=null;function ei(e){po=e}function sr(e,n,l){if(l){let o=mn.get(l);o||(o=new Map,mn.set(l,o)),o.set(e,n)}else rr.set(e,n)}function Xe(e,n,l){!l&&po&&(l=po(e)??void 0);let o=null;if(l){let a=mn.get(l);a&&(o=a.get(n))}return o||(o=rr.get(n)),o}function ti(e,n){for(let l in e){const o=e[l];sr(l,o,n)}}function ni(e){mn.delete(e)}function oi(){return{top:0,left:0,bottom:0,right:0}}function li(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 ai{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=ut();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=ln(()=>{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({},oi(),n.safeAreaInset),s=li(o,a),i=et({},s.pageLayout,n.pageLayout);l=l??ut(),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){ei(n)}setAPI(n,l,o){sr(n,l,o)}getAPI(n,l,o){return Xe(n,l,o)}batchSetAPI(n,l){ti(n,l)}clearScopeAPI(n){ni(n)}getRootDomain(){return ut()}}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 ri=(e,n)=>{let l=document.body;const o=e.teleport||"body";o!="body"&&(Pa(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={};Jt(n.wrapper)?i=n.wrapper(l,a):i=n.wrapper;const c=t.createApp(i,e),u=n.components;return u&&u.forEach(f=>{c.use(f)}),l.appendChild(a),{instance:c.mount(a),unmount:()=>{c.unmount(),l.removeChild(a)}}},ir=(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}},cr={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}},dr={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}},ur=[];for(const e in dr)ur.push(e);function $e(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}const si=Symbol.for("InnerPageScopeKey"),ii=(e,n)=>({inheritAttrs:!0,props:{...ue,...cr,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=uo(l.name,l);if(a){const u=ar(a,l);$e({getPageContentHeight:()=>dn(a,u),getPageContentWidth:()=>un(a,u),getPageHeaderHeight:()=>sn(a,u),getPageFooterHeight:()=>cn(a,u)});const f=t.inject(si,!1);u&&f&&(u.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=(u,f=!1)=>{const m=i?.proxy;m&&typeof m.setNameValidateRules=="function"&&m.setNameValidateRules(u,!0,f)};return t.watch([()=>l.rules,()=>l.pureDataRules],([u,f],[m,h])=>{if(u&&m){const y=t.toRaw(m),g=t.toRaw(u),k=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(d=>{k.includes(d)||(g[d]=[])}),c(g)}if(f&&h){const y=t.toRaw(h),g=t.toRaw(f),k=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(d=>{k.includes(d)||(g[d]=[])}),c(g,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const u=t.toRaw(l.rules);c(u)}if(l.pureDataRules){const u=t.toRaw(l.pureDataRules);c(u,!0)}}),{classes:r,styles:s}}}),{componentName:ci,create:di,scope:B2}=X("page"),ui=di(ii(ci));function fi(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},ho=_(ui,[["render",fi]]);function pn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function go(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 mi=(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=Ke(),i=s?rn(s):null;i&&(i.headerMounted=!0);const c=e,u=t.computed(()=>({[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed,[`${c}--safe-area-inset-top`]:a.safeAreaInsetTop})),f=t.computed(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),m=a.height!==null&&a.height!==void 0?ie(a.height):null,h=t.computed(()=>{const N={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const T=ze(a.padding??i.headerPadding);return Object.assign(N,T),m&&(i.headerHeight=m),i.headerHeight>0&&(N.height=i.headerHeight),N.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,N.safeAreaTop>0&&(N.top=N.safeAreaTop+(T.top??0),N.height&&N.height>0&&(N.height=N.height+N.safeAreaTop)),N}if(m&&(N.height=m),a.padding){const T=ze(a.padding);Object.assign(N,T)}return N}),y=t.ref(null),g=()=>{if(i&&y.value&&!en(y.value)){if(!o){const N=pn(y.value);i.headerAllHeight=N.height}return i.headerMounted=!0,!0}return!1};let k=null;t.onMounted(()=>{i&&(io(g,50,5,50,!0),window.ResizeObserver&&y.value&&(k=new window.ResizeObserver(()=>{g()}),k.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,k&&(k.disconnect(),k=null))});const S=t.computed(()=>{const N={};return h.value.height!==null&&h.value.height!==void 0&&(N.height=`${h.value.height}px`),h.value.top!==null&&h.value.top!==void 0&&(N.paddingTop=`${h.value.top}px`),h.value.left!==null&&h.value.left!==void 0&&(N.paddingLeft=`${h.value.left}px`),h.value.right!==null&&h.value.right!==void 0&&(N.paddingRight=`${h.value.right}px`),h.value.bottom!==null&&h.value.bottom!==void 0&&(N.paddingBottom=`${h.value.bottom}px`),N}),d=t.computed(()=>!(h.value.height!==null&&h.value.height!==void 0&&h.value.height<=0));function p(){r.emit("back")}function b(){r.emit("click-title")}function C(){r.emit("click-right")}function B(){r.emit("click-right-text")}const A=()=>{if(!a.leftShow)return null;const N=[];if(r.slots.left)N.push(r.slots.left());else{if(r.slots.leftIcon){const T=t.h("view",{class:"left-icon",onClick:p},[r.slots.leftIcon()]);N.push(T)}else if(a.leftIcon){const T=t.h("view",{class:"left-icon",onClick:p},[t.h(a.leftIcon)]);N.push(T)}if(a.leftText){const T=t.h("view",{class:"left-text",onClick:p},[a.leftText]);N.push(T)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__left"},N)},E=()=>{if(!a.rightShow)return null;const N=[];if(r.slots.right)N.push(r.slots.right());else{if(a.rightText){const T=t.h("view",{class:"right-text",onClick:B},[a.rightText]);N.push(T)}if(r.slots.rightIcon){const T=t.h("view",{class:"right-icon",onClick:C},[r.slots.rightIcon()]);N.push(T)}else if(a.rightIcon){const T=t.h("view",{class:"right-icon",onClick:C},[t.h(a.rightIcon)]);N.push(T)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__right"},N)},V=()=>{if(!a.titleShow)return null;const N=[],T=r.slots.default?r.slots.default():null;if(T)N.push(T);else{if(a.title){const L=t.h("view",{class:"title-text"},[a.title]);N.push(L)}if(r.slots.titleIcon){const L=t.h("view",{class:"title-icon",onClick:b},[r.slots.titleIcon()]);N.push(L)}else if(a.titleIcon){const L=t.h("view",{class:"title-icon",onClick:b},[t.h(a.titleIcon)]);N.push(L)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__title"},N)},q=()=>{const N=[],T=r.slots.bottom?r.slots.bottom():null;return T&&N.push(T),N.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},N)};return()=>{if(!d.value)return null;const N=[];if(r.slots.all)N.push(r.slots.all());else{const L=[],F=A();F&&L.push(F);const D=V();D&&L.push(D);const I=E();if(I&&L.push(I),L.length>0){const $=t.h("view",{class:f.value},L);N.push($)}const x=q();x&&N.push(x)}if(N.length===0)return null;const T={class:u.value,style:S.value,ref:y};return t.h("view",T,N)}}}),{componentName:pi,create:hi,scope:gi}=X("header-bar"),yo=hi(mi(pi,gi,ne.Left,!1));function yi(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=Ke(),s=r?rn(r):null,i=t.computed(()=>{const g=e;return{[g]:!0,[`${g}--${o.align}`]:!0,[`${g}--border`]:o.border,[`${g}--fixed`]:o.fixed,[`${g}--safe-area-inset-bottom`]:o.safeAreaInsetBottom}}),c=o.height!==null&&o.height!==void 0?ie(o.height):null,u=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const k=ze(o.padding??s.footerPadding);return Object.assign(g,k),c&&(s.footerHeight=c),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(k.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(c&&(g.height=c),o.padding){const k=ze(o.padding);Object.assign(g,k)}return g}),f=t.ref(null),m=()=>{if(s&&f.value&&!en(f.value)){if(!l){const g=pn(f.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let h=null;t.onMounted(()=>{s&&(io(m,50,5,50,!0),window.ResizeObserver&&(h=new window.ResizeObserver(()=>{m()}),h.observe(f.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,h&&(h.disconnect(),h=null))});const y=t.computed(()=>{const g={};return u.value.height!==null&&u.value.height!==void 0&&(g.height=me(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(g.paddingTop=me(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(g.paddingLeft=me(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(g.paddingRight=me(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(g.paddingBottom=me(u.value.bottom)),g});return()=>{const g=a.slots.default?a.slots.default():[],k={ref:f,class:i.value,style:y.value};return t.h("view",k,g)}}}}const{componentName:ki,create:bi,scope:Si}=X("footer-bar"),ko=bi(yi(ki,Si,!1));function Ci(e,n){return{props:{padding:{type:[Object],required:!1}},setup(l){const o=Ke(),a=t.computed(()=>({[e]:!0})),r=o?rn(o):null,s=t.computed(()=>{const u={};if(o&&r){if(l.padding){const d=ze(l.padding);Object.assign(r.contentPadding,d)}const f=sn(o,r),m=cn(o,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",f),console.debug("[content]footer height:",m),console.debug("[content]padding:",r.contentPadding),u.height=h;let y=(r&&r.contentPadding&&r.contentPadding.top)??-1;(y>=0||f>0)&&(y=y<0?0:y,u.paddingTop=`${f+y}px`);let g=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(g>=0||m>0)&&(g=g<0?0:g,u.paddingBottom=`${m+g}px`);const k=(r&&r.contentPadding&&r.contentPadding.left)??-1;k>=0&&(u.paddingLeft=`${k}px`);const S=(r&&r.contentPadding&&r.contentPadding.right)??-1;return S>=0&&(u.paddingRight=`${S}px`),u}if(l.padding){const f=ze(l.padding);f.left&&(u.paddingLeft=`${f.left}px`),f.top&&(u.paddingTop=`${f.top}px`),f.right&&(u.paddingRight=`${f.right}px`),f.bottom&&(u.paddingBottom=`${f.bottom}px`)}return u}),i=t.ref(null),c=ct(()=>{if(r&&i.value){const u=go(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:wi,create:Ni,scope:A2}=X("content"),Bi=Ni(Ci(wi));function Ai(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 bo=_(Bi,[["render",Ai]]),ft="GroupStateKey",fr=Symbol.for("GroupScopeKey");function hn(){return t.inject(fr,!1)}function gn(e=!0){t.provide(fr,e)}function Vi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const a=n[o];La(a)||(e[o]=a)})}function Ti(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Vi(o,n);const a=t.shallowRef(o),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(ft,r),r}function So(e,n,l=-1,o=-1,a=!1,r,s,i){const c=e.get(ft);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 f=ie(r),m=ie(s);i||(i=u.type??"grid");const h=()=>{const y=n===""||n===-1,g=ie(n);let k=he(l);const S=ie(o);if(!y){let b=(g-(k-1)*S)/k;for(;m!==-1&&b>m;)k++,b=(g-(k-1)*S)/k;for(;f!==-1&&k>1&&b<f;)k--,b=(g-(k-1)*S)/k}let d=!1;const p=c.layout;p.value.width=n,p.value.column!==k&&(p.value.column=k,d=!0),p.value.gutter!==S&&(p.value.gutter=S,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 yn(e,n=!1){let l;return n?l=e.getForParent(ft):l=e.get(ft),l.layout}function kn(e,n=!1){let l;return n?l=e.getForParent(ft):l=e.get(ft),l.order}function mr(e,n=1){if(n==="stretch")return-1;const l=he(n);return l===-1?100:100*l/e}function bn(e,n,l=1,o=0,a){const r={};let s=0;a?s=ie(a):s=mr(n.column,l),s>0&&(r.width=`${s}%`);const i=mr(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 Sn(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=he(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=he(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 pr=Symbol("RollingStateKey");function $i(e){t.provide(pr,e)}function Ei(){return t.inject(pr,null)}function Co(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 Di(e){let n=Co(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=Co(l),document.body.removeChild(l)}return n}function Ii(e,n,l){if(e<=0)return"1fr";const o=(e-(n-1)*l)/n;return o>0?`${o}px`:"1fr"}const qi={...ue,...cr,...dr};function xi(e,n,l){return{props:qi,emits:["update:collapse"],setup(o,a){const r=uo(o.name,o,ur),s=Ti(r,{type:o.type}),i=hn();gn(!0);const c=o.rollingDisplay?Ei():null,u=t.ref(null),f=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),m=t.computed(()=>i&&r?yn(r,!0).value:null),h=t.getCurrentInstance(),y=(K,Z=!1)=>{const G=h?.proxy;G&&typeof G.setNameValidateRules=="function"&&G.setNameValidateRules(K,!0,Z)};t.watch([()=>o.rules,()=>o.pureDataRules],([K,Z],[G,te])=>{if(K&&G){const ee=t.toRaw(G),le=t.toRaw(K),ae=le?Reflect.ownKeys(le):[];(ee?Reflect.ownKeys(ee):[]).forEach(be=>{ae.includes(be)||(le[be]=[])}),y(le)}if(Z&&te){const ee=t.toRaw(te),le=t.toRaw(Z),ae=le?Reflect.ownKeys(le):[];(ee?Reflect.ownKeys(ee):[]).forEach(be=>{ae.includes(be)||(le[be]=[])}),y(le,!0)}},{deep:!0});const g=e,k=t.computed(()=>{const K={};if(K.height=I.value,o.width)o.width!=="auto"&&(K.width=me(o.width));else{const Z=i?kn(r,!0):null;if(m.value&&Z){if(m.value.type==="grid"){const G=Sn(Z,m.value,o.span,o.offset);Object.assign(K,G)}else if(m.value.type==="flow"){const G=bn(Z,m.value,o.span,o.offset,o.width);Object.assign(K,G)}}}return K}),S=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 Z="";if(o.columnWidth)Z=`repeat(auto-fill, ${o.columnWidth})`;else{const G=Ii(V.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}}}),p=t.toRef(o,"gutter"),b=t.toRef(o,"column"),C=t.computed(()=>i||f.value?!0:pe(o.isWrap)),B=[],A=K=>{B.push(K)},E=()=>{let K=B.length;B.splice(0,K)},V=t.ref(-1),q=K=>{const Z=go(K).width;Z>0&&Z!==V.value&&(V.value=Z)};So(r,V.value,b.value,p.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([V,b,p],([K,Z,G])=>{s.order.index=0,So(r,K,Z,G,!1,o.minItemWidth,o.maxItemWidth,o.type)});const N=t.computed(()=>x.value?o.expandText??"":o.collapseText??""),T=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),L=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!x.value,"is-collapse":x.value})),F=t.ref(),D=t.ref(),I=t.computed(()=>$.value||me(o.height)||""),x=t.ref(!1),$=t.ref(""),j=t.ref(!1);let O=-1;const Q=(K,Z=!0)=>{const G=F.value;if(G&&x.value!==K){if(O=O===-1?Di(G):O,j.value=!0,Z)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",K||($.value="",j.value=!1)},K){let te=0;o.collapseHeight?te=o.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(te=D.value.offsetHeight),$.value=`${O}px`,t.nextTick(()=>{$.value=`${te}px`})}else $.value=`${O}px`;else if(K){let te=0;o.collapseHeight?te=o.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(te=D.value.offsetHeight),$.value=`${te}px`}else j.value=!1,$.value=`${O}px`;x.value=K,a.emit("update:collapse",K)}};t.watch(()=>o.collapse,K=>{Q(K)});const H=()=>{R()},R=K=>{K=K??!x.value,Q(K)};$e({toggleCollapse:R,doLayout:()=>{B[0]&&(q(B[0]),So(r,V.value,b.value,p.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let W=null,z=!0;const v=K=>{if(o.rules){const Z=t.toRaw(o.rules);y(Z)}if(o.pureDataRules){const Z=t.toRaw(o.pureDataRules);y(Z,!0)}if(_e&&(K&&Q(pe(o.collapse),!1),o.autoLayout&&Array.isArray(B)&&B.length>0)){const Z=B[0];q(Z),window.ResizeObserver&&(W=new window.ResizeObserver(()=>{q(Z)}),W.observe(Z))}},M=()=>{W?.disconnect(),W=null},U=!f.value||c?.acquire();U&&(u.value=f.value?!0:null),t.onMounted(()=>{if(U&&(v(z),z=!1),f.value&&c){let K=null,Z=c.initialHeight;c.observe(F.value,G=>{if(G!==u.value)if(G)u.value=!0,x.value||($.value=""),K=setTimeout(()=>{K=null,u.value!==!1&&(v(z),z=!1)},100);else{if(K!==null&&clearTimeout(K),u.value=!1,!x.value)if(z)$.value=c.initialHeight;else{let te=Co(F.value);te<=0?$.value=Z:($.value=`${te}px`,Z=$.value)}z||M()}})}}),t.onUnmounted(()=>{W?.disconnect(),c&&c.unobserve(F.value)});const Y=(K="right")=>{const Z=[];if(N.value){const ee={class:T.value},le=t.h("span",ee,[N.value]);Z.push(le)}const G={class:L.value},te=l(o.collapseIcon,G);return te&&Z.push(te),Z.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${K}`]:!0},onClick:H},Z):null},J=(K,Z,G,te)=>{const ee={...S.value};return Z===0&&(ee[`${g}__first`]=!0),G>=te-1&&(ee[`${g}__last`]=!0),t.h("div",{ref:A,key:`${Z}`,class:ee,style:d.value},K)};return()=>{if(f.value&&u.value!==!0){const ee=o.tag||"div";return t.h(ee,{ref:F,prop:o.name,class:{[`${g}`]:!0,"is-collapse":j.value},style:k.value},[])}s.order.index=0;const K=[];let Z=0;if(a.slots.header){const ee={key:`${Z++}`,ref:D,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},le=t.h("div",ee,[a.slots.header()]);K.push(le)}else{const ee=[],le=o.collapsePosition==="left";if(le&&o.showCollapse){const ae=Y("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()),!le&&o.showCollapse){const ae=Y("right");ae&&ee.push(ae)}if(ee.length>0){const ae={key:`${Z++}`,ref:D,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},Ie=t.h("div",ae,ee);K.push(Ie)}}E();const G=a.slots.default?a.slots.default():[],te=s.layout.value.type;if(te==="grid"){const ee=J(G,Z++,0,G.length);K.push(ee)}else if(te==="flow"){const ee=J(G,Z++,0,G.length);K.push(ee)}else for(let ee=0;ee<G.length;ee++){const le=G[ee],ae=J([le],Z++,ee,G.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":j.value},style:k.value},[K])}else return K}}}}const{componentName:Mi,create:zi,scope:Li}=X("group"),wo=zi(xi(Mi,Li,(e=ne.RectUp,n={})=>t.h(e,n)));function Pi(e){return e===window}const Fi=/matrix\((.+)\)/,hr=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Pi(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 f=Fi.exec(u);if(f){let h=f[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 Ri{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 Oi{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 Ri,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 gr=new Oi,yr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:vi,create:Ki}=X("price"),Ui=Ki({props:{...yr},setup(e){const n=t.computed(()=>({[vi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ye(e.price)==0?"":Gt(e.price,e.decimalLength,!0,he(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}}}),Hi=["innerHTML"],ji=["innerHTML"];function Wi(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Hi)):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,ji)):t.createCommentVNode("",!0)],2)}const Qe=_(Ui,[["render",Wi]]),{componentName:No,create:Yi}=X("hint-text"),Xi=Yi({components:{Price:Qe},props:{...yr,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=(T,L,F,D,I,x)=>{const $=document.documentElement.clientWidth||document.body.clientWidth,j=document.documentElement.clientHeight||document.body.clientHeight,O=T.split("-");let Q=[];O[0]==="top"?Q=["top","bottom","right","left"]:O[0]==="bottom"?Q=["bottom","top","right","left"]:O[0]==="left"?Q=["left","top","bottom","right"]:O[0]==="right"&&(Q=["right","top","bottom","left"]);const H={top:null,right:null,bottom:null,left:null},R=[];for(let P=0;P<Q.length;P++){const W=Q[P];if(R[0]=W,O[1]&&(R[1]=O[1]),W==="top"){const z=L.y-x-e.arrowSize-e.offset;if(z>=0){H.top=z;let v=0;O[1]==="start"?v=L.x:O[1]==="end"?v=L.x+F-I:v=L.x+F/2-I/2;const M=$-v-I;M<0?(v+=M,m.value=-M):m.value=0,H.left=v<0?0:v;break}}else if(W==="bottom"){const z=L.y+D+e.arrowSize+e.offset;if(z+x<=j){H.top=z;let v=0;O[1]==="start"?v=L.x:O[1]==="end"?v=L.x+F-I:v=L.x+F/2-I/2;const M=$-v-I;M<0?(v+=M,m.value=-M):m.value=0,H.left=v<0?0:v;break}}else if(W==="left"){const z=L.x-I-e.arrowSize-e.offset;if(z>=0){H.left=z;let v=0;O[1]==="start"?v=L.y:O[1]==="end"?v=L.y+D-x:v=L.y+D/2-x/2,H.top=v<0?0:v;break}}else if(W==="right"){const z=L.x+F+e.arrowSize+e.offset;if(z+I<=$){H.left=z;let v=0;O[1]==="start"?v=L.y:O[1]==="end"?v=L.y+D-x:v=L.y+D/2-x/2,H.top=v<0?0:v;break}}}return{bestPlacement:R.join("-"),bestInsetRect:H}},f=(T,L,F=10)=>{if(!_e||L===!1||!T)return;o.value=hr(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const D=c.value.offsetHeight,I=c.value.offsetWidth,{bestPlacement:x,bestInsetRect:$}=u(e.placement,o.value,a.value,r.value,I,D);s.value=x,l.value=$,i.value=!0},m=t.ref(0),h=ct(()=>{f(e.message,e.visible)},10),y=t.ref(e.visible);t.watch(()=>e.visible,T=>{y.value=T});const g=t.computed(()=>y.value&&k.value),k=t.ref(!0),S=ct(T=>{const L=T[0];L&&(k.value=L.isIntersecting)},10),d=new IntersectionObserver(S);t.watch([()=>e.message,()=>e.visible],([T,L])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),gr.watch(e.reference,h),d.observe(e.reference)}),t.onBeforeMount(()=>{gr.unwatch(e.reference,h),d.unobserve(e.reference),d.disconnect()});const p=t.computed(()=>{const T={[No]:!0};return s.value.startsWith("top")?T["is-top"]=!0:s.value.startsWith("right")?T["is-right"]=!0:s.value.startsWith("bottom")?T["is-bottom"]=!0:s.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),b=t.computed(()=>{const T={};l.value.top!==null&&(T.top=`${l.value.top}px`),l.value.right!==null&&(T.right=`${l.value.right}px`),l.value.bottom!==null&&(T.bottom=`${l.value.bottom}px`),l.value.left!==null&&(T.left=`${l.value.left}px`),e.autoFit&&(T["min-width"]=`${a.value}px`);const L=document.documentElement.clientWidth||document.body.clientWidth;return T["max-width"]=`${L}px`,i.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),C=t.computed(()=>{const T=[`${No}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),B=t.computed(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),A=t.computed(()=>({[`${No}__arrow`]:!0})),E=t.computed(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,s.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):s.value==="top-start"?(T.left=`${e.arrowOffset+m.value}px`,T.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(T.right=`${e.arrowOffset-m.value}px`,T.bottom=`-${e.arrowSize}px`):s.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):s.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):s.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(T.left=`${e.arrowOffset+m.value}px`,T.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(T.right=`${e.arrowOffset-m.value}px`,T.top=`-${e.arrowSize}px`):s.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):s.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):s.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),V=t.computed(()=>g.value&&e.closeOnClick),q=t.computed(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:g,tipRef:c,classes:p,styles:b,textClasses:C,textStyles:B,arrowClasses:A,arrowStyles:E,overlayShow:V,overlayStyle:q,onClickOverlay:()=>{y.value=!1,n.emit("update:visible",!1)}}}});function Qi(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 kr=_(Xi,[["render",Qi]]);class Bo{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={},Gi=new Bo,mt=new Map,Cn=e=>{if(e){const n=document.getElementById(e);mt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of mt.keys()){const l=document.getElementById(n);l&&l.parentNode?.removeChild(l)}mt.clear()}},Zi=e=>{e.unmount=Cn;const n=document.getElementById(e.id);if(n){const l=mt.get(e.id);l?e={...Ao,...l,...e}:e={...Ao,...e},e.transition=!1;const o=t.createVNode(kr,e);return t.render(o,n),e.id}},Ji=e=>{e.unmount=Cn;let n=e.id??`hinttext_${Gi.get()}`;e={...Ao,...e},e.id=n,mt.set(n,e);const l=document.createElement("div");l.id=e.id;const o=t.createVNode(kr,e);return t.render(o,l),document.body.appendChild(l),n},_i=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},lt={show(e,n,l={},o=!0){_i(n);const a=l.id;return a&&mt.has(a)?Zi({...l,message:n,reference:e}):(o&&Cn(),Ji({...l,message:n,reference:e}))},hide(e){Cn(e)},install(e){e.config.globalProperties.$hintText=lt}},{componentName:br,create:ec}=X("item"),tc=ec({inheritAttrs:!0,props:{...ue,...fe},emits:["appear","disappear"],setup(e,n){const l=e.prop??n.attrs.name;Ne({componentName:br,validate:!1},l);const o=Ke(),a=hn();gn(!1);const r=t.computed(()=>a&&o?yn(o,!1).value:null),s=br,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]=!!N.value,K[e.infoMarkClass]=!!V.value,typeof i.value=="function"){const Z=i.value(l);K[Z]=!0}else if(typeof i.value=="string"){const Z=i.value;K[Z]=!0}return K}),u=t.ref(null),f=t.computed(()=>{const K={};if(e.width)e.width!=="auto"&&(K.width=me(e.width));else{const Z=a&&o?kn(o,!1):null;if(r.value&&Z){if(r.value.type==="grid"){const G=Sn(Z,r.value,e.span,e.offset);Object.assign(K,G)}else if(r.value.type==="flow"){const G=bn(Z,r.value,e.span,e.offset,e.width);Object.assign(K,G)}}}if(typeof u.value=="function"){const Z=u.value(l);Z&&Object.assign(K,Z)}else if(u.value&&typeof u.value=="object"){const Z=u.value;Object.assign(K,Z)}return K}),m=t.ref(null),h=t.computed({get:()=>m.value??pe(e.isRequired),set:K=>{m.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",fn.Near),k=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),S=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${k.value}`]:!0})),d=t.computed(()=>({label:!0,[`label--${k.value}`]:!0})),p=Ae(t.toRef(e,"labelWidth"),"labelWidth",fn.Near),b=t.computed(()=>p&&p.value?{width:me(p.value)}:{}),C=t.computed(()=>({"label--string":!0,"label--required":h.value})),B=t.computed(()=>({content:!0,[e.contentClass]:!0})),A=t.computed(()=>({...e.contentStyle})),E=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(K){h.value=K},setErrorTip(K){E.errorTip=K},setErrorIcon(K){E.errorIcon=K},setWarnTip(K){E.warnTip=K},setWarnIcon(K){E.warnIcon=K},setInfoTip(K){E.infoTip=K},setInfoIcon(K){E.infoIcon=K},setCustomClassName(K){i.value=K},setCustomStyle(K){u.value=K}});const V=t.computed(()=>e.infoTip||E.infoTip),q=t.computed(()=>e.infoIcon||E.infoIcon),N=t.computed(()=>e.warnTip||E.warnTip),T=t.computed(()=>e.warnIcon||E.warnIcon),L=t.computed(()=>e.errorTip||E.errorTip),F=t.computed(()=>e.errorIcon||E.errorIcon),D=t.computed(()=>L.value?"error":N.value?"warn":V.value?"info":""),I=t.computed(()=>D.value.length>0),x=t.computed(()=>D.value==="error"?L.value:D.value==="warn"?N.value:D.value==="info"?V.value:""),$=t.computed(()=>D.value==="error"?F.value:D.value==="warn"?T.value:D.value==="info"?q.value:null),j=t.computed(()=>{let K={[`${s}__tip`]:!0,[`${s}__tip--${D.value}`]:!0};return D.value==="error"&&e.errorClass?K[`${e.errorClass}`]=!0:D.value==="warn"&&e.warnClass?K[`${e.warnClass}`]=!0:D.value==="info"&&e.infoClass&&(K[`${e.infoClass}`]=!0),K}),O=t.computed(()=>{let K={};return g&&g.value==="top"||!y.value?K["padding-left"]="0px":p&&p.value&&(K["padding-left"]=me(p.value)),K}),Q=()=>{const K=$.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},H=()=>{const K=x.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),P=t.computed(()=>({[`${s}__fixed-pre-tip`]:!0})),W=t.computed(()=>n.slots.fixedTip),z=t.computed(()=>({[`${s}__fixed-tip`]:!0})),v=t.ref();let M="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([K,Z,G,te])=>{v.value&&(K&&!ce(Z)?M?lt.show(v.value,Z,{...te,id:M,type:G},!0):M=lt.show(v.value,Z,{...te,type:G},!0):lt.hide(M))});let U=null;const Y=()=>{U||!v.value||(U=new IntersectionObserver(K=>{let Z=!1;for(let G of K)if(G.intersectionRatio>0){Z=!0,Z&&n.emit("appear",G);break}Z||n.emit("disappear")}),U.observe(v.value))},J=()=>{!U||!v.value||(U.unobserve(v.value),U=null)};return t.watch(()=>pe(e.appearListen),K=>{K?Y():J()}),t.onMounted(()=>{pe(e.appearListen)&&Y()}),t.onUnmounted(J),{classes:c,styles:f,mainClasses:S,hasLabel:y,labelClasses:d,labelStyles:b,labelStringClasses:C,contentClasses:B,contentStyles:A,contentRef:v,hasTip:I,mTip:x,mIcon:$,renderIcon:Q,renderTip:H,tipClasses:j,tipStyles:O,hasFixedTip:W,fixedTipClasses:z,hasFixedPreTip:R,fixedPreTipClasses:P}}}),nc=["prop"];function oc(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,nc)}const Ce=_(tc,[["render",oc]]);function lc(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=Ke(),i=hn();gn(!1);const c=t.computed(()=>{const u={};if(l.width)l.width!=="auto"&&(u.width=me(l.width));else if(i&&s){const f=yn(s,!1),m=kn(s,!1);if(f.value&&m){if(f.value.type==="grid"){const h=Sn(m,f.value,l.span,l.offset);Object.assign(u,h)}else if(f.value.type==="flow"){const h=bn(m,f.value,l.span,l.offset,l.width);Object.assign(u,h)}}}return u});return()=>{const u=[];if(o.slots.default){const m=o.slots.default();if(l.divide)for(let h=0;h<m.length;h++){if(h>0){const y=t.h("div",{class:{[`${a}__divide`]:!0}});u.push(y)}u.push(m[h])}else Reflect.apply([].push,u,m)}const f={class:r.value,style:c.value};return t.h("div",f,u)}}}}const{componentName:ac,create:rc,scope:T2}=X("row-item"),Vo=rc(lc(ac));function sc(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=Ke(),r=hn();gn(!1);const s=t.computed(()=>r&&a?yn(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 f={};if(l.width)l.width!=="auto"&&(f.width=me(l.width));else{const m=r&&a?kn(a,!1):null;if(s.value&&m){if(s.value.type==="grid"){const h=Sn(m,s.value,l.span,l.offset);Object.assign(f,h)}else if(s.value.type==="flow"){const h=bn(m,s.value,l.span,l.offset,l.width);Object.assign(f,h)}}}return f});return()=>{const f={class:c.value,style:u.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",f,o.slots.default()):t.h("div",f)}}}}const{componentName:ic,create:cc,scope:$2}=X("slot-item"),To=cc(sc(ic)),Sr={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 dc(e,n,l,o){return{props:{...ue,...fe,...Sr},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),f=u(a,["placeholder"]),m=t.ref(!1),h=De(a,"modelValue"),y=e,g=t.computed(()=>({[y]:!0,[`${y}__disabled`]:s.value,[`${y}__readonly`]:i.value})),k=Ae(t.computed(()=>a.textAlign),"textAlign"),S=t.computed(()=>{const I={};return k.value&&(I["text-align"]=k.value),I}),d=I=>{let $=I.target.value;a.type==="digit"&&($=oo($,!0)),a.type==="number"&&($=oo($,!1)),a.maxLength&&$.length>Number(a.maxLength)&&($=$.slice(0,Number(a.maxLength))),h.value=$,c("update:modelValue",$,I),c("change",$,I)};let p=De(a,"hintText"),b=t.ref(!1);const C=I=>{let $=I.target.value;m.value=!0,ce(p.value)||(b.value=!0),c("focus",$,I)},B=I=>{setTimeout(()=>{b.value&&(b.value=!1),m.value=!1},0);let $=I.target.value;a.maxLength&&$.length>Number(a.maxLength)&&($=$.slice(0,Number(a.maxLength))),c("blur",$,I)},A=t.computed(()=>({[`${y}__append`]:!0})),E=t.computed(()=>{const I={};return r.slots.append&&!V.value&&!F.value&&(I.display="none"),I}),V=t.computed(()=>ye(a.unit)>0),q=t.computed(()=>!F.value),N=t.computed(()=>({hidden:!q.value})),T=I=>{h.value="",c("update:modelValue","",I),c("change","",I),c("clear","")},L=t.computed(()=>pe(a.clearable)&&!s.value&&!i.value),F=t.computed(()=>{let I=ye(h.value)>0;return pe(a.clearable)&&I&&m.value}),D=t.computed(()=>({action:!0,hidden:!F.value}));return()=>{const I={class:g.value,style:S.value,type:a.type,maxlength:a.maxLength,placeholder:f.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:d,onFocus:C,onBlur:B},x=[],$=t.h("input",I);x.push($);const j=[];if(L.value){const z={class:["action-icon"]},v=t.h(o,z),M={class:D.value,onClick:T},U=t.h("view",M,{default:()=>[v]});j.push(U)}if(V.value){const z=t.h("view",{class:N.value},[a.unit]);j.push(z)}const O={class:A.value,style:E.value},Q=t.h("view",O,{default:()=>j});x.push(Q);const H={default:()=>x};H.label=r.slots.default,H.prepend=r.slots.prepend,H.append=r.slots.append,H.fixedPreTip=r.slots.fixedPreTip,H.fixedTip=r.slots.fixedTip;const P={...lo(a,Sr),hintText:p.value,hintVisible:b.value};return t.h(l,P,H)}}}}const{componentName:uc,create:fc,scope:mc}=X("input-item"),$o=fc(dc(uc,mc,Ce,ne.CircleClose));function Cr(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 wr(e,n,l=20){if(typeof n=="string"&&(n=he(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=xa(`${e}`,`${n}`);return Cr(o)}else{let o=Zn(`${e}`,Ma(`${n}`),20);return Cr(o)}}function pc(e,n=-1,l=!1,o=3,a=","){return Gt(e,n,l,o,a)}function Nr(e,n,l,o,a=!0){if(e=="")return"";if(e=za(e),n=he(n),n==1)return e;if(o)e=wr(e,n),l&&(e=="0"&&a?e=`${e}.`.padEnd(he(l)+2,"0"):e=Zn(e,1,he(l)));else{let r=-1*n;e=wr(e,r)}return e}function Br(e,n){let l={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=pe(n.minInclude),a=Jn(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=Jn(e,n.max);(o&&a==1||!o&&(a==0||a==1))&&(l.maxValid=!1)}return l}const Ar={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,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function hc(e,n,l,o){return{props:{...ue,...fe,...Ar},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),f=De(a,"modelValue"),m=t.ref("");t.watch([()=>f.value,()=>a.rates,()=>a.precision],([O,Q,H])=>{if(ce(O)){m.value="";return}const R=Nr(O,Q,H,!1);m.value!==R&&(m.value=R)},{immediate:!0});const h=t.computed(()=>{let O="";return u.value&&(O=m.value),O}),{t:y}=re.useFoxI18n(n),g=t.computed(()=>{let O=a.placeholder??"";return!u.value&&!ce(m.value)?O=pc(m.value,a.decimalLength,a.autoPadding,a.digits,a.separator):O=ce(O)?y(["placeholder"]):O,O}),k=e,S=t.computed(()=>({[k]:!0,[`${k}__disabled`]:s.value,[`${k}__placeholder`]:m.value.length>0})),d=Ae(t.computed(()=>a.textAlign),"textAlign"),p=t.computed(()=>{const O={};return d.value&&(O["text-align"]=d.value),O}),b=t.ref(""),C=t.computed(()=>{let O=b.value;return ce(O)&&(O=a.errorTip??""),O}),B=t.ref(""),A=t.ref(!1),E=O=>{let H=O.target.value;if(ce(H)){m.value="",f.value="",c("update:modelValue","",O),c("change","",O),pe(a.showTip)&&A.value&&(A.value=!1);return}if(H.length>=2){let R=H;if(R.charAt(0)=="-"&&(R=R.substring(1)),R.length>=2&&R.charAt(0)=="0"&&R.charAt(1)!="."){t.triggerRef(m);return}}if(H!="-"){if(!Ha(H)){t.triggerRef(m);return}if(a.integerLength!=-1&&ja(H)>Number(a.integerLength)){t.triggerRef(m);return}if(a.decimalLength&&a.decimalLength!=-1&&Wa(H)>Number(a.decimalLength)){t.triggerRef(m);return}let R=Br(H,a);if(R.maxValid===!1){b.value=R.message,t.triggerRef(m);return}}else if(a.min!=null&&he(a.min)>=0){t.triggerRef(m);return}B.value=H,pe(a.showTip)&&(A.value=H.length>0),m.value=H,f.value=Nr(H,a.rates,a.precision,!0),c("update:modelValue",f.value,O),c("change",f.value,O)},V=O=>{if(u.value=!0,pe(a.showTip)){let Q=m.value;ce(Q)&&(Q=a.hintText),ce(Q)||(B.value=Q,A.value=!0)}b.value="",c("focus",f.value,O)},q=O=>{if(setTimeout(()=>{u.value=!1,pe(a.showTip)&&A.value===!0&&(A.value=!1)},0),!ce(m.value)){let Q=Br(m.value,a);if(Q.minValid===!1||Q.maxValid===!1){b.value=Q.message;return}}c("update:modelValue",f.value,O),c("blur",f.value,O)},N=t.computed(()=>({[`${k}__append`]:!0})),T=t.computed(()=>{const O={};return r.slots.append&&!L.value&&!$.value&&(O.display="none"),O}),L=t.computed(()=>ye(a.unit)>0),F=t.computed(()=>!$.value),D=t.computed(()=>({hidden:!F.value})),I=O=>{f.value="",c("update:modelValue","",O),c("change","",O),c("clear","")},x=t.computed(()=>pe(a.clearable)&&!s.value&&!i.value),$=t.computed(()=>{let O=ye(f.value)>0;return pe(a.clearable)&&O&&u.value}),j=t.computed(()=>({action:!0,hidden:!$.value}));return()=>{let O={class:S.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:E,onFocus:V,onBlur:q},Q=[],H=t.h("input",O);Q.push(H);let R=[];if(x.value){const Y={class:["action-icon"]},J=t.h(o,Y),K={class:j.value,onClick:I},Z=t.h("view",K,{default:()=>[J]});R.push(Z)}if(L.value){const Y=t.h("view",{class:D.value},[a.unit]);R.push(Y)}const P={class:N.value,style:T.value},W=t.h("view",P,{default:()=>R});Q.push(W);const z={default:()=>Q};if(r.slots.default){let Y=r.slots.default();z.label=()=>Y}if(r.slots.prepend){let Y=r.slots.prepend();z.prepend=()=>Y}if(r.slots.append){let Y=r.slots.append();z.append=()=>Y}let M={...lo(a,Ar),errorTip:C.value,hintText:B.value,hintVisible:A.value,hintType:"number"};return t.h(l,M,z)}}}}const{componentName:gc,create:yc,scope:kc}=X("money-item"),Eo=yc(hc(gc,kc,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:bc,create:Sc,scope:Cc}=X("textarea"),wc=Sc({props:{...Do},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:l}=re.useFoxI18n(Cc);const o=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=bc;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:k}=e.autosize;g!==void 0&&(y=Math.min(y,g)),k!==void 0&&(y=Math.max(y,k))}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})}}}}),Nc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Bc={key:0,class:"fox-textarea__limit"};function Ac(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,Nc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Bc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const wn=_(wc,[["render",Ac]]);function Vc(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"),f=k=>{u.value=k,c("update:modelValue",k,{}),c("change",k,{})};let m=De(a,"hintText"),h=t.ref(!1);const y=k=>{ce(m.value)||(h.value=!0),c("focus",u.value,k)},g=k=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",u.value,k)};return()=>{const S={...ge(a,Do),disabled:s.value,readonly:i.value,value:u.value,"onUpdate:modelValue":f,onFocus:y,onBlur:g},d=[],p=t.h(o,S);d.push(p);const b={default:()=>d};b.label=r.slots.default,b.prepend=r.slots.prepend,b.append=r.slots.append,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const C=ge(a,fe,ue);return t.h(l,C,b)}}}}const{componentName:Tc,create:$c,scope:Ec}=X("textarea-item"),Io=$c(Vc(Tc,Ec,Ce,wn));function Dc(e){return e===window}const Ee=e=>{const n=t.unref(e);if(Dc(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}},Ge={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:{}}},Vr=2e3;let Tr=Vr;const Ic=(e,n)=>({components:n,props:{...Ge},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!==Vr&&(Tr=Number(l.zIndex)),o("update:visible",!0),a.zIndex=++Tr,l.destroyOnClose&&(a.showSlot=!0),o("open")},u=()=>{o("update:visible",!1),o("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},f=k=>{o("click-pop",k)},m=k=>{k.stopPropagation(),o("click-close-icon",k),o("update:visible",!1)},h=k=>{o("click-overlay",k),l.closeOnClickOverlay&&o("update:visible",!1)},y=k=>{o("opend",k)},g=k=>{o("closed",k)};return t.watch(()=>l.visible,k=>{l.visible?c():u()}),t.watch(()=>l.closeable,k=>{a.closed=k}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:f,onClickCloseIcon:m,onClickOverlay:h,onOpened:y,onClosed:g}}});let $t=0;const $r="fox-overflow-hidden",Er=()=>_e?document.body:{classList:[]},qc=e=>[()=>{if(e())try{!$t&&Er().classList.add($r),$t++}catch{}},()=>{if(e()&&$t)try{$t--,!$t&&Er().classList.remove($r)}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:Mc,create:zc}=X("overlay"),Lc=zc({props:{...xc},emits:["click","update:visible"],setup(e,{emit:n}){const[l,o]=qc(()=>e.lockScroll),a=t.computed(()=>({[Mc]:!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 Pc(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=_(Lc,[["render",Pc]]),{componentName:Fc,create:Rc}=X("popup"),Oc=Rc(Ic(Fc,{FoxOverLay:at,Close:ne.Close}));function vc(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=_(Oc,[["render",vc]]),Dr=10;function Kc(e,n){return e>n&&e>Dr?"horizontal":n>e&&n>Dr?"vertical":""}function Ue(){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),f=t.ref(""),m=()=>f.value==="vertical",h=()=>f.value==="horizontal",y=()=>{s.value=0,i.value=0,c.value=0,u.value=0,f.value="",l.value=0};return{move:S=>{const d=S.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,f.value||(f.value=Kc(c.value,u.value))},start:S=>{y(),e.value=S.touches[0].clientX,n.value=S.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:f,isVertical:m,isHorizontal:h}}const Ir={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}},qo={...Ge,...Ir,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let qr=36;function Uc(){return qr}function Hc(e){qr=e}function Le(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function xo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function jc(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 xr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Wc=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=Xe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function Yc(){const e=t.getCurrentInstance();return new Wc(e.proxy)}function Mr(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 Xc(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(f=>{if(r==="text")return Le(e,f)===i;if(r==="value"){let m=rt(e,f);return m==null&&(m=Le(e,f)),m===i}else if(r==="item")return Mr(e,f,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(m=>{if(r==="text")return Le(e,m)===c;if(r==="value"){let h=rt(e,m);return h==null&&(h=Le(e,m)),h===c}else if(r==="item")return Mr(e,m,c)});if(u==-1)break;a.push(u);const f=xo(e,s[u]);if(!Array.isArray(f))break;s=f}}return a}function zr(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],f=Le(e,u);if(a.texts.push(f),a.items.push(u),r==="text")a.values.push(f);else if(r==="value"){let m=rt(e,u);m==null&&(m=f),a.values.push(m)}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],f=Object.assign({},u);f.children=null;const m=Le(e,u);if(a.texts.push(m),a.items.push(f),r==="text")a.values.push(m);else if(r==="value"){let h=rt(e,u);h==null&&(h=m),a.values.push(h)}else a.values.push(f);if(!Array.isArray(u.children))break;s=u.children}}return a}function Lr(e){return{text:e,value:e}}const Qc=15,Gc=300,Zc=200,{create:Jc}=X("picker-column");function _c(e){e.stopPropagation()}function ed(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&_c(e)}const td=Jc({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},...Ir},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const l=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${he(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=V=>V>=m.currIndex+8||V<=m.currIndex-8,i=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${m.deg})`,top:`${r.value}px`})),c=V=>`transform: rotate3d(1, 0, 0, ${-m.rotation*V}deg) translate3d(0px, 0px, 104px)`,u=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${m.scrollDistance+r.value}px, 0)`})),f=t.ref(null),m=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=V=>Le(e,V),g=V=>rt(e,V),k=Ue(),S=()=>{m.transitionEndTrigger&&(m.transitionEndTrigger(),m.transitionEndTrigger=null)},d=(V,q=!1,N=!1)=>{if(m.currIndex=V,q){const T=()=>{m.moving=!1,n("update:modelValue",V),n("change",V)};N?m.transitionEndTrigger=T:T()}},p=(V,q,N)=>{let T=V+m.startDistance;if(q==="end"){const L=-(h.value.length-1)*e.itemHeight;T<L&&(T=L,(!N||N<=0)&&(N=e.swipeDuration)),T>0&&(T=0,(!N||N<=0)&&(N=e.swipeDuration));let F=Math.abs(Math.round(-T/e.itemHeight));const D=-F*e.itemHeight,I=`${(F+1)*m.rotation}deg`,x=N?N>0:!1;d(F,!0,x),b(D,q,N,I)}else{let L=(-T/e.itemHeight+1)*m.rotation;const F=(h.value.length+1)*m.rotation,D=0;if(L=Math.min(Math.max(L,D),F),e.threeDimensional&&(L<D||L>F))return;b(T,null,void 0,`${L}deg`)}},b=(V=0,q,N=Zc,T)=>{q==="end"?m.scrollTime=N:m.scrollTime=0,m.deg=T,m.scrollDistance=V},C=(V,q)=>(V=Math.abs(V/q)/.003*(V<0?-1:1),V),B=V=>{e.readonly||(m.startDistance=m.scrollDistance,k.start(V),m.transitionEndTrigger=null)},A=V=>{e.readonly||(m.moving=!0,k.move(V),k.isVertical()&&(m.moving=!0,ed(V,!0)),p(k.deltaY.value,"",0))},E=()=>{if(e.readonly)return;const V=k.deltaY.value,q=k.duration.value;if(q<Gc&&Math.abs(V)>Qc){const T=C(V,q);p(T,"end",e.swipeDuration)}else p(V,"end",0)};return t.watch(()=>e.modelValue,V=>{if(m.currIndex!==V){m.currIndex=V;const q=-V*e.itemHeight;p(q)}}),t.onMounted(()=>{const V=-e.modelValue*e.itemHeight;p(V)}),{classes:l,styles:o,contentClasses:a,source:h,itemText:y,itemValue:g,...t.toRefs(m),roller:f,getItemText:Le,onTouchStart:B,onTouchMove:A,onTouchEnd:E,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:u,stopMomentum:S}}}),nd={key:1,class:"fox-picker__item-tile"};function od(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",nd,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Pr=_(td,[["render",od]]),{create:ld,componentName:ad,scope:rd}=X("picker"),sd=ld({components:{[Pr.name]:Pr,[de.name]:de},props:{...qo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:l,t:o}=re.useFoxI18n(rd),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Uc());t.watch(()=>e.visible,N=>{N&&s.value<=0&&setTimeout(()=>{if(r.value){const T=Ee(r.value);s.value=T.height,Hc(s.value)}},50)});const i=t.computed(()=>({[ad]:!0})),c=Yc(),u=t.ref("singleColumn");let f=t.ref([]);t.watch([()=>e.source,()=>e.params],async([N,T])=>{if(N){let L=await c.load("picker",N,T);if(L.length>0){let F=L[0];if(Array.isArray(F)){if(typeof F[0]=="string"){let D=L,I=[];D.forEach(x=>{let $=x.map(j=>Lr(j));I.push($)}),f.value=I}else f.value=L;u.value="multipleColumn"}else if(typeof F=="string"){let D=L,I=[],x=D.map($=>Lr($));I.push(x),f.value=I,u.value="singleColumn"}else{const D=xo(e,F);Array.isArray(D)?(u.value="cascade",f.value=[L]):(u.value="singleColumn",f.value=[L])}}else f.value=[]}},{immediate:!0});const m=t.ref([]),h=t.ref(e.modelValue),y=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>f.value],([N,T])=>{let L=Xc(e,N,T,u.value);if(!xe(L,g.value)){g.value=L;let F=zr(e,L,T,u.value);F&&(m.value=F.texts,n("update:text",m.value))}});const k=t.ref(e.visible);t.watch(()=>e.visible,N=>{k.value=N});const S=N=>{let T=xr(e,N);return Ve(T)?T.defaultIndex??0:0},d=N=>{if(e.readonly===!0)return!0;let T=xr(e,N);return Ve(T)?T.readonly??!1:!1},p=(N,T)=>{let L=g.value;L[N]=T;for(let D=0;D<N;D++)L[D]==null&&(L[D]=S(D));if(u.value==="cascade")for(let D=N+1;D<C.value.length;D++){let I=S(D);D<L.length?L[D]=I:L.push(I)}else for(let D=L.length;D<C.value.length;D++){let I=S(D);L.push(I)}g.value=L;let F=zr(e,L,f.value,u.value);F&&(m.value=F.texts,h.value=F.values,y.value=F.items)},b=N=>N<g.value.length?g.value[N]:S(N),C=t.computed(()=>{if(f.value.length==0)return[];if(u.value=="singleColumn"||u.value=="multipleColumn")return f.value;let N=[],T=0,L=f.value[0],F=0;for(;;){let D=L.map($=>{let j=Object.assign({},$);return jc(e,j,null),j});N.push(D),T>=g.value.length?F=0:F=g.value[T],(F<0||F>=L.length)&&(F=0);let I=L[F];const x=xo(e,I);if(!Array.isArray(x))break;L=x,T++}return N}),B=t.computed(()=>he(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:C,dataType:u,show:k,itemHeight:s,top:B,isReadonly:d,getIndex:b,change:(N,T)=>{p(N,T)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let N=f.value.length-1;for(;N>=0&&!(g.value[N]===null||g.value[N]===void 0);N--);if(N>=0&&p(N,0),u.value==="singleColumn"){let T=h.value.length>0?h.value[0]:"",L=y.value.length>0?y.value[0]:null;e.readonly||(n("update:modelValue",T),n("update:text",m.value),n("change",T,L)),n("confirm",T)}else e.readonly||(n("update:modelValue",h.value),n("update:text",m.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)}}}}),id={class:"fox-picker__bar"},cd={class:"fox-picker__title"},dd={class:"fox-picker__bar__action"},ud={class:"fox-picker__column"};function fd(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",id,[t.createElementVNode("view",cd,t.toDisplayString(e.title),1),t.createElementVNode("view",dd,[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",ud,[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":f=>e.change(u,f),"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 pt=_(sd,[["render",fd]]);function md(e,n,l,o,a,r,s=!0){return{props:{...ue,...fe,...qo,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)),f=Te(t.computed(()=>i.readonly)),{emitEvent:m}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),y=h(i,["placeholder"]),g=t.ref(!1),k=De(i,"modelValue"),S=t.ref([]),d=t.computed(()=>Array.isArray(S.value)?S.value.join(i.separator):S.value),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:u.value})),C=Ae(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const W={};return C.value&&(W["text-align"]=C.value),W}),A=t.ref(!1),E=()=>{A.value=!0},V=W=>{A.value=W},q=W=>{k.value=W,m("update:modelValue",W)},N=(W,z)=>{m("change",W,z)},T=W=>{let v=W.target.value;g.value=!0,m("focus",v,W)},L=W=>{setTimeout(()=>{g.value=!1},0);let v=W.target.value;i.maxLength&&v.length>Number(i.maxLength)&&(v=v.slice(0,Number(i.maxLength))),m("blur",v,W)},F=W=>{S.value=W,Array.isArray(W)&&W.length===0?m("update:text",W[0]):m("update:text",W)},D=t.computed(()=>({[`${p}__append`]:!0})),I=t.computed(()=>ye(i.unit)>0),x=t.computed(()=>ye(i.unit)>0&&!g.value),$=t.computed(()=>({hidden:!x.value})),j=W=>{k.value="",m("update:modelValue","",W),m("change","",W),m("clear","")},O=t.computed(()=>i.clearable&&!u.value&&!f.value),Q=t.computed(()=>ye(k.value)>0&&g.value),H=W=>{Q.value?j(W):E()},R=t.computed(()=>Q.value&&O.value?o:a),P=t.computed(()=>({action:!0}));return()=>{const W={class:b.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:E,onFocus:T,onBlur:L};s&&(W.disabled=!0);const z=[],v=t.h("input",W);z.push(v);const M=[],U={class:["action-icon"]},Y=t.h(R.value,U),J={class:P.value,onClick:H},K=t.h("view",J,{default:()=>[Y]});if(M.push(K),I.value){const be=t.h("view",{class:$.value},[i.unit]);M.push(be)}const Z={class:D.value},G=t.h("view",Z,{default:()=>M});z.push(G);const te={default:()=>z};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=ge(i,qo);ee.disabled=!1,ee.readonly=u.value||f.value,ee.visible=A.value,ee["onUpdate:visible"]=V,ee.modelValue=k.value,ee["onUpdate:modelValue"]=q,ee.text=S.value,ee["onUpdate:text"]=F,ee.onChange=N;const le=t.h(r,ee);te.hide=()=>[le];const ae=ge(i,fe,ue);return t.h(l,ae,te)}}}}const{componentName:pd,create:hd,scope:gd}=X("picker-item"),Mo=hd(md(pd,gd,Ce,ne.CircleClose,ne.ArrowRight,pt,!1)),Nn=(e,n,l)=>e.map(o=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:c,[s]:u,...f}=o,m={loading:!1,...f,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:u,_parent:n};return m.children&&m.children.length&&(m.children=Nn(m.children,m,l)),m}),Fr=(e,n)=>{let l=0,o;for(;(o=e[l++])&&n(o)!==!0;)o.children&&o.children.length&&Fr(o.children,n)},yd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},kd=(e,n)=>{const l={...yd,...n||{}},{topId:o,idKey:a,pidKey:r,sortKey:s}=l;let i=[],c={};return e.forEach(u=>{u={...u};const{[a]:f,[r]:m}=u,h=c[m]=c[m]||[];!i.length&&m===o&&(i=h),h.push(u),u.children=c[f]||(c[f]=[])}),s&&Object.keys(c).forEach(u=>{c[u].length>1&&c[u].sort((f,m)=>f[s]-m[s])}),c=null,i},bd=/scroll|auto|overlay/i,Rr=window;function Sd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function zo(e,n=Rr){let l=e;for(;l&&l!==n&&Sd(l);){const{overflowY:o}=window.getComputedStyle(l);if(bd.test(o))return l;l=l.parentNode}return n}function Or(e,n=Rr){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=zo(e.value,n))}),l}const{create:Cd}=X("sticky"),wd=Cd({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 f=Ee(l),m=o.value,h=Ee(m),y=Ee(u);a.height=f.height;const g=()=>{let S=!1;if(e.position==="top")S=u?r.value>f.top&&y.bottom>0:r.value>f.top;else{const d=document.documentElement.clientHeight;S=u?y.bottom>0&&d-r.value-h.height>y.top:d-r.value<f.bottom}return S},k=()=>{if(u)if(e.position==="top"){const S=y.bottom-r.value-h.height;return S<0?S:0}else{const S=document.documentElement.clientHeight,d=y.bottom-(S-r.value);return d<0?d:0}return 0};a.transform=k(),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 Nd(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 Et=_(wd,[["render",Nd]]),Bd=(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=Ue();let u="";const f=(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,f(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 Ad{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Vd}=X("tabs"),Td=Vd({components:{[Et.name]:Et,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=N=>{N.forEach((T,L)=>{let F=T.type;if(F=F.name||F,F=="fox-tab-pane"){let D=new Ad;if(T.props?.title||T.props?.["pane-key"]||T.props?.paneKey){let I=tt(T.props?.["pane-key"]),x=I=="number"||I=="string"?String(T.props?.["pane-key"]):null,$=tt(T.props?.paneKey),j=$=="number"||$=="string"?String(T.props?.paneKey):null;D.title=T.props?.title,D.paneKey=x||j||String(L),D.disabled=T.props?.disabled}r.value.push(D)}else{if(T.children==" ")return;Array.isArray(T.children)&&s(T.children)}})},i=t.ref(e.modelValue||0),c=N=>{let T=r.value.findIndex(L=>L.paneKey==N);r.value.length==0||T==-1||(i.value=T)},u=t.computed(()=>e.titleScroll&&e.direction==="vertical"),f=t.ref(),m=t.ref([]),h=N=>{const T=f.value,L=m.value;if(!T||!L||!L[i.value])return;const F=L[i.value];let D=0;e.direction==="vertical"?D=F.offsetTop-T.offsetTop+10-(T.offsetHeight-F.offsetHeight)/2:D=F.offsetLeft-(T.offsetWidth-F.offsetWidth)/2,y(T,D,N?0:.3,e.direction)},y=(N,T,L,F)=>{let D=0;const I=F==="horizontal"?N.scrollLeft:N.scrollTop,x=L===0?1:Math.round(L*1e3/16);function $(){F==="horizontal"?N.scrollLeft+=(T-I)/x:N.scrollTop+=(T-I)/x,++D<x&&Fe($)}$()},g=(N=l.default?.())=>{r.value=[],N=N?.filter(T=>typeof T.children!="string"),N&&N.length&&s(N),c(e.modelValue),t.nextTick(()=>{h()})},k=N=>{a=N.fixed};t.watch(()=>l.default?.(),N=>{g(N)});const S=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,N=>{if(c(N),h(),a){let T=Ee(o.value).top+S(),L=Math.ceil(T-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:N=>{n("update:modelValue",N.paneKey),n("change",N)},tabChange:(N,T)=>{n("click",N),!(N.disabled||i.value==T)&&(i.value=T,d.updateValue(N))},setTabItemRef:(N,T)=>{m.value[T]=N}},{tabsContentRef:p,touchState:b,touchMethods:C}=Bd(e,d),B=t.computed(()=>{let N=i.value*100;b.moving&&(N+=b.offset);let T={transform:e.direction=="horizontal"?`translate3d(-${N}%, 0, 0)`:`translate3d( 0,-${N}%, 0)`,transitionDuration:b.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(T={}),T}),A=t.computed(()=>({background:e.background})),E=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),V=t.computed(()=>{if(!e.titleGutter)return{};const N=me(e.titleGutter);return e.direction==="vertical"?{marginTop:N,marginBottom:N}:{marginLeft:N,marginRight:N}}),q=t.computed(()=>l.fixedTitle);return{navRef:f,tabsContentRef:p,titles:r,contentStyle:B,tabsNavStyle:A,titleStyle:V,tabsActiveStyle:E,container:o,getScrollY:u,onStickyScroll:k,...d,...C,hasFixedTitle:q}}}),$d=["onClick"],Ed={key:0,class:"fox-tabs__titles-fixed-item"},Dd=["onClick"],Id={key:0,class:"fox-tabs__titles-fixed-item"};function qd(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:f=>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,$d))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Ed,[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:f=>e.tabChange(c,u),key:c.paneKey,ref_for:!0,ref:f=>e.setTabItemRef(f,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,Dd))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Id,[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 Dt=_(Td,[["render",qd]]),{create:xd}=X("tab-pane"),Md=xd({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 zd(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 It=_(Md,[["render",zd]]);class vr{nodes;config;constructor(n,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=Nn(n,null,this.config)}updateChildren(n,l){l?l.children=Nn(n,l,this.config):this.nodes=Nn(n,null,this.config)}getNodeByValue(n){let l;return Fr(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:Ld,scope:Pd}=X("cascader-pane"),Fd=Ld({components:{Loading:ne.Loading,Checklist:ne.Checklist,[Dt.name]:Dt,[It.name]:It},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 vr([],{})),i=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),u=new Map;let f;const m=async()=>{u.clear(),i.value=[],o.value=0,a.value=!1,f=null;let{options:d}=e;l.value.convertConfig&&(d=kd(d,l.value.convertConfig)),s.value=new vr(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 b=s.value.nodes.find(C=>C.value===d[0]);if(b){p=[b.value],a.value=!0;const C=await d.slice(1).reduce(async(B,A)=>{const E=await B;await y(E);const V=E?.children?.find(q=>q.value===A);return V&&p.push(A),Promise.resolve(V)},Promise.resolve(b));await y(C),a.value=!1}}p.length&&d===e.modelValue&&s.value.getPathNodesByValue(p).map((C,B)=>{o.value=B,S.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 b=u.get(d);b||(b=new Promise(B=>{l.value.lazyLoad?.(d,B)}),u.set(d,b));const C=await b;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(b=>b.value);r.value=p,n("change",p,d),n("update:modelValue",p,d)},{t:k}=re.useFoxI18n(Pd),S={async handleNode(d,p){const{disabled:b,loading:C}=d;if(!(!p&&b||!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 B=i.value.map(A=>A.selectedNode);g(B),n("pathChange",B)}return}if(s.value.hasChildren(d,c.value)){const B=d.level+1;if(i.value[o.value].selectedNode=d,i.value=i.value.slice(0,B),i.value.push({nodes:d.children||[],selectedNode:null}),o.value=B,!p){const A=i.value.map(E=>E.selectedNode);n("pathChange",A)}return}f=d,!C&&(await y(d),f===d&&(i.value[o.value].selectedNode=d,S.handleNode(d,p)))}},handleTabClick(d){f=null,o.value=Number(d.paneKey)},formatTabTitle(d){return d.selectedNode?d.selectedNode.text:k("select")},isSelected(d,p){return d.selectedNode&&d.selectedNode.value===p.value}};return t.watch([l,()=>e.options],()=>{m()},{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,...S}}}),Rd={role:"menu",class:"fox-cascader__pane"},Od=["aria-checked","aria-disabled","onClick"],vd={class:"fox-cascader__item__title"},Kd=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Ud(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]=f=>e.tabsCursor=f),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,(f,m)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(f),key:m},{default:t.withCtx(()=>[t.createElementVNode("view",Rd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.nodes,h=>(t.openBlock(),t.createElementBlock("view",{key:h.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(f,h),disabled:h.disabled}]),"aria-checked":e.isSelected(f,h),"aria-disabled":h.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(h,!1)},[t.createElementVNode("view",vd,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,Od))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Kd]),_:1}))]),_:1},8,["modelValue","onClick"])}const Hd=_(Fd,[["render",Ud]]),{create:jd}=X("cascader"),Wd=jd({components:{FoxCascaderPane:Hd,FoxPopup:de},props:{...Ge,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}}}),Yd=["innerHTML"];function Xd(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,Yd)):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 Bn=_(Wd,[["render",Xd]]);function qt(e,n){const l=e.textKey??"text";return n[l]??""}function xt(e,n){const l=e.valueKey??"value";return n[l]}function Kr(e,n){const l=e.childrenKey??"children";return n[l]}function An(e,n=[]){const l={texts:[],values:[]};for(let o=0;o<n.length;o++){const a=n[o],r=qt(e,a),s=xt(e,a);l.texts.push(r),l.values.push(s??"")}return l}function Ur(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=xt(e,n[s])??"",u={[e.textKey]:r,[e.valueKey]:c};a.push(u);const f=Kr(e,n[s]);Array.isArray(f)&&Ur(e,f,l,o+1,a);return}}function Hr(e,n,l,o,a=[]){if(!l)return;const r=l[o];for(let s=0;s<n.length;s++)if(xt(e,n[s])===r){const c=qt(e,n[s])??"",u={[e.textKey]:c,[e.valueKey]:r};a.push(u);const f=Kr(e,n[s]);Array.isArray(f)&&Hr(e,f,l,o+1,a);return}}function Lo(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=xt(e,n[o]),i=xt(e,l[o]);if(s!==i)return!1}return!0}let Qd=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=Xe(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Ve(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(n,l))}};function Gd(){const e=t.getCurrentInstance();return new Qd(e.proxy)}function Zd(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)),f=Te(t.computed(()=>i.readonly)),{emitEvent:m}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),y=h(i,["placeholder"]),g=t.ref(!1),k=Gd(),S=t.ref([]);t.watch([()=>i.source,()=>i.params],async([v,M])=>{v&&(S.value=await k.load(v,M))},{immediate:!0});const d=t.ref([]),p=t.computed(()=>Array.isArray(d.value)?d.value.join(" "):d.value),b=t.ref([]),C=t.ref([]);t.watch([()=>i.modelValue],async([v])=>{if(i.lazy===!0){C.value.length==0&&(d.value=Array.isArray(v)?v:[],b.value=Array.isArray(v)?v:[]);return}if(i.valueType==="item"){let M=v;if(!Lo(i,M,C.value)){C.value=M;let U=An(i,M);d.value=U.texts,b.value=U.values}}else if(i.valueType==="text"){let M=v,U=[];if(Ur(i,S.value,M,0,U),!Lo(i,U,C.value)){C.value=U;let Y=An(i,U);M.value=Y.texts,b.value=Y.values}}else{let M=[];if(Hr(i,S.value,v,0,M),!Lo(i,M,C.value)){C.value=M;let U=An(i,M);d.value=U.texts,b.value=U.values}}},{immediate:!0});const B="fox-input-item",A=t.computed(()=>({[B]:!0,[`${B}__disabled`]:u.value})),E=Ae(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>{const v={};return E.value&&(v["text-align"]=E.value),v}),q=t.ref(!1),N=()=>{u.value===!0||f.value===!0||(q.value=!0)},T=v=>{q.value=v},L=(v,M)=>{let U=M.map(J=>{if(J==null)return J;let K={...J};return Reflect.deleteProperty(K,"text"),K[i.textKey]=J.text??"",Reflect.deleteProperty(K,"value"),K[i.valueKey]=J.value??"",K});C.value=U;let Y=An(i,U);d.value=Y.texts,b.value=Y.values,i.valueType==="text"?(m("change",d.value,U),m("update:modelValue",d.value)):i.valueType==="item"?(m("change",U,U),m("update:modelValue",U)):(m("change",b.value,U),m("update:modelValue",b.value)),m("update:pathNodes",U)},F=v=>{let M=v.map(U=>{if(U==null)return U;let Y={...U};return Reflect.deleteProperty(Y,"text"),Y[i.textKey]=U.text??"",Reflect.deleteProperty(Y,"value"),Y[i.valueKey]=U.value??"",Y});m("pathChange",M)},D=v=>{g.value=!0,m("focus",b.value,v)},I=v=>{setTimeout(()=>{g.value=!1},0),m("blur",b.value,v)},x=t.computed(()=>({[`${B}__append`]:!0})),$=t.computed(()=>ye(i.unit)>0),j=t.computed(()=>ye(i.unit)>0&&!g.value),O=t.computed(()=>({hidden:!j.value})),Q=v=>{C.value=[],d.value=[],b.value=[],m("update:modelValue",[]),m("change",[],v),m("clear",[]),m("update:pathNodes",[])},H=t.computed(()=>i.clearable&&!u.value&&!f.value),R=t.computed(()=>{let v=b.value&&b.value.length>0;return i.clearable&&v&&g.value}),P=v=>{R.value?Q(v):N()},W=t.computed(()=>R.value&&H.value?o:a),z=t.computed(()=>({action:!0}));return()=>{const v={class:A.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:N,onFocus:D,onBlur:I};s&&(v.disabled=!0);const M=[],U=t.h("input",v);M.push(U);const Y=[],J={class:["action-icon"]},K=t.h(W.value,J),Z={class:z.value,onClick:P},G=t.h("view",Z,{default:()=>[K]});if(Y.push(G),$.value){const it=t.h("view",{class:O.value},[i.unit]);Y.push(it)}const te={class:x.value},ee=t.h("view",te,{default:()=>Y});M.push(ee);const le={default:()=>M};le.label=c.slots.default,le.prepend=c.slots.prepend,le.append=c.slots.append,le.fixedPreTip=c.slots.fixedPreTip,le.fixedTip=c.slots.fixedTip;let ae={};ae.visible=q.value,ae["onUpdate:visible"]=T,ae.modelValue=b.value,ae.onChange=L,ae.onPathChange=F,ae.options=S.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);le.hide=()=>[Ie];const be=ge(i,fe,ue);return t.h(l,be,le)}}}}const{componentName:Jd,create:_d,scope:eu}=X("cascader-item"),Po=_d(Zd(Jd,eu,Ce,ne.CircleClose,ne.ArrowRight,Bn,!1));var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){var l=1e3,o=6e4,a=36e5,r="millisecond",s="second",i="minute",c="hour",u="day",f="week",m="month",h="quarter",y="year",g="date",k="Invalid Date",S=/^(\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("_")},b=function(F,D,I){var x=String(F);return!x||x.length>=D?F:""+Array(D+1-x.length).join(I)+F},C={s:b,z:function(F){var D=-F.utcOffset(),I=Math.abs(D),x=Math.floor(I/60),$=I%60;return(D<=0?"+":"-")+b(x,2,"0")+":"+b($,2,"0")},m:function F(D,I){if(D.date()<I.date())return-F(I,D);var x=12*(I.year()-D.year())+(I.month()-D.month()),$=D.clone().add(x,m),j=I-$<0,O=D.clone().add(x+(j?-1:1),m);return+(-(x+(I-$)/(j?$-O:O-$))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:m,y,w:f,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}},B="en",A={};A[B]=p;var E=function(F){return F instanceof T},V=function F(D,I,x){var $;if(!D)return B;if(typeof D=="string"){var j=D.toLowerCase();A[j]&&($=j),I&&(A[j]=I,$=j);var O=D.split("-");if(!$&&O.length>1)return F(O[0])}else{var Q=D.name;A[Q]=D,$=Q}return!x&&$&&(B=$),$||!x&&B},q=function(F,D){if(E(F))return F.clone();var I=typeof D=="object"?D:{};return I.date=F,I.args=arguments,new T(I)},N=C;N.l=V,N.i=E,N.w=function(F,D){return q(F,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var T=function(){function F(I){this.$L=V(I.locale,null,!0),this.parse(I)}var D=F.prototype;return D.parse=function(I){this.$d=function(x){var $=x.date,j=x.utc;if($===null)return new Date(NaN);if(N.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var O=$.match(S);if(O){var Q=O[2]-1||0,H=(O[7]||"0").substring(0,3);return j?new Date(Date.UTC(O[1],Q,O[3]||1,O[4]||0,O[5]||0,O[6]||0,H)):new Date(O[1],Q,O[3]||1,O[4]||0,O[5]||0,O[6]||0,H)}}return new Date($)}(I),this.$x=I.x||{},this.init()},D.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},D.$utils=function(){return N},D.isValid=function(){return this.$d.toString()!==k},D.isSame=function(I,x){var $=q(I);return this.startOf(x)<=$&&$<=this.endOf(x)},D.isAfter=function(I,x){return q(I)<this.startOf(x)},D.isBefore=function(I,x){return this.endOf(x)<q(I)},D.$g=function(I,x,$){return N.u(I)?this[x]:this.set($,I)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(I,x){var $=this,j=!!N.u(x)||x,O=N.p(I),Q=function(U,Y){var J=N.w($.$u?Date.UTC($.$y,Y,U):new Date($.$y,Y,U),$);return j?J:J.endOf(u)},H=function(U,Y){return N.w($.toDate()[U].apply($.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(Y)),$)},R=this.$W,P=this.$M,W=this.$D,z="set"+(this.$u?"UTC":"");switch(O){case y:return j?Q(1,0):Q(31,11);case m:return j?Q(1,P):Q(0,P+1);case f:var v=this.$locale().weekStart||0,M=(R<v?R+7:R)-v;return Q(j?W-M:W+(6-M),P);case u:case g:return H(z+"Hours",0);case c:return H(z+"Minutes",1);case i:return H(z+"Seconds",2);case s:return H(z+"Milliseconds",3);default:return this.clone()}},D.endOf=function(I){return this.startOf(I,!1)},D.$set=function(I,x){var $,j=N.p(I),O="set"+(this.$u?"UTC":""),Q=($={},$[u]=O+"Date",$[g]=O+"Date",$[m]=O+"Month",$[y]=O+"FullYear",$[c]=O+"Hours",$[i]=O+"Minutes",$[s]=O+"Seconds",$[r]=O+"Milliseconds",$)[j],H=j===u?this.$D+(x-this.$W):x;if(j===m||j===y){var R=this.clone().set(g,1);R.$d[Q](H),R.init(),this.$d=R.set(g,Math.min(this.$D,R.daysInMonth())).$d}else Q&&this.$d[Q](H);return this.init(),this},D.set=function(I,x){return this.clone().$set(I,x)},D.get=function(I){return this[N.p(I)]()},D.add=function(I,x){var $,j=this;I=Number(I);var O=N.p(x),Q=function(P){var W=q(j);return N.w(W.date(W.date()+Math.round(P*I)),j)};if(O===m)return this.set(m,this.$M+I);if(O===y)return this.set(y,this.$y+I);if(O===u)return Q(1);if(O===f)return Q(7);var H=($={},$[i]=o,$[c]=a,$[s]=l,$)[O]||1,R=this.$d.getTime()+I*H;return N.w(R,this)},D.subtract=function(I,x){return this.add(-1*I,x)},D.format=function(I){var x=this,$=this.$locale();if(!this.isValid())return $.invalidDate||k;var j=I||"YYYY-MM-DDTHH:mm:ssZ",O=N.z(this),Q=this.$H,H=this.$m,R=this.$M,P=$.weekdays,W=$.months,z=function(Y,J,K,Z){return Y&&(Y[J]||Y(x,j))||K[J].slice(0,Z)},v=function(Y){return N.s(Q%12||12,Y,"0")},M=$.meridiem||function(Y,J,K){var Z=Y<12?"AM":"PM";return K?Z.toLowerCase():Z},U={YY:String(this.$y).slice(-2),YYYY:this.$y,M:R+1,MM:N.s(R+1,2,"0"),MMM:z($.monthsShort,R,W,3),MMMM:z(W,R),D:this.$D,DD:N.s(this.$D,2,"0"),d:String(this.$W),dd:z($.weekdaysMin,this.$W,P,2),ddd:z($.weekdaysShort,this.$W,P,3),dddd:P[this.$W],H:String(Q),HH:N.s(Q,2,"0"),h:v(1),hh:v(2),a:M(Q,H,!0),A:M(Q,H,!1),m:String(H),mm:N.s(H,2,"0"),s:String(this.$s),ss:N.s(this.$s,2,"0"),SSS:N.s(this.$ms,3,"0"),Z:O};return j.replace(d,function(Y,J){return J||U[Y]||O.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(I,x,$){var j,O=N.p(x),Q=q(I),H=(Q.utcOffset()-this.utcOffset())*o,R=this-Q,P=N.m(this,Q);return P=(j={},j[y]=P/12,j[m]=P,j[h]=P/3,j[f]=(R-H)/6048e5,j[u]=(R-H)/864e5,j[c]=R/a,j[i]=R/o,j[s]=R/l,j)[O]||R,$?P:N.a(P)},D.daysInMonth=function(){return this.endOf(m).$D},D.$locale=function(){return A[this.$L]},D.locale=function(I,x){if(!I)return this.$L;var $=this.clone(),j=V(I,x,!0);return j&&($.$L=j),$},D.clone=function(){return N.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()},F}(),L=T.prototype;return q.prototype=L,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",u],["$M",m],["$y",y],["$D",g]].forEach(function(F){L[F[1]]=function(D){return this.$g(D,F[0],F[1])}}),q.extend=function(F,D){return F.$i||(F(D,T,q),F.$i=!0),q},q.locale=V,q.isDayjs=E,q.unix=function(F){return q(1e3*F)},q.en=A[B],q.Ls=A,q.p={},q})})(jr);var tu=jr.exports;const Pe=je(tu);var Wr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(k){return(k=+k)+(k>68?1900:2e3)},u=function(k){return function(S){this[k]=+S}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var d=S.match(/([+-]|\d\d)/g),p=60*d[1]+(+d[2]||0);return p===0?0:d[0]==="+"?-p:p}(k)}],m=function(k){var S=i[k];return S&&(S.indexOf?S:S.s.concat(S.f))},h=function(k,S){var d,p=i.meridiem;if(p){for(var b=1;b<=24;b+=1)if(k.indexOf(p(b,0,S))>-1){d=b>12;break}}else d=k===(S?"pm":"PM");return d},y={A:[s,function(k){this.afternoon=h(k,!1)}],a:[s,function(k){this.afternoon=h(k,!0)}],S:[/\d/,function(k){this.milliseconds=100*+k}],SS:[a,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],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(k){var S=i.ordinal,d=k.match(/\d+/);if(this.day=d[0],S)for(var p=1;p<=31;p+=1)S(p).replace(/\[|\]/g,"")===k&&(this.day=p)}],M:[r,u("month")],MM:[a,u("month")],MMM:[s,function(k){var S=m("months"),d=(m("monthsShort")||S.map(function(p){return p.slice(0,3)})).indexOf(k)+1;if(d<1)throw new Error;this.month=d%12||d}],MMMM:[s,function(k){var S=m("months").indexOf(k)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(k){this.year=c(k)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(k){var S,d;S=k,d=i&&i.formats;for(var p=(k=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(q,N,T){var L=T&&T.toUpperCase();return N||d[T]||l[T]||d[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,D,I){return D||I.slice(1)})})).match(o),b=p.length,C=0;C<b;C+=1){var B=p[C],A=y[B],E=A&&A[0],V=A&&A[1];p[C]=V?{regex:E,parser:V}:B.replace(/^\[|\]$/g,"")}return function(q){for(var N={},T=0,L=0;T<b;T+=1){var F=p[T];if(typeof F=="string")L+=F.length;else{var D=F.regex,I=F.parser,x=q.slice(L),$=D.exec(x)[0];I.call(N,$),q=q.replace($,"")}}return function(j){var O=j.afternoon;if(O!==void 0){var Q=j.hours;O?Q<12&&(j.hours+=12):Q===12&&(j.hours=0),delete j.afternoon}}(N),N}}return function(k,S,d){d.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(c=k.parseTwoDigitYear);var p=S.prototype,b=p.parse;p.parse=function(C){var B=C.date,A=C.utc,E=C.args;this.$u=A;var V=E[1];if(typeof V=="string"){var q=E[2]===!0,N=E[3]===!0,T=q||N,L=E[2];N&&(L=E[2]),i=this.$locale(),!q&&L&&(i=d.Ls[L]),this.$d=function(x,$,j){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*x);var O=g($)(x),Q=O.year,H=O.month,R=O.day,P=O.hours,W=O.minutes,z=O.seconds,v=O.milliseconds,M=O.zone,U=new Date,Y=R||(Q||H?1:U.getDate()),J=Q||U.getFullYear(),K=0;Q&&!H||(K=H>0?H-1:U.getMonth());var Z=P||0,G=W||0,te=z||0,ee=v||0;return M?new Date(Date.UTC(J,K,Y,Z,G,te,ee+60*M.offset*1e3)):j?new Date(Date.UTC(J,K,Y,Z,G,te,ee)):new Date(J,K,Y,Z,G,te,ee)}catch{return new Date("")}}(B,V,A),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),T&&B!=this.format(V)&&(this.$d=new Date("")),i={}}else if(V instanceof Array)for(var F=V.length,D=1;D<=F;D+=1){E[1]=V[D-1];var I=d.apply(this,E);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}D===F&&(this.$d=new Date(""))}else b.call(this,C)}}})})(Wr);var nu=Wr.exports;const ou=je(nu);var Yr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,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 f=this.$utils(),m=(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 f.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return f.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return f.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)(m)}}})})(Yr);var lu=Yr.exports;const au=je(lu);var Xr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o,a){var r=o.prototype,s=function(m){return m&&(m.indexOf?m:m.s)},i=function(m,h,y,g,k){var S=m.name?m:m.$locale(),d=s(S[h]),p=s(S[y]),b=d||p.map(function(B){return B.slice(0,g)});if(!k)return b;var C=S.weekStart;return b.map(function(B,A){return b[(A+(C||0))%7]})},c=function(){return a.Ls[a.locale()]},u=function(m,h){return m.formats[h]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,k,S){return k||S.slice(1)})}(m.formats[h.toUpperCase()])},f=function(){var m=this;return{months:function(h){return h?h.format("MMMM"):i(m,"months")},monthsShort:function(h){return h?h.format("MMM"):i(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(m,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(m,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return u(m.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return f.bind(this)()},a.localeData=function(){var m=c();return{firstDayOfWeek:function(){return m.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(m,h)},meridiem:m.meridiem,ordinal:m.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(m){return i(c(),"weekdays",null,null,m)},a.weekdaysShort=function(m){return i(c(),"weekdaysShort","weekdays",3,m)},a.weekdaysMin=function(m){return i(c(),"weekdaysMin","weekdays",2,m)}}})})(Xr);var ru=Xr.exports;const su=je(ru);var Qr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,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 f=s(this).startOf(o).add(1,o).date(u),m=s(this).endOf(l);if(f.isBefore(m))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)}}})})(Qr);var iu=Qr.exports;const cu=je(iu);var Gr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o){o.prototype.weekYear=function(){var a=this.month(),r=this.week(),s=this.year();return r===1&&a===11?s+1:a===0&&r>=52?s-1:s}}})})(Gr);var du=Gr.exports;const uu=je(du);var Zr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,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")}}})})(Zr);var fu=Zr.exports;const mu=je(fu);var Jr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o){o.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(Jr);var pu=Jr.exports;const hu=je(pu);var _r={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(He,function(){return function(l,o){o.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(_r);var gu=_r.exports;const yu=je(gu);Pe.extend(su),Pe.extend(au),Pe.extend(ou),Pe.extend(cu),Pe.extend(uu),Pe.extend(mu),Pe.extend(hu),Pe.extend(yu);const oe={format(e,n){return Pe(e).format(n)},parser(e,n){return Pe(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,f=this.date2Str(new Date(c)),m=this.date2Str(new Date(u));return[f,m]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,u=r+(7-s)*i,f=this.date2Str(new Date(c)),m=this.date2Str(new Date(u));return[f,m]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=oe.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=oe.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,l){const o=new Date(new Date(n).setDate(n.getDate()+l)),a=e.getTime(),r=o.getTime(),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}},es=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"},Vn=(e,n,l)=>{let o;if(Re(n)?o=n:typeof n=="string"&&ye(n)>0?o=oe.parser(n,l):o=new Date,o.toString()==="Invalid Date")return null;let a=Math.max(o.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Ro=(e,n,l)=>{Re(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),oe.format(new Date(o),l)};let Oo={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(es-10,0,1),validator:Re},maxDate:{type:Date,default:()=>new Date(es+10,11,31),validator:Re},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:ku,scope:bu}=X("date-picker"),Su=ku({components:{[pt.name]:pt},props:{...Oo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(bu),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 b=e[`${d}Date`],C=b.getFullYear();let B=1,A=1,E=0,V=0;d==="max"&&(B=12,A=r(p.getFullYear(),p.getMonth()+1),E=23,V=59);const q=V;return p.getFullYear()===C&&(B=b.getMonth()+1,p.getMonth()+1===B&&(A=b.getDate(),p.getDate()===A&&(E=b.getHours(),p.getHours()===E&&(V=b.getMinutes())))),{[`${d}Year`]:C,[`${d}Month`]:B,[`${d}Date`]:A,[`${d}Hour`]:E,[`${d}Minute`]:V,[`${d}Seconds`]:q}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:d,maxDate:p,maxMonth:b,maxHour:C,maxMinute:B,maxSeconds:A}=s("max",h.value),{minYear:E,minDate:V,minMonth:q,minHour:N,minMinute:T,minSeconds:L}=s("min",h.value);let F=[{type:"year",range:[E,d]},{type:"month",range:[q,b]},{type:"day",range:[V,p]},{type:"hour",range:[N,C]},{type:"minute",range:[T,B]},{type:"seconds",range:[L,A]}];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,b)=>{if(!(p>d))return null;const C=[];for(;d<=p;)e.isShowChinese?C.push({text:d+o[b],value:d}):C.push({text:`${d}`,value:d}),b==="minute"?d+=e.minuteStep:d++;return C},u=t.computed(()=>{let d=[];return i.value.forEach(p=>{let b=c(p.range[0],p.range[1],p.type);b&&d.push(b)}),d}),f=(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,m=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=Vn(e,e.modelValue,e.valueFormat):d=Vn(e,p,Fo[e.type]):Re(p)?d=p:d=new Date,!!d&&(!h.value||d.getTime()!==h.value.getTime())){h.value=d;let b=[];i.value.forEach(C=>{let B=f(C.type,d);b.push(B)}),m.value=b}});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,b=h.value??new Date,C=new Date(b.getFullYear(),b.getMonth(),b.getDate(),p[0],p[1],p[2]);h.value=C}else if(e.type==="year-month"){let p=d,b=new Date(p[0],p[1]-1);h.value=b}else if(e.type==="month-day"){let p=d,b=h.value??new Date,C=new Date(b.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,b=h.value??new Date,C=new Date(b.getFullYear(),b.getMonth(),b.getDate(),p[0],p[1]);h.value=C}m.value=d};return{columns:u,dateIndexs:m,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 b=Ro(e,p,e.valueFormat);n("update:modelValue",b)}else n("update:modelValue",p);n("update:visible",!1),n("confirm",d)},onClear:()=>{n("clear")}}}});function Cu(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 Tn=_(Su,[["render",Cu]]);function wu(e){let n=e.format;if(!n){let l=e.type??"date";n=Fo[l]}return n}function Nu(e,n,l,o,a,r,s=!1){return{props:{...ue,...fe,...Oo,format:{type:String},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)),f=Te(t.computed(()=>i.readonly)),{emitEvent:m}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),y=h(i,["placeholder"]),g=t.ref(!1),S=De(i,"modelValue",P=>P==null?null:typeof P=="string"?P.length==0?null:i.valueFormat?Vn(i,P,i.valueFormat)??P:Vn(i,P,Fo[i.type])??P:Re(P)?P:null),d=t.computed(()=>{if(!S.value)return"";const P=wu(i);return Ro(i,S.value,P)}),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:u.value})),C=Ae(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const P={};return C.value&&(P["text-align"]=C.value),P}),A=t.ref(!1),E=()=>{A.value=!0},V=()=>{A.value=!1};c.expose({showPicker:E,hidePicker:V});const q=P=>{A.value=P},N=P=>{if(S.value=P,i.valueFormat){let W=Ro(i,P,i.valueFormat);m("update:modelValue",W,{}),m("change",W,{})}else m("update:modelValue",P,{}),m("change",P,{})},T=P=>{let z=P.target.value;g.value=!0,m("focus",z,P)},L=P=>{setTimeout(()=>{g.value=!1},0);let z=P.target.value;i.maxLength&&z.length>Number(i.maxLength)&&(z=z.slice(0,Number(i.maxLength))),m("blur",z,P)},F=t.computed(()=>({[`${p}__append`]:!0})),D=t.computed(()=>ye(i.unit)>0),I=t.computed(()=>ye(i.unit)>0&&!g.value),x=t.computed(()=>({hidden:!I.value})),$=P=>{S.value="",m("update:modelValue","",P),m("change","",P),m("clear",""),V()},j=t.computed(()=>i.clearable&&!u.value&&!f.value),O=t.computed(()=>{let P=ye(S.value)>0;return i.clearable&&P&&g.value}),Q=P=>{O.value?$(P):E()},H=t.computed(()=>O.value&&j.value?o:a),R=t.computed(()=>({action:!0}));return()=>{const P={class:b.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:E,onFocus:T,onBlur:L};s&&(P.disabled=!0);const W=[],z=t.h("input",P);W.push(z);const v=[],M={class:["action-icon"]},U=t.h(H.value,M),Y={class:R.value,onClick:Q},J=t.h("view",Y,{default:()=>[U]});if(v.push(J),D.value){const be=t.h("view",{class:x.value},[i.unit]);v.push(be)}const K={class:F.value},Z=t.h("view",K,{default:()=>v});W.push(Z);const G={default:()=>W};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 te=ge(i,Oo);te.valueFormat=null,te.disabled=!1,te.readonly=u.value||f.value,te.visible=A.value,te["onUpdate:visible"]=q,te.modelValue=S.value,te["onUpdate:modelValue"]=N,te.onClear=$;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 le=t.h(r,te,ee);G.hide=()=>[le];const ae=ge(i,fe,ue);return t.h(l,ae,G)}}}}const{create:Bu,componentName:Au,scope:Vu}=X("date-item"),vo=Bu(Nu(Au,Vu,Ce,ne.CircleClose,ne.Date,Tn,!1)),Tu=39,$u=64,{create:Eu,scope:Du}=X("calendar-pane"),Iu=Eu({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:oe.getDay(0)},endDate:{type:String,default:oe.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:l}){const{toLocaleRefs:o,t:a}=re.useFoxI18n(Du),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),f=t.ref(null),m=t.ref(null),h=t.ref(0),y=t.computed(()=>d.monthsData.slice(d.defaultRange[0],d.defaultRange[1])),g=t.computed(()=>l.btn),k=t.computed(()=>l["top-info"]),S=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("-"),b=M=>oe.isEqual(d.currDate[0],M),C=M=>oe.isEqual(d.currDate[1],M),B=M=>d.currDate?.length>0?d.currDate?.some(U=>oe.isEqual(U,M)):!1,A=(M,U)=>U.curData[0]+"-"+U.curData[1]+"-"+oe.getNumTwoBit(+M.day),E=(M,U)=>{const Y=A(M,U),{type:J}=e;return M.type=="curr"?oe.isEqual(d.currDate,Y)||(J=="range"||J=="week")&&(b(Y)||C(Y))||J=="multiple"&&B(Y)?`${d.dayPrefix}--active`:d.propStartDate&&oe.compareDate(Y,d.propStartDate)||d.propEndDate&&oe.compareDate(d.propEndDate,Y)?`${d.dayPrefix}--disabled`:(J=="range"||J=="week")&&Array.isArray(d.currDate)&&Object.values(d.currDate).length==2&&oe.compareDate(d.currDate[0],Y)&&oe.compareDate(Y,d.currDate[1])?`${d.dayPrefix}--choose`:null:`${d.dayPrefix}--disabled`},V=()=>{const{type:M}=e;if(M=="range"&&d.chooseData.length==2||M!="range"){let U=d.chooseData.slice(0);M=="week"&&(U={weekDate:[N(d.chooseData[0]),N(d.chooseData[1])]}),n("choose",U),e.poppable&&n("update")}},q=(M,U,Y=!1)=>{if(E(M,U)!=`${d.dayPrefix}--disabled`){const{type:J}=e;let[K,Z]=U.curData,G=[...U.curData];if(G[2]=oe.getNumTwoBit(Number(M.day)),G[3]=`${G[0]}-${G[1]}-${G[2]}`,G[4]=oe.getWhatDay(+G[0],+G[1],+G[2]),J=="multiple")if(d.currDate?.length>0){let te;d.currDate?.forEach((ee,le)=>{ee==G[3]&&(te=le)}),Y?d.chooseData.push([...G]):te!==void 0?(d.currDate.splice(te,1),d.chooseData.splice(te,1)):(d.currDate.push(G[3]),d.chooseData.push([...G]))}else d.currDate=[G[3]],d.chooseData=[[...G]];else if(J=="range"){let te=Object.values(d.currDate).length;te==2||te==0?d.currDate=[G[3]]:oe.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]]:oe.compareDate(d.chooseData[0][3],G[3])?d.chooseData=[...d.chooseData,[...G]]:d.chooseData=[[...G],...d.chooseData]}else if(J=="week"){let te=oe.getWeekDate(K,Z,M.day,e.firstDayOfWeek);d.propStartDate&&oe.compareDate(te[0],d.propStartDate)&&te.splice(0,1,d.propStartDate),d.propEndDate&&oe.compareDate(d.propEndDate,te[1])&&te.splice(1,1,d.propEndDate),d.currDate=te,d.chooseData=[oe.formatResultDate(te[0]),oe.formatResultDate(te[1])]}else d.currDate=G[3],d.chooseData=[...G];if(!Y){let te=d.chooseData;J=="week"&&(te={weekDate:[N(d.chooseData[0]),N(d.chooseData[1])]}),n("select",te),(e.isAutoBackFill||!e.poppable)&&V()}}},N=M=>{let[U,Y,J]=M;return{date:M,monthWeekNum:oe.getMonthWeek(U,Y,J,e.firstDayOfWeek),yearWeekNum:oe.getYearWeek(U,Y,J,e.firstDayOfWeek)}},T=M=>{const U=M=="prev"?d.monthsData[0]:d.monthsData[d.monthsData.length-1];let Y=parseInt(U.curData[0]),J=parseInt(U.curData[1].toString().replace(/^0/,""));switch(M){case"prev":J==1&&(Y-=1),J=J==1?12:--J;break;case"next":J==12&&(Y+=1),J=J==12?1:++J;break}return[Y+"",oe.getNumTwoBit(J),oe.getMonthDays(String(Y),String(J))+""]},L=(M,U,Y)=>{let{year:J,month:K}=Y;return U=="prev"&&M>=7&&(M-=7),Array.from(Array(M),(Z,G)=>({day:String(G+1),type:U,year:J,month:K}))},F=(M,U,Y,J)=>{M=M-e.firstDayOfWeek;let{year:K,month:Z}=Y;return U=="prev"&&M>=7&&(M-=7),Array.from(Array(J),(te,ee)=>({day:String(ee+1),type:U,year:K,month:Z})).slice(J-M)},D=(M,U)=>{const Y=oe.getMonthPreDay(+M[0],+M[1]);let J=Number(M[1])-1,K=Number(M[0]);J<=0&&(J=12,K+=1);const Z=oe.getMonthDays(String(M[0]),String(M[1])),G=oe.getMonthDays(K+"",J+""),te={year:M[0],month:M[1]},ee={curData:M,title:a("monthTitle",{year:te.year,month:te.month}),monthData:[...F(Y,"prev",{month:String(J),year:String(K)},G),...L(Z,"curr",te)],cssHeight:0,cssScrollHeight:0},le=ee.monthData.length>35?6:5;ee.cssHeight=Tu+$u*le;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,U=="next"?(!d.endData||!oe.compareDate(`${d.endData[0]}-${d.endData[1]}-${oe.getMonthDays(d.endData[0],d.endData[1])}`,`${M[0]}-${M[1]}-${M[2]}`))&&d.monthsData.push(ee):!d.startData||!oe.compareDate(`${M[0]}-${M[1]}-${M[2]}`,`${d.startData[0]}-${d.startData[1]}-01`)?d.monthsData.unshift(ee):d.unLoadPrev=!0},I=()=>{let M=e.startDate?e.startDate:oe.getDay(0),U=e.endDate?e.endDate:oe.getDay(365);d.propStartDate=M,d.propEndDate=U,d.startData=p(M),d.endData=p(U),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(d.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const Y={year:Number(d.startData[0]),month:Number(d.startData[1])},J={year:Number(d.endData[0]),month:Number(d.endData[1])};let K=J.month-Y.month;J.year-Y.year>0&&(K=K+12*(J.year-Y.year)),K<=0&&(K=1),D(d.startData,"next");let Z=1;do D(T("next"),"next");while(Z++<K);if(d.monthsNum=K,e.type=="range"&&Array.isArray(d.currDate))d.currDate.length>0&&(M&&oe.compareDate(d.currDate[0],M)&&d.currDate.splice(0,1,M),U&&oe.compareDate(U,d.currDate[1])&&d.currDate.splice(1,1,U),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 G=[],te={};d.currDate.forEach(ee=>{M&&!oe.compareDate(ee,M)&&U&&!oe.compareDate(U,ee)&&(Object.hasOwnProperty.call(te,ee)||(G.push(ee),te[ee]=ee))}),d.currDate=[...G],d.defaultData=[...p(G[0])]}}else if(e.type=="week"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let[G,te,ee]=p(d.currDate[0]),le=oe.getWeekDate(G,te,ee,e.firstDayOfWeek);d.currDate=le,M&&oe.compareDate(d.currDate[0],M)&&d.currDate.splice(0,1,M),U&&oe.compareDate(U,d.currDate[1])&&d.currDate.splice(1,1,U),d.defaultData=[...p(d.currDate[0]),...p(d.currDate[1])]}}else d.currDate&&(M&&oe.compareDate(d.currDate,M)?d.currDate=M:U&&!oe.compareDate(d.currDate,U)&&(d.currDate=U),d.defaultData=[...p(d.currDate)])};$e({scrollToDate:M=>{oe.compareDate(M,d.propStartDate)?M=d.propStartDate:oe.compareDate(M,d.propEndDate)||(M=d.propEndDate);let U=p(M);d.monthsData.forEach((Y,J)=>{if(Y.title==a("monthTitle",{year:U[0],month:U[1]})&&c.value){let K=d.monthsData[J].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let Z=0,G=setInterval(()=>{if(Z++,c.value){let te=K/10;c.value.scrollTop=c.value.scrollTop+te}Z>=10&&(clearInterval(G),c.value&&(c.value.scrollTop=d.monthsData[J].cssScrollHeight))},40)}else c.value.scrollTop=d.monthsData[J].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)},doLayout:()=>{let M=0,U=0;d.defaultData.length>0&&d.monthsData.forEach((K,Z)=>{K.title==a("monthTitle",{year:d.defaultData[0],month:d.defaultData[1]})&&(M=Z),(e.type=="range"||e.type=="week")&&K.title==a("monthTitle",{year:d.defaultData[3],month:d.defaultData[4]})&&(U=Z)}),O(d.monthsNum,M),d.currentIndex=M,d.yearMonthTitle=d.monthsData[d.currentIndex].title,d.defaultData.length>0&&(d.isRange?(q({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0),q({day:d.defaultData[5],type:"curr"},d.monthsData[U],!0)):e.type=="week"?q({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0):e.type=="multiple"?[...d.currDate].forEach(K=>{let Z=p(K),G=d.currentIndex;d.monthsData.forEach((te,ee)=>{te.title==a("monthTitle",{year:Z[0],month:Z[1]})&&(G=ee)}),q({day:Z[2],type:"curr"},d.monthsData[G],!0)}):q({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0));let Y=d.monthsData[d.monthsData.length-1],J=Y.cssHeight+Y.cssScrollHeight;We(()=>{c?.value&&u?.value&&m?.value&&(h.value=c.value.clientHeight,u.value.style.height=`${J}px`,c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)}),d.avgHeight=Math.floor(J/(d.monthsNum+1))}});const O=(M,U)=>{M>=3?U>0&&U<M?d.defaultRange=[U-1,U+3]:U==0?d.defaultRange=[U,U+4]:U==M&&(d.defaultRange=[U-2,U+2]):d.defaultRange=[0,M+2];let Y=d.monthsData[d.defaultRange[0]].cssScrollHeight;d.translateY=Y},Q=(M,U)=>(e.type=="range"||e.type=="week")&&M.type=="curr"&&E(M,U)=="fox-calendar__day--active",H=(M,U)=>Q(M,U)&&b(A(M,U)),R=(M,U)=>d.currDate.length>=2&&C(A(M,U))?Q(M,U):!1,P=()=>{if(d.currDate.length>=2)return oe.isEqual(d.currDate[0],d.currDate[1])},W=M=>{const U=`${M.year}-${M.month}-${Number(M.day)<10?"0"+M.day:M.day}`;return oe.isEqual(U,oe.date2Str(new Date))},z=M=>{if(d.monthsData.length<=1)return;const U=M.target.scrollTop;let Y=Math.floor(U/d.avgHeight);if(Y==0)U>=d.monthsData[Y+1].cssScrollHeight&&(Y+=1);else if(Y>0&&Y<d.monthsNum-1)U>=d.monthsData[Y+1].cssScrollHeight&&(Y+=1),U<d.monthsData[Y].cssScrollHeight&&(Y-=1);else{const J=Math.round(U+h.value);J<d.monthsData[Y].cssScrollHeight+d.monthsData[Y].cssHeight&&U>d.monthsData[Y-1].cssScrollHeight&&(Y-=1),Y+1<=d.monthsNum&&J>=d.monthsData[Y+1].cssScrollHeight+d.monthsData[Y+1].cssHeight&&(Y+=1),Y>=1&&U<d.monthsData[Y-1].cssScrollHeight&&(Y-=1)}d.currentIndex!==Y&&(d.currentIndex=Y,O(d.monthsNum,Y)),d.yearMonthTitle=d.monthsData[Y].title},v=()=>{d.chooseData.splice(0),d.monthsData.splice(0),I()};return I(),t.watch(()=>e.defaultValue,M=>{M&&e.poppable&&v()}),{weeks:i,compConthsData:y,showTopBtn:g,topInfo:k,bottomInfo:S,rangeTip:P,mothsViewScroll:z,getClass:E,isStartTip:H,isEndTip:R,chooseDay:q,isCurrDay:W,confirm:V,months:c,...t.toRefs(d),...t.toRefs(e),...r,monthsPanel:u,weeksPanel:f,viewArea:m}}}),qu={class:"fox-calendar__header"},xu={key:0,class:"fox-calendar__header-title"},Mu={key:1,class:"fox-calendar__header-slot"},zu={key:2,class:"fox-calendar__header-subtitle"},Lu={class:"fox-calendar__weekdays",ref:"weeksPanel"},Pu={class:"fox-calendar__panel",ref:"monthsPanel"},Fu={class:"fox-calendar__month-title"},Ru={class:"fox-calendar__days"},Ou=["onClick"],vu={class:"fox-calendar__day-value"},Ku={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Uu={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Hu={key:2,class:"fox-calendar__day-tips--curr"},ju={key:4,class:"fox-calendar__day-tip"},Wu={key:0,class:"fox-calendar__footer"};function Yu(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",qu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",xu,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Mu,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",zu,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Lu,[(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",Pu,[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",Fu,t.toDisplayString(s.title),1),t.createElementVNode("view",Ru,[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:f=>e.chooseDay(c,s)},[t.createElementVNode("view",vu,[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",Ku,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Uu,[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",Hu,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",ju,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Ou))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Wu,[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 ts=_(Iu,[["render",Yu]]),Xu=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:Qu}=X("calendar"),Gu=Qu({components:{[ts.name]:ts,[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=k=>{i.value?.scrollToDate(k)},u=()=>{i.value?.initPosition()};t.watch(()=>e.visible,k=>{k&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),$e({scrollToDate:c,initPosition:u});const f=()=>{n("update:visible",!1)},m=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{m()},update:f,close:m,select:k=>{n("select",k)},choose:k=>{m(),n("choose",k)},calendarRef:i,showTopBtn:o,topInfo:a,dayInfo:r,bottomInfo:s}}});function Zu(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 $n=_(Gu,[["render",Zu]]),Uo=(e,n)=>{let l;return Re(e)?l=e:typeof e=="string"&&ye(e)>0?l=oe.parser(e,n):l=new Date,l},ht=(e,n,l)=>(Re(n)||(n=new Date),oe.format(n,l)),gt=e=>{let n=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,o=`${e.getDate()}`,a=oe.date2Str(e),r=oe.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,l,o,a,r]};function Ju(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)),f=Te(t.computed(()=>i.readonly)),{emitEvent:m}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),y=h(i,["placeholder"]),g=t.ref(!1),k=t.computed(()=>i.type==="range"),S=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),d=()=>{S.startDate!==null&&(S.startDate=null,S.endDate=null,S.startArray=[],S.endArray=[])},p=(z,v="one",M="YYYY-MM-DD")=>{if(Xu(z)){d();return}if(k.value&&Array.isArray(z)&&z.length==2){let U,Y;typeof z[0]=="string"?(U=Uo(z[0],M),Y=Uo(z[1],M)):(U=z[0],Y=z[1]);let J=gt(U),K=gt(Y);(S.startDate===null||S.startDate.getTime()!==U.getTime()||S.endDate?.getTime()!==Y.getTime())&&(S.startDate=U,S.startArray=J,S.endDate=Y,S.endArray=K)}else{let U;typeof z=="string"?U=Uo(z,M):U=z;let Y=gt(U);(S.startDate===null||S.startDate.getTime()!==U.getTime())&&(S.startDate=U,S.startArray=Y)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,z=>{p(z,i.type,i.valueFormat)});const b=t.computed(()=>{if(S.startDate===null)return"";if(k.value){let z=ht(i,S.startDate,i.format),v=ht(i,S.endDate,i.format);return`${z} ${i.rangeSeparator} ${v}`}else{let z=ht(i,S.startDate,i.format);return i.showWeek&&(z=`${z} ${S.startArray[4]}`),z}}),C=t.computed(()=>{if(S.startDate===null)return null;if(k.value){let z=oe.date2Str(S.startDate),v=oe.date2Str(S.endDate??new Date);return[z,v]}else return oe.date2Str(S.startDate)}),B="fox-input-item",A=t.computed(()=>({[B]:!0,[`${B}__disabled`]:u.value})),E=Ae(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>{const z={};return E.value&&(z["text-align"]=E.value),z}),q=t.ref(!1),N=()=>{f.value||u.value||(q.value=!0)},T=z=>{q.value=z},L=z=>{if(z){if(k.value&&Array.isArray(z)){let v=z[0],M=he(v[0]),U=he(v[1]),Y=he(v[2]),J=new Date(M,U-1,Y),K=z[1];M=he(K[0]),U=he(K[1]),Y=he(K[2]);let Z=new Date(M,U-1,Y);if(S.startDate=J,S.startArray=gt(J),S.endDate=Z,S.endArray=gt(Z),i.valueFormat){let G=ht(i,J,i.valueFormat),te=ht(i,Z,i.valueFormat);m("update:modelValue",[G,te],{})}else m("update:modelValue",[J,Z],{})}else{let v=z,M=he(v[0]),U=he(v[1]),Y=he(v[2]),J=new Date(M,U-1,Y);if(S.startDate=J,S.startArray=gt(J),i.valueFormat){let K=ht(i,J,i.valueFormat);m("update:modelValue",K,{})}else m("update:modelValue",J,{})}m("change",z,{})}},F=z=>{let M=z.target.value;g.value=!0,m("focus",M,z)},D=z=>{setTimeout(()=>{g.value=!1},0);let M=z.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),m("blur",M,z)},I=t.computed(()=>({[`${B}__append`]:!0})),x=t.computed(()=>ye(i.unit)>0),$=t.computed(()=>ye(i.unit)>0&&!g.value),j=t.computed(()=>({hidden:!$.value})),O=z=>{d(),m("update:modelValue",null,z),m("change","",z),m("clear","")},Q=t.computed(()=>i.clearable&&!u.value&&!f.value),H=t.computed(()=>{let z=ye(b.value)>0;return i.clearable&&z&&g.value}),R=z=>{H.value?O(z):N()},P=t.computed(()=>H.value&&Q.value?a:r),W=t.computed(()=>({action:!0}));return()=>{const z={class:A.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:N,onFocus:F,onBlur:D};s&&(z.disabled=!0);const v=[],M=t.h("input",z);v.push(M);const U=[],Y={class:["action-icon"]},J=t.h(P.value,Y),K={class:W.value,onClick:R},Z=t.h("view",K,{default:()=>[J]});if(U.push(Z),x.value){const it=t.h("view",{class:j.value},[i.unit]);U.push(it)}const G={class:I.value},te=t.h("view",G,{default:()=>U});v.push(te);const ee={default:()=>v};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 le=ge(i,Ko);le.visible=q.value,le["onUpdate:visible"]=T,le["default-value"]=C.value,le.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,le,ae);ee.hide=()=>[Ie];const be=ge(i,fe,ue);return t.h(o,be,ee)}}}}const{componentName:_u,create:ef,scope:tf}=X("calendar-item"),Ho=ef(Ju(_u,tf,$n,Ce,{CloseIcon:ne.CircleClose,MarkIcon:ne.Date},!1)),nf={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 of(e,{CheckNormal:n,Checked:l}){return{props:{...nf},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),f=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const k=ie(o.iconSize),S=o.checkedIcon??l;return t.h(S,{width:k,height:k,class:c.value})}}else{if(r.icon)return r.icon();{const k=ie(o.iconSize),S=o.icon??n;return t.h(S,{width:k,height:k,class:c.value})}}},m=()=>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?[m(),f()]:[f(),m()]])}}}const{componentName:lf,create:af}=X("radio"),En=af(of(lf,{CheckNormal:ne.CheckNormal,Checked:ne.CheckChecked})),{componentName:ns,create:rf}=X("radio-group"),Dn=rf({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:`${ns} ${ns}--${e.direction}`,style:a},l.default?.())}}});function os(e,n,l,o="value"){for(let a=0;a<n.length;a++){let r=n[a];if(o==="text"){if(In(e,r)===l)return a}else if(o==="item"){if(xe(l,r))return a}else if(Mt(e,r)===l)return a}return-1}function In(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Mt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function sf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function cf(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let df=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=Xe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function uf(){const e=t.getCurrentInstance();return new df(e.proxy)}function ff(e){return{text:e,value:e}}const ls={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},mf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}};function pf(e,n,l,o,a){return{props:{...ue,...fe,...ls,...mf,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:f}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),m=uf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,p])=>{if(d){const b=await m.load("radio",d,p);if(b.length>0)if(typeof b[0]=="string"){const A=b.map(E=>ff(E));h.value=A}else h.value=b}},{immediate:!0});let y=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([d,p])=>{y.value=os(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 Mt(r,d)}),k=d=>{let p=null,b=null;if(h.value.length>0){let C=os(r,h.value,d,"value");y.value=C,C>=0&&(b=h.value[C],r.valueType==="text"?p=In(r,b):r.valueType==="item"?p=b:p=Mt(r,b))}else p=d;f("update:modelValue",p),f("change",p,b)},S=()=>{let d=null,p=null;if(h.value.length>0&&y.value!==-1){let b=h.value[y.value];r.valueType==="text"?d=In(r,b):r.valueType==="item"?d=b:d=Mt(r,b)}f("update:modelValue",d),f("change",d,p)};if($e({clear(){y.value!==-1&&(y.value=-1,S())}}),r.source){const d=()=>{const p=[],b=ge(r,ls);return h.value.forEach((C,B)=>{const A=Mt(r,C),E=sf(r,C);let V={...b,label:A,disabled:E};const q=cf(r,C,B);V={...V,...q},c.value&&(V.disabled=!0),i.value&&(V.readonly=!0);const N={};if(s.slots.icon&&(N.icon=s.slots.icon),s.slots.checkedIcon&&(N.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const L=s.slots.text(C);N.default=()=>[L]}else{const L=In(r,C);N.default=()=>L}let T=t.h(a,V,N);p.push(T)}),p};return()=>{const p=d(),b={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"onUpdate:modelValue":k},C=t.h(o,b,{default:()=>p}),B={default:()=>C};B.label=s.slots.default,B.prepend=s.slots.prepend,B.append=s.slots.append,B.fixedPreTip=s.slots.fixedPreTip,B.fixedTip=s.slots.fixedTip;const A=ge(r,fe,ue);return t.h(l,A,B)}}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":k},{default:()=>d})}}}}const{componentName:hf,create:gf,scope:yf}=X("radio-item"),jo=gf(pf(hf,yf,Ce,Dn,En)),kf=(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,b=>{c.partialSelect=b});const u=t.computed(()=>!!i),f=t.computed(()=>u.value?i.value.value.includes(a.label):!!a.modelValue),m=t.computed(()=>u.value?i.position:a.textPosition),h=t.computed(()=>a.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":f.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let y="";const g=(b,C)=>{y="click",r("update:modelValue",b),r("change",b,C)};t.watch(()=>a.modelValue,b=>{y=="click"?y="":r("change",b)});const k=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const b=ie(a.iconSize),C=a.indeterminateIcon??o;return t.h(C,{width:b,height:b,class:h.value})}}else if(f.value){if(s.checkedIcon)return s.checkedIcon();{const b=ie(a.iconSize),C=a.checkedIcon??l;return t.h(C,{width:b,height:b,class:h.value})}}else{if(s.icon)return s.icon();{const b=ie(a.iconSize),C=a.icon??n;return t.h(C,{width:b,height:b,class:h.value})}}},S=()=>t.h("view",{class:`${e}__label ${a.disabled?`${e}__label--disabled`:""}`},s.default?.()),d=()=>t.h("view",{class:`${e}__button ${f.value&&`${e}__button--active`} ${a.disabled?`${e}__button--disabled`:""}`},s.default?.()),p=b=>{if(!(a.disabled||a.readonly)){if(f.value&&c.partialSelect){c.partialSelect=!1,g(f.value,s.default?.()[0].children);return}if(g(!f.value,s.default?.()[0].children),u.value){const C=i.value.value,B=i.max.value,{label:A}=a,E=C.indexOf(A);E>-1?C.splice(E,1):E<=-1&&(C.length<B||!B)&&C.push(A),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} ${m.value==="left"?`${e}--reverse`:""}`,onClick:p},[a.shape=="button"?d():[k(),S()]])}}),{componentName:bf,create:Sf}=X("checkbox"),qn=Sf(kf(bf,{CheckNormal:ne.CheckNormal,Checked:ne.Checked,Indeterminate:ne.CheckDisabled})),{create:Cf,componentName:as}=X("checkbox-group"),xn=Cf({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(f=>f!==u.proxy))},s=u=>{l("update:modelValue",u),l("change",u)},i=u=>{const f=[];u&&o.children.forEach(m=>{m?.disabled||f.push(m?.label)}),l("update:modelValue",f)},c=()=>{const u=o.children.filter(f=>f?.disabled?!1:!e.modelValue.includes(f.label)).map(f=>f.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)}),$e({toggleAll:i,toggleReverse:c}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),t.h("view",{class:`${as} ${as}--${e.direction}`,style:u},n.default?.())}}});function rs(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(xe(l,r))return a}else if(Mn(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 Mn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function wf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Nf(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let Bf=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=Xe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function Af(){const e=t.getCurrentInstance();return new Bf(e.proxy)}function Vf(e){return{text:e,value:e}}const Tf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},ss={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}};function $f(e,n,l,o,a){return{props:{...Tf,...ss,...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:f}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),m=Af(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,p])=>{if(d){const b=await m.load("checkbox",d,p);if(b.length>0)if(typeof b[0]=="string"){const A=b.map(E=>Vf(E));h.value=A}else h.value=b}},{immediate:!0});const y=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([d,p])=>{const b=[];Array.isArray(d)&&d.forEach(C=>{let B=rs(r,p,C,r.valueType);B!==-1&&b.push(B)}),!xe(b,y.value)&&(y.value=b)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let d=[];return y.value.forEach(p=>{let b=h.value[p];d.push(Mn(r,b))}),d}),k=d=>{let p=[],b=[];if(h.value.length>0){const C=[];Array.isArray(d)&&d.forEach(B=>{let A=rs(r,h.value,B,"value");A!==-1&&C.push(A);const E=h.value[A];b.push(E),r.valueType==="text"?p.push(Wo(r,E)):r.valueType==="item"?p.push(E):p.push(Mn(r,E))}),y.value=C}else p=d;f("update:modelValue",p),f("change",p,b)},S=t.ref();if($e({toggleAll:d=>{S.value.toggleAll(d)},toggleReverse:()=>{S.value.toggleReverse()}}),r.source){const d=()=>{const p=[],b=ge(r,ss);return h.value.forEach((C,B)=>{const A=Mn(r,C),E=wf(r,C);let V={...b,label:A,disabled:E};const q=Nf(r,C,B);V={...V,...q},i.value&&(V.disabled=!0),c.value&&(V.readonly=!0);const N={};if(s.slots.icon&&(N.icon=s.slots.icon),s.slots.checkedIcon&&(N.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(N.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const L=s.slots.text(C);N.default=()=>[L]}else{const L=Wo(r,C);N.default=()=>L}let T=t.h(a,V,N);p.push(T)}),p};return()=>{const p=d(),b={class:`${e}`,ref:S,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":k},C=t.h(o,b,{default:()=>p}),B={default:()=>C};B.label=s.slots.default,B.prepend=s.slots.prepend,B.append=s.slots.append,B.fixedPreTip=s.slots.fixedPreTip,B.fixedTip=s.slots.fixedTip;const A=ge(r,fe,ue);return t.h(l,A,B)}}else return()=>{const d=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:S,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"onUpdate:modelValue":k},{default:()=>d})}}}}const{componentName:Ef,create:Df,scope:If}=X("checkbox-item"),Yo=Df($f(Ef,If,Ce,xn,qn)),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:qf,create:xf}=X("switch"),Mf=xf({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=qf;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}}}),zf={class:"fox-switch-button"};function Lf(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",zf,[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 zn=_(Mf,[["render",Lf]]);function Pf(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,f=De(a,"modelValue"),m=h=>{f.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...ge(a,Xo),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":m},g=[],k=t.h(o,y);g.push(k);const S={default:()=>g};S.label=r.slots.default,S.fixedPreTip=r.slots.fixedPreTip,S.fixedTip=r.slots.fixedTip;const d=ge(a,fe,ue);return d["content-class"]=u,t.h(l,d,S)}}}}const{componentName:Ff,create:Rf,scope:Of}=X("switch-item"),Qo=Rf(Pf(Ff,Of,Ce,zn));function vf(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)),f=Te(t.computed(()=>a.readonly)),m=De(a,"modelValue"),h=t.computed(()=>({[`${e}`]:!0})),y=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:u.value,[`${e}__placeholder`]:!u.value&&ce(m.value)})),g=Ae(t.computed(()=>a.textAlign),"textAlign"),k=t.computed(()=>{const L={};return g.value&&(L["text-align"]=g.value),L}),S=t.computed(()=>!ce(a.modelValue)||r.slots.main?!0:!!ce(a.desc)),d=t.computed(()=>ce(m.value)?c.placeholder.value:m.value),p=t.computed(()=>!ce(a.desc)||r.slots.sub),b=t.computed(()=>({[`${e}__sub`]:!0})),C=t.computed(()=>{const L={};return g.value&&(L["text-align"]=g.value),L}),B=()=>{s("focus",m.value)},A=()=>{s("blur",m.value)},E=t.computed(()=>({[`${e}__append`]:!0})),V=t.computed(()=>ye(a.unit)>0),q=L=>{u.value==!0||f.value==!0||s("click")},N=t.computed(()=>a.icon??l),T=t.computed(()=>({action:!0}));return()=>{const L=[];if(typeof r.slots.content=="function"){const P=r.slots.content();L.push(P)}else{const P=[];if(S.value){const v={tabIndex:0,class:y.value,style:k.value,onFocus:B,onBlur:A,onClick:q};let M=null;r.slots.main?M=t.h("view",v,[r.slots.main(d.value)]):M=t.h("view",v,[d.value]),P.push(M)}if(p.value){const v={tabIndex:0,class:b.value,style:C.value,onFocus:B,onBlur:A,onClick:q};let M=null;r.slots.sub?M=t.h("view",v,[r.slots.sub(a.desc)]):M=t.h("view",v,[a.desc]),P.push(M)}const W={class:h.value},z=t.h("view",W,P);L.push(z)}const F=[],D=ie(a.iconSize);let I=r.slots.icon;if(!I){const P={width:D,height:D,class:["action-icon"]};I=t.h(N.value,P)}const x={class:T.value,onClick:q},$=t.h("view",x,{default:()=>[I]});if(F.push($),V.value){const P=t.h("view",{},[a.unit]);F.push(P)}const j={class:E.value},O=t.h("view",j,{default:()=>F});L.push(O);const Q={default:()=>L};Q.label=r.slots.default,Q.prepend=r.slots.prepend,Q.append=r.slots.append,Q.fixedPreTip=r.slots.fixedPreTip,Q.fixedTip=r.slots.fixedTip;const H=ge(a,fe,ue);return t.h(o,H,Q)}}}}const{componentName:Kf,create:Uf,scope:Hf}=X("link-item"),Go=Uf(vf(Kf,Hf,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:jf,componentName:Wf}=X("rate"),Yf=jf({props:{...Zo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:l}){const o=t.ref([]),a=t.computed(()=>({[Wf]:!0})),r=y=>{n("update:modelValue",y),n("change",y)},s=(y,g)=>{if(e.disabled||e.readonly)return;let k=0;g===1&&e.modelValue===g||(k=g,e.allowHalf&&y==2&&(k-=.5)),r(k)},i=(y,g,k)=>{let S=0;for(let d=g.value.length-1;d>=0;d--){const p=g.value[d];if(y>p.offsetLeft){k?S=d+(y>p.offsetLeft+p.clientWidth/2?1:.5):S=d+1;break}}return S},c=Ue(),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))))}},f=Math.random().toString(36).slice(-8),m=t.computed(()=>e.customIcon??ne.StarFillN);return{classes:a,...u,onClick:s,toPxDesc:me,renderIcon:(y,g)=>t.h(y,g),rateRefs:o,refRandomId:f,slots:l,customIcon:m}}}),Xf=["id"],Qf={class:"fox-rate-item__icon--full"},Gf={key:0,class:"fox-rate-item__icon--half"},Zf={key:1,class:"fox-rate-item__icon--half"};function Jf(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",Qf,[(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",Gf,[(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",Zf,[(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,Xf))),128))],34)}const yt=_(Yf,[["render",Jf]]);function _f(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,f=De(a,"modelValue"),m=h=>{f.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...ge(a,Zo),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":m},g=[],k=t.h(o,y);g.push(k);const S={default:()=>g};if(r.slots.default){const b=r.slots.default();S.label=()=>b}const d=ge(a,fe,ue);return d["content-class"]=u,t.h(l,d,S)}}}}const{componentName:em,create:tm,scope:nm}=X("rate-item"),Jo=tm(_f(em,nm,Ce,yt)),_o={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String],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}};function om(e,n,l,o="value"){for(let a=0;a<n.length;a++){let r=n[a];if(o==="text"){if(Ln(e,r)===l)return a}else if(o==="item"){if(xe(l,r))return a}else if(cs(e,r)===l)return a}return-1}function Ln(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function is(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function cs(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function lm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function am(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let rm=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 f=(o-1)*a,m=f+a;m>u.length&&(m=u.length);const h=u.slice(f,m);return{totalSize:u.length,page:h}}if(typeof l=="function")return await Reflect.apply(l,null,[o,a,r,s]);const c=Xe(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ve(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[l,o,a,r]))}};function sm(){const e=t.getCurrentInstance();return new rm(e.proxy)}const{componentName:im,create:cm,scope:dm}=X("infinite-loading"),um=cm({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(dm),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(()=>({[im]:!0})),u=k=>k?k.offsetTop+u(k.offsetParent):0,f=()=>{let k=0,S=0,d="down";if(s.value==window){const p=ro();r.value&&(k=u(r.value)+r.value.offsetHeight-p-window.innerHeight),S=p}else{const{scrollHeight:p,clientHeight:b,scrollTop:C}=s.value;k=p-b-C,S=C}return i.beforeScrollTop>S?d="up":d="down",i.beforeScrollTop=S,n("scroll-change",S),k<=e.threshold&&d=="down"},m=()=>{We(()=>{if(!f()||!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",m,e.useCapture)},y=()=>{s.value&&s.value.removeEventListener("scroll",m,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,k=>{k||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),fm={class:"fox-infinite__container"},mm={class:"fox-infinite__bottom"},pm={key:0,class:"fox-infinite__bottom-box"},hm={class:"fox-infinite__bottom-box__text"},gm={class:"fox-infinite__bottom-tips"};function ym(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",fm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",mm,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",pm,[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",hm,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",gm,t.toDisplayString(e.loadMoreText),1)])])],2)}const Pn=_(um,[["render",ym]]),{componentName:km,create:bm}=X("button"),Sm=bm({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:f}=t.toRefs(e),m=g=>{!i.value&&!s.value&&n("click",g)},h=t.computed(()=>{const g=km;return{[g]:!0,[`${g}--${o.value}`]:o.value,[`${g}--${a.value}`]:a.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:u.value,[`${g}--block`]:f.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:m,classes:h,getStyle:y}}}),Cm={class:"fox-button__wrap"};function wm(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",Cm,[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=_(Sm,[["render",wm]]),{create:Nm,scope:Bm}=X("searchbar"),Am=Nm({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(Bm),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)},f=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)},m=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)},k=p=>{n("click-right-icon",e.modelValue,p)},S=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:f,handleClear:m,handleSubmit:h,searchbarStyle:r,inputSearchbarStyle:s,focusCss:c,clickInput:y,leftIconClick:g,rightIconClick:k,styleSearchbar:S}}}),Vm={key:0,class:"fox-searchbar__search-label"},Tm={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},$m=["type","maxlength","placeholder","value","disabled","readonly"],Em={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},Dm={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function Im(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",Vm,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",Tm,[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,$m)],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",Em,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",Dm,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const Fn=_(Am,[["render",Im]]);function qm(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=sm(),u=t.ref([]),f=t.ref(1),m=t.ref(""),h=t.shallowRef(null),y=t.computed(()=>{const H={};return o.params&&Object.assign(H,o.params),ce(m.value)||(H[`${o.searchKey}`]=m.value),h.value&&Object.assign(H,h.value),H});let g=!0;const k=async(H,R,P)=>{try{let W=null;ce(m.value)||(W=v=>{const M=Ln(o,v);if(typeof M=="string"&&M.includes(m.value))return!0;const U=is(o,v);return!!(typeof U=="string"&&U.includes(m.value))});const z=await c.load("actionsheet",H,R,P,y.value,g,W??void 0);g=!1,Array.isArray(z)?(u.value=z,F.value=!1,f.value=1):z.page.length===0?F.value=!1:(Reflect.apply([].push,u.value,z.page),u.value.length>=z.totalSize?F.value=!1:f.value=u.value.length/o.pageSize),L.value=!1}catch(W){console.error("[FoxUI] Load ActionSheet Data Fail",W),u.value=[]}setTimeout(()=>{a("loaded-data")},250)};t.watch([()=>o.source,()=>o.pageSize,()=>o.params],async([H,R,P])=>{o.source&&k(o.source,f.value,R)},{immediate:!0});const S=t.computed(()=>!o.multiple&&o.isAutoBackFill),d=t.ref([]);let p=null;const b=t.ref(o.visible);t.watch(()=>o.visible,H=>{b.value!==H&&(b.value=H),H?p=[...d.value]:p=null});const C=(H,R)=>{const P=[];return Array.isArray(H)||(H=[H]),H.forEach(W=>{let z=om(o,R,W,o.valueType);z!==-1&&P.push(z)}),xe(P,d.value)?!1:(d.value=P,!0)};t.watch([()=>o.modelValue,()=>u.value],([H,R],[P,W])=>{C(H,R)&&B()},{deep:!0});const B=()=>{const H=[],R=[],P=[];for(let W of d.value){const z=u.value[W];R.push(z);const v=Ln(o,z);if(P.push(v),o.valueType==="item")H.push(z);else if(o.valueType==="text")H.push(v);else{const M=cs(o,z);H.push(M)}}o.multiple?(a("update:modelValue",H),a("update:text",P),a("change",H,R)):(a("update:modelValue",H[0]??null),a("update:text",P[0]??null),a("change",H[0],R[0]??null))},A=()=>{p&&(d.value=p)},E=H=>{const R=d.value.indexOf(H);o.multiple?R===-1?d.value.push(H):d.value.splice(R,1):R===-1?d.value=[H]:d.value=[],(S.value||!o.poppable&&!o.showFooter)&&(B(),V(!1))},V=H=>{b.value=H,a("update:visible",H)},q=()=>{A(),V(!1)},N=()=>{V(!1),B()},T=()=>{u.value=[],f.value=1,o.source&&k(o.source,f.value,o.pageSize)},L=t.ref(!1),F=t.ref(!0),D=async()=>{if(!o.source){L.value=!1;return}await k(o.source,f.value,o.pageSize)};t.watch(()=>m.value,(H,R)=>{ce(H)&&!ce(R)&&D()});const I=()=>{let H=i.title.value??"";r.title&&(H=r.title());const R=t.h("view",{class:["fox-actionsheet__header-title"]},[H]),P=t.h(ne.Close,{class:["fox-actionsheet__header-icon"],onClick:q});return t.h("view",{class:["fox-actionsheet__header"]},[R,P])},x=()=>{let H=null;if(r.search)H=r.search();else{const R={onSearch:T,placeholder:i.seachPlaceholder.value,disabled:o.disabled,modelValue:m.value,"onUpdate:modelValue":P=>{m.value=P}};H=t.h(Fn,R,{leftin:()=>t.h(ne.Search2)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[H])},$=(H,R,P,W,z)=>{if(r.optionLabel)return r.optionLabel({text:H,checked:R,disabled:P,subText:W,item:z});const v=[],M=t.h("view",{class:"fox-actionsheet__list-item-text"},[H]);if(v.push(M),W){const U=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[W]);v.push(U)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},v)},j=(H,R,P,W)=>{if(r.optionIcon)return r.optionIcon({checked:H,disabled:R,iconSize:P,item:W});if(H){if(r.checkedIcon)return r.checkedIcon({disabled:R,item:W});{const z=o.checkedIcon??ne.Checked;return t.h(z,{width:P,height:P,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:R,item:W});{const z=o.icon??ne.CheckNormal;return t.h(z,{width:P,height:P,class:["fox-actionsheet__list-item-icon"]})}}},O=()=>{const H=[];for(let R=0;R<u.value.length;R++){const P=u.value[R],W=Ln(o,P),z=is(o,P),v=["fox-actionsheet__list-item"],M={};let U=lm(o,P),Y=o.iconSize?ie(o.iconSize):null;const J=am(o,P,R);J&&(U=U||J.disabled,J.class&&v.push(J.class),J.style&&Object.assign(M,J.style)),U=!!(o.disabled||U);const K=d.value.includes(R);U&&v.push("is-disabled"),K&&v.push("is-checked");const Z={class:v,style:M,key:`${R}`,onClick:()=>{U||E(R)}};let G=[];if(r.option)G.push(r.option({item:P,checked:K,disabled:U}));else{const ee=$(W,K,U,z,P);G.push(ee);const le=j(K,U,Y,P);G.push(le)}const te=t.h("view",Z,G);H.push(te)}return H},Q=()=>{let H=[];if(r.buttons)H=r.buttons();else{const P=t.h(Me,{type:"primary",block:"block",onClick:N,disabled:o.disabled},{default:()=>i.confirmText.value});H.push(P)}return t.h("view",{class:"fox-actionsheet__footer"},[H])};return $e({search:async(H=null,R=!0)=>{h.value=H&&t.toRaw(H),t.triggerRef(h),R&&(u.value=[],f.value=1),t.nextTick(()=>{D()})},clear:()=>{u.value=[],f.value=1}}),()=>{const H=[];if(o.showHeader){const Y=I();H.push(Y)}if(o.showSearchbar){const Y=x();H.push(Y)}let R=null;if(r.content)R=r.content();else{const Y=O(),J={hasMore:F.value,loadText:i.loadText.value,loadMoreText:i.loadMoreText.value,modelValue:L.value,"onUpdate:modelValue":K=>{L.value=K},onLoadMore:D};R=t.h(Pn,J,{default:()=>Y})}const P={};o.optionsHeight&&(P.height=o.optionsHeight);const W={"fox-actionsheet__list":!0};o.poppable||(W["fox-actionsheet__list--inner"]=!0);const z=t.h("view",{class:W,style:P},[R]);if(H.push(z),o.showFooter&&!S.value){const Y=Q();H.push(Y)}const v=t.h("view",{class:"fox-actionsheet"},H);if(!o.poppable)return v;const M=["fox-actionsheet__popup"];o.popClass&&M.push(o.popClass);const U={popClass:M.join(" "),visible:b.value,closeable:!1,"onUpdate:visible":V,position:o.position,round:"round",onClickOverlay:q,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(de,U,{default:()=>v})}}}}const{componentName:xm,create:Mm,scope:zm}=X("actionsheet-pane"),Rn=Mm(qm(xm,zm)),Lm={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 Pm(e,n,l,o,a,r,s){return{props:{...ue,...fe,...Lm,..._o},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const u=Be(t.computed(()=>i.disabled)),f=Te(t.computed(()=>i.readonly)),{emitEvent:m}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),y=h(i,["placeholder"]),g=t.ref(!1),k=De(i,"modelValue"),S=t.ref(""),d=t.computed(()=>Array.isArray(S.value)?S.value.join(i.separator):S.value),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:u.value})),C=Ae(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const z={};return C.value&&(z["text-align"]=C.value),z}),A=t.ref(!1),E=()=>{A.value=!0},V=z=>{A.value=z},q=z=>{k.value=z,m("update:modelValue",z)},N=(z,v)=>{m("change",z,v)},T=z=>{let M=z.target.value;g.value=!0,m("focus",M,z)},L=z=>{setTimeout(()=>{g.value=!1},0);let M=z.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),m("blur",M,z)},F=z=>{S.value=z,m("update:text",z)},D=t.computed(()=>({[`${p}__append`]:!0})),I=t.computed(()=>ye(i.unit)>0),x=t.computed(()=>ye(i.unit)>0&&!g.value),$=t.computed(()=>({hidden:!x.value})),j=z=>{k.value="",m("update:modelValue","",z),m("change","",z),m("clear","")},O=t.computed(()=>i.clearable&&!u.value&&!f.value),Q=t.computed(()=>ye(k.value)>0&&g.value),H=z=>{Q.value?j(z):E()},R=t.computed(()=>Q.value&&O.value?o:a),P=t.computed(()=>({action:!0})),W=t.ref(null);return $e({search:z=>{W.value&&W.value.search(z)}}),()=>{const z={class:b.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:E,onFocus:T,onBlur:L};s&&(z.disabled=!0);const v=[],M=t.h("input",z);v.push(M);const U=[],Y={class:["action-icon"]},J=t.h(R.value,Y),K={class:P.value,onClick:H},Z=t.h("view",K,{default:()=>[J]});if(U.push(Z),I.value){const it=t.h("view",{class:$.value},[i.unit]);U.push(it)}const G={class:D.value},te=t.h("view",G,{default:()=>U});v.push(te);const ee={default:()=>v};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 le=ge(i,_o);le.ref=W,le.class=i.actionsheetProps,le.disabled=u.value||f.value,le.visible=A.value,le["onUpdate:visible"]=V,le.modelValue=k.value,le["onUpdate:modelValue"]=q,le.text=S.value,le["onUpdate:text"]=F,le.onChange=N,le.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,le,ae);ee.hide=()=>[Ie];const be=ge(i,fe,ue);return t.h(l,be,ee)}}}}const{componentName:Fm,create:Rm,scope:Om}=X("actionsheet-item"),el=Rm(Pm(Fm,Om,Ce,ne.CircleClose,ne.ArrowRight,Rn)),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:vm,create:Km}=X("input-number"),Um=Km({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=vm;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 k=o(y);n("update:modelValue",k,g),n("change",k,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")},f=y=>{e.disabled||e.readonly||n("focus",y)},m=y=>{if(e.disabled||e.readonly)return;let k=y.target.valueAsNumber;k<Number(e.min)?k=Number(e.min):k>Number(e.max)&&(k=Number(e.max)),r(k,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:m,focus:f,add:u,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:me}}}),Hm=["min","max","disabled","readonly","value"];function jm(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,Hm),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=_(Um,[["render",jm]]);function Wm(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,f=De(a,"modelValue"),m=h=>{f.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={...ge(a,tl),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":m},k=t.h(o,g,h),S=[];S.push(k);const d={default:()=>S};d.label=r.slots.default,d.fixedPreTip=r.slots.fixedPreTip,d.fixedTip=r.slots.fixedTip;const p=ge(a,fe,ue);return p["content-class"]=u,t.h(l,p,d)}}}}const{componentName:Ym,create:Xm,scope:Qm}=X("inputnumber-item"),nl=Xm(Wm(Ym,Qm,Ce,Ze)),{create:Gm,componentName:On,scope:E2}=X("tabs-bar"),Zm=Gm({components:{MoreH:ne.MoreH},props:{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"},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}},emits:["update:modelValue","change"],setup(e,{slots:n,emit:l}){const o=t.computed(()=>{const x={};return x[`${On}`]=!0,x}),a=t.computed(()=>{const x={};return x[`${On}__titles`]=!0,x[`${e.direction}`]=!0,e.align==="left"&&(x.left=!0),e.scroll===!0&&(x.scrollable=!0),e.shape&&(x[`${e.shape}`]=!0),x}),r=t.computed(()=>({})),s=t.computed(()=>{if(!e.gutter)return 0;const x=ie(e.gutter);return x<=0?0:x}),i=t.ref(e.modelValue);t.watch(()=>e.modelValue,x=>{i.value!==x&&(i.value=x,I(!1))});const c=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),u=t.ref(),f=t.ref(!1),m=()=>{const x=!f.value;h(x)},h=x=>{const $=x;$?(f.value=$,setTimeout(()=>{c.value["fox-tabs-bar__popup--show"]=!0,c.value["fox-tabs-bar__popup--hide"]=!1},0)):(c.value["fox-tabs-bar__popup--show"]=!1,c.value["fox-tabs-bar__popup--hide"]=!0,u.value?u.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},y=t.ref(),g=t.ref([]),k=(x,$)=>{g.value[$]=x},S=x=>$=>{k($,x)},d=(x,$)=>{const j=y.value,O=g.value;if(!j||!O||!O[x])return;const Q=O[x];let H=0;e.direction==="vertical"?H=Q.offsetTop-(j.offsetHeight-Q.offsetHeight)/2:H=Q.offsetLeft-(j.offsetWidth-Q.offsetWidth)/2,p(j,H,$?0:.3,e.direction)},p=(x,$,j,O)=>{let Q=0;const H=O==="horizontal"?x.scrollLeft:x.scrollTop,R=j===0?1:Math.round(j*1e3/16);function P(){O==="horizontal"?x.scrollLeft+=($-H)/R:x.scrollTop+=($-H)/R,++Q<R&&Fe(P)}P()},b=x=>x[e.textKey],C=x=>x[e.valueKey],B=x=>x[e.visibleKey],A=x=>x[e.disabledKey],E=(x,$)=>{const j=e.itemOptions;return typeof j=="function"?j(x,$):j||null},V=(x,$)=>{const j=C(x),O={};O[`${On}__titles-item`]=!0,O.disabled=A(x),O.active=j===i.value,e.shape&&(O[`${e.shape}`]=!0),e.ellipsis&&(O.ellipsis=!0);const Q=E(x,$);return Q&&(Q.class&&(O[`${Q.class}`]=!0),Q.disabled===!0&&(O.disabled=Q.disabled)),O},q=(x,$)=>{const j={};if(s.value>0){const Q=Math.abs(s.value/2);e.direction==="vertical"?(j["margin-top"]=`${Q}px`,j["margin-bottom"]=`${Q}px`):(j["margin-left"]=`${Q}px`,j["margin-right"]=`${Q}px`)}const O=E(x,$);return O&&O.style&&Object.assign(j,O.style),j},N=(x,$)=>`${C(x)??$}`,T=(x,$)=>{const j=C(x),O={};O[`${On}__popup-item`]=!0,O.disabled=A(x),O.active=j===i.value,e.shape&&(O[`${e.shape}`]=!0);const Q=E(x,$);return Q&&Q.disabled===!0&&(O.disabled=Q.disabled),O},L=t.computed(()=>(e.data??[]).filter($=>B($)!==!1)),F=(x,$)=>{const j=C(x);i.value=j,e.scroll&&d($,!1),l("update:modelValue",j),l("change",x,$)},D=(x,$)=>{F(x,$),h(!1)},I=x=>{if(!Array.isArray(e.data)||!e.scroll)return;const $=e.data.findIndex(j=>C(j)===i.value);$!==-1&&d($,x)};return t.watch(()=>e.data,()=>{setTimeout(I,0)}),t.onMounted(()=>{I(!0)}),{classes:o,titlesClasses:a,titlesStyles:r,itemClasses:V,itemStyles:q,itemKey:N,popupItemClasses:T,filterTabItems:L,getItemText:b,getItemValue:C,onTabChange:F,titlesRef:y,createItemRefs:S,togglePopupVisible:m,onQuickNavigate:D,popupClasses:c,popupVisible:f,popupRef:u}}}),Jm={class:"fox-tabs-bar"},_m=["onClick"],ep={class:"fox-tabs-bar__titles-item-text"},tp=t.createElementVNode("view",{class:"fox-tabs-bar__titles-item-line"},null,-1),np=["onClick"];function op(e,n,l,o,a,r){const s=t.resolveComponent("MoreH");return t.openBlock(),t.createElementBlock("view",Jm,[t.createElementVNode("view",{ref:"titlesRef",class:t.normalizeClass(e.titlesClasses),style:t.normalizeStyle(e.titlesStyles)},[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:e.createItemRefs(c),class:t.normalizeClass(e.itemClasses(i,c)),style:t.normalizeStyle(e.itemStyles(i,c)),key:e.itemKey(i),onClick:u=>e.onTabChange(i,c)},[t.renderSlot(e.$slots,"item",{item:i,index:c},()=>[t.createElementVNode("view",ep,t.toDisplayString(e.getItemText(i)),1),tp])],14,_m))),128))])],6),e.showQuickNavigation?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs-bar__navigation",onClick:n[0]||(n[0]=(...i)=>e.togglePopupVisible&&e.togglePopupVisible(...i))},[t.renderSlot(e.$slots,"navigation",{},()=>[t.createVNode(s)])])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("view",{ref:"popupRef",class:t.normalizeClass(e.popupClasses)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.popupItemClasses(i,c)),key:e.itemKey(i),onClick:u=>e.onQuickNavigate(i,c)},[t.renderSlot(e.$slots,"popup-item",{item:i,index:c},()=>[t.createTextVNode(t.toDisplayString(e.getItemText(i)),1)])],10,np))),128))],2),[[t.vShow,e.popupVisible]])])}const ol=_(Zm,[["render",op]]),ds=Symbol("TabsStatesKey"),{create:lp}=X("tabs-container"),ap=lp({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:f=>{const m={name:f};o.current.value===f&&(m.loaded=!0),l.value.push(m),t.triggerRef(l)},remove:f=>{const m=l.value.findIndex(h=>h.name===f);m!==-1&&l.value.splice(m,1)},isLoaded:f=>{const m=l.value.findIndex(h=>h.name===f);return m!==-1?o.current.value?l.value[m].loaded??!1:m===0:!1}};t.provide(ds,o);const a=f=>{const m=l.value.findIndex(h=>h.name===f);m!==-1&&(l.value[m].loaded=!0,t.triggerRef(l))};t.watch([()=>e.modelValue,()=>e.direction],([f,m])=>{o.current.value!==f&&(o.current.value=f??"",a(f??"")),o.direction.value!==m&&(o.direction.value=m)});const r=t.ref(null),s=t.ref(null),i=t.computed(()=>({"fox-tabs-container":!0,[`${e.direction}`]:!0})),c=t.computed(()=>{const f={},m=l.value.length;if(m<=0)return f;const h=l.value.findIndex(y=>y.name===o.current.value);return o.direction.value==="vertical"?o.tabHeight.value>0&&(f.height=`${m*o.tabHeight.value}px`,h!==-1&&(f.transform=`translate(0, -${h*o.tabHeight.value}px)`)):o.tabWidth.value>0&&(f.width=`${m*o.tabWidth.value}px`,h!==-1&&(f.transform=`translate(-${h*o.tabWidth.value}px, 0)`)),f});let u=null;return t.onMounted(()=>{if(!r.value)return;const f=()=>{const m=pn(r.value);o.tabWidth.value=m.width,o.tabHeight.value=m.height};window.ResizeObserver&&(u=new window.ResizeObserver(f),u.observe(r.value)),f()}),t.onBeforeUnmount(()=>{u&&(u.disconnect(),u=null)}),{tabsRef:r,panesRef:s,classes:i,panesStyles:c}}});function rp(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=_(ap,[["render",rp]]),{create:sp}=X("tabs-pane"),ip=sp({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(ds);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}}}),cp={class:"fox-tabs-pane__empty"},dp=t.createElementVNode("view",{class:"fox-tabs-pane__empty-text"},"loading",-1);function up(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",cp,[t.createVNode(s,{class:"fox-tabs-pane__empty-icon"}),dp])])],4)}const al=_(ip,[["render",up]]),fp={direction:{type:[String],default:"horizontal"},mode:{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"},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 mp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function us(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function fs(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function pp(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 sl(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let hp=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=Xe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(a,null,[l,o]))}};function gp(){const e=t.getCurrentInstance();return new hp(e.proxy)}function yp(e,n,l,o){return{props:{...fp},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:s}){const i=e,c=gp(),u=t.ref([]),f=t.computed(()=>u.value.filter(R=>pp(a,R)!==!1)),m=t.ref(-1),h=()=>{const R=a.modelValue,P=f.value.findIndex(W=>us(a,W)===R);m.value!==P&&(m.value=P,a.scroll&&Q(P,!1))};t.watch([()=>a.modelValue,f],()=>{h()});const y=R=>m.value===R,g=R=>{if(R<0&&R>=f.value.length)return!1;const P=f.value[R],z=(sl(a,P,R)??{}).status??rl(a,P);return y(R)||z},k=t.computed(()=>{const R={[i]:!0};return a.mode?R[`is-${a.mode}`]=!0:a.direction&&(R[`is-${a.direction}`]=!0),a.scroll&&(R["is-scroll"]=!0),R}),S=t.computed(()=>({})),d=(R,P,W,z)=>{const v={[`${i}__step`]:!0};return z&&(v[`${z}`]=!0),R===m.value?v["is-active"]=!0:P==="done"?v["is-done"]=!0:P==="error"?v["is-error"]=!0:P==="half"?v["is-half"]=!0:W?v["is-disabled"]=!0:v["is-normal"]=!0,v},p=(R,P={})=>{const W={...P};return R===f.value.length-1?W.flex="0 0 auto":a.step?a.direction==="vertical"?W.height=a.step:W.width=a.step:W.flex="1 1 100%",W},b=(R,P)=>{let W={};if(P<f.value.length-1){const z=P+1;g(P)&&g(z)?a.direction==="vertical"?W.height="100%":W.width="100%":W.opacity="0"}return W},C=R=>f.value.length-1===R,B=(R,P)=>{debugger;if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&P>m.value||m.value===P)return;const W=m.value,z=P;m.value=P,a.scroll&&Q(P,!1);const v=us(a,R);s("update:modelValue",v);const M={fromIndex:W,currentIndex:z,item:R,items:f.value,clickNavigatePolicy:a.clickNavigatePolicy};s("change",v,M)},A=t.ref(!0),E=async(R,P)=>{try{const W=await c.load("stesbar",R,P);Array.isArray(W)&&(u.value=W),A.value=!1}catch(W){console.error("[FoxUI] Load StepsBar Data Fail",W),u.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([R,P])=>{R&&E(R,P)},{immediate:!0});const V=(R,P,W,z)=>{let v=null;if(r.icon)v=r.icon({item:R,index:P,status:W});else if(W==="done"){const U={};a.iconSize&&(U.width=a.iconSize,U.height=a.iconSize);const Y=a.icon??l;v=t.h(Y,U)}else v=t.h("span",{},[`${P+1}`]);const M={class:"fox-steps-bar__icon",onClick:()=>{z||B(R,P)}};return t.h("view",M,[v])},q=(R,P,W)=>{const z=t.h("i",{class:"fox-steps-bar__line-inner",style:b(R,P)});return t.h("view",{class:"fox-steps-bar__line"},[z])},N=()=>{let R=null;if(r.markIcon)R=r.markIcon();else{const W={};a.iconSize&&(W.width=a.markIconSize,W.height=a.markIconSize);const z=a.markIcon??o;R=t.h(z,W)}return t.h("view",{class:"fox-steps-bar__mark"},[R])},T=(R,P,W,z)=>{const v=[];if(!C(P)){const Y=q(R,P);v.push(Y)}const M=V(R,P,W,z);v.push(M);const U={class:"fox-steps-bar__head"};return t.h("view",U,v)},L=(R,P,W,z)=>{let v=null;r.main?v=r.main({item:R,index:P,status:W}):v=mp(a,R);const M={class:"fox-steps-bar__main",onClick:()=>{z||B(R,P)}};return t.h("view",M,[v])},F=(R,P,W)=>{let z=null;if(r.sub){z=r.sub({item:R,index:P,status:W});const v={class:"fox-steps-bar__sub"};return t.h("view",v,[z])}return null},D=(R,P)=>{const W=sl(a,R,P)??{},z=W.status??rl(a,R);let v=fs(a,R);W.disabled===!0&&(v=!0),a.disabled===!0&&(v=!0);const M=[],U=V(R,P,z,v);U&&M.push(U);const Y=L(R,P,z,v);Y&&M.push(Y);const J=q(R,P);J&&M.push(J);const K=t.h("view",{class:"fox-steps-bar__head"},M),Z=W.class,G=W.style??{},te={ref:O(P),class:d(P,z,v,Z),style:p(P,G)};return t.h("view",te,[K])},I=(R,P)=>{const W=sl(a,R,P)??{},z=W.status??rl(a,R);let v=fs(a,R);W.disabled===!0&&(v=!0),a.disabled===!0&&(v=!0);const M=[],U=a.layout;for(let Z of U)if(Z==="head"){const G=T(R,P,z,v);M.push(G)}else if(Z==="main"){const G=L(R,P,z,v);M.push(G)}else if(Z==="sub"){const G=F(R,P,z);M.push(G)}else if(Z==="mark"){const G=N();M.push(G)}const Y=W.class,J=W.style??{},K={ref:O(P),class:d(P,z,v,Y),style:p(P,J)};return t.h("view",K,M)},x=t.ref(),$=t.ref([]),j=(R,P)=>{$.value[P]=R},O=R=>P=>{j(P,R)},Q=(R,P)=>{const W=x.value,z=$.value;if(!W||!z||!z[R])return;const v=z[R];let M=0;a.direction==="vertical"?M=v.offsetTop-(W.offsetHeight-v.offsetHeight)/2:M=v.offsetLeft-(W.offsetWidth-v.offsetWidth)/2,H(W,M,P?0:.3,a.direction)},H=(R,P,W,z)=>{let v=0;const M=z==="horizontal"?R.scrollLeft:R.scrollTop,U=W===0?1:Math.round(W*1e3/16);function Y(){z==="horizontal"?R.scrollLeft+=(P-M)/U:R.scrollTop+=(P-M)/U,++v<U&&Fe(Y)}Y()};return()=>{const R=[];if(a.mode==="simple")for(let W=0;W<f.value.length;W++){const z=f.value[W],v=D(z,W);R.push(v)}else for(let W=0;W<f.value.length;W++){const z=f.value[W],v=I(z,W);R.push(v)}const P={ref:x,class:k.value,style:S.value};return t.h("view",P,R)}}}}const{componentName:kp,create:bp,scope:Sp}=X("steps-bar"),il=bp(yp(kp,Sp,ne.Checklist,ne.ArrowRight)),ms=10;function Cp(e,n){return e>n&&e>ms?"horizontal":n>e&&n>ms?"vertical":""}function wp(){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=Cp(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 Np(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bp(e){e.stopPropagation()}function Ap(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Bp(e)}class Vp{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=Np()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const l=wp(),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),Ap(a,!0),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 Tp(e,n){return new Vp(e,n)}const $p={top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},draggable:{type:[Boolean]}},Ep=(e,n,l,o=!1)=>({props:{...$p},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(()=>({[`${e}`]:!0})),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),p}),f=t.computed(()=>({[`${e}__icon`]:!0})),m=()=>{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=Tp(p=>{if(!h.value)return;const b=h.value;y(),i.left=b.offsetLeft,i.top=b.offsetTop,b.style.left=`${i.left}px`,b.style.top=`${i.top}px`,b.style.right=null,b.style.bottom=null,g.x=i.left,g.y=i.top},p=>{if(!h.value)return;const b=h.value;y(),i.left=g.x+p.x,i.top=g.y+p.y,b.style.left=`${i.left}px`,b.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 b=typeof r.default=="function"?r.default():[];if(b&&b.length>0)p=b;else{const B=t.h(l,{class:f.value});p.push(B)}const C={ref:B=>{h.value=B},class:c.value,style:u.value,onClick:m};return t.h("view",C,p)}}}),{componentName:Dp,create:Ip,scope:qp}=X("floating-button"),cl=Ip(Ep(Dp,qp,ne.Uploader,!1)),xp={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}},Mp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function zp(e,n,l){return{props:{...xp},setup(o,{attrs:a,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["confirmText","cancelText"]),c=e,u=t.ref(!0),f=C=>{u.value=C},m=C=>{if(typeof o.unmount=="function")try{o.unmount()}catch(B){console.error(B)}if(typeof o.callback=="function")try{o.callback(C)}catch(B){console.error(B)}},h=()=>{m("confirm")},y=()=>{m("cancel")},g=()=>{m("close")},k=(C,B)=>Mp(C)?(B.src=C,t.h("img",B)):typeof C=="string"?(Array.isArray(B.class)?B.class.push(C):B.class&&typeof B.class=="object"?B[`${C}`]=!0:typeof B.class=="string"?B.class=`${B.class}, ${C}`:B.class=C,t.h(o.tag,B)):t.h(C,B),S=()=>{const C=[];if(o.icon){const A={class:[`${c}__header-icon`]},E=k(o.icon,A);C.push(E)}if(o.title){const A=t.h("view",{class:`${c}__header-title`},[o.title]);C.push(A)}if(o.showClose&&o.closeIcon){const A={class:[`${c}__header-close-icon`],onClick:g},E=k(o.closeIcon,A);C.push(E)}const B={class:[`${c}__header`]};return t.h("view",B,C)},d=(C,B)=>{const A=[];if(B){const V={class:`${c}__group-title`},q=t.h("view",V,[B]);A.push(q)}if(C){const V=[];Array.isArray(C)||(C=[C]);for(let q of C){const N={class:`${c}__group-row`,innerHTML:q},T=t.h("view",N);V.push(T)}if(V.length>0){const q={class:`${c}__group-rows`},N=t.h("view",q,V);A.push(N)}}if(A.length===0)return null;const E={class:`${c}__group`};return t.h("view",E,A)},p=()=>{const C=[];if(typeof o.message=="string"){const B=d(o.message);C.push(B)}else if(Array.isArray(o.message))for(let B of o.message)if(typeof B=="string"){const A=d(B);C.push(A)}else{const A=d(B.content,B.title);C.push(A)}else if(typeof o.message=="function"){const B=o.message();C.push(B)}else{const B=o.message;C.push(B)}return C},b=()=>{const C=[];if(o.showCancelButton){const A={class:[`${c}__footer-button`],style:{},onClick:y};o.cancelButtonClass&&A.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(A.style,o.cancleButtonStyle);const E=t.h("button",A,[o.cancelButtonText??i.cancelText.value]);C.push(E)}if(o.showConfirmButton){const A={class:[`${c}__footer-button`],style:{},onClick:h};o.confirmButtonClass&&A.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(A.style,o.confirmButtonStyle);const E=t.h("button",A,[o.confirmButtonText??i.confirmText.value]);C.push(E)}if(C.length===0)return null;const B={class:`${c}__footer`};return t.h("view",B,C)};return()=>{const C=[],B=S();B&&C.push(B);const A=p();A&&C.push(A);const E=b();E&&C.push(E);const V={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},q=t.h("view",V,C),N=[`${c}__popup`];o.popClass&&N.push(o.popClass);const T={};o.width&&(T.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(T.height=typeof o.height=="number"?`${o.height}px`:o.height);const L={popClass:N.join(" "),style:T,visible:u.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":f,position:o.position,round:"round",onClickOverlay:g,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(l,L,{default:()=>q})}}}}const{componentName:Lp,create:Pp,scope:Fp}=X("messagebox"),Rp=Pp(zp(Lp,Fp,de)),Op="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",vp="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",Kp="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",Up="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",Hp=new Bo,jp={showCancelButton:!0,cancelButtonText:"取消",showConfirmButton:!0,confirmButtonText:"确认"},Wp=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-${Hp.get()}`;o.id=a,e.unmount=()=>{const s=document.querySelector(`#${a}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(Rp,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=Kp:r==="warning"?a.icon=Up:r==="error"?a.icon=Op:a.icon=vp),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(f){console.error(f)}s({action:u})},Wp(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}};function Yp(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 Xp={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 Qp(e,n,l=!1){return{props:{...Xp},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;Yp(y,k=>{r.value=k<=g})}};let f=null;t.onMounted(()=>{if(!pe(o.showOverflowTooltip))return;const y=s.value;u(y),y&&window.ResizeObserver&&(f=new window.ResizeObserver(()=>{u(y)}),f.observe(y))}),t.onUnmounted(()=>{f?.disconnect()});const m=(y,g)=>{let k=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const S=o.highlightFilter;if(y.indexOf(S)!==-1){const p=y.replace(new RegExp(S,"g"),`<span>${S}</span>`);g.innerHTML=p,g.class["is-highlight"]=!0,k=t.h(o.tag,g)}}else if(typeof o.highlightFilter=="function"){const S=o.highlightFilter(y);S&&(g.innerHTML=S,g.class["is-highlight"]=!0,k=t.h(o.tag,g))}return k},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 b=p[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const C=he(o.digits),B=he(o.decimalLength),A=pe(o.autoPadding);let E=`${p[0].children}`,V=E.split("").reverse().join("");V=Gt(V,B,A,C,o.separator),E=V.split("").reverse().join(""),o.highlightFilter!==void 0&&(g=m(E,y)),g||(y.innerHTML=E,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 b=p[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const C=`${p[0].children}`;g=m(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 S=null;if(o.icon){const p={[`${e}__mark-wrap`]:!0};o.type&&(p[`${e}__mark-wrap--${o.type}`]=!0);const b={},C=o.color;C&&(b.color=C);const B={class:p,style:b};S=t.h("view",B,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 b={},C=o.color;C&&(b.color=C);const B={class:p,style:b};S=t.h("view",B,{default:a.slots.mark})}else{const p={[`${e}__mark`]:!0};o.type&&(p[`${e}__mark--${o.type??"default"}`]=!0);const b={},C=o.color;C&&(b["background-color"]=C);const B={class:p,style:b};S=t.h("view",B)}const d={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}};return t.h("view",d,[S,g])}}}}const{componentName:Gp,create:Zp,scope:Jp}=X("text"),dl=Zp(Qp(Gp,Jp,!1));function _p(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 f=r[u],m=c.find(h=>h[o]===f);if(!m)break;s.push(m[l])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let u=n[c],f=r[c];const m=u.find(h=>h[o]===f);if(!m)break;s.push(m[l])}else{let c=n;for(let u=0;c&&u<r.length;u++){let f=r[u],m=c.find(h=>h[o]===f);if(!m)break;s.push(m[l]),c=m[a]}}return s}class eh{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=Xe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}}function th(){const e=t.getCurrentInstance();return new eh(e.proxy)}const nh={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 oh(e,n,l=!1){return{props:{...nh},setup(o,{attrs:a,slots:r}){const s=th(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([f,m])=>{i.value=await s.load(o.sourceType,f,m)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=_p(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const f={...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,f,{default:()=>c.value}):t.h(u,f,c.value)}}}}const{componentName:lh,create:ah,scope:rh}=X("mapping"),ul=ah(oh(lh,rh,!1));function sh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:o}){return nr(l.name,()=>l.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:D2,create:ih,scope:I2}=X("domain-provider"),fl=ih(sh()),ch={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:ch,setup(l,{slots:o}){if(_e&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const s=(h,y)=>{if(f===null){r.set(h,{visible:null,callback:y});return}a.has(h)&&f.unobserve(h),a.set(h,{visible:null,callback:y}),f.observe(h)},i=h=>{if(f===null){r.delete(h);return}a.has(h)&&(a.delete(h),f.unobserve(h))};let c=l.initialVisibleObserverSize;$i({acquire:()=>{const h=c>0;return c--,h},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:s,unobserve:i});let f=null;const m=(h,y,g)=>{f=new IntersectionObserver(k=>{for(let S of k){let d=!1;S.intersectionRatio>0&&(d=!0);const p=a.get(S.target);if(p)try{if(l.loadPolicy==="lazy"&&!d&&p.visible!==null)return;p.visible=d,p.callback(d)}catch(b){console.error(b)}}},{root:h,rootMargin:y,threshold:g}),r.forEach((k,S)=>{a.set(S,k),f?.observe(S)}),r.clear()};t.watch([()=>l.root,()=>l.disabled],([h,y])=>{if(y||!h||f)return;let g=null;typeof h=="string"?g=document.querySelector(h):g=h,g&&m(g,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:q2,create:uh,scope:x2}=X("rolling-provider"),ml=uh(dh()),{componentName:fh,create:mh}=X("cell"),ph=mh({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=fh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:me(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:l,baseStyle:o}}}),hh={key:0,class:"fox-cell__icon"},gh={key:1,class:"fox-cell__title"},yh={class:"title"},kh={class:"fox-cell__title-desc"};function bh(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",hh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",gh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",yh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",kh,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 pl=_(ph,[["render",bh]]),{componentName:Sh,create:Ch}=X("cell-group"),wh=Ch({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Sh]:!0}))}}}),Nh={key:1,class:"fox-cell-group__title"},Bh={key:3,class:"fox-cell-group__desc"},Ah={class:"fox-cell-group__wrap"};function Vh(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",Nh,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",Bh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Ah,[t.renderSlot(e.$slots,"default")])],2)}const hl=_(wh,[["render",Vh]]),{componentName:Th,create:$h}=X("image"),Eh=$h({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=Th;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(k=>{k.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=me(e.width)),e.height&&(y.height=me(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=me(e.radius)),y}),u=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,y=>{l.isError=!1,l.loading=!0});const f=()=>{l.loading=!1,n("load")},m=()=>{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:m,load:f,show:r,imgRef:s}}}),Dh=["src","date-src","alt"],Ih={key:0,class:"fox-img-loading"},qh={key:1,class:"fox-img-error"};function xh(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,Dh),e.loading?(t.openBlock(),t.createElementBlock("div",Ih,[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",qh,[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 gl=_(Eh,[["render",xh]]),{create:Mh}=X("layout"),yl=Mh({}),{componentName:zh,create:Lh}=X("col"),Ph=Lh({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=zh,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 Fh(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 kl=_(Ph,[["render",Fh]]),{componentName:Rh,create:Oh}=X("row"),vh=Oh({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=Rh;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"?`
5
+ */function Gt(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 Bt(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=Bt(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=At(e),n=At(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=At(e.replace(".","")),n=At(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=At(Ds(m,r)),l==1&&(m="-"+m),m}function Ds(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 At(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=Gt(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(Bt(i,l-2))}function Zn(e,n){return e=e.toString(),n=n.toString(),n=Jn(n),Gt(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(),qa(e),qa(n);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=Zn(e,Qn(n,Bt(Gn(e,n),0,ke.FLOOR)));return l+o}function qa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function xa(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 Bt(n,l,o)}round(n=0,l=ke.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new se(Bt(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),Gt(n,l)}add(n){return new se(Gt(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),xa(n,l)}compareTo(n){return xa(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 Zt(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 La(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 Pa(e){return e==null}const Jt=Array.isArray,Is=e=>en(e)==="[object Map]",qs=e=>en(e)==="[object Set]",Oe=e=>e instanceof Date,_t=e=>typeof e=="function",Fa=e=>typeof e=="string",xs=e=>typeof e=="symbol",$e=e=>e!==null&&typeof e=="object",$t=e=>$e(e)&&_t(e.then)&&_t(e.catch),Ra=Object.prototype.toString,en=e=>Ra.call(e),to=e=>en(e)==="[object Object]",Oa=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ms(e){return e.__esModule||Oa&&e[Symbol.toStringTag]==="Module"}const zs=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=zs?Promise.resolve():null;function Ls(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 he(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ge(e){return typeof e=="number"?e:Number(e)}const Ps={"[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):Ps[l]||"object"}function tn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function va(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"||va(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 Fs(e,n=[]){let l=n;return e!=null&&(Ka(Object(e))?Ua(l,typeof e=="string"?[e]:e):l.push(e)),l}function xe(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(!xe(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(!xe(r,s))return!1}return!0}return!1}function Ha(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function ja(e){return de(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),de(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 Rs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(l=>{if(xe(e,l))return!0}):n.indexOf(e)}function Os(e,n){if(typeof e=="object"||Array.isArray(e)){let l=n.reverse().findIndex(o=>{if(xe(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 me(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()},ve=(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 nn(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 vs(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 Ks{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 Ks;function Us(e){Ga=e}function Hs(e,n){ot(Je).setValidator(e,n)}function js(e){ot(Je).deleteValidator(e)}let Za=["blur","clear"];function Ws(e){Za=e}function Ja(){return Za}let _a=["focus","change"];function Ys(e){_a=e}function er(){return _a}function Xs(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 on(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=on(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=on(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=on(n):this.rules=on([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 ln(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 Qs{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 ct(e,n){let l=null;return function(...o){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...o])},n)}}function an(e,n){let l=0;return function(...o){const a=new Date().getTime();a-l<n||(l=a,Reflect.apply(e,null,[...o]))}}function Gs(e,n){const l=ct((o,a)=>{e=o,a()},n);return t.customRef((o,a)=>({get(){return o(),e},set(r){l(r,a)}}))}function Zs(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 qe=Symbol("DomainKey"),dt=Symbol("DataItemsKey");class rn{_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 Js=new rn;function ut(){return Js}function Ue(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[qe]??t.inject(qe,null):t.inject(qe,null)}const uo=Symbol("OriginalDateKey");function fo(e,n,l=[],o){const a=t.getCurrentInstance(),r=a?.proxy;let s=t.inject(qe,null);s===null&&(s=ut());const i=e||n.prop||n.name,c=new rn(i);c.parent=s;const u=k=>{r[uo]||h(k),c.set("modelValue",k)},m=()=>c.getForSelf("modelValue")??null,f=()=>r[uo]??null,h=k=>{const S={};et(!0,S,t.toRaw(k)),r[uo]=S};t.isReactive(n)||typeof n=="function"?t.watch(n,k=>{c.merge(k,l)},{immediate:!0}):c.merge(n,l),n.modelValue&&h(n.modelValue),r[qe]=c,t.provide(qe,c);let y=null,g=null;if(a!==null){const k=t.inject(Se,null);y=nn(r,k,i,o),c.broadcast=y,r[Se]=y,t.provide(Se,y),r.broadcast=(d,p,...b)=>Reflect.apply(y.emit,y,[d,p,...b]);const S=t.inject(Ke,null);g=ln(r,S,{componentName:""}),c.validateSchema=g,r[Ke]=g,t.provide(Ke,g),r[dt]=new Map,r.validate=(d=!0)=>{const p=[];let b=null;const C={deep:!1};if(d===!0)b={name:"*"};else if(Array.isArray(d)&&d.length>0){const A=d;b={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;b={name:$=>$?N.indexOf($)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const N=A.exclude;b={name:$=>$?N.indexOf($)===-1:!1}}else b={name:"*"}}if(b){const A=y?.emitToChildren(b,"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($=>{$.pass===!1&&Array.isArray($.errors)&&(N=[...N,...$.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(d,p=!0,b=!1)=>{if(b===!0){Reflect.ownKeys(d).forEach(A=>{let N=String(A);const T=ar(c,N,{componentName:"",fieldName:N,pureDataValidate:!0},y,g);r[dt].set(N,T);const q=d[N];q&&T.validateSchema.setRule(q)});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 b=d;p={name:C=>C?b.indexOf(C)!==-1:!1}}else if(d!=null&&typeof d=="object"){const b=d;if(Array.isArray(b.include)&&b.include.length>0){const C=b.include;p={name:A=>A?C.indexOf(A)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const C=b.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 b={};if(et(!0,b,f()??{}),Array.isArray(d))d.forEach(C=>{p[C]=b[C]});else if(d&&Array.isArray(d.include))(d.include??[]).forEach(A=>{p[A]=b[A]});else if(d&&Array.isArray(d.exclude)){let C=d.exclude??[];Reflect.ownKeys(b).forEach(A=>{C.includes(A)||(p[A]=b[A])})}else Object.assign(p,b);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[qe]=void 0,r[dt]&&(r[dt].clear(),r[dt]=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(qe,null);r===null&&(r=ut());const s=e||n.prop||n.name,i=new rn(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[qe]=i,t.provide(qe,i),t.onUnmounted(()=>{i.destroy(),a[qe]=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=nn(a,s,r,l);a[Se]=i,t.provide(Se,i),a.broadcast=(g,k,...S)=>Reflect.apply(i.emit,i,[g,k,...S]);const c=t.inject(Ke,null);e.fieldName=e.fieldName??r;const u=ln(a,c,e);a[Ke]=u,t.provide(Ke,u),lr(a,u,r),a.validate=(g=null)=>{const k=[];let S=!1,d=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)d=!0,S=!0;else if(g&&typeof g=="object"){const p=g;p.ignoreHidden===!0&&tn(a.$el)?d=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),d=!0),S=p.deep??!1}else typeof g=="boolean"&&(S=g),d=!0;if(d){const p=u?.validate();k.push(p)}if(S){let p=null;const b={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(b.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",b);Reflect.apply([].push,k,C)}}return k.length==1?k[0]:k.length>1?Promise.all(k).then(p=>{let b=[];return p.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(b=[...b,...C.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=g=>u?.setRule(g),a.setNameValidateRules=(g,k=!1)=>{const S=g[r];if(S&&u?.setRule(S),k){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 k=null;if(g===!0)k={name:"*"};else if(Array.isArray(g)&&g.length>0){const S=g;k={name:d=>d?S.indexOf(d)!==-1:!1}}else if(g!=null&&typeof g=="object"){const S=g;if(Array.isArray(S.include)&&S.include.length>0){const d=S.include;k={name:p=>p?d.indexOf(p)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const d=S.exclude;k={name:p=>p?d.indexOf(p)===-1:!1}}else k={name:"*"}}k&&i.emitToChildren(k,"clearValidate",!1)};const m=new Qs(a);a[nr]=m;const f=ct((g="validate")=>{g==="reset"?u.clear():u.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ja()).forEach(g=>{m.on(g,k=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:er()).forEach(g=>{m.on(g,k=>{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,...k)=>{Reflect.apply(m.emit,m,[g,...k])},onEvent:(g,k)=>{Reflect.apply(m.on,m,[k])},offEvent:(g,k)=>{Reflect.apply(m.off,m,[k])}}}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=ln({},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 k={deep:!1};if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const S=m;g={name:d=>d?S.indexOf(d)!==-1:!1}}else if(m!=null&&typeof m=="object"){const S=m;if(Array.isArray(S.include)&&S.include.length>0){const d=S.include;g={name:p=>p?d.indexOf(p)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const d=S.exclude;g={name:p=>p?d.indexOf(p)===-1:!1}}else g={name:"*"}}if(g){const S=u.emitToChildren(g,"validate",k);Reflect.apply([].push,f,S)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(g=>{let k=[];return g.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(k=[...k,...S.errors])}),k.length>0?{pass:!1,errors:k}:{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=nn(null,o,s,r);return{broadcast:u,validateSchema:c}}const pe=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=un(e,f),o.width=fn(e,f),t.watch([()=>un(e,f),()=>fn(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,k=-1,S=-1,d=0,p=0])=>{mo(m,g,n,h,k,S,d,p)}),e.set(Xe,m),m}function sn(e){return e.get(Xe)}function cn(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 dn(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 un(e,n){if(n=n??e.get(Xe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const l=cn(e,n),o=dn(e,n);return n.height-l-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function fn(e,n){return n=n??e.get(Xe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function _s(e,n){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[n,e]):!1}function ei(e){return!!e.getForParent(Xe)}var mn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(mn||{});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 he(l)})}function Be(e){return Ae(e,"disabled",0,function(l){return he(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,pn=new Map;let ho=null;function ti(e){ho=e}function ir(e,n,l){if(l){let o=pn.get(l);o||(o=new Map,pn.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=pn.get(l);a&&(o=a.get(n))}return o||(o=sr.get(n)),o}function ni(e,n){for(let l in e){const o=e[l];ir(l,o,n)}}function oi(e){pn.delete(e)}function li(){return{top:0,left:0,bottom:0,right:0}}function ai(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 ri{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=ut();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=an(()=>{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({},li(),n.safeAreaInset),s=ai(o,a),i=et({},s.pageLayout,n.pageLayout);l=l??ut(),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){ti(n)}setAPI(n,l,o){ir(n,l,o)}getAPI(n,l,o){return Qe(n,l,o)}batchSetAPI(n,l){ni(n,l)}clearScopeAPI(n){oi(n)}getRootDomain(){return ut()}}function Y(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 si=(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={};_t(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 ii=Symbol.for("InnerPageScopeKey"),ci=(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);if(a){const u=rr(a,l);Ve({getPageContentHeight:()=>un(a,u),getPageContentWidth:()=>fn(a,u),getPageHeaderHeight:()=>cn(a,u),getPageFooterHeight:()=>dn(a,u)});const m=t.inject(ii,!1);u&&m&&(u.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=(u,m=!1)=>{const f=i?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(u,!0,m)};return t.watch([()=>l.rules,()=>l.pureDataRules],([u,m],[f,h])=>{if(u&&f){const y=t.toRaw(f),g=t.toRaw(u),k=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(d=>{k.includes(d)||(g[d]=[])}),c(g)}if(m&&h){const y=t.toRaw(h),g=t.toRaw(m),k=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(d=>{k.includes(d)||(g[d]=[])}),c(g,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const u=t.toRaw(l.rules);c(u)}if(l.pureDataRules){const u=t.toRaw(l.pureDataRules);c(u,!0)}}),{classes:r,styles:s}}}),{componentName:di,create:ui,scope:F2}=Y("page"),fi=ui(ci(di));function mi(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=_(fi,[["render",mi]]);function hn(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 pi=(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?sn(s):null;i&&(i.headerMounted=!0);const c=e,u=t.computed(()=>({[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed,[`${c}--safe-area-inset-top`]:a.safeAreaInsetTop})),m=t.computed(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),f=a.height!==null&&a.height!==void 0?ie(a.height):null,h=t.computed(()=>{const B={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const V=ze(a.padding??i.headerPadding);return Object.assign(B,V),f&&(i.headerHeight=f),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(f&&(B.height=f),a.padding){const V=ze(a.padding);Object.assign(B,V)}return B}),y=t.ref(null),g=()=>{if(i&&y.value&&!tn(y.value)){if(!o){const B=hn(y.value);i.headerAllHeight=B.height}return i.headerMounted=!0,!0}return!1};let k=null;t.onMounted(()=>{i&&(co(g,50,5,50,!0),window.ResizeObserver&&y.value&&(k=new window.ResizeObserver(()=>{g()}),k.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,k&&(k.disconnect(),k=null))});const S=t.computed(()=>{const B={};return h.value.height!==null&&h.value.height!==void 0&&(B.height=`${h.value.height}px`),h.value.top!==null&&h.value.top!==void 0&&(B.paddingTop=`${h.value.top}px`),h.value.left!==null&&h.value.left!==void 0&&(B.paddingLeft=`${h.value.left}px`),h.value.right!==null&&h.value.right!==void 0&&(B.paddingRight=`${h.value.right}px`),h.value.bottom!==null&&h.value.bottom!==void 0&&(B.paddingBottom=`${h.value.bottom}px`),B}),d=t.computed(()=>!(h.value.height!==null&&h.value.height!==void 0&&h.value.height<=0));function p(){r.emit("back")}function b(){r.emit("click-title")}function C(){r.emit("click-right")}function A(){r.emit("click-right-text")}const N=()=>{if(!a.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:p},[r.slots.leftIcon()]);B.push(V)}else if(a.leftIcon){const V=t.h("view",{class:"left-icon",onClick:p},[t.h(a.leftIcon)]);B.push(V)}if(a.leftText){const V=t.h("view",{class:"left-text",onClick:p},[a.leftText]);B.push(V)}}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 V=t.h("view",{class:"right-text",onClick:A},[a.rightText]);B.push(V)}if(r.slots.rightIcon){const V=t.h("view",{class:"right-icon",onClick:C},[r.slots.rightIcon()]);B.push(V)}else if(a.rightIcon){const V=t.h("view",{class:"right-icon",onClick:C},[t.h(a.rightIcon)]);B.push(V)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__right"},B)},T=()=>{if(!a.titleShow)return null;const B=[],V=r.slots.default?r.slots.default():null;if(V)B.push(V);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:b},[r.slots.titleIcon()]);B.push(F)}else if(a.titleIcon){const F=t.h("view",{class:"title-icon",onClick:b},[t.h(a.titleIcon)]);B.push(F)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__title"},B)},q=()=>{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(!d.value)return null;const B=[];if(r.slots.all)B.push(r.slots.all());else{const F=[],O=N();O&&F.push(O);const D=T();D&&F.push(D);const I=$();if(I&&F.push(I),F.length>0){const E=t.h("view",{class:m.value},F);B.push(E)}const x=q();x&&B.push(x)}if(B.length===0)return null;const V={class:u.value,style:S.value,ref:y};return t.h("view",V,B)}}}),{componentName:hi,create:gi,scope:yi}=Y("header-bar"),ko=gi(pi(hi,yi,ne.Left,!1));function ki(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?sn(r):null,i=t.computed(()=>{const g=e;return{[g]:!0,[`${g}--${o.align}`]:!0,[`${g}--border`]:o.border,[`${g}--fixed`]:o.fixed,[`${g}--safe-area-inset-bottom`]:o.safeAreaInsetBottom}}),c=o.height!==null&&o.height!==void 0?ie(o.height):null,u=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const k=ze(o.padding??s.footerPadding);return Object.assign(g,k),c&&(s.footerHeight=c),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(k.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(c&&(g.height=c),o.padding){const k=ze(o.padding);Object.assign(g,k)}return g}),m=t.ref(null),f=()=>{if(s&&m.value&&!tn(m.value)){if(!l){const g=hn(m.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let h=null;t.onMounted(()=>{s&&(co(f,50,5,50,!0),window.ResizeObserver&&(h=new window.ResizeObserver(()=>{f()}),h.observe(m.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,h&&(h.disconnect(),h=null))});const y=t.computed(()=>{const g={};return u.value.height!==null&&u.value.height!==void 0&&(g.height=pe(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(g.paddingTop=pe(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(g.paddingLeft=pe(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(g.paddingRight=pe(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(g.paddingBottom=pe(u.value.bottom)),g});return()=>{const g=a.slots.default?a.slots.default():[],k={ref:m,class:i.value,style:y.value};return t.h("view",k,g)}}}}const{componentName:bi,create:Si,scope:Ci}=Y("footer-bar"),bo=Si(ki(bi,Ci,!1));function wi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(l){const o=Ue(),a=t.computed(()=>({[e]:!0})),r=o?sn(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=cn(o,r),f=dn(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 k=(r&&r.contentPadding&&r.contentPadding.left)??-1;k>=0&&(u.paddingLeft=`${k}px`);const S=(r&&r.contentPadding&&r.contentPadding.right)??-1;return S>=0&&(u.paddingRight=`${S}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=ct(()=>{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:Ni,create:Bi,scope:R2}=Y("content"),Ai=Bi(wi(Ni));function $i(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=_(Ai,[["render",$i]]),ft="GroupStateKey",mr=Symbol.for("GroupScopeKey");function gn(){return t.inject(mr,!1)}function yn(e=!0){t.provide(mr,e)}function Ti(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const a=n[o];Pa(a)||(e[o]=a)})}function Vi(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ti(o,n);const a=t.shallowRef(o),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(ft,r),r}function Co(e,n,l=-1,o=-1,a=!1,r,s,i){const c=e.get(ft);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 k=ge(l);const S=ie(o);if(!y){let b=(g-(k-1)*S)/k;for(;f!==-1&&b>f;)k++,b=(g-(k-1)*S)/k;for(;m!==-1&&k>1&&b<m;)k--,b=(g-(k-1)*S)/k}let d=!1;const p=c.layout;p.value.width=n,p.value.column!==k&&(p.value.column=k,d=!0),p.value.gutter!==S&&(p.value.gutter=S,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 kn(e,n=!1){let l;return n?l=e.getForParent(ft):l=e.get(ft),l.layout}function bn(e,n=!1){let l;return n?l=e.getForParent(ft):l=e.get(ft),l.order}function pr(e,n=1){if(n==="stretch")return-1;const l=ge(n);return l===-1?100:100*l/e}function Sn(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 Cn(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=ge(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=ge(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 Ei(e){t.provide(hr,e)}function Di(){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 Ii(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 qi(e,n,l){if(e<=0)return"1fr";const o=(e-(n-1)*l)/n;return o>0?`${o}px`:"1fr"}const xi={...ue,...dr,...ur};function Mi(e,n,l){return{props:xi,emits:["update:collapse"],setup(o,a){const r=fo(o.name,o,fr),s=Vi(r,{type:o.type}),i=gn();yn(!0);const c=o.rollingDisplay?Di():null,u=t.ref(null),m=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),f=t.computed(()=>i&&r?kn(r,!0).value:null),h=t.getCurrentInstance(),y=(U,Q=!1)=>{const Z=h?.proxy;Z&&typeof Z.setNameValidateRules=="function"&&Z.setNameValidateRules(U,!0,Q)};t.watch([()=>o.rules,()=>o.pureDataRules],([U,Q],[Z,te])=>{if(U&&Z){const ee=t.toRaw(Z),le=t.toRaw(U),ae=le?Reflect.ownKeys(le):[];(ee?Reflect.ownKeys(ee):[]).forEach(be=>{ae.includes(be)||(le[be]=[])}),y(le)}if(Q&&te){const ee=t.toRaw(te),le=t.toRaw(Q),ae=le?Reflect.ownKeys(le):[];(ee?Reflect.ownKeys(ee):[]).forEach(be=>{ae.includes(be)||(le[be]=[])}),y(le,!0)}},{deep:!0});const g=e,k=t.computed(()=>{const U={};if(U.height=I.value,o.width)o.width!=="auto"&&(U.width=pe(o.width));else{const Q=i?bn(r,!0):null;if(f.value&&Q){if(f.value.type==="grid"){const Z=Cn(Q,f.value,o.span,o.offset);Object.assign(U,Z)}else if(f.value.type==="flow"){const Z=Sn(Q,f.value,o.span,o.offset,o.width);Object.assign(U,Z)}}}return U}),S=t.computed(()=>{const U=s.layout.value.type;return U==="grid"||U==="flow"?{[`${g}--${U}`]:!0,[`${g}--${U}-justify-${o.justify}`]:!0,[`${g}--${U}-align-${o.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${U}`]:!0,[`${g}--gutter`]:!0}}),d=t.computed(()=>{if(s.layout.value.type==="grid"){let Q="";if(o.columnWidth)Q=`repeat(auto-fill, ${o.columnWidth})`;else{const Z=qi(T.value,s.layout.value.column,s.layout.value.gutter);Q=`repeat(${s.layout.value.column}, ${Z})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Q}}}),p=t.toRef(o,"gutter"),b=t.toRef(o,"column"),C=t.computed(()=>i||m.value?!0:he(o.isWrap)),A=[],N=U=>{A.push(U)},$=()=>{let U=A.length;A.splice(0,U)},T=t.ref(-1),q=U=>{const Q=yo(U).width;Q>0&&Q!==T.value&&(T.value=Q)};Co(r,T.value,b.value,p.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([T,b,p],([U,Q,Z])=>{s.order.index=0,Co(r,U,Q,Z,!1,o.minItemWidth,o.maxItemWidth,o.type)});const B=t.computed(()=>x.value?o.expandText??"":o.collapseText??""),V=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),F=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!x.value,"is-collapse":x.value})),O=t.ref(),D=t.ref(),I=t.computed(()=>E.value||pe(o.height)||""),x=t.ref(!1),E=t.ref(""),j=t.ref(!1);let v=-1;const X=(U,Q=!0)=>{const Z=O.value;if(Z&&x.value!==U){if(v=v===-1?Ii(Z):v,j.value=!0,Q)if(Z.style["will-change"]="height",Z.ontransitionend=function(){Z.ontransitionend=null,this.style["will-change"]="auto",U||(E.value="",j.value=!1)},U){let te=0;o.collapseHeight?te=o.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(te=D.value.offsetHeight),E.value=`${v}px`,t.nextTick(()=>{E.value=`${te}px`})}else E.value=`${v}px`;else if(U){let te=0;o.collapseHeight?te=o.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(te=D.value.offsetHeight),E.value=`${te}px`}else j.value=!1,E.value=`${v}px`;x.value=U,a.emit("update:collapse",U)}};t.watch(()=>o.collapse,U=>{X(U)});const G=()=>{M()},M=U=>{U=U??!x.value,X(U)};Ve({toggleCollapse:M,doLayout:()=>{A[0]&&(q(A[0]),Co(r,T.value,b.value,p.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let K=null,P=!0;const R=U=>{if(o.rules){const Q=t.toRaw(o.rules);y(Q)}if(o.pureDataRules){const Q=t.toRaw(o.pureDataRules);y(Q,!0)}if(_e&&(U&&X(he(o.collapse),!1),o.autoLayout&&Array.isArray(A)&&A.length>0)){const Q=A[0];q(Q),window.ResizeObserver&&(K=new window.ResizeObserver(()=>{q(Q)}),K.observe(Q))}},z=()=>{K?.disconnect(),K=null},H=!m.value||c?.acquire();H&&(u.value=m.value?!0:null),t.onMounted(()=>{if(H&&(R(P),P=!1),m.value&&c){let U=null,Q=c.initialHeight;c.observe(O.value,Z=>{if(Z!==u.value)if(Z)u.value=!0,x.value||(E.value=""),U=setTimeout(()=>{U=null,u.value!==!1&&(R(P),P=!1)},100);else{if(U!==null&&clearTimeout(U),u.value=!1,!x.value)if(P)E.value=c.initialHeight;else{let te=wo(O.value);te<=0?E.value=Q:(E.value=`${te}px`,Q=E.value)}P||z()}})}}),t.onUnmounted(()=>{K?.disconnect(),c&&c.unobserve(O.value)});const W=(U="right")=>{const Q=[];if(B.value){const ee={class:V.value},le=t.h("span",ee,[B.value]);Q.push(le)}const Z={class:F.value},te=l(o.collapseIcon,Z);return te&&Q.push(te),Q.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${U}`]:!0},onClick:G},Q):null},J=(U,Q,Z,te)=>{const ee={...S.value};return Q===0&&(ee[`${g}__first`]=!0),Z>=te-1&&(ee[`${g}__last`]=!0),t.h("div",{ref:N,key:`${Q}`,class:ee,style:d.value},U)};return()=>{if(m.value&&u.value!==!0){const ee=o.tag||"div";return t.h(ee,{ref:O,prop:o.name,class:{[`${g}`]:!0,"is-collapse":j.value},style:k.value},[])}s.order.index=0;const U=[];let Q=0;if(a.slots.header){const ee={key:`${Q++}`,ref:D,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},le=t.h("div",ee,[a.slots.header()]);U.push(le)}else{const ee=[],le=o.collapsePosition==="left";if(le&&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()),!le&&o.showCollapse){const ae=W("right");ae&&ee.push(ae)}if(ee.length>0){const ae={key:`${Q++}`,ref:D,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},Ie=t.h("div",ae,ee);U.push(Ie)}}$();const Z=a.slots.default?a.slots.default():[],te=s.layout.value.type;if(te==="grid"){const ee=J(Z,Q++,0,Z.length);U.push(ee)}else if(te==="flow"){const ee=J(Z,Q++,0,Z.length);U.push(ee)}else for(let ee=0;ee<Z.length;ee++){const le=Z[ee],ae=J([le],Q++,ee,Z.length);U.push(ae)}if(C.value){const ee=o.tag||"div";return t.h(ee,{ref:O,prop:o.name,class:{[`${g}`]:!0,"is-collapse":j.value},style:k.value},[U])}else return U}}}}const{componentName:zi,create:Li,scope:Pi}=Y("group"),No=Li(Mi(zi,Pi,(e=ne.RectUp,n={})=>t.h(e,n)));function Fi(e){return e===window}const Ri=/matrix\((.+)\)/,gr=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Fi(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=Ri.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 Oi{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 vi{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 Oi,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 vi,kr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ki,create:Ui}=Y("price"),Hi=Ui({props:{...kr},setup(e){const n=t.computed(()=>({[Ki]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ye(e.price)==0?"":Zt(e.price,e.decimalLength,!0,ge(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"],Wi=["innerHTML"];function Yi(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,Wi)):t.createCommentVNode("",!0)],2)}const Ge=_(Hi,[["render",Yi]]),{componentName:Bo,create:Xi}=Y("hint-text"),Qi=Xi({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=(V,F,O,D,I,x)=>{const E=document.documentElement.clientWidth||document.body.clientWidth,j=document.documentElement.clientHeight||document.body.clientHeight,v=V.split("-");let X=[];v[0]==="top"?X=["top","bottom","right","left"]:v[0]==="bottom"?X=["bottom","top","right","left"]:v[0]==="left"?X=["left","top","bottom","right"]:v[0]==="right"&&(X=["right","top","bottom","left"]);const G={top:null,right:null,bottom:null,left:null},M=[];for(let L=0;L<X.length;L++){const K=X[L];if(M[0]=K,v[1]&&(M[1]=v[1]),K==="top"){const P=F.y-x-e.arrowSize-e.offset;if(P>=0){G.top=P;let R=0;v[1]==="start"?R=F.x:v[1]==="end"?R=F.x+O-I:R=F.x+O/2-I/2;const z=E-R-I;z<0?(R+=z,f.value=-z):f.value=0,G.left=R<0?0:R;break}}else if(K==="bottom"){const P=F.y+D+e.arrowSize+e.offset;if(P+x<=j){G.top=P;let R=0;v[1]==="start"?R=F.x:v[1]==="end"?R=F.x+O-I:R=F.x+O/2-I/2;const z=E-R-I;z<0?(R+=z,f.value=-z):f.value=0,G.left=R<0?0:R;break}}else if(K==="left"){const P=F.x-I-e.arrowSize-e.offset;if(P>=0){G.left=P;let R=0;v[1]==="start"?R=F.y:v[1]==="end"?R=F.y+D-x:R=F.y+D/2-x/2,G.top=R<0?0:R;break}}else if(K==="right"){const P=F.x+O+e.arrowSize+e.offset;if(P+I<=E){G.left=P;let R=0;v[1]==="start"?R=F.y:v[1]==="end"?R=F.y+D-x:R=F.y+D/2-x/2,G.top=R<0?0:R;break}}}return{bestPlacement:M.join("-"),bestInsetRect:G}},m=(V,F,O=10)=>{if(!_e||F===!1||!V)return;o.value=gr(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const D=c.value.offsetHeight,I=c.value.offsetWidth,{bestPlacement:x,bestInsetRect:E}=u(e.placement,o.value,a.value,r.value,I,D);s.value=x,l.value=E,i.value=!0},f=t.ref(0),h=ct(()=>{m(e.message,e.visible)},10),y=t.ref(e.visible);t.watch(()=>e.visible,V=>{y.value=V});const g=t.computed(()=>y.value&&k.value),k=t.ref(!0),S=ct(V=>{const F=V[0];F&&(k.value=F.isIntersecting)},10),d=new IntersectionObserver(S);t.watch([()=>e.message,()=>e.visible],([V,F])=>{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 V={[Bo]:!0};return s.value.startsWith("top")?V["is-top"]=!0:s.value.startsWith("right")?V["is-right"]=!0:s.value.startsWith("bottom")?V["is-bottom"]=!0:s.value.startsWith("right")&&(V["is-right"]=!0),e.size==="small"?V["is-small"]=!0:e.size==="large"&&(V["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(V[`${e.customClass}`]=!0),V}),b=t.computed(()=>{const V={};l.value.top!==null&&(V.top=`${l.value.top}px`),l.value.right!==null&&(V.right=`${l.value.right}px`),l.value.bottom!==null&&(V.bottom=`${l.value.bottom}px`),l.value.left!==null&&(V.left=`${l.value.left}px`),e.autoFit&&(V["min-width"]=`${a.value}px`);const F=document.documentElement.clientWidth||document.body.clientWidth;return V["max-width"]=`${F}px`,i.value&&(V.opacity="1"),e.transition||(V.transition="none"),e.zIndex&&(V["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(V,e.customStyle),V}),C=t.computed(()=>{const V=[`${Bo}__content`];return e.customTextClass&&V.push(e.customTextClass),V}),A=t.computed(()=>{const V={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(V,e.customTextStyle),V}),N=t.computed(()=>({[`${Bo}__arrow`]:!0})),$=t.computed(()=>{const V={};return e.showArrow?(V.width=`${e.arrowSize}px`,V.height=`${e.arrowSize}px`,s.value==="top"?(V.left="50%",V.bottom=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):s.value==="top-start"?(V.left=`${e.arrowOffset+f.value}px`,V.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(V.right=`${e.arrowOffset-f.value}px`,V.bottom=`-${e.arrowSize}px`):s.value==="right"?(V.left=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):s.value==="right-start"?(V.left=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):s.value==="right-end"?(V.left=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(V.left="50%",V.top=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(V.left=`${e.arrowOffset+f.value}px`,V.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(V.right=`${e.arrowOffset-f.value}px`,V.top=`-${e.arrowSize}px`):s.value==="left"?(V.right=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):s.value==="left-start"?(V.right=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):s.value==="left-end"&&(V.right=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`),V):{display:"none"}}),T=t.computed(()=>g.value&&e.closeOnClick),q=t.computed(()=>{const V={};return e.zIndex&&(V["z-index"]=`${e.zIndex}`),V});return{show:g,tipRef:c,classes:p,styles:b,textClasses:C,textStyles:A,arrowClasses:N,arrowStyles:$,overlayShow:T,overlayStyle:q,onClickOverlay:()=>{y.value=!1,n.emit("update:visible",!1)}}}});function Gi(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=_(Qi,[["render",Gi]]);class wn{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={},Zi=new wn,mt=new Map,Nn=e=>{if(e){const n=document.getElementById(e);mt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of mt.keys()){const l=document.getElementById(n);l&&l.parentNode?.removeChild(l)}mt.clear()}},Ji=e=>{e.unmount=Nn;const n=document.getElementById(e.id);if(n){const l=mt.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}},_i=e=>{e.unmount=Nn;let n=e.id??`hinttext_${Zi.get()}`;e={...Ao,...e},e.id=n,mt.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},ec=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},lt={show(e,n,l={},o=!0){ec(n);const a=l.id;return a&&mt.has(a)?Ji({...l,message:n,reference:e}):(o&&Nn(),_i({...l,message:n,reference:e}))},hide(e){Nn(e)},install(e){e.config.globalProperties.$hintText=lt}},{componentName:Sr,create:tc}=Y("item"),nc=tc({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=gn();yn(!1);const r=t.computed(()=>a&&o?kn(o,!1).value:null),s=Sr,i=t.ref(null),c=t.computed(()=>{const U={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:he(e.hasBorder)};if(U[e.errorMarkClass]=!!F.value,U[e.warnMarkClass]=!!B.value,U[e.infoMarkClass]=!!T.value,typeof i.value=="function"){const Q=i.value(l);U[Q]=!0}else if(typeof i.value=="string"){const Q=i.value;U[Q]=!0}return U}),u=t.ref(null),m=t.computed(()=>{const U={};if(e.width)e.width!=="auto"&&(U.width=pe(e.width));else{const Q=a&&o?bn(o,!1):null;if(r.value&&Q){if(r.value.type==="grid"){const Z=Cn(Q,r.value,e.span,e.offset);Object.assign(U,Z)}else if(r.value.type==="flow"){const Z=Sn(Q,r.value,e.span,e.offset,e.width);Object.assign(U,Z)}}}if(typeof u.value=="function"){const Q=u.value(l);Q&&Object.assign(U,Q)}else if(u.value&&typeof u.value=="object"){const Q=u.value;Object.assign(U,Q)}return U}),f=t.ref(null),h=t.computed({get:()=>f.value??he(e.isRequired),set:U=>{f.value=U}}),y=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),g=Ae(t.toRef(e,"labelPosition"),"labelPosition",mn.Near),k=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),S=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${k.value}`]:!0})),d=t.computed(()=>({label:!0,[`label--${k.value}`]:!0})),p=Ae(t.toRef(e,"labelWidth"),"labelWidth",mn.Near),b=t.computed(()=>p&&p.value?{width:pe(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.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ve({setRequired(U){h.value=U},setErrorTip(U){$.errorTip=U},setErrorIcon(U){$.errorIcon=U},setWarnTip(U){$.warnTip=U},setWarnIcon(U){$.warnIcon=U},setInfoTip(U){$.infoTip=U},setInfoIcon(U){$.infoIcon=U},setCustomClassName(U){i.value=U},setCustomStyle(U){u.value=U}});const T=t.computed(()=>e.infoTip||$.infoTip),q=t.computed(()=>e.infoIcon||$.infoIcon),B=t.computed(()=>e.warnTip||$.warnTip),V=t.computed(()=>e.warnIcon||$.warnIcon),F=t.computed(()=>e.errorTip||$.errorTip),O=t.computed(()=>e.errorIcon||$.errorIcon),D=t.computed(()=>F.value?"error":B.value?"warn":T.value?"info":""),I=t.computed(()=>D.value.length>0),x=t.computed(()=>D.value==="error"?F.value:D.value==="warn"?B.value:D.value==="info"?T.value:""),E=t.computed(()=>D.value==="error"?O.value:D.value==="warn"?V.value:D.value==="info"?q.value:null),j=t.computed(()=>{let U={[`${s}__tip`]:!0,[`${s}__tip--${D.value}`]:!0};return D.value==="error"&&e.errorClass?U[`${e.errorClass}`]=!0:D.value==="warn"&&e.warnClass?U[`${e.warnClass}`]=!0:D.value==="info"&&e.infoClass&&(U[`${e.infoClass}`]=!0),U}),v=t.computed(()=>{let U={};return g&&g.value==="top"||!y.value?U["padding-left"]="0px":p&&p.value&&(U["padding-left"]=pe(p.value)),U}),X=()=>{const U=E.value;return U?typeof U=="function"?t.h("div",{class:"fox-item__tip--icon"},[U()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(U)]):null},G=()=>{const U=x.value;return U?typeof U=="function"?t.h("div",{class:"fox-item__tip--text"},[U()]):t.h("div",{class:"fox-item__tip--text"},[U]):null},M=t.computed(()=>n.slots.fixedPreTip),L=t.computed(()=>({[`${s}__fixed-pre-tip`]:!0})),K=t.computed(()=>n.slots.fixedTip),P=t.computed(()=>({[`${s}__fixed-tip`]:!0})),R=t.ref();let z="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([U,Q,Z,te])=>{R.value&&(U&&!de(Q)?z?lt.show(R.value,Q,{...te,id:z,type:Z},!0):z=lt.show(R.value,Q,{...te,type:Z},!0):lt.hide(z))});let H=null;const W=()=>{H||!R.value||(H=new IntersectionObserver(U=>{let Q=!1;for(let Z of U)if(Z.intersectionRatio>0){Q=!0,Q&&n.emit("appear",Z);break}Q||n.emit("disappear")}),H.observe(R.value))},J=()=>{!H||!R.value||(H.unobserve(R.value),H=null)};return t.watch(()=>he(e.appearListen),U=>{U?W():J()}),t.onMounted(()=>{he(e.appearListen)&&W()}),t.onUnmounted(J),{classes:c,styles:m,mainClasses:S,hasLabel:y,labelClasses:d,labelStyles:b,labelStringClasses:C,contentClasses:A,contentStyles:N,contentRef:R,hasTip:I,mTip:x,mIcon:E,renderIcon:X,renderTip:G,tipClasses:j,tipStyles:v,hasFixedTip:K,fixedTipClasses:P,hasFixedPreTip:M,fixedPreTipClasses:L}}}),oc=["prop"];function lc(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,oc)}const Ce=_(nc,[["render",lc]]);function ac(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=gn();yn(!1);const c=t.computed(()=>{const u={};if(l.width)l.width!=="auto"&&(u.width=pe(l.width));else if(i&&s){const m=kn(s,!1),f=bn(s,!1);if(m.value&&f){if(m.value.type==="grid"){const h=Cn(f,m.value,l.span,l.offset);Object.assign(u,h)}else if(m.value.type==="flow"){const h=Sn(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:rc,create:sc,scope:v2}=Y("row-item"),$o=sc(ac(rc));function ic(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=gn();yn(!1);const s=t.computed(()=>r&&a?kn(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=pe(l.width));else{const f=r&&a?bn(a,!1):null;if(s.value&&f){if(s.value.type==="grid"){const h=Cn(f,s.value,l.span,l.offset);Object.assign(m,h)}else if(s.value.type==="flow"){const h=Sn(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:cc,create:dc,scope:K2}=Y("slot-item"),To=dc(ic(cc)),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 uc(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})),k=Ae(t.computed(()=>a.textAlign),"textAlign"),S=t.computed(()=>{const I={};return k.value&&(I["text-align"]=k.value),I}),d=I=>{let E=I.target.value;a.type==="digit"&&(E=lo(E,!0)),a.type==="number"&&(E=lo(E,!1)),a.maxLength&&E.length>Number(a.maxLength)&&(E=E.slice(0,Number(a.maxLength))),h.value=E,c("update:modelValue",E,I),c("change",E,I)};let p=De(a,"hintText"),b=t.ref(!1);const C=I=>{let E=I.target.value;f.value=!0,de(p.value)||(b.value=!0),c("focus",E,I)},A=I=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let E=I.target.value;a.maxLength&&E.length>Number(a.maxLength)&&(E=E.slice(0,Number(a.maxLength))),c("blur",E,I)},N=t.computed(()=>({[`${y}__append`]:!0})),$=t.computed(()=>{const I={};return r.slots.append&&!T.value&&!O.value&&(I.display="none"),I}),T=t.computed(()=>ye(a.unit)>0),q=t.computed(()=>!O.value),B=t.computed(()=>({[`${y}__unit`]:!0,hidden:!q.value})),V=I=>{h.value="",c("update:modelValue","",I),c("change","",I),c("clear","")},F=t.computed(()=>he(a.clearable)&&!s.value&&!i.value),O=t.computed(()=>{let I=ye(h.value)>0;return he(a.clearable)&&I&&f.value}),D=t.computed(()=>({action:!0,hidden:!O.value}));return()=>{const I={class:g.value,style:S.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},x=[],E=t.h("input",I);x.push(E);const j=[];if(F.value){const P={class:["action-icon"]},R=t.h(o,P),z={class:D.value,onClick:V},H=t.h("view",z,{default:()=>[R]});j.push(H)}if(T.value){const P=t.h("view",{class:B.value},[a.unit]);j.push(P)}const v={class:N.value,style:$.value},X=t.h("view",v,{default:()=>j});x.push(X);const G={default:()=>x};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 L={...ao(a,Cr),hintText:p.value,hintVisible:b.value};return t.h(l,L,G)}}}}const{componentName:fc,create:mc,scope:pc}=Y("input-item"),Vo=mc(uc(fc,pc,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=ge(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 hc(e,n=-1,l=!1,o=3,a=","){return Zt(e,n,l,o,a)}function Br(e,n,l,o,a=!0){if(e=="")return"";if(e=La(e),n=ge(n),n==1)return e;if(o)e=Nr(e,n),l&&(e=="0"&&a?e=`${e}.`.padEnd(ge(l)+2,"0"):e=_n(e,1,ge(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=he(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=he(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 gc(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],([v,X,G])=>{if(de(v)){f.value="";return}const M=Br(v,X,G,!1);f.value!==M&&(f.value=M)},{immediate:!0});const h=t.computed(()=>{let v="";return u.value&&(v=f.value),v}),{t:y}=re.useFoxI18n(n),g=t.computed(()=>{let v=a.placeholder??"";return!u.value&&!de(f.value)?v=hc(f.value,a.decimalLength,a.autoPadding,a.digits,a.separator):v=de(v)?y(["placeholder"]):v,v}),k=e,S=t.computed(()=>({[k]:!0,[`${k}--disabled`]:s.value,[`${k}__placeholder`]:f.value.length>0})),d=Ae(t.computed(()=>a.textAlign),"textAlign"),p=t.computed(()=>{const v={};return d.value&&(v["text-align"]=d.value),v}),b=t.ref(""),C=t.computed(()=>{let v=b.value;return de(v)&&(v=a.errorTip??""),v}),A=t.ref(""),N=t.ref(!1),$=v=>{let G=v.target.value;if(de(G)){f.value="",m.value="",c("update:modelValue","",v),c("change","",v),he(a.showTip)&&N.value&&(N.value=!1);return}if(G.length>=2){let M=G;if(M.charAt(0)=="-"&&(M=M.substring(1)),M.length>=2&&M.charAt(0)=="0"&&M.charAt(1)!="."){t.triggerRef(f);return}}if(G!="-"){if(!ja(G)){t.triggerRef(f);return}if(a.integerLength!=-1&&Wa(G)>Number(a.integerLength)){t.triggerRef(f);return}if(a.decimalLength&&a.decimalLength!=-1&&Ya(G)>Number(a.decimalLength)){t.triggerRef(f);return}let M=Ar(G,a);if(M.maxValid===!1){b.value=M.message,t.triggerRef(f);return}}else if(a.min!=null&&ge(a.min)>=0){t.triggerRef(f);return}A.value=G,he(a.showTip)&&(N.value=G.length>0),f.value=G,m.value=Br(G,a.rates,a.precision,!0),c("update:modelValue",m.value,v),c("change",m.value,v)},T=v=>{if(u.value=!0,he(a.showTip)){let X=f.value;de(X)&&(X=a.hintText),de(X)||(A.value=X,N.value=!0)}b.value="",c("focus",m.value,v)},q=v=>{if(setTimeout(()=>{u.value=!1,he(a.showTip)&&N.value===!0&&(N.value=!1)},0),!de(f.value)){let X=Ar(f.value,a);if(X.minValid===!1||X.maxValid===!1){b.value=X.message;return}}c("update:modelValue",m.value,v),c("blur",m.value,v)},B=t.computed(()=>({[`${k}__append`]:!0})),V=t.computed(()=>{const v={};return r.slots.append&&!F.value&&!E.value&&(v.display="none"),v}),F=t.computed(()=>ye(a.unit)>0),O=t.computed(()=>!E.value),D=t.computed(()=>({[`${k}__unit`]:!0,hidden:!O.value})),I=v=>{m.value="",c("update:modelValue","",v),c("change","",v),c("clear","")},x=t.computed(()=>he(a.clearable)&&!s.value&&!i.value),E=t.computed(()=>{let v=ye(m.value)>0;return he(a.clearable)&&v&&u.value}),j=t.computed(()=>({action:!0,hidden:!E.value}));return()=>{let v={class:S.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:$,onFocus:T,onBlur:q},X=[],G=t.h("input",v);X.push(G);let M=[];if(x.value){const W={class:["action-icon"]},J=t.h(o,W),U={class:j.value,onClick:I},Q=t.h("view",U,{default:()=>[J]});M.push(Q)}if(F.value){const W=t.h("view",{class:D.value},[a.unit]);M.push(W)}const L={class:B.value,style:V.value},K=t.h("view",L,{default:()=>M});X.push(K);const P={default:()=>X};P.label=r.slots.default,P.prepend=r.slots.prepend,P.append=r.slots.append,P.fixedPreTip=r.slots.fixedPreTip,P.fixedTip=r.slots.fixedTip;let z={...ao(a,$r),errorTip:C.value,hintText:A.value,hintVisible:N.value,hintType:"number"};return t.h(l,z,P)}}}}const{componentName:yc,create:kc,scope:bc}=Y("money-item"),Eo=kc(gc(yc,bc,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:Sc,create:Cc,scope:wc}=Y("textarea"),Nc=Cc({props:{...Do},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:l}=re.useFoxI18n(wc);const o=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=Sc;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:k}=e.autosize;g!==void 0&&(y=Math.min(y,g)),k!==void 0&&(y=Math.max(y,k))}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})}}}}),Bc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Ac={key:0,class:"fox-textarea__limit"};function $c(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,Bc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Ac,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Bn=_(Nc,[["render",$c]]);function Tc(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=k=>{u.value=k,c("update:modelValue",k,{}),c("change",k,{})};let f=De(a,"hintText"),h=t.ref(!1);const y=k=>{de(f.value)||(h.value=!0),c("focus",u.value,k)},g=k=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",u.value,k)};return()=>{const S={...me(a,Do),disabled:s.value,readonly:i.value,value:u.value,"onUpdate:modelValue":m,onFocus:y,onBlur:g},d=[],p=t.h(o,S);d.push(p);const b={default:()=>d};b.label=r.slots.default,b.prepend=r.slots.prepend,b.append=r.slots.append,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const C=me(a,fe,ue);return t.h(l,C,b)}}}}const{componentName:Vc,create:Ec,scope:Dc}=Y("textarea-item"),Io=Ec(Tc(Vc,Dc,Ce,Bn));function Ic(e){return e===window}const Ee=e=>{const n=t.unref(e);if(Ic(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}},Le={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 qc=(e,n)=>({components:n,props:{...Le},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=k=>{o("click-pop",k)},f=k=>{k.stopPropagation(),o("click-close-icon",k),o("update:visible",!1)},h=k=>{o("click-overlay",k),l.closeOnClickOverlay&&o("update:visible",!1)},y=k=>{o("opend",k)},g=k=>{o("closed",k)};return t.watch(()=>l.visible,k=>{l.visible?c():u()}),t.watch(()=>l.closeable,k=>{a.closed=k}),{...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:[]},xc=e=>[()=>{if(e())try{!Et&&Dr().classList.add(Er),Et++}catch{}},()=>{if(e()&&Et)try{Et--,!Et&&Dr().classList.remove(Er)}catch{}}],Mc={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:zc,create:Lc}=Y("overlay"),Pc=Lc({props:{...Mc},emits:["click","update:visible"],setup(e,{emit:n}){const[l,o]=xc(()=>e.lockScroll),a=t.computed(()=>({[zc]:!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 Fc(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=_(Pc,[["render",Fc]]),{componentName:Rc,create:Oc}=Y("popup"),vc=Oc(qc(Rc,{FoxOverLay:at,Close:ne.Close}));function Kc(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 ce=_(vc,[["render",Kc]]),Ir=10;function Uc(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:S=>{const d=S.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=Uc(c.value,u.value))},start:S=>{y(),e.value=S.touches[0].clientX,n.value=S.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 qr={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}},qo={...Le,...qr,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 xr=36;function Hc(){return xr}function jc(e){xr=e}function Pe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function xo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Wc(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 Yc=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 Xc(){const e=t.getCurrentInstance();return new Yc(e.proxy)}function zr(e,n,l){const o=Pe(e,n),a=Pe(e,l);if(o!==a)return!1;const r=rt(e,n),s=rt(e,l);return r===s}function Qc(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 Pe(e,m)===i;if(r==="value"){let f=rt(e,m);return f==null&&(f=Pe(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 Pe(e,f)===c;if(r==="value"){let h=rt(e,f);return h==null&&(h=Pe(e,f)),h===c}else if(r==="item")return zr(e,f,c)});if(u==-1)break;a.push(u);const m=xo(e,s[u]);if(!Array.isArray(m))break;s=m}}return a}function Lr(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=Pe(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=Pe(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 Pr(e){return{text:e,value:e}}const Gc=15,Zc=300,Jc=200,{create:_c}=Y("picker-column");function ed(e){e.stopPropagation()}function td(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&ed(e)}const nd=_c({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},...qr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const l=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${ge(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=T=>T>=f.currIndex+8||T<=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=T=>`transform: rotate3d(1, 0, 0, ${-f.rotation*T}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=T=>Pe(e,T),g=T=>rt(e,T),k=He(),S=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},d=(T,q=!1,B=!1)=>{if(f.currIndex=T,q){const V=()=>{f.moving=!1,n("update:modelValue",T),n("change",T)};B?f.transitionEndTrigger=V:V()}},p=(T,q,B)=>{let V=T+f.startDistance;if(q==="end"){const F=-(h.value.length-1)*e.itemHeight;V<F&&(V=F,(!B||B<=0)&&(B=e.swipeDuration)),V>0&&(V=0,(!B||B<=0)&&(B=e.swipeDuration));let O=Math.abs(Math.round(-V/e.itemHeight));const D=-O*e.itemHeight,I=`${(O+1)*f.rotation}deg`,x=B?B>0:!1;d(O,!0,x),b(D,q,B,I)}else{let F=(-V/e.itemHeight+1)*f.rotation;const O=(h.value.length+1)*f.rotation,D=0;if(F=Math.min(Math.max(F,D),O),e.threeDimensional&&(F<D||F>O))return;b(V,null,void 0,`${F}deg`)}},b=(T=0,q,B=Jc,V)=>{q==="end"?f.scrollTime=B:f.scrollTime=0,f.deg=V,f.scrollDistance=T},C=(T,q)=>(T=Math.abs(T/q)/.003*(T<0?-1:1),T),A=T=>{e.readonly||(f.startDistance=f.scrollDistance,k.start(T),f.transitionEndTrigger=null)},N=T=>{e.readonly||(f.moving=!0,k.move(T),k.isVertical()&&(f.moving=!0,td(T,!0)),p(k.deltaY.value,"",0))},$=()=>{if(e.readonly)return;const T=k.deltaY.value,q=k.duration.value;if(q<Zc&&Math.abs(T)>Gc){const V=C(T,q);p(V,"end",e.swipeDuration)}else p(T,"end",0)};return t.watch(()=>e.modelValue,T=>{if(f.currIndex!==T){f.currIndex=T;const q=-T*e.itemHeight;p(q)}}),t.onMounted(()=>{const T=-e.modelValue*e.itemHeight;p(T)}),{classes:l,styles:o,contentClasses:a,source:h,itemText:y,itemValue:g,...t.toRefs(f),roller:m,getItemText:Pe,onTouchStart:A,onTouchMove:N,onTouchEnd:$,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:u,stopMomentum:S}}}),od={key:1,class:"fox-picker__item-tile"};function ld(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",od,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Fr=_(nd,[["render",ld]]),{create:ad,componentName:rd,scope:sd}=Y("picker"),id=ad({components:{[Fr.name]:Fr,[ce.name]:ce},props:{...qo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:l,t:o}=re.useFoxI18n(sd),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Hc());t.watch(()=>e.visible,B=>{B&&s.value<=0&&setTimeout(()=>{if(r.value){const V=Ee(r.value);s.value=V.height,jc(s.value)}},50)});const i=t.computed(()=>({[rd]:!0})),c=Xc(),u=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([B,V])=>{if(B){let F=await c.load("picker",B,V);if(F.length>0){let O=F[0];if(Array.isArray(O)){if(typeof O[0]=="string"){let D=F,I=[];D.forEach(x=>{let E=x.map(j=>Pr(j));I.push(E)}),m.value=I}else m.value=F;u.value="multipleColumn"}else if(typeof O=="string"){let D=F,I=[],x=D.map(E=>Pr(E));I.push(x),m.value=I,u.value="singleColumn"}else{const D=xo(e,O);Array.isArray(D)?(u.value="cascade",m.value=[F]):(u.value="singleColumn",m.value=[F])}}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],([B,V])=>{let F=Qc(e,B,V,u.value);if(!xe(F,g.value)){g.value=F;let O=Lr(e,F,V,u.value);O&&(f.value=O.texts,n("update:text",f.value))}});const k=t.ref(e.visible);t.watch(()=>e.visible,B=>{k.value=B});const S=B=>{let V=Mr(e,B);return $e(V)?V.defaultIndex??0:0},d=B=>{if(e.readonly===!0)return!0;let V=Mr(e,B);return $e(V)?V.readonly??!1:!1},p=(B,V)=>{let F=g.value;F[B]=V;for(let D=0;D<B;D++)F[D]==null&&(F[D]=S(D));if(u.value==="cascade")for(let D=B+1;D<C.value.length;D++){let I=S(D);D<F.length?F[D]=I:F.push(I)}else for(let D=F.length;D<C.value.length;D++){let I=S(D);F.push(I)}g.value=F;let O=Lr(e,F,m.value,u.value);O&&(f.value=O.texts,h.value=O.values,y.value=O.items)},b=B=>B<g.value.length?g.value[B]:S(B),C=t.computed(()=>{if(m.value.length==0)return[];if(u.value=="singleColumn"||u.value=="multipleColumn")return m.value;let B=[],V=0,F=m.value[0],O=0;for(;;){let D=F.map(E=>{let j=Object.assign({},E);return Wc(e,j,null),j});B.push(D),V>=g.value.length?O=0:O=g.value[V],(O<0||O>=F.length)&&(O=0);let I=F[O];const x=xo(e,I);if(!Array.isArray(x))break;F=x,V++}return B}),A=t.computed(()=>ge(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:C,dataType:u,show:k,itemHeight:s,top:A,isReadonly:d,getIndex:b,change:(B,V)=>{p(B,V)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let B=m.value.length-1;for(;B>=0&&!(g.value[B]===null||g.value[B]===void 0);B--);if(B>=0&&p(B,0),u.value==="singleColumn"){let V=h.value.length>0?h.value[0]:"",F=y.value.length>0?y.value[0]:null;e.readonly||(n("update:modelValue",V),n("update:text",f.value),n("change",V,F)),n("confirm",V)}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)}}}}),cd={class:"fox-picker__bar"},dd={class:"fox-picker__title"},ud={class:"fox-picker__bar__action"},fd={class:"fox-picker__column"};function md(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",cd,[t.createElementVNode("view",dd,t.toDisplayString(e.title),1),t.createElementVNode("view",ud,[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",fd,[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 pt=_(id,[["render",md]]);function pd(e,n,l,o,a,r,s=!0){return{props:{...ue,...fe,...qo,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),k=De(i,"modelValue"),S=t.ref([]),d=t.computed(()=>Array.isArray(S.value)?S.value.join(i.separator):S.value),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:u.value})),C=Ae(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const K={};return C.value&&(K["text-align"]=C.value),K}),N=t.ref(!1),$=()=>{N.value=!0},T=K=>{N.value=K},q=K=>{k.value=K,f("update:modelValue",K)},B=(K,P)=>{f("change",K,P)},V=K=>{let R=K.target.value;g.value=!0,f("focus",R,K)},F=K=>{setTimeout(()=>{g.value=!1},0);let R=K.target.value;i.maxLength&&R.length>Number(i.maxLength)&&(R=R.slice(0,Number(i.maxLength))),f("blur",R,K)},O=K=>{S.value=K,Array.isArray(K)&&K.length===0?f("update:text",K[0]):f("update:text",K)},D=t.computed(()=>({[`${p}__append`]:!0})),I=t.computed(()=>ye(i.unit)>0),x=t.computed(()=>ye(i.unit)>0&&!g.value),E=t.computed(()=>({hidden:!x.value})),j=K=>{k.value="",f("update:modelValue","",K),f("change","",K),f("clear","")},v=t.computed(()=>i.clearable&&!u.value&&!m.value),X=t.computed(()=>ye(k.value)>0&&g.value),G=K=>{X.value?j(K):$()},M=t.computed(()=>X.value&&v.value?o:a),L=t.computed(()=>({action:!0}));return()=>{const K={class:b.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:$,onFocus:V,onBlur:F};s&&(K.disabled=!0);const P=[],R=t.h("input",K);P.push(R);const z=[],H={class:["action-icon"]},W=t.h(M.value,H),J={class:L.value,onClick:G},U=t.h("view",J,{default:()=>[W]});if(z.push(U),I.value){const be=t.h("view",{class:E.value},[i.unit]);z.push(be)}const Q={class:D.value},Z=t.h("view",Q,{default:()=>z});P.push(Z);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;const ee=me(i,qo);ee.disabled=!1,ee.readonly=u.value||m.value,ee.visible=N.value,ee["onUpdate:visible"]=T,ee.modelValue=k.value,ee["onUpdate:modelValue"]=q,ee.text=S.value,ee["onUpdate:text"]=O,ee.onChange=B;const le=t.h(r,ee);te.hide=()=>[le];const ae=me(i,fe,ue);return t.h(l,ae,te)}}}}const{componentName:hd,create:gd,scope:yd}=Y("picker-item"),Mo=gd(pd(hd,yd,Ce,ne.CircleClose,ne.ArrowRight,pt,!1)),An=(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=An(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)},kd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},bd=(e,n)=>{const l={...kd,...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},Sd=/scroll|auto|overlay/i,Or=window;function Cd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function zo(e,n=Or){let l=e;for(;l&&l!==n&&Cd(l);){const{overflowY:o}=window.getComputedStyle(l);if(Sd.test(o))return l;l=l.parentNode}return n}function vr(e,n=Or){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=zo(e.value,n))}),l}const{create:wd}=Y("sticky"),Nd=wd({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 S=!1;if(e.position==="top")S=u?r.value>m.top&&y.bottom>0:r.value>m.top;else{const d=document.documentElement.clientHeight;S=u?y.bottom>0&&d-r.value-h.height>y.top:d-r.value<m.bottom}return S},k=()=>{if(u)if(e.position==="top"){const S=y.bottom-r.value-h.height;return S<0?S:0}else{const S=document.documentElement.clientHeight,d=y.bottom-(S-r.value);return d<0?d:0}return 0};a.transform=k(),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 Bd(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=_(Nd,[["render",Bd]]),Ad=(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 $d{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Td}=Y("tabs"),Vd=Td({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=B=>{B.forEach((V,F)=>{let O=V.type;if(O=O.name||O,O=="fox-tab-pane"){let D=new $d;if(V.props?.title||V.props?.["pane-key"]||V.props?.paneKey){let I=tt(V.props?.["pane-key"]),x=I=="number"||I=="string"?String(V.props?.["pane-key"]):null,E=tt(V.props?.paneKey),j=E=="number"||E=="string"?String(V.props?.paneKey):null;D.title=V.props?.title,D.paneKey=x||j||String(F),D.disabled=V.props?.disabled}r.value.push(D)}else{if(V.children==" ")return;Array.isArray(V.children)&&s(V.children)}})},i=t.ref(e.modelValue||0),c=B=>{let V=r.value.findIndex(F=>F.paneKey==B);r.value.length==0||V==-1||(i.value=V)},u=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),f=t.ref([]),h=B=>{const V=m.value,F=f.value;if(!V||!F||!F[i.value])return;const O=F[i.value];let D=0;e.direction==="vertical"?D=O.offsetTop-V.offsetTop+10-(V.offsetHeight-O.offsetHeight)/2:D=O.offsetLeft-(V.offsetWidth-O.offsetWidth)/2,y(V,D,B?0:.3,e.direction)},y=(B,V,F,O)=>{let D=0;const I=O==="horizontal"?B.scrollLeft:B.scrollTop,x=F===0?1:Math.round(F*1e3/16);function E(){O==="horizontal"?B.scrollLeft+=(V-I)/x:B.scrollTop+=(V-I)/x,++D<x&&Re(E)}E()},g=(B=l.default?.())=>{r.value=[],B=B?.filter(V=>typeof V.children!="string"),B&&B.length&&s(B),c(e.modelValue),t.nextTick(()=>{h()})},k=B=>{a=B.fixed};t.watch(()=>l.default?.(),B=>{g(B)});const S=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,B=>{if(c(B),h(),a){let V=Ee(o.value).top+S(),F=Math.ceil(V-e.top);window.scrollTo({top:F,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:B=>{n("update:modelValue",B.paneKey),n("change",B)},tabChange:(B,V)=>{n("click",B),!(B.disabled||i.value==V)&&(i.value=V,d.updateValue(B))},setTabItemRef:(B,V)=>{f.value[V]=B}},{tabsContentRef:p,touchState:b,touchMethods:C}=Ad(e,d),A=t.computed(()=>{let B=i.value*100;b.moving&&(B+=b.offset);let V={transform:e.direction=="horizontal"?`translate3d(-${B}%, 0, 0)`:`translate3d( 0,-${B}%, 0)`,transitionDuration:b.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(V={}),V}),N=t.computed(()=>({background:e.background})),$=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),T=t.computed(()=>{if(!e.titleGutter)return{};const B=pe(e.titleGutter);return e.direction==="vertical"?{marginTop:B,marginBottom:B}:{marginLeft:B,marginRight:B}}),q=t.computed(()=>l.fixedTitle);return{navRef:m,tabsContentRef:p,titles:r,contentStyle:A,tabsNavStyle:N,titleStyle:T,tabsActiveStyle:$,container:o,getScrollY:u,onStickyScroll:k,...d,...C,hasFixedTitle:q}}}),Ed=["onClick"],Dd={key:0,class:"fox-tabs__titles-fixed-item"},Id=["onClick"],qd={key:0,class:"fox-tabs__titles-fixed-item"};function xd(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,Ed))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Dd,[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,Id))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",qd,[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=_(Vd,[["render",xd]]),{create:Md}=Y("tab-pane"),zd=Md({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 Ld(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 qt=_(zd,[["render",Ld]]);class Kr{nodes;config;constructor(n,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=An(n,null,this.config)}updateChildren(n,l){l?l.children=An(n,l,this.config):this.nodes=An(n,null,this.config)}getNodeByValue(n){let l;return 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:Pd,scope:Fd}=Y("cascader-pane"),Rd=Pd({components:{Loading:ne.Loading,Checklist:ne.Checklist,[It.name]:It,[qt.name]:qt},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=bd(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 b=s.value.nodes.find(C=>C.value===d[0]);if(b){p=[b.value],a.value=!0;const C=await d.slice(1).reduce(async(A,N)=>{const $=await A;await y($);const T=$?.children?.find(q=>q.value===N);return T&&p.push(N),Promise.resolve(T)},Promise.resolve(b));await y(C),a.value=!1}}p.length&&d===e.modelValue&&s.value.getPathNodesByValue(p).map((C,A)=>{o.value=A,S.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 b=u.get(d);b||(b=new Promise(A=>{l.value.lazyLoad?.(d,A)}),u.set(d,b));const C=await b;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(b=>b.value);r.value=p,n("change",p,d),n("update:modelValue",p,d)},{t:k}=re.useFoxI18n(Fd),S={async handleNode(d,p){const{disabled:b,loading:C}=d;if(!(!p&&b||!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($=>$.selectedNode);n("pathChange",N)}return}m=d,!C&&(await y(d),m===d&&(i.value[o.value].selectedNode=d,S.handleNode(d,p)))}},handleTabClick(d){m=null,o.value=Number(d.paneKey)},formatTabTitle(d){return d.selectedNode?d.selectedNode.text:k("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,...S}}}),Od={role:"menu",class:"fox-cascader__pane"},vd=["aria-checked","aria-disabled","onClick"],Kd={class:"fox-cascader__item__title"},Ud=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Hd(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",Od,[(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",Kd,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,vd))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Ud]),_:1}))]),_:1},8,["modelValue","onClick"])}const jd=_(Rd,[["render",Hd]]),{create:Wd}=Y("cascader"),Yd=Wd({components:{FoxCascaderPane:jd,FoxPopup:ce},props:{...Le,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}}}),Xd=["innerHTML"];function Qd(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,Xd)):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 $n=_(Yd,[["render",Qd]]);function xt(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 Tn(e,n=[]){const l={texts:[],values:[]};for(let o=0;o<n.length;o++){const a=n[o],r=xt(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(xt(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=xt(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 Lo(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=xt(e,n[o]),r=xt(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 Gd=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 Zd(){const e=t.getCurrentInstance();return new Gd(e.proxy)}function Jd(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),k=Zd(),S=t.ref([]);t.watch([()=>i.source,()=>i.params],async([R,z])=>{R&&(S.value=await k.load(R,z))},{immediate:!0});const d=t.ref([]),p=t.computed(()=>Array.isArray(d.value)?d.value.join(" "):d.value),b=t.ref([]),C=t.ref([]);t.watch([()=>i.modelValue],async([R])=>{if(i.lazy===!0){C.value.length==0&&(d.value=Array.isArray(R)?R:[],b.value=Array.isArray(R)?R:[]);return}if(i.valueType==="item"){let z=R;if(!Lo(i,z,C.value)){C.value=z;let H=Tn(i,z);d.value=H.texts,b.value=H.values}}else if(i.valueType==="text"){let z=R,H=[];if(Hr(i,S.value,z,0,H),!Lo(i,H,C.value)){C.value=H;let W=Tn(i,H);z.value=W.texts,b.value=W.values}}else{let z=[];if(jr(i,S.value,R,0,z),!Lo(i,z,C.value)){C.value=z;let H=Tn(i,z);d.value=H.texts,b.value=H.values}}},{immediate:!0});const A="fox-input-item",N=t.computed(()=>({[A]:!0,[`${A}__disabled`]:u.value})),$=Ae(t.computed(()=>i.textAlign),"textAlign"),T=t.computed(()=>{const R={};return $.value&&(R["text-align"]=$.value),R}),q=t.ref(!1),B=()=>{u.value===!0||m.value===!0||(q.value=!0)},V=R=>{q.value=R},F=(R,z)=>{let H=z.map(J=>{if(J==null)return J;let U={...J};return Reflect.deleteProperty(U,"text"),U[i.textKey]=J.text??"",Reflect.deleteProperty(U,"value"),U[i.valueKey]=J.value??"",U});C.value=H;let W=Tn(i,H);d.value=W.texts,b.value=W.values,i.valueType==="text"?(f("change",d.value,H),f("update:modelValue",d.value)):i.valueType==="item"?(f("change",H,H),f("update:modelValue",H)):(f("change",b.value,H),f("update:modelValue",b.value)),f("update:pathNodes",H)},O=R=>{let z=R.map(H=>{if(H==null)return H;let W={...H};return Reflect.deleteProperty(W,"text"),W[i.textKey]=H.text??"",Reflect.deleteProperty(W,"value"),W[i.valueKey]=H.value??"",W});f("pathChange",z)},D=R=>{g.value=!0,f("focus",b.value,R)},I=R=>{setTimeout(()=>{g.value=!1},0),f("blur",b.value,R)},x=t.computed(()=>({[`${A}__append`]:!0})),E=t.computed(()=>ye(i.unit)>0),j=t.computed(()=>ye(i.unit)>0&&!g.value),v=t.computed(()=>({hidden:!j.value})),X=R=>{C.value=[],d.value=[],b.value=[],f("update:modelValue",[]),f("change",[],R),f("clear",[]),f("update:pathNodes",[])},G=t.computed(()=>i.clearable&&!u.value&&!m.value),M=t.computed(()=>{let R=b.value&&b.value.length>0;return i.clearable&&R&&g.value}),L=R=>{M.value?X(R):B()},K=t.computed(()=>M.value&&G.value?o:a),P=t.computed(()=>({action:!0}));return()=>{const R={class:N.value,style:T.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:B,onFocus:D,onBlur:I};s&&(R.disabled=!0);const z=[],H=t.h("input",R);z.push(H);const W=[],J={class:["action-icon"]},U=t.h(K.value,J),Q={class:P.value,onClick:L},Z=t.h("view",Q,{default:()=>[U]});if(W.push(Z),E.value){const it=t.h("view",{class:v.value},[i.unit]);W.push(it)}const te={class:x.value},ee=t.h("view",te,{default:()=>W});z.push(ee);const le={default:()=>z};le.label=c.slots.default,le.prepend=c.slots.prepend,le.append=c.slots.append,le.fixedPreTip=c.slots.fixedPreTip,le.fixedTip=c.slots.fixedTip;let ae={};ae.visible=q.value,ae["onUpdate:visible"]=V,ae.modelValue=b.value,ae.onChange=F,ae.onPathChange=O,ae.options=S.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);le.hide=()=>[Ie];const be=me(i,fe,ue);return t.h(l,be,le)}}}}const{componentName:_d,create:eu,scope:tu}=Y("cascader-item"),Po=eu(Jd(_d,tu,Ce,ne.CircleClose,ne.ArrowRight,$n,!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",k="Invalid Date",S=/^(\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("_")},b=function(O,D,I){var x=String(O);return!x||x.length>=D?O:""+Array(D+1-x.length).join(I)+O},C={s:b,z:function(O){var D=-O.utcOffset(),I=Math.abs(D),x=Math.floor(I/60),E=I%60;return(D<=0?"+":"-")+b(x,2,"0")+":"+b(E,2,"0")},m:function O(D,I){if(D.date()<I.date())return-O(I,D);var x=12*(I.year()-D.year())+(I.month()-D.month()),E=D.clone().add(x,f),j=I-E<0,v=D.clone().add(x+(j?-1:1),f);return+(-(x+(I-E)/(j?E-v:v-E))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y,w:m,d:u,D:g,h:c,m:i,s,ms:r,Q:h}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},A="en",N={};N[A]=p;var $=function(O){return O instanceof V},T=function O(D,I,x){var E;if(!D)return A;if(typeof D=="string"){var j=D.toLowerCase();N[j]&&(E=j),I&&(N[j]=I,E=j);var v=D.split("-");if(!E&&v.length>1)return O(v[0])}else{var X=D.name;N[X]=D,E=X}return!x&&E&&(A=E),E||!x&&A},q=function(O,D){if($(O))return O.clone();var I=typeof D=="object"?D:{};return I.date=O,I.args=arguments,new V(I)},B=C;B.l=T,B.i=$,B.w=function(O,D){return q(O,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var V=function(){function O(I){this.$L=T(I.locale,null,!0),this.parse(I)}var D=O.prototype;return D.parse=function(I){this.$d=function(x){var E=x.date,j=x.utc;if(E===null)return new Date(NaN);if(B.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var v=E.match(S);if(v){var X=v[2]-1||0,G=(v[7]||"0").substring(0,3);return j?new Date(Date.UTC(v[1],X,v[3]||1,v[4]||0,v[5]||0,v[6]||0,G)):new Date(v[1],X,v[3]||1,v[4]||0,v[5]||0,v[6]||0,G)}}return new Date(E)}(I),this.$x=I.x||{},this.init()},D.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},D.$utils=function(){return B},D.isValid=function(){return this.$d.toString()!==k},D.isSame=function(I,x){var E=q(I);return this.startOf(x)<=E&&E<=this.endOf(x)},D.isAfter=function(I,x){return q(I)<this.startOf(x)},D.isBefore=function(I,x){return this.endOf(x)<q(I)},D.$g=function(I,x,E){return B.u(I)?this[x]:this.set(E,I)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(I,x){var E=this,j=!!B.u(x)||x,v=B.p(I),X=function(H,W){var J=B.w(E.$u?Date.UTC(E.$y,W,H):new Date(E.$y,W,H),E);return j?J:J.endOf(u)},G=function(H,W){return B.w(E.toDate()[H].apply(E.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(W)),E)},M=this.$W,L=this.$M,K=this.$D,P="set"+(this.$u?"UTC":"");switch(v){case y:return j?X(1,0):X(31,11);case f:return j?X(1,L):X(0,L+1);case m:var R=this.$locale().weekStart||0,z=(M<R?M+7:M)-R;return X(j?K-z:K+(6-z),L);case u:case g:return G(P+"Hours",0);case c:return G(P+"Minutes",1);case i:return G(P+"Seconds",2);case s:return G(P+"Milliseconds",3);default:return this.clone()}},D.endOf=function(I){return this.startOf(I,!1)},D.$set=function(I,x){var E,j=B.p(I),v="set"+(this.$u?"UTC":""),X=(E={},E[u]=v+"Date",E[g]=v+"Date",E[f]=v+"Month",E[y]=v+"FullYear",E[c]=v+"Hours",E[i]=v+"Minutes",E[s]=v+"Seconds",E[r]=v+"Milliseconds",E)[j],G=j===u?this.$D+(x-this.$W):x;if(j===f||j===y){var M=this.clone().set(g,1);M.$d[X](G),M.init(),this.$d=M.set(g,Math.min(this.$D,M.daysInMonth())).$d}else X&&this.$d[X](G);return this.init(),this},D.set=function(I,x){return this.clone().$set(I,x)},D.get=function(I){return this[B.p(I)]()},D.add=function(I,x){var E,j=this;I=Number(I);var v=B.p(x),X=function(L){var K=q(j);return B.w(K.date(K.date()+Math.round(L*I)),j)};if(v===f)return this.set(f,this.$M+I);if(v===y)return this.set(y,this.$y+I);if(v===u)return X(1);if(v===m)return X(7);var G=(E={},E[i]=o,E[c]=a,E[s]=l,E)[v]||1,M=this.$d.getTime()+I*G;return B.w(M,this)},D.subtract=function(I,x){return this.add(-1*I,x)},D.format=function(I){var x=this,E=this.$locale();if(!this.isValid())return E.invalidDate||k;var j=I||"YYYY-MM-DDTHH:mm:ssZ",v=B.z(this),X=this.$H,G=this.$m,M=this.$M,L=E.weekdays,K=E.months,P=function(W,J,U,Q){return W&&(W[J]||W(x,j))||U[J].slice(0,Q)},R=function(W){return B.s(X%12||12,W,"0")},z=E.meridiem||function(W,J,U){var Q=W<12?"AM":"PM";return U?Q.toLowerCase():Q},H={YY:String(this.$y).slice(-2),YYYY:this.$y,M:M+1,MM:B.s(M+1,2,"0"),MMM:P(E.monthsShort,M,K,3),MMMM:P(K,M),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:P(E.weekdaysMin,this.$W,L,2),ddd:P(E.weekdaysShort,this.$W,L,3),dddd:L[this.$W],H:String(X),HH:B.s(X,2,"0"),h:R(1),hh:R(2),a:z(X,G,!0),A:z(X,G,!1),m:String(G),mm:B.s(G,2,"0"),s:String(this.$s),ss:B.s(this.$s,2,"0"),SSS:B.s(this.$ms,3,"0"),Z:v};return j.replace(d,function(W,J){return J||H[W]||v.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(I,x,E){var j,v=B.p(x),X=q(I),G=(X.utcOffset()-this.utcOffset())*o,M=this-X,L=B.m(this,X);return L=(j={},j[y]=L/12,j[f]=L,j[h]=L/3,j[m]=(M-G)/6048e5,j[u]=(M-G)/864e5,j[c]=M/a,j[i]=M/o,j[s]=M/l,j)[v]||M,E?L:B.a(L)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return N[this.$L]},D.locale=function(I,x){if(!I)return this.$L;var E=this.clone(),j=T(I,x,!0);return j&&(E.$L=j),E},D.clone=function(){return B.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()},O}(),F=V.prototype;return q.prototype=F,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",u],["$M",f],["$y",y],["$D",g]].forEach(function(O){F[O[1]]=function(D){return this.$g(D,O[0],O[1])}}),q.extend=function(O,D){return O.$i||(O(D,V,q),O.$i=!0),q},q.locale=T,q.isDayjs=$,q.unix=function(O){return q(1e3*O)},q.en=N[A],q.Ls=N,q.p={},q})})(Wr);var nu=Wr.exports;const Fe=We(nu);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(k){return(k=+k)+(k>68?1900:2e3)},u=function(k){return function(S){this[k]=+S}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var d=S.match(/([+-]|\d\d)/g),p=60*d[1]+(+d[2]||0);return p===0?0:d[0]==="+"?-p:p}(k)}],f=function(k){var S=i[k];return S&&(S.indexOf?S:S.s.concat(S.f))},h=function(k,S){var d,p=i.meridiem;if(p){for(var b=1;b<=24;b+=1)if(k.indexOf(p(b,0,S))>-1){d=b>12;break}}else d=k===(S?"pm":"PM");return d},y={A:[s,function(k){this.afternoon=h(k,!1)}],a:[s,function(k){this.afternoon=h(k,!0)}],S:[/\d/,function(k){this.milliseconds=100*+k}],SS:[a,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],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(k){var S=i.ordinal,d=k.match(/\d+/);if(this.day=d[0],S)for(var p=1;p<=31;p+=1)S(p).replace(/\[|\]/g,"")===k&&(this.day=p)}],M:[r,u("month")],MM:[a,u("month")],MMM:[s,function(k){var S=f("months"),d=(f("monthsShort")||S.map(function(p){return p.slice(0,3)})).indexOf(k)+1;if(d<1)throw new Error;this.month=d%12||d}],MMMM:[s,function(k){var S=f("months").indexOf(k)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(k){this.year=c(k)}],YYYY:[/\d{4}/,u("year")],Z:m,ZZ:m};function g(k){var S,d;S=k,d=i&&i.formats;for(var p=(k=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(q,B,V){var F=V&&V.toUpperCase();return B||d[V]||l[V]||d[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,D,I){return D||I.slice(1)})})).match(o),b=p.length,C=0;C<b;C+=1){var A=p[C],N=y[A],$=N&&N[0],T=N&&N[1];p[C]=T?{regex:$,parser:T}:A.replace(/^\[|\]$/g,"")}return function(q){for(var B={},V=0,F=0;V<b;V+=1){var O=p[V];if(typeof O=="string")F+=O.length;else{var D=O.regex,I=O.parser,x=q.slice(F),E=D.exec(x)[0];I.call(B,E),q=q.replace(E,"")}}return function(j){var v=j.afternoon;if(v!==void 0){var X=j.hours;v?X<12&&(j.hours+=12):X===12&&(j.hours=0),delete j.afternoon}}(B),B}}return function(k,S,d){d.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(c=k.parseTwoDigitYear);var p=S.prototype,b=p.parse;p.parse=function(C){var A=C.date,N=C.utc,$=C.args;this.$u=N;var T=$[1];if(typeof T=="string"){var q=$[2]===!0,B=$[3]===!0,V=q||B,F=$[2];B&&(F=$[2]),i=this.$locale(),!q&&F&&(i=d.Ls[F]),this.$d=function(x,E,j){try{if(["x","X"].indexOf(E)>-1)return new Date((E==="X"?1e3:1)*x);var v=g(E)(x),X=v.year,G=v.month,M=v.day,L=v.hours,K=v.minutes,P=v.seconds,R=v.milliseconds,z=v.zone,H=new Date,W=M||(X||G?1:H.getDate()),J=X||H.getFullYear(),U=0;X&&!G||(U=G>0?G-1:H.getMonth());var Q=L||0,Z=K||0,te=P||0,ee=R||0;return z?new Date(Date.UTC(J,U,W,Q,Z,te,ee+60*z.offset*1e3)):j?new Date(Date.UTC(J,U,W,Q,Z,te,ee)):new Date(J,U,W,Q,Z,te,ee)}catch{return new Date("")}}(A,T,N),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),V&&A!=this.format(T)&&(this.$d=new Date("")),i={}}else if(T instanceof Array)for(var O=T.length,D=1;D<=O;D+=1){$[1]=T[D-1];var I=d.apply(this,$);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}D===O&&(this.$d=new Date(""))}else b.call(this,C)}}})})(Yr);var ou=Yr.exports;const lu=We(ou);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 au=Xr.exports;const ru=We(au);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,k){var S=f.name?f:f.$locale(),d=s(S[h]),p=s(S[y]),b=d||p.map(function(A){return A.slice(0,g)});if(!k)return b;var C=S.weekStart;return b.map(function(A,N){return b[(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,k,S){return k||S.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 su=Qr.exports;const iu=We(su);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 cu=Gr.exports;const du=We(cu);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 uu=Zr.exports;const fu=We(uu);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 mu=Jr.exports;const pu=We(mu);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 hu=_r.exports;const gu=We(hu);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 yu=es.exports;const ku=We(yu);Fe.extend(iu),Fe.extend(ru),Fe.extend(lu),Fe.extend(du),Fe.extend(fu),Fe.extend(pu),Fe.extend(gu),Fe.extend(ku);const oe={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]=oe.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=oe.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,l){const o=new Date(new Date(n).setDate(n.getDate()+l)),a=e.getTime(),r=o.getTime(),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"},Vn=(e,n,l)=>{let o;if(Oe(n)?o=n:typeof n=="string"&&ye(n)>0?o=oe.parser(n,l):o=new Date,o.toString()==="Invalid Date")return null;let a=Math.max(o.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Ro=(e,n,l)=>{Oe(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),oe.format(new Date(o),l)};let Oo={modelValue:{type:[String,Date]},confirmText:{type:String},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:Oe},maxDate:{type:Date,default:()=>new Date(ts+10,11,31),validator:Oe},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:bu,scope:Su}=Y("date-picker"),Cu=bu({components:{[pt.name]:pt},props:{...Oo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(Su),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 b=e[`${d}Date`],C=b.getFullYear();let A=1,N=1,$=0,T=0;d==="max"&&(A=12,N=r(p.getFullYear(),p.getMonth()+1),$=23,T=59);const q=T;return p.getFullYear()===C&&(A=b.getMonth()+1,p.getMonth()+1===A&&(N=b.getDate(),p.getDate()===N&&($=b.getHours(),p.getHours()===$&&(T=b.getMinutes())))),{[`${d}Year`]:C,[`${d}Month`]:A,[`${d}Date`]:N,[`${d}Hour`]:$,[`${d}Minute`]:T,[`${d}Seconds`]:q}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:d,maxDate:p,maxMonth:b,maxHour:C,maxMinute:A,maxSeconds:N}=s("max",h.value),{minYear:$,minDate:T,minMonth:q,minHour:B,minMinute:V,minSeconds:F}=s("min",h.value);let O=[{type:"year",range:[$,d]},{type:"month",range:[q,b]},{type:"day",range:[T,p]},{type:"hour",range:[B,C]},{type:"minute",range:[V,A]},{type:"seconds",range:[F,N]}];switch(e.type){case"date":O=O.slice(0,3);break;case"datetime":O=O.slice(0,5);break;case"time":O=O.slice(3,6);break;case"year-month":O=O.slice(0,2);break;case"month-day":O=O.slice(1,3);break;case"datehour":O=O.slice(0,4);break;case"hour-minute":O=O.slice(3,5);break}return O}),c=(d,p,b)=>{if(!(p>d))return null;const C=[];for(;d<=p;)e.isShowChinese?C.push({text:d+o[b],value:d}):C.push({text:`${d}`,value:d}),b==="minute"?d+=e.minuteStep:d++;return C},u=t.computed(()=>{let d=[];return i.value.forEach(p=>{let b=c(p.range[0],p.range[1],p.type);b&&d.push(b)}),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=Vn(e,e.modelValue,e.valueFormat):d=Vn(e,p,Fo[e.type]):Oe(p)?d=p:d=new Date,!!d&&(!h.value||d.getTime()!==h.value.getTime())){h.value=d;let b=[];i.value.forEach(C=>{let A=m(C.type,d);b.push(A)}),f.value=b}});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,b=h.value??new Date,C=new Date(b.getFullYear(),b.getMonth(),b.getDate(),p[0],p[1],p[2]);h.value=C}else if(e.type==="year-month"){let p=d,b=new Date(p[0],p[1]-1);h.value=b}else if(e.type==="month-day"){let p=d,b=h.value??new Date,C=new Date(b.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,b=h.value??new Date,C=new Date(b.getFullYear(),b.getMonth(),b.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 b=Ro(e,p,e.valueFormat);n("update:modelValue",b)}else n("update:modelValue",p);n("update:visible",!1),n("confirm",d)},onClear:()=>{n("clear")}}}});function wu(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 En=_(Cu,[["render",wu]]);function Nu(e){let n=e.format;if(!n){let l=e.type??"date";n=Fo[l]}return n}function Bu(e,n,l,o,a,r,s=!1){return{props:{...ue,...fe,...Oo,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),S=De(i,"modelValue",L=>L==null?null:typeof L=="string"?L.length==0?null:i.valueFormat?Vn(i,L,i.valueFormat)??L:Vn(i,L,Fo[i.type])??L:Oe(L)?L:null),d=t.computed(()=>{if(!S.value)return"";const L=Nu(i);return Ro(i,S.value,L)}),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:u.value})),C=Ae(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const L={};return C.value&&(L["text-align"]=C.value),L}),N=t.ref(!1),$=()=>{N.value=!0},T=()=>{N.value=!1};c.expose({showPicker:$,hidePicker:T});const q=L=>{N.value=L},B=L=>{if(S.value=L,i.valueFormat){let K=Ro(i,L,i.valueFormat);f("update:modelValue",K,{}),f("change",K,{})}else f("update:modelValue",L,{}),f("change",L,{})},V=L=>{let P=L.target.value;g.value=!0,f("focus",P,L)},F=L=>{setTimeout(()=>{g.value=!1},0);let P=L.target.value;i.maxLength&&P.length>Number(i.maxLength)&&(P=P.slice(0,Number(i.maxLength))),f("blur",P,L)},O=t.computed(()=>({[`${p}__append`]:!0})),D=t.computed(()=>ye(i.unit)>0),I=t.computed(()=>ye(i.unit)>0&&!g.value),x=t.computed(()=>({hidden:!I.value})),E=L=>{S.value="",f("update:modelValue","",L),f("change","",L),f("clear",""),T()},j=t.computed(()=>i.clearable&&!u.value&&!m.value),v=t.computed(()=>{let L=ye(S.value)>0;return i.clearable&&L&&g.value}),X=L=>{v.value?E(L):$()},G=t.computed(()=>v.value&&j.value?o:a),M=t.computed(()=>({action:!0}));return()=>{const L={class:b.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:$,onFocus:V,onBlur:F};s&&(L.disabled=!0);const K=[],P=t.h("input",L);K.push(P);const R=[],z={class:["action-icon"]},H=t.h(G.value,z),W={class:M.value,onClick:X},J=t.h("view",W,{default:()=>[H]});if(R.push(J),D.value){const be=t.h("view",{class:x.value},[i.unit]);R.push(be)}const U={class:O.value},Q=t.h("view",U,{default:()=>R});K.push(Q);const Z={default:()=>K};Z.label=c.slots.default,Z.prepend=c.slots.prepend,Z.append=c.slots.append,Z.fixedPreTip=c.slots.fixedPreTip,Z.fixedTip=c.slots.fixedTip;const te=me(i,Oo);te.valueFormat=null,te.disabled=!1,te.readonly=u.value||m.value,te.visible=N.value,te["onUpdate:visible"]=q,te.modelValue=S.value,te["onUpdate:modelValue"]=B,te.onClear=E;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 le=t.h(r,te,ee);Z.hide=()=>[le];const ae=me(i,fe,ue);return t.h(l,ae,Z)}}}}const{create:Au,componentName:$u,scope:Tu}=Y("date-item"),vo=Au(Bu($u,Tu,Ce,ne.CircleClose,ne.Date,En,!1)),Vu=39,Eu=64,{create:Du,scope:Iu}=Y("calendar-pane"),qu=Du({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:oe.getDay(0)},endDate:{type:String,default:oe.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:l}){const{toLocaleRefs:o,t:a}=re.useFoxI18n(Iu),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),k=t.computed(()=>l["top-info"]),S=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=z=>z.split("-"),b=z=>oe.isEqual(d.currDate[0],z),C=z=>oe.isEqual(d.currDate[1],z),A=z=>d.currDate?.length>0?d.currDate?.some(H=>oe.isEqual(H,z)):!1,N=(z,H)=>H.curData[0]+"-"+H.curData[1]+"-"+oe.getNumTwoBit(+z.day),$=(z,H)=>{const W=N(z,H),{type:J}=e;return z.type=="curr"?oe.isEqual(d.currDate,W)||(J=="range"||J=="week")&&(b(W)||C(W))||J=="multiple"&&A(W)?`${d.dayPrefix}--active`:d.propStartDate&&oe.compareDate(W,d.propStartDate)||d.propEndDate&&oe.compareDate(d.propEndDate,W)?`${d.dayPrefix}--disabled`:(J=="range"||J=="week")&&Array.isArray(d.currDate)&&Object.values(d.currDate).length==2&&oe.compareDate(d.currDate[0],W)&&oe.compareDate(W,d.currDate[1])?`${d.dayPrefix}--choose`:null:`${d.dayPrefix}--disabled`},T=()=>{const{type:z}=e;if(z=="range"&&d.chooseData.length==2||z!="range"){let H=d.chooseData.slice(0);z=="week"&&(H={weekDate:[B(d.chooseData[0]),B(d.chooseData[1])]}),n("choose",H),e.poppable&&n("update")}},q=(z,H,W=!1)=>{if($(z,H)!=`${d.dayPrefix}--disabled`){const{type:J}=e;let[U,Q]=H.curData,Z=[...H.curData];if(Z[2]=oe.getNumTwoBit(Number(z.day)),Z[3]=`${Z[0]}-${Z[1]}-${Z[2]}`,Z[4]=oe.getWhatDay(+Z[0],+Z[1],+Z[2]),J=="multiple")if(d.currDate?.length>0){let te;d.currDate?.forEach((ee,le)=>{ee==Z[3]&&(te=le)}),W?d.chooseData.push([...Z]):te!==void 0?(d.currDate.splice(te,1),d.chooseData.splice(te,1)):(d.currDate.push(Z[3]),d.chooseData.push([...Z]))}else d.currDate=[Z[3]],d.chooseData=[[...Z]];else if(J=="range"){let te=Object.values(d.currDate).length;te==2||te==0?d.currDate=[Z[3]]:oe.compareDate(d.currDate[0],Z[3])?Array.isArray(d.currDate)&&d.currDate.push(Z[3]):Array.isArray(d.currDate)&&d.currDate.unshift(Z[3]),d.chooseData.length==2||!d.chooseData.length?d.chooseData=[[...Z]]:oe.compareDate(d.chooseData[0][3],Z[3])?d.chooseData=[...d.chooseData,[...Z]]:d.chooseData=[[...Z],...d.chooseData]}else if(J=="week"){let te=oe.getWeekDate(U,Q,z.day,e.firstDayOfWeek);d.propStartDate&&oe.compareDate(te[0],d.propStartDate)&&te.splice(0,1,d.propStartDate),d.propEndDate&&oe.compareDate(d.propEndDate,te[1])&&te.splice(1,1,d.propEndDate),d.currDate=te,d.chooseData=[oe.formatResultDate(te[0]),oe.formatResultDate(te[1])]}else d.currDate=Z[3],d.chooseData=[...Z];if(!W){let te=d.chooseData;J=="week"&&(te={weekDate:[B(d.chooseData[0]),B(d.chooseData[1])]}),n("select",te),(e.isAutoBackFill||!e.poppable)&&T()}}},B=z=>{let[H,W,J]=z;return{date:z,monthWeekNum:oe.getMonthWeek(H,W,J,e.firstDayOfWeek),yearWeekNum:oe.getYearWeek(H,W,J,e.firstDayOfWeek)}},V=z=>{const H=z=="prev"?d.monthsData[0]:d.monthsData[d.monthsData.length-1];let W=parseInt(H.curData[0]),J=parseInt(H.curData[1].toString().replace(/^0/,""));switch(z){case"prev":J==1&&(W-=1),J=J==1?12:--J;break;case"next":J==12&&(W+=1),J=J==12?1:++J;break}return[W+"",oe.getNumTwoBit(J),oe.getMonthDays(String(W),String(J))+""]},F=(z,H,W)=>{let{year:J,month:U}=W;return H=="prev"&&z>=7&&(z-=7),Array.from(Array(z),(Q,Z)=>({day:String(Z+1),type:H,year:J,month:U}))},O=(z,H,W,J)=>{z=z-e.firstDayOfWeek;let{year:U,month:Q}=W;return H=="prev"&&z>=7&&(z-=7),Array.from(Array(J),(te,ee)=>({day:String(ee+1),type:H,year:U,month:Q})).slice(J-z)},D=(z,H)=>{const W=oe.getMonthPreDay(+z[0],+z[1]);let J=Number(z[1])-1,U=Number(z[0]);J<=0&&(J=12,U+=1);const Q=oe.getMonthDays(String(z[0]),String(z[1])),Z=oe.getMonthDays(U+"",J+""),te={year:z[0],month:z[1]},ee={curData:z,title:a("monthTitle",{year:te.year,month:te.month}),monthData:[...O(W,"prev",{month:String(J),year:String(U)},Z),...F(Q,"curr",te)],cssHeight:0,cssScrollHeight:0},le=ee.monthData.length>35?6:5;ee.cssHeight=Vu+Eu*le;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,H=="next"?(!d.endData||!oe.compareDate(`${d.endData[0]}-${d.endData[1]}-${oe.getMonthDays(d.endData[0],d.endData[1])}`,`${z[0]}-${z[1]}-${z[2]}`))&&d.monthsData.push(ee):!d.startData||!oe.compareDate(`${z[0]}-${z[1]}-${z[2]}`,`${d.startData[0]}-${d.startData[1]}-01`)?d.monthsData.unshift(ee):d.unLoadPrev=!0},I=()=>{let z=e.startDate?e.startDate:oe.getDay(0),H=e.endDate?e.endDate:oe.getDay(365);d.propStartDate=z,d.propEndDate=H,d.startData=p(z),d.endData=p(H),(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])},J={year:Number(d.endData[0]),month:Number(d.endData[1])};let U=J.month-W.month;J.year-W.year>0&&(U=U+12*(J.year-W.year)),U<=0&&(U=1),D(d.startData,"next");let Q=1;do D(V("next"),"next");while(Q++<U);if(d.monthsNum=U,e.type=="range"&&Array.isArray(d.currDate))d.currDate.length>0&&(z&&oe.compareDate(d.currDate[0],z)&&d.currDate.splice(0,1,z),H&&oe.compareDate(H,d.currDate[1])&&d.currDate.splice(1,1,H),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 Z=[],te={};d.currDate.forEach(ee=>{z&&!oe.compareDate(ee,z)&&H&&!oe.compareDate(H,ee)&&(Object.hasOwnProperty.call(te,ee)||(Z.push(ee),te[ee]=ee))}),d.currDate=[...Z],d.defaultData=[...p(Z[0])]}}else if(e.type=="week"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let[Z,te,ee]=p(d.currDate[0]),le=oe.getWeekDate(Z,te,ee,e.firstDayOfWeek);d.currDate=le,z&&oe.compareDate(d.currDate[0],z)&&d.currDate.splice(0,1,z),H&&oe.compareDate(H,d.currDate[1])&&d.currDate.splice(1,1,H),d.defaultData=[...p(d.currDate[0]),...p(d.currDate[1])]}}else d.currDate&&(z&&oe.compareDate(d.currDate,z)?d.currDate=z:H&&!oe.compareDate(d.currDate,H)&&(d.currDate=H),d.defaultData=[...p(d.currDate)])};Ve({scrollToDate:z=>{oe.compareDate(z,d.propStartDate)?z=d.propStartDate:oe.compareDate(z,d.propEndDate)||(z=d.propEndDate);let H=p(z);d.monthsData.forEach((W,J)=>{if(W.title==a("monthTitle",{year:H[0],month:H[1]})&&c.value){let U=d.monthsData[J].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let Q=0,Z=setInterval(()=>{if(Q++,c.value){let te=U/10;c.value.scrollTop=c.value.scrollTop+te}Q>=10&&(clearInterval(Z),c.value&&(c.value.scrollTop=d.monthsData[J].cssScrollHeight))},40)}else c.value.scrollTop=d.monthsData[J].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)},doLayout:()=>{let z=0,H=0;d.defaultData.length>0&&d.monthsData.forEach((U,Q)=>{U.title==a("monthTitle",{year:d.defaultData[0],month:d.defaultData[1]})&&(z=Q),(e.type=="range"||e.type=="week")&&U.title==a("monthTitle",{year:d.defaultData[3],month:d.defaultData[4]})&&(H=Q)}),v(d.monthsNum,z),d.currentIndex=z,d.yearMonthTitle=d.monthsData[d.currentIndex].title,d.defaultData.length>0&&(d.isRange?(q({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0),q({day:d.defaultData[5],type:"curr"},d.monthsData[H],!0)):e.type=="week"?q({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0):e.type=="multiple"?[...d.currDate].forEach(U=>{let Q=p(U),Z=d.currentIndex;d.monthsData.forEach((te,ee)=>{te.title==a("monthTitle",{year:Q[0],month:Q[1]})&&(Z=ee)}),q({day:Q[2],type:"curr"},d.monthsData[Z],!0)}):q({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0));let W=d.monthsData[d.monthsData.length-1],J=W.cssHeight+W.cssScrollHeight;Ye(()=>{c?.value&&u?.value&&f?.value&&(h.value=c.value.clientHeight,u.value.style.height=`${J}px`,c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)}),d.avgHeight=Math.floor(J/(d.monthsNum+1))}});const v=(z,H)=>{z>=3?H>0&&H<z?d.defaultRange=[H-1,H+3]:H==0?d.defaultRange=[H,H+4]:H==z&&(d.defaultRange=[H-2,H+2]):d.defaultRange=[0,z+2];let W=d.monthsData[d.defaultRange[0]].cssScrollHeight;d.translateY=W},X=(z,H)=>(e.type=="range"||e.type=="week")&&z.type=="curr"&&$(z,H)=="fox-calendar__day--active",G=(z,H)=>X(z,H)&&b(N(z,H)),M=(z,H)=>d.currDate.length>=2&&C(N(z,H))?X(z,H):!1,L=()=>{if(d.currDate.length>=2)return oe.isEqual(d.currDate[0],d.currDate[1])},K=z=>{const H=`${z.year}-${z.month}-${Number(z.day)<10?"0"+z.day:z.day}`;return oe.isEqual(H,oe.date2Str(new Date))},P=z=>{if(d.monthsData.length<=1)return;const H=z.target.scrollTop;let W=Math.floor(H/d.avgHeight);if(W==0)H>=d.monthsData[W+1].cssScrollHeight&&(W+=1);else if(W>0&&W<d.monthsNum-1)H>=d.monthsData[W+1].cssScrollHeight&&(W+=1),H<d.monthsData[W].cssScrollHeight&&(W-=1);else{const J=Math.round(H+h.value);J<d.monthsData[W].cssScrollHeight+d.monthsData[W].cssHeight&&H>d.monthsData[W-1].cssScrollHeight&&(W-=1),W+1<=d.monthsNum&&J>=d.monthsData[W+1].cssScrollHeight+d.monthsData[W+1].cssHeight&&(W+=1),W>=1&&H<d.monthsData[W-1].cssScrollHeight&&(W-=1)}d.currentIndex!==W&&(d.currentIndex=W,v(d.monthsNum,W)),d.yearMonthTitle=d.monthsData[W].title},R=()=>{d.chooseData.splice(0),d.monthsData.splice(0),I()};return I(),t.watch(()=>e.defaultValue,z=>{z&&e.poppable&&R()}),{weeks:i,compConthsData:y,showTopBtn:g,topInfo:k,bottomInfo:S,rangeTip:L,mothsViewScroll:P,getClass:$,isStartTip:G,isEndTip:M,chooseDay:q,isCurrDay:K,confirm:T,months:c,...t.toRefs(d),...t.toRefs(e),...r,monthsPanel:u,weeksPanel:m,viewArea:f}}}),xu={class:"fox-calendar__header"},Mu={key:0,class:"fox-calendar__header-title"},zu={key:1,class:"fox-calendar__header-slot"},Lu={key:2,class:"fox-calendar__header-subtitle"},Pu={class:"fox-calendar__weekdays",ref:"weeksPanel"},Fu={class:"fox-calendar__panel",ref:"monthsPanel"},Ru={class:"fox-calendar__month-title"},Ou={class:"fox-calendar__days"},vu=["onClick"],Ku={class:"fox-calendar__day-value"},Uu={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Hu={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},ju={key:2,class:"fox-calendar__day-tips--curr"},Wu={key:4,class:"fox-calendar__day-tip"},Yu={key:0,class:"fox-calendar__footer"};function Xu(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",xu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Mu,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",Lu,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Pu,[(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",Fu,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:i},[t.createElementVNode("view",Ru,t.toDisplayString(s.title),1),t.createElementVNode("view",Ou,[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",Ku,[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",Uu,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Hu,[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",Wu,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,vu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Yu,[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=_(qu,[["render",Xu]]),Qu=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:Gu}=Y("calendar"),Zu=Gu({components:{[ns.name]:ns,[ce.name]:ce},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=k=>{i.value?.scrollToDate(k)},u=()=>{i.value?.initPosition()};t.watch(()=>e.visible,k=>{k&&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:k=>{n("select",k)},choose:k=>{f(),n("choose",k)},calendarRef:i,showTopBtn:o,topInfo:a,dayInfo:r,bottomInfo:s}}});function Ju(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 Dn=_(Zu,[["render",Ju]]),Uo=(e,n)=>{let l;return Oe(e)?l=e:typeof e=="string"&&ye(e)>0?l=oe.parser(e,n):l=new Date,l},ht=(e,n,l)=>(Oe(n)||(n=new Date),oe.format(n,l)),gt=e=>{let n=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,o=`${e.getDate()}`,a=oe.date2Str(e),r=oe.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,l,o,a,r]};function _u(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),k=t.computed(()=>i.type==="range"),S=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),d=()=>{S.startDate!==null&&(S.startDate=null,S.endDate=null,S.startArray=[],S.endArray=[])},p=(P,R="one",z="YYYY-MM-DD")=>{if(Qu(P)){d();return}if(k.value&&Array.isArray(P)&&P.length==2){let H,W;typeof P[0]=="string"?(H=Uo(P[0],z),W=Uo(P[1],z)):(H=P[0],W=P[1]);let J=gt(H),U=gt(W);(S.startDate===null||S.startDate.getTime()!==H.getTime()||S.endDate?.getTime()!==W.getTime())&&(S.startDate=H,S.startArray=J,S.endDate=W,S.endArray=U)}else{let H;typeof P=="string"?H=Uo(P,z):H=P;let W=gt(H);(S.startDate===null||S.startDate.getTime()!==H.getTime())&&(S.startDate=H,S.startArray=W)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,P=>{p(P,i.type,i.valueFormat)});const b=t.computed(()=>{if(S.startDate===null)return"";if(k.value){let P=ht(i,S.startDate,i.format),R=ht(i,S.endDate,i.format);return`${P} ${i.rangeSeparator} ${R}`}else{let P=ht(i,S.startDate,i.format);return i.showWeek&&(P=`${P} ${S.startArray[4]}`),P}}),C=t.computed(()=>{if(S.startDate===null)return null;if(k.value){let P=oe.date2Str(S.startDate),R=oe.date2Str(S.endDate??new Date);return[P,R]}else return oe.date2Str(S.startDate)}),A="fox-input-item",N=t.computed(()=>({[A]:!0,[`${A}__disabled`]:u.value})),$=Ae(t.computed(()=>i.textAlign),"textAlign"),T=t.computed(()=>{const P={};return $.value&&(P["text-align"]=$.value),P}),q=t.ref(!1),B=()=>{m.value||u.value||(q.value=!0)},V=P=>{q.value=P},F=P=>{if(P){if(k.value&&Array.isArray(P)){let R=P[0],z=ge(R[0]),H=ge(R[1]),W=ge(R[2]),J=new Date(z,H-1,W),U=P[1];z=ge(U[0]),H=ge(U[1]),W=ge(U[2]);let Q=new Date(z,H-1,W);if(S.startDate=J,S.startArray=gt(J),S.endDate=Q,S.endArray=gt(Q),i.valueFormat){let Z=ht(i,J,i.valueFormat),te=ht(i,Q,i.valueFormat);f("update:modelValue",[Z,te],{})}else f("update:modelValue",[J,Q],{})}else{let R=P,z=ge(R[0]),H=ge(R[1]),W=ge(R[2]),J=new Date(z,H-1,W);if(S.startDate=J,S.startArray=gt(J),i.valueFormat){let U=ht(i,J,i.valueFormat);f("update:modelValue",U,{})}else f("update:modelValue",J,{})}f("change",P,{})}},O=P=>{let z=P.target.value;g.value=!0,f("focus",z,P)},D=P=>{setTimeout(()=>{g.value=!1},0);let z=P.target.value;i.maxLength&&z.length>Number(i.maxLength)&&(z=z.slice(0,Number(i.maxLength))),f("blur",z,P)},I=t.computed(()=>({[`${A}__append`]:!0})),x=t.computed(()=>ye(i.unit)>0),E=t.computed(()=>ye(i.unit)>0&&!g.value),j=t.computed(()=>({hidden:!E.value})),v=P=>{d(),f("update:modelValue",null,P),f("change","",P),f("clear","")},X=t.computed(()=>i.clearable&&!u.value&&!m.value),G=t.computed(()=>{let P=ye(b.value)>0;return i.clearable&&P&&g.value}),M=P=>{G.value?v(P):B()},L=t.computed(()=>G.value&&X.value?a:r),K=t.computed(()=>({action:!0}));return()=>{const P={class:N.value,style:T.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:B,onFocus:O,onBlur:D};s&&(P.disabled=!0);const R=[],z=t.h("input",P);R.push(z);const H=[],W={class:["action-icon"]},J=t.h(L.value,W),U={class:K.value,onClick:M},Q=t.h("view",U,{default:()=>[J]});if(H.push(Q),x.value){const it=t.h("view",{class:j.value},[i.unit]);H.push(it)}const Z={class:I.value},te=t.h("view",Z,{default:()=>H});R.push(te);const ee={default:()=>R};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 le=me(i,Ko);le.visible=q.value,le["onUpdate:visible"]=V,le["default-value"]=C.value,le.onChoose=F;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,le,ae);ee.hide=()=>[Ie];const be=me(i,fe,ue);return t.h(o,be,ee)}}}}const{componentName:ef,create:tf,scope:nf}=Y("calendar-item"),Ho=tf(_u(ef,nf,Dn,Ce,{CloseIcon:ne.CircleClose,MarkIcon:ne.Date},!1)),of={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 lf(e,{CheckNormal:n,Checked:l}){return{props:{...of},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 k=ie(o.iconSize),S=o.checkedIcon??l;return t.h(S,{width:k,height:k,class:c.value})}}else{if(r.icon)return r.icon();{const k=ie(o.iconSize),S=o.icon??n;return t.h(S,{width:k,height:k,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:af,create:rf}=Y("radio"),In=rf(lf(af,{CheckNormal:ne.CheckNormal,Checked:ne.CheckChecked})),{componentName:os,create:sf}=Y("radio-group"),qn=sf({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(xn(e,r)===l)return a}else if(o==="item"){if(xe(l,r))return a}else if(zt(e,r)===l)return a}return-1}function xn(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 cf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function df(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let uf=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 ff(){const e=t.getCurrentInstance();return new uf(e.proxy)}function mf(e){return{text:e,value:e}}const as={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},pf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}};function hf(e,n,l,o,a){return{props:{...ue,...fe,...as,...pf,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=ff(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,p])=>{if(d){const b=await f.load("radio",d,p);if(b.length>0)if(typeof b[0]=="string"){const N=b.map($=>mf($));h.value=N}else h.value=b}},{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)}),k=d=>{let p=null,b=null;if(h.value.length>0){let C=ls(r,h.value,d,"value");y.value=C,C>=0&&(b=h.value[C],r.valueType==="text"?p=xn(r,b):r.valueType==="item"?p=b:p=zt(r,b))}else p=d;m("update:modelValue",p),m("change",p,b)},S=()=>{let d=null,p=null;if(h.value.length>0&&y.value!==-1){let b=h.value[y.value];r.valueType==="text"?d=xn(r,b):r.valueType==="item"?d=b:d=zt(r,b)}m("update:modelValue",d),m("change",d,p)};if(Ve({clear(){y.value!==-1&&(y.value=-1,S())}}),r.source){const d=()=>{const p=[],b=me(r,as);return h.value.forEach((C,A)=>{const N=zt(r,C),$=cf(r,C);let T={...b,label:N,disabled:$};const q=df(r,C,A);T={...T,...q},c.value&&(T.disabled=!0),i.value&&(T.readonly=!0);const B={};if(s.slots.icon&&(B.icon=s.slots.icon),s.slots.checkedIcon&&(B.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const F=s.slots.text(C);B.default=()=>[F]}else{const F=xn(r,C);B.default=()=>F}let V=t.h(a,T,B);p.push(V)}),p};return()=>{const p=d(),b={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"onUpdate:modelValue":k},C=t.h(o,b,{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=me(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":k},{default:()=>d})}}}}const{componentName:gf,create:yf,scope:kf}=Y("radio-item"),jo=yf(hf(gf,kf,Ce,qn,In)),bf=(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,b=>{c.partialSelect=b});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=(b,C)=>{y="click",r("update:modelValue",b),r("change",b,C)};t.watch(()=>a.modelValue,b=>{y=="click"?y="":r("change",b)});const k=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const b=ie(a.iconSize),C=a.indeterminateIcon??o;return t.h(C,{width:b,height:b,class:h.value})}}else if(m.value){if(s.checkedIcon)return s.checkedIcon();{const b=ie(a.iconSize),C=a.checkedIcon??l;return t.h(C,{width:b,height:b,class:h.value})}}else{if(s.icon)return s.icon();{const b=ie(a.iconSize),C=a.icon??n;return t.h(C,{width:b,height:b,class:h.value})}}},S=()=>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=b=>{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,$=C.indexOf(N);$>-1?C.splice($,1):$<=-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():[k(),S()]])}}),{componentName:Sf,create:Cf}=Y("checkbox"),Mn=Cf(bf(Sf,{CheckNormal:ne.CheckNormal,Checked:ne.Checked,Indeterminate:ne.CheckDisabled})),{create:wf,componentName:rs}=Y("checkbox-group"),zn=wf({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(xe(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 Nf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Bf(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let Af=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 $f(){const e=t.getCurrentInstance();return new Af(e.proxy)}function Tf(e){return{text:e,value:e}}const Vf={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 Ef(e,n,l,o,a){return{props:{...Vf,...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=$f(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,p])=>{if(d){const b=await f.load("checkbox",d,p);if(b.length>0)if(typeof b[0]=="string"){const N=b.map($=>Tf($));h.value=N}else h.value=b}},{immediate:!0});const y=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([d,p])=>{const b=[];Array.isArray(d)&&d.forEach(C=>{let A=ss(r,p,C,r.valueType);A!==-1&&b.push(A)}),!xe(b,y.value)&&(y.value=b)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let d=[];return y.value.forEach(p=>{let b=h.value[p];d.push(Ln(r,b))}),d}),k=d=>{let p=[],b=[];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 $=h.value[N];b.push($),r.valueType==="text"?p.push(Wo(r,$)):r.valueType==="item"?p.push($):p.push(Ln(r,$))}),y.value=C}else p=d;m("update:modelValue",p),m("change",p,b)},S=t.ref();if(Ve({toggleAll:d=>{S.value.toggleAll(d)},toggleReverse:()=>{S.value.toggleReverse()}}),r.source){const d=()=>{const p=[],b=me(r,is);return h.value.forEach((C,A)=>{const N=Ln(r,C),$=Nf(r,C);let T={...b,label:N,disabled:$};const q=Bf(r,C,A);T={...T,...q},i.value&&(T.disabled=!0),c.value&&(T.readonly=!0);const B={};if(s.slots.icon&&(B.icon=s.slots.icon),s.slots.checkedIcon&&(B.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(B.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const F=s.slots.text(C);B.default=()=>[F]}else{const F=Wo(r,C);B.default=()=>F}let V=t.h(a,T,B);p.push(V)}),p};return()=>{const p=d(),b={class:`${e}`,ref:S,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":k},C=t.h(o,b,{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=me(r,fe,ue);return t.h(l,N,A)}}else return()=>{const d=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:S,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"onUpdate:modelValue":k},{default:()=>d})}}}}const{componentName:Df,create:If,scope:qf}=Y("checkbox-item"),Yo=If(Ef(Df,qf,Ce,zn,Mn)),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:xf,create:Mf}=Y("switch"),zf=Mf({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=xf;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}}}),Lf={class:"fox-switch-button"};function Pf(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",Lf,[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 Pn=_(zf,[["render",Pf]]);function Ff(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={...me(a,Xo),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},g=[],k=t.h(o,y);g.push(k);const S={default:()=>g};S.label=r.slots.default,S.fixedPreTip=r.slots.fixedPreTip,S.fixedTip=r.slots.fixedTip;const d=me(a,fe,ue);return d["content-class"]=u,t.h(l,d,S)}}}}const{componentName:Rf,create:Of,scope:vf}=Y("switch-item"),Qo=Of(Ff(Rf,vf,Ce,Pn));function Kf(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&&de(f.value)})),g=Ae(t.computed(()=>a.textAlign),"textAlign"),k=t.computed(()=>{const F={};return g.value&&(F["text-align"]=g.value),F}),S=t.computed(()=>!de(a.modelValue)||r.slots.main?!0:!!de(a.desc)),d=t.computed(()=>de(f.value)?c.placeholder.value:f.value),p=t.computed(()=>!de(a.desc)||r.slots.sub),b=t.computed(()=>({[`${e}__sub`]:!0})),C=t.computed(()=>{const F={};return g.value&&(F["text-align"]=g.value),F}),A=()=>{s("focus",f.value)},N=()=>{s("blur",f.value)},$=t.computed(()=>({[`${e}__append`]:!0})),T=t.computed(()=>ye(a.unit)>0),q=F=>{u.value==!0||m.value==!0||s("click")},B=t.computed(()=>a.icon??l),V=t.computed(()=>({action:!0}));return()=>{const F=[];if(typeof r.slots.content=="function"){const L=r.slots.content();F.push(L)}else{const L=[];if(S.value){const R={tabIndex:0,class:y.value,style:k.value,onFocus:A,onBlur:N,onClick:q};let z=null;r.slots.main?z=t.h("view",R,[r.slots.main(d.value)]):z=t.h("view",R,[d.value]),L.push(z)}if(p.value){const R={tabIndex:0,class:b.value,style:C.value,onFocus:A,onBlur:N,onClick:q};let z=null;r.slots.sub?z=t.h("view",R,[r.slots.sub(a.desc)]):z=t.h("view",R,[a.desc]),L.push(z)}const K={class:h.value},P=t.h("view",K,L);F.push(P)}const O=[],D=ie(a.iconSize);let I=r.slots.icon;if(!I){const L={width:D,height:D,class:["action-icon"]};I=t.h(B.value,L)}const x={class:V.value,onClick:q},E=t.h("view",x,{default:()=>[I]});if(O.push(E),T.value){const L=t.h("view",{},[a.unit]);O.push(L)}const j={class:$.value},v=t.h("view",j,{default:()=>O});F.push(v);const X={default:()=>F};X.label=r.slots.default,X.prepend=r.slots.prepend,X.append=r.slots.append,X.fixedPreTip=r.slots.fixedPreTip,X.fixedTip=r.slots.fixedTip;const G=me(a,fe,ue);return t.h(o,G,X)}}}}const{componentName:Uf,create:Hf,scope:jf}=Y("link-item"),Go=Hf(Kf(Uf,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:Wf,componentName:Yf}=Y("rate"),Xf=Wf({props:{...Zo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:l}){const o=t.ref([]),a=t.computed(()=>({[Yf]:!0})),r=y=>{n("update:modelValue",y),n("change",y)},s=(y,g)=>{if(e.disabled||e.readonly)return;let k=0;g===1&&e.modelValue===g||(k=g,e.allowHalf&&y==2&&(k-=.5)),r(k)},i=(y,g,k)=>{let S=0;for(let d=g.value.length-1;d>=0;d--){const p=g.value[d];if(y>p.offsetLeft){k?S=d+(y>p.offsetLeft+p.clientWidth/2?1:.5):S=d+1;break}}return S},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:pe,renderIcon:(y,g)=>t.h(y,g),rateRefs:o,refRandomId:m,slots:l,customIcon:f}}}),Qf=["id"],Gf={class:"fox-rate-item__icon--full"},Zf={key:0,class:"fox-rate-item__icon--half"},Jf={key:1,class:"fox-rate-item__icon--half"};function _f(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",Gf,[(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",Zf,[(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",Jf,[(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,Qf))),128))],34)}const yt=_(Xf,[["render",_f]]);function em(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={...me(a,Zo),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},g=[],k=t.h(o,y);g.push(k);const S={default:()=>g};if(r.slots.default){const b=r.slots.default();S.label=()=>b}const d=me(a,fe,ue);return d["content-class"]=u,t.h(l,d,S)}}}}const{componentName:tm,create:nm,scope:om}=Y("rate-item"),Jo=nm(em(tm,om,Ce,yt)),_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 lm(e,n,l,o="value"){for(let a=0;a<n.length;a++){let r=n[a];if(o==="text"){if(Fn(e,r)===l)return a}else if(o==="item"){if(xe(l,r))return a}else if(ds(e,r)===l)return a}return-1}function Fn(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 am(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function rm(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let sm=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 im(){const e=t.getCurrentInstance();return new sm(e.proxy)}const{componentName:cm,create:dm,scope:um}=Y("infinite-loading"),fm=dm({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(um),a=o(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=vr(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[cm]:!0})),u=k=>k?k.offsetTop+u(k.offsetParent):0,m=()=>{let k=0,S=0,d="down";if(s.value==window){const p=so();r.value&&(k=u(r.value)+r.value.offsetHeight-p-window.innerHeight),S=p}else{const{scrollHeight:p,clientHeight:b,scrollTop:C}=s.value;k=p-b-C,S=C}return i.beforeScrollTop>S?d="up":d="down",i.beforeScrollTop=S,n("scroll-change",S),k<=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,k=>{k||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),mm={class:"fox-infinite__container"},pm={class:"fox-infinite__bottom"},hm={key:0,class:"fox-infinite__bottom-box"},gm={class:"fox-infinite__bottom-box__text"},ym={class:"fox-infinite__bottom-tips"};function km(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",mm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",pm,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",hm,[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",gm,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",ym,t.toDisplayString(e.loadMoreText),1)])])],2)}const Rn=_(fm,[["render",km]]),{componentName:bm,create:Sm}=Y("button"),Cm=Sm({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=bm;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}}}),wm={class:"fox-button__wrap"};function Nm(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",wm,[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=_(Cm,[["render",Nm]]),{create:Bm,scope:Am}=Y("searchbar"),$m=Bm({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(Am),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)},k=p=>{n("click-right-icon",e.modelValue,p)},S=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:k,styleSearchbar:S}}}),Tm={key:0,class:"fox-searchbar__search-label"},Vm={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},Em=["type","maxlength","placeholder","value","disabled","readonly"],Dm={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},Im={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function qm(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",Tm,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",Vm,[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,Em)],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",Dm,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",Im,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const On=_($m,[["render",qm]]);function xm(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=im(),u=t.ref([]),m=t.ref(0),f=t.ref(""),h=t.shallowRef(null),y=t.computed(()=>{const M={};return o.params&&Object.assign(M,o.params),de(f.value)||(M[`${o.searchKey}`]=f.value),h.value&&Object.assign(M,h.value),M});let g=!0;const k=async(M,L,K)=>{try{if(d.value===!1)return;let P=null;de(f.value)||(P=z=>{const H=Fn(o,z);if(typeof H=="string"&&H.includes(f.value))return!0;const W=cs(o,z);return!!(typeof W=="string"&&W.includes(f.value))});const R=await c.load("actionsheet",M,L,K,y.value,g,P??void 0);g=!1,Array.isArray(R)?(u.value=R,m.value=1,d.value=!1):!Array.isArray(R.page)||R.page.length===0?(console.warn("[FoxUI] can not load more data"),d.value=!1):(Reflect.apply([].push,u.value,R.page),m.value=Math.ceil(u.value.length/o.pageSize),(R.totalSize&&u.value.length>=R.totalSize||K<R.page.length)&&(d.value=!1)),S.value=!1}catch(P){console.error("[FoxUI] ActionSheet load more data fail",P),d.value=!0,m.value=0,u.value=[]}setTimeout(()=>{a("loaded-data")},250)},S=t.ref(!1),d=t.ref(!0),p=async()=>{if(!o.source){S.value=!1;return}await k(o.source,m.value+1,o.pageSize)};t.watch(()=>f.value,(M,L)=>{de(M)&&!de(L)&&p()}),t.watch([()=>o.source,()=>o.pageSize,()=>o.params],async([M,L,K])=>{o.source&&p()},{immediate:!0});const b=t.computed(()=>!o.multiple&&o.isAutoBackFill),C=t.ref([]);let A=null;const N=t.ref(o.visible);t.watch(()=>o.visible,M=>{N.value!==M&&(N.value=M),M?A=[...C.value]:A=null});const $=(M,L)=>{const K=[];return Array.isArray(M)||(M=[M]),M.forEach(P=>{let R=lm(o,L,P,o.valueType);R!==-1&&K.push(R)}),xe(K,C.value)?!1:(C.value=K,!0)};t.watch([()=>o.modelValue,()=>u.value],([M,L],[K,P])=>{if($(M,L)){const z=T();q(z)}},{deep:!0});const T=()=>{const M=[],L=[],K=[];for(let H of C.value){const W=u.value[H];L.push(W);const J=Fn(o,W);if(K.push(J),o.valueType==="item")M.push(W);else if(o.valueType==="text")M.push(J);else{const U=ds(o,W);M.push(U)}}let P=null,R=null,z=null;return o.multiple?(P=M,R=K,z=L):(P=M[0]??null,R=K[0]??null,z=L[0]??null),{value:P,text:R,item:z}},q=M=>{a("update:modelValue",M.value),a("update:text",M.text),a("change",M.value,M.item,M.text)},B=()=>{A&&(C.value=A)},V=M=>{const L=C.value.indexOf(M);o.multiple?L===-1?C.value.push(M):C.value.splice(L,1):L===-1?C.value=[M]:C.value=[],(b.value||!o.poppable&&!o.showFooter)&&D()},F=M=>{N.value=M,a("update:visible",M)},O=()=>{const M=()=>{B(),F(!1)};if(typeof o.beforeClose=="function"){const L=o.beforeClose("close");$t(L)?L.then(K=>{K!==!1&&M()}).catch(()=>{M()}):L!==!1&&M()}else M()},D=()=>{const M=T(),L=()=>{q(M),F(!1)};if(typeof o.beforeClose=="function"){const K=o.beforeClose("confirm",M.value,M.item,M.text);$t(K)?K.then(P=>{P!==!1&&L()}).catch(()=>{L()}):K!==!1&&L()}else L()},I=()=>{d.value=!0,m.value=0,u.value=[],o.source&&p()},x=()=>{let M=i.title.value??"";r.title&&(M=r.title());const L=t.h("view",{class:["fox-actionsheet__header-title"]},[M]),K=t.h(ne.Close,{class:["fox-actionsheet__header-icon"],onClick:O});return t.h("view",{class:["fox-actionsheet__header"]},[L,K])},E=()=>{let M=null;if(r.search)M=r.search();else{const L={onSearch:I,placeholder:i.seachPlaceholder.value,disabled:o.disabled,modelValue:f.value,"onUpdate:modelValue":K=>{f.value=K}};M=t.h(On,L,{leftin:()=>t.h(ne.Search2)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[M])},j=(M,L,K,P,R)=>{if(r.optionLabel)return r.optionLabel({text:M,checked:L,disabled:K,subText:P,item:R});const z=[],H=t.h("view",{class:"fox-actionsheet__list-item-text"},[M]);if(z.push(H),P){const W=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[P]);z.push(W)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},z)},v=(M,L,K,P)=>{if(r.optionIcon)return r.optionIcon({checked:M,disabled:L,iconSize:K,item:P});if(M){if(r.checkedIcon)return r.checkedIcon({disabled:L,item:P});{const R=o.checkedIcon??ne.Checked;return t.h(R,{width:K,height:K,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:L,item:P});{const R=o.icon??ne.CheckNormal;return t.h(R,{width:K,height:K,class:["fox-actionsheet__list-item-icon"]})}}},X=()=>{const M=[];for(let L=0;L<u.value.length;L++){const K=u.value[L],P=Fn(o,K),R=cs(o,K),z=["fox-actionsheet__list-item"],H={};let W=am(o,K),J=o.iconSize?ie(o.iconSize):null;const U=rm(o,K,L);U&&(W=W||U.disabled,U.class&&z.push(U.class),U.style&&Object.assign(H,U.style)),W=!!(o.disabled||W);const Q=C.value.includes(L);W&&z.push("is-disabled"),Q&&z.push("is-checked");const Z={class:z,style:H,key:`${L}`,onClick:()=>{W||V(L)}};let te=[];if(r.option)te.push(r.option({item:K,checked:Q,disabled:W}));else{const le=j(P,Q,W,R,K);te.push(le);const ae=v(Q,W,J,K);te.push(ae)}const ee=t.h("view",Z,te);M.push(ee)}return M},G=()=>{let M=[];if(r.buttons)M=r.buttons();else{const K=t.h(Me,{type:"primary",block:"block",onClick:D,disabled:o.disabled},{default:()=>i.confirmText.value});M.push(K)}return t.h("view",{class:"fox-actionsheet__footer"},[M])};return Ve({search:async(M=null,L=!0)=>{h.value=M&&t.toRaw(M),t.triggerRef(h),L&&(d.value=!0,m.value=0,u.value=[]),t.nextTick(()=>{p()})},clear:()=>{d.value=!0,m.value=0,u.value=[]},confirm:()=>{D()},cancel:()=>{O()}}),()=>{const M=[];if(o.showHeader){const J=x();M.push(J)}if(o.showSearchbar){const J=E();M.push(J)}let L=null;if(r.content)L=r.content();else{const J=X(),U={hasMore:d.value,loadText:i.loadText.value,loadMoreText:i.loadMoreText.value,modelValue:S.value,"onUpdate:modelValue":Q=>{S.value=Q},onLoadMore:p};L=t.h(Rn,U,{default:()=>J})}const K={};o.optionsHeight&&(K.height=o.optionsHeight);const P={"fox-actionsheet__list":!0};o.poppable||(P["fox-actionsheet__list--inner"]=!0);const R=t.h("view",{class:P,style:K},[L]);if(M.push(R),o.showFooter&&!b.value){const J=G();M.push(J)}const z=t.h("view",{class:"fox-actionsheet"},M);if(!o.poppable)return z;const H=["fox-actionsheet__popup"];o.popClass&&H.push(o.popClass);const W={popClass:H.join(" "),visible:N.value,closeable:!1,"onUpdate:visible":F,position:o.position,round:"round",onClickOverlay:O,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(ce,W,{default:()=>z})}}}}const{componentName:Mm,create:zm,scope:Lm}=Y("actionsheet-pane"),vn=zm(xm(Mm,Lm)),Pm={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 Fm(e,n,l,o,a,r,s){return{props:{...ue,...fe,...Pm,..._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),k=De(i,"modelValue"),S=t.ref(""),d=t.computed(()=>Array.isArray(S.value)?S.value.join(i.separator):S.value),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:u.value})),C=Ae(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const P={};return C.value&&(P["text-align"]=C.value),P}),N=t.ref(!1),$=()=>{N.value=!0},T=P=>{N.value=P},q=P=>{k.value=P,f("update:modelValue",P)},B=(P,R)=>{f("change",P,R)},V=P=>{let z=P.target.value;g.value=!0,f("focus",z,P)},F=P=>{setTimeout(()=>{g.value=!1},0);let z=P.target.value;i.maxLength&&z.length>Number(i.maxLength)&&(z=z.slice(0,Number(i.maxLength))),f("blur",z,P)},O=P=>{S.value=P,f("update:text",P)},D=t.computed(()=>({[`${p}__append`]:!0})),I=t.computed(()=>ye(i.unit)>0),x=t.computed(()=>ye(i.unit)>0&&!g.value),E=t.computed(()=>({hidden:!x.value})),j=P=>{k.value="",f("update:modelValue","",P),f("change","",P),f("clear","")},v=t.computed(()=>i.clearable&&!u.value&&!m.value),X=t.computed(()=>ye(k.value)>0&&g.value),G=P=>{X.value?j(P):$()},M=t.computed(()=>X.value&&v.value?o:a),L=t.computed(()=>({action:!0})),K=t.ref(null);return Ve({search:P=>{K.value&&K.value.search(P)},clear:()=>{K.value&&K.value.clear},confirm:P=>{K.value&&K.value.confirm()},cancel:()=>{K.value&&K.value.cancel()}}),()=>{const P={class:b.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:$,onFocus:V,onBlur:F};s&&(P.disabled=!0);const R=[],z=t.h("input",P);R.push(z);const H=[],W={class:["action-icon"]},J=t.h(M.value,W),U={class:L.value,onClick:G},Q=t.h("view",U,{default:()=>[J]});if(H.push(Q),I.value){const it=t.h("view",{class:E.value},[i.unit]);H.push(it)}const Z={class:D.value},te=t.h("view",Z,{default:()=>H});R.push(te);const ee={default:()=>R};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 le=me(i,_o);le.ref=K,le.class=i.actionsheetProps,le.disabled=u.value||m.value,le.visible=N.value,le["onUpdate:visible"]=T,le.modelValue=k.value,le["onUpdate:modelValue"]=q,le.text=S.value,le["onUpdate:text"]=O,le.onChange=B,le.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,le,ae);ee.hide=()=>[Ie];const be=me(i,fe,ue);return t.h(l,be,ee)}}}}const{componentName:Rm,create:Om,scope:vm}=Y("actionsheet-item"),el=Om(Fm(Rm,vm,Ce,ne.CircleClose,ne.ArrowRight,vn)),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:Km,create:Um}=Y("input-number"),Hm=Um({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=Km;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 k=o(y);n("update:modelValue",k,g),n("change",k,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 k=y.target.valueAsNumber;k<Number(e.min)?k=Number(e.min):k>Number(e.max)&&(k=Number(e.max)),r(k,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:pe}}}),jm=["min","max","disabled","readonly","value"];function Wm(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=_(Hm,[["render",Wm]]);function Ym(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={...me(a,tl),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},k=t.h(o,g,h),S=[];S.push(k);const d={default:()=>S};d.label=r.slots.default,d.fixedPreTip=r.slots.fixedPreTip,d.fixedTip=r.slots.fixedTip;const p=me(a,fe,ue);return p["content-class"]=u,t.h(l,p,d)}}}}const{componentName:Xm,create:Qm,scope:Gm}=Y("inputnumber-item"),nl=Qm(Ym(Xm,Gm,Ce,Ze)),{create:Zm,componentName:Kn,scope:U2}=Y("tabs-bar"),Jm=Zm({components:{MoreH:ne.MoreH},props:{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"},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}},emits:["update:modelValue","change"],setup(e,{slots:n,emit:l}){const o=t.computed(()=>{const x={};return x[`${Kn}`]=!0,x}),a=t.computed(()=>{const x={};return x[`${Kn}__titles`]=!0,x[`${e.direction}`]=!0,e.align==="left"&&(x.left=!0),e.scroll===!0&&(x.scrollable=!0),e.shape&&(x[`${e.shape}`]=!0),x}),r=t.computed(()=>({})),s=t.computed(()=>{if(!e.gutter)return 0;const x=ie(e.gutter);return x<=0?0:x}),i=t.ref(e.modelValue);t.watch(()=>e.modelValue,x=>{i.value!==x&&(i.value=x,I(!1))});const c=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),u=t.ref(),m=t.ref(!1),f=()=>{const x=!m.value;h(x)},h=x=>{const E=x;E?(m.value=E,setTimeout(()=>{c.value["fox-tabs-bar__popup--show"]=!0,c.value["fox-tabs-bar__popup--hide"]=!1},0)):(c.value["fox-tabs-bar__popup--show"]=!1,c.value["fox-tabs-bar__popup--hide"]=!0,u.value?u.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},y=t.ref(),g=t.ref([]),k=(x,E)=>{g.value[E]=x},S=x=>E=>{k(E,x)},d=(x,E)=>{const j=y.value,v=g.value;if(!j||!v||!v[x])return;const X=v[x];let G=0;e.direction==="vertical"?G=X.offsetTop-(j.offsetHeight-X.offsetHeight)/2:G=X.offsetLeft-(j.offsetWidth-X.offsetWidth)/2,p(j,G,E?0:.3,e.direction)},p=(x,E,j,v)=>{let X=0;const G=v==="horizontal"?x.scrollLeft:x.scrollTop,M=j===0?1:Math.round(j*1e3/16);function L(){v==="horizontal"?x.scrollLeft+=(E-G)/M:x.scrollTop+=(E-G)/M,++X<M&&Re(L)}L()},b=x=>x[e.textKey],C=x=>x[e.valueKey],A=x=>x[e.visibleKey],N=x=>x[e.disabledKey],$=(x,E)=>{const j=e.itemOptions;return typeof j=="function"?j(x,E):j||null},T=(x,E)=>{const j=C(x),v={};v[`${Kn}__titles-item`]=!0,v.disabled=N(x),v.active=j===i.value,e.shape&&(v[`${e.shape}`]=!0),e.ellipsis&&(v.ellipsis=!0);const X=$(x,E);return X&&(X.class&&(v[`${X.class}`]=!0),X.disabled===!0&&(v.disabled=X.disabled)),v},q=(x,E)=>{const j={};if(s.value>0){const X=Math.abs(s.value/2);e.direction==="vertical"?(j["margin-top"]=`${X}px`,j["margin-bottom"]=`${X}px`):(j["margin-left"]=`${X}px`,j["margin-right"]=`${X}px`)}const v=$(x,E);return v&&v.style&&Object.assign(j,v.style),j},B=(x,E)=>`${C(x)??E}`,V=(x,E)=>{const j=C(x),v={};v[`${Kn}__popup-item`]=!0,v.disabled=N(x),v.active=j===i.value,e.shape&&(v[`${e.shape}`]=!0);const X=$(x,E);return X&&X.disabled===!0&&(v.disabled=X.disabled),v},F=t.computed(()=>(e.data??[]).filter(E=>A(E)!==!1)),O=(x,E)=>{const j=C(x);i.value=j,e.scroll&&d(E,!1),l("update:modelValue",j),l("change",x,E)},D=(x,E)=>{O(x,E),h(!1)},I=x=>{if(!Array.isArray(e.data)||!e.scroll)return;const E=e.data.findIndex(j=>C(j)===i.value);E!==-1&&d(E,x)};return t.watch(()=>e.data,()=>{setTimeout(I,0)}),t.onMounted(()=>{I(!0)}),{classes:o,titlesClasses:a,titlesStyles:r,itemClasses:T,itemStyles:q,itemKey:B,popupItemClasses:V,filterTabItems:F,getItemText:b,getItemValue:C,onTabChange:O,titlesRef:y,createItemRefs:S,togglePopupVisible:f,onQuickNavigate:D,popupClasses:c,popupVisible:m,popupRef:u}}}),_m={class:"fox-tabs-bar"},ep=["onClick"],tp={class:"fox-tabs-bar__titles-item-text"},np=t.createElementVNode("view",{class:"fox-tabs-bar__titles-item-line"},null,-1),op=["onClick"];function lp(e,n,l,o,a,r){const s=t.resolveComponent("MoreH");return t.openBlock(),t.createElementBlock("view",_m,[t.createElementVNode("view",{ref:"titlesRef",class:t.normalizeClass(e.titlesClasses),style:t.normalizeStyle(e.titlesStyles)},[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:e.createItemRefs(c),class:t.normalizeClass(e.itemClasses(i,c)),style:t.normalizeStyle(e.itemStyles(i,c)),key:e.itemKey(i),onClick:u=>e.onTabChange(i,c)},[t.renderSlot(e.$slots,"item",{item:i,index:c},()=>[t.createElementVNode("view",tp,t.toDisplayString(e.getItemText(i)),1),np])],14,ep))),128))])],6),e.showQuickNavigation?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs-bar__navigation",onClick:n[0]||(n[0]=(...i)=>e.togglePopupVisible&&e.togglePopupVisible(...i))},[t.renderSlot(e.$slots,"navigation",{},()=>[t.createVNode(s)])])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("view",{ref:"popupRef",class:t.normalizeClass(e.popupClasses)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.popupItemClasses(i,c)),key:e.itemKey(i),onClick:u=>e.onQuickNavigate(i,c)},[t.renderSlot(e.$slots,"popup-item",{item:i,index:c},()=>[t.createTextVNode(t.toDisplayString(e.getItemText(i)),1)])],10,op))),128))],2),[[t.vShow,e.popupVisible]])])}const ol=_(Jm,[["render",lp]]),us=Symbol("TabsStatesKey"),{create:ap}=Y("tabs-container"),rp=ap({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(us,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=hn(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 sp(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=_(rp,[["render",sp]]),{create:ip}=Y("tabs-pane"),cp=ip({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(us);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?he(e.loaded):l.isLoaded(e.paneKey));return{styles:o,isLoaded:a}}}),dp={class:"fox-tabs-pane__empty"},up=t.createElementVNode("view",{class:"fox-tabs-pane__empty-text"},"loading",-1);function fp(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",dp,[t.createVNode(s,{class:"fox-tabs-pane__empty-icon"}),up])])],4)}const al=_(cp,[["render",fp]]),mp={direction:{type:[String],default:"horizontal"},mode:{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"},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 pp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function fs(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ms(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function hp(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 sl(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let gp=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 yp(){const e=t.getCurrentInstance();return new gp(e.proxy)}function kp(e,n,l,o){return{props:{...mp},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:s}){const i=e,c=yp(),u=t.ref([]),m=t.computed(()=>u.value.filter(M=>hp(a,M)!==!1)),f=t.ref(-1),h=()=>{const M=a.modelValue,L=m.value.findIndex(K=>fs(a,K)===M);f.value!==L&&(f.value=L,a.scroll&&X(L,!1))};t.watch([()=>a.modelValue,m],()=>{h()});const y=M=>f.value===M,g=M=>{if(M<0&&M>=m.value.length)return!1;const L=m.value[M],P=(sl(a,L,M)??{}).status??rl(a,L);return y(M)||P},k=t.computed(()=>{const M={[i]:!0};return a.mode?M[`is-${a.mode}`]=!0:a.direction&&(M[`is-${a.direction}`]=!0),a.scroll&&(M["is-scroll"]=!0),M}),S=t.computed(()=>({})),d=(M,L,K,P)=>{const R={[`${i}__step`]:!0};return P&&(R[`${P}`]=!0),M===f.value?R["is-active"]=!0:L==="done"?R["is-done"]=!0:L==="error"?R["is-error"]=!0:L==="half"?R["is-half"]=!0:K?R["is-disabled"]=!0:R["is-normal"]=!0,R},p=(M,L={})=>{const K={...L};return M===m.value.length-1?K.flex="0 0 auto":a.step?a.direction==="vertical"?K.height=a.step:K.width=a.step:K.flex="1 1 100%",K},b=(M,L)=>{let K={};if(L<m.value.length-1){const P=L+1;g(L)&&g(P)?a.direction==="vertical"?K.height="100%":K.width="100%":K.opacity="0"}return K},C=M=>m.value.length-1===M,A=(M,L)=>{debugger;if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&L>f.value||f.value===L)return;const K=f.value,P=L;f.value=L,a.scroll&&X(L,!1);const R=fs(a,M);s("update:modelValue",R);const z={fromIndex:K,currentIndex:P,item:M,items:m.value,clickNavigatePolicy:a.clickNavigatePolicy};s("change",R,z)},N=t.ref(!0),$=async(M,L)=>{try{const K=await c.load("stesbar",M,L);Array.isArray(K)&&(u.value=K),N.value=!1}catch(K){console.error("[FoxUI] Load StepsBar Data Fail",K),u.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([M,L])=>{M&&$(M,L)},{immediate:!0});const T=(M,L,K,P)=>{let R=null;if(r.icon)R=r.icon({item:M,index:L,status:K});else if(K==="done"){const H={};a.iconSize&&(H.width=a.iconSize,H.height=a.iconSize);const W=a.icon??l;R=t.h(W,H)}else R=t.h("span",{},[`${L+1}`]);const z={class:"fox-steps-bar__icon",onClick:()=>{P||A(M,L)}};return t.h("view",z,[R])},q=(M,L,K)=>{const P=t.h("i",{class:"fox-steps-bar__line-inner",style:b(M,L)});return t.h("view",{class:"fox-steps-bar__line"},[P])},B=()=>{let M=null;if(r.markIcon)M=r.markIcon();else{const K={};a.iconSize&&(K.width=a.markIconSize,K.height=a.markIconSize);const P=a.markIcon??o;M=t.h(P,K)}return t.h("view",{class:"fox-steps-bar__mark"},[M])},V=(M,L,K,P)=>{const R=[];if(!C(L)){const W=q(M,L);R.push(W)}const z=T(M,L,K,P);R.push(z);const H={class:"fox-steps-bar__head"};return t.h("view",H,R)},F=(M,L,K,P)=>{let R=null;r.main?R=r.main({item:M,index:L,status:K}):R=pp(a,M);const z={class:"fox-steps-bar__main",onClick:()=>{P||A(M,L)}};return t.h("view",z,[R])},O=(M,L,K)=>{let P=null;if(r.sub){P=r.sub({item:M,index:L,status:K});const R={class:"fox-steps-bar__sub"};return t.h("view",R,[P])}return null},D=(M,L)=>{const K=sl(a,M,L)??{},P=K.status??rl(a,M);let R=ms(a,M);K.disabled===!0&&(R=!0),a.disabled===!0&&(R=!0);const z=[],H=T(M,L,P,R);H&&z.push(H);const W=F(M,L,P,R);W&&z.push(W);const J=q(M,L);J&&z.push(J);const U=t.h("view",{class:"fox-steps-bar__head"},z),Q=K.class,Z=K.style??{},te={ref:v(L),class:d(L,P,R,Q),style:p(L,Z)};return t.h("view",te,[U])},I=(M,L)=>{const K=sl(a,M,L)??{},P=K.status??rl(a,M);let R=ms(a,M);K.disabled===!0&&(R=!0),a.disabled===!0&&(R=!0);const z=[],H=a.layout;for(let Q of H)if(Q==="head"){const Z=V(M,L,P,R);z.push(Z)}else if(Q==="main"){const Z=F(M,L,P,R);z.push(Z)}else if(Q==="sub"){const Z=O(M,L,P);z.push(Z)}else if(Q==="mark"){const Z=B();z.push(Z)}const W=K.class,J=K.style??{},U={ref:v(L),class:d(L,P,R,W),style:p(L,J)};return t.h("view",U,z)},x=t.ref(),E=t.ref([]),j=(M,L)=>{E.value[L]=M},v=M=>L=>{j(L,M)},X=(M,L)=>{const K=x.value,P=E.value;if(!K||!P||!P[M])return;const R=P[M];let z=0;a.direction==="vertical"?z=R.offsetTop-(K.offsetHeight-R.offsetHeight)/2:z=R.offsetLeft-(K.offsetWidth-R.offsetWidth)/2,G(K,z,L?0:.3,a.direction)},G=(M,L,K,P)=>{let R=0;const z=P==="horizontal"?M.scrollLeft:M.scrollTop,H=K===0?1:Math.round(K*1e3/16);function W(){P==="horizontal"?M.scrollLeft+=(L-z)/H:M.scrollTop+=(L-z)/H,++R<H&&Re(W)}W()};return()=>{const M=[];if(a.mode==="simple")for(let K=0;K<m.value.length;K++){const P=m.value[K],R=D(P,K);M.push(R)}else for(let K=0;K<m.value.length;K++){const P=m.value[K],R=I(P,K);M.push(R)}const L={ref:x,class:k.value,style:S.value};return t.h("view",L,M)}}}}const{componentName:bp,create:Sp,scope:Cp}=Y("steps-bar"),il=Sp(kp(bp,Cp,ne.Checklist,ne.ArrowRight)),ps=10;function wp(e,n){return e>n&&e>ps?"horizontal":n>e&&n>ps?"vertical":""}function Np(){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=wp(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 Bp(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Ap(e){e.stopPropagation()}function $p(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Ap(e)}class Tp{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=Bp()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const l=Np(),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),$p(a,!0),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 Vp(e,n){return new Tp(e,n)}const Ep={top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},draggable:{type:[Boolean]}},Dp=(e,n,l,o=!1)=>({props:{...Ep},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(()=>({[`${e}`]:!0})),u=t.computed(()=>{const p={};return de(i.top)||(p.top=i.top),de(i.right)||(p.right=i.right),de(i.bottom)||(p.bottom=i.bottom),de(i.left)||(p.left=i.left),de(a.width)||(p.width=a.width),de(a.height)||(p.height=a.height),de(a.color)||(p.color=a.color),de(a.background)||(p.background=a.background),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=Vp(p=>{if(!h.value)return;const b=h.value;y(),i.left=b.offsetLeft,i.top=b.offsetTop,b.style.left=`${i.left}px`,b.style.top=`${i.top}px`,b.style.right=null,b.style.bottom=null,g.x=i.left,g.y=i.top},p=>{if(!h.value)return;const b=h.value;y(),i.left=g.x+p.x,i.top=g.y+p.y,b.style.left=`${i.left}px`,b.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 b=typeof r.default=="function"?r.default():[];if(b&&b.length>0)p=b;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:Ip,create:qp,scope:xp}=Y("floating-button"),cl=qp(Dp(Ip,xp,ne.Uploader,!1)),Mp={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}},zp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Lp(e,n,l){return{props:{...Mp},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")},k=(C,A)=>zp(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),S=()=>{const C=[];if(o.icon){const N={class:[`${c}__header-icon`]},$=k(o.icon,N);C.push($)}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},$=k(o.closeIcon,N);C.push($)}const A={class:[`${c}__header`]};return t.h("view",A,C)},d=(C,A)=>{const N=[];if(A){const T={class:`${c}__group-title`},q=t.h("view",T,[A]);N.push(q)}if(C){const T=[];Array.isArray(C)||(C=[C]);for(let q of C){const B={class:`${c}__group-row`,innerHTML:q},V=t.h("view",B);T.push(V)}if(T.length>0){const q={class:`${c}__group-rows`},B=t.h("view",q,T);N.push(B)}}if(N.length===0)return null;const $={class:`${c}__group`};return t.h("view",$,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 $=d(N);C.push($)}else{const $=d(N.content,N.title);C.push($)}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)},b=()=>{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.h("button",N,[o.cancelButtonText??i.cancelText.value]);C.push($)}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.h("button",N,[o.confirmButtonText??i.confirmText.value]);C.push($)}if(C.length===0)return null;const A={class:`${c}__footer`};return t.h("view",A,C)};return()=>{const C=[],A=S();A&&C.push(A);const N=p();N&&C.push(N);const $=b();$&&C.push($);const T={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},q=t.h("view",T,C),B=[`${c}__popup`];o.popClass&&B.push(o.popClass);const V={};o.width&&(V.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(V.height=typeof o.height=="number"?`${o.height}px`:o.height);const F={popClass:B.join(" "),style:V,visible:u.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":m,position:o.position,round:"round",onClickOverlay:g,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(l,F,{default:()=>q})}}}}const{componentName:Pp,create:Fp,scope:Rp}=Y("messagebox"),Op=Fp(Lp(Pp,Rp,ce)),vp="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",Kp="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",Up="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",Hp="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",jp=new wn,Wp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Yp=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-${jp.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(Op,e);n.appendChild(o),t.render(r,o)},st={show:(e,n,l,o)=>{const a={...Wp};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=Up:r==="warning"?a.icon=Hp:r==="error"?a.icon=vp:a.icon=Kp),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})},Yp(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}},Xp=(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)},Qp=new wn,Gp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Zp=e=>`${e}-${Qp.get()}`,Jp=Symbol.for("InnerPageScopeKey"),_p=Symbol.for("PageWrapperKey"),eh="FoxLeave",th="FoxAfterLeave",nh={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 oh(e,n,l,o){return{props:{...Le,...nh},emits:["update:visible"],setup(a,{attrs:r,slots:s,emit:i}){t.provide(Jp,!0);const c={};t.provide(_p,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,$)=>Gp(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(a.tag,$)):t.h(N,$),k=()=>{if(!a.showHeader)return null;const N=[];if(s.header){const T=s.header();N.push(T)}else if(a.title){const T=t.h("view",{class:`${f}__header-title`},[a.title]);N.push(T)}if(N.length===0)return null;const $={class:[`${f}__header`]};return t.h("view",$,N)},S=()=>{if(!a.showClose)return null;const N={class:[`${f}__close-icon`],onClick:m},$=a.closeIcon??o;return g($,N)};let d=null;const p=N=>{Xp(th,{},d)},b=Zp(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 $=d.querySelector(".fox-popup");$&&($.classList.add(`fox-popup-slide-${a.position}-leave-active`),$.classList.add(`fox-popup-slide-${a.position}-leave-to`),$.addEventListener("animationend",p,{once:!0}),$.addEventListener("transitionend",p,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{d=document.querySelector(`.${b}`),d?.addEventListener(eh,A,{once:!0}),C()}),()=>{const N=[],$=k();$&&N.push($);const T=S();T&&N.push(T);const q=s.default?s.default():[];Reflect.apply([].push,N,q);const B={[`${f}`]:!0};a.mode&&(B[`${f}--${a.mode}`]=!0);const V={class:B},F=t.h("view",V,N),O=[`${f}__popup`,b];a.popClass&&O.push(a.popClass),a.position&&O.push(`${f}__popup--${a.position}`);const D={};a.width&&(D.width=typeof a.width=="number"?`${a.width}px`:a.width),a.height&&(D.height=typeof a.height=="number"?`${a.height}px`:a.height);const x={...me(a,Le),popClass:O.join(" "),style:D,visible:y.value,teleportDisable:!0,closeable:!1,position:a.position,closeOnClickOverlay:a.closeOnClickOverlay,onClickOverlay:m,"onUpdate:visible":h},E=t.h(l,x,{default:()=>F});return t.h("div",{class:[`${f}__root`,b]},[E])}}}}const{componentName:lh,create:ah,scope:rh}=Y("popup-wrapper"),dl=ah(oh(lh,rh,ce,ne.Close));function sh(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 ih={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 ch(e,n,l=!1){return{props:{...ih},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&&he(o.showOverflowTooltip)){const g=y.clientWidth;sh(y,k=>{r.value=k<=g})}};let m=null;t.onMounted(()=>{if(!he(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 k=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const S=o.highlightFilter;if(y.indexOf(S)!==-1){const p=y.replace(new RegExp(S,"g"),`<span>${S}</span>`);g.innerHTML=p,g.class["is-highlight"]=!0,k=t.h(o.tag,g)}}else if(typeof o.highlightFilter=="function"){const S=o.highlightFilter(y);S&&(g.innerHTML=S,g.class["is-highlight"]=!0,k=t.h(o.tag,g))}return k},h=y=>{a.emit("click",y)};return()=>{const y={onClick:h,class:i.value,style:c.value,ref:s};let g=null;if(he(o.numberFormat)&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const b=p[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const C=ge(o.digits),A=ge(o.decimalLength),N=he(o.autoPadding);let $=`${p[0].children}`,T=$.split("").reverse().join("");T=Zt(T,A,N,C,o.separator),$=T.split("").reverse().join(""),o.highlightFilter!==void 0&&(g=f($,y)),g||(y.innerHTML=$,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 b=p[0].type.toString();if(b==="Symbol(Text)"||b==="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 S=null;if(o.icon){const p={[`${e}__mark-wrap`]:!0};o.type&&(p[`${e}__mark-wrap--${o.type}`]=!0);const b={},C=o.color;C&&(b.color=C);const A={class:p,style:b};S=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 b={},C=o.color;C&&(b.color=C);const A={class:p,style:b};S=t.h("view",A,{default:a.slots.mark})}else{const p={[`${e}__mark`]:!0};o.type&&(p[`${e}__mark--${o.type??"default"}`]=!0);const b={},C=o.color;C&&(b["background-color"]=C);const A={class:p,style:b};S=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,[S,g])}}}}const{componentName:dh,create:uh,scope:fh}=Y("text"),ul=uh(ch(dh,fh,!1));function mh(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 ph{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 hh(){const e=t.getCurrentInstance();return new ph(e.proxy)}const gh={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 yh(e,n,l=!1){return{props:{...gh},setup(o,{attrs:a,slots:r}){const s=hh(),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=mh(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:kh,create:bh,scope:Sh}=Y("mapping"),fl=bh(yh(kh,Sh,!1));function Ch(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:H2,create:wh,scope:j2}=Y("domain-provider"),ml=wh(Ch()),Nh={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 Bh(e,n){return{inheritAttrs:!1,props:Nh,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;Ei({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(k=>{for(let S of k){let d=!1;S.intersectionRatio>0&&(d=!0);const p=a.get(S.target);if(p)try{if(l.loadPolicy==="lazy"&&!d&&p.visible!==null)return;p.visible=d,p.callback(d)}catch(b){console.error(b)}}},{root:h,rootMargin:y,threshold:g}),r.forEach((k,S)=>{a.set(S,k),m?.observe(S)}),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:W2,create:Ah,scope:Y2}=Y("rolling-provider"),pl=Ah(Bh()),{componentName:$h,create:Th}=Y("cell"),Vh=Th({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=$h;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:pe(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:l,baseStyle:o}}}),Eh={key:0,class:"fox-cell__icon"},Dh={key:1,class:"fox-cell__title"},Ih={class:"title"},qh={class:"fox-cell__title-desc"};function xh(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",Eh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Dh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Ih,t.toDisplayString(e.title),1)]),t.createElementVNode("view",qh,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=_(Vh,[["render",xh]]),{componentName:Mh,create:zh}=Y("cell-group"),Lh=zh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Mh]:!0}))}}}),Ph={key:1,class:"fox-cell-group__title"},Fh={key:3,class:"fox-cell-group__desc"},Rh={class:"fox-cell-group__wrap"};function Oh(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",Ph,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",Fh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Rh,[t.renderSlot(e.$slots,"default")])],2)}const gl=_(Lh,[["render",Oh]]),{componentName:vh,create:Kh}=Y("image"),Uh=Kh({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=vh;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(k=>{k.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=pe(e.width)),e.height&&(y.height=pe(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=pe(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}}}),Hh=["src","date-src","alt"],jh={key:0,class:"fox-img-loading"},Wh={key:1,class:"fox-img-error"};function Yh(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,Hh),e.loading?(t.openBlock(),t.createElementBlock("div",jh,[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",Wh,[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=_(Uh,[["render",Yh]]),{create:Xh}=Y("layout"),kl=Xh({}),{componentName:Qh,create:Gh}=Y("col"),Zh=Gh({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Qh,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 Jh(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=_(Zh,[["render",Jh]]),{componentName:_h,create:eg}=Y("row"),tg=eg({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=_h;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
6
  ${l("",e.type)}
7
7
  ${l("justify",e.justify)}
8
8
  ${l("align",e.align)}
@@ -10,4 +10,4 @@
10
10
  ${n}
11
11
  `:`
12
12
  ${n}
13
- `)}}});function Kh(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const bl=_(vh,[["render",Kh]]),{componentName:Uh,create:Hh}=X("divider"),jh=Hh({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=Uh;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 Wh(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 Sl=_(jh,[["render",Wh]]);function Yh(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 Xh(e,n,l){const o=Yh(e.subTree.children,l);n.sort((a,r)=>o.indexOf(a.vnode)-o.indexOf(r.vnode))}function Qh(e,n){const l=t.shallowReactive([]),o=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),Xh(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:ps}=X("grid"),hs=Symbol("grid"),Gh={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}){Qh(hs,`${ps}-item`)({props:e});const l=t.computed(()=>{const a=ps;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=me(e.gutter)),a});return()=>t.h("view",{class:l.value,style:o.value},n.default?.())}},{create:Zh}=X("grid"),Cl=Zh(Gh);function Jh(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:_h,componentName:gs}=X("grid-item"),eg=_h({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const l=Jh(hs);if(!l.parent)return{};const o=l.index,a=l.parent.props,r=t.computed(()=>({[gs]:!0})),s=t.computed(()=>{const u={flexBasis:`${100/+a.columnNum}%`};return a.square?u.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(u.paddingRight=me(a.gutter),o.value>=a.columnNum&&(u.marginTop=me(a.gutter))),u}),i=t.computed(()=>{const u=`${gs}__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)}}}}),tg={class:"fox-grid-item__text"};function ng(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",tg,[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 wl=_(eg,[["render",ng]]),{componentName:og,create:lg}=X("navbar"),ag=lg({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 f=t.computed(()=>{const S=og;return{[S]:!0,[`${S}--border`]:l.value,[`${S}--fixed`]:o.value,[`${S}--safe-area-inset-top`]:a.value}}),m=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 k(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:f,styles:m,handleLeft:h,handleCenter:y,handleCenterIcon:g,handleRight:k}}}),rg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},sg={key:1,class:"fox-navbar__text"},ig={class:"fox-navbar__title"},cg={key:0,class:"fox-navbar__text"},dg={key:1,class:"fox-navbar__text"},ug={class:"fox-navbar__title"},fg={key:0,class:"fox-navbar__text"};function mg(e,n,l,o,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",rg,[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",sg,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[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",dg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",ug,[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",fg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Nl=_(ag,[["render",mg]]),pg=(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:(m=!o.visible)=>{a("update:visible",m)},selected:(m,h)=>{a("selected",{item:m,event:h}),c.value=m.id},current:c}}}),{componentName:hg,create:gg,scope:yg}=X("fixednav"),kg=gg(pg(hg,yg,{[at.name]:at,Left:ne.Left})),bg={class:"fox-fixednav__list"},Sg=["onClick"],Cg=["src"],wg={class:"span"},Ng={key:0,class:"b"},Bg={class:"text"};function Ag(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",bg,[(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:f=>e.selected(c,f),key:c.id||u},[t.createElementVNode("img",{src:c.icon},null,8,Cg),t.createElementVNode("view",wg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Ng,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Sg))),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",Bg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Bl=_(kg,[["render",Ag]]),{componentName:Vg,create:Tg}=X("menu"),$g=Tg({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 S=t.reactive([]),d=t.reactive([]);return{children:S,linkChildren:b=>{const C=A=>{A.proxy&&(d.push(A),S.push(A.proxy))},B=A=>{if(A.proxy){let E=d.indexOf(A);E>-1&&d.splice(E,1);let V=S.indexOf(A.proxy);E>-1&&S.splice(V,1)}};t.provide("menuParent",Object.assign({removeLink:B,link:C,children:S,internalChildren:d},b))}}},{children:i,linkChildren:c}=s(),u=t.computed(()=>i.some(S=>S.state.showWrapper)),f=t.computed(()=>({[Vg]:!0,"scroll-fixed":r.value})),m=()=>{if(o.value){const S=Ee(o);e.direction==="down"?a.value=S.bottom:a.value=window.innerHeight-S.top}};c({props:e,offset:a});const h=S=>{i.forEach((d,p)=>{p===S?(m(),d.toggle()):d.state.showPopup&&d.toggle(!1,{immediate:!0})})},y=S=>Math.max(0,"scrollTop"in S?S.scrollTop:S.pageYOffset),g=()=>{const{scrollFixed:S}=e,d=y(window);r.value=d>(typeof S=="boolean"?30:Number(S))},k=S=>{let d="";const{titleClass:p}=e;return S&&(d+="active"),p&&(d+=` ${p}`),d};return t.onMounted(()=>{const{scrollFixed:S}=e;S&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:S}=e;S&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:i,opened:u,classes:f,barRef:o,getClasses:k}}}),Eg=["onClick"],Dg={class:"fox-menu__title-text"},Ig={class:"fox-menu__title-icon"};function qg(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:f=>!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",Dg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Ig,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Eg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Al=_($g,[["render",qg]]),{componentName:xg,create:Mg}=X("menu-item"),zg=Mg({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:k,removeLink:S}=y;return k(g),t.onUnmounted(()=>{S(g)}),{parent:y}}},{parent:r}=a(),s=t.computed(()=>({[xg]:!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")}}}}),Lg={class:"fox-menu-item__content fox-menu-item__overflow"},Pg=["onClick"];function Fg(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",Lg,[(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:f=>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,Pg))),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 Vl=_(zg,[["render",Fg]]),{create:Rg}=X("tabbar"),Og=Rg({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 vg(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 Tl=_(Og,[["render",vg]]),{create:Kg}=X("tabbar-item"),Ug=Kg({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 f=l.children.length;o.index=f;let m=Object.assign(u.proxy,{index:f});l.children.push(m)}})(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}}}),Hg={class:"fox-tabbar-item_icon-box"},jg={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Wg={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Yg={key:1,class:"fox-tabbar-item_icon-box_dot"},Xg={key:2},Qg={key:0};function Gg(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",Hg,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",jg,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",Wg,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",Yg)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",Xg,[(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",Qg,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const $l=_(Ug,[["render",Gg]]),{componentName:Zg,create:Jg}=X("elevator"),_g=Jg({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(()=>({[Zg]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>l.value.clientHeight),i=(d,p)=>{const b="data-";return d.getAttribute(b+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 b=o.listGroup[p];d+=Math.floor(b.clientHeight),o.listHeight.push(d)}},f=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]))},m=d=>{o.scrollStart=!0;let p=i(d.target,"index"),b=d.touches[0];o.touchState.y1=b.pageY,o.anchorIndex=+p,o.codeIndex=+p,f(+p)},h=d=>{let p=d.touches[0];o.touchState.y2=p.pageY;let b=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+b,f(o.codeIndex)},y=()=>{o.scrollStart=!1},g=(d,p)=>{n.emit("click-item",d,p),o.currentData=p,o.currentKey=d},k=d=>{n.emit("click-index",d)},S=d=>{let b=d.target.scrollTop;const C=o.listHeight;o.scrollY=b;for(let B=0;B<C.length-1;B++){let A=C[B],E=C[B+1];if(o.scrollY>=A&&o.scrollY<E){o.currentIndex=B,o.diff=E-o.scrollY;return}}o.currentIndex=C.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",S)}),$e({scrollTo:f}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(u)}),t.watch(()=>o.diff,d=>{const p=o.listHeight;let b=d>0&&d<e.titleHeight?d-e.titleHeight:0;o.scrollY+s.value===p[p.length-1]&&b!==0&&(b=0),o.fixedTop!==b&&(o.fixedTop=b)}),t.watch(()=>o.currentIndex,d=>{n.emit("change",d)}),{classes:a,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:l,touchStart:m,touchMove:h,touchEnd:y,handleClickItem:g,handleClickIndex:k}}}),ey={class:"fox-elevator__list__item__code"},ty=["onClick"],ny=["innerHTML"],oy={class:"fox-elevator__fixed-title"},ly={class:"fox-elevator__bars__inner"},ay=["data-index","onClick"];function ry(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",ey,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,ny))],10,ty))),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",oy,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",ly,[(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 zt=_(_g,[["render",ry]]),{componentName:z2,create:sy,scope:iy}=X("pagination"),cy=sy({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(iy),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),k=+h.value||Math.ceil(+y.value/+g.value);return Math.max(1,k)}),u=(h,y)=>{h>c.value||h<1||(h!=a.value&&n("update:modelValue",h),y&&n("change",h))},f=(h,y,g=!1)=>({number:h,text:y,active:g}),m=t.computed(()=>{if(r.value=="simple")return;let h=[];const y=c.value,g=+s.value;let k=1,S=y;const d=y>g;d&&(k=Math.max(a.value-Math.floor(g/2),1),S=k+g-1,S>y&&(S=y,k=S-g+1));for(var p=k;p<=S;p++){const b=f(p,p,a.value==p);h.push(b)}if(d&&g>0&&i.value){if(k>1){const b=f(k-1,"...");h.unshift(b)}if(S<y){const b=f(S+1,"...");h.push(b)}}return h});return t.watchEffect(()=>{u(a.value,!1)}),{...o,modelValue:a,select:u,countRef:c,mode:r,pages:m,forceEllipses:i}}}),dy={class:"fox-pagination"},uy={key:0,class:"fox-pagination-contain"},fy=["onClick"],my={key:1,class:"fox-pagination-contain"},py={class:"fox-pagination-simple"};function hy(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",uy,[(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,fy))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",my,[t.createElementVNode("view",py,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 El=_(cy,[["render",hy]]),{componentName:ys,create:gy}=X("indicator"),yy=gy({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=ys;return{[a]:!0,[`${a}--block`]:n.value,[`${a}--align__${l.value}`]:n.value&&l.value}}),componentName:ys,padZero:nt}}});function ky(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 Dl=_(yy,[["render",ky]]),{componentName:by,create:Sy}=X("side-navbar"),Cy=Sy({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(()=>({[by]:!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}}}),wy={class:"fox-side-navbar__content"},Ny={class:"fox-side-navbar__content__list",ref:"list"};function By(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",wy,[t.createElementVNode("view",Ny,[t.renderSlot(e.$slots,"default")],512)])],2)}const Il=_(Cy,[["render",By]]),{componentName:Ay,create:Vy}=X("side-navbar-item"),Ty=Vy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[Ay]:!0})),handleClick:()=>{n.emit("click")}})}),$y=["ikey"],Ey={class:"fox-side-navbar-item__title"};function Dy(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",Ey,t.toDisplayString(e.title),1)],10,$y)}const ql=_(Ty,[["render",Dy]]),{componentName:Iy,create:qy}=X("sub-side-navbar"),xy=qy({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(()=>({[Iy]:!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}}}),My=["ikey"],zy={class:"fox-sub-side-navbar__title__text"},Ly={class:"fox-sub-side-navbar__title__icon"};function Py(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",zy,t.toDisplayString(e.title),1),t.createElementVNode("span",Ly,[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,My)}const xl=_(xy,[["render",Py]]),{componentName:Fy,create:Ry}=X("range"),Oy=Ry({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=Ue(),c=t.computed(()=>{const{marks:D,max:I,min:x}=e;return Object.keys(D).map(parseFloat).sort((O,Q)=>O-Q).filter(O=>O>=x&&O<=I)}),u=t.computed(()=>Number(e.max)-Number(e.min)),f=t.computed(()=>{const D=Fy;return{[D]:!0,[`${D}-disabled`]:e.disabled,[`${D}-vertical`]:e.vertical,[`${D}-show-number`]:!e.hiddenRange}}),m=t.computed(()=>{const D="fox-range-container";return{[D]:!0,[`${D}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),y=t.computed(()=>({borderColor:e.buttonColor})),g=D=>!!e.range&&Array.isArray(D),k=()=>{const{modelValue:D,min:I}=e;return g(D)?`${(D[1]-D[0])*100/u.value}%`:`${(D-Number(I))*100/u.value}%`},S=()=>{const{modelValue:D,min:I}=e;return g(D)?`${(D[0]-Number(I))*100/u.value}%`:"0%"},d=t.computed(()=>e.vertical?{height:k(),top:S(),background:e.activeColor,transition:s.value?"none":void 0}:{width:k(),left:S(),background:e.activeColor,transition:s.value?"none":void 0}),p=D=>{const I="fox-range-mark",{modelValue:x,max:$,min:j}=e;let O=Number(j),Q=Number($);if(e.range){const[R,P]=x;O=R,Q=P}else Q=x;let H=D<=Q&&D>=O;return{[`${I}-text`]:!0,[`${I}-text-active`]:H}},b=D=>{const{min:I,vertical:x}=e;let $={left:`${(D-Number(I))/u.value*100}%`};return x&&($={top:`${(D-Number(I))/u.value*100}%`}),$},C=D=>{const{modelValue:I,max:x,min:$}=e;let j=Number($),O=Number(x);if(e.range){const[R,P]=I;j=R,O=P}return{background:D<=O&&D>=j?e.activeColor:e.inactiveColor}},B=D=>{const{min:I,max:x,step:$}=e;return D=Math.max(+I,Math.min(D,+x)),Math.round(D/+$)*+$},A=(D,I)=>JSON.stringify(D)===JSON.stringify(I),E=D=>D[0]>D[1]?D.slice(0).reverse():D,V=(D,I)=>{g(D)?D=E(D).map(B):D=B(D),A(D,e.modelValue)||n("update:modelValue",D),I&&!A(D,o)&&n("change",D)},q=D=>{if(e.disabled)return;const{min:I,modelValue:x}=e,$=Ee(r);let j=D.clientX-$.left,O=$.width;e.vertical&&(j=D.clientY-$.top,O=$.height);const Q=Number(I)+j/O*u.value;if(g(x)){const[H,R]=x,P=(H+R)/2;Q<=P?V([Q,R],!0):V([H,Q],!0)}else V(Q,!0)},N=D=>{e.disabled||(i.start(D),a=e.modelValue,g(a)?o=a.map(B):o=B(a),s.value="start")},T=D=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(D),s.value="draging";const I=Ee(r);let x=i.deltaX.value,$=I.width,j=x/$*u.value;e.vertical&&(x=i.deltaY.value,$=I.height,j=x/$*u.value),g(o)?a[l.value]=o[l.value]+j:a=o+j,V(a),D.stopPropagation(),D.preventDefault()},L=()=>{e.disabled||(s.value==="draging"&&(V(a,!0),n("drag-end")),s.value="")},F=D=>Zt(e.modelValue)&&typeof D=="number"?e.modelValue[D]:Number(e.modelValue);return{root:r,classes:f,wrapperStyle:h,buttonStyle:y,onClick:q,onTouchStart:N,onTouchMove:T,onTouchEnd:L,...t.toRefs(e),barStyle:d,curValue:F,buttonIndex:l,containerClasses:m,markClassName:p,marksStyle:b,marksList:c,tickStyle:C}}}),vy={key:0,class:"fox-range-min"},Ky={key:0,class:"fox-range-mark"},Uy=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Hy={key:0,class:"number"},jy=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Wy={key:0,class:"number"},Yy={key:1,class:"fox-range-max"};function Xy(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",vy,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",Ky,[(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",Hy,t.toDisplayString(e.curValue(s)),1))],4))],42,Uy)),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",Wy,t.toDisplayString(e.curValue()),1))],4))],40,jy))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Yy,t.toDisplayString(+e.max),1))],2)}const Lt=_(Oy,[["render",Xy]]),{create:Qy,scope:Gy}=X("short-password"),Zy=Qy({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(Gy),o=l(e,["title","desc","tips"]),a=t.ref(e.modelValue),r=t.computed(()=>u(Number(e.length))),s=t.ref(e.visible),i=m=>{m.stopPropagation(),n("focus")};t.watch(()=>e.visible,m=>{s.value=m}),t.watch(()=>e.modelValue,m=>{a.value=m,String(m).length===r.value&&n("complete",m)});const c=()=>{n("update:visible",!1),n("close")},u=m=>Math.min(Math.max(4,m),6);return{comLen:r,realInput:a,onTouchStart:i,range:u,close:c,onTips:()=>{n("tips")},show:s,...o}}}),Jy={class:"fox-short-password-title"},_y={class:"fox-short-password-subtitle"},e0={class:"fox-short-password-wrapper"},t0={key:0,class:"fox-short-password__item-icon"},n0={class:"fox-short-password__message"},o0={class:"fox-short-password--error"},l0={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",Jy,t.toDisplayString(e.title),1),t.createElementVNode("view",_y,t.toDisplayString(e.desc),1),t.createElementVNode("div",e0,[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",t0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",n0,[t.createElementVNode("view",o0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",l0,[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 Ml=_(Zy,[["render",a0]]);class r0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let s0=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 i0{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const ks=(e,{args:n=[],done:l,canceled:o})=>{if(e){const a=e.apply(null,n);_n(a)?a.then(r=>{r?l(r):o&&o()}).catch(()=>{}):a?l():o&&o()}else l()},{create:c0}=X("progress"),d0=c0({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}}}),u0={class:"fox-progress"},f0={key:0,class:"fox-progress-text"};function m0(e,n,l,o,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",u0,[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",f0,[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 Pt=_(d0,[["render",m0]]),{componentName:p0,create:h0,scope:g0}=X("uploader"),y0=h0({components:{[Pt.name]:Pt,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(g0),o=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[p0]:!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,b)=>{const C=new r0;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=A=>{p.status="ready",p.message=l("readyUpload"),f(b),n("start",A)},C.onProgress=(A,E)=>{p.status="uploading",p.message=l("uploading"),p.percentage=(A.loaded/A.total*100).toFixed(0),n("progress",{event:A,option:E,percentage:p.percentage})},C.onSuccess=(A,E)=>{p.status="success",p.message=l("success"),n("success",{responseText:A,option:E,fileItem:p}),n("update:fileList",o)},C.onFailure=(A,E)=>{p.status="error",p.message=l("error"),n("failure",{responseText:A,option:E,fileItem:p})};let B=new s0(C);e.autoUpload?B.upload():a.push(new Promise((A,E)=>{A(B)}))},f=(p=-1)=>{p>-1?a.splice(p,1):(a=[],o.splice(0,o.length))},m=()=>{Promise.all(a).then(p=>{p.forEach(b=>b.upload())})},h=p=>{p.forEach((b,C)=>{const B=new FormData;for(const[E,V]of Object.entries(e.data))B.append(E,V);B.append(e.name,b);const A=t.reactive(new i0);if(A.name=b.name,A.status="ready",A.type=b.type,A.formData=B,A.message=l("waitingUpload"),u(A,C),e.isPreview&&b.type.includes("image")){const E=new FileReader;E.onload=V=>{A.url=V.target.result,o.push(A)},E.readAsDataURL(b)}else o.push(A)})},y=p=>{const b=e.maximum*1,C=e.maximize*1,B=new Array;p=p.filter(E=>E.size>C?(B.push(E),!1):!0),B.length&&n("oversize",B);let A=p.length+o.length;return A>b&&p.splice(p.length-(A-b)),p},g=(p,b)=>{o.splice(b,1),n("delete",{file:p,fileList:o,index:b})},k=(p,b)=>{f(b),ks(e.beforeDelete,{args:[p,o],done:()=>g(p,b)})},S=p=>{if(e.disabled)return;const b=p.target;let{files:C}=b;e.beforeUpload?e.beforeUpload(C).then(B=>d(B)):d(C),n("change",{fileList:o,event:p}),e.clearInput&&i(b)},d=p=>{const b=y(new Array().slice.call(p));h(b)};return{onChange:S,onDelete:k,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:f,submit:m,renderInput:s}}}),k0={key:0,class:"fox-uploader__slot"},b0={key:0,class:"fox-uploader__preview-img"},S0={key:0,class:"fox-uploader__preview__progress"},C0={class:"fox-uploader__preview__progress__msg"},w0=["onClick"],N0=["onClick","src"],B0={key:3,class:"fox-uploader__preview-img__file"},A0=["onClick"],V0={class:"file__name_tips"},T0={class:"tips"},$0={key:1,class:"fox-uploader__preview-list"},E0=["onClick"],D0={class:"file__name_tips"};function I0(e,n,l,o,a,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),u=t.resolveComponent("Del"),f=t.resolveComponent("fox-progress"),m=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,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",b0,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",S0,[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",C0,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,w0)):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,N0)):(t.openBlock(),t.createElementBlock("view",B0,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",V0,t.toDisplayString(h.name),1)],8,A0)])),t.createElementVNode("view",T0,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",$0,[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",D0,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,E0),h.status=="uploading"?(t.openBlock(),t.createBlock(f,{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(m,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const zl=_(y0,[["render",I0]]),q0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWH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mog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:M0,scope:z0}=X("number-keyboard"),L0=M0({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(z0),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"},b=Array.isArray(d)?d:[d];return b.length===1&&(p={id:b[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 b=Array.isArray(p)?p:[p];return b.length>2&&(b=[b[0],b[1]]),b.length==2&&e.title&&e.type!="rightColumn"&&(b=[b[0]]),b.length===1?e.title&&e.type!="rightColumn"?d.push({id:b[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):d.push({id:0,type:"number"},{id:b[0],type:"custom"}):b.length===2&&d.push({id:b[0],type:"custom"},{id:0,type:"number"},{id:b[1],type:"custom"}),d}const f=t.computed(()=>e.type=="rightColumn"||e.title!=""?u():i()),m=()=>{e.visible&&n("blur")},h=d=>{const p=s.value;p&&!p.contains(d.target)&&m()};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"&&S(),d.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(d){d.stopPropagation()}function k(d){d.preventDefault(),a.value=void 0}function S(){n("update:visible",!1),n("close")}return{...o,delImg:q0,lockImg:x0,clickKeyIndex:a,defaultKey:i,closeBoard:S,onTouchEnd:k,onTouchMove:g,onTouchstart:y,keysList:f,genCustomKeys:u,getBasicKeys:c,root:s,show:r}}}),P0={ref:"root"},F0={class:"fox-number-keyboard"},R0={key:0,class:"fox-number-keyboard__header"},O0={class:"fox-number-keyboard__title"},v0={class:"fox-number-keyboard__body"},K0={class:"fox-number-keyboard__keys"},U0=["onTouchstart"],H0=["src"],j0=["src"],W0={key:0,class:"fox-number-keyboard__sidebar"},Y0={class:"fox-key__wrapper"},X0=["src"];function Q0(e,n,l,o,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",P0,[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",F0,[e.title?(t.openBlock(),t.createElementBlock("div",R0,[t.createElementVNode("h3",O0,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",v0,[t.createElementVNode("div",K0,[(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,H0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,j0)):t.createCommentVNode("",!0)],42,U0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",W0,[t.createElementVNode("div",Y0,[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,X0)],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=_(L0,[["render",Q0]]),{componentName:G0,create:Z0}=X("swipe"),J0=Z0({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(()=>({[G0]:!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="",f="";const m=t.reactive({offset:0,moving:!1}),h=(p="")=>{c=!0,p&&(m.offset=p==="left"?-i.value:r.value),n("open",{name:e.name,position:u||p})},y=()=>{m.offset=0,c=!1,n("close",{name:e.name,position:u})},g=t.computed(()=>({transform:`translate3d(${m.offset}px, 0, 0)`})),k=p=>{u=p>0?"right":"left";let b=p;switch(u){case"left":c&&f===u?b=-i.value:b=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&f===u?b=r.value:b=Math.abs(p)>r.value?r.value:p;break}m.offset=b},S=Ue();return{classes:l,touchStyle:g,...{onTouchStart(p){e.disabled||S.start(p)},onTouchMove(p){e.disabled||(S.move(p),S.isHorizontal()&&(m.moving=!0,k(S.deltaX.value),e.touchMovePreventDefault&&p.preventDefault(),e.touchMoveStopPropagation&&p.stopPropagation()))},onTouchEnd(){if(m.moving)switch(m.moving=!1,f=u,u){case"left":Math.abs(m.offset)<=i.value/2?y():(m.offset=-i.value,h());break;case"right":Math.abs(m.offset)<=r.value/2?y():(m.offset=r.value,h());break}}},leftRef:a,rightRef:s,open:h,close:y}}}),_0={class:"fox-swipe__left",ref:"leftRef"},ek={class:"fox-swipe__content"},tk={class:"fox-swipe__right",ref:"rightRef"};function nk(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",_0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",ek,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",tk,[t.renderSlot(e.$slots,"right")],512)],38)}const Ft=_(J0,[["render",nk]]),{componentName:ok,create:lk}=X("action-sheet"),ak=lk({components:{[de.name]:de,Loading:ne.Loading},props:{...Ge,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(()=>({[ok]:!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}}}),rk={key:0,class:"fox-action-sheet__title"},sk={key:1},ik={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},ck={key:1,class:"fox-action-sheet__menu"},dk=["onClick"],uk={key:1},fk={class:"fox-action-sheet__subdesc"};function mk(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",rk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",sk,[e.description?(t.openBlock(),t.createElementBlock("view",ik,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",ck,[(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:f=>e.chooseItem(c,u)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",uk,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",fk,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 Pl=_(ak,[["render",mk]]),{componentName:pk,create:hk}=X("backtop"),Fl=hk({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(()=>({[pk]:!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=We(function k(){var S=e.duration-Math.max(0,o.startTime-+new Date+e.duration),d=S*-o.scrollTop/e.duration+o.scrollTop;i(d),g=We(k),(S==e.duration||d==0)&&Ta(g)})}function u(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function f(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function m(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(()=>{f()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,f()});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 k=[];if(typeof l.default=="function")k.push(l.default());else{const d=t.h(ne.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(d)}const S=t.h("div",{class:a.value,style:r.value,onClick:m},k);return g.push(S),g}}}),{componentName:gk,create:yk}=X("drag"),kk=yk({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(()=>({[gk]:!0}));function r(){const m=document.documentElement;o.elWidth=l.value.offsetWidth,o.elHeight=l.value.offsetHeight,o.screenWidth=m.clientWidth,o.screenHeight=m.clientHeight}function s(m){o.boundary.left?+m.style.left.split("px")[0]>o.boundary.left?(m.style.left=+m.style.left.split("px")[0]-10+"px",Fe(()=>{s(m)})):m.style.left=`${o.boundary.left}px`:+m.style.left.split("px")[0]>10?(m.style.left=+m.style.left.split("px")[0]-10+"px",Fe(()=>{s(m)})):m.style.left="0px"}function i(m,h){h-parseInt(m.style.left.split("px")[0])>10?(m.style.left=parseInt(m.style.left.split("px")[0])+10+"px",Fe(()=>{i(m,h)})):m.style.left=h+"px"}function c(m){m.preventDefault();const h=m.currentTarget;if(m.targetTouches.length===1){const y=m.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(m){const h=m.currentTarget;let g=m.changedTouches[0].clientX;const k=o.screenWidth-o.elWidth-o.boundary.right;g>k?g=k:g<o.boundary.left?g=o.boundary.left:g=g<o.screenWidth/2?o.boundary.left:k,e.direction!="y"&&e.attract&&(g<o.screenWidth/2?Fe(()=>{s(h)}):Fe(()=>{i(h,k)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function f(m){const h=m.currentTarget,y=m.touches[0],g=m.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 m=l;m.value.removeEventListener("touchstart",f),m.value.removeEventListener("touchmove",c),m.value.removeEventListener("touchend",u)}),{classes:a,myDrag:l,touchStart:f,touchMove:c,touchEnd:u}}});function bk(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 Rl=_(kk,[["render",bk]]),Sk={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}},Ck=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function wk(e,n,l,o,a){return{props:{...Ge,...Sk},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:u}=re.useFoxI18n(n),f=u(r,["confirmText","cancelText"]),m=e,h=t.ref(r.visible);t.watch(()=>r.visible,A=>{h.value!==A&&(h.value=A,A&&c("opened"))});const y=A=>{h.value=A,c("update:visible",A),c("update",A)},g=A=>{if(c(A),!(A==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const E=r.beforeClose(A);_n(E)?E.then(V=>{V&&(y(!1),c("closed",A))}):E===!0&&(y(!1),c("closed",A))}else y(!1),c("closed",A)},k=()=>{g("confirm")},S=()=>{g("cancel")},d=()=>{g("close")},p=(A,E)=>Ck(A)?(E.src=A,t.h("img",E)):typeof A=="string"?(Array.isArray(E.class)?E.class.push(A):E.class&&typeof E.class=="object"?E[`${A}`]=!0:typeof E.class=="string"?E.class=`${E.class}, ${A}`:E.class=A,t.h(r.tag,E)):t.h(A,E),b=()=>{const A=[];if(i.header){const V=i.header();A.push(V)}else{if(r.title){const V=t.h("view",{class:`${m}__header-title`},[r.title]);A.push(V)}if(r.showClose){const V={class:[`${m}__header-close-icon`],onClick:d},q=r.closeIcon??a,N=p(q,V);A.push(N)}}if(A.length===0)return null;const E={class:[`${m}__header`]};return t.h("view",E,A)},C=()=>{const A=[];if(i.default)A.push(i.default());else{const V={class:[`${m}__content`]};if(r.textAlign&&V.class.push(r.textAlign),typeof r.content=="string"){V.innerHTML=r.content;const q=t.h("view",V);A.push(q)}else if(typeof r.content=="function"){const q=t.h("view",V,[r.content()]);A.push(q)}else{const q=t.h("view",V,[r.content]);A.push(q)}}if(A.length===0)return null;const E={class:[`${m}__body`]};return t.h("view",E,A)},B=()=>{if(!r.showFooter)return null;const A=[];if(i.footer)A.push(i.footer());else if(r.plain){if(r.showCancelButton){const V={class:[`${m}__footer-button`,`${m}__footer-cancel`],style:{},onClick:S};r.cancelButtonClass&&V.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(V.style,r.cancleButtonStyle);const q=t.h("view",V,[r.cancelButtonText??f.cancelText.value]);A.push(q)}if(r.showConfirmButton){const V={class:[`${m}__footer-button`,`${m}__footer-confirm`],style:{},onClick:k};r.confirmButtonClass&&V.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(V.style,r.confirmButtonStyle);const q=t.h("view",V,[r.confirmButtonText??f.confirmText.value]);A.push(q)}}else{if(r.showCancelButton){const V={class:[`${m}__footer-button`,`${m}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:S};r.cancelButtonClass&&V.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(V.style,r.cancleButtonStyle);const q=t.h(o,V,{default:()=>[r.cancelButtonText??f.cancelText.value]});A.push(q)}if(r.showConfirmButton){const V={class:[`${m}__footer-button`,`${m}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};r.confirmButtonClass&&V.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(V.style,r.confirmButtonStyle);const q=t.h(o,V,{default:()=>[r.confirmButtonText??f.confirmText.value]});A.push(q)}}if(A.length===0)return null;const E={class:[`${m}__footer`,`${m}__footer--${r.footerDirection}`]};return t.h("view",E,A)};return()=>{const A=[],E=b();E&&A.push(E);const V=C();V&&A.push(V);const q=B();q&&A.push(q);const N={class:{[`${m}`]:!0,[`${m}--plain`]:r.plain}},T=t.h("view",N,A),L=[`${m}__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 I={...ge(r,Ge),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,I,{default:()=>T})}}}}const{componentName:Nk,create:Bk,scope:Ak}=X("dialog"),bs=Bk(wk(Nk,Ak,de,Me,ne.Close));class Vk{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 Tk{options=new Vk;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 f=document.querySelector(`#${s}`);f&&f.parentNode?.removeChild(f)}},l?.onOpened&&l?.onOpened(),()=>t.h(bs,l)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Rt=function(e){return new Tk(e)};Rt.install=e=>{e.use(bs),e.config.globalProperties.$dialog=Rt};const{componentName:$k,create:Ek,scope:Dk}=X("pull-refresh"),Ik=Ek({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(Dk),a=o(e,["pullingText","loosingText","loadingText"]),r=Ue(),s=t.ref(),i=Or(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),u=t.computed(()=>({[$k]:!0})),f=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}}),m=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=me(e.headHeight)),C}),y=C=>{const B=+(e.pullDistance||e.headHeight);let A=C;return C>B&&(C<B*2?A=(C+B)/2:A=B+C/4),Math.round(A)},g=(C,B)=>{const A=+(e.pullDistance||e.headHeight);c.distance=C,B?c.status="loading":C===0?c.status="normal":C<A?c.status="pulling":c.status="loosing",n("change",{status:c.status,distance:C})},k=()=>c.status!=="loading"&&c.status!=="complete",S=()=>i.value==window?ro()==0:i.value&&i.value.scrollTop==0,d=C=>{k()&&(S()?(r.start(C),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},p=C=>{if(k()){r.move(C);const{deltaY:B}=r;r.isVertical()&&B.value>0&&c.isPullRefresh&&(C.cancelable&&C.preventDefault(),g(y(B.value)))}},b=()=>{c.isPullRefresh&&k()&&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:b,getStyle:m,slots:l,getHeightStyle:h,getPullStatus:f}}}),qk={class:"fox-pull-refresh-container-topbox-text"};function xk(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",qk,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=_(Ik,[["render",xk]]),{create:Mk}=X("notify"),zk=Mk({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 f=e.duration;u&&f&&(o=setTimeout(()=>{r()},f))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:l,isShowPopup:s}}});function Lk(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 vl=_(zk,[["render",Lk]]),Kl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let kt=[],Ot=[];const Ss=e=>{if(e){const n=document.getElementById(e);Ot=Ot.filter(l=>l.id!==e),kt=kt.filter(l=>l!==e),n&&document.body.removeChild(n)}else kt.forEach(n=>{const l=document.getElementById(n);l&&document.body.removeChild(l)}),Ot=[],kt=[]},Pk=e=>{const n=document.getElementById(e.id);if(n){const l=Ot.find(a=>a.id===e.id);l?e={...Kl,...l,...e}:e={...Kl,...e};const o=t.createVNode(vl,e);return t.render(o,n),o.component.data}},vt=e=>{e.unmount=Ss;let n;if(e.id){if(n=e.id,kt.find(r=>r===e.id))return Pk(e)}else n=new Date().getTime()+"";e={...Kl,...e},e.id=n,kt.push(e.id),Ot.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(vl,e)}},a=t.createVNode(o);document.body.appendChild(l),t.render(a,l)},Kt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Ul={text(e,n={}){return Kt(e),vt({...n,msg:e})},primary(e,n={}){return Kt(e),vt({...n,msg:e,type:"primary"})},success(e,n={}){return Kt(e),vt({...n,msg:e,type:"success"})},danger(e,n={}){return Kt(e),vt({...n,msg:e,type:"danger"})},warn(e,n={}){return Kt(e),vt({...n,msg:e,type:"warning"})},hide(){Ss()},install(e){e.use(vl)}},{create:Fk}=X("toast"),Rk=Fk({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})},f=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]),m=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:f,toastIconWrapperClass:m,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Ok={key:1,class:"fox-toast-title"},vk=["innerHTML"];function Kk(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",Ok,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,vk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Hl=_(Rk,[["render",Kk]]),jl={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 bt=[],Ut=[];const Cs=e=>{if(e){const n=document.getElementById(e);Ut=Ut.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)}),Ut=[],bt=[]},Uk=e=>{const n=document.getElementById(e.id);if(n){const l=Ut.find(a=>a.id===e.id);l?e={...jl,...l,...e}:e={...jl,...e};const o=t.createVNode(Hl,e);return t.render(o,n),St}},Ht=e=>{e.unmount=Cs;let n;if(e.id){if(n=e.id,bt.find(a=>a===e.id))return Uk(e)}else n=new Date().getTime()+"";e={...jl,...e},e.id=n,bt.push(e.id),Ut.push(e);const l=document.createElement("div");l.id=e.id;const o=t.createVNode(Hl,e);return t.render(o,l),document.body.appendChild(l),St},vn=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},St={text(e,n={}){return vn(e),Ht({...n,type:"text",msg:e})},success(e,n={}){return vn(e),Ht({icon:ne.Success,...n,msg:e,type:"success"})},fail(e,n={}){return vn(e),Ht({icon:ne.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return vn(e),Ht({icon:ne.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Ht({icon:ne.Loading,...n,msg:e,type:"loading"})},hide(e){Cs(e)},install(e){e.use(Hl),e.config.globalProperties.$toast=St}},{componentName:L2,create:Hk}=X("audio"),jk=Hk({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,[Lt.name]:Lt},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 k=["webkitVisibilityState","visibilitychange"];try{for(let S=0;S<k.length;S++)document.addEventListener(k[S],()=>{document.hidden?o.value.pause():a.playing&&setTimeout(()=>{o.value.play()},200)})}catch(S){S.message}});const r=k=>{const S=o.value;e.autoplay&&S&&S.paused&&S.play(),a.second=S.duration,a.duration=g(S.duration),n("can-play",k)},s=k=>{a.currentTime=parseInt(k.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,o.value.currentTime=a.currentTime,n("fastBack",a.currentTime)},c=()=>{const k=o.value;a.playing?(k.pause(),a.handPlaying=!1):(k.play(),a.handPlaying=!0),a.playing=!a.playing,n("play",a.playing)},u=()=>{a.currentTime++,o.value.currentTime=a.currentTime,n("forward",a.currentTime)},f=k=>{a.currentDuration=g(k),a.percent=k/a.second*100},m=()=>{a.playing=!1,n("ended")},h=k=>{const S=o.value;S.currentTime=a.second*k/100,n("changeProgress",S.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,n("mute",a.hanMuted)},g=k=>{if(!k)return"00:00:00";let S=parseInt(k),d=Math.floor(S/3600),p=Math.floor((S-d*3600)/60),b=S-d*3600-p*60,C="";return C+=("0"+d.toString()).slice(-2)+":",C+=("0"+p.toString()).slice(-2)+":",C+=("0"+b.toString()).slice(-2),C};return t.watch(()=>a.currentTime,k=>{f(k)}),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:m,onTimeupdate:s,handleMute:y,onCanplay:r,slots:l}}}),Wk={class:"fox-audio"},Yk={key:0,class:"fox-audio__progress"},Xk={class:"fox-audio__time"},Qk={class:"fox-audio__bar"},Gk=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),Zk={class:"fox-audio__time"},Jk={key:1,class:"fox-audio__icon"},_k=["controls","src","preload","autoplay","loop","muted"];function eb(e,n,l,o,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",Wk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",Yk,[t.createElementVNode("div",Xk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Qk,[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(()=>[Gk]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Zk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Jk,[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,_k)])}const Wl=_(jk,[["render",eb]]),{componentName:P2,create:tb,scope:nb}=X("audio-operate"),ob=tb({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(nb),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}}}),lb={class:"fox-audio-operate"};function ab(e,n,l,o,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",lb,[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 Yl=_(ob,[["render",ab]]),{componentName:rb,create:sb}=X("avatar"),ib=sb({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 f=t.computed(()=>({[rb]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${l.value||s?.props?.shape||"normal"}`]:!0})),m=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 k=0;k<g.length;k++)g[k]&&g[k].classList&&g[k].classList[0]=="fox-avatar"&&g[k].setAttribute("data-index",k+1);u.index=i?.value?.dataset?.index,u.index==u.maxIndex&&u.index!=s?.props?.maxCount&&(u.showMax=!0)};return{classes:f,styles:m,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(u)}}});function cb(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 jt=_(ib,[["render",cb]]),{componentName:db,create:ub}=X("avatar-group"),fb=ub({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 mb(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 Xl=_(fb,[["render",mb]]);var Kn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(Kn||{});function pb(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:hb,create:gb}=X("list"),ws=document.documentElement.clientHeight||document.body.clientHeight||667,yb=gb({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:ws},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,ws)),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(()=>({[hb]:!0})),f=t.computed(()=>r.list.slice(r.start,c.value)),m=()=>{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(E=>E.nodeType===1);const p=d[0];d.forEach((E,V)=>{if(!E)return;const q=Ee(E),{height:N}=q,L=r.cachePositions[V+r.start].height-N;L&&(r.cachePositions[V+r.start].bottom-=L,r.cachePositions[V+r.start].height=N,r.cachePositions[V+r.start].dValue=L)});let b=0;p&&(b=r.start);const C=r.cachePositions.length;let B=r.cachePositions[b].dValue;r.cachePositions[b].dValue=0;for(let E=b+1;E<C;++E){const V=r.cachePositions[E];r.cachePositions[E].top=r.cachePositions[E-1].bottom,r.cachePositions[E].bottom=r.cachePositions[E].bottom-B,V.dValue!==0&&(B+=V.dValue,V.dValue=0)}const A=r.cachePositions[C-1].bottom;r.phantomHeight=A},g=(d=0)=>{let p=pb(r.cachePositions,d,(C,B)=>{const A=C.bottom;return A===B?Kn.eq:A<B?Kn.lt:Kn.gt});return r.cachePositions[p].bottom<d&&(p+=1),p},k=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,l.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},S=()=>{const d=l.value?.scrollTop,{originStartIndex:p}=r,b=g(d);b!==p&&(r.originStartIndex=b,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{k();return}}),t.watch(()=>r.start,()=>{a.value&&r.list.length>0&&y()}),{...t.toRefs(r),list:l,phantom:o,actualContent:a,getTransform:m,visibleData:f,classes:u,getContainerHeight:s,handleScrollEvent:S}}});function kb(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 Ql=_(yb,[["render",kb]]),{componentName:bb,create:Sb}=X("circleprogress"),Cb=Sb({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(()=>({[bb]:!0})),r=t.computed(()=>{const f=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${f} 0 90 a 45 45 0 1, ${f} 0 -90`}),s=t.computed(()=>Ve(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let f=283,m=f*Number(e.progress)/100;return{stroke:Ve(e.color)?`url(#${o})`:e.color,strokeDasharray:`${m}px ${f}px`}}),c=t.computed(()=>({stroke:e.pathColor})),u=t.computed(()=>{if(!Ve(e.color))return;let f=e.color;const m=Object.keys(f).sort((y,g)=>parseFloat(y)-parseFloat(g));let h=[];return m.map((y,g)=>{let k={key:"",value:""};k.key=y,k.value=f[y],h.push(k)}),h});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:u,slotDefault:l,refRandomId:o}}}),wb={viewBox:"0 0 100 100"},Nb=["id"],Bb=["offset","stop-color"],Ab=["d","stroke-width"],Vb=["d","stroke","stroke-linecap","stroke-width"],Tb={class:"fox-circleprogress-text"},$b={key:0};function Eb(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",wb,[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,Bb))),128))],8,Nb)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Ab),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,Vb)])),t.createElementVNode("div",Tb,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",$b,t.toDisplayString(e.progress)+"%",1))])],6)}const Gl=_(Cb,[["render",Eb]]),{componentName:Db,create:Ib}=X("noticebar"),qb=Ib({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(()=>({[Db]:!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 E={};return e.color&&(E.color=e.color),e.background&&(E.background=e.background),e.direction=="vertical"&&(E.height=`${e.height}px`),E}),f=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),m=t.computed(()=>{let E={};if(e.complexAm)E={transform:`translateY(${r.distance}px)`};else if(r.animate){let V=~~(e.height/e.speed/4);E={transition:`all ${V==0?~~(e.height/e.speed):V}s`,"margin-top":`-${e.height}px`}}return E});t.watch(()=>e.text,E=>{h()}),t.watch(()=>e.list,E=>{r.scrollList=[...E]});const h=E=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!a.value)return;const V=o.value.getBoundingClientRect().width,q=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?q>V:e.scrollable,r.isCanScroll?(r.wrapWidth=V,r.offsetWidth=q,r.duration=q/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=E=>{n("click",E)},g=E=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",E)},k=E=>{r.firstRound=!1,n("across-end",E),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},S=()=>{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 E=100;for(let V=0;V<E;V++)b(V,!(V<E-1))},e.standTime+100*e.speed)},b=(E,V)=>{setTimeout(()=>{r.distance-=e.height/100,V&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},E*e.speed)},C=E=>{n("click",E)},B=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(l.default?A(l.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?p():S()},e.standTime)):h(e.text)}),t.watch(()=>l.default?l.default():[],E=>{e.direction==="vertical"&&l.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),A(E))});const A=E=>{E&&E.length>0&&(r.scrollList=E[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:f,horseLampStyle:m,wrap:o,content:a,handleClick:y,onClickIcon:g,onAnimationEnd:k,go:C,handleClickIcon:B,slots:l,toPxDesc:me,wrapContentClass:c}}}),xb={class:"fox-noticebar__page-lefticon"},Mb={ref:"wrap",class:"fox-noticebar__page-wrap"},zb={class:"showNotica"},Lb=["onClick"];function Pb(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",xb,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",Mb,[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",zb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,f)=>(t.openBlock(),t.createBlock(c,{key:f,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,f)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:f,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:m=>e.go(u)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(u),1)])],12,Lb))),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 Zl=_(qb,[["render",Pb]]),Fb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09v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HKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:F2,create:vb,scope:Kb}=X("empty"),Ub={empty:Fb,error:Rb,network:Ob},Hb=vb({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=re.useFoxI18n(Kb),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:Ub[o.value];return{...l,imageUrl:i,imgStyle:r}}}),jb={class:"fox-empty"},Wb=["src"],Yb={key:1,class:"fox-empty-description"};function Xb(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",jb,[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,Wb)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",Yb,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const Jl=_(Hb,[["render",Xb]]),{create:Qb,scope:Gb}=X("video"),Zb=Qb({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(Gb),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,A=>{A.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,A=>{o.state.isMuted=A?A.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",ln(m,1e3)))},i=()=>{const A=a.value,E=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=A,o.progressBar.progressElm=E,o.progressBar.pos=E.getBoundingClientRect(),o.videoSet.progress.width=Math.round(E.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",()=>{f()}),o.videoElm.addEventListener("timeupdate",ln(m,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{y()}else o.videoElm.pause(),n("pause",o.videoElm)},u=A=>{var E=Math.floor(A/3600);E<10&&(E="0"+E);var V=Math.floor(A%3600/60);V<10&&(V="0"+V);var q=Math.round(A%3600%60);q<10&&(q="0"+q);var N="";return E!=0?N=E+":"+V+":"+q:N=V+":"+q,N},f=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},m=()=>{const A=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*A),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},k=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},S=()=>{},d=A=>{let V=A.targetTouches[0].pageX-o.progressBar.pos.left;V<=0&&(V=0),V>=o.videoSet.progress.width&&(V=o.videoSet.progress.width),o.videoSet.progress.current=V;let q=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&b(q,o.videoElm.duration)},p=A=>{let V=A.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=V;let q=V/o.videoSet.progress.width;o.videoElm.duration&&b(q,o.videoElm.duration)},b=(A,E)=>{o.videoElm.currentTime=Math.floor(A*E)},C=()=>{o.state.isError=!1,s()},B=()=>{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:k,touchSlidSrart:S,touchSlidMove:d,touchSlidEnd:p,retry:C,fullScreen:B,t:l}}}),Jb={class:"fox-video",ref:"videocon"},_b=["muted","autoplay","loop","poster","controls","preload"],eS=["src","type"],tS={class:"fox-video-controller__now"},nS={class:"fox-video-controller__progress"},oS={class:"fox-video-controller__progress-value",ref:"progressBar"},lS=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)],aS={class:"fox-video-controller__played",ref:"playedBar"},rS={class:"fox-video-controller__total"},sS={class:"fox-video-error"},iS={class:"fox-video-error-tip"};function cS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",Jb,[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,eS)],40,_b),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",tS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",nS,[t.createElementVNode("div",oS,[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"]))},lS,36),t.createElementVNode("div",aS,null,512)],512)]),t.createElementVNode("div",rS,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",sS,[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 Ct=_(Zb,[["render",cS]]),{create:dS,componentName:uS}=X("steps"),_l=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=uS;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:fS,componentName:mS}=X("step"),pS=fS({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=mS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(l),index:o,classes:s,handleClickStep:i}}}),hS={class:"fox-step-head"},gS=t.createElementVNode("view",{class:"fox-step-line"},null,-1),yS={class:"fox-step-icon-inner"},kS={key:1,class:"fox-step-inner"},bS={class:"fox-step-main"},SS={class:"fox-step-title"},CS={key:0},wS={key:0,class:"fox-step-content"},NS=["innerHTML"];function BS(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",hS,[gS,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",yS,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",kS,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",bS,[t.createElementVNode("view",SS,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",CS,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",wS,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,NS)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ea=_(pS,[["render",BS]]),{create:AS,componentName:ta}=X("swiper"),VS=AS({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=Ue(),s=t.computed(()=>({[ta]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const $=ta;return{[`${$}-inner`]:!0,[`${$}-vertical`]:i.value}}),u=t.computed(()=>{const $=ta;return{[`${$}-pagination`]:!0,[`${$}-pagination-vertical`]:i.value}}),f=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),m=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),k=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),S=t.computed(()=>(a.active+h.value)%h.value),d=()=>{let $=0;$=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${$}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},p=$=>{let j=[];const O=a.childrenVNode.length;let Q=l?.default?.();if(Q=Q.filter(H=>H.children&&Array.isArray(H.children)),Q.forEach(H=>{j=j.concat(H.children)}),!O)a.childrenVNode=j.slice(),$.proxy&&a.children.push($.proxy);else if(O>j.length)a.children=a.children.filter(H=>$.proxy!==H);else if(O<j.length){for(let H=0;H<O;H++)if(j[H].key!==a.childrenVNode[H].key){$.proxy&&a.children.splice(H,0,$.proxy),$.vnode&&a.childrenVNode.splice(H,0,$.vnode);break}O!==j.length&&($.proxy&&a.children.push($.proxy),$.vnode&&a.childrenVNode.push($.vnode))}else a.childrenVNode=j.slice(),$.proxy&&a.children.push($.proxy)},b=($,j=0)=>{let O=$*y.value;e.loop||(O=Math.min(O,-k.value));let Q=j-O;return e.loop||(Q=Oe(Q,k.value,0)),Q},C=$=>{const{active:j}=a;return $?e.loop?Oe(j+$,-1,h.value):Oe(j+$,0,h.value-1):j},B=({pace:$=0,offset:j=0,isEmit:O=!1})=>{if(h.value<=1)return;const{active:Q}=a,H=C($),R=b(H,j);if(e.loop){if(a.children[0]&&R!==k.value){const P=R<k.value;a.children[0].setOffset(P?g.value:0)}if(a.children[h.value-1]&&R!==0){const P=R>0;a.children[h.value-1].setOffset(P?-g.value:0)}}a.active=H,a.offset=R,O&&Q!==a.active&&n("change",S.value),d()},A=()=>{a.moving=!0,a.active<=-1&&B({pace:h.value}),a.active>=h.value&&B({pace:-h.value})},E=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},V=$=>{A(),r.reset(),We(()=>{We(()=>{a.moving=!1,B({pace:$,isEmit:!0})})})},q=()=>{V(-1)},N=()=>{V(1)},T=$=>{A(),r.reset(),We(()=>{a.moving=!1;let j;e.loop&&h.value===$?j=a.active===0?0:$:j=$%h.value,B({pace:j-a.active,isEmit:!0})})},L=()=>{e.autoPlay<=0||h.value<=1||(E(),a.autoplayTimer=setTimeout(()=>{N(),L()},Number(e.autoPlay)))},F=($=+e.initPage)=>{E(),a.rect=o.value.getBoundingClientRect(),$=Math.min(h.value-1,$),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=$,a.offset=b(a.active),a.moving=!0,d(),L()},D=$=>{e.isPreventDefault&&$.preventDefault(),e.isStopPropagation&&$.stopPropagation(),e.touchable&&(r.start($),a.touchTime=Date.now(),E(),A())},I=$=>{e.touchable&&a.moving&&(r.move($),m.value&&B({offset:f.value}))},x=$=>{if(!e.touchable||!a.moving)return;const j=f.value/(Date.now()-a.touchTime);if((Math.abs(j)>.3||Math.abs(f.value)>+(y.value/2).toFixed(2))&&m.value){let Q=0;const H=i.value?r.offsetY.value:r.offsetX.value;e.loop?Q=H>0?f.value>0?-1:1:0:Q=-Math[f.value>0?"ceil":"floor"](f.value/y.value),B({pace:Q,isEmit:!0})}else f.value&&B({pace:0});a.moving=!1,d(),L()};return t.provide("parent",{props:e,size:y,relation:p}),$e({prev:q,next:N,to:T}),t.onDeactivated(()=>{E()}),t.onBeforeUnmount(()=>{E()}),t.watch(()=>e.initPage,$=>{t.nextTick(()=>{F(Number($))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{F()})}),t.watch(()=>e.autoPlay,$=>{$>0?L():E()}),{state:a,classes:s,classesInner:c,classesPagination:u,container:o,activePagination:S,onTouchStart:D,onTouchMove:I,onTouchEnd:x}}});function TS(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 wt=_(VS,[["render",TS]]),{create:$S,componentName:ES}=X("swiper-item"),DS=$S({setup(e,{slots:n}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),a=t.computed(()=>({[ES]:!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")}),$e({setOffset:s}),{style:r,classes:a}}});function IS(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 Nt=_(DS,[["render",IS]]),Ns={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:qS}=X("image-preview-item"),xS=qS({props:{...Ns,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:{[Ct.name]:Ct,[Nt.name]:Nt},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=Ue(),a=t.computed(()=>{const{rootWidth:q,rootHeight:N}=e,T=N/q;return l.imageRatio>T}),r=t.computed(()=>{const q=e.image;if(q&&q.src){const{scale:N,moveX:T,moveY:L,moving:F,zooming:D}=l,I={transitionDuration:D||F?"0s":".3s"};if(N!==1){const x=T/N,$=L/N;I.transform=`scale(${N}, ${N}) translate(${x}px, ${$}px)`}return I}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:q,rootHeight:N}=e,T=a.value?N/l.imageRatio:q;return Math.max(0,(l.scale*T-q)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:q,rootHeight:N}=e,T=a.value?N:q*l.imageRatio;return Math.max(0,(l.scale*T-N)/2)}return 0}),c=q=>{const{naturalWidth:N,naturalHeight:T}=q.target;l.imageRatio=T/N},u=()=>{f(1),l.moveX=0,l.moveY=0},f=q=>{q=Oe(q,+e.minZoom,+e.maxZoom+1),q!==l.scale&&(l.scale=q,n("scale",{scale:q,index:e.initNo}))},m=()=>{const q=l.scale>1?1:2;f(q),l.moveX=0,l.moveY=0},h=q=>Math.sqrt((q[0].clientX-q[1].clientX)**2+(q[0].clientY-q[1].clientY)**2);let y,g,k,S,d,p,b;const C=q=>{const{touches:N}=q,{offsetX:T}=o;o.start(q),b=N.length,y=l.moveX,g=l.moveY,p=Date.now(),l.moving=b===1&&l.scale!==1,l.zooming=b===2&&!T.value,l.zooming&&(k=l.scale,S=h(q.touches))},B=q=>{const{touches:N}=q;if(o.move(q),(l.moving||l.zooming)&&ao(q,!0),l.moving){const{deltaX:T,deltaY:L}=o,F=T.value+y,D=L.value+g;l.moveX=Oe(F,-s.value,s.value),l.moveY=Oe(D,-i.value,i.value)}if(l.zooming&&N.length===2){const T=h(N),L=k*T/S;f(L)}},A=()=>{if(b==1&&e.video&&e.video.source||b>1)return;const{offsetX:q,offsetY:N}=o,T=Date.now()-p,L=250,F=5;q.value<F&&N.value<F&&T<L&&(d?(clearTimeout(d),d=null,m()):d=setTimeout(()=>{e.contentClose&&n("close"),d=null},L))},E=q=>{let N=!1;(l.moving||l.zooming)&&(N=!0,l.moving&&y===l.moveX&&g===l.moveY&&(N=!1),q.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,k=1,l.scale<1&&u(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),ao(q,N),A(),o.reset()},V=()=>{n("close")};return t.watch(()=>e.initNo,u),t.watch(()=>e.show,q=>{q||u()}),{...t.toRefs(l),onTouchStart:C,onTouchMove:B,onTouchEnd:E,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:V}}}),MS=["src"];function zS(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,MS)):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 LS=_(xS,[["render",zS]]),{create:PS}=X("image-preview"),FS=PS({props:{...Ns,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:LS,CircleClose:ne.CircleClose,[de.name]:de,[wt.name]:wt},setup(e,{emit:n}){const l=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=t.computed(()=>{const f="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${f}-right`:`${f}-left`}`}),r=t.computed(()=>Zt(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=f=>{f!==o.active&&(o.active=f,n("change",o.active))},i=()=>{ks(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},u=()=>{if(l.value){const f=Ee(l.value);o.rootHeight=f.height,o.rootWidth=f.width}};return t.watch(()=>e.show,f=>{o.showPop=f,f&&(s(e.initNo),u())}),t.watch(()=>e.initNo,f=>{f!=o.active&&s(f)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:l,...t.toRefs(o),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),RS={class:"fox-image-preview",ref:"swipeRef"},OS={key:0,class:"fox-image-preview-index"};function vS(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]=f=>e.showPop=f),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",RS,[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,(f,m)=>(t.openBlock(),t.createBlock(s,{key:m,video:m<e.videos.length?f:{},image:m>=e.videos.length?f:{},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",OS,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]=(...f)=>e.onClose&&e.onClose(...f))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Bs=_(FS,[["render",vS]]);class KS{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 US{options=new KS;constructor(n){const l=Object.assign(this.options,n),{unmount:o}=ri(l,{name:"image-preview",components:[de,Ct,wt,Nt,at],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{o()})},t.h(Bs,l))}})})}}const Un=e=>new US(e);Un.install=e=>{e.use(Bs)};function HS(e){const n=t.getCurrentInstance();if(n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}const{componentName:O2,create:jS}=X("countup"),WS=jS({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=V=>{V&&o.value.push(V)},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,(V,q)=>{m(),S(0)}),t.watch(()=>e.machinePrizeLevel,(V,q)=>{r.prizeLevelTrun=V}),t.watch(()=>e.initNum,(V,q)=>{r.current=V,r.valFlag=!1,f()}),t.watch(()=>e.endNum,(V,q)=>{r.current=e.initNum,r.valFlag=!1,f()});const f=()=>{if(r.valFlag)return!1;s&&(i||c?u!="machine"&&S():(k(),setTimeout(()=>{r.valFlag=!0},300)))},m=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(V,q,N)=>{const T=(V.toString().split(".")[1]||"").length,L=(q.toString().split(".")[1]||"").length,F=Math.pow(10,Math.max(T,L));return N=="-"?Number((V*F-q*F).toFixed(0))/F:Number((V*F+q*F).toFixed(0))/F},y=V=>{let{num_total_len:q,pointNum:N,initDigit1:T,initDigit2:L,sortFlag:F}=r,D=F=="add"||F=="equal"?String(L)[V-(q-N)]:10-Number(String(L)[V-(q-N)]),I=F=="add"||F=="equal"?String(T)[V]:10-Number(String(T)[V]),x=V>q-N-1?-D*100+"%":V<=String(T).length-1?-I*100+"%":0;return x=="-1000%"&&(x=0),x},g=V=>{let{num_total_len:q,pointNum:N,initDigit1:T,initDigit2:L,sortFlag:F}=r,D=String(L)[V-(q-N)];return V>q-N-1?D||0:V<=String(T).length-1?String(T)[V]:0},k=()=>{let{endNum:V,initNum:q,speed:N,toFixed:T}=e,L=setInterval(()=>{if(q>V)if(r.current<=V||r.current<=N)r.current=V.toFixed(T),clearInterval(L),n("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))-parseFloat(String(N));r.current=F.toFixed(T)}else if(r.current>=V)r.current=V.toFixed(T),clearInterval(L),n("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))+parseFloat(String(N));r.current=F.toFixed(T)}},e.during)},S=V=>{let{initNum:q,endNum:N,toFixed:T,customBgImg:L}=e;L&&(q=e.customChangeNum);let F,D,I,x;q!=0?(T!=0&&(q=Number(q.toFixed(T))),String(q).indexOf(".")>-1?(F=String(q).split(".")[0].length,D=String(q).split(".")[1].length):(F=String(q).length,D=0)):(F=1,D=0),N!=0?(T!=0&&(N=Number(N.toFixed(T))),String(N).indexOf(".")>-1?(I=String(N).split(".")[0].length,x=String(N).split(".")[1].length):(I=String(N).length,x=0)):(I=1,x=0);let $=F>=I?F:I,j=D>=x?D:x;r.num_total_len=$+j,r.pointNum=j,q>N?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(q,N,"-"),r.numberVal=Number(String(q))):q<N?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(N,q,"-"),r.numberVal=Number(String(N))):r.sortFlag="equal";var O=1;for(let H=0;H<r.pointNum;H++)O*=10;var Q=r.numberVal*O;if(r.relNum=Q,T!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(Q).length),String(q).indexOf(".")>-1){let H=String(q).split(".");r.initDigit1=Number(H[0]),r.initDigit2=Number(H[1])}else r.initDigit1=q,r.initDigit2=0;i&&!L?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let H=o.value[r.num_total_len-1];d(H)}):V!==0&&C()},d=V=>{m();var q=1;r.pointNum!=0&&(q=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(V),r.totalCount=h(r.totalCount,q,"-"),r.totalCount<=0&&(m(),n("scroll-end"),r.valFlag=!1)},e.during)},p=V=>{let q=V.getAttribute("turn-number"),N;if(r.sortFlag=="add"?N=parseInt(String(q))+1:N=parseInt(String(q))-1>=0?parseInt(String(q))-1:9,V.setAttribute("turn-number",String(N)),(V.style.transition=="none 0s ease 0s"||N==1||!V.style.transition)&&(V.style.transition=`all linear ${e.during}ms`),N==10||r.sortFlag=="reduce"&&N==0){var T=null;V.style.top=`-${r.sortFlag=="add"?N*100:(10-N)*100}%`,V.setAttribute("turn-number","0"),T=setTimeout(()=>{T&&clearTimeout(T),V.style.transition="none",V.style.top="0",b(V,N)},.975*e.during)}else V.style.top=`-${r.sortFlag=="add"?N*100:(10-N)*100}%`;V.style.top=="-100%"&&r.sortFlag=="reduce"&&p(V.previousSibling)},b=(V,q)=>{setTimeout(()=>{q==10&&V.previousSibling&&p(V.previousSibling)},200)},C=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},B=()=>{for(r.notPrize=[];r.notPrize.length<3;){var V=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(V)==-1&&r.notPrize.push(V)}};HS({machineLuck:()=>{const V=e.machineTurnMore<0?0:e.machineTurnMore;let q=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&B();for(let N=0;N<e.machineNum;N++)setTimeout(()=>{let T=q*(N+1+parseFloat(String(V)));r.prizeYPrev.length!=0&&(r.prizeY[N]=r.prizeYPrev[N]);let L=r.prizeYPrev[N]?r.prizeYPrev[N]:0,F=T+L+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(q-L);r.prizeLevelTrun<0&&(F+=e.numHeight*r.notPrize[N]),E(N,F,L)},500*N)}});const E=(V,q,N)=>{let T=setInterval(()=>{if(N<=q)N+=10,r.prizeY[V]=parseFloat(String(N));else if(clearInterval(T),T=null,r.finshMachine+=1,r.prizeY[V]=q,r.finshMachine==e.machineNum){let L=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(D=>{let I=D;for(;I>L;)I-=L;r.prizeYPrev.push(I)}),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(()=>{f()})}),t.onUnmounted(()=>{m(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:l,setRef:a,topNumber:y,turnNumber:g}}}),YS={class:"fox-countup"},XS=["turn-number"];function QS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",YS,[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,XS))),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 na=_(WS,[["render",QS]]),GS=e=>{if(!e)return Date.now();let n=Number(e),l=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:ZS,create:JS}=X("countdown"),_S=JS({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(()=>({[ZS]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-GS(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,m(),n("on-end")),g>0&&i()}}))},c=(y,g)=>{const k=y;let S={d:0,h:0,m:0,s:0,ms:0};const d=1e3,p=60*d,b=60*p,C=24*b;return k>0&&(S.d=k>=d?Math.floor(k/C):0,S.h=Math.floor(k%C/b),S.m=Math.floor(k%b/p),S.s=Math.floor(k%p/d),S.ms=Math.floor(k%d)),g=="custom"?S:u({...S})},u=y=>{let{d:g,h:k,m:S,s:d,ms:p}=y,b=e.format;if(b.includes("DD")?b=b.replace("DD",nt(g)):k+=Number(g)*24,b.includes("HH")?b=b.replace("HH",nt(k)):S+=Number(k)*60,b.includes("mm")?b=b.replace("mm",nt(S)):d+=Number(S)*60,b.includes("ss")?b=b.replace("ss",nt(d)):p+=Number(d)*1e3,b.includes("S")){const C=nt(p,3).toString();b.includes("SSS")?b=b.replace("SSS",C):b.includes("SS")?b=b.replace("SS",C.slice(0,2)):b.includes("S")&&(b=b.replace("SS",C.slice(0,1)))}return b},f=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},m=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(m(),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&&m()}),t.watch(()=>e.endTime,y=>{s()}),t.watch(()=>e.startTime,y=>{s()}),{...t.toRefs(e),slots:l,classes:a,start:f,pause:m,renderTime:r,reset:h}}}),e1=["innerHTML"];function t1(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,e1))],2)}const oa=_(_S,[["render",t1]]),{create:n1}=X("badge"),o1=n1({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}}}),l1={class:"fox-badge"},a1=["textContent"];function r1(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",l1,[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 la=_(o1,[["render",r1]]),{componentName:s1,create:i1}=X("tag"),c1=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:ne.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=s1;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 Wt=_(c1,[["render",d1]]),{create:u1}=X("popover"),f1=u1({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",b=e.location,C=b.split("-")[0];return`${p} ${p}-${C} ${p}--${b}`}),c=t.computed(()=>{const p={},{bgColor:b,arrowOffset:C,location:B}=e,A=B.split("-")[0],E=B.split("-")[1],V=16;return b&&(p[`border${u(A)}Color`]=b),e.arrowOffset!=0&&(["bottom","top"].includes(A)&&(E||(p.left=`calc(50% + ${C}px)`),E=="start"&&(p.left=`${V+C}px`),E=="end"&&(p.right=`${V-C}px`)),["left","right"].includes(A)&&(E||(p.top=`calc(50% - ${C}px)`),E=="start"&&(p.top=`${V-C}px`),E=="end"&&(p.bottom=`${V+C}px`))),p}),u=p=>(p=p.toLowerCase(),p=p.replace(/\b\w+\b/g,b=>b.substring(0,1).toUpperCase()+b.substring(1)),p),f=t.computed(()=>{let p={};if(!r.value||!s.value)return{};const b=s.value.width,C=s.value.height,{width:B,height:A,left:E,top:V}=r.value,{location:q,offset:N}=e,T=q.split("-")[0],L=q.split("-")[1];let F=0,D=0;if(Zt(N)&&N.length==2&&(F+=Number(N[1]),D+=Number(N[0])),B){if(["bottom","top"].includes(T)){const I=T=="bottom"?A+F:-(C+F);p.top=`${V+I}px`,L||(p.left=`${-(b-B)/2+E+D}px`),L=="start"&&(p.left=`${E+D}px`),L=="end"&&(p.left=`${r.value.right+D}px`)}if(["left","right"].includes(T)){const I=T=="left"?-(b+F):B+F;p.left=`${E+I}px`,L||(p.top=`${V-C/2+A/2-4+D}px`),L=="start"&&(p.top=`${V+D}px`),L=="end"&&(p.top=`${V+A+D}px`)}}return p}),m=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")},k=()=>{n("update:visible",!1),n("close")},S=(p,b)=>{!p.disabled&&n("choose",p,b),e.closeOnClickAction&&k()},d=p=>{const b=l.value,C=o.value;let B=b&&!b.contains(p.target);if(e.targetId){const A=document.querySelector(`#${e.targetId}`);B=A&&!A.contains(p.target)}B&&C&&!C.contains(p.target)&&e.closeOnClickOutside&&k()};return{showPopup:a,openPopover:g,popoverArrow:i,closePopover:k,chooseItem:S,popoverRef:l,popoverContentRef:o,getRootPosition:f,customStyle:m,popoverArrowStyle:c,renderIcon:ir}}}),m1={ref:"popoverContentRef",class:"fox-popover-content-group"},p1=["onClick"],h1={class:"fox-popover-menu-item-name"};function g1(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",m1,[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",h1,t.toDisplayString(i.name),1)],10,p1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Yt=_(f1,[["render",g1]]),y1=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:k1}=X("skeleton"),b1=k1(y1({[jt.name]:jt})),S1={key:0},C1={key:1,class:"fox-skeleton"},w1={key:0,class:"fox-skeleton-animation"},N1={class:"fox-skeleton-content"};function B1(e,n,l,o,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",C1,[e.animated?(t.openBlock(),t.createElementBlock("view",w1)):t.createCommentVNode("",!0),t.createElementVNode("view",N1,[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",S1,[t.renderSlot(e.$slots,"default")]))}const aa=_(b1,[["render",B1]]),{create:A1,componentName:V1}=X("collapse"),T1=A1({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(()=>({[V1]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,u,f=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,u,f)},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(f=>f!==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 $1(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 ra=_(T1,[["render",$1]]),{create:E1,componentName:D1}=X("collapse-item"),I1=E1({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=D1;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")},f=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},m=()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?f():m()}),{classes:r,renderIcon:ir,wrapperRef:n,contentRef:l,open:f,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:u}}}),q1={class:"fox-collapse-item__title-main"},x1={class:"fox-collapse-item__title-main-value"},M1=["innerHTML"],z1={key:2,class:"fox-collapse-item__title-label"},L1={key:0,class:"fox-collapse-item__title-sub"},P1=["innerHTML"],F1={key:0,class:"fox-collapse__item-extraWrapper"},R1={class:"fox-collapse__item-extraWrapper__extraRender"},O1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function v1(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",q1,[t.createElementVNode("view",x1,[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,M1)),e.label?(t.openBlock(),t.createElementBlock("view",z1,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",L1,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,P1)),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",F1,[t.createElementVNode("div",R1,[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",O1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const sa=_(I1,[["render",v1]]),K1=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:U1,create:H1,scope:j1}=X("table"),W1=H1({components:{RenderColumn:K1,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(j1),a=t.reactive({curData:e.data}),r=t.computed(()=>({[U1]:!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],f=y=>{const g=e.columns.filter(k=>k.key===y);return g[0].stylecolumn?g[0].stylecolumn:""},m=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:f,handleSorterClick:m,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),Y1={class:"fox-table__main__head"},X1={class:"fox-table__main__head__tr"},Q1=["onClick"],G1={class:"fox-table__main__body"},Z1={key:1},J1={key:0,class:"fox-table__nodata"},_1={key:0,class:"fox-table__nodata__text"},eC={key:1,class:"fox-table__summary"},tC=["innerHTML"];function nC(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",Y1,[t.createElementVNode("view",X1,[(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,Q1))),128))])]),t.createElementVNode("view",G1,[(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,f])=>(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 f=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[f,c[u]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",Z1,t.toDisplayString(c[u]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",J1,[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",_1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",eC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,tC)])):t.createCommentVNode("",!0)],2)}const ia=_(W1,[["render",nC]]),{componentName:oC,create:lC}=X("ellipsis"),aC=lC({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(()=>({[oC]:!0}));t.watch(()=>e.content,(k,S)=>{k!=S&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!l.value)return;const k=window.getComputedStyle(l.value);o=document.createElement("div"),Array.prototype.slice.apply(k).forEach(p=>{o.style.setProperty(p,k.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(k.lineHeight==="normal"?e.lineHeight:k.lineHeight);a=Math.floor(d*(Number(e.rows)+.5)+h(k.paddingTop)+h(k.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 k=e.content.length,S=Math.floor((0+k)/2),d=e.direction==="middle"?m([0,S],[S,k]):f(0,k);r.value=d,document.body.removeChild(o)}},f=(k,S)=>{const d=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(S-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(S,p)};const b=Math.round((k+S)/2);return e.direction==="end"?o.innerText=e.content.slice(0,b)+e.symbol+d:o.innerText=d+e.symbol+e.content.slice(b,p),o.offsetHeight<=a?e.direction==="end"?f(b,S):f(k,b):e.direction==="end"?f(k,b):f(b,S)},m=(k,S)=>{const d=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(k[1]-k[0]<=1&&S[1]-S[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(S[1],p)};const b=Math.floor((k[0]+k[1])/2),C=Math.ceil((S[0]+S[1])/2);return o.innerText=e.content.slice(0,b)+e.symbol+d+e.symbol+e.content.slice(C,p),o.offsetHeight<=a?m([b,k[1]],[S[0],C]):m([k[0],b],[C,S[1]])},h=k=>{if(!k)return 0;const S=k.match(/^\d*(\.\d*)?/);return S?Number(S[0]):0},y=k=>{k==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}}}),rC={key:0},sC={key:1},iC={key:2};function cC(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",rC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",sC,[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 ca=_(aC,[["render",cC]]),{componentName:dC,create:uC}=X("animate"),fC=uC({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}}}),mC={class:"fox-animate"};function pC(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",mC,[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 da=_(fC,[["render",pC]]),{componentName:hC,create:gC}=X("watermark"),yC=gC({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:f,imageHeight:m,content:h,fontStyle:y,fontWeight:g,fontColor:k,fontSize:S,fontFamily:d}=e,p=()=>{const C=document.createElement("canvas"),B=window.devicePixelRatio,A=C.getContext("2d"),E=`${(a+s)*B}px`,V=`${(r+i)*B}px`,q=s*B,N=i*B;if(C.setAttribute("width",E),C.setAttribute("height",V),A){if(u){A.translate(q/2,N/2),A.rotate(Math.PI/180*Number(c));const T=new Image;T.crossOrigin="anonymous",T.referrerPolicy="no-referrer",T.src=u,T.onload=()=>{A.drawImage(T,-f*B/2,-m*B/2,f*B,m*B),A.restore(),l.base64Url=C.toDataURL()}}else if(h){A.textBaseline="middle",A.textAlign="center",A.translate(q/2,N/2),A.rotate(Math.PI/180*Number(c));const T=Number(S)*B;A.font=`${y} normal ${g} ${T}px/${N}px ${d}`,A.fillStyle=k,A.fillText(h,0,0),A.restore(),l.base64Url=C.toDataURL()}}else throw new Error("当前环境不支持Canvas")};p(),t.watch(()=>[o,a,r,s,i,c,u,f,m,h,y,g,k,S,d],()=>{p()});const b=t.computed(()=>{const C=hC;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:b}}});function kC(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 ua=_(yC,[["render",kC]]);function bC(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:SC,create:CC}=X("trend-arrow"),wC=CC({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(()=>({[SC]:!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?"+":"-":""}${bC(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 NC(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 fa=_(wC,[["render",NC]]),{create:BC}=X("tour"),AC=BC({components:{[Yt.name]:Yt,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:f,maskWidth:m,maskHeight:h}=e,{width:y,height:g,left:k,top:S}=o.value,d=[k+y/2,S+g/2],p=Number(m||y),b=Number(h||g);return{width:`${p+ +f[1]*2}px`,height:`${b+ +f[0]*2}px`,top:`${d[1]-b/2-+f[0]}px`,left:`${d[0]-p/2-+f[1]}px`}}),s=f=>{f=="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 f=document.querySelector(`#${e.steps[l.active].target}`),m=Ee(f);o.value=m},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,f=>{f&&i(),l.active=0,l.showTour=f,l.showPopup=f}),{...t.toRefs(l),classes:a,maskStyle:r,changeStep:s,close:c,handleClickMask:u}}}),VC={key:0,class:"fox-tour-content"},TC={key:0,class:"fox-tour-content-top"},$C={class:"fox-tour-content-inner"},EC={class:"fox-tour-content-bottom"},DC={class:"fox-tour-content-bottom-init"},IC={class:"fox-tour-content-bottom-operate"},qC={key:1,class:"fox-tour-content fox-tour-content-tile"},xC={class:"fox-tour-content-inner"};function MC(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]=f=>e.showPopup=f),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",VC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",TC,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...f)=>e.close&&e.close(...f))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",$C,t.toDisplayString(c.content),1),t.createElementVNode("div",EC,[t.createElementVNode("div",DC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",IC,[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]=f=>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]=(...f)=>e.close&&e.close(...f))},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]=f=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",qC,[t.createElementVNode("div",xC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const ma=_(AC,[["render",MC]]),{componentName:v2,create:zC,scope:LC}=X("address"),PC=zC({components:{Location:ne.Location,Location2:ne.Location2,Check:ne.Check,Close:ne.Close,Left:ne.Left,[de.name]:de,[zt.name]:zt},inheritAttrs:!1,props:{...Ge,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(LC),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"]),f=t.ref(null),m=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=I=>{if(!Array.isArray(I))throw new TypeError("params muse be array.");if(!I.length)return[];I.forEach($=>{if(!$.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const x=[];return I=I.sort(($,j)=>$.title.localeCompare(j.title)),I.forEach($=>{const j=x.findIndex(O=>O.title===$.title);j<=-1?x.push({title:$.title,list:[].concat($)}):x[j].list.push($)}),x};let g=t.ref([]),k=t.reactive({});const S=t.ref("self"),d=t.ref(20),p=()=>{const I=e.modelValue,x=I.length;if(x>0){if(i.value=x-1,h.value.length==0){i.value=0;return}for(let $=0;$<x;$++){let j=[];switch($){case 0:j=e.province;break;case 1:j=e.city;break;case 2:j=e.country;break;default:j=e.town}g.value[$]=j.filter(O=>O.id==I[$])[0]}C()}},b=(I,x)=>I&&I.name||i.value<x&&I?I.name:e.columnsPlaceholder[x]||l("select"),C=()=>{E(),t.nextTick(()=>{const I=a.value&&a.value.getElementsByClassName("active")[0];if(I){const x=I.offsetLeft;d.value=x||20}})},B=I=>{const x=i.value;c.value=i.value;const $={custom:u.value[x]};g.value[x]=I;for(let j=x+2;j<4;j++)g.value.splice(j,1);x<3?(i.value=x+1,C(),$.next=u.value[i.value],$.value=I,n("change",$)):(N(),n("update:modelValue"))},A=(I,x)=>{c.value=i.value,b(I,x)&&(i.value=x,C())},E=()=>{const I=f.value,x=c.value,$=m.value[i.value];I?.scrollTop&&(m.value[x]=I?.scrollTop),t.nextTick(()=>{I?.scrollTo({top:$,behavior:"auto"})})},V=I=>{const x=e.existAddress;let $={};x.forEach(j=>{j&&j.selectedAddress&&($=j),j.selectedAddress=!1}),I.selectedAddress=!0,k=I,n("selected",$,I,x),N()},q=()=>{g.value=[],i.value=0,C()},N=(I="self")=>{S.value=I=="cross"?"cross":"self",r.value=!1},T=()=>{S.value="mask"},L=()=>{const I={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},x={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach($=>{const j=g.value[$];I.addressIdStr+=`${$?"_":""}${j&&j.id||0}`,I.addressStr+=j&&j.name||""}),x.data=I):x.data=k,q(),S.value=="self"?n("close",x):n("close-mask",{closeWay:S}),n("update:visible",!1)},F=()=>{const I=s.value;s.value=I=="exist"?"custom":"exist",q(),n("switch-module",{type:s.value})},D=(I,x)=>{B(x)};return t.watch(()=>e.visible,I=>{r.value=I}),t.watch(()=>r.value,I=>{I&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:u,selectedRegion:g,switchModule:F,closeWay:S,close:L,getTabName:b,nextAreaList:B,regionLine:o,tabRegion:a,lineDistance:d,changeRegionTab:A,selectedExist:V,clickOverlay:T,handClose:N,handleElevatorItem:D,initCustomSelected:p,...t.toRefs(e),t:l,regionList:h,transformData:y,scrollDom:f}}}),FC={class:"fox-address"},RC={class:"fox-address__header"},OC={class:"fox-address__header__title"},vC={key:0,class:"fox-address__custom"},KC={class:"fox-address__region",ref:"tabRegion"},UC=["onClick"],HC={key:0,class:"active fox-address__region-item"},jC={key:0,class:"fox-address__detail"},WC={class:"fox-address__detail-list",ref:"scrollDom"},YC=["onClick"],XC={key:1,class:"fox-address__elevator-group"},QC={key:1,class:"fox-address__exist"},GC={class:"fox-address__exist-group"},ZC={class:"fox-address__exist-group-list"},JC=["onClick"],_C={class:"fox-address__exist-item-info"},ew={key:0,class:"fox-address__exist-item-info-name"},tw={key:1,class:"fox-address__exist-item-info-phone"},nw={class:"fox-address__exist-item-info-bottom"},ow={class:"fox-address__exist-choose-btn"};function lw(e,n,l,o,a,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),u=t.resolveComponent("fox-elevator"),f=t.resolveComponent("Location2"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{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",FC,[t.createElementVNode("view",RC,[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",OC,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",vC,[t.createElementVNode("view",KC,[(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,UC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",HC,[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",jC,[t.createElementVNode("ul",WC,[(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,YC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",XC,[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",QC,[t.createElementVNode("div",GC,[t.createElementVNode("ul",ZC,[(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(f,{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",_C,[h.name?(t.openBlock(),t.createElementBlock("div",ew,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",tw,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",nw,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,JC))),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",ow,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 pa=_(PC,[["render",lw]]),{componentName:aw,create:rw}=X("barrage"),sw=rw({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),f=t.ref(0),m=e.speeds,h=t.ref(0);t.onMounted(()=>{y(),l&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(k(),f.value=0,g("hidden")):document.visibilityState==="visible"&&y()})}),t.onUnmounted(()=>{i.value=[],k()});const y=()=>{h.value=a.value.offsetWidth,l&&g("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),d()},300)},g=b=>{let B=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const A=[];B&&Array.from(B).forEach(E=>{b=="init"?(E.style.opacity="0",A.push(E)):(E.classList="",E.style={})}),b=="init"&&(i.value=A)},k=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,b=>{e.danmu.length>0&&(i.value=[...b])});const S=b=>{const C=f.value%i.value.length;!e.loop&&f.value===i.value.length?i.value.splice(i.value.length,0,b):i.value.splice(C,0,b)},d=()=>{k(),s=setTimeout(()=>{p()},e.frequency)},p=()=>{const b=e.loop?f.value%i.value.length:f.value;let C=document.createElement("view");l&&typeof i.value[b]=="object"?(C=i.value[b],C?.classList?.add("fox-barrage__item")):(C.innerHTML=i.value[b],C.classList.add("fox-barrage__item"),r.value.appendChild(C)),t.nextTick(()=>{const B=C.offsetHeight;if(C?.classList?.add("move"),C.style.animationDuration=`${m}ms`,C.style.top=b%c.value*(B+u.value)+20+"px",C.style.opacity="1",!l){const A=C.offsetWidth;C.style.width=A+20+"px"}C.addEventListener("animationend",()=>{l?C.classList.remove("move"):r.value.removeChild(C)}),!(!e.loop&&f.value>=i.value.length-1)&&(f.value++,f.value>=i.value.length&&(f.value=0),C.removeEventListener("animationend",()=>{}),d())})};return{classTime:n,classes:o,danmuList:i,dmBody:a,dmContainer:r,add:S}}});function iw(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 ha=_(sw,[["render",iw]]),{componentName:cw,create:dw,scope:uw}=X("signature"),fw=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(uw),o=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[cw]:!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],f,!1)},f=p=>{p.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),a.value.addEventListener(i.events[1],m,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],y,!1)},m=p=>{p.preventDefault();let b=i.isSupportTouch?p.touches[0]:p;n("signing",b);let C=a.value.getBoundingClientRect(),B=b.clientX-C.left,A=b.clientY-C.top;i.ctx.lineTo(B,A),i.ctx.stroke()},h=p=>{p.preventDefault(),n("end"),a.value.removeEventListener(i.events[1],m,!1),a.value.removeEventListener(i.events[2],h,!1)},y=p=>{p.preventDefault(),a.value.removeEventListener(i.events[1],m,!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")},k=()=>{d(a.value)},S=p=>{if(!p)return!0;var b=document.createElement("canvas");return b.width=p.width,b.height=p.height,p?.toDataURL()==b.toDataURL()},d=p=>{let b;switch(e.type){case"png":b=p.toDataURL("image/png");break;case"jpg":b=p.toDataURL("image/jpeg",.8);break}const C=S(p)?"请绘制签名":p,B=S(p)?"":b;n("confirm",C,B)};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:k,clear:g,classes:s}}}),mw={class:"fox-signature-inner",ref:"wrap"},pw=["height","width"],hw={key:0,class:"fox-signature-unsopport"};function gw(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",mw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,pw),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",hw,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 ga=_(fw,[["render",gw]]),{componentName:yw,create:kw,scope:bw}=X("time-select"),Sw=kw({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(bw),o=t.computed(()=>({[yw]:!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}}}),Cw={class:"fox-time-select__title"},ww={class:"fox-time-select__title__fixed"},Nw={key:0},Bw={class:"fox-time-select__content"},Aw={class:"fox-time-select__content__pannel"},Vw={class:"fox-time-select__content__detail"};function Tw(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",Cw,[t.createElementVNode("view",ww,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",Nw,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",Bw,[t.createElementVNode("view",Aw,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",Vw,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const ya=_(Sw,[["render",Tw]]),{componentName:$w,create:Ew}=X("time-pannel"),Dw=Ew({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(()=>({[$w]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:a,handlePannel:r}}});function Iw(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 ka=_(Dw,[["render",Iw]]),{componentName:qw,create:xw}=X("time-detail"),Mw=xw({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(()=>({[qw]:!0})),s=u=>{let f=a.currentTime.find(m=>m.key==a.currentKey);if(f)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":f.list.filter(m=>m===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}}}),zw={class:"fox-time-detail__detail fox-time-detail__detail--moring"},Lw={class:"fox-time-detail__detail__list"},Pw=["onClick"];function Fw(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",zw,[t.createElementVNode("view",Lw,[(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,Pw))),128))])])],2)}const ba=_(Mw,[["render",Fw]]),{componentName:K2,create:Rw,scope:Ow}=X("sku-header"),vw=Rw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Qe.name]:Qe},setup(e,{emit:n,slots:l}){const{t:o}=re.useFoxI18n(Ow);return{getSlots:r=>l[r],t:o}}}),Kw={class:"fox-sku-header"},Uw=["src"],Hw={class:"fox-sku-header-right"},jw={key:3,class:"fox-sku-header-right-extra"};function Ww(e,n,l,o,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",Kw,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,Uw),t.createElementVNode("view",Hw,[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",jw,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const Yw=_(vw,[["render",Ww]]),{componentName:U2,create:Xw}=X("sku-select"),Qw=Xw({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})}}}}),Gw={class:"fox-sku-select"},Zw={class:"fox-sku-select-item-title"},Jw={class:"fox-sku-select-item-skus"},_w=["onClick"];function eN(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",Gw,[(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",Zw,t.toDisplayString(s.name),1),t.createElementVNode("view",Jw,[(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:f=>e.changeSaleChild(c,u,s,i),key:c.name},t.toDisplayString(c.name),11,_w))),128))])]))),128))])}const tN=_(Qw,[["render",eN]]),{componentName:H2,create:nN}=X("sku-stepper"),oN=nN({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)}}}}),lN={class:"fox-sku-stepper"},aN={class:"fox-sku-stepper-title"},rN=["innerHTML"],sN={class:"fox-sku-stepper-count"};function iN(e,n,l,o,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",lN,[t.createElementVNode("view",aN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,rN),t.createElementVNode("view",sN,[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 cN=_(oN,[["render",iN]]),{componentName:j2,create:dN}=X("sku-operate"),uN=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]}}}),fN={key:0,class:"fox-sku-operate"},mN={key:0,class:"fox-sku-operate-desc"},pN={key:1,class:"fox-sku-operate-btn"},hN=["onClick"];function gN(e,n,l,o,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",fN,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",mN,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",pN,[(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,hN))),128))]))])):t.createCommentVNode("",!0)}const yN=_(uN,[["render",gN]]),{componentName:W2,create:kN,scope:bN}=X("sku"),SN=kN({props:{...Ge,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:Yw,SkuSelect:tN,SkuStepper:cN,SkuOperate:yN,[de.name]:de},setup(e,{emit:n,slots:l}){const{toLocaleRefs:o}=re.useFoxI18n(bN),a=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,S=>{r.value=S}),t.watch(()=>r.value,S=>{S==!1&&k()}),t.onMounted(()=>{});const i=S=>l[S],c=S=>{n("select-sku",S)},u=S=>{s.value=S,n("change-stepper",S)},f=S=>{n("add",S)},m=S=>{n("reduce",S)},h=S=>{n("over-limit",S)},y=S=>{n("click-btn-operate",{type:S,value:s.value})},g=S=>{S=="icon"&&n("click-close-icon"),S=="overlay"&&n("click-overlay"),S=="close"&&n("close"),r.value=!1},k=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:u,stepperOverLimit:h,clickBtnOperate:y,add:f,reduce:m,getSlots:i,...a}}}),CN={class:"fox-sku"},wN={class:"fox-sku-content"};function NN(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"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=m=>e.showPopup=m),onClickCloseIcon:n[1]||(n[1]=m=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=m=>e.closePopup("overlay")),onClose:n[3]||(n[3]=m=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",CN,[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",wN,[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 Sa=_(SN,[["render",NN]]),{create:BN}=X("card"),AN=BN({components:{[Qe.name]:Qe,[Wt.name]:Wt},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]}}}),VN={class:"fox-card"},TN={class:"fox-card__left"},$N=["src"],EN={class:"fox-card__right"},DN={class:"fox-card__right__title"},IN={key:0,class:"fox-card__right__price"},qN={class:"fox-card__right__other"},xN={class:"fox-card__right__shop"},MN={class:"fox-card__right__shop__name"};function zN(e,n,l,o,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",VN,[t.createElementVNode("div",TN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,$N)]),t.createElementVNode("div",EN,[t.createElementVNode("div",DN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",IN,[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",qN,[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",xN,[t.createElementVNode("div",MN,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Ca=_(AN,[["render",zN]]),{create:LN,scope:PN}=X("ecard"),FN=LN({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(PN),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))},f=()=>{o.value="input",s.value=e.cardAmountMin,a.value=r.value,n("update:modelValue",r.value),n("inputClick")},m=h=>{s.value=h,n("changeStep",s.value,a.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:m,change:u,inputClick:f,stepValue:s,currentIndex:o,inputValue:r,money:i,t:l}}}),RN={class:"fox-ecard"},ON={class:"fox-ecard__title"},vN={class:"fox-ecard__list"},KN=["onClick"],UN={class:"fox-ecard__list__input--con"},HN=["placeholder"],jN={class:"fox-ecard__list__step"};function WN(e,n,l,o,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",RN,[t.createElementVNode("view",ON,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",vN,[(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,KN))),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",UN,[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,HN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",jN,[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 wa=_(FN,[["render",WN]]),{create:YN,scope:XN}=X("address-list-item"),QN=YN({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(XN);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}}}),GN={class:"fox-address-list-item__info"},ZN={class:"fox-address-list-item__info-contact"},JN={class:"fox-address-list-item__info-contact-name"},_N={class:"fox-address-list-item__info-contact-tel"},eB={key:0,class:"fox-address-list-item__info-contact-default"},tB={class:"fox-address-list-item__info-handle"},nB={class:"fox-address-list-item__addr"};function oB(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",GN,[t.createElementVNode("div",ZN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",JN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",_N,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",eB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",tB,[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",nB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const As=_(QN,[["render",oB]]),{create:lB}=X("address-list-general"),aB=lB({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:As,[Me.name]:Me,[Ft.name]:Ft},setup(e,{emit:n}){const l=()=>t.h(As,{item:e.item,onDelIcon(B){s(B)},onEditIcon(B){i(B)},onClickItem(B){c(B)}});let o=null;const a=t.ref(!1),r=t.ref(!1),s=B=>{n("delIcon",B,e.item),B.stopPropagation()},i=B=>{n("editIcon",B,e.item),B.stopPropagation()},c=B=>{a.value||(n("clickItem",B,e.item),B.stopPropagation())},u=B=>{n("longDel",B,e.item),B.stopPropagation()},f=B=>{o=0,r.value=!0,n("longDown",B,e.item)};return{renderCompontent:l,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:u,holddownstart:B=>{o=setTimeout(()=>{f(B)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:B=>{n("longCopy",B,e.item),B.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:B=>{n("longSet",B,e.item),B.stopPropagation()},maskClick:B=>{o!=0&&(r.value=!1),B.stopPropagation(),B.preventDefault()},swipeDelClick:B=>{n("swipeDel",B,e.item),B.stopPropagation()},swipestart:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),rB={key:0,class:"fox-address-list-general"},sB={class:"fox-address-list-swipe"};function iB(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",sB,[(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",rB,[(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 cB=_(aB,[["render",iB]]),{componentName:dB,create:uB,scope:fB}=X("address-list"),mB=uB({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:cB,[Me.name]:Me},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(fB),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(k=>Xa(a,k,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(k,S)=>{n("delIcon",k,S),k.stopPropagation()},c=(k,S)=>{n("editIcon",k,S),k.stopPropagation()},u=(k,S)=>{n("clickItem",k,S),k.stopPropagation()},f=(k,S)=>{n("longCopy",k,S),k.stopPropagation()},m=(k,S)=>{n("longSet",k,S),k.stopPropagation()},h=(k,S)=>{n("longDel",k,S),k.stopPropagation()},y=(k,S)=>{n("swipeDel",k,S),k.stopPropagation()},g=k=>{n("add",k),k.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:u,clickLongCopy:f,clickLongSet:m,clickLongDel:h,clickSwipeDel:y,addAddress:g,dataArray:o,t:l}}});function pB(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 Na=_(mB,[["render",pB]]),{componentName:Y2,create:hB}=X("category"),gB=hB({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}}}),yB={class:"fox-category"},kB={class:"fox-category__cateList"},bB={key:0},SB=["onClick"];function CB(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",yB,[t.createElementVNode("div",kB,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",bB,[(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,SB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Ba=_(gB,[["render",CB]]),{componentName:X2,create:wB}=X("category-pane"),NB=wB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),BB={class:"fox-category-pane"},AB={key:0,class:"fox-category-pane__cateListRight"},VB={class:"fox-category-pane__childTitle"},TB={key:0,class:"fox-category-pane__childItemList"},$B=["onClick"],EB=["src"],DB={class:"fox-category-pane__skuImg"},IB={key:1,class:"fox-category-pane__cateListRight"},qB={class:"fox-category-pane__childTitle"},xB={key:0,class:"fox-category-pane__childItemList"},MB=["onClick"],zB={class:"fox-category-pane__skuName"},LB={key:2,class:"fox-category-pane__selfItemList"},PB=["onClick"];function FB(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",BB,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",AB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",VB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",TB,[(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:f=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,EB),t.createElementVNode("div",DB,t.toDisplayString(c?.catName),1)],8,$B))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",IB,[(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",xB,[(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:f=>e.onChange(c)},[t.createElementVNode("div",zB,t.toDisplayString(c?.catName),1)],8,MB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",LB,[(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,PB))),128))])):t.createCommentVNode("",!0)])}const Aa=_(NB,[["render",FB]]),{componentName:Q2,create:RB}=X("comment-header"),OB=RB({components:{[yt.name]:yt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),vB={class:"fox-comment-header__user"},KB={class:"fox-comment-header__user-avter"},UB=["src"],HB={class:"fox-comment-header__user-score"},jB={key:0,class:"fox-comment-header__time"};function WB(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",vB,[t.createElementVNode("view",KB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,UB)):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",HB,[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",jB,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 YB=_(OB,[["render",WB]]),{componentName:G2,create:XB}=X("comment-images"),QB=XB({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,f=s=="img"?i-c.length:i;n("clickImages",{type:s,index:f,value:s=="img"?u[f]:c[f]})},totalImages:a}}}),GB=["onClick"],ZB=["src"],JB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),_B=["onClick"],e2=["src"],t2={key:0,class:"fox-comment-images__mask"};function n2(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,ZB),JB],8,GB))),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,e2),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",t2,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,_B)):t.createCommentVNode("",!0)],64))),128))],2)}const o2=_(QB,[["render",n2]]),{componentName:Z2,create:l2,scope:a2}=X("comment-bottom"),r2=l2({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}}}),s2={class:"fox-comment-bottom"},i2={key:0},c2={class:"fox-comment-bottom__cpx"},d2=["onClick"];function u2(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",s2,[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",i2,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",c2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(u,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${u}`]),onClick:m=>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]=m=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,d2))),128))])])}const f2=_(r2,[["render",u2]]),{componentName:m2,create:p2,scope:h2}=X("comment"),g2=p2({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:YB,CommentImages:o2,CommentBottom:f2,Right:ne.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(h2),o=t.computed(()=>({[m2]:!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}}}),y2=["innerHTML"],k2={class:"fox-comment__follow-title"},b2={class:"fox-comment__follow-com"},S2={key:0,class:"fox-comment__follow-img"};function C2(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]=(...f)=>e.handleClick&&e.handleClick(...f)),innerHTML:e.info.content},null,12,y2),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]=(...f)=>e.handleClick&&e.handleClick(...f))},[t.createElementVNode("view",k2,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",b2,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",S2,[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 Va=_(g2,[["render",C2]]),w2=[ho,yo,ko,bo,wo,Ce,Vo,To,$o,Eo,Io,wn,Mo,Po,vo,Ho,En,Dn,jo,qn,xn,Yo,Qo,lt,Go,Jo,Rn,el,nl,ol,ll,al,il,cl,st,dl,ul,fl,ml,Me,pl,hl,at,de,gl,yl,kl,bl,Et,Sl,Cl,wl,Nl,Bl,Al,Vl,Tl,$l,zt,El,Dt,It,Dl,Il,ql,xl,Lt,Fn,Bn,$n,Tn,Ze,yt,pt,Ml,zl,Ll,Ft,Pl,Fl,Rl,Rt,Pn,Ol,Ul,zn,St,Wl,Yl,jt,Xl,Ql,Pt,Gl,Zl,Jl,Ct,_l,ea,wt,Nt,Qe,Un,na,oa,la,Wt,Yt,aa,ra,sa,ia,ca,da,ua,fa,ma,pa,ha,ga,ya,ka,ba,Sa,Ca,wa,Na,Ba,Aa,Va],N2=new ai(w2,"4.0.0");w.ActionSheet=Pl,w.ActionsheetItem=el,w.ActionsheetPane=Rn,w.Address=pa,w.AddressList=Na,w.Animate=da,w.Audio=Wl,w.AudioOperate=Yl,w.Avatar=jt,w.AvatarGroup=Xl,w.BackTop=Fl,w.Badge=la,w.Barrage=ha,w.Broadcast=so,w.BroadcastKey=Se,w.Button=Me,w.Calendar=$n,w.CalendarItem=Ho,w.Card=Ca,w.Cascader=Bn,w.CascaderItem=Po,w.Category=Ba,w.CategoryPane=Aa,w.Cell=pl,w.CellGroup=hl,w.Checkbox=qn,w.CheckboxGroup=xn,w.CheckboxItem=Yo,w.CircleProgress=Gl,w.Col=kl,w.Collapse=ra,w.CollapseItem=sa,w.Comment=Va,w.Content=bo,w.CountDown=oa,w.CountUp=na,w.DataItemsKey=dt,w.DateItem=vo,w.DatePicker=Tn,w.DateUtils=oe,w.Dialog=Rt,w.Divider=Sl,w.Domain=an,w.DomainKey=qe,w.DomainProvider=fl,w.Drag=Rl,w.Ecard=wa,w.Elevator=zt,w.Ellipsis=ca,w.Empty=Jl,w.FixedNav=Bl,w.FloatingButton=cl,w.FooterBar=ko,w.FoxActionSheet=Pl,w.FoxActionsheetItem=el,w.FoxActionsheetPane=Rn,w.FoxAddress=pa,w.FoxAddressList=Na,w.FoxAnimate=da,w.FoxAudio=Wl,w.FoxAudioOperate=Yl,w.FoxAvatar=jt,w.FoxAvatarGroup=Xl,w.FoxBackTop=Fl,w.FoxBadge=la,w.FoxBarrage=ha,w.FoxButton=Me,w.FoxCalendar=$n,w.FoxCalendarItem=Ho,w.FoxCard=Ca,w.FoxCascader=Bn,w.FoxCascaderItem=Po,w.FoxCategory=Ba,w.FoxCategoryPane=Aa,w.FoxCell=pl,w.FoxCellGroup=hl,w.FoxCheckbox=qn,w.FoxCheckboxGroup=xn,w.FoxCheckboxItem=Yo,w.FoxCircleProgress=Gl,w.FoxCol=kl,w.FoxCollapse=ra,w.FoxCollapseItem=sa,w.FoxComment=Va,w.FoxContent=bo,w.FoxCountDown=oa,w.FoxCountUp=na,w.FoxDateItem=vo,w.FoxDatePicker=Tn,w.FoxDialog=Rt,w.FoxDivider=Sl,w.FoxDomainProvider=fl,w.FoxDrag=Rl,w.FoxEcard=wa,w.FoxElevator=zt,w.FoxEllipsis=ca,w.FoxEmpty=Jl,w.FoxFixedNav=Bl,w.FoxFloatingButton=cl,w.FoxFooterBar=ko,w.FoxGrid=Cl,w.FoxGridItem=wl,w.FoxGroup=wo,w.FoxHeaderBar=yo,w.FoxHintText=lt,w.FoxImage=gl,w.FoxImagePreview=Un,w.FoxIndicator=Dl,w.FoxInfiniteLoading=Pn,w.FoxInputItem=$o,w.FoxInputNumber=Ze,w.FoxInputnumberItem=nl,w.FoxItem=Ce,w.FoxLayout=yl,w.FoxLinkItem=Go,w.FoxList=Ql,w.FoxMapping=ul,w.FoxMenu=Al,w.FoxMenuItem=Vl,w.FoxMessageBox=st,w.FoxMoneyItem=Eo,w.FoxNavbar=Nl,w.FoxNoticeBar=Zl,w.FoxNotify=Ul,w.FoxNumberKeyboard=Ll,w.FoxOverLay=at,w.FoxPage=ho,w.FoxPagination=El,w.FoxPicker=pt,w.FoxPickerItem=Mo,w.FoxPopover=Yt,w.FoxPopup=de,w.FoxPrice=Qe,w.FoxProgress=Pt,w.FoxPullRefresh=Ol,w.FoxRadio=En,w.FoxRadioGroup=Dn,w.FoxRadioItem=jo,w.FoxRange=Lt,w.FoxRate=yt,w.FoxRateItem=Jo,w.FoxRollingProvider=ml,w.FoxRow=bl,w.FoxRowItem=Vo,w.FoxSearchBar=Fn,w.FoxShortPassword=Ml,w.FoxSideNavBar=Il,w.FoxSideNavBarItem=ql,w.FoxSignature=ga,w.FoxSkeleton=aa,w.FoxSku=Sa,w.FoxSlotItem=To,w.FoxStep=ea,w.FoxSteps=_l,w.FoxStepsBar=il,w.FoxSticky=Et,w.FoxSubSideNavBar=xl,w.FoxSwipe=Ft,w.FoxSwiper=wt,w.FoxSwiperItem=Nt,w.FoxSwitch=zn,w.FoxSwitchItem=Qo,w.FoxTabPane=It,w.FoxTabbar=Tl,w.FoxTabbarItem=$l,w.FoxTable=ia,w.FoxTabs=Dt,w.FoxTabsBar=ol,w.FoxTabsContainer=ll,w.FoxTabsPane=al,w.FoxTag=Wt,w.FoxText=dl,w.FoxTextarea=wn,w.FoxTextareaItem=Io,w.FoxTimeDetail=ba,w.FoxTimePannel=ka,w.FoxTimeSelect=ya,w.FoxToast=St,w.FoxTour=ma,w.FoxTrendArrow=fa,w.FoxUploader=zl,w.FoxVideo=Ct,w.FoxWaterMark=ua,w.Grid=Cl,w.GridItem=wl,w.Group=wo,w.HeaderBar=yo,w.HintText=lt,w.Image=gl,w.ImagePreview=Un,w.Indicator=Dl,w.InfiniteLoading=Pn,w.InputItem=$o,w.InputNumber=Ze,w.InputnumberItem=nl,w.Item=Ce,w.Layout=yl,w.LinkItem=Go,w.List=Ql,w.Mapping=ul,w.Menu=Al,w.MenuItem=Vl,w.MessageBox=st,w.MoneyItem=Eo,w.Navbar=Nl,w.NoticeBar=Zl,w.Notify=Ul,w.NumberKeyboard=Ll,w.OverLay=at,w.Page=ho,w.Pagination=El,w.Picker=pt,w.PickerItem=Mo,w.Popover=Yt,w.Popup=de,w.Price=Qe,w.PriorityPolicy=fn,w.Progress=Pt,w.PullRefresh=Ol,w.Radio=En,w.RadioGroup=Dn,w.RadioItem=jo,w.Range=Lt,w.Rate=yt,w.RateItem=Jo,w.RollingProvider=ml,w.Row=bl,w.RowItem=Vo,w.SearchBar=Fn,w.ShortPassword=Ml,w.SideNavBar=Il,w.SideNavBarItem=ql,w.Signature=ga,w.Skeleton=aa,w.Sku=Sa,w.SlotItem=To,w.Step=ea,w.Steps=_l,w.StepsBar=il,w.Sticky=Et,w.SubSideNavBar=xl,w.Swipe=Ft,w.Swiper=wt,w.SwiperItem=Nt,w.Switch=zn,w.SwitchItem=Qo,w.TabPane=It,w.Tabbar=Tl,w.TabbarItem=$l,w.Table=ia,w.Tabs=Dt,w.TabsBar=ol,w.TabsContainer=ll,w.TabsPane=al,w.Tag=Wt,w.Text=dl,w.Textarea=wn,w.TextareaItem=Io,w.TimeDetail=ba,w.TimePannel=ka,w.TimeSelect=ya,w.Toast=St,w.Tour=ma,w.TrendArrow=fa,w.UniqueID=Bo,w.Uploader=zl,w.ValidateSchema=er,w.ValidateSchemaKey=ve,w.Video=Ct,w.WaterMark=ua,w.cancelRaf=Ta,w.clamp=Oe,w.clearNonNumber=oo,w.clone=to,w.compareTo=Jn,w.createBroadcast=tn,w.createValidateSchema=on,w.debounce=ct,w.debounceRef=Qs,w.decimalLength=Wa,w.default=N2,w.defineBroadcast=Os,w.defineConfigDomain=nr,w.defineDataItem=lr,w.defineDomain=uo,w.defineItem=Ne,w.definePageState=ar,w.deleteGlobalValidator=Hs,w.disabledProperty=Be,w.divide=Zn,w.excludeProps=lo,w.extend=et,w.floatData=Xa,w.getGlobalValidateCheckEvents=Za,w.getGlobalValidateResetEvents=_a,w.getPageContentAreaHeight=dn,w.getPageContentAreaWidth=un,w.getPageFooterAreaHeight=cn,w.getPageHeaderAreaHeight=sn,w.getRootDomain=ut,w.getScrollTopRoot=ro,w.hasSymbol=Ra,w.includeProps=ge,w.indexOf=Fs,w.installRules=or,w.integerLength=ja,w.isArray=Zt,w.isArrayLike=va,w.isBrowser=_e,w.isDate=Re,w.isESModule=xs,w.isEmptyString=ce,w.isEqual=xe,w.isFunction=Jt,w.isHidden=en,w.isInnerPage=Js,w.isMap=Ds,w.isNil=La,w.isNumberString=Ha,w.isObject=Ve,w.isPlainObject=eo,w.isPromise=_n,w.isRegExp=Ua,w.isSet=Is,w.isString=Pa,w.isSubPage=_s,w.isSymbol=qs,w.isWindow=Oa,w.lastIndexOf=Rs,w.makeArray=Ps,w.merge=Ka,w.multiply=xa,w.negate=Ma,w.nextTick=zs,w.numberFormat=Gt,w.objectToString=Fa,w.once=Gs,w.padZero=nt,w.preventDefault=ao,w.property=Ae,w.raf=Fe,w.readonlyProperty=Te,w.setGlobalValidateCheckEvents=js,w.setGlobalValidateHandler=Ks,w.setGlobalValidateMessages=Ys,w.setGlobalValidateResetEvents=Ws,w.setGlobalValidator=Us,w.throttle=ln,w.toBoolean=pe,w.toNumber=he,w.toPadding=ze,w.toPx=ie,w.toPxDesc=me,w.toTypeString=_t,w.toValue=De,w.tryTimes=io,w.typeOf=tt,w.unNumberFormat=za,w.updatePageState=fo,w.useBroadcast=Vt,w.useDomain=Ke,w.useExpose=$e,w.useInnerSize=go,w.usePageState=rn,w.usePosition=hr,w.useRect=Ee,w.useSize=pn,w.useTouch=Ue,w.valueLength=ye,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
13
+ `)}}});function ng(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=_(tg,[["render",ng]]),{componentName:og,create:lg}=Y("divider"),ag=lg({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=og;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 rg(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=_(ag,[["render",rg]]);function sg(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 ig(e,n,l){const o=sg(e.subTree.children,l);n.sort((a,r)=>o.indexOf(a.vnode)-o.indexOf(r.vnode))}function cg(e,n){const l=t.shallowReactive([]),o=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),ig(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:hs}=Y("grid"),gs=Symbol("grid"),dg={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}){cg(gs,`${hs}-item`)({props:e});const l=t.computed(()=>{const a=hs;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=pe(e.gutter)),a});return()=>t.h("view",{class:l.value,style:o.value},n.default?.())}},{create:ug}=Y("grid"),wl=ug(dg);function fg(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:mg,componentName:ys}=Y("grid-item"),pg=mg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const l=fg(gs);if(!l.parent)return{};const o=l.index,a=l.parent.props,r=t.computed(()=>({[ys]:!0})),s=t.computed(()=>{const u={flexBasis:`${100/+a.columnNum}%`};return a.square?u.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(u.paddingRight=pe(a.gutter),o.value>=a.columnNum&&(u.marginTop=pe(a.gutter))),u}),i=t.computed(()=>{const u=`${ys}__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)}}}}),hg={class:"fox-grid-item__text"};function gg(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",hg,[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=_(pg,[["render",gg]]),{componentName:yg,create:kg}=Y("navbar"),bg=kg({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 S=yg;return{[S]:!0,[`${S}--border`]:l.value,[`${S}--fixed`]:o.value,[`${S}--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 k(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:f,handleLeft:h,handleCenter:y,handleCenterIcon:g,handleRight:k}}}),Sg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Cg={key:1,class:"fox-navbar__text"},wg={class:"fox-navbar__title"},Ng={key:0,class:"fox-navbar__text"},Bg={key:1,class:"fox-navbar__text"},Ag={class:"fox-navbar__title"},$g={key:0,class:"fox-navbar__text"};function Tg(e,n,l,o,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Sg,[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",Cg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",wg,[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",Ng,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",Bg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Ag,[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",$g,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Bl=_(bg,[["render",Tg]]),Vg=(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:Eg,create:Dg,scope:Ig}=Y("fixednav"),qg=Dg(Vg(Eg,Ig,{[at.name]:at,Left:ne.Left})),xg={class:"fox-fixednav__list"},Mg=["onClick"],zg=["src"],Lg={class:"span"},Pg={key:0,class:"b"},Fg={class:"text"};function Rg(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",xg,[(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,zg),t.createElementVNode("view",Lg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Pg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Mg))),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",Fg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Al=_(qg,[["render",Rg]]),{componentName:Og,create:vg}=Y("menu"),Kg=vg({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 S=t.reactive([]),d=t.reactive([]);return{children:S,linkChildren:b=>{const C=N=>{N.proxy&&(d.push(N),S.push(N.proxy))},A=N=>{if(N.proxy){let $=d.indexOf(N);$>-1&&d.splice($,1);let T=S.indexOf(N.proxy);$>-1&&S.splice(T,1)}};t.provide("menuParent",Object.assign({removeLink:A,link:C,children:S,internalChildren:d},b))}}},{children:i,linkChildren:c}=s(),u=t.computed(()=>i.some(S=>S.state.showWrapper)),m=t.computed(()=>({[Og]:!0,"scroll-fixed":r.value})),f=()=>{if(o.value){const S=Ee(o);e.direction==="down"?a.value=S.bottom:a.value=window.innerHeight-S.top}};c({props:e,offset:a});const h=S=>{i.forEach((d,p)=>{p===S?(f(),d.toggle()):d.state.showPopup&&d.toggle(!1,{immediate:!0})})},y=S=>Math.max(0,"scrollTop"in S?S.scrollTop:S.pageYOffset),g=()=>{const{scrollFixed:S}=e,d=y(window);r.value=d>(typeof S=="boolean"?30:Number(S))},k=S=>{let d="";const{titleClass:p}=e;return S&&(d+="active"),p&&(d+=` ${p}`),d};return t.onMounted(()=>{const{scrollFixed:S}=e;S&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:S}=e;S&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:i,opened:u,classes:m,barRef:o,getClasses:k}}}),Ug=["onClick"],Hg={class:"fox-menu__title-text"},jg={class:"fox-menu__title-icon"};function Wg(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",Hg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",jg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Ug))),128))],2),t.renderSlot(e.$slots,"default")],2)}const $l=_(Kg,[["render",Wg]]),{componentName:Yg,create:Xg}=Y("menu-item"),Qg=Xg({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:{[ce.name]:ce,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:k,removeLink:S}=y;return k(g),t.onUnmounted(()=>{S(g)}),{parent:y}}},{parent:r}=a(),s=t.computed(()=>({[Yg]:!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")}}}}),Gg={class:"fox-menu-item__content fox-menu-item__overflow"},Zg=["onClick"];function Jg(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",Gg,[(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,Zg))),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=_(Qg,[["render",Jg]]),{create:_g}=Y("tabbar"),ey=_g({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 ty(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=_(ey,[["render",ty]]),{create:ny}=Y("tabbar-item"),oy=ny({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}}}),ly={class:"fox-tabbar-item_icon-box"},ay={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},ry={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},sy={key:1,class:"fox-tabbar-item_icon-box_dot"},iy={key:2},cy={key:0};function dy(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",ly,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",ay,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",ry,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",sy)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",iy,[(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",cy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const El=_(oy,[["render",dy]]),{componentName:uy,create:fy}=Y("elevator"),my=fy({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(()=>({[uy]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>l.value.clientHeight),i=(d,p)=>{const b="data-";return d.getAttribute(b+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 b=o.listGroup[p];d+=Math.floor(b.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"),b=d.touches[0];o.touchState.y1=b.pageY,o.anchorIndex=+p,o.codeIndex=+p,m(+p)},h=d=>{let p=d.touches[0];o.touchState.y2=p.pageY;let b=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+b,m(o.codeIndex)},y=()=>{o.scrollStart=!1},g=(d,p)=>{n.emit("click-item",d,p),o.currentData=p,o.currentKey=d},k=d=>{n.emit("click-index",d)},S=d=>{let b=d.target.scrollTop;const C=o.listHeight;o.scrollY=b;for(let A=0;A<C.length-1;A++){let N=C[A],$=C[A+1];if(o.scrollY>=N&&o.scrollY<$){o.currentIndex=A,o.diff=$-o.scrollY;return}}o.currentIndex=C.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",S)}),Ve({scrollTo:m}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(u)}),t.watch(()=>o.diff,d=>{const p=o.listHeight;let b=d>0&&d<e.titleHeight?d-e.titleHeight:0;o.scrollY+s.value===p[p.length-1]&&b!==0&&(b=0),o.fixedTop!==b&&(o.fixedTop=b)}),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:k}}}),py={class:"fox-elevator__list__item__code"},hy=["onClick"],gy=["innerHTML"],yy={class:"fox-elevator__fixed-title"},ky={class:"fox-elevator__bars__inner"},by=["data-index","onClick"];function Sy(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",py,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,gy))],10,hy))),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",yy,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",ky,[(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,by))),128))])],32)],2)}const Lt=_(my,[["render",Sy]]),{componentName:Q2,create:Cy,scope:wy}=Y("pagination"),Ny=Cy({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(wy),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),k=+h.value||Math.ceil(+y.value/+g.value);return Math.max(1,k)}),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 k=1,S=y;const d=y>g;d&&(k=Math.max(a.value-Math.floor(g/2),1),S=k+g-1,S>y&&(S=y,k=S-g+1));for(var p=k;p<=S;p++){const b=m(p,p,a.value==p);h.push(b)}if(d&&g>0&&i.value){if(k>1){const b=m(k-1,"...");h.unshift(b)}if(S<y){const b=m(S+1,"...");h.push(b)}}return h});return t.watchEffect(()=>{u(a.value,!1)}),{...o,modelValue:a,select:u,countRef:c,mode:r,pages:f,forceEllipses:i}}}),By={class:"fox-pagination"},Ay={key:0,class:"fox-pagination-contain"},$y=["onClick"],Ty={key:1,class:"fox-pagination-contain"},Vy={class:"fox-pagination-simple"};function Ey(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",By,[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",Ay,[(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,$y))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Ty,[t.createElementVNode("view",Vy,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=_(Ny,[["render",Ey]]),{componentName:ks,create:Dy}=Y("indicator"),Iy=Dy({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=ks;return{[a]:!0,[`${a}--block`]:n.value,[`${a}--align__${l.value}`]:n.value&&l.value}}),componentName:ks,padZero:nt}}});function qy(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=_(Iy,[["render",qy]]),{componentName:xy,create:My}=Y("side-navbar"),zy=My({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(()=>({[xy]:!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}}}),Ly={class:"fox-side-navbar__content"},Py={class:"fox-side-navbar__content__list",ref:"list"};function Fy(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Ly,[t.createElementVNode("view",Py,[t.renderSlot(e.$slots,"default")],512)])],2)}const ql=_(zy,[["render",Fy]]),{componentName:Ry,create:Oy}=Y("side-navbar-item"),vy=Oy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[Ry]:!0})),handleClick:()=>{n.emit("click")}})}),Ky=["ikey"],Uy={class:"fox-side-navbar-item__title"};function Hy(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",Uy,t.toDisplayString(e.title),1)],10,Ky)}const xl=_(vy,[["render",Hy]]),{componentName:jy,create:Wy}=Y("sub-side-navbar"),Yy=Wy({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(()=>({[jy]:!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}}}),Xy=["ikey"],Qy={class:"fox-sub-side-navbar__title__text"},Gy={class:"fox-sub-side-navbar__title__icon"};function Zy(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",Qy,t.toDisplayString(e.title),1),t.createElementVNode("span",Gy,[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,Xy)}const Ml=_(Yy,[["render",Zy]]),{componentName:Jy,create:_y}=Y("range"),e0=_y({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:D,max:I,min:x}=e;return Object.keys(D).map(parseFloat).sort((v,X)=>v-X).filter(v=>v>=x&&v<=I)}),u=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const D=Jy;return{[D]:!0,[`${D}-disabled`]:e.disabled,[`${D}-vertical`]:e.vertical,[`${D}-show-number`]:!e.hiddenRange}}),f=t.computed(()=>{const D="fox-range-container";return{[D]:!0,[`${D}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),y=t.computed(()=>({borderColor:e.buttonColor})),g=D=>!!e.range&&Array.isArray(D),k=()=>{const{modelValue:D,min:I}=e;return g(D)?`${(D[1]-D[0])*100/u.value}%`:`${(D-Number(I))*100/u.value}%`},S=()=>{const{modelValue:D,min:I}=e;return g(D)?`${(D[0]-Number(I))*100/u.value}%`:"0%"},d=t.computed(()=>e.vertical?{height:k(),top:S(),background:e.activeColor,transition:s.value?"none":void 0}:{width:k(),left:S(),background:e.activeColor,transition:s.value?"none":void 0}),p=D=>{const I="fox-range-mark",{modelValue:x,max:E,min:j}=e;let v=Number(j),X=Number(E);if(e.range){const[M,L]=x;v=M,X=L}else X=x;let G=D<=X&&D>=v;return{[`${I}-text`]:!0,[`${I}-text-active`]:G}},b=D=>{const{min:I,vertical:x}=e;let E={left:`${(D-Number(I))/u.value*100}%`};return x&&(E={top:`${(D-Number(I))/u.value*100}%`}),E},C=D=>{const{modelValue:I,max:x,min:E}=e;let j=Number(E),v=Number(x);if(e.range){const[M,L]=I;j=M,v=L}return{background:D<=v&&D>=j?e.activeColor:e.inactiveColor}},A=D=>{const{min:I,max:x,step:E}=e;return D=Math.max(+I,Math.min(D,+x)),Math.round(D/+E)*+E},N=(D,I)=>JSON.stringify(D)===JSON.stringify(I),$=D=>D[0]>D[1]?D.slice(0).reverse():D,T=(D,I)=>{g(D)?D=$(D).map(A):D=A(D),N(D,e.modelValue)||n("update:modelValue",D),I&&!N(D,o)&&n("change",D)},q=D=>{if(e.disabled)return;const{min:I,modelValue:x}=e,E=Ee(r);let j=D.clientX-E.left,v=E.width;e.vertical&&(j=D.clientY-E.top,v=E.height);const X=Number(I)+j/v*u.value;if(g(x)){const[G,M]=x,L=(G+M)/2;X<=L?T([X,M],!0):T([G,X],!0)}else T(X,!0)},B=D=>{e.disabled||(i.start(D),a=e.modelValue,g(a)?o=a.map(A):o=A(a),s.value="start")},V=D=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(D),s.value="draging";const I=Ee(r);let x=i.deltaX.value,E=I.width,j=x/E*u.value;e.vertical&&(x=i.deltaY.value,E=I.height,j=x/E*u.value),g(o)?a[l.value]=o[l.value]+j:a=o+j,T(a),D.stopPropagation(),D.preventDefault()},F=()=>{e.disabled||(s.value==="draging"&&(T(a,!0),n("drag-end")),s.value="")},O=D=>Jt(e.modelValue)&&typeof D=="number"?e.modelValue[D]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:y,onClick:q,onTouchStart:B,onTouchMove:V,onTouchEnd:F,...t.toRefs(e),barStyle:d,curValue:O,buttonIndex:l,containerClasses:f,markClassName:p,marksStyle:b,marksList:c,tickStyle:C}}}),t0={key:0,class:"fox-range-min"},n0={key:0,class:"fox-range-mark"},o0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],l0={key:0,class:"number"},a0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],r0={key:0,class:"number"},s0={key:1,class:"fox-range-max"};function i0(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",t0,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",n0,[(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",l0,t.toDisplayString(e.curValue(s)),1))],4))],42,o0)),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",r0,t.toDisplayString(e.curValue()),1))],4))],40,a0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",s0,t.toDisplayString(+e.max),1))],2)}const Pt=_(e0,[["render",i0]]),{create:c0,scope:d0}=Y("short-password"),u0=c0({components:{[ce.name]:ce,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(d0),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}}}),f0={class:"fox-short-password-title"},m0={class:"fox-short-password-subtitle"},p0={class:"fox-short-password-wrapper"},h0={key:0,class:"fox-short-password__item-icon"},g0={class:"fox-short-password__message"},y0={class:"fox-short-password--error"},k0={key:0,class:"fox-short-password--forget"};function b0(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",f0,t.toDisplayString(e.title),1),t.createElementVNode("view",m0,t.toDisplayString(e.desc),1),t.createElementVNode("div",p0,[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",h0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",g0,[t.createElementVNode("view",y0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",k0,[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=_(u0,[["render",b0]]);class S0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let C0=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 w0{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);$t(a)?a.then(r=>{r?l(r):o&&o()}).catch(()=>{}):a?l():o&&o()}else l()},{create:N0}=Y("progress"),B0=N0({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}}}),A0={class:"fox-progress"},$0={key:0,class:"fox-progress-text"};function T0(e,n,l,o,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",A0,[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",$0,[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 Ft=_(B0,[["render",T0]]),{componentName:V0,create:E0,scope:D0}=Y("uploader"),I0=E0({components:{[Ft.name]:Ft,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(D0),o=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[V0]:!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,b)=>{const C=new S0;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(b),n("start",N)},C.onProgress=(N,$)=>{p.status="uploading",p.message=l("uploading"),p.percentage=(N.loaded/N.total*100).toFixed(0),n("progress",{event:N,option:$,percentage:p.percentage})},C.onSuccess=(N,$)=>{p.status="success",p.message=l("success"),n("success",{responseText:N,option:$,fileItem:p}),n("update:fileList",o)},C.onFailure=(N,$)=>{p.status="error",p.message=l("error"),n("failure",{responseText:N,option:$,fileItem:p})};let A=new C0(C);e.autoUpload?A.upload():a.push(new Promise((N,$)=>{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(b=>b.upload())})},h=p=>{p.forEach((b,C)=>{const A=new FormData;for(const[$,T]of Object.entries(e.data))A.append($,T);A.append(e.name,b);const N=t.reactive(new w0);if(N.name=b.name,N.status="ready",N.type=b.type,N.formData=A,N.message=l("waitingUpload"),u(N,C),e.isPreview&&b.type.includes("image")){const $=new FileReader;$.onload=T=>{N.url=T.target.result,o.push(N)},$.readAsDataURL(b)}else o.push(N)})},y=p=>{const b=e.maximum*1,C=e.maximize*1,A=new Array;p=p.filter($=>$.size>C?(A.push($),!1):!0),A.length&&n("oversize",A);let N=p.length+o.length;return N>b&&p.splice(p.length-(N-b)),p},g=(p,b)=>{o.splice(b,1),n("delete",{file:p,fileList:o,index:b})},k=(p,b)=>{m(b),bs(e.beforeDelete,{args:[p,o],done:()=>g(p,b)})},S=p=>{if(e.disabled)return;const b=p.target;let{files:C}=b;e.beforeUpload?e.beforeUpload(C).then(A=>d(A)):d(C),n("change",{fileList:o,event:p}),e.clearInput&&i(b)},d=p=>{const b=y(new Array().slice.call(p));h(b)};return{onChange:S,onDelete:k,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:m,submit:f,renderInput:s}}}),q0={key:0,class:"fox-uploader__slot"},x0={key:0,class:"fox-uploader__preview-img"},M0={key:0,class:"fox-uploader__preview__progress"},z0={class:"fox-uploader__preview__progress__msg"},L0=["onClick"],P0=["onClick","src"],F0={key:3,class:"fox-uploader__preview-img__file"},R0=["onClick"],O0={class:"file__name_tips"},v0={class:"tips"},K0={key:1,class:"fox-uploader__preview-list"},U0=["onClick"],H0={class:"file__name_tips"};function j0(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",q0,[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",x0,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",M0,[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",z0,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,L0)):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,P0)):(t.openBlock(),t.createElementBlock("view",F0,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",O0,t.toDisplayString(h.name),1)],8,R0)])),t.createElementVNode("view",v0,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",K0,[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",H0,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,U0),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 Ll=_(I0,[["render",j0]]),W0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwd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wODA5NzYtLQ0K",{create:X0,scope:Q0}=Y("number-keyboard"),G0=X0({components:{[ce.name]:ce},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(Q0),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"},b=Array.isArray(d)?d:[d];return b.length===1&&(p={id:b[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 b=Array.isArray(p)?p:[p];return b.length>2&&(b=[b[0],b[1]]),b.length==2&&e.title&&e.type!="rightColumn"&&(b=[b[0]]),b.length===1?e.title&&e.type!="rightColumn"?d.push({id:b[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):d.push({id:0,type:"number"},{id:b[0],type:"custom"}):b.length===2&&d.push({id:b[0],type:"custom"},{id:0,type:"number"},{id:b[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"&&S(),d.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(d){d.stopPropagation()}function k(d){d.preventDefault(),a.value=void 0}function S(){n("update:visible",!1),n("close")}return{...o,delImg:W0,lockImg:Y0,clickKeyIndex:a,defaultKey:i,closeBoard:S,onTouchEnd:k,onTouchMove:g,onTouchstart:y,keysList:m,genCustomKeys:u,getBasicKeys:c,root:s,show:r}}}),Z0={ref:"root"},J0={class:"fox-number-keyboard"},_0={key:0,class:"fox-number-keyboard__header"},ek={class:"fox-number-keyboard__title"},tk={class:"fox-number-keyboard__body"},nk={class:"fox-number-keyboard__keys"},ok=["onTouchstart"],lk=["src"],ak=["src"],rk={key:0,class:"fox-number-keyboard__sidebar"},sk={class:"fox-key__wrapper"},ik=["src"];function ck(e,n,l,o,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",Z0,[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",J0,[e.title?(t.openBlock(),t.createElementBlock("div",_0,[t.createElementVNode("h3",ek,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",tk,[t.createElementVNode("div",nk,[(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,lk)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,ak)):t.createCommentVNode("",!0)],42,ok)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",rk,[t.createElementVNode("div",sk,[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,ik)],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 Pl=_(G0,[["render",ck]]),{componentName:dk,create:uk}=Y("swipe"),fk=uk({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(()=>({[dk]:!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)`})),k=p=>{u=p>0?"right":"left";let b=p;switch(u){case"left":c&&m===u?b=-i.value:b=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&m===u?b=r.value:b=Math.abs(p)>r.value?r.value:p;break}f.offset=b},S=He();return{classes:l,touchStyle:g,...{onTouchStart(p){e.disabled||S.start(p)},onTouchMove(p){e.disabled||(S.move(p),S.isHorizontal()&&(f.moving=!0,k(S.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}}}),mk={class:"fox-swipe__left",ref:"leftRef"},pk={class:"fox-swipe__content"},hk={class:"fox-swipe__right",ref:"rightRef"};function gk(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",mk,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",pk,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",hk,[t.renderSlot(e.$slots,"right")],512)],38)}const Rt=_(fk,[["render",gk]]),{componentName:yk,create:kk}=Y("action-sheet"),bk=kk({components:{[ce.name]:ce,Loading:ne.Loading},props:{...Le,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(()=>({[yk]:!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}}}),Sk={key:0,class:"fox-action-sheet__title"},Ck={key:1},wk={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Nk={key:1,class:"fox-action-sheet__menu"},Bk=["onClick"],Ak={key:1},$k={class:"fox-action-sheet__subdesc"};function Tk(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",Sk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Ck,[e.description?(t.openBlock(),t.createElementBlock("view",wk,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Nk,[(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",Ak,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",$k,t.toDisplayString(c[e.optionSubTag]),1)],14,Bk))),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=_(bk,[["render",Tk]]),{componentName:Vk,create:Ek}=Y("backtop"),Rl=Ek({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(()=>({[Vk]:!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 k(){var S=e.duration-Math.max(0,o.startTime-+new Date+e.duration),d=S*-o.scrollTop/e.duration+o.scrollTop;i(d),g=Ye(k),(S==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 k=[];if(typeof l.default=="function")k.push(l.default());else{const d=t.h(ne.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(d)}const S=t.h("div",{class:a.value,style:r.value,onClick:f},k);return g.push(S),g}}}),{componentName:Dk,create:Ik}=Y("drag"),qk=Ik({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(()=>({[Dk]:!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 k=o.screenWidth-o.elWidth-o.boundary.right;g>k?g=k:g<o.boundary.left?g=o.boundary.left:g=g<o.screenWidth/2?o.boundary.left:k,e.direction!="y"&&e.attract&&(g<o.screenWidth/2?Re(()=>{s(h)}):Re(()=>{i(h,k)})),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 xk(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 Ol=_(qk,[["render",xk]]),Mk={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}},zk=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Lk(e,n,l,o,a){return{props:{...Le,...Mk},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 $=r.beforeClose(N);$t($)?$.then(T=>{T&&(y(!1),c("closed",N))}):$===!0&&(y(!1),c("closed",N))}else y(!1),c("closed",N)},k=()=>{g("confirm")},S=()=>{g("cancel")},d=()=>{g("close")},p=(N,$)=>zk(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(r.tag,$)):t.h(N,$),b=()=>{const N=[];if(i.header){const T=i.header();N.push(T)}else{if(r.title){const T=t.h("view",{class:`${f}__header-title`},[r.title]);N.push(T)}if(r.showClose){const T={class:[`${f}__header-close-icon`],onClick:d},q=r.closeIcon??a,B=p(q,T);N.push(B)}}if(N.length===0)return null;const $={class:[`${f}__header`]};return t.h("view",$,N)},C=()=>{const N=[];if(i.default)N.push(i.default());else{const T={class:[`${f}__content`]};if(r.textAlign&&T.class.push(r.textAlign),typeof r.content=="string"){T.innerHTML=r.content;const q=t.h("view",T);N.push(q)}else if(typeof r.content=="function"){const q=t.h("view",T,[r.content()]);N.push(q)}else{const q=t.h("view",T,[r.content]);N.push(q)}}if(N.length===0)return null;const $={class:[`${f}__body`]};return t.h("view",$,N)},A=()=>{if(!r.showFooter)return null;const N=[];if(i.footer)N.push(i.footer());else if(r.plain){if(r.showCancelButton){const T={class:[`${f}__footer-button`,`${f}__footer-cancel`],style:{},onClick:S};r.cancelButtonClass&&T.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(T.style,r.cancleButtonStyle);const q=t.h("view",T,[r.cancelButtonText??m.cancelText.value]);N.push(q)}if(r.showConfirmButton){const T={class:[`${f}__footer-button`,`${f}__footer-confirm`],style:{},onClick:k};r.confirmButtonClass&&T.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(T.style,r.confirmButtonStyle);const q=t.h("view",T,[r.confirmButtonText??m.confirmText.value]);N.push(q)}}else{if(r.showCancelButton){const T={class:[`${f}__footer-button`,`${f}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:S};r.cancelButtonClass&&T.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(T.style,r.cancleButtonStyle);const q=t.h(o,T,{default:()=>[r.cancelButtonText??m.cancelText.value]});N.push(q)}if(r.showConfirmButton){const T={class:[`${f}__footer-button`,`${f}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};r.confirmButtonClass&&T.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(T.style,r.confirmButtonStyle);const q=t.h(o,T,{default:()=>[r.confirmButtonText??m.confirmText.value]});N.push(q)}}if(N.length===0)return null;const $={class:[`${f}__footer`,`${f}__footer--${r.footerDirection}`]};return t.h("view",$,N)};return()=>{const N=[],$=b();$&&N.push($);const T=C();T&&N.push(T);const q=A();q&&N.push(q);const B={class:{[`${f}`]:!0,[`${f}--plain`]:r.plain}},V=t.h("view",B,N),F=[`${f}__popup`];r.popClass&&F.push(r.popClass);const O={};r.width&&(O.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(O.height=typeof r.height=="number"?`${r.height}px`:r.height);const I={...me(r,Le),popClass:F.join(" "),style:O,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:r.position,onClickOverlay:d,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(l,I,{default:()=>V})}}}}const{componentName:Pk,create:Fk,scope:Rk}=Y("dialog"),Ss=Fk(Lk(Pk,Rk,ce,Me,ne.Close));class Ok{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 vk{options=new Ok;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(Ss,l)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Ot=function(e){return new vk(e)};Ot.install=e=>{e.use(Ss),e.config.globalProperties.$dialog=Ot};const{componentName:Kk,create:Uk,scope:Hk}=Y("pull-refresh"),jk=Uk({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(Hk),a=o(e,["pullingText","loosingText","loadingText"]),r=He(),s=t.ref(),i=vr(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),u=t.computed(()=>({[Kk]:!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=pe(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})},k=()=>c.status!=="loading"&&c.status!=="complete",S=()=>i.value==window?so()==0:i.value&&i.value.scrollTop==0,d=C=>{k()&&(S()?(r.start(C),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},p=C=>{if(k()){r.move(C);const{deltaY:A}=r;r.isVertical()&&A.value>0&&c.isPullRefresh&&(C.cancelable&&C.preventDefault(),g(y(A.value)))}},b=()=>{c.isPullRefresh&&k()&&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:b,getStyle:f,slots:l,getHeightStyle:h,getPullStatus:m}}}),Wk={class:"fox-pull-refresh-container-topbox-text"};function Yk(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",Wk,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 vl=_(jk,[["render",Yk]]),{create:Xk}=Y("notify"),Qk=Xk({components:{[ce.name]:ce},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 Gk(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=_(Qk,[["render",Gk]]),Ul={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let kt=[],vt=[];const Cs=e=>{if(e){const n=document.getElementById(e);vt=vt.filter(l=>l.id!==e),kt=kt.filter(l=>l!==e),n&&document.body.removeChild(n)}else kt.forEach(n=>{const l=document.getElementById(n);l&&document.body.removeChild(l)}),vt=[],kt=[]},Zk=e=>{const n=document.getElementById(e.id);if(n){const l=vt.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}},Kt=e=>{e.unmount=Cs;let n;if(e.id){if(n=e.id,kt.find(r=>r===e.id))return Zk(e)}else n=new Date().getTime()+"";e={...Ul,...e},e.id=n,kt.push(e.id),vt.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)},Ut=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Hl={text(e,n={}){return Ut(e),Kt({...n,msg:e})},primary(e,n={}){return Ut(e),Kt({...n,msg:e,type:"primary"})},success(e,n={}){return Ut(e),Kt({...n,msg:e,type:"success"})},danger(e,n={}){return Ut(e),Kt({...n,msg:e,type:"danger"})},warn(e,n={}){return Ut(e),Kt({...n,msg:e,type:"warning"})},hide(){Cs()},install(e){e.use(Kl)}},{create:Jk}=Y("toast"),_k=Jk({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()}}}}),eb={key:1,class:"fox-toast-title"},tb=["innerHTML"];function nb(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",eb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,tb)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const jl=_(_k,[["render",nb]]),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 bt=[],Ht=[];const ws=e=>{if(e){const n=document.getElementById(e);Ht=Ht.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)}),Ht=[],bt=[]},ob=e=>{const n=document.getElementById(e.id);if(n){const l=Ht.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),St}},jt=e=>{e.unmount=ws;let n;if(e.id){if(n=e.id,bt.find(a=>a===e.id))return ob(e)}else n=new Date().getTime()+"";e={...Wl,...e},e.id=n,bt.push(e.id),Ht.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),St},Un=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},St={text(e,n={}){return Un(e),jt({...n,type:"text",msg:e})},success(e,n={}){return Un(e),jt({icon:ne.Success,...n,msg:e,type:"success"})},fail(e,n={}){return Un(e),jt({icon:ne.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return Un(e),jt({icon:ne.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return jt({icon:ne.Loading,...n,msg:e,type:"loading"})},hide(e){ws(e)},install(e){e.use(jl),e.config.globalProperties.$toast=St}},{componentName:G2,create:lb}=Y("audio"),ab=lb({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,[Pt.name]:Pt},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 k=["webkitVisibilityState","visibilitychange"];try{for(let S=0;S<k.length;S++)document.addEventListener(k[S],()=>{document.hidden?o.value.pause():a.playing&&setTimeout(()=>{o.value.play()},200)})}catch(S){S.message}});const r=k=>{const S=o.value;e.autoplay&&S&&S.paused&&S.play(),a.second=S.duration,a.duration=g(S.duration),n("can-play",k)},s=k=>{a.currentTime=parseInt(k.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,o.value.currentTime=a.currentTime,n("fastBack",a.currentTime)},c=()=>{const k=o.value;a.playing?(k.pause(),a.handPlaying=!1):(k.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=k=>{a.currentDuration=g(k),a.percent=k/a.second*100},f=()=>{a.playing=!1,n("ended")},h=k=>{const S=o.value;S.currentTime=a.second*k/100,n("changeProgress",S.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,n("mute",a.hanMuted)},g=k=>{if(!k)return"00:00:00";let S=parseInt(k),d=Math.floor(S/3600),p=Math.floor((S-d*3600)/60),b=S-d*3600-p*60,C="";return C+=("0"+d.toString()).slice(-2)+":",C+=("0"+p.toString()).slice(-2)+":",C+=("0"+b.toString()).slice(-2),C};return t.watch(()=>a.currentTime,k=>{m(k)}),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}}}),rb={class:"fox-audio"},sb={key:0,class:"fox-audio__progress"},ib={class:"fox-audio__time"},cb={class:"fox-audio__bar"},db=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),ub={class:"fox-audio__time"},fb={key:1,class:"fox-audio__icon"},mb=["controls","src","preload","autoplay","loop","muted"];function pb(e,n,l,o,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",rb,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",sb,[t.createElementVNode("div",ib,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",cb,[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(()=>[db]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",ub,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",fb,[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,mb)])}const Yl=_(ab,[["render",pb]]),{componentName:Z2,create:hb,scope:gb}=Y("audio-operate"),yb=hb({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(gb),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}}}),kb={class:"fox-audio-operate"};function bb(e,n,l,o,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",kb,[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=_(yb,[["render",bb]]),{componentName:Sb,create:Cb}=Y("avatar"),wb=Cb({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(()=>({[Sb]:!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 k=0;k<g.length;k++)g[k]&&g[k].classList&&g[k].classList[0]=="fox-avatar"&&g[k].setAttribute("data-index",k+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 Nb(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 Wt=_(wb,[["render",Nb]]),{componentName:Bb,create:Ab}=Y("avatar-group"),$b=Ab({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(()=>({[Bb]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:a}),{classes:r,avatarGroupRef:o}}});function Tb(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=_($b,[["render",Tb]]);var Hn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(Hn||{});function Vb(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:Eb,create:Db}=Y("list"),Ns=document.documentElement.clientHeight||document.body.clientHeight||667,Ib=Db({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Ns},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,Ns)),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(()=>({[Eb]:!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($=>$.nodeType===1);const p=d[0];d.forEach(($,T)=>{if(!$)return;const q=Ee($),{height:B}=q,F=r.cachePositions[T+r.start].height-B;F&&(r.cachePositions[T+r.start].bottom-=F,r.cachePositions[T+r.start].height=B,r.cachePositions[T+r.start].dValue=F)});let b=0;p&&(b=r.start);const C=r.cachePositions.length;let A=r.cachePositions[b].dValue;r.cachePositions[b].dValue=0;for(let $=b+1;$<C;++$){const T=r.cachePositions[$];r.cachePositions[$].top=r.cachePositions[$-1].bottom,r.cachePositions[$].bottom=r.cachePositions[$].bottom-A,T.dValue!==0&&(A+=T.dValue,T.dValue=0)}const N=r.cachePositions[C-1].bottom;r.phantomHeight=N},g=(d=0)=>{let p=Vb(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},k=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,l.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},S=()=>{const d=l.value?.scrollTop,{originStartIndex:p}=r,b=g(d);b!==p&&(r.originStartIndex=b,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{k();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:S}}});function qb(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=_(Ib,[["render",qb]]),{componentName:xb,create:Mb}=Y("circleprogress"),zb=Mb({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(()=>({[xb]:!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 k={key:"",value:""};k.key=y,k.value=m[y],h.push(k)}),h});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:u,slotDefault:l,refRandomId:o}}}),Lb={viewBox:"0 0 100 100"},Pb=["id"],Fb=["offset","stop-color"],Rb=["d","stroke-width"],Ob=["d","stroke","stroke-linecap","stroke-width"],vb={class:"fox-circleprogress-text"},Kb={key:0};function Ub(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",Lb,[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,Fb))),128))],8,Pb)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Rb),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,Ob)])),t.createElementVNode("div",vb,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Kb,t.toDisplayString(e.progress)+"%",1))])],6)}const Zl=_(zb,[["render",Ub]]),{componentName:Hb,create:jb}=Y("noticebar"),Wb=jb({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(()=>({[Hb]:!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 $={};return e.color&&($.color=e.color),e.background&&($.background=e.background),e.direction=="vertical"&&($.height=`${e.height}px`),$}),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 $={};if(e.complexAm)$={transform:`translateY(${r.distance}px)`};else if(r.animate){let T=~~(e.height/e.speed/4);$={transition:`all ${T==0?~~(e.height/e.speed):T}s`,"margin-top":`-${e.height}px`}}return $});t.watch(()=>e.text,$=>{h()}),t.watch(()=>e.list,$=>{r.scrollList=[...$]});const h=$=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!a.value)return;const T=o.value.getBoundingClientRect().width,q=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?q>T:e.scrollable,r.isCanScroll?(r.wrapWidth=T,r.offsetWidth=q,r.duration=q/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=$=>{n("click",$)},g=$=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",$)},k=$=>{r.firstRound=!1,n("across-end",$),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},S=()=>{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 $=100;for(let T=0;T<$;T++)b(T,!(T<$-1))},e.standTime+100*e.speed)},b=($,T)=>{setTimeout(()=>{r.distance-=e.height/100,T&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},$*e.speed)},C=$=>{n("click",$)},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():S()},e.standTime)):h(e.text)}),t.watch(()=>l.default?l.default():[],$=>{e.direction==="vertical"&&l.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),N($))});const N=$=>{$&&$.length>0&&(r.scrollList=$[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:k,go:C,handleClickIcon:A,slots:l,toPxDesc:pe,wrapContentClass:c}}}),Yb={class:"fox-noticebar__page-lefticon"},Xb={ref:"wrap",class:"fox-noticebar__page-wrap"},Qb={class:"showNotica"},Gb=["onClick"];function Zb(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",Yb,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",Xb,[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",Qb,[(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,Gb))),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=_(Wb,[["render",Zb]]),Jb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0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AAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:J2,create:tS,scope:nS}=Y("empty"),oS={empty:Jb,error:_b,network:eS},lS=tS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=re.useFoxI18n(nS),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:oS[o.value];return{...l,imageUrl:i,imgStyle:r}}}),aS={class:"fox-empty"},rS=["src"],sS={key:1,class:"fox-empty-description"};function iS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",aS,[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,rS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",sS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const _l=_(lS,[["render",iS]]),{create:cS,scope:dS}=Y("video"),uS=cS({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(dS),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",an(f,1e3)))},i=()=>{const N=a.value,$=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=N,o.progressBar.progressElm=$,o.progressBar.pos=$.getBoundingClientRect(),o.videoSet.progress.width=Math.round($.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",an(f,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{y()}else o.videoElm.pause(),n("pause",o.videoElm)},u=N=>{var $=Math.floor(N/3600);$<10&&($="0"+$);var T=Math.floor(N%3600/60);T<10&&(T="0"+T);var q=Math.round(N%3600%60);q<10&&(q="0"+q);var B="";return $!=0?B=$+":"+T+":"+q:B=T+":"+q,B},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},k=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},S=()=>{},d=N=>{let T=N.targetTouches[0].pageX-o.progressBar.pos.left;T<=0&&(T=0),T>=o.videoSet.progress.width&&(T=o.videoSet.progress.width),o.videoSet.progress.current=T;let q=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&b(q,o.videoElm.duration)},p=N=>{let T=N.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=T;let q=T/o.videoSet.progress.width;o.videoElm.duration&&b(q,o.videoElm.duration)},b=(N,$)=>{o.videoElm.currentTime=Math.floor(N*$)},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:k,touchSlidSrart:S,touchSlidMove:d,touchSlidEnd:p,retry:C,fullScreen:A,t:l}}}),fS={class:"fox-video",ref:"videocon"},mS=["muted","autoplay","loop","poster","controls","preload"],pS=["src","type"],hS={class:"fox-video-controller__now"},gS={class:"fox-video-controller__progress"},yS={class:"fox-video-controller__progress-value",ref:"progressBar"},kS=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)],bS={class:"fox-video-controller__played",ref:"playedBar"},SS={class:"fox-video-controller__total"},CS={class:"fox-video-error"},wS={class:"fox-video-error-tip"};function NS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",fS,[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,pS)],40,mS),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",hS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",gS,[t.createElementVNode("div",yS,[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"]))},kS,36),t.createElementVNode("div",bS,null,512)],512)]),t.createElementVNode("div",SS,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",CS,[t.createElementVNode("p",wS,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 Ct=_(uS,[["render",NS]]),{create:BS,componentName:AS}=Y("steps"),ea=BS({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=AS;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:$S,componentName:TS}=Y("step"),VS=$S({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=TS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(l),index:o,classes:s,handleClickStep:i}}}),ES={class:"fox-step-head"},DS=t.createElementVNode("view",{class:"fox-step-line"},null,-1),IS={class:"fox-step-icon-inner"},qS={key:1,class:"fox-step-inner"},xS={class:"fox-step-main"},MS={class:"fox-step-title"},zS={key:0},LS={key:0,class:"fox-step-content"},PS=["innerHTML"];function FS(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",ES,[DS,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",IS,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",qS,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",xS,[t.createElementVNode("view",MS,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",zS,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",LS,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,PS)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ta=_(VS,[["render",FS]]),{create:RS,componentName:na}=Y("swiper"),OS=RS({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 E=na;return{[`${E}-inner`]:!0,[`${E}-vertical`]:i.value}}),u=t.computed(()=>{const E=na;return{[`${E}-pagination`]:!0,[`${E}-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),k=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),S=t.computed(()=>(a.active+h.value)%h.value),d=()=>{let E=0;E=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${E}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},p=E=>{let j=[];const v=a.childrenVNode.length;let X=l?.default?.();if(X=X.filter(G=>G.children&&Array.isArray(G.children)),X.forEach(G=>{j=j.concat(G.children)}),!v)a.childrenVNode=j.slice(),E.proxy&&a.children.push(E.proxy);else if(v>j.length)a.children=a.children.filter(G=>E.proxy!==G);else if(v<j.length){for(let G=0;G<v;G++)if(j[G].key!==a.childrenVNode[G].key){E.proxy&&a.children.splice(G,0,E.proxy),E.vnode&&a.childrenVNode.splice(G,0,E.vnode);break}v!==j.length&&(E.proxy&&a.children.push(E.proxy),E.vnode&&a.childrenVNode.push(E.vnode))}else a.childrenVNode=j.slice(),E.proxy&&a.children.push(E.proxy)},b=(E,j=0)=>{let v=E*y.value;e.loop||(v=Math.min(v,-k.value));let X=j-v;return e.loop||(X=ve(X,k.value,0)),X},C=E=>{const{active:j}=a;return E?e.loop?ve(j+E,-1,h.value):ve(j+E,0,h.value-1):j},A=({pace:E=0,offset:j=0,isEmit:v=!1})=>{if(h.value<=1)return;const{active:X}=a,G=C(E),M=b(G,j);if(e.loop){if(a.children[0]&&M!==k.value){const L=M<k.value;a.children[0].setOffset(L?g.value:0)}if(a.children[h.value-1]&&M!==0){const L=M>0;a.children[h.value-1].setOffset(L?-g.value:0)}}a.active=G,a.offset=M,v&&X!==a.active&&n("change",S.value),d()},N=()=>{a.moving=!0,a.active<=-1&&A({pace:h.value}),a.active>=h.value&&A({pace:-h.value})},$=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},T=E=>{N(),r.reset(),Ye(()=>{Ye(()=>{a.moving=!1,A({pace:E,isEmit:!0})})})},q=()=>{T(-1)},B=()=>{T(1)},V=E=>{N(),r.reset(),Ye(()=>{a.moving=!1;let j;e.loop&&h.value===E?j=a.active===0?0:E:j=E%h.value,A({pace:j-a.active,isEmit:!0})})},F=()=>{e.autoPlay<=0||h.value<=1||($(),a.autoplayTimer=setTimeout(()=>{B(),F()},Number(e.autoPlay)))},O=(E=+e.initPage)=>{$(),a.rect=o.value.getBoundingClientRect(),E=Math.min(h.value-1,E),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=E,a.offset=b(a.active),a.moving=!0,d(),F()},D=E=>{e.isPreventDefault&&E.preventDefault(),e.isStopPropagation&&E.stopPropagation(),e.touchable&&(r.start(E),a.touchTime=Date.now(),$(),N())},I=E=>{e.touchable&&a.moving&&(r.move(E),f.value&&A({offset:m.value}))},x=E=>{if(!e.touchable||!a.moving)return;const j=m.value/(Date.now()-a.touchTime);if((Math.abs(j)>.3||Math.abs(m.value)>+(y.value/2).toFixed(2))&&f.value){let X=0;const G=i.value?r.offsetY.value:r.offsetX.value;e.loop?X=G>0?m.value>0?-1:1:0:X=-Math[m.value>0?"ceil":"floor"](m.value/y.value),A({pace:X,isEmit:!0})}else m.value&&A({pace:0});a.moving=!1,d(),F()};return t.provide("parent",{props:e,size:y,relation:p}),Ve({prev:q,next:B,to:V}),t.onDeactivated(()=>{$()}),t.onBeforeUnmount(()=>{$()}),t.watch(()=>e.initPage,E=>{t.nextTick(()=>{O(Number(E))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{O()})}),t.watch(()=>e.autoPlay,E=>{E>0?F():$()}),{state:a,classes:s,classesInner:c,classesPagination:u,container:o,activePagination:S,onTouchStart:D,onTouchMove:I,onTouchEnd:x}}});function vS(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 wt=_(OS,[["render",vS]]),{create:KS,componentName:US}=Y("swiper-item"),HS=KS({setup(e,{slots:n}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),a=t.computed(()=>({[US]:!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 jS(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 Nt=_(HS,[["render",jS]]),Bs={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:WS}=Y("image-preview-item"),YS=WS({props:{...Bs,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:{[Ct.name]:Ct,[Nt.name]:Nt},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:q,rootHeight:B}=e,V=B/q;return l.imageRatio>V}),r=t.computed(()=>{const q=e.image;if(q&&q.src){const{scale:B,moveX:V,moveY:F,moving:O,zooming:D}=l,I={transitionDuration:D||O?"0s":".3s"};if(B!==1){const x=V/B,E=F/B;I.transform=`scale(${B}, ${B}) translate(${x}px, ${E}px)`}return I}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:q,rootHeight:B}=e,V=a.value?B/l.imageRatio:q;return Math.max(0,(l.scale*V-q)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:q,rootHeight:B}=e,V=a.value?B:q*l.imageRatio;return Math.max(0,(l.scale*V-B)/2)}return 0}),c=q=>{const{naturalWidth:B,naturalHeight:V}=q.target;l.imageRatio=V/B},u=()=>{m(1),l.moveX=0,l.moveY=0},m=q=>{q=ve(q,+e.minZoom,+e.maxZoom+1),q!==l.scale&&(l.scale=q,n("scale",{scale:q,index:e.initNo}))},f=()=>{const q=l.scale>1?1:2;m(q),l.moveX=0,l.moveY=0},h=q=>Math.sqrt((q[0].clientX-q[1].clientX)**2+(q[0].clientY-q[1].clientY)**2);let y,g,k,S,d,p,b;const C=q=>{const{touches:B}=q,{offsetX:V}=o;o.start(q),b=B.length,y=l.moveX,g=l.moveY,p=Date.now(),l.moving=b===1&&l.scale!==1,l.zooming=b===2&&!V.value,l.zooming&&(k=l.scale,S=h(q.touches))},A=q=>{const{touches:B}=q;if(o.move(q),(l.moving||l.zooming)&&ro(q,!0),l.moving){const{deltaX:V,deltaY:F}=o,O=V.value+y,D=F.value+g;l.moveX=ve(O,-s.value,s.value),l.moveY=ve(D,-i.value,i.value)}if(l.zooming&&B.length===2){const V=h(B),F=k*V/S;m(F)}},N=()=>{if(b==1&&e.video&&e.video.source||b>1)return;const{offsetX:q,offsetY:B}=o,V=Date.now()-p,F=250,O=5;q.value<O&&B.value<O&&V<F&&(d?(clearTimeout(d),d=null,f()):d=setTimeout(()=>{e.contentClose&&n("close"),d=null},F))},$=q=>{let B=!1;(l.moving||l.zooming)&&(B=!0,l.moving&&y===l.moveX&&g===l.moveY&&(B=!1),q.touches.length||(l.zooming&&(l.moveX=ve(l.moveX,-s.value,s.value),l.moveY=ve(l.moveY,-i.value,i.value),l.zooming=!1),l.moving=!1,y=0,g=0,k=1,l.scale<1&&u(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),ro(q,B),N(),o.reset()},T=()=>{n("close")};return t.watch(()=>e.initNo,u),t.watch(()=>e.show,q=>{q||u()}),{...t.toRefs(l),onTouchStart:C,onTouchMove:A,onTouchEnd:$,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:T}}}),XS=["src"];function QS(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,XS)):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 GS=_(YS,[["render",QS]]),{create:ZS}=Y("image-preview"),JS=ZS({props:{...Bs,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:GS,CircleClose:ne.CircleClose,[ce.name]:ce,[wt.name]:wt},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(()=>Jt(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}}}),_S={class:"fox-image-preview",ref:"swipeRef"},e1={key:0,class:"fox-image-preview-index"};function t1(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",_S,[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",e1,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 As=_(JS,[["render",t1]]);class n1{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 o1{options=new n1;constructor(n){const l=Object.assign(this.options,n),{unmount:o}=si(l,{name:"image-preview",components:[ce,Ct,wt,Nt,at],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{o()})},t.h(As,l))}})})}}const jn=e=>new o1(e);jn.install=e=>{e.use(As)};function l1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}const{componentName:eA,create:a1}=Y("countup"),r1=a1({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=T=>{T&&o.value.push(T)},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,(T,q)=>{f(),S(0)}),t.watch(()=>e.machinePrizeLevel,(T,q)=>{r.prizeLevelTrun=T}),t.watch(()=>e.initNum,(T,q)=>{r.current=T,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(T,q)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?u!="machine"&&S():(k(),setTimeout(()=>{r.valFlag=!0},300)))},f=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(T,q,B)=>{const V=(T.toString().split(".")[1]||"").length,F=(q.toString().split(".")[1]||"").length,O=Math.pow(10,Math.max(V,F));return B=="-"?Number((T*O-q*O).toFixed(0))/O:Number((T*O+q*O).toFixed(0))/O},y=T=>{let{num_total_len:q,pointNum:B,initDigit1:V,initDigit2:F,sortFlag:O}=r,D=O=="add"||O=="equal"?String(F)[T-(q-B)]:10-Number(String(F)[T-(q-B)]),I=O=="add"||O=="equal"?String(V)[T]:10-Number(String(V)[T]),x=T>q-B-1?-D*100+"%":T<=String(V).length-1?-I*100+"%":0;return x=="-1000%"&&(x=0),x},g=T=>{let{num_total_len:q,pointNum:B,initDigit1:V,initDigit2:F,sortFlag:O}=r,D=String(F)[T-(q-B)];return T>q-B-1?D||0:T<=String(V).length-1?String(V)[T]:0},k=()=>{let{endNum:T,initNum:q,speed:B,toFixed:V}=e,F=setInterval(()=>{if(q>T)if(r.current<=T||r.current<=B)r.current=T.toFixed(V),clearInterval(F),n("scroll-end"),r.valFlag=!1;else{let O=parseFloat(String(r.current))-parseFloat(String(B));r.current=O.toFixed(V)}else if(r.current>=T)r.current=T.toFixed(V),clearInterval(F),n("scroll-end"),r.valFlag=!1;else{let O=parseFloat(String(r.current))+parseFloat(String(B));r.current=O.toFixed(V)}},e.during)},S=T=>{let{initNum:q,endNum:B,toFixed:V,customBgImg:F}=e;F&&(q=e.customChangeNum);let O,D,I,x;q!=0?(V!=0&&(q=Number(q.toFixed(V))),String(q).indexOf(".")>-1?(O=String(q).split(".")[0].length,D=String(q).split(".")[1].length):(O=String(q).length,D=0)):(O=1,D=0),B!=0?(V!=0&&(B=Number(B.toFixed(V))),String(B).indexOf(".")>-1?(I=String(B).split(".")[0].length,x=String(B).split(".")[1].length):(I=String(B).length,x=0)):(I=1,x=0);let E=O>=I?O:I,j=D>=x?D:x;r.num_total_len=E+j,r.pointNum=j,q>B?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(q,B,"-"),r.numberVal=Number(String(q))):q<B?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(B,q,"-"),r.numberVal=Number(String(B))):r.sortFlag="equal";var v=1;for(let G=0;G<r.pointNum;G++)v*=10;var X=r.numberVal*v;if(r.relNum=X,V!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(X).length),String(q).indexOf(".")>-1){let G=String(q).split(".");r.initDigit1=Number(G[0]),r.initDigit2=Number(G[1])}else r.initDigit1=q,r.initDigit2=0;i&&!F?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let G=o.value[r.num_total_len-1];d(G)}):T!==0&&C()},d=T=>{f();var q=1;r.pointNum!=0&&(q=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(T),r.totalCount=h(r.totalCount,q,"-"),r.totalCount<=0&&(f(),n("scroll-end"),r.valFlag=!1)},e.during)},p=T=>{let q=T.getAttribute("turn-number"),B;if(r.sortFlag=="add"?B=parseInt(String(q))+1:B=parseInt(String(q))-1>=0?parseInt(String(q))-1:9,T.setAttribute("turn-number",String(B)),(T.style.transition=="none 0s ease 0s"||B==1||!T.style.transition)&&(T.style.transition=`all linear ${e.during}ms`),B==10||r.sortFlag=="reduce"&&B==0){var V=null;T.style.top=`-${r.sortFlag=="add"?B*100:(10-B)*100}%`,T.setAttribute("turn-number","0"),V=setTimeout(()=>{V&&clearTimeout(V),T.style.transition="none",T.style.top="0",b(T,B)},.975*e.during)}else T.style.top=`-${r.sortFlag=="add"?B*100:(10-B)*100}%`;T.style.top=="-100%"&&r.sortFlag=="reduce"&&p(T.previousSibling)},b=(T,q)=>{setTimeout(()=>{q==10&&T.previousSibling&&p(T.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 T=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(T)==-1&&r.notPrize.push(T)}};l1({machineLuck:()=>{const T=e.machineTurnMore<0?0:e.machineTurnMore;let q=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&A();for(let B=0;B<e.machineNum;B++)setTimeout(()=>{let V=q*(B+1+parseFloat(String(T)));r.prizeYPrev.length!=0&&(r.prizeY[B]=r.prizeYPrev[B]);let F=r.prizeYPrev[B]?r.prizeYPrev[B]:0,O=V+F+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(q-F);r.prizeLevelTrun<0&&(O+=e.numHeight*r.notPrize[B]),$(B,O,F)},500*B)}});const $=(T,q,B)=>{let V=setInterval(()=>{if(B<=q)B+=10,r.prizeY[T]=parseFloat(String(B));else if(clearInterval(V),V=null,r.finshMachine+=1,r.prizeY[T]=q,r.finshMachine==e.machineNum){let F=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(D=>{let I=D;for(;I>F;)I-=F;r.prizeYPrev.push(I)}),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}}}),s1={class:"fox-countup"},i1=["turn-number"];function c1(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",s1,[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,i1))),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=_(r1,[["render",c1]]),d1=e=>{if(!e)return Date.now();let n=Number(e),l=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:u1,create:f1}=Y("countdown"),m1=f1({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(()=>({[u1]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-d1(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 k=y;let S={d:0,h:0,m:0,s:0,ms:0};const d=1e3,p=60*d,b=60*p,C=24*b;return k>0&&(S.d=k>=d?Math.floor(k/C):0,S.h=Math.floor(k%C/b),S.m=Math.floor(k%b/p),S.s=Math.floor(k%p/d),S.ms=Math.floor(k%d)),g=="custom"?S:u({...S})},u=y=>{let{d:g,h:k,m:S,s:d,ms:p}=y,b=e.format;if(b.includes("DD")?b=b.replace("DD",nt(g)):k+=Number(g)*24,b.includes("HH")?b=b.replace("HH",nt(k)):S+=Number(k)*60,b.includes("mm")?b=b.replace("mm",nt(S)):d+=Number(S)*60,b.includes("ss")?b=b.replace("ss",nt(d)):p+=Number(d)*1e3,b.includes("S")){const C=nt(p,3).toString();b.includes("SSS")?b=b.replace("SSS",C):b.includes("SS")?b=b.replace("SS",C.slice(0,2)):b.includes("S")&&(b=b.replace("SS",C.slice(0,1)))}return b},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}}}),p1=["innerHTML"];function h1(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,p1))],2)}const la=_(m1,[["render",h1]]),{create:g1}=Y("badge"),y1=g1({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}}}),k1={class:"fox-badge"},b1=["textContent"];function S1(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",k1,[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,b1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const aa=_(y1,[["render",S1]]),{componentName:C1,create:w1}=Y("tag"),N1=w1({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=C1;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 B1(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 Yt=_(N1,[["render",B1]]),{create:A1}=Y("popover"),$1=A1({components:{FoxPopup:ce},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",b=e.location,C=b.split("-")[0];return`${p} ${p}-${C} ${p}--${b}`}),c=t.computed(()=>{const p={},{bgColor:b,arrowOffset:C,location:A}=e,N=A.split("-")[0],$=A.split("-")[1],T=16;return b&&(p[`border${u(N)}Color`]=b),e.arrowOffset!=0&&(["bottom","top"].includes(N)&&($||(p.left=`calc(50% + ${C}px)`),$=="start"&&(p.left=`${T+C}px`),$=="end"&&(p.right=`${T-C}px`)),["left","right"].includes(N)&&($||(p.top=`calc(50% - ${C}px)`),$=="start"&&(p.top=`${T-C}px`),$=="end"&&(p.bottom=`${T+C}px`))),p}),u=p=>(p=p.toLowerCase(),p=p.replace(/\b\w+\b/g,b=>b.substring(0,1).toUpperCase()+b.substring(1)),p),m=t.computed(()=>{let p={};if(!r.value||!s.value)return{};const b=s.value.width,C=s.value.height,{width:A,height:N,left:$,top:T}=r.value,{location:q,offset:B}=e,V=q.split("-")[0],F=q.split("-")[1];let O=0,D=0;if(Jt(B)&&B.length==2&&(O+=Number(B[1]),D+=Number(B[0])),A){if(["bottom","top"].includes(V)){const I=V=="bottom"?N+O:-(C+O);p.top=`${T+I}px`,F||(p.left=`${-(b-A)/2+$+D}px`),F=="start"&&(p.left=`${$+D}px`),F=="end"&&(p.left=`${r.value.right+D}px`)}if(["left","right"].includes(V)){const I=V=="left"?-(b+O):A+O;p.left=`${$+I}px`,F||(p.top=`${T-C/2+N/2-4+D}px`),F=="start"&&(p.top=`${T+D}px`),F=="end"&&(p.top=`${T+N+D}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")},k=()=>{n("update:visible",!1),n("close")},S=(p,b)=>{!p.disabled&&n("choose",p,b),e.closeOnClickAction&&k()},d=p=>{const b=l.value,C=o.value;let A=b&&!b.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&&k()};return{showPopup:a,openPopover:g,popoverArrow:i,closePopover:k,chooseItem:S,popoverRef:l,popoverContentRef:o,getRootPosition:m,customStyle:f,popoverArrowStyle:c,renderIcon:cr}}}),T1={ref:"popoverContentRef",class:"fox-popover-content-group"},V1=["onClick"],E1={class:"fox-popover-menu-item-name"};function D1(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",T1,[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",E1,t.toDisplayString(i.name),1)],10,V1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Xt=_($1,[["render",D1]]),I1=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:q1}=Y("skeleton"),x1=q1(I1({[Wt.name]:Wt})),M1={key:0},z1={key:1,class:"fox-skeleton"},L1={key:0,class:"fox-skeleton-animation"},P1={class:"fox-skeleton-content"};function F1(e,n,l,o,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",z1,[e.animated?(t.openBlock(),t.createElementBlock("view",L1)):t.createCommentVNode("",!0),t.createElementVNode("view",P1,[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",M1,[t.renderSlot(e.$slots,"default")]))}const ra=_(x1,[["render",F1]]),{create:R1,componentName:O1}=Y("collapse"),v1=R1({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(()=>({[O1]:!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 K1(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=_(v1,[["render",K1]]),{create:U1,componentName:H1}=Y("collapse-item"),j1=U1({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=H1;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}}}),W1={class:"fox-collapse-item__title-main"},Y1={class:"fox-collapse-item__title-main-value"},X1=["innerHTML"],Q1={key:2,class:"fox-collapse-item__title-label"},G1={key:0,class:"fox-collapse-item__title-sub"},Z1=["innerHTML"],J1={key:0,class:"fox-collapse__item-extraWrapper"},_1={class:"fox-collapse__item-extraWrapper__extraRender"},eC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function tC(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",W1,[t.createElementVNode("view",Y1,[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,X1)),e.label?(t.openBlock(),t.createElementBlock("view",Q1,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",G1,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,Z1)),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",J1,[t.createElementVNode("div",_1,[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",eC,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const ia=_(j1,[["render",tC]]),nC=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:oC,create:lC,scope:aC}=Y("table"),rC=lC({components:{RenderColumn:nC,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(aC),a=t.reactive({curData:e.data}),r=t.computed(()=>({[oC]:!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(k=>k.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}}}),sC={class:"fox-table__main__head"},iC={class:"fox-table__main__head__tr"},cC=["onClick"],dC={class:"fox-table__main__body"},uC={key:1},fC={key:0,class:"fox-table__nodata"},mC={key:0,class:"fox-table__nodata__text"},pC={key:1,class:"fox-table__summary"},hC=["innerHTML"];function gC(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",sC,[t.createElementVNode("view",iC,[(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,cC))),128))])]),t.createElementVNode("view",dC,[(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",uC,t.toDisplayString(c[u]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",fC,[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",mC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",pC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,hC)])):t.createCommentVNode("",!0)],2)}const ca=_(rC,[["render",gC]]),{componentName:yC,create:kC}=Y("ellipsis"),bC=kC({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(()=>({[yC]:!0}));t.watch(()=>e.content,(k,S)=>{k!=S&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!l.value)return;const k=window.getComputedStyle(l.value);o=document.createElement("div"),Array.prototype.slice.apply(k).forEach(p=>{o.style.setProperty(p,k.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(k.lineHeight==="normal"?e.lineHeight:k.lineHeight);a=Math.floor(d*(Number(e.rows)+.5)+h(k.paddingTop)+h(k.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 k=e.content.length,S=Math.floor((0+k)/2),d=e.direction==="middle"?f([0,S],[S,k]):m(0,k);r.value=d,document.body.removeChild(o)}},m=(k,S)=>{const d=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(S-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(S,p)};const b=Math.round((k+S)/2);return e.direction==="end"?o.innerText=e.content.slice(0,b)+e.symbol+d:o.innerText=d+e.symbol+e.content.slice(b,p),o.offsetHeight<=a?e.direction==="end"?m(b,S):m(k,b):e.direction==="end"?m(k,b):m(b,S)},f=(k,S)=>{const d=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(k[1]-k[0]<=1&&S[1]-S[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(S[1],p)};const b=Math.floor((k[0]+k[1])/2),C=Math.ceil((S[0]+S[1])/2);return o.innerText=e.content.slice(0,b)+e.symbol+d+e.symbol+e.content.slice(C,p),o.offsetHeight<=a?f([b,k[1]],[S[0],C]):f([k[0],b],[C,S[1]])},h=k=>{if(!k)return 0;const S=k.match(/^\d*(\.\d*)?/);return S?Number(S[0]):0},y=k=>{k==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}}}),SC={key:0},CC={key:1},wC={key:2};function NC(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",SC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",CC,[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",wC,[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=_(bC,[["render",NC]]),{componentName:BC,create:AC}=Y("animate"),$C=AC({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,[`${BC}-${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}}}),TC={class:"fox-animate"};function VC(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",TC,[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=_($C,[["render",VC]]),{componentName:EC,create:DC}=Y("watermark"),IC=DC({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:k,fontSize:S,fontFamily:d}=e,p=()=>{const C=document.createElement("canvas"),A=window.devicePixelRatio,N=C.getContext("2d"),$=`${(a+s)*A}px`,T=`${(r+i)*A}px`,q=s*A,B=i*A;if(C.setAttribute("width",$),C.setAttribute("height",T),N){if(u){N.translate(q/2,B/2),N.rotate(Math.PI/180*Number(c));const V=new Image;V.crossOrigin="anonymous",V.referrerPolicy="no-referrer",V.src=u,V.onload=()=>{N.drawImage(V,-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(q/2,B/2),N.rotate(Math.PI/180*Number(c));const V=Number(S)*A;N.font=`${y} normal ${g} ${V}px/${B}px ${d}`,N.fillStyle=k,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,k,S,d],()=>{p()});const b=t.computed(()=>{const C=EC;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:b}}});function qC(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=_(IC,[["render",qC]]);function xC(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:MC,create:zC}=Y("trend-arrow"),LC=zC({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(()=>({[MC]:!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?"+":"-":""}${xC(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 PC(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=_(LC,[["render",PC]]),{create:FC}=Y("tour"),RC=FC({components:{[Xt.name]:Xt,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:k,top:S}=o.value,d=[k+y/2,S+g/2],p=Number(f||y),b=Number(h||g);return{width:`${p+ +m[1]*2}px`,height:`${b+ +m[0]*2}px`,top:`${d[1]-b/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}}}),OC={key:0,class:"fox-tour-content"},vC={key:0,class:"fox-tour-content-top"},KC={class:"fox-tour-content-inner"},UC={class:"fox-tour-content-bottom"},HC={class:"fox-tour-content-bottom-init"},jC={class:"fox-tour-content-bottom-operate"},WC={key:1,class:"fox-tour-content fox-tour-content-tile"},YC={class:"fox-tour-content-inner"};function XC(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",OC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",vC,[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",KC,t.toDisplayString(c.content),1),t.createElementVNode("div",UC,[t.createElementVNode("div",HC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",jC,[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",WC,[t.createElementVNode("div",YC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const pa=_(RC,[["render",XC]]),{componentName:tA,create:QC,scope:GC}=Y("address"),ZC=QC({components:{Location:ne.Location,Location2:ne.Location2,Check:ne.Check,Close:ne.Close,Left:ne.Left,[ce.name]:ce,[Lt.name]:Lt},inheritAttrs:!1,props:{...Le,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(GC),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=I=>{if(!Array.isArray(I))throw new TypeError("params muse be array.");if(!I.length)return[];I.forEach(E=>{if(!E.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const x=[];return I=I.sort((E,j)=>E.title.localeCompare(j.title)),I.forEach(E=>{const j=x.findIndex(v=>v.title===E.title);j<=-1?x.push({title:E.title,list:[].concat(E)}):x[j].list.push(E)}),x};let g=t.ref([]),k=t.reactive({});const S=t.ref("self"),d=t.ref(20),p=()=>{const I=e.modelValue,x=I.length;if(x>0){if(i.value=x-1,h.value.length==0){i.value=0;return}for(let E=0;E<x;E++){let j=[];switch(E){case 0:j=e.province;break;case 1:j=e.city;break;case 2:j=e.country;break;default:j=e.town}g.value[E]=j.filter(v=>v.id==I[E])[0]}C()}},b=(I,x)=>I&&I.name||i.value<x&&I?I.name:e.columnsPlaceholder[x]||l("select"),C=()=>{$(),t.nextTick(()=>{const I=a.value&&a.value.getElementsByClassName("active")[0];if(I){const x=I.offsetLeft;d.value=x||20}})},A=I=>{const x=i.value;c.value=i.value;const E={custom:u.value[x]};g.value[x]=I;for(let j=x+2;j<4;j++)g.value.splice(j,1);x<3?(i.value=x+1,C(),E.next=u.value[i.value],E.value=I,n("change",E)):(B(),n("update:modelValue"))},N=(I,x)=>{c.value=i.value,b(I,x)&&(i.value=x,C())},$=()=>{const I=m.value,x=c.value,E=f.value[i.value];I?.scrollTop&&(f.value[x]=I?.scrollTop),t.nextTick(()=>{I?.scrollTo({top:E,behavior:"auto"})})},T=I=>{const x=e.existAddress;let E={};x.forEach(j=>{j&&j.selectedAddress&&(E=j),j.selectedAddress=!1}),I.selectedAddress=!0,k=I,n("selected",E,I,x),B()},q=()=>{g.value=[],i.value=0,C()},B=(I="self")=>{S.value=I=="cross"?"cross":"self",r.value=!1},V=()=>{S.value="mask"},F=()=>{const I={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},x={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(E=>{const j=g.value[E];I.addressIdStr+=`${E?"_":""}${j&&j.id||0}`,I.addressStr+=j&&j.name||""}),x.data=I):x.data=k,q(),S.value=="self"?n("close",x):n("close-mask",{closeWay:S}),n("update:visible",!1)},O=()=>{const I=s.value;s.value=I=="exist"?"custom":"exist",q(),n("switch-module",{type:s.value})},D=(I,x)=>{A(x)};return t.watch(()=>e.visible,I=>{r.value=I}),t.watch(()=>r.value,I=>{I&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:u,selectedRegion:g,switchModule:O,closeWay:S,close:F,getTabName:b,nextAreaList:A,regionLine:o,tabRegion:a,lineDistance:d,changeRegionTab:N,selectedExist:T,clickOverlay:V,handClose:B,handleElevatorItem:D,initCustomSelected:p,...t.toRefs(e),t:l,regionList:h,transformData:y,scrollDom:m}}}),JC={class:"fox-address"},_C={class:"fox-address__header"},ew={class:"fox-address__header__title"},tw={key:0,class:"fox-address__custom"},nw={class:"fox-address__region",ref:"tabRegion"},ow=["onClick"],lw={key:0,class:"active fox-address__region-item"},aw={key:0,class:"fox-address__detail"},rw={class:"fox-address__detail-list",ref:"scrollDom"},sw=["onClick"],iw={key:1,class:"fox-address__elevator-group"},cw={key:1,class:"fox-address__exist"},dw={class:"fox-address__exist-group"},uw={class:"fox-address__exist-group-list"},fw=["onClick"],mw={class:"fox-address__exist-item-info"},pw={key:0,class:"fox-address__exist-item-info-name"},hw={key:1,class:"fox-address__exist-item-info-phone"},gw={class:"fox-address__exist-item-info-bottom"},yw={class:"fox-address__exist-choose-btn"};function kw(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",JC,[t.createElementVNode("view",_C,[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",ew,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",tw,[t.createElementVNode("view",nw,[(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,ow))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",lw,[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",aw,[t.createElementVNode("ul",rw,[(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,sw))),128))],512)])):(t.openBlock(),t.createElementBlock("view",iw,[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",cw,[t.createElementVNode("div",dw,[t.createElementVNode("ul",uw,[(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",mw,[h.name?(t.openBlock(),t.createElementBlock("div",pw,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",hw,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",gw,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,fw))),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",yw,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=_(ZC,[["render",kw]]),{componentName:bw,create:Sw}=Y("barrage"),Cw=Sw({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(()=>({[bw]:!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"?(k(),m.value=0,g("hidden")):document.visibilityState==="visible"&&y()})}),t.onUnmounted(()=>{i.value=[],k()});const y=()=>{h.value=a.value.offsetWidth,l&&g("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),d()},300)},g=b=>{let A=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const N=[];A&&Array.from(A).forEach($=>{b=="init"?($.style.opacity="0",N.push($)):($.classList="",$.style={})}),b=="init"&&(i.value=N)},k=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,b=>{e.danmu.length>0&&(i.value=[...b])});const S=b=>{const C=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,b):i.value.splice(C,0,b)},d=()=>{k(),s=setTimeout(()=>{p()},e.frequency)},p=()=>{const b=e.loop?m.value%i.value.length:m.value;let C=document.createElement("view");l&&typeof i.value[b]=="object"?(C=i.value[b],C?.classList?.add("fox-barrage__item")):(C.innerHTML=i.value[b],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=b%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:S}}});function ww(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=_(Cw,[["render",ww]]),{componentName:Nw,create:Bw,scope:Aw}=Y("signature"),$w=Bw({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(Aw),o=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[Nw]:!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 b=i.isSupportTouch?p.touches[0]:p;n("signing",b);let C=a.value.getBoundingClientRect(),A=b.clientX-C.left,N=b.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")},k=()=>{d(a.value)},S=p=>{if(!p)return!0;var b=document.createElement("canvas");return b.width=p.width,b.height=p.height,p?.toDataURL()==b.toDataURL()},d=p=>{let b;switch(e.type){case"png":b=p.toDataURL("image/png");break;case"jpg":b=p.toDataURL("image/jpeg",.8);break}const C=S(p)?"请绘制签名":p,A=S(p)?"":b;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:k,clear:g,classes:s}}}),Tw={class:"fox-signature-inner",ref:"wrap"},Vw=["height","width"],Ew={key:0,class:"fox-signature-unsopport"};function Dw(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",Tw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,Vw),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",Ew,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=_($w,[["render",Dw]]),{componentName:Iw,create:qw,scope:xw}=Y("time-select"),Mw=qw({components:{[ce.name]:ce},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(xw),o=t.computed(()=>({[Iw]:!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}}}),zw={class:"fox-time-select__title"},Lw={class:"fox-time-select__title__fixed"},Pw={key:0},Fw={class:"fox-time-select__content"},Rw={class:"fox-time-select__content__pannel"},Ow={class:"fox-time-select__content__detail"};function vw(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",zw,[t.createElementVNode("view",Lw,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",Pw,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",Fw,[t.createElementVNode("view",Rw,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",Ow,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const ka=_(Mw,[["render",vw]]),{componentName:Kw,create:Uw}=Y("time-pannel"),Hw=Uw({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(()=>({[Kw]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:a,handlePannel:r}}});function jw(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=_(Hw,[["render",jw]]),{componentName:Ww,create:Yw}=Y("time-detail"),Xw=Yw({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(()=>({[Ww]:!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}}}),Qw={class:"fox-time-detail__detail fox-time-detail__detail--moring"},Gw={class:"fox-time-detail__detail__list"},Zw=["onClick"];function Jw(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Qw,[t.createElementVNode("view",Gw,[(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,Zw))),128))])])],2)}const Sa=_(Xw,[["render",Jw]]),{componentName:nA,create:_w,scope:eN}=Y("sku-header"),tN=_w({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ge.name]:Ge},setup(e,{emit:n,slots:l}){const{t:o}=re.useFoxI18n(eN);return{getSlots:r=>l[r],t:o}}}),nN={class:"fox-sku-header"},oN=["src"],lN={class:"fox-sku-header-right"},aN={key:3,class:"fox-sku-header-right-extra"};function rN(e,n,l,o,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",nN,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,oN),t.createElementVNode("view",lN,[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",aN,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const sN=_(tN,[["render",rN]]),{componentName:oA,create:iN}=Y("sku-select"),cN=iN({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})}}}}),dN={class:"fox-sku-select"},uN={class:"fox-sku-select-item-title"},fN={class:"fox-sku-select-item-skus"},mN=["onClick"];function pN(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",dN,[(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",uN,t.toDisplayString(s.name),1),t.createElementVNode("view",fN,[(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,mN))),128))])]))),128))])}const hN=_(cN,[["render",pN]]),{componentName:lA,create:gN}=Y("sku-stepper"),yN=gN({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)}}}}),kN={class:"fox-sku-stepper"},bN={class:"fox-sku-stepper-title"},SN=["innerHTML"],CN={class:"fox-sku-stepper-count"};function wN(e,n,l,o,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",kN,[t.createElementVNode("view",bN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,SN),t.createElementVNode("view",CN,[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 NN=_(yN,[["render",wN]]),{componentName:aA,create:BN}=Y("sku-operate"),AN=BN({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]}}}),$N={key:0,class:"fox-sku-operate"},TN={key:0,class:"fox-sku-operate-desc"},VN={key:1,class:"fox-sku-operate-btn"},EN=["onClick"];function DN(e,n,l,o,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",$N,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",TN,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",VN,[(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,EN))),128))]))])):t.createCommentVNode("",!0)}const IN=_(AN,[["render",DN]]),{componentName:rA,create:qN,scope:xN}=Y("sku"),MN=qN({props:{...Le,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:sN,SkuSelect:hN,SkuStepper:NN,SkuOperate:IN,[ce.name]:ce},setup(e,{emit:n,slots:l}){const{toLocaleRefs:o}=re.useFoxI18n(xN),a=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,S=>{r.value=S}),t.watch(()=>r.value,S=>{S==!1&&k()}),t.onMounted(()=>{});const i=S=>l[S],c=S=>{n("select-sku",S)},u=S=>{s.value=S,n("change-stepper",S)},m=S=>{n("add",S)},f=S=>{n("reduce",S)},h=S=>{n("over-limit",S)},y=S=>{n("click-btn-operate",{type:S,value:s.value})},g=S=>{S=="icon"&&n("click-close-icon"),S=="overlay"&&n("click-overlay"),S=="close"&&n("close"),r.value=!1},k=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:u,stepperOverLimit:h,clickBtnOperate:y,add:m,reduce:f,getSlots:i,...a}}}),zN={class:"fox-sku"},LN={class:"fox-sku-content"};function PN(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",zN,[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",LN,[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=_(MN,[["render",PN]]),{create:FN}=Y("card"),RN=FN({components:{[Ge.name]:Ge,[Yt.name]:Yt},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]}}}),ON={class:"fox-card"},vN={class:"fox-card__left"},KN=["src"],UN={class:"fox-card__right"},HN={class:"fox-card__right__title"},jN={key:0,class:"fox-card__right__price"},WN={class:"fox-card__right__other"},YN={class:"fox-card__right__shop"},XN={class:"fox-card__right__shop__name"};function QN(e,n,l,o,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",ON,[t.createElementVNode("div",vN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,KN)]),t.createElementVNode("div",UN,[t.createElementVNode("div",HN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",jN,[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",WN,[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",YN,[t.createElementVNode("div",XN,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const wa=_(RN,[["render",QN]]),{create:GN,scope:ZN}=Y("ecard"),JN=GN({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(ZN),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}}}),_N={class:"fox-ecard"},eB={class:"fox-ecard__title"},tB={class:"fox-ecard__list"},nB=["onClick"],oB={class:"fox-ecard__list__input--con"},lB=["placeholder"],aB={class:"fox-ecard__list__step"};function rB(e,n,l,o,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",_N,[t.createElementVNode("view",eB,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",tB,[(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,nB))),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",oB,[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,lB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",aB,[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=_(JN,[["render",rB]]),{create:sB,scope:iB}=Y("address-list-item"),cB=sB({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(iB);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}}}),dB={class:"fox-address-list-item__info"},uB={class:"fox-address-list-item__info-contact"},fB={class:"fox-address-list-item__info-contact-name"},mB={class:"fox-address-list-item__info-contact-tel"},pB={key:0,class:"fox-address-list-item__info-contact-default"},hB={class:"fox-address-list-item__info-handle"},gB={class:"fox-address-list-item__addr"};function yB(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",dB,[t.createElementVNode("div",uB,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",fB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",mB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",pB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",hB,[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",gB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const $s=_(cB,[["render",yB]]),{create:kB}=Y("address-list-general"),bB=kB({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:$s,[Me.name]:Me,[Rt.name]:Rt},setup(e,{emit:n}){const l=()=>t.h($s,{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}}}}),SB={key:0,class:"fox-address-list-general"},CB={class:"fox-address-list-swipe"};function wB(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",CB,[(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",SB,[(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 NB=_(bB,[["render",wB]]),{componentName:BB,create:AB,scope:$B}=Y("address-list"),TB=AB({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:NB,[Me.name]:Me},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n($B),o=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[BB]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(k=>Qa(a,k,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(k,S)=>{n("delIcon",k,S),k.stopPropagation()},c=(k,S)=>{n("editIcon",k,S),k.stopPropagation()},u=(k,S)=>{n("clickItem",k,S),k.stopPropagation()},m=(k,S)=>{n("longCopy",k,S),k.stopPropagation()},f=(k,S)=>{n("longSet",k,S),k.stopPropagation()},h=(k,S)=>{n("longDel",k,S),k.stopPropagation()},y=(k,S)=>{n("swipeDel",k,S),k.stopPropagation()},g=k=>{n("add",k),k.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 VB(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=_(TB,[["render",VB]]),{componentName:sA,create:EB}=Y("category"),DB=EB({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}}}),IB={class:"fox-category"},qB={class:"fox-category__cateList"},xB={key:0},MB=["onClick"];function zB(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",IB,[t.createElementVNode("div",qB,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",xB,[(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,MB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Aa=_(DB,[["render",zB]]),{componentName:iA,create:LB}=Y("category-pane"),PB=LB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),FB={class:"fox-category-pane"},RB={key:0,class:"fox-category-pane__cateListRight"},OB={class:"fox-category-pane__childTitle"},vB={key:0,class:"fox-category-pane__childItemList"},KB=["onClick"],UB=["src"],HB={class:"fox-category-pane__skuImg"},jB={key:1,class:"fox-category-pane__cateListRight"},WB={class:"fox-category-pane__childTitle"},YB={key:0,class:"fox-category-pane__childItemList"},XB=["onClick"],QB={class:"fox-category-pane__skuName"},GB={key:2,class:"fox-category-pane__selfItemList"},ZB=["onClick"];function JB(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",FB,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",RB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",OB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",vB,[(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,UB),t.createElementVNode("div",HB,t.toDisplayString(c?.catName),1)],8,KB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(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("div",QB,t.toDisplayString(c?.catName),1)],8,XB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",GB,[(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,ZB))),128))])):t.createCommentVNode("",!0)])}const $a=_(PB,[["render",JB]]),{componentName:cA,create:_B}=Y("comment-header"),e2=_B({components:{[yt.name]:yt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),t2={class:"fox-comment-header__user"},n2={class:"fox-comment-header__user-avter"},o2=["src"],l2={class:"fox-comment-header__user-score"},a2={key:0,class:"fox-comment-header__time"};function r2(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",t2,[t.createElementVNode("view",n2,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,o2)):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",l2,[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",a2,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 s2=_(e2,[["render",r2]]),{componentName:dA,create:i2}=Y("comment-images"),c2=i2({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}}}),d2=["onClick"],u2=["src"],f2=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),m2=["onClick"],p2=["src"],h2={key:0,class:"fox-comment-images__mask"};function g2(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,u2),f2],8,d2))),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,p2),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",h2,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,m2)):t.createCommentVNode("",!0)],64))),128))],2)}const y2=_(c2,[["render",g2]]),{componentName:uA,create:k2,scope:b2}=Y("comment-bottom"),S2=k2({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(b2),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}}}),C2={class:"fox-comment-bottom"},w2={key:0},N2={class:"fox-comment-bottom__cpx"},B2=["onClick"];function A2(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",C2,[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",w2,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",N2,[(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,B2))),128))])])}const $2=_(S2,[["render",A2]]),{componentName:T2,create:V2,scope:E2}=Y("comment"),D2=V2({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:s2,CommentImages:y2,CommentBottom:$2,Right:ne.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:l}=re.useFoxI18n(E2),o=t.computed(()=>({[T2]:!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}}}),I2=["innerHTML"],q2={class:"fox-comment__follow-title"},x2={class:"fox-comment__follow-com"},M2={key:0,class:"fox-comment__follow-img"};function z2(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,I2),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",q2,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",x2,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",M2,[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=_(D2,[["render",z2]]),L2=[go,ko,bo,So,No,Ce,$o,To,Vo,Eo,Io,Bn,Mo,Po,vo,Ho,In,qn,jo,Mn,zn,Yo,Qo,lt,Go,Jo,vn,el,nl,ol,ll,al,il,cl,st,dl,ul,fl,ml,pl,Me,hl,gl,at,ce,yl,kl,bl,Sl,Dt,Cl,wl,Nl,Bl,Al,$l,Tl,Vl,El,Lt,Dl,It,qt,Il,ql,xl,Ml,Pt,On,$n,Dn,En,Ze,yt,pt,zl,Ll,Pl,Rt,Fl,Rl,Ol,Ot,Rn,vl,Hl,Pn,St,Yl,Xl,Wt,Ql,Gl,Ft,Zl,Jl,_l,Ct,ea,ta,wt,Nt,Ge,jn,oa,la,aa,Yt,Xt,ra,sa,ia,ca,da,ua,fa,ma,pa,ha,ga,ya,ka,ba,Sa,Ca,wa,Na,Ba,Aa,$a,Ta],P2=new ri(L2,"4.0.0");w.ActionSheet=Fl,w.ActionsheetItem=el,w.ActionsheetPane=vn,w.Address=ha,w.AddressList=Ba,w.Animate=ua,w.Audio=Yl,w.AudioOperate=Xl,w.Avatar=Wt,w.AvatarGroup=Ql,w.BackTop=Rl,w.Badge=aa,w.Barrage=ga,w.Broadcast=io,w.BroadcastKey=Se,w.Button=Me,w.Calendar=Dn,w.CalendarItem=Ho,w.Card=wa,w.Cascader=$n,w.CascaderItem=Po,w.Category=Aa,w.CategoryPane=$a,w.Cell=hl,w.CellGroup=gl,w.Checkbox=Mn,w.CheckboxGroup=zn,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=dt,w.DateItem=vo,w.DatePicker=En,w.DateUtils=oe,w.Dialog=Ot,w.Divider=Cl,w.Domain=rn,w.DomainKey=qe,w.DomainProvider=ml,w.Drag=Ol,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=vn,w.FoxAddress=ha,w.FoxAddressList=Ba,w.FoxAnimate=ua,w.FoxAudio=Yl,w.FoxAudioOperate=Xl,w.FoxAvatar=Wt,w.FoxAvatarGroup=Ql,w.FoxBackTop=Rl,w.FoxBadge=aa,w.FoxBarrage=ga,w.FoxButton=Me,w.FoxCalendar=Dn,w.FoxCalendarItem=Ho,w.FoxCard=wa,w.FoxCascader=$n,w.FoxCascaderItem=Po,w.FoxCategory=Aa,w.FoxCategoryPane=$a,w.FoxCell=hl,w.FoxCellGroup=gl,w.FoxCheckbox=Mn,w.FoxCheckboxGroup=zn,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=vo,w.FoxDatePicker=En,w.FoxDialog=Ot,w.FoxDivider=Cl,w.FoxDomainProvider=ml,w.FoxDrag=Ol,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=Rn,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=Pl,w.FoxOverLay=at,w.FoxPage=go,w.FoxPagination=Dl,w.FoxPicker=pt,w.FoxPickerItem=Mo,w.FoxPopover=Xt,w.FoxPopup=ce,w.FoxPopupWrapper=dl,w.FoxPrice=Ge,w.FoxProgress=Ft,w.FoxPullRefresh=vl,w.FoxRadio=In,w.FoxRadioGroup=qn,w.FoxRadioItem=jo,w.FoxRange=Pt,w.FoxRate=yt,w.FoxRateItem=Jo,w.FoxRollingProvider=pl,w.FoxRow=Sl,w.FoxRowItem=$o,w.FoxSearchBar=On,w.FoxShortPassword=zl,w.FoxSideNavBar=ql,w.FoxSideNavBarItem=xl,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=Rt,w.FoxSwiper=wt,w.FoxSwiperItem=Nt,w.FoxSwitch=Pn,w.FoxSwitchItem=Qo,w.FoxTabPane=qt,w.FoxTabbar=Vl,w.FoxTabbarItem=El,w.FoxTable=ca,w.FoxTabs=It,w.FoxTabsBar=ol,w.FoxTabsContainer=ll,w.FoxTabsPane=al,w.FoxTag=Yt,w.FoxText=ul,w.FoxTextarea=Bn,w.FoxTextareaItem=Io,w.FoxTimeDetail=Sa,w.FoxTimePannel=ba,w.FoxTimeSelect=ka,w.FoxToast=St,w.FoxTour=pa,w.FoxTrendArrow=ma,w.FoxUploader=Ll,w.FoxVideo=Ct,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=Rn,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=Pl,w.OverLay=at,w.Page=go,w.Pagination=Dl,w.Picker=pt,w.PickerItem=Mo,w.Popover=Xt,w.Popup=ce,w.PopupWrapper=dl,w.Price=Ge,w.PriorityPolicy=mn,w.Progress=Ft,w.PullRefresh=vl,w.Radio=In,w.RadioGroup=qn,w.RadioItem=jo,w.Range=Pt,w.Rate=yt,w.RateItem=Jo,w.RollingProvider=pl,w.Row=Sl,w.RowItem=$o,w.SearchBar=On,w.ShortPassword=zl,w.SideNavBar=ql,w.SideNavBarItem=xl,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=Rt,w.Swiper=wt,w.SwiperItem=Nt,w.Switch=Pn,w.SwitchItem=Qo,w.TabPane=qt,w.Tabbar=Vl,w.TabbarItem=El,w.Table=ca,w.Tabs=It,w.TabsBar=ol,w.TabsContainer=ll,w.TabsPane=al,w.Tag=Yt,w.Text=ul,w.Textarea=Bn,w.TextareaItem=Io,w.TimeDetail=Sa,w.TimePannel=ba,w.TimeSelect=ka,w.Toast=St,w.Tour=pa,w.TrendArrow=ma,w.UniqueID=wn,w.Uploader=Ll,w.ValidateSchema=tr,w.ValidateSchemaKey=Ke,w.Video=Ct,w.WaterMark=fa,w.cancelRaf=Va,w.clamp=ve,w.clearNonNumber=lo,w.clone=no,w.compareTo=eo,w.createBroadcast=nn,w.createValidateSchema=ln,w.debounce=ct,w.debounceRef=Gs,w.decimalLength=Ya,w.default=P2,w.defineBroadcast=vs,w.defineConfigDomain=or,w.defineDataItem=ar,w.defineDomain=fo,w.defineItem=Ne,w.definePageState=rr,w.deleteGlobalValidator=js,w.disabledProperty=Be,w.divide=_n,w.excludeProps=ao,w.extend=et,w.floatData=Qa,w.getGlobalValidateCheckEvents=Ja,w.getGlobalValidateResetEvents=er,w.getPageContentAreaHeight=un,w.getPageContentAreaWidth=fn,w.getPageFooterAreaHeight=dn,w.getPageHeaderAreaHeight=cn,w.getRootDomain=ut,w.getScrollTopRoot=so,w.hasSymbol=Oa,w.includeProps=me,w.indexOf=Rs,w.installRules=lr,w.integerLength=Wa,w.isArray=Jt,w.isArrayLike=Ka,w.isBrowser=_e,w.isDate=Oe,w.isESModule=Ms,w.isEmptyString=de,w.isEqual=xe,w.isFunction=_t,w.isHidden=tn,w.isInnerPage=_s,w.isMap=Is,w.isNil=Pa,w.isNumberString=ja,w.isObject=$e,w.isPlainObject=to,w.isPromise=$t,w.isRegExp=Ha,w.isSet=qs,w.isString=Fa,w.isSubPage=ei,w.isSymbol=xs,w.isWindow=va,w.lastIndexOf=Os,w.makeArray=Fs,w.merge=Ua,w.multiply=Ma,w.negate=za,w.nextTick=Ls,w.numberFormat=Zt,w.objectToString=Ra,w.once=Zs,w.padZero=nt,w.preventDefault=ro,w.property=Ae,w.raf=Re,w.readonlyProperty=Te,w.setGlobalValidateCheckEvents=Ws,w.setGlobalValidateHandler=Us,w.setGlobalValidateMessages=Xs,w.setGlobalValidateResetEvents=Ys,w.setGlobalValidator=Hs,w.throttle=an,w.toBoolean=he,w.toNumber=ge,w.toPadding=ze,w.toPx=ie,w.toPxDesc=pe,w.toTypeString=en,w.toValue=De,w.tryTimes=co,w.typeOf=tt,w.unNumberFormat=La,w.updatePageState=mo,w.useBroadcast=Tt,w.useDomain=Ue,w.useExpose=Ve,w.useInnerSize=yo,w.usePageState=sn,w.usePosition=gr,w.useRect=Ee,w.useSize=hn,w.useTouch=He,w.valueLength=ye,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});