@fox-js/foxui 4.0.1-37 → 4.0.1-39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.esm.js +4777 -4709
- package/dist/index.umd.js +5 -5
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +186 -182
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-base v4.0.0
|
|
3
|
-
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),tt=require("@fox-js/validator"),oe=require("@fox-js/icons-vue"),re=require("@fox-js/i18n"),Gt=window,
|
|
2
|
+
* @fox-js/foxui-base v4.0.0 Mon Apr 15 2024 20:52:25 GMT+0800 (中国标准时间)
|
|
3
|
+
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),tt=require("@fox-js/validator"),oe=require("@fox-js/icons-vue"),re=require("@fox-js/i18n"),Gt=window,Rs=typeof window<"u";function Os(){return typeof Gt<"u"?Gt.requestAnimationFrame||Gt.webkitRequestAnimationFrame||function(e){Gt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ar(e){Rs?cancelAnimationFrame(e):clearTimeout(e)}const Xe=Os();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function sn(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Ce(e),n=Ce(n),[e,n]=Po(Ce(e),Ce(n)),a==1&&(o==1?e=Jn(e):n=Jn(n));let l=Vr(e,n);return a?a==2?"-"+Ce(l):e.length<l.length?Ce(l.substring(1)):"-"+Ce(Jn(l)):Ce(l)}function Jn(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return Vr(n,r)}function Ce(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Po(e,n){let a=e.split("."),o=n.split("."),l=a[0].length,r=o[0].length;return l>r?o[0]=new Array(Math.abs(l-r)+1).join("0")+(o[0]?o[0]:""):a[0]=new Array(Math.abs(l-r)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,r=o[1]?o[1].length:0,(l||r)&&(l>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function Vr(e,n){[e,n]=Po(e,n);let a="",o=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let r=parseInt(e[l])+parseInt(n[l])+o;a=r%10+a,o=Math.floor(r/10)}return o?o.toString()+a:a}var be=(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))(be||{});function zt(e,n=0,a=be.HALF_EVEN){if(a===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let l=e.split("."),r=l[0],s=l[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+s,c=zt(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,Da(l[1],r,o,a)?(o?"-":"")+_n(r):(o?"-":"")+r;if(l[1]){if(l[1].length<n)return(o?"-":"")+r+"."+l[1]+new Array(n-l[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");s=l[1].substring(0,n);let i=l[1].substring(n);return i&&Da(i,s,o,a)&&(s=_n(s),s.length>n)?(o?"-":"")+_n(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function Da(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===be.DOWN||!a&&o===be.FLOOR||a&&o===be.CEILING)return!1;if(o===be.UP||a&&o===be.FLOOR||!a&&o===be.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(o){case be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function _n(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,o="";for(let l=a;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function uo(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=Vt(e),n=Vt(n);let o=0,l=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(l=n.length-n.indexOf(".")-1);let r=o+l;if(e=Vt(e.replace(".","")),n=Vt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let s=n.length,i=0,c=[],f=s-1,p="";for(let d=0;d<s;d++)c[d]=e.length-1;for(let d=0;d<2*e.length;d++){let h=0;for(let v=n.length-1;v>=f&&v>=0;v--)c[v]>-1&&c[v]<e.length&&(h+=parseInt(e[c[v]--])*parseInt(n[v]));h+=i,i=Math.floor(h/10),p=h%10+p,f--}return p=Vt(Us(p,r)),a==1&&(p="-"+p),p}function Us(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 Vt(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 fo(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var l=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ce(n.replace(".","")),l>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ce(e+new Array(l+1).join("0"));else if(l>f)e=e.replace(".",""),e=Ce(e+new Array(l-f+1).join("0"));else if(l<f){e=e.replace(".","");let p=e.length-f+l;e=Ce(e.substring(0,p)+"."+e.substring(p))}else l==f&&(e=Ce(e.replace(".","")))}let r=0,s=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let f=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(f+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=f,i="0."+new Array(f).join("0")}for(a=a+2;r<=a;){let f=0;for(;parseInt(c)>=parseInt(n);)c=sn(c,"-"+n),f++;i+=f,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+Ce(zt(i,a-2))}function mo(e,n){return e=e.toString(),n=n.toString(),n=po(n),sn(e,n)}function po(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 a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=mo(e,uo(n,zt(fo(e,n),0,be.FLOOR)));return a+o}function qa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ma(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=Po(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class se{value;static RoundingModes=be;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,o]=n.split(/[eE]/);a=Ce(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(o=parseInt(o)+a.indexOf("."),a=a.replace(".","")):o=parseInt(o)+a.length,a.length<o?n=l+a+new Array(o-a.length+1).join("0"):a.length>=o&&o>0?n=l+Ce(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=se.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=se.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<a?(a=i,i=0):i-=a,s=n.substring(i,i+a)+(i<r-a&&i>=0?o:"")+s;return(l?"-":"")+s+n.substring(r)}getPrettyValue(n,a){return se.getPrettyValue(this.value,n,a)}static round(n,a=0,o=be.HALF_EVEN){if(n=se.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return zt(n,a,o)}round(n=0,a=be.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new se(zt(this.value,n,a))}static floor(n){return n=se.validate(n),n.indexOf(".")===-1?n:se.round(n,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new se(this.value):new se(this.value).round(0,be.FLOOR)}static ceil(n){return n=se.validate(n),n.indexOf(".")===-1?n:se.round(n,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new se(this.value):new se(this.value).round(0,be.CEILING)}static add(n,a){return n=se.validate(n),a=se.validate(a),sn(n,a)}add(n){return new se(sn(this.value,n.getValue()))}static subtract(n,a){return n=se.validate(n),a=se.validate(a),mo(n,a)}subtract(n){return new se(mo(this.value,n.getValue()))}static multiply(n,a){return n=se.validate(n),a=se.validate(a),uo(n,a)}multiply(n){return new se(uo(this.value,n.getValue()))}static divide(n,a,o){return n=se.validate(n),a=se.validate(a),fo(n,a,o)}divide(n,a){return new se(fo(this.value,n.getValue(),a))}static modulus(n,a){return n=se.validate(n),a=se.validate(a),Ia(n,a)}modulus(n){return new se(Ia(this.value,n.getValue()))}static compareTo(n,a){return n=se.validate(n),a=se.validate(a),Ma(n,a)}compareTo(n){return Ma(this.value,n.getValue())}static negate(n){return n=se.validate(n),po(n)}negate(){return new se(po(this.value))}}function Tr(e,n){return se.multiply(`${e}`,`${n}`)}function Lo(e,n,a=8){return se.divide(`${e}`,`${n}`,a)}function ho(e,n){return e=`${e}`,n=`${n}`,se.compareTo(e,n)}function $r(e){return se.negate(e)}function yn(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",f=r.indexOf(".");f!=-1&&(i=r.substring(0,f),c=r.substring(f+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let p;if(o>0){let d="",h=i.split("").reverse();for(let v=0;v<h.length;v++)d+=h[v]+((v+1)%o==0&&v+1!=h.length?l:"");c.length==0?p=`${s}${d.split("").reverse().join("")}`:p=`${s}${d.split("").reverse().join("")}.${c}`}else c.length==0?p=`${s}${i}`:p=`${s}${i}.${c}`;return p}function Er(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const it=typeof window<"u",Re=Ye;function xr(e){return e==null}const vn=Array.isArray,Hs=e=>bn(e)==="[object Map]",js=e=>bn(e)==="[object Set]",Ue=e=>e instanceof Date,cn=e=>typeof e=="function",Dr=e=>typeof e=="string",Ws=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",gt=e=>Ae(e)&&cn(e.then)&&cn(e.catch),Ir=Object.prototype.toString,bn=e=>Ir.call(e),go=e=>bn(e)==="[object Object]",qr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ys(e){return e.__esModule||qr&&e[Symbol.toStringTag]==="Module"}const Xs=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function lt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(l===!0&&c&&typeof c=="object"){let f;Array.isArray(c)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},n[s]=lt(l,f,c)}else c!==void 0&&(n[s]=c)}}return n}function yo(e,n,a=!1){if(!a)lt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!go(s))continue;r=yo(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!go(s))continue;r=yo(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const eo=Xs?Promise.resolve():null;function Qs(e,...n){eo!==null?n&&n.length>0?eo.then(()=>{e(n)}):eo.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 fe(e){return typeof e=="number"?e:Number(e)}const Gs={"[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 at(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Gs[a]||"object"}function kn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Mr(e){return e&&typeof e=="object"&&"setInterval"in e}function Pr(e){let n=!!e&&"length"in e&&e.length,a=at(e);return a==="function"||Mr(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Lr(e,n){let a=+n.length,o=0,l=e.length;for(;o<a;o++)e[l++]=n[o];return e.length=l,e}function Zs(e,n=[]){let a=n;return e!=null&&(Pr(Object(e))?Lr(a,typeof e=="string"?[e]:e):a.push(e)),a}function qe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=at(e),o=at(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],c=e[i],f=n[i];if(!qe(c,f))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],s=n[l];if(!qe(r,s))return!1}return!0}return!1}function zr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Fr(e){return ue(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ue(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Rr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function Or(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function Pa(e,n,a){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(a,"")}function vo(e,n=!0,a=!0){n?e=Pa(e,".",/\./g):e=e.replace(/\./g,""),a?e=Pa(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function Js(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(qe(e,a))return!0}):n.indexOf(e)}function _s(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(qe(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ye(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ve(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function Nt(e,...n){const a=[];n.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const o={};for(const l in e)a.includes(l)||(o[l]=e[l]);return o}const Kr=(e,n,a)=>{const o=Object.assign({},e),l=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{l.hasOwnProperty(r)?typeof l[r]=="string"&&(o[r]=n[l[r]]):n[r]&&(o[r]=n[r])}),o):e};function bo(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const et=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Oe=(e,n,a)=>Math.min(Math.max(e,n),a),ke=Symbol.for("BroadcastKey");class zo{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,o){this.parent=n,this.proxy=a,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(o=>n===o);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...o){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let l=!1;!n.name||n.name==="*"?l=!0:!n.name||n.name==="+"?(l=!1,n.name="*"):zr(n.name)&&this.name&&n.name.test(this.name)?l=!0:typeof n.name=="function"?l=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(l=!0);const r=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...o]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[a]=="function"){const c=Reflect.apply(i[a],i,[...o]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(n,a){this.callbacks.set(n,a)}}function Sn(e,n,a,o){const l=new zo(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function ei(e,n,a){const o=a;if(o[ke])return o[ke];const l=t.inject(ke,null),r=new zo(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[ke]=r,t.provide(ke,r),t.onUnmounted(()=>{r.destroy(),o[ke]=void 0}),r}function qt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ke]??t.inject(ke,null):t.inject(ke,null)}const nt=e=>e.default??e;class ti{error(n,a){const o=a,l=qt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=qt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=qt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=qt(o),s=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let Ur=new ti;function ni(e){Ur=e}function oi(e,n){nt(tt).setValidator(e,n)}function li(e){nt(tt).deleteValidator(e)}let Hr=["blur","clear"];function ai(e){Hr=e}function jr(){return Hr}let Wr=["focus","change"];function ri(e){Wr=e}function Yr(){return Wr}function si(e){nt(tt).messages(e)}function Tt(...e){const n=[];return e.forEach(a=>{a.forEach(o=>{const l=n.findIndex(r=>r.type===o.type);l!==-1&&n.splice(l,1),n.push(o)})}),n}function Zt(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 Xr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,o){this.parent=n,this.descriptor=a,this.proxy=o,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const a=Zt(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=Zt(o);const l=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=Ur;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,a,o=!1){o?nt(tt).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?nt(tt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return nt(tt).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const a=Tt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Zt(n):this.rules=Zt([n]);const o=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=Tt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),s={[`${o}`]:r},i=nt(tt),c=new i(l),f=this.proxy??s;return c.validate(s,{context:f}).then(d=>{if(d.pass)this.success();else{let h="error";Array.isArray(d.errors)&&d.errors.length>0&&(h=d.errors[0].message??h,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(h)}return d}).catch(d=>{const h=d.message??`${d}`;return this.error(h),d})}}return Promise.resolve({pass:!0})}}function Cn(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(r){return r[l]}}}return new Xr(n,a,e)}const La=Symbol("EventEmitterKey");class ii{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let o=this.register.get(n);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===a);l!==-1&&o.splice(l,1)}}on(n,a){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(a)}emit(n,...a){const o=this.register.get(n);o&&o.forEach(l=>{try{Reflect.apply(l,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function yt(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function un(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function ci(e,n){const a=yt((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function ui(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Fo(e,n,a,o=0,l=!0){let r=n,s=0;if(l){const c=e();if(s++,c||s>a)return}const i=()=>{const c=e();s++,!(c||s>a)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const Ie=Symbol("DomainKey"),dt=Symbol("DataItemsKey");class wn{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,a=[]){for(const o in n){const l=n[o];a.length>0&&a.indexOf(l)!==-1||(this._props[o]=l)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const l=o._props[n];a.push(l)}o=o._parent}return a}}const di=new wn;function pt(){return di}function He(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ie]??t.inject(Ie,null):t.inject(Ie,null)}const to=Symbol("OriginalDateKey");function Ro(e,n,a=[],o){const l=t.getCurrentInstance(),r=l?.proxy;let s=t.inject(Ie,null);s===null&&(s=pt());const i=e||n.prop||n.name,c=new wn(i);c.parent=s;const f=k=>{r[to]||h(k),c.set("modelValue",k)},p=()=>c.getForSelf("modelValue")??null,d=()=>r[to]??null,h=k=>{const b={};lt(!0,b,t.toRaw(k)),r[to]=b};t.isReactive(n)||typeof n=="function"?t.watch(n,k=>{c.merge(k,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&h(n.modelValue),r[Ie]=c,t.provide(Ie,c);let v=null,y=null;if(l!==null){const k=t.inject(ke,null);v=Sn(r,k,i,o),c.broadcast=v,r[ke]=v,t.provide(ke,v),r.broadcast=(u,m,...g)=>Reflect.apply(v.emit,v,[u,m,...g]);const b=t.inject(Ke,null);y=Cn(r,b,{componentName:""}),c.validateSchema=y,r[Ke]=y,t.provide(Ke,y),r[dt]=new Map,r.validate=(u=!0)=>{const m=[];let g=null;const C={deep:!1};if(u===!0)g={name:"*"};else if(Array.isArray(u)&&u.length>0){const A=u;g={name:S=>S?A.indexOf(S)!==-1:!1}}else if(u!=null&&typeof u=="object"){const A=u;if(C.ignoreHidden=A.ignoreHidden,Array.isArray(A.include)&&A.include.length>0){const S=A.include;g={name:V=>V?S.indexOf(V)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const S=A.exclude;g={name:V=>V?S.indexOf(V)===-1:!1}}else g={name:"*"}}if(g){const A=v?.emitToChildren(g,"validate",C);A&&Reflect.apply([].push,m,A)}return m.length==1?m[0]:m.length>1?Promise.all(m).then(A=>{let S=[];return A.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(S=[...S,...V.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,m=!0,g=!1)=>{if(g===!0){Reflect.ownKeys(u).forEach(A=>{let S=String(A);const N=Zr(c,S,{componentName:"",fieldName:S,pureDataValidate:!0},v,y);r[dt].set(S,N);const T=u[S];T&&N.validateSchema.setRule(T)});return}if(m){const C=Reflect.ownKeys(u),A={name:S=>C.includes(S)};v?.emitToChildren(A,"setNameValidateRules",u,!1)}},r.clearValidate=(u=!0)=>{let m=null;if(u===!0)m={name:"*"};else if(Array.isArray(u)&&u.length>0){const g=u;m={name:C=>C?g.indexOf(C)!==-1:!1}}else if(u!=null&&typeof u=="object"){const g=u;if(Array.isArray(g.include)&&g.include.length>0){const C=g.include;m={name:A=>A?C.indexOf(A)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const C=g.exclude;m={name:A=>A?C.indexOf(A)===-1:!1}}else m={name:"*"}}m&&v?.emitToChildren(m,"clearValidate",!1)},r.resetFields=u=>{const m=p();if(!m)return;const g={};if(lt(!0,g,d()??{}),Array.isArray(u))u.forEach(C=>{m[C]=g[C]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(A=>{m[A]=g[A]});else if(u&&Array.isArray(u.exclude)){let C=u.exclude??[];Reflect.ownKeys(g).forEach(A=>{C.includes(A)||(m[A]=g[A])})}else Object.assign(m,g);r.clearValidate(u)},r.setModelValue=(u,m)=>{!m||m===i?f(u):v?.emitToChildren({name:m},"setModelValue",u)},r.getModelValue=()=>p()}return t.onUnmounted(()=>{c.destroy(),r[Ie]=void 0,r[dt]&&(r[dt].clear(),r[dt]=void 0),v!==null&&(v.destroy(),r[ke]=void 0),y!==null&&(y.destroy(),r[Ke]=void 0)}),c}function Qr(e,n,a=[]){const l=t.getCurrentInstance()?.proxy;let r=t.inject(Ie,null);r===null&&(r=pt());const s=e||n.prop||n.name,i=new wn(s);return i.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{i.merge(c,a)},{immediate:!0}):i.merge(n,a),l[Ie]=i,t.provide(Ie,i),t.onUnmounted(()=>{i.destroy(),l[Ie]=void 0}),i}function Gr(e,n,a){const l=He(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Ne(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(ke,null),i=Sn(l,s,r,a);l[ke]=i,t.provide(ke,i),l.broadcast=(y,k,...b)=>Reflect.apply(i.emit,i,[y,k,...b]);const c=t.inject(Ke,null);e.fieldName=e.fieldName??r;const f=Cn(l,c,e);l[Ke]=f,t.provide(Ke,f),Gr(l,f,r),l.validate=(y=null)=>{const k=[];let b=!1,u=!1;if(Array.isArray(y)&&y.indexOf(r)!==-1)u=!0,b=!0;else if(y&&typeof y=="object"){const m=y;m.ignoreHidden===!0&&kn(l.$el)?u=!1:(Array.isArray(m.include)&&m.include.indexOf(r)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(r),u=!0),b=m.deep??!1}else typeof y=="boolean"&&(b=y),u=!0;if(u){const m=f?.validate();k.push(m)}if(b){let m=null;const g={deep:!1};if(y===!0)m={name:"*"};else if(Array.isArray(y)&&y.length>0){const C=y;m={name:A=>A?C.indexOf(A)!==-1:!1}}else if(y!=null&&typeof y=="object"){const C=y;if(g.ignoreHidden=C.ignoreHidden,Array.isArray(C.include)&&C.include.length>0){const A=C.include;m={name:S=>S?A.indexOf(S)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const A=C.exclude;m={name:S=>S?A.indexOf(S)===-1:!1}}else m={name:"*"}}if(m){const C=i.emitToChildren(m,"validate",g);Reflect.apply([].push,k,C)}}return k.length==1?k[0]:k.length>1?Promise.all(k).then(m=>{let g=[];return m.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(g=[...g,...C.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=y=>f?.setRule(y),l.setNameValidateRules=(y,k=!1)=>{const b=y[r];if(b&&f?.setRule(b),k){const u={name:m=>Reflect.ownKeys(y).includes(m)};i.emitToChildren(u,"setNameValidateRules",y,!1)}},l.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(n??"")!==-1)&&f?.clear();let k=null;if(y===!0)k={name:"*"};else if(Array.isArray(y)&&y.length>0){const b=y;k={name:u=>u?b.indexOf(u)!==-1:!1}}else if(y!=null&&typeof y=="object"){const b=y;if(Array.isArray(b.include)&&b.include.length>0){const u=b.include;k={name:m=>m?u.indexOf(m)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const u=b.exclude;k={name:m=>m?u.indexOf(m)===-1:!1}}else k={name:"*"}}k&&i.emitToChildren(k,"clearValidate",!1)};const p=new ii(l);l[La]=p;const d=yt((y="validate")=>{y==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:jr()).forEach(y=>{p.on(y,k=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Yr()).forEach(y=>{p.on(y,k=>{d("reset")})}),t.onUnmounted(()=>{i.destroy(),l[ke]=void 0,f.destroy(),l[Ke]=void 0,p.destroy(),l[La]=void 0}),{broadcast:i,validateSchema:f,emitEvent:(y,...k)=>{Reflect.apply(p.emit,p,[y,...k])},onEvent:(y,k)=>{Reflect.apply(p.on,p,[k])},offEvent:(y,k)=>{Reflect.apply(p.off,p,[k])}}}function Zr(e,n,a,o,l){const r={},s=n??"",i={getValue(){const p=e.getForSelf("modelValue");return p?p[s]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,s):!1}};a.fieldName=s,a.validateHandler={getValue(p){return i.getValue()}};const c=Cn({},l,a);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let h=!1,v=!1;if(Array.isArray(p)&&p.indexOf(s)!==-1)v=!0,h=!0;else if(p&&typeof p=="object"){const y=p;Array.isArray(y.include)&&y.include.indexOf(s)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(s),v=!0,h=y.deep??!1}else typeof p=="boolean"&&(h=p),v=!0;if(v){const y=c?.validate();d.push(y)}if(h){let y=null;const k={deep:!1};if(p===!0)y={name:"*"};else if(Array.isArray(p)&&p.length>0){const b=p;y={name:u=>u?b.indexOf(u)!==-1:!1}}else if(p!=null&&typeof p=="object"){const b=p;if(Array.isArray(b.include)&&b.include.length>0){const u=b.include;y={name:m=>m?u.indexOf(m)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const u=b.exclude;y={name:m=>m?u.indexOf(m)===-1:!1}}else y={name:"*"}}if(y){const b=f.emitToChildren(y,"validate",k);Reflect.apply([].push,d,b)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(y=>{let k=[];return y.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(k=[...k,...b.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=p=>{const d=p[s];d&&c?.setRule(d)};const f=Sn(null,o,s,r);return{broadcast:f,validateSchema:c}}const he=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 a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(it){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*n;const o=Number(e);return isNaN(o)?0:o}const Xe="PageStateKey";function Le(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=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 ko(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=ie(a.headerHeight??n.headerHeight??-1),e.headerPadding=Le(a.headerPadding??n.headerPadding),e.footerHeight=ie(a.footerHeight??n.footerHeight??-1),e.footerPadding=Le(a.footerPadding??n.footerPadding),e.contentPadding=Le(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=ie(c,r):e.height=ie(r)-ie(s,r)-ie(i,r),e.width=ie(a.width??n.width??0,l)}}function Jr(e,n={}){const a={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});l&&(o.safeAreaTop=ie(l.top),o.safeAreaBottom=ie(l.bottom),o.safeAreaLeft=ie(l.left),o.safeAreaRight=ie(l.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;ko(o,r,n,!0,s,i,c,f);const p=t.reactive(o),d=e.getForParent(Xe);d&&(o.height=dn(e,d),o.width=fn(e,d),t.watch([()=>dn(e,d),()=>fn(e,d)],([v,y])=>{p.height=v,p.width=y}));const h=!d;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([v,y,k=-1,b=-1,u=0,m=0])=>{ko(p,y,n,h,k,b,u,m)}),e.set(Xe,p),p}function Nn(e){return e.get(Xe)}function Bn(e,n){if(n=n??e.get(Xe),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function An(e,n){if(n=n??e.get(Xe),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function dn(e,n){if(n=n??e.get(Xe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Bn(e,n),o=An(e,n);return n.height-a-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 fi(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function mi(e){return!!e.getForParent(Xe)}var mn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(mn||{});function no(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Be(e,n,a=1,o){const l=He();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(no(c,o))return c}const s=e.value;return no(s,o)?s:null}):t.computed(()=>{const r=e.value;return no(r,o)?r:l?.get(n)})}function Te(e){return Be(e,"readonly",0,function(a){return pe(a)})}function we(e){return Be(e,"disabled",0,function(a){return pe(a)})}function xe(e,n="modelValue",a){const o=t.toRef(e,n);let l=o.value;typeof a=="function"&&(l=a(o.value));const r=t.ref(l);return t.watch(o,s=>{if(typeof a=="function"){const i=a(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const _r=new Map,pn=new Map;let So=null;function pi(e){So=e}function es(e,n,a){if(a){let o=pn.get(a);o||(o=new Map,pn.set(a,o)),o.set(e,n)}else _r.set(e,n)}function Ze(e,n,a){!a&&So&&(a=So(e)??void 0);let o=null;if(a){let l=pn.get(a);l&&(o=l.get(n))}return o||(o=_r.get(n)),o}function hi(e,n){for(let a in e){const o=e[a];es(a,o,n)}}function gi(e){pn.delete(e)}function yi(){return{top:0,left:0,bottom:0,right:0}}function vi(e=0,n=0){if(it){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ie(e,o)-ie(n,o)};return{rootWidth:a,rootHeight:o,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:-1,footerHeight:-1}}}class bi{packages;_version;get version(){return this._version}constructor(n,a){this.packages=n,this._version=a}install(n,a){a?.install!==!1&&this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=pt();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=un(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=f,this.initPageLayout(i,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=lt({},yi(),n.safeAreaInset),s=vi(o,l),i=lt({},s.pageLayout,n.pageLayout);a=a??pt(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(n){pi(n)}setAPI(n,a,o){es(n,a,o)}getAPI(n,a,o){return Ze(n,a,o)}batchSetAPI(n,a){hi(n,a)}clearScopeAPI(n){gi(n)}getRootDomain(){return pt()}}function X(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const ki=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(Dr(o)?a=document.querySelector(o):a=e.teleport);const l=document.createElement("view"),r=n.name?n.name+"-":"",s=e.id||new Date().getTime();l.id=r+s;let i={};cn(n.wrapper)?i=n.wrapper(a,l):i=n.wrapper;const c=t.createApp(i,e),f=n.components;return f&&f.forEach(p=>{c.use(p)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},ts=(e,n)=>e?t.h(e,n):"";function $e(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const me={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ge={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},ns={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}},os={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}},ls=[];for(const e in os)ls.push(e);const Si=Symbol.for("InnerPageScopeKey"),Ci={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},wi=(e,n)=>({inheritAttrs:!0,props:{...me,...ns,...Ci},setup(a,{slots:o}){const l=Ro(a.name,a),r=t.inject(Si,!1);if(l){const p=Jr(l,a);$e({getPageContentHeight:()=>dn(l,p),getPageContentWidth:()=>fn(l,p),getPageHeaderHeight:()=>Bn(l,p),getPageFooterHeight:()=>An(l,p)}),p&&r&&(p.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),f=(p,d=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(p,!0,d)};return t.watch([()=>a.rules,()=>a.pureDataRules],([p,d],[h,v])=>{if(p&&h){const y=t.toRaw(h),k=t.toRaw(p),b=k?Reflect.ownKeys(k):[];(y?Reflect.ownKeys(y):[]).forEach(m=>{b.includes(m)||(k[m]=[])}),f(k)}if(d&&v){const y=t.toRaw(v),k=t.toRaw(d),b=k?Reflect.ownKeys(k):[];(y?Reflect.ownKeys(y):[]).forEach(m=>{b.includes(m)||(k[m]=[])}),f(k,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const p=t.toRaw(a.rules);f(p)}if(a.pureDataRules){const p=t.toRaw(a.pureDataRules);f(p,!0)}}),()=>{const p={class:s.value,style:i.value};return t.h("div",p,[o?.default?.()])}}}),{componentName:Ni,create:Bi,scope:GB}=X("page"),Oo=Bi(wi(Ni));function Vn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Ko(e){const n=t.unref(e),a=window.getComputedStyle(n,null),o=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-s}}const Ai=Symbol.for("InnerPageScopeKey"),Vi=(e,n,a,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,r){const s=He(),i=s?Nn(s):null,c=t.inject(Ai,!1),f=e,p=t.computed(()=>{const w={[f]:!0,[`${f}--border`]:l.border,[`${f}--fixed`]:l.fixed};return c||(w[`${f}--safe-area-inset-top`]=l.safeAreaInsetTop),w}),d=t.computed(()=>({[`${f}__inner`]:!0,[`${f}__inner--${l.align}`]:!0})),h=l.height!==null&&l.height!==void 0?ie(l.height):null,v=t.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const I=Le(l.padding??i.headerPadding);return Object.assign(w,I),h&&(i.headerHeight=h),i.headerHeight>0&&(w.height=i.headerHeight),w.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,w.safeAreaTop>0&&(w.top=w.safeAreaTop+(I.top??0),w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)),w}if(h&&(w.height=h),l.padding){const I=Le(l.padding);Object.assign(w,I)}return w}),y=t.ref(null),k=()=>{if(i&&y.value&&!kn(y.value)){if(!o){const w=Vn(y.value);i.headerAllHeight=w.height}return i.headerMounted=!0,!0}return!1};let b=null;t.onMounted(()=>{i&&(Fo(k,50,5,50,!0),window.ResizeObserver&&y.value&&(b=new window.ResizeObserver(()=>{k()}),b.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,b&&(b.disconnect(),b=null))});const u=t.computed(()=>{const w={};return v.value.height!==null&&v.value.height!==void 0&&(w.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(w.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(w.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(w.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(w.paddingBottom=`${v.value.bottom}px`),w}),m=t.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function g(){r.emit("back")}function C(){r.emit("click-title")}function A(){r.emit("click-right")}function S(){r.emit("click-right-text")}const V=()=>{if(!l.leftShow)return null;const w=[];if(r.slots.left)w.push(r.slots.left());else{if(r.slots.leftIcon){const I=t.h("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);w.push(I)}else if(l.leftIcon){const I=t.h("view",{class:"left-icon",onClick:g},[t.h(l.leftIcon)]);w.push(I)}if(l.leftText){const I=t.h("view",{class:"left-text",onClick:g},[l.leftText]);w.push(I)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__left"},w)},N=()=>{if(!l.rightShow)return null;const w=[];if(r.slots.right)w.push(r.slots.right());else{if(l.rightText){const I=t.h("view",{class:"right-text",onClick:S},[l.rightText]);w.push(I)}if(r.slots.rightIcon){const I=t.h("view",{class:"right-icon",onClick:A},[r.slots.rightIcon()]);w.push(I)}else if(l.rightIcon){const I=t.h("view",{class:"right-icon",onClick:A},[t.h(l.rightIcon)]);w.push(I)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__right"},w)},T=()=>{if(!l.titleShow)return null;const w=[],I=r.slots.default?r.slots.default():null;if(I)w.push(I);else{if(l.title){const P=t.h("view",{class:"title-text"},[l.title]);w.push(P)}if(r.slots.titleIcon){const P=t.h("view",{class:"title-icon",onClick:C},[r.slots.titleIcon()]);w.push(P)}else if(l.titleIcon){const P=t.h("view",{class:"title-icon",onClick:C},[t.h(l.titleIcon)]);w.push(P)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__title"},w)},B=()=>{const w=[],I=r.slots.bottom?r.slots.bottom():null;return I&&w.push(I),w.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},w)};return()=>{if(!m.value)return null;const w=[];if(r.slots.all)w.push(r.slots.all());else{const P=[],$=V();$&&P.push($);const x=T();x&&P.push(x);const K=N();if(K&&P.push(K),P.length>0){const W=t.h("view",{class:d.value},P);w.push(W)}const D=B();D&&w.push(D)}if(w.length===0)return null;const I={class:p.value,style:u.value,ref:y};return t.h("view",I,w)}}}),{componentName:Ti,create:$i,scope:Ei}=X("header-bar"),Uo=$i(Vi(Ti,Ei,oe.Left,!1)),xi=Symbol.for("InnerPageScopeKey");function Di(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,l){const r=He(),s=r?Nn(r):null,i=t.inject(xi,!1),c=e,f=t.computed(()=>{const b={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(b[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),b}),p=o.height!==null&&o.height!==void 0?ie(o.height):null,d=t.computed(()=>{const b={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const u=Le(o.padding??s.footerPadding);return Object.assign(b,u),p&&(s.footerHeight=p),s.footerHeight>0&&(b.height=s.footerHeight),b.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,b.safeAreaBottom>0&&(b.bottom=b.safeAreaBottom+(u.bottom??0),b.height&&b.height>0&&(b.height=b.height+b.safeAreaBottom)),b}if(p&&(b.height=p),o.padding){const u=Le(o.padding);Object.assign(b,u)}return b}),h=t.ref(null),v=()=>{if(s&&h.value&&!kn(h.value)){if(!a){const b=Vn(h.value);s.footerAllHeight=b.height}return s.footerMounted=!0,!0}return!1};let y=null;t.onMounted(()=>{s&&(Fo(v,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{v()}),y.observe(h.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,y&&(y.disconnect(),y=null))});const k=t.computed(()=>{const b={};return d.value.height!==null&&d.value.height!==void 0&&(b.height=he(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(b.paddingTop=he(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(b.paddingLeft=he(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(b.paddingRight=he(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(b.paddingBottom=he(d.value.bottom)),b});return()=>{const b=l.slots.default?l.slots.default():[],u={ref:h,class:f.value,style:k.value};return t.h("view",u,b)}}}}const{componentName:Ii,create:qi,scope:Mi}=X("footer-bar"),Ho=qi(Di(Ii,Mi,!1));function Pi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=He(),l=t.computed(()=>({[e]:!0})),r=o?Nn(o):null,s=t.computed(()=>{const f={};if(o&&r){if(a.padding){const u=Le(a.padding);Object.assign(r.contentPadding,u)}const p=Bn(o,r),d=An(o,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",p),console.debug("[content]footer height:",d),console.debug("[content]padding:",r.contentPadding),f.height=h;let v=(r&&r.contentPadding&&r.contentPadding.top)??-1;(v>=0||p>0)&&(v=v<0?0:v,f.paddingTop=`${p+v}px`);let y=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(y>=0||d>0)&&(y=y<0?0:y,f.paddingBottom=`${d+y}px`);const k=(r&&r.contentPadding&&r.contentPadding.left)??-1;k>=0&&(f.paddingLeft=`${k}px`);const b=(r&&r.contentPadding&&r.contentPadding.right)??-1;return b>=0&&(f.paddingRight=`${b}px`),f}if(a.padding){const p=Le(a.padding);p.left&&(f.paddingLeft=`${p.left}px`),p.top&&(f.paddingTop=`${p.top}px`),p.right&&(f.paddingRight=`${p.right}px`),p.bottom&&(f.paddingBottom=`${p.bottom}px`)}return f}),i=t.ref(null),c=yt(()=>{if(r&&i.value){const f=Ko(i.value);r.contentInnerHeight=f.height,r.contentInnerWidth=f.width}},0);return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>s.value,()=>l.value],([])=>{c()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:Li,create:zi,scope:ZB}=X("content"),Fi=zi(Pi(Li));function Ri(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const ne=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},jo=ne(Fi,[["render",Ri]]),vt="GroupStateKey",as=Symbol.for("GroupScopeKey");function Tn(){return t.inject(as,!1)}function $n(e=!0){t.provide(as,e)}function Oi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];xr(l)||(e[o]=l)})}function Ki(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Oi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(vt,r),r}function oo(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(vt);if(!c)return;const f=e.get("groupLayout")??{};a===-1&&(a=f.column??1),o===-1&&(o=f.gutter??0),r||(r=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const p=ie(r),d=ie(s);i||(i=f.type??"grid");const h=()=>{const v=n===""||n===-1,y=ie(n);let k=fe(a);const b=ie(o);if(!v){let g=(y-(k-1)*b)/k;for(;d!==-1&&g>d;)k++,g=(y-(k-1)*b)/k;for(;p!==-1&&k>1&&g<p;)k--,g=(y-(k-1)*b)/k}let u=!1;const m=c.layout;m.value.width=n,m.value.column!==k&&(m.value.column=k,u=!0),m.value.gutter!==b&&(m.value.gutter=b,u=!0),m.value.type!==i&&(m.value.type=i,u=!0),u&&t.triggerRef(m)};if(l)h();else{const v=++c.passport;setTimeout(()=>{v===c.passport&&h()},50)}}function En(e,n=!1){let a;return n?a=e.getForParent(vt):a=e.get(vt),a.layout}function xn(e,n=!1){let a;return n?a=e.getForParent(vt):a=e.get(vt),a.order}function za(e,n=1){if(n==="stretch")return-1;const a=fe(n);return a===-1?100:100*a/e}function Dn(e,n,a=1,o=0,l){const r={};let s=0;l?s=ie(l):s=za(n.column,a),s>0&&(r.width=`${s}%`);const i=za(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 In(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,f=c+(n.column-c);return e.index=e.index+(f-c),{"grid-column":`${c+1} / -1`}}let l=fe(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=fe(o)%n.column;let s=(e.index+r)%n.column,i=s+l;return i>n.column?(s=0,i=s+l,e.index=e.index+(n.column-s)+l):e.index=e.index+r+l,r>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const rs=Symbol("RollingStateKey");function Ui(e){t.provide(rs,e)}function Hi(){return t.inject(rs,null)}function Co(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function ji(e){let n=Co(e);if(n<=0){const a=e.cloneNode(!0),o=e.offsetWidth;a.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=Co(a),document.body.removeChild(a)}return n}function Wi(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const Yi={...me,...ns,...os};function Xi(e,n,a){return{props:Yi,emits:["update:collapse"],setup(o,l){const r=Ro(o.name,o,ls),s=Ki(r,{type:o.type}),i=Tn();$n(!0);const c=o.rollingDisplay?Hi():null,f=t.ref(null),p=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),d=t.computed(()=>i&&r?En(r,!0).value:null),h=t.getCurrentInstance(),v=(U,G=!1)=>{const Q=h?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(U,!0,G)};t.watch([()=>o.rules,()=>o.pureDataRules],([U,G],[Q,J])=>{if(U&&Q){const z=t.toRaw(Q),ee=t.toRaw(U),te=ee?Reflect.ownKeys(ee):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{te.includes(ce)||(ee[ce]=[])}),v(ee)}if(G&&J){const z=t.toRaw(J),ee=t.toRaw(G),te=ee?Reflect.ownKeys(ee):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{te.includes(ce)||(ee[ce]=[])}),v(ee,!0)}},{deep:!0});const y=e,k=t.computed(()=>{const U={};if(U.height=x.value,o.width)o.width!=="auto"&&(U.width=he(o.width));else{const G=i?xn(r,!0):null;if(d.value&&G){if(d.value.type==="grid"){const Q=In(G,d.value,o.span,o.offset);Object.assign(U,Q)}else if(d.value.type==="flow"){const Q=Dn(G,d.value,o.span,o.offset,o.width);Object.assign(U,Q)}}}return U}),b=t.computed(()=>{const U=s.layout.value.type;return U==="grid"||U==="flow"?{[`${y}--${U}`]:!0,[`${y}--${U}-justify-${o.justify}`]:!0,[`${y}--${U}-align-${o.align}`]:!0,[`${y}--gutter`]:!0}:{[`${y}--${U}`]:!0,[`${y}--gutter`]:!0}}),u=t.computed(()=>{if(s.layout.value.type==="grid"){let G="";if(o.columnWidth)G=`repeat(auto-fill, ${o.columnWidth})`;else{const Q=Wi(N.value,s.layout.value.column,s.layout.value.gutter);G=`repeat(${s.layout.value.column}, ${Q})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":G}}}),m=t.toRef(o,"gutter"),g=t.toRef(o,"column"),C=t.computed(()=>i||p.value?!0:pe(o.isWrap)),A=[],S=U=>{A.push(U)},V=()=>{let U=A.length;A.splice(0,U)},N=t.ref(-1),T=U=>{const G=Ko(U).width;G>0&&G!==N.value&&(N.value=G)};oo(r,N.value,g.value,m.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([N,g,m],([U,G,Q])=>{s.order.index=0,oo(r,U,G,Q,!1,o.minItemWidth,o.maxItemWidth,o.type)});const B=t.computed(()=>K.value?o.expandText??"":o.collapseText??""),w=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),I=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!K.value,"is-collapse":K.value})),P=t.ref(),$=t.ref(),x=t.computed(()=>D.value||he(o.height)||""),K=t.ref(!1),D=t.ref(""),W=t.ref(!1);let H=-1;const Z=(U,G=!0)=>{const Q=P.value;if(Q&&K.value!==U){if(H=H===-1?ji(Q):H,W.value=!0,G)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",U||(D.value="",W.value=!1)},U){let J=0;o.collapseHeight?J=o.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(J=$.value.offsetHeight),D.value=`${H}px`,t.nextTick(()=>{D.value=`${J}px`})}else D.value=`${H}px`;else if(U){let J=0;o.collapseHeight?J=o.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(J=$.value.offsetHeight),D.value=`${J}px`}else W.value=!1,D.value=`${H}px`;K.value=U,l.emit("update:collapse",U)}};t.watch(()=>o.collapse,U=>{Z(U)});const _=()=>{j()},j=U=>{U=U??!K.value,Z(U)};$e({toggleCollapse:j,doLayout:()=>{A[0]&&(T(A[0]),oo(r,N.value,g.value,m.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let L=null,E=!0;const F=U=>{if(o.rules){const G=t.toRaw(o.rules);v(G)}if(o.pureDataRules){const G=t.toRaw(o.pureDataRules);v(G,!0)}if(it&&(U&&Z(pe(o.collapse),!1),o.autoLayout&&Array.isArray(A)&&A.length>0)){const G=A[0];T(G),window.ResizeObserver&&(L=new window.ResizeObserver(()=>{T(G)}),L.observe(G))}},M=()=>{L?.disconnect(),L=null},R=!p.value||c?.acquire();R&&(f.value=p.value?!0:null),t.onMounted(()=>{if(R&&(F(E),E=!1),p.value&&c){let U=null,G=c.initialHeight;c.observe(P.value,Q=>{if(Q!==f.value)if(Q)f.value=!0,K.value||(D.value=""),U=setTimeout(()=>{U=null,f.value!==!1&&(F(E),E=!1)},100);else{if(U!==null&&clearTimeout(U),f.value=!1,!K.value)if(E)D.value=c.initialHeight;else{let J=Co(P.value);J<=0?D.value=G:(D.value=`${J}px`,G=D.value)}E||M()}})}}),t.onUnmounted(()=>{L?.disconnect(),c&&c.unobserve(P.value)});const Y=(U="right")=>{const G=[];if(B.value){const ee={class:w.value},te=t.h("span",ee,[B.value]);G.push(te)}const Q={class:I.value},J=o.collapseIcon??a,z=t.h(J,Q);return G.push(z),G.length>0?t.h("div",{class:{[`${y}__header-collapse`]:!0,[`is-${U}`]:!0},onClick:_},G):null},O=(U,G,Q,J)=>{const z={...b.value};return G===0&&(z[`${y}__first`]=!0),Q>=J-1&&(z[`${y}__last`]=!0),t.h("div",{ref:S,key:`${G}`,class:z,style:u.value},U)};return()=>{if(p.value&&f.value!==!0){const z=o.tag||"div";return t.h(z,{ref:P,prop:o.name,class:{[`${y}`]:!0,"is-collapse":W.value},style:k.value},[])}s.order.index=0;const U=[];let G=0;if(l.slots.header){const z={key:`${G++}`,ref:$,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},ee=t.h("div",z,[l.slots.header()]);U.push(ee)}else{const z=[],ee=o.collapsePosition==="left";if(ee&&o.showCollapse){const te=Y("left");te&&z.push(te)}if(o.title||l.slots.title){if(o.showMark){const te={class:{[`${y}__header-mark`]:!0}};o.markColor&&(te.style={background:o.markColor});const ae=t.h("div",te);z.push(ae)}if(l.slots.title){const te=t.h("div",{class:{[`${y}__header-title`]:!0}},[l.slots.title()]);z.push(te)}else if(o.title){const te=t.h("div",{class:{[`${y}__header-title`]:!0}},[o.title]);z.push(te)}}if(l.slots.toolbar&&z.push(l.slots.toolbar()),!ee&&o.showCollapse){const te=Y("right");te&&z.push(te)}if(z.length>0){const te={key:`${G++}`,ref:$,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},ae=t.h("div",te,z);U.push(ae)}}V();const Q=l.slots.default?l.slots.default():[],J=s.layout.value.type;if(J==="grid"){const z=O(Q,G++,0,Q.length);U.push(z)}else if(J==="flow"){const z=O(Q,G++,0,Q.length);U.push(z)}else for(let z=0;z<Q.length;z++){const ee=Q[z],te=O([ee],G++,z,Q.length);U.push(te)}if(C.value){const z=o.tag||"div";return t.h(z,{ref:P,prop:o.name,class:{[`${y}`]:!0,"is-collapse":W.value},style:k.value},[U])}else return U}}}}const{componentName:Qi,create:Gi,scope:Zi}=X("group"),Wo=Gi(Xi(Qi,Zi,oe.RectUp));function Ji(e){return e===window}const _i=/matrix\((.+)\)/,ss=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Ji(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,s=0,i=0,c=0;for(l=n;l!==document;){s+=l.scrollTop,r+=l.scrollLeft;const{transform:f}=window.getComputedStyle(l);if(f){const p=_i.exec(f);if(p){let h=p[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}l=l.parentNode}return a-=r,o-=s,a+=i,o+=c,{x:a,y:o}};class ec{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class tc{monitorRegister=new WeakMap;watch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new ec,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(a),o=o.parentNode}}unwatch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const Fa=new tc,is={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:nc,create:oc}=X("price"),lc=oc({props:{...is},setup(e){const n=t.computed(()=>({[nc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ye(e.price)==0?"":yn(e.price,e.decimalLength,!0,fe(e.digits),e.separator)),l=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),ac=["innerHTML"],rc=["innerHTML"];function sc(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ac)):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,rc)):t.createCommentVNode("",!0)],2)}const Qe=ne(lc,[["render",sc]]),{componentName:lo,create:ic}=X("hint-text"),cc=ic({components:{Price:Qe},props:{...is,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),l=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),f=(w,I,P,$,x,K)=>{const D=document.documentElement.clientWidth||document.body.clientWidth,W=document.documentElement.clientHeight||document.body.clientHeight,H=w.split("-");let Z=[];H[0]==="top"?Z=["top","bottom","right","left"]:H[0]==="bottom"?Z=["bottom","top","right","left"]:H[0]==="left"?Z=["left","top","bottom","right"]:H[0]==="right"&&(Z=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},j=[];for(let q=0;q<Z.length;q++){const L=Z[q];if(j[0]=L,H[1]&&(j[1]=H[1]),L==="top"){const E=I.y-K-e.arrowSize-e.offset;if(E>=0){_.top=E;let F=0;H[1]==="start"?F=I.x:H[1]==="end"?F=I.x+P-x:F=I.x+P/2-x/2;const M=D-F-x;M<0?(F+=M,d.value=-M):d.value=0,_.left=F<0?0:F;break}}else if(L==="bottom"){const E=I.y+$+e.arrowSize+e.offset;if(E+K<=W){_.top=E;let F=0;H[1]==="start"?F=I.x:H[1]==="end"?F=I.x+P-x:F=I.x+P/2-x/2;const M=D-F-x;M<0?(F+=M,d.value=-M):d.value=0,_.left=F<0?0:F;break}}else if(L==="left"){const E=I.x-x-e.arrowSize-e.offset;if(E>=0){_.left=E;let F=0;H[1]==="start"?F=I.y:H[1]==="end"?F=I.y+$-K:F=I.y+$/2-K/2,_.top=F<0?0:F;break}}else if(L==="right"){const E=I.x+P+e.arrowSize+e.offset;if(E+x<=D){_.left=E;let F=0;H[1]==="start"?F=I.y:H[1]==="end"?F=I.y+$-K:F=I.y+$/2-K/2,_.top=F<0?0:F;break}}}return{bestPlacement:j.join("-"),bestInsetRect:_}},p=(w,I,P=10)=>{if(!it||I===!1||!w)return;o.value=ss(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const $=c.value.offsetHeight,x=c.value.offsetWidth,{bestPlacement:K,bestInsetRect:D}=f(e.placement,o.value,l.value,r.value,x,$);s.value=K,a.value=D,i.value=!0},d=t.ref(0),h=yt(()=>{p(e.message,e.visible)},10),v=t.ref(e.visible);t.watch(()=>e.visible,w=>{v.value=w});const y=t.computed(()=>v.value&&k.value),k=t.ref(!0),b=yt(w=>{const I=w[0];I&&(k.value=I.isIntersecting)},10),u=new IntersectionObserver(b);t.watch([()=>e.message,()=>e.visible],([w,I])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Fa.watch(e.reference,h),u.observe(e.reference)}),t.onBeforeMount(()=>{Fa.unwatch(e.reference,h),u.unobserve(e.reference),u.disconnect()});const m=t.computed(()=>{const w={[lo]:!0};return s.value.startsWith("top")?w["is-top"]=!0:s.value.startsWith("right")?w["is-right"]=!0:s.value.startsWith("bottom")?w["is-bottom"]=!0:s.value.startsWith("right")&&(w["is-right"]=!0),e.size==="small"?w["is-small"]=!0:e.size==="large"&&(w["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(w[`${e.customClass}`]=!0),w}),g=t.computed(()=>{const w={};a.value.top!==null&&(w.top=`${a.value.top}px`),a.value.right!==null&&(w.right=`${a.value.right}px`),a.value.bottom!==null&&(w.bottom=`${a.value.bottom}px`),a.value.left!==null&&(w.left=`${a.value.left}px`),e.autoFit&&(w["min-width"]=`${l.value}px`);const I=document.documentElement.clientWidth||document.body.clientWidth;return w["max-width"]=`${I}px`,i.value&&(w.opacity="1"),e.transition||(w.transition="none"),e.zIndex&&(w["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(w,e.customStyle),w}),C=t.computed(()=>{const w=[`${lo}__content`];return e.customTextClass&&w.push(e.customTextClass),w}),A=t.computed(()=>{const w={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(w,e.customTextStyle),w}),S=t.computed(()=>({[`${lo}__arrow`]:!0})),V=t.computed(()=>{const w={};return e.showArrow?(w.width=`${e.arrowSize}px`,w.height=`${e.arrowSize}px`,s.value==="top"?(w.left="50%",w.bottom=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="top-start"?(w.left=`${e.arrowOffset+d.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(w.right=`${e.arrowOffset-d.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="right"?(w.left=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="right-start"?(w.left=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="right-end"?(w.left=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(w.left="50%",w.top=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(w.left=`${e.arrowOffset+d.value}px`,w.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(w.right=`${e.arrowOffset-d.value}px`,w.top=`-${e.arrowSize}px`):s.value==="left"?(w.right=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="left-start"?(w.right=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="left-end"&&(w.right=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`),w):{display:"none"}}),N=t.computed(()=>y.value&&e.closeOnClick),T=t.computed(()=>{const w={};return e.zIndex&&(w["z-index"]=`${e.zIndex}`),w});return{show:y,tipRef:c,classes:m,styles:g,textClasses:C,textStyles:A,arrowClasses:S,arrowStyles:V,overlayShow:N,overlayStyle:T,onClickOverlay:()=>{v.value=!1,n.emit("update:visible",!1)}}}}),uc=["innerHTML"];function dc(e,n,a,o,l,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,uc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const cs=ne(cc,[["render",dc]]);class qn{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 wo={},fc=new qn,ht=new Map,hn=e=>{if(e){const n=document.getElementById(e);ht.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of ht.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}ht.clear()}},mc=e=>{e.unmount=hn;const n=document.getElementById(e.id);if(n){const a=ht.get(e.id);a?e={...wo,...a,...e}:e={...wo,...e},e.transition=!1;const o=t.createVNode(cs,e);return t.render(o,n),e.id}},pc=e=>{e.unmount=hn;let n=e.id??`hinttext_${fc.get()}`;e={...wo,...e},e.id=n,ht.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(cs,e);return t.render(o,a),document.body.appendChild(a),n},hc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Bt={show(e,n,a={},o=!0){hc(n);const l=a.id;return l&&ht.has(l)?mc({...a,message:n,reference:e}):(o&&hn(),pc({...a,message:n,reference:e}))},hide(e){hn(e)},install(e){e.config.globalProperties.$hintText=Bt}};function gc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...me,...ge},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Ne({componentName:e,validate:!1},s);const i=He(),c=Tn();$n(!1);const f=t.computed(()=>c&&i?En(i,!1).value:null),p=e,d=t.ref(null),h=t.computed(()=>{const z={[p]:!0,[`${p}__gutter`]:f.value&&f.value.type!=="flow",[`${p}__stretch`]:l.span==="stretch",[`${p}__input--border`]:pe(l.hasBorder)};if(z[l.errorMarkClass]=!!K.value,z[l.warnMarkClass]=!!$.value,z[l.infoMarkClass]=!!I.value,typeof d.value=="function"){const ee=d.value(s);z[ee]=!0}else if(typeof d.value=="string"){const ee=d.value;z[ee]=!0}return z}),v=t.ref(null),y=t.computed(()=>{const z={};if(l.width)l.width!=="auto"&&(z.width=he(l.width));else{const ee=c&&i?xn(i,!1):null;if(f.value&&ee){if(f.value.type==="grid"){const te=In(ee,f.value,l.span,l.offset);Object.assign(z,te)}else if(f.value.type==="flow"){const te=Dn(ee,f.value,l.span,l.offset,l.width);Object.assign(z,te)}}}if(typeof v.value=="function"){const ee=v.value(s);ee&&Object.assign(z,ee)}else if(v.value&&typeof v.value=="object"){const ee=v.value;Object.assign(z,ee)}return z}),k=t.ref(null),b=t.computed({get:()=>k.value??pe(l.isRequired),set:z=>{k.value=z}}),u=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",m=Be(t.toRef(l,"labelPosition"),"labelPosition",mn.Near),g=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),C=t.computed(()=>({[`${p}__main`]:!0,[`${p}__main--${g.value}`]:!0})),A=t.computed(()=>({label:!0,[`label--${g.value}`]:!0})),S=Be(t.toRef(l,"labelWidth"),"labelWidth",mn.Near),V=t.computed(()=>S&&S.value?{width:he(S.value)}:{}),N=t.computed(()=>({"label--string":!0,"label--required":b.value})),T=t.computed(()=>({content:!0,[l.contentClass]:!0})),B=t.computed(()=>({...l.contentStyle})),w=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(z){b.value=z},setErrorTip(z){w.errorTip=z},setErrorIcon(z){w.errorIcon=z},setWarnTip(z){w.warnTip=z},setWarnIcon(z){w.warnIcon=z},setInfoTip(z){w.infoTip=z},setInfoIcon(z){w.infoIcon=z},setCustomClassName(z){d.value=z},setCustomStyle(z){v.value=z}});const I=t.computed(()=>l.infoTip||w.infoTip),P=t.computed(()=>l.infoIcon||w.infoIcon),$=t.computed(()=>l.warnTip||w.warnTip),x=t.computed(()=>l.warnIcon||w.warnIcon),K=t.computed(()=>l.errorTip||w.errorTip),D=t.computed(()=>l.errorIcon||w.errorIcon),W=t.computed(()=>K.value?"error":$.value?"warn":I.value?"info":""),H=()=>W.value.length>0,Z=t.computed(()=>W.value==="error"?K.value:W.value==="warn"?$.value:W.value==="info"?I.value:""),_=t.computed(()=>W.value==="error"?D.value:W.value==="warn"?x.value:W.value==="info"?P.value:null),j=t.computed(()=>{const z={[`${p}__tip`]:!0,[`${p}__tip--${W.value}`]:!0,[`${p}--animate`]:!0};return W.value==="error"&&l.errorClass?z[`${l.errorClass}`]=!0:W.value==="warn"&&l.warnClass?z[`${l.warnClass}`]=!0:W.value==="info"&&l.infoClass&&(z[`${l.infoClass}`]=!0),z}),q=t.computed(()=>{const z={};return m&&m.value==="top"||!u()?z["padding-left"]="0px":S&&S.value&&(z["padding-left"]=he(S.value)),z}),L=t.ref();let E="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([z,ee,te,ae])=>{L.value&&(z&&!ue(ee)?E?a.show(L.value,ee,{...ae,id:E,type:te},!0):E=a.show(L.value,ee,{...ae,type:te},!0):a.hide(E))});let F=null;const M=()=>{F||!L.value||(F=new IntersectionObserver(z=>{let ee=!1;for(let te of z)if(te.intersectionRatio>0){ee=!0,ee&&r.emit("appear",te);break}ee||r.emit("disappear")}),F.observe(L.value))},R=()=>{!F||!L.value||(F.unobserve(L.value),F=null)};t.watch(()=>pe(l.appearListen),z=>{z?M():R()}),t.onMounted(()=>{pe(l.appearListen)&&M()}),t.onUnmounted(R);const Y=()=>{if(!u())return null;const z=[],ee=r.slots?.label?.()??l.label,te={class:N.value},ae=t.h("div",te,[ee]);if(z.push(ae),r.slots.fixedPreTip){const Ee=r.slots.fixedPreTip();z.push(Ee)}const ce={class:A.value,style:V.value};return t.h("div",ce,z)},O=()=>{const z=[];if(r.slots.prepend){const te=r.slots.prepend();z.push(te)}if(r.slots.default){const te=r.slots.default();z.push(te)}if(r.slots.append){const te=r.slots.append();z.push(te)}if(r.slots.fixedTip){const te={class:[`${p}__fixed-tip`]},ae=t.h("div",te,[r.slots.fixedTip()]);z.push(ae)}const ee={ref:L,class:T.value,style:B.value};return t.h("div",ee,z)},U=()=>{const z=_.value;return z?typeof z=="function"?t.h("div",{class:"fox-item__tip--icon"},[z()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(z)]):null},G=()=>{const z=Z.value;return z?typeof z=="function"?t.h("div",{class:"fox-item__tip--text"},[z()]):t.h("div",{class:"fox-item__tip--text"},[z]):null},Q=()=>{if(!H())return null;const z=[],ee=U();ee&&z.push(ee);const te=G();te&&z.push(te);const ae={class:j.value,style:q.value};return t.h("div",ae,z)},J=()=>r.slots?.hide?.()??null;return()=>{const z=[],ee=[],te=Y();te&&ee.push(te);const ae=O();ae&&ee.push(ae);const ce={class:C.value},Ee=t.h("div",ce,ee);z.push(Ee);const De=Q();De&&z.push(De);const _e=J();_e&&z.push(_e);const Zn={class:h.value,style:y.value,prop:l.prop};return t.h("div",Zn,z)}}}}const{componentName:yc,create:vc,scope:bc}=X("item"),Se=vc(gc(yc,bc,Bt,!1));function kc(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=He(),i=Tn();$n(!1);const c=t.computed(()=>{const f={};if(a.width)a.width!=="auto"&&(f.width=he(a.width));else if(i&&s){const p=En(s,!1),d=xn(s,!1);if(p.value&&d){if(p.value.type==="grid"){const h=In(d,p.value,a.span,a.offset);Object.assign(f,h)}else if(p.value.type==="flow"){const h=Dn(d,p.value,a.span,a.offset,a.width);Object.assign(f,h)}}}return f});return()=>{const f=[];if(o.slots.default){const d=o.slots.default();if(a.divide)for(let h=0;h<d.length;h++){if(h>0){const v=t.h("div",{class:{[`${l}__divide`]:!0}});f.push(v)}f.push(d[h])}else Reflect.apply([].push,f,d)}const p={class:r.value,style:c.value};return t.h("div",p,f)}}}}const{componentName:Sc,create:Cc,scope:JB}=X("row-item"),Yo=Cc(kc(Sc));function wc(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(a,o){const l=He(),r=Tn();$n(!1);const s=t.computed(()=>r&&l?En(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),f=t.computed(()=>{const p={};if(a.width)a.width!=="auto"&&(p.width=he(a.width));else{const d=r&&l?xn(l,!1):null;if(s.value&&d){if(s.value.type==="grid"){const h=In(d,s.value,a.span,a.offset);Object.assign(p,h)}else if(s.value.type==="flow"){const h=Dn(d,s.value,a.span,a.offset,a.width);Object.assign(p,h)}}}return p});return()=>{const p={class:c.value,style:f.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",p,o.slots.default()):t.h("div",p)}}}}const{componentName:Nc,create:Bc,scope:_B}=X("slot-item"),Xo=Bc(wc(Nc)),Ra={type:{type:String,default:"text"},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Ac(e,n,a,o){return{props:{...me,...ge,...Ra},emits:["change","update:modelValue","blur","focus","clear"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),{toLocaleRefs:f}=re.useFoxI18n(n),p=f(l,["placeholder"]),d=t.ref(!1),h=xe(l,"modelValue"),v=e,y=t.computed(()=>({[v]:!0,[`${v}--disabled`]:s.value,[`${v}--readonly`]:i.value})),k=Be(t.computed(()=>l.textAlign),"textAlign"),b=t.computed(()=>{const x={};return k.value&&(x["text-align"]=k.value),x}),u=x=>{let D=x.target.value;l.type==="digit"&&(D=vo(D,!0)),l.type==="number"&&(D=vo(D,!1)),l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),h.value=D,c("update:modelValue",D,x),c("change",D,x)};let m=xe(l,"hintText"),g=t.ref(!1);const C=x=>{let D=x.target.value;d.value=!0,ue(m.value)||(g.value=!0),c("focus",D,x)},A=x=>{setTimeout(()=>{g.value&&(g.value=!1),d.value=!1},0);let D=x.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),c("blur",D,x)},S=t.computed(()=>({[`${v}__append`]:!0})),V=t.computed(()=>{const x={};return r.slots.append&&!N.value&&!P.value&&(x.display="none"),x}),N=t.computed(()=>ye(l.unit)>0),T=t.computed(()=>!P.value),B=t.computed(()=>({[`${v}__unit`]:!0,hidden:!T.value})),w=x=>{h.value="",c("update:modelValue","",x),c("change","",x),c("clear","")},I=t.computed(()=>pe(l.clearable)&&!s.value&&!i.value),P=t.computed(()=>{let x=ye(h.value)>0;return pe(l.clearable)&&x&&d.value}),$=t.computed(()=>({action:!0,hidden:!P.value}));return()=>{const x={class:y.value,style:b.value,type:l.type,maxlength:l.maxLength,placeholder:p.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:u,onFocus:C,onBlur:A},K=[],D=t.h("input",x);K.push(D);const W=[];if(I.value){const E={class:["action-icon"]},F=t.h(o,E),M={class:$.value,onClick:w},R=t.h("view",M,{default:()=>[F]});W.push(R)}if(N.value){const E=t.h("view",{class:B.value},[l.unit]);W.push(E)}const H={class:S.value,style:V.value},Z=t.h("view",H,{default:()=>W});K.push(Z);const _={default:()=>K};_.label=r.slots.default,_.prepend=r.slots.prepend,_.append=r.slots.append,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const q={...Nt(l,Ra),hintText:m.value,hintVisible:g.value,prop:`${l.prop}_item`};return t.h(a,q,_)}}}}const{componentName:Vc,create:Tc,scope:$c}=X("input-item"),Qo=Tc(Ac(Vc,$c,Se,oe.CircleClose));function Oa(e,n=0){let a=`${e}`,o=a.indexOf(".");if(o==-1)return a;let l=o;for(let r=a.length-1;r>=o;r--)if(a.charAt(r)!="0"){l=r;break}return l-o<n?l=o+n+1:l!=o&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function Ka(e,n,a=20){if(typeof n=="string"&&(n=fe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Tr(`${e}`,`${n}`);return Oa(o)}else{let o=Lo(`${e}`,$r(`${n}`),20);return Oa(o)}}function Ec(e,n=-1,a=!1,o=3,l=","){return yn(e,n,a,o,l)}function Ua(e,n,a,o,l=!0){if(e=="")return"";if(e=Er(e),n=fe(n),n==1)return e;if(o)e=Ka(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(fe(a)+2,"0"):e=Lo(e,1,fe(a)));else{let r=-1*n;e=Ka(e,r)}return e}function Ha(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=pe(n.minInclude),l=ho(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=pe(n.maxInclude),l=ho(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const ja={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 xc(e,n,a,o){return{props:{...me,...ge,...ja},emits:["change","update:modelValue","blur","focus","clear"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=t.ref(!1),p=xe(l,"modelValue"),d=t.ref("");t.watch([()=>p.value,()=>l.rates,()=>l.precision],([H,Z,_])=>{if(ue(H)){d.value="";return}const j=Ua(H,Z,_,!1);d.value!==j&&(d.value=j)},{immediate:!0});const h=t.computed(()=>{let H="";return f.value&&(H=d.value),H}),{t:v}=re.useFoxI18n(n),y=t.computed(()=>{let H=l.placeholder??"";return!f.value&&!ue(d.value)?H=Ec(d.value,l.decimalLength,l.autoPadding,l.digits,l.separator):H=ue(H)?v(["placeholder"]):H,H}),k=e,b=t.computed(()=>({[k]:!0,[`${k}--disabled`]:s.value,[`${k}__placeholder`]:d.value.length>0})),u=Be(t.computed(()=>l.textAlign),"textAlign"),m=t.computed(()=>{const H={};return u.value&&(H["text-align"]=u.value),H}),g=t.ref(""),C=t.computed(()=>{let H=g.value;return ue(H)&&(H=l.errorTip??""),H}),A=t.ref(""),S=t.ref(!1),V=H=>{let _=H.target.value;if(ue(_)){d.value="",p.value="",c("update:modelValue","",H),c("change","",H),pe(l.showTip)&&S.value&&(S.value=!1);return}if(_.length>=2){let j=_;if(j.charAt(0)=="-"&&(j=j.substring(1)),j.length>=2&&j.charAt(0)=="0"&&j.charAt(1)!="."){t.triggerRef(d);return}}if(_!="-"){if(!Fr(_)){t.triggerRef(d);return}if(l.integerLength!=-1&&Rr(_)>Number(l.integerLength)){t.triggerRef(d);return}if(l.decimalLength&&l.decimalLength!=-1&&Or(_)>Number(l.decimalLength)){t.triggerRef(d);return}let j=Ha(_,l);if(j.maxValid===!1){g.value=j.message,t.triggerRef(d);return}}else if(l.min!=null&&fe(l.min)>=0){t.triggerRef(d);return}A.value=_,pe(l.showTip)&&(S.value=_.length>0),d.value=_,p.value=Ua(_,l.rates,l.precision,!0),c("update:modelValue",p.value,H),c("change",p.value,H)},N=H=>{if(f.value=!0,pe(l.showTip)){let Z=d.value;ue(Z)&&(Z=l.hintText),ue(Z)||(A.value=Z,S.value=!0)}g.value="",c("focus",p.value,H)},T=H=>{if(setTimeout(()=>{f.value=!1,pe(l.showTip)&&S.value===!0&&(S.value=!1)},0),!ue(d.value)){let Z=Ha(d.value,l);if(Z.minValid===!1||Z.maxValid===!1){g.value=Z.message;return}}c("update:modelValue",p.value,H),c("blur",p.value,H)},B=t.computed(()=>({[`${k}__append`]:!0})),w=t.computed(()=>{const H={};return r.slots.append&&!I.value&&!D.value&&(H.display="none"),H}),I=t.computed(()=>ye(l.unit)>0),P=t.computed(()=>!D.value),$=t.computed(()=>({[`${k}__unit`]:!0,hidden:!P.value})),x=H=>{p.value="",c("update:modelValue","",H),c("change","",H),c("clear","")},K=t.computed(()=>pe(l.clearable)&&!s.value&&!i.value),D=t.computed(()=>{let H=ye(p.value)>0;return pe(l.clearable)&&H&&f.value}),W=t.computed(()=>({action:!0,hidden:!D.value}));return()=>{let H={class:b.value,style:m.value,type:"digit",maxlength:l.maxLength,placeholder:y.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:V,onFocus:N,onBlur:T},Z=[],_=t.h("input",H);Z.push(_);let j=[];if(K.value){const Y={class:["action-icon"]},O=t.h(o,Y),U={class:W.value,onClick:x},G=t.h("view",U,{default:()=>[O]});j.push(G)}if(I.value){const Y=t.h("view",{class:$.value},[l.unit]);j.push(Y)}const q={class:B.value,style:w.value},L=t.h("view",q,{default:()=>j});Z.push(L);const E={default:()=>Z};E.label=r.slots.default,E.prepend=r.slots.prepend,E.append=r.slots.append,E.fixedPreTip=r.slots.fixedPreTip,E.fixedTip=r.slots.fixedTip;let M={...Nt(l,ja),errorTip:C.value,hintText:A.value,hintVisible:S.value,hintType:"number",prop:`${l.prop}_item`};return t.h(a,M,E)}}}}const{componentName:Dc,create:Ic,scope:qc}=X("money-item"),Go=Ic(xc(Dc,qc,Se,oe.CircleClose)),No={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:Mc,create:Pc,scope:Lc}=X("textarea"),zc=Pc({props:{...No},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=re.useFoxI18n(Lc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=Mc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=l.value;h.style.height="auto";let v=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:y,minHeight:k}=e.autosize;y!==void 0&&(v=Math.min(v,y)),k!==void 0&&(v=Math.max(v,k))}v&&(h.style.height=v+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,v)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,v),n("change",h,v)};return{...o,textareaRef:l,classes:r,styles:s,change:h=>{const v=h.target;c(v.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let y=h.target.value;c(y,h),n("blur",{value:y,event:h})}}}}),Fc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Rc={key:0,class:"fox-textarea__limit"};function Oc(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...s)=>e.change&&e.change(...s)),onBlur:n[1]||(n[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[2]||(n[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Fc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Rc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Mn=ne(zc,[["render",Oc]]);function Kc(e,n,a,o){return{props:{...me,...ge,...No},emits:["update:modelValue","change","blur","focus"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=xe(l,"modelValue"),p=k=>{f.value=k,c("update:modelValue",k,{}),c("change",k,{})};let d=xe(l,"hintText"),h=t.ref(!1);const v=k=>{ue(d.value)||(h.value=!0),c("focus",f.value,k)},y=k=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",f.value,k)};return()=>{const b={...ve(l,No),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":p,onFocus:v,onBlur:y},u=[],m=t.h(o,b);u.push(m);const g={default:()=>u};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 C=ve(l,ge,me);return t.h(a,{...C,prop:`${l.prop}_item`},g)}}}}const{componentName:Uc,create:Hc,scope:jc}=X("textarea-item"),Zo=Hc(Kc(Uc,jc,Se,Mn));function Wc(e){return e===window}const Ve=e=>{const n=t.unref(e);if(Wc(n)){const a=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},ze={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},us=2e3;let Wa=us;const Yc=(e,n)=>({components:n,props:{...ze},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:o}){const l=t.reactive({zIndex:a.zIndex,showSlot:!0,closed:a.closeable}),r=t.computed(()=>({[e]:!0,round:a.round,[`fox-popup--${a.position}`]:!0,[`fox-popup--${a.position}--safebottom`]:a.position==="bottom"&&a.safeAreaInsetBottom,[a.popClass]:!0})),s=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),i=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{a.zIndex!==us&&(Wa=Number(a.zIndex)),o("update:visible",!0),l.zIndex=++Wa,a.destroyOnClose&&(l.showSlot=!0),o("open")},f=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},p=k=>{o("click-pop",k)},d=k=>{k.stopPropagation(),o("click-close-icon",k),o("update:visible",!1)},h=k=>{o("click-overlay",k),a.closeOnClickOverlay&&o("update:visible",!1)},v=k=>{o("opend",k)},y=k=>{o("closed",k)};return t.watch(()=>a.visible,k=>{a.visible?c():f()}),t.watch(()=>a.closeable,k=>{l.closed=k}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:p,onClickCloseIcon:d,onClickOverlay:h,onOpened:v,onClosed:y}}});let $t=0;const Ya="fox-overflow-hidden",Xa=()=>it?document.body:{classList:[]},Xc=e=>[()=>{if(e())try{!$t&&Xa().classList.add(Ya),$t++}catch{}},()=>{if(e()&&$t)try{$t--,!$t&&Xa().classList.remove(Ya)}catch{}}],Qc={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:Gc,create:Zc}=X("overlay"),Jc=Zc({props:{...Qc},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=Xc(()=>e.lockScroll),l=t.computed(()=>({[Gc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,i=>{i?a():o()}),{classes:l,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function _c(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const rt=ne(Jc,[["render",_c]]),{componentName:eu,create:tu}=X("popup"),nu=tu(Yc(eu,{FoxOverLay:rt,Close:oe.Close}));function ou(e,n,a,o,l,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const de=ne(nu,[["render",ou]]),Qa=10;function ds(e,n){return e>n&&e>Qa?"horizontal":n>e&&n>Qa?"vertical":""}function Jo(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function _o(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const f=s.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const c=s;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=ds(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const f=s.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const c=s;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function Je(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),f=t.ref(0),p=t.ref(""),d=()=>p.value==="vertical",h=()=>p.value==="horizontal",v=()=>{s.value=0,i.value=0,c.value=0,f.value=0,p.value="",a.value=0};return{move:b=>{if(b.touches){const g=b.touches[0];s.value=g.clientX-e.value,i.value=g.clientY-n.value,l.value=g.clientX,r.value=g.clientY}else{const m=b;s.value=m.clientX-e.value,i.value=m.clientY-n.value,l.value=m.clientX,r.value=m.clientY}c.value=Math.abs(s.value),f.value=Math.abs(i.value),o.value=Date.now()-a.value,p.value||(p.value=ds(c.value,f.value))},start:b=>{if(v(),b.touches){const g=b.touches[0];e.value=g.clientX,n.value=g.clientY}else{const m=b;e.value=m.clientX,n.value=m.clientY}a.value=Date.now()},reset:v,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:f,direction:p,isVertical:d,isHorizontal:h}}const fs={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}},Bo={...ze,...fs,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 ms=36;function lu(){return ms}function au(e){ms=e}function Pe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ao(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function ru(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ga(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let su=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Ze(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function iu(){const e=t.getCurrentInstance();return new su(e.proxy)}function Za(e,n,a){const o=Pe(e,n),l=Pe(e,a);if(o!==l)return!1;const r=st(e,n),s=st(e,a);return r===s}function cu(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=n[s];let f=a[s].findIndex(p=>{if(r==="text")return Pe(e,p)===i;if(r==="value"){let d=st(e,p);return d==null&&(d=Pe(e,p)),d===i}else if(r==="item")return Za(e,p,i)});if(f==-1)break;l.push(f)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let f=s.findIndex(d=>{if(r==="text")return Pe(e,d)===c;if(r==="value"){let h=st(e,d);return h==null&&(h=Pe(e,d)),h===c}else if(r==="item")return Za(e,d,c)});if(f==-1)break;l.push(f);const p=Ao(e,s[f]);if(!Array.isArray(p))break;s=p}}return l}function Ja(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const f=i[c],p=Pe(e,f);if(l.texts.push(p),l.items.push(f),r==="text")l.values.push(p);else if(r==="value"){let d=st(e,f);d==null&&(d=p),l.values.push(d)}else l.values.push(f)}else{let s=a[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const f=s[c],p=Object.assign({},f);p.children=null;const d=Pe(e,f);if(l.texts.push(d),l.items.push(p),r==="text")l.values.push(d);else if(r==="value"){let h=st(e,f);h==null&&(h=d),l.values.push(h)}else l.values.push(p);if(!Array.isArray(f.children))break;s=f.children}}return l}function _a(e){return{text:e,value:e}}const uu=15,du=300,fu=200,{create:mu}=X("picker-column");function pu(e){e.stopPropagation()}function hu(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&pu(e)}const gu=mu({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},...fs},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${fe(e.visibleItemCount)*+e.itemHeight}px`})),l=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=N=>N>=d.currIndex+8||N<=d.currIndex-8,i=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),c=N=>`transform: rotate3d(1, 0, 0, ${-d.rotation*N}deg) translate3d(0px, 0px, 104px)`,f=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),p=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=t.toRef(e,"source"),v=N=>Pe(e,N),y=N=>st(e,N),k=Je(),b=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},u=(N,T=!1,B=!1)=>{if(d.currIndex=N,T){const w=()=>{d.moving=!1,n("update:modelValue",N),n("change",N)};B?d.transitionEndTrigger=w:w()}},m=(N,T,B)=>{let w=N+d.startDistance;if(T==="end"){const I=-(h.value.length-1)*e.itemHeight;w<I&&(w=I,(!B||B<=0)&&(B=e.swipeDuration)),w>0&&(w=0,(!B||B<=0)&&(B=e.swipeDuration));let P=Math.abs(Math.round(-w/e.itemHeight));const $=-P*e.itemHeight,x=`${(P+1)*d.rotation}deg`,K=B?B>0:!1;u(P,!0,K),g($,T,B,x)}else{let I=(-w/e.itemHeight+1)*d.rotation;const P=(h.value.length+1)*d.rotation,$=0;if(I=Math.min(Math.max(I,$),P),e.threeDimensional&&(I<$||I>P))return;g(w,null,void 0,`${I}deg`)}},g=(N=0,T,B=fu,w)=>{T==="end"?d.scrollTime=B:d.scrollTime=0,d.deg=w,d.scrollDistance=N},C=(N,T)=>(N=Math.abs(N/T)/.003*(N<0?-1:1),N),A=N=>{e.readonly||(d.startDistance=d.scrollDistance,k.start(N),d.transitionEndTrigger=null)},S=N=>{e.readonly||(d.moving=!0,k.move(N),k.isVertical()&&(d.moving=!0,hu(N,!0)),m(k.deltaY.value,"",0))},V=()=>{if(e.readonly)return;const N=k.deltaY.value,T=k.duration.value;if(T<du&&Math.abs(N)>uu){const w=C(N,T);m(w,"end",e.swipeDuration)}else m(N,"end",0)};return t.watch(()=>e.modelValue,N=>{if(d.currIndex!==N){d.currIndex=N;const T=-N*e.itemHeight;m(T)}}),t.onMounted(()=>{const N=-e.modelValue*e.itemHeight;m(N)}),{classes:a,styles:o,contentClasses:l,source:h,itemText:v,itemValue:y,...t.toRefs(d),roller:p,getItemText:Pe,onTouchStart:A,onTouchMove:S,onTouchEnd:V,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:f,stopMomentum:b}}}),yu={key:1,class:"fox-picker__item-tile"};function vu(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",yu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const er=ne(gu,[["render",vu]]),{create:bu,componentName:ku,scope:Su}=X("picker"),Cu=bu({components:{[er.name]:er,[de.name]:de},props:{...Bo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=re.useFoxI18n(Su),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(lu());t.watch(()=>e.visible,B=>{B&&s.value<=0&&setTimeout(()=>{if(r.value){const w=Ve(r.value);s.value=w.height,au(s.value)}},50)});const i=t.computed(()=>({[ku]:!0})),c=iu(),f=t.ref("singleColumn");let p=t.ref([]);t.watch([()=>e.source,()=>e.params],async([B,w])=>{if(B){let I=await c.load("picker",B,w);if(I.length>0){let P=I[0];if(Array.isArray(P)){if(typeof P[0]=="string"){let $=I,x=[];$.forEach(K=>{let D=K.map(W=>_a(W));x.push(D)}),p.value=x}else p.value=I;f.value="multipleColumn"}else if(typeof P=="string"){let $=I,x=[],K=$.map(D=>_a(D));x.push(K),p.value=x,f.value="singleColumn"}else{const $=Ao(e,P);Array.isArray($)?(f.value="cascade",p.value=[I]):(f.value="singleColumn",p.value=[I])}}else p.value=[]}},{immediate:!0});const d=t.ref([]),h=t.ref(e.modelValue),v=t.ref([]),y=t.ref([]);t.watch([()=>e.modelValue,()=>p.value],([B,w])=>{let I=cu(e,B,w,f.value);if(!qe(I,y.value)){y.value=I;let P=Ja(e,I,w,f.value);P&&(d.value=P.texts,n("update:text",d.value))}});const k=t.ref(e.visible);t.watch(()=>e.visible,B=>{k.value=B});const b=B=>{let w=Ga(e,B);return Ae(w)?w.defaultIndex??0:0},u=B=>{if(e.readonly===!0)return!0;let w=Ga(e,B);return Ae(w)?w.readonly??!1:!1},m=(B,w)=>{let I=y.value;I[B]=w;for(let $=0;$<B;$++)I[$]==null&&(I[$]=b($));if(f.value==="cascade")for(let $=B+1;$<C.value.length;$++){let x=b($);$<I.length?I[$]=x:I.push(x)}else for(let $=I.length;$<C.value.length;$++){let x=b($);I.push(x)}y.value=I;let P=Ja(e,I,p.value,f.value);P&&(d.value=P.texts,h.value=P.values,v.value=P.items)},g=B=>B<y.value.length?y.value[B]:b(B),C=t.computed(()=>{if(p.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return p.value;let B=[],w=0,I=p.value[0],P=0;for(;;){let $=I.map(D=>{let W=Object.assign({},D);return ru(e,W,null),W});B.push($),w>=y.value.length?P=0:P=y.value[w],(P<0||P>=I.length)&&(P=0);let x=I[P];const K=Ao(e,x);if(!Array.isArray(K))break;I=K,w++}return B}),A=t.computed(()=>fe(+e.visibleItemCount-1)/2*s.value);return{...l,pickerLineRef:r,classes:i,columns:C,dataType:f,show:k,itemHeight:s,top:A,isReadonly:u,getIndex:g,change:(B,w)=>{m(B,w)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let B=p.value.length-1;for(;B>=0&&!(y.value[B]===null||y.value[B]===void 0);B--);if(B>=0&&m(B,0),f.value==="singleColumn"){let w=h.value.length>0?h.value[0]:"",I=v.value.length>0?v.value[0]:null;e.readonly||(n("update:modelValue",w),n("update:text",d.value),n("change",w,I)),n("confirm",w)}else e.readonly||(n("update:modelValue",h.value),n("update:text",d.value),n("change",h.value,v.value)),n("confirm",h.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}f.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),wu={class:"fox-picker__bar"},Nu={class:"fox-picker__title"},Bu={class:"fox-picker__bar__action"},Au={class:"fox-picker__column"};function Vu(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",wu,[t.createElementVNode("view",Nu,t.toDisplayString(e.title),1),t.createElementVNode("view",Bu,[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",Au,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(f),"column-index":f,modelValue:e.getIndex(f),"onUpdate:modelValue":p=>e.change(f,p),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const bt=ne(Cu,[["render",Vu]]);function Tu(e,n,a,o,l,r,s=!0){return{props:{...me,...ge,...Bo,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const f=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:d}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),v=h(i,["placeholder"]),y=t.ref(!1),k=xe(i,"modelValue"),b=t.ref([]),u=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),m="fox-input-item",g=t.computed(()=>({[m]:!0,[`${m}__disabled`]:f.value})),C=Be(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const L={};return C.value&&(L["text-align"]=C.value),L}),S=t.ref(!1),V=()=>{S.value=!0},N=L=>{S.value=L},T=L=>{k.value=L,d("update:modelValue",L)},B=(L,E)=>{d("change",L,E)},w=L=>{let F=L.target.value;y.value=!0,d("focus",F,L)},I=L=>{setTimeout(()=>{y.value=!1},0);let F=L.target.value;i.maxLength&&F.length>Number(i.maxLength)&&(F=F.slice(0,Number(i.maxLength))),d("blur",F,L)},P=L=>{b.value=L,Array.isArray(L)&&L.length===0?d("update:text",L[0]):d("update:text",L)},$=t.computed(()=>({[`${m}__append`]:!0})),x=t.computed(()=>ye(i.unit)>0),K=t.computed(()=>ye(i.unit)>0&&!y.value),D=t.computed(()=>({hidden:!K.value})),W=L=>{k.value="",d("update:modelValue","",L),d("change","",L),d("clear","")},H=t.computed(()=>i.clearable&&!f.value&&!p.value),Z=t.computed(()=>ye(k.value)>0&&y.value),_=L=>{Z.value?W(L):V()},j=t.computed(()=>Z.value&&H.value?o:l),q=t.computed(()=>({action:!0}));return()=>{const L={class:g.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:v.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:V,onFocus:w,onBlur:I};s&&(L.disabled=!0);const E=[],F=t.h("input",L);E.push(F);const M=[],R={class:["action-icon"]},Y=t.h(j.value,R),O={class:q.value,onClick:_},U=t.h("view",O,{default:()=>[Y]});if(M.push(U),x.value){const ce=t.h("view",{class:D.value},[i.unit]);M.push(ce)}const G={class:$.value},Q=t.h("view",G,{default:()=>M});E.push(Q);const J={default:()=>E};J.label=c.slots.default,J.prepend=c.slots.prepend,J.append=c.slots.append,J.fixedPreTip=c.slots.fixedPreTip,J.fixedTip=c.slots.fixedTip;const z=ve(i,Bo);z.disabled=!1,z.readonly=f.value||p.value,z.visible=S.value,z["onUpdate:visible"]=N,z.modelValue=k.value,z["onUpdate:modelValue"]=T,z.text=b.value,z["onUpdate:text"]=P,z.onChange=B;const ee=t.h(r,z);J.hide=()=>[ee];const te=ve(i,ge,me);return t.h(a,te,J)}}}}const{componentName:$u,create:Eu,scope:xu}=X("picker-item"),el=Eu(Tu($u,xu,Se,oe.CircleClose,oe.ArrowRight,bt,!1)),en=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:f,...p}=o,d={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:f,_parent:n};return d.children&&d.children.length&&(d.children=en(d.children,d,a)),d}),ps=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&ps(o.children,n)},Du={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Iu=(e,n)=>{const a={...Du,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(f=>{f={...f};const{[l]:p,[r]:d}=f,h=c[d]=c[d]||[];!i.length&&d===o&&(i=h),h.push(f),f.children=c[p]||(c[p]=[])}),s&&Object.keys(c).forEach(f=>{c[f].length>1&&c[f].sort((p,d)=>p[s]-d[s])}),c=null,i},qu={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},tr=(e,n)=>n[e.textKey],Et=(e,n)=>n[e.valueKey],Mu=(e,n)=>n[e.visibleKey],nr=(e,n)=>n[e.disabledKey],Pu=(e,n)=>{const a=n[e.doitKey];return pe(a)},Lu=(e,n)=>{const a=n[e.numKey];return a==null?null:fe(n[a])},or=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function zu(e,n,a,o=!1){return{props:{...qu},emits:["update:modelValue","change"],setup(l,{slots:r,emit:s}){const i=t.computed(()=>{const j={};return j[`${e}`]=!0,j}),c=t.computed(()=>{const j={};return j[`${e}__titles`]=!0,j[`${l.direction}`]=!0,l.align==="left"&&(j.left=!0),l.scroll===!0&&(j.scrollable=!0),l.shape&&(j[`${l.shape}`]=!0),j}),f=t.computed(()=>({})),p=t.computed(()=>{if(!l.gutter)return 0;const j=ie(l.gutter);return j<=0?0:j}),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,j=>{d.value!==j&&(d.value=j,D(!1))});const h=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),v=t.computed(()=>{const j={};return k.value||(j.display="none"),j}),y=t.ref(),k=t.ref(!1),b=()=>{const j=!k.value;u(j)},u=j=>{const q=j;q?(k.value=q,setTimeout(()=>{h.value["fox-tabs-bar__popup--show"]=!0,h.value["fox-tabs-bar__popup--hide"]=!1},0)):(h.value["fox-tabs-bar__popup--show"]=!1,h.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{k.value=!1},{once:!0}):setTimeout(()=>{k.value=!1},0))},m=t.ref(),g=t.ref([]),C=(j,q)=>{g.value[q]=j},A=j=>q=>{C(q,j)},S=(j,q)=>{const L=m.value,E=g.value;if(!L||!E||!E[j])return;const F=E[j];let M=0;l.direction==="vertical"?M=F.offsetTop-(L.offsetHeight-F.offsetHeight)/2:M=F.offsetLeft-(L.offsetWidth-F.offsetWidth)/2,V(L,M,q?0:.3,l.direction)},V=(j,q,L,E)=>{let F=0;const M=E==="horizontal"?j.scrollLeft:j.scrollTop,R=L===0?1:Math.round(L*1e3/16);function Y(){E==="horizontal"?j.scrollLeft+=(q-M)/R:j.scrollTop+=(q-M)/R,++F<R&&Re(Y)}Y()},N=(j,q)=>{const L=Et(l,j),E={};return E[`${e}__titles-item`]=!0,E.disabled=nr(l,j),E.active=L===d.value,l.shape&&(E[`${l.shape}`]=!0),l.ellipsis&&(E.ellipsis=!0),q&&(q.class&&(E[`${q.class}`]=!0),q.disabled===!0&&(E.disabled=q.disabled)),E},T=(j,q)=>{const L={};if(p.value>0){const E=Math.abs(p.value/2);l.direction==="vertical"?(L["margin-top"]=`${E}px`,L["margin-bottom"]=`${E}px`):(L["margin-left"]=`${E}px`,L["margin-right"]=`${E}px`)}return q&&q.style&&Object.assign(L,q.style),L},B=(j,q)=>`${Et(l,j)??q}`,w=(j,q)=>{const L=Et(l,j),E={};E[`${e}__popup-item`]=!0,E.disabled=nr(l,j),E.active=L===d.value,l.shape&&(E[`${l.shape}`]=!0);const F=or(l,j,q);return F&&F.disabled===!0&&(E.disabled=F.disabled),E},I=t.computed(()=>(l.data??[]).filter(q=>Mu(l,q)!==!1)),P=(j,q)=>{const L=Et(l,j);if(d.value==L)return;const E=()=>{d.value=L,l.scroll&&S(q,!1),s("update:modelValue",L),s("change",j,q)};if(typeof l.beforeChange=="function"){const F=l.beforeChange(j,q);gt(F)?F.then(M=>{M!==!1&&E()}).catch(()=>{E()}):F!==!1&&E()}else E()},$=(j,q)=>function(){P(j,q)},x=(j,q)=>{P(j,q),u(!1)},K=(j,q)=>function(){x(j,q)},D=j=>{if(!Array.isArray(l.data)||!l.scroll)return;const q=l.data.findIndex(L=>Et(l,L)===d.value);q!==-1&&S(q,j)};t.watch(()=>l.data,()=>{setTimeout(D,0)}),t.onMounted(()=>{D(!0)});const W=(j,q)=>{if(r.item)return r.item({item:j,index:q});const L=or(l,j,q),E=[];if(r.text){const Y=r.text({item:j,index:q});E.push(Y)}else{const Y=[];if(L?.doit===!0||Pu(l,j)){const Q={class:[`${e}__titles-item-tip`,"doit"]},J=t.h("view",Q);Y.push(J)}const O=L?.num??Lu(l,j);if(O){let Q="";const J=fe(O);J>=100?Q="99+":Q=`${J}`;const z={class:[`${e}__titles-item-tip`,"num"]},ee=t.h("view",z,[Q]);Y.push(ee)}const U={class:`${e}__titles-item-text`};Y.push(tr(l,j));const G=t.h("view",U,Y);E.push(G)}const F={class:`${e}__titles-item-line`},M=t.h("view",F);E.push(M);const R={ref:A(q),class:N(j,L),style:T(j,L),key:B(j,q),onClick:$(j,q)};return t.h("view",R,E)},H=()=>{const j=r.default?r.default():[];if(j.length===0)for(let L=0;L<I.value.length;L++){const E=I.value[L],F=W(E,L);j.push(F)}const q={ref:m,class:c.value,style:f.value};return t.h("view",q,j)},Z=()=>{let j=null;r.navigation?j=r.navigation():j=t.h(a);const q={class:`${e}__navigation`,onClick:b};return t.h("view",q,[j])},_=()=>{const j=[];for(let L=0;L<I.value.length;L++){const E=I.value[L];let F=null;r.popupItem?F=r.popupItem({item:E,index:L}):F=tr(l,E);const M={class:w(E,L),key:B(E,L),onClick:K(E,L)},R=t.h("view",M,[F]);j.push(R)}const q={class:h.value,style:v.value};return t.h("view",q,j)};return()=>{const j=[],q=H();if(j.push(q),l.showQuickNavigation){const E=Z();j.push(E);const F=_();j.push(F)}const L={class:i.value};return t.h("view",L,j)}}}}const{create:Fu,componentName:Ru,scope:Ou}=X("tabs-bar"),Pn=Fu(zu(Ru,Ou,oe.MoreH,!1)),hs=Symbol("TabsStatesKey"),Ku={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Uu(e,n,a=!1){return{props:{...Ku},emits:["update:modelValue","change"],setup(o,{emit:l,slots:r}){const s=t.shallowRef([]),i={current:t.ref(o.modelValue??""),direction:t.ref(o.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:k=>{const b={name:k};i.current.value===k&&(b.loaded=!0),s.value.push(b),t.triggerRef(s)},remove:k=>{const b=s.value.findIndex(u=>u.name===k);b!==-1&&s.value.splice(b,1)},isLoaded:k=>{if(!o.lazy)return!0;const b=s.value.findIndex(u=>u.name===k);return b!==-1?i.current.value?s.value[b].loaded??!1:b===0:!1}};t.provide(hs,i);const c=k=>{const b=s.value.findIndex(u=>u.name===k);b!==-1&&(s.value[b].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([k,b])=>{i.current.value!==k&&(i.current.value=k??"",c(k??"")),i.direction.value!==b&&(i.direction.value=b)});const f=t.ref(null),p=t.ref(null),d=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let h=!0;const v=t.computed(()=>{const k={},b=s.value.length;if(b<=0)return k;const u=s.value.findIndex(m=>m.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(k.height=`${b*i.tabHeight.value}px`,u!==-1&&(k.transform=`translate(0, -${u*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(k.width=`${b*i.tabWidth.value}px`,u!==-1&&(k.transform=`translate(-${u*i.tabWidth.value}px, 0)`)),h&&(h=!1,k.transition="transform 0s ease;"),k});let y=null;return t.onMounted(()=>{if(!f.value)return;const k=()=>{const b=Vn(f.value);i.tabWidth.value=b.width,i.tabHeight.value=b.height};window.ResizeObserver&&(y=new window.ResizeObserver(k),y.observe(f.value)),k()}),t.onBeforeUnmount(()=>{y&&(y.disconnect(),y=null)}),()=>{const k={class:`${e}__panes`,style:v.value,ref:p},b=t.h("view",k,[r?.default?.()]),u={class:d.value,ref:f};return t.h("view",u,[b])}}}}const{create:Hu,componentName:ju,scope:Wu}=X("tabs-container"),Ln=Hu(Uu(ju,Wu,!1)),Yu={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Xu(e,n,a){return{props:{...Yu},setup(o,{emit:l,slots:r}){const s=t.inject(hs);t.onMounted(()=>{s.add(o.paneKey)}),t.onBeforeUnmount(()=>{s.remove(o.paneKey)});const i=t.computed(()=>{const f={};return s.direction.value==="vertical"&&s.tabHeight.value>0?f.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(f.width=`${s.tabWidth.value}px`),f}),c=t.computed(()=>o.loaded!=null?pe(o.loaded):s.isLoaded(o.paneKey));return()=>{let f=[];if(c.value)f=r?.default?.()??[];else if(r.empty)f=r.empty();else{const d={class:`${e}__empty-icon`},h=o.emptyIcon??a,v=t.h(h,d),y={class:`${e}__empty-text`},k=o.emptyText??"Loading",b=t.h("view",y,[k]),u={class:`${e}__empty`},m=t.h("view",u,[v,b]);f.push(m)}const p={class:`${e}`,style:i.value};return t.h("view",p,f)}}}}const{create:Qu,componentName:Gu,scope:Zu}=X("tabs-pane"),zn=Qu(Xu(Gu,Zu,oe.Loading));class lr{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=en(n,null,this.config)}updateChildren(n,a){a?a.children=en(n,a,this.config):this.nodes=en(n,null,this.config)}getNodeByValue(n){let a;return ps(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:Ju,scope:_u}=X("cascader-pane"),ed=Ju({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:Pn,TabsContainer:Ln,TabsPane:zn},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(_u),o=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),l=t.ref(0),r=t.ref(!1),s=t.ref(e.modelValue),i=t.ref(new lr([],{})),c=t.ref([]),f=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),p=t.computed(()=>r.value==!0||c.value.length==0?[{text:"Loading",value:0}]:c.value.map((m,g)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:g}))),d=new Map;let h;const v=async()=>{d.clear(),c.value=[],l.value=0,r.value=!1,h=null;let{options:m}=e;o.value.convertConfig&&(m=Iu(m,o.value.convertConfig)),i.value=new lr(m,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),f.value&&!i.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),c.value=[{nodes:i.value.nodes,selectedNode:null}],y()},y=async()=>{const m=s.value;if(m===void 0||!i.value.nodes.length)return;if(m.length===0){l.value=0,c.value=[{nodes:i.value.nodes,selectedNode:null}];return}let g=m;if(f.value&&Array.isArray(m)&&m.length){g=[];let C=i.value.nodes.find(A=>A.value===m[0]);if(C){g=[C.value],r.value=!0;const A=await m.slice(1).reduce(async(S,V)=>{const N=await S;await k(N);const T=N?.children?.find(B=>B.value===V);return T&&g.push(V),Promise.resolve(T)},Promise.resolve(C));await k(A),r.value=!1}}g.length&&m===e.modelValue&&i.value.getPathNodesByValue(g).map((A,S)=>{l.value=S,u.handleNode(A,!0)})},k=async m=>{if(!m)return;if(!o.value.lazyLoad){m.leaf=!0;return}if(i.value.isLeaf(m,f.value)||i.value.hasChildren(m,f.value))return;m.loading=!0;const g=m.root?null:m;let C=d.get(m);C||(C=new Promise(S=>{o.value.lazyLoad?.(m,S)}),d.set(m,C));const A=await C;Array.isArray(A)&&A.length>0?i.value.updateChildren(A,g):m.leaf=!0,m.loading=!1,d.delete(m)},b=m=>{const g=m.map(C=>C.value);s.value=g,n("change",g,m),n("update:modelValue",g,m)},u={async handleNode(m,g){const{disabled:C,loading:A}=m;if(!(!g&&C||!c.value[l.value])){if(i.value.isLeaf(m,f.value)){if(m.leaf=!0,c.value[l.value].selectedNode=m,c.value=c.value.slice(0,m.level+1),!g){const S=c.value.map(V=>V.selectedNode);b(S),n("pathChange",S)}return}if(i.value.hasChildren(m,f.value)){const S=m.level+1;if(c.value[l.value].selectedNode=m,c.value=c.value.slice(0,S),c.value.push({nodes:m.children||[],selectedNode:null}),l.value=S,!g){const V=c.value.map(N=>N.selectedNode);n("pathChange",V)}return}h=m,!A&&(await k(m),h===m&&(c.value[l.value].selectedNode=m,u.handleNode(m,g)))}},handleTabChange(m,g){h=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,g){return m.selectedNode&&m.selectedNode.value===g.value}};return t.watch([o,()=>e.options],()=>{v()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{m!==s.value&&(s.value=m,y())}),t.watch(()=>e.visible,m=>{m&&Array.isArray(s.value)&&s.value.length>0&&y()}),{panes:c,panesTitles:p,initLoading:r,tabsCursor:l,...u}}}),td={class:"fox-cascader"},nd={role:"menu",class:"fox-cascader__pane"},od=["aria-checked","aria-disabled","onClick"],ld={class:"fox-cascader__item__title"},ad=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function rd(e,n,a,o,l,r){const s=t.resolveComponent("TabsBar"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),f=t.resolveComponent("TabsPane"),p=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",td,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(p,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=d=>e.tabsCursor=d)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,h)=>(t.openBlock(),t.createBlock(f,{"pane-key":h,key:h},{default:t.withCtx(()=>[t.createElementVNode("view",nd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,v=>(t.openBlock(),t.createElementBlock("view",{key:v.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,v),disabled:v.disabled}]),"aria-checked":e.isSelected(d,v),"aria-disabled":v.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(v,!1)},[t.createElementVNode("view",ld,t.toDisplayString(v.text),1),v.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(c,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,od))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(f,{key:1,"pane-key":0},{default:t.withCtx(()=>[ad]),_:1}))]),_:1},8,["modelValue"])])}const sd=ne(ed,[["render",rd]]),{create:id}=X("cascader"),cd=id({components:{FoxCascaderPane:sd,FoxPopup:de},props:{...ze,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue),o=t.computed({get(){return e.visible},set(s){n("update:visible",s)}}),l=(s,i)=>{a.value=s,o.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==a.value&&(a.value=s)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),ud=["innerHTML"];function dd(e,n,a,o,l,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,ud)):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 Fn=ne(cd,[["render",dd]]);function Ft(e,n){const a=e.textKey??"text";return n[a]??""}function Rt(e,n){const a=e.valueKey??"value";return n[a]}function gs(e,n){const a=e.childrenKey??"children";return n[a]}function Jt(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=Ft(e,l),s=Rt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function ys(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Ft(e,n[s])===r){const c=Rt(e,n[s])??"",f={[e.textKey]:r,[e.valueKey]:c};l.push(f);const p=gs(e,n[s]);Array.isArray(p)&&ys(e,p,a,o+1,l);return}}function vs(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Rt(e,n[s])===r){const c=Ft(e,n[s])??"",f={[e.textKey]:c,[e.valueKey]:r};l.push(f);const p=gs(e,n[s]);Array.isArray(p)&&vs(e,p,a,o+1,l);return}}function ao(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++){const l=Ft(e,n[o]),r=Ft(e,a[o]);if(l!==r)return!1;const s=Rt(e,n[o]),i=Rt(e,a[o]);if(s!==i)return!1}return!0}let fd=class{proxy;constructor(n){this.proxy=n}async load(n,a){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=Ze(this.proxy,o);return l===null?(console.error(`${o} component not found api function`),[]):(Ae(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await l(n,a))}};function md(){const e=t.getCurrentInstance();return new fd(e.proxy)}const ar={modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function pd(e,n,a,o,l,r,s=!1){return{props:{...me,...ge,...ar},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes"],setup(i,c){const f=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:d}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),v=h(i,["placeholder"]),y=t.ref(!1),k=md(),b=t.ref([]);t.watch([()=>i.source,()=>i.params],async([F,M])=>{F&&(b.value=await k.load(F,M))},{immediate:!0});const u=t.ref([]),m=t.computed(()=>Array.isArray(u.value)?u.value.join(" "):u.value),g=t.ref([]),C=t.ref([]);t.watch([()=>i.modelValue],async([F])=>{if(i.lazy===!0){C.value.length==0&&(u.value=Array.isArray(F)?F:[],g.value=Array.isArray(F)?F:[]);return}if(i.valueType==="item"){let M=F;if(!ao(i,M,C.value)){C.value=M;let R=Jt(i,M);u.value=R.texts,g.value=R.values}}else if(i.valueType==="text"){let M=F,R=[];if(ys(i,b.value,M,0,R),!ao(i,R,C.value)){C.value=R;let Y=Jt(i,R);M.value=Y.texts,g.value=Y.values}}else{let M=[];if(vs(i,b.value,F,0,M),!ao(i,M,C.value)){C.value=M;let R=Jt(i,M);u.value=R.texts,g.value=R.values}}},{immediate:!0});const A="fox-input-item",S=t.computed(()=>({[A]:!0,[`${A}__disabled`]:f.value})),V=Be(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const F={};return V.value&&(F["text-align"]=V.value),F}),T=t.ref(!1),B=()=>{f.value===!0||p.value===!0||(T.value=!0)},w=F=>{T.value=F},I=(F,M)=>{let R=M.map(O=>{if(O==null)return O;let U={...O};return Reflect.deleteProperty(U,"text"),U[i.textKey]=O.text??"",Reflect.deleteProperty(U,"value"),U[i.valueKey]=O.value??"",U});C.value=R;let Y=Jt(i,R);u.value=Y.texts,g.value=Y.values,i.valueType==="text"?(d("change",u.value,R),d("update:modelValue",u.value)):i.valueType==="item"?(d("change",R,R),d("update:modelValue",R)):(d("change",g.value,R),d("update:modelValue",g.value)),d("update:pathNodes",R)},P=F=>{let M=F.map(R=>{if(R==null)return R;let Y={...R};return Reflect.deleteProperty(Y,"text"),Y[i.textKey]=R.text??"",Reflect.deleteProperty(Y,"value"),Y[i.valueKey]=R.value??"",Y});d("pathChange",M)},$=F=>{y.value=!0,d("focus",g.value,F)},x=F=>{setTimeout(()=>{y.value=!1},0),d("blur",g.value,F)},K=t.computed(()=>({[`${A}__append`]:!0})),D=t.computed(()=>ye(i.unit)>0),W=t.computed(()=>ye(i.unit)>0&&!y.value),H=t.computed(()=>({hidden:!W.value})),Z=F=>{C.value=[],u.value=[],g.value=[],d("update:modelValue",[]),d("change",[],F),d("clear",[]),d("update:pathNodes",[])},_=t.computed(()=>i.clearable&&!f.value&&!p.value),j=t.computed(()=>{let F=g.value&&g.value.length>0;return i.clearable&&F&&y.value}),q=F=>{j.value?Z(F):B()},L=t.computed(()=>j.value&&_.value?o:l),E=t.computed(()=>({action:!0}));return()=>{const F={class:S.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:v.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:B,onFocus:$,onBlur:x};s&&(F.disabled=!0);const M=[],R=t.h("input",F);M.push(R);const Y=[],O={class:["action-icon"]},U=t.h(L.value,O),G={class:E.value,onClick:q},Q=t.h("view",G,{default:()=>[U]});if(Y.push(Q),D.value){const De=t.h("view",{class:H.value},[i.unit]);Y.push(De)}const J={class:K.value},z=t.h("view",J,{default:()=>Y});M.push(z);const ee={default:()=>M};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;let te={};te.visible=T.value,te["onUpdate:visible"]=w,te.modelValue=g.value,te.onChange=I,te.onPathChange=P,te.options=b.value,te.title=i.title,te.lazy=i.lazy,te.lazyLoad=i.lazyLoad,te.valueKey=i.valueKey,te.textKey=i.textKey,te.childrenKey=i.childrenKey,te.convertConfig=i.convertConfig;const ae=t.h(r,te);ee.hide=()=>[ae];const ce=Nt(i,ar);return t.h(a,{...ce,prop:`${i.prop}_item`},ee)}}}}const{componentName:hd,create:gd,scope:yd}=X("cascader-item"),tl=gd(pd(hd,yd,Se,oe.CircleClose,oe.ArrowRight,Fn,!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 bs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",f="day",p="week",d="month",h="quarter",v="year",y="date",k="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(P,$,x){var K=String(P);return!K||K.length>=$?P:""+Array($+1-K.length).join(x)+P},C={s:g,z:function(P){var $=-P.utcOffset(),x=Math.abs($),K=Math.floor(x/60),D=x%60;return($<=0?"+":"-")+g(K,2,"0")+":"+g(D,2,"0")},m:function P($,x){if($.date()<x.date())return-P(x,$);var K=12*(x.year()-$.year())+(x.month()-$.month()),D=$.clone().add(K,d),W=x-D<0,H=$.clone().add(K+(W?-1:1),d);return+(-(K+(x-D)/(W?D-H:H-D))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:d,y:v,w:p,d:f,D:y,h:c,m:i,s,ms:r,Q:h}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},A="en",S={};S[A]=m;var V=function(P){return P instanceof w},N=function P($,x,K){var D;if(!$)return A;if(typeof $=="string"){var W=$.toLowerCase();S[W]&&(D=W),x&&(S[W]=x,D=W);var H=$.split("-");if(!D&&H.length>1)return P(H[0])}else{var Z=$.name;S[Z]=$,D=Z}return!K&&D&&(A=D),D||!K&&A},T=function(P,$){if(V(P))return P.clone();var x=typeof $=="object"?$:{};return x.date=P,x.args=arguments,new w(x)},B=C;B.l=N,B.i=V,B.w=function(P,$){return T(P,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var w=function(){function P(x){this.$L=N(x.locale,null,!0),this.parse(x)}var $=P.prototype;return $.parse=function(x){this.$d=function(K){var D=K.date,W=K.utc;if(D===null)return new Date(NaN);if(B.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var H=D.match(b);if(H){var Z=H[2]-1||0,_=(H[7]||"0").substring(0,3);return W?new Date(Date.UTC(H[1],Z,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)):new Date(H[1],Z,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)}}return new Date(D)}(x),this.$x=x.x||{},this.init()},$.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},$.$utils=function(){return B},$.isValid=function(){return this.$d.toString()!==k},$.isSame=function(x,K){var D=T(x);return this.startOf(K)<=D&&D<=this.endOf(K)},$.isAfter=function(x,K){return T(x)<this.startOf(K)},$.isBefore=function(x,K){return this.endOf(K)<T(x)},$.$g=function(x,K,D){return B.u(x)?this[K]:this.set(D,x)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(x,K){var D=this,W=!!B.u(K)||K,H=B.p(x),Z=function(R,Y){var O=B.w(D.$u?Date.UTC(D.$y,Y,R):new Date(D.$y,Y,R),D);return W?O:O.endOf(f)},_=function(R,Y){return B.w(D.toDate()[R].apply(D.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(Y)),D)},j=this.$W,q=this.$M,L=this.$D,E="set"+(this.$u?"UTC":"");switch(H){case v:return W?Z(1,0):Z(31,11);case d:return W?Z(1,q):Z(0,q+1);case p:var F=this.$locale().weekStart||0,M=(j<F?j+7:j)-F;return Z(W?L-M:L+(6-M),q);case f:case y:return _(E+"Hours",0);case c:return _(E+"Minutes",1);case i:return _(E+"Seconds",2);case s:return _(E+"Milliseconds",3);default:return this.clone()}},$.endOf=function(x){return this.startOf(x,!1)},$.$set=function(x,K){var D,W=B.p(x),H="set"+(this.$u?"UTC":""),Z=(D={},D[f]=H+"Date",D[y]=H+"Date",D[d]=H+"Month",D[v]=H+"FullYear",D[c]=H+"Hours",D[i]=H+"Minutes",D[s]=H+"Seconds",D[r]=H+"Milliseconds",D)[W],_=W===f?this.$D+(K-this.$W):K;if(W===d||W===v){var j=this.clone().set(y,1);j.$d[Z](_),j.init(),this.$d=j.set(y,Math.min(this.$D,j.daysInMonth())).$d}else Z&&this.$d[Z](_);return this.init(),this},$.set=function(x,K){return this.clone().$set(x,K)},$.get=function(x){return this[B.p(x)]()},$.add=function(x,K){var D,W=this;x=Number(x);var H=B.p(K),Z=function(q){var L=T(W);return B.w(L.date(L.date()+Math.round(q*x)),W)};if(H===d)return this.set(d,this.$M+x);if(H===v)return this.set(v,this.$y+x);if(H===f)return Z(1);if(H===p)return Z(7);var _=(D={},D[i]=o,D[c]=l,D[s]=a,D)[H]||1,j=this.$d.getTime()+x*_;return B.w(j,this)},$.subtract=function(x,K){return this.add(-1*x,K)},$.format=function(x){var K=this,D=this.$locale();if(!this.isValid())return D.invalidDate||k;var W=x||"YYYY-MM-DDTHH:mm:ssZ",H=B.z(this),Z=this.$H,_=this.$m,j=this.$M,q=D.weekdays,L=D.months,E=function(Y,O,U,G){return Y&&(Y[O]||Y(K,W))||U[O].slice(0,G)},F=function(Y){return B.s(Z%12||12,Y,"0")},M=D.meridiem||function(Y,O,U){var G=Y<12?"AM":"PM";return U?G.toLowerCase():G},R={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:B.s(j+1,2,"0"),MMM:E(D.monthsShort,j,L,3),MMMM:E(L,j),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:E(D.weekdaysMin,this.$W,q,2),ddd:E(D.weekdaysShort,this.$W,q,3),dddd:q[this.$W],H:String(Z),HH:B.s(Z,2,"0"),h:F(1),hh:F(2),a:M(Z,_,!0),A:M(Z,_,!1),m:String(_),mm:B.s(_,2,"0"),s:String(this.$s),ss:B.s(this.$s,2,"0"),SSS:B.s(this.$ms,3,"0"),Z:H};return W.replace(u,function(Y,O){return O||R[Y]||H.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(x,K,D){var W,H=B.p(K),Z=T(x),_=(Z.utcOffset()-this.utcOffset())*o,j=this-Z,q=B.m(this,Z);return q=(W={},W[v]=q/12,W[d]=q,W[h]=q/3,W[p]=(j-_)/6048e5,W[f]=(j-_)/864e5,W[c]=j/l,W[i]=j/o,W[s]=j/a,W)[H]||j,D?q:B.a(q)},$.daysInMonth=function(){return this.endOf(d).$D},$.$locale=function(){return S[this.$L]},$.locale=function(x,K){if(!x)return this.$L;var D=this.clone(),W=N(x,K,!0);return W&&(D.$L=W),D},$.clone=function(){return B.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},P}(),I=w.prototype;return T.prototype=I,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",f],["$M",d],["$y",v],["$D",y]].forEach(function(P){I[P[1]]=function($){return this.$g($,P[0],P[1])}}),T.extend=function(P,$){return P.$i||(P($,w,T),P.$i=!0),T},T.locale=N,T.isDayjs=V,T.unix=function(P){return T(1e3*P)},T.en=S[A],T.Ls=S,T.p={},T})})(bs);var vd=bs.exports;const Fe=We(vd);var ks={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(k){return(k=+k)+(k>68?1900:2e3)},f=function(k){return function(b){this[k]=+b}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var u=b.match(/([+-]|\d\d)/g),m=60*u[1]+(+u[2]||0);return m===0?0:u[0]==="+"?-m:m}(k)}],d=function(k){var b=i[k];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(k,b){var u,m=i.meridiem;if(m){for(var g=1;g<=24;g+=1)if(k.indexOf(m(g,0,b))>-1){u=g>12;break}}else u=k===(b?"pm":"PM");return u},v={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:[l,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[r,f("seconds")],ss:[r,f("seconds")],m:[r,f("minutes")],mm:[r,f("minutes")],H:[r,f("hours")],h:[r,f("hours")],HH:[r,f("hours")],hh:[r,f("hours")],D:[r,f("day")],DD:[l,f("day")],Do:[s,function(k){var b=i.ordinal,u=k.match(/\d+/);if(this.day=u[0],b)for(var m=1;m<=31;m+=1)b(m).replace(/\[|\]/g,"")===k&&(this.day=m)}],M:[r,f("month")],MM:[l,f("month")],MMM:[s,function(k){var b=d("months"),u=(d("monthsShort")||b.map(function(m){return m.slice(0,3)})).indexOf(k)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[s,function(k){var b=d("months").indexOf(k)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,f("year")],YY:[l,function(k){this.year=c(k)}],YYYY:[/\d{4}/,f("year")],Z:p,ZZ:p};function y(k){var b,u;b=k,u=i&&i.formats;for(var m=(k=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(T,B,w){var I=w&&w.toUpperCase();return B||u[w]||a[w]||u[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,$,x){return $||x.slice(1)})})).match(o),g=m.length,C=0;C<g;C+=1){var A=m[C],S=v[A],V=S&&S[0],N=S&&S[1];m[C]=N?{regex:V,parser:N}:A.replace(/^\[|\]$/g,"")}return function(T){for(var B={},w=0,I=0;w<g;w+=1){var P=m[w];if(typeof P=="string")I+=P.length;else{var $=P.regex,x=P.parser,K=T.slice(I),D=$.exec(K)[0];x.call(B,D),T=T.replace(D,"")}}return function(W){var H=W.afternoon;if(H!==void 0){var Z=W.hours;H?Z<12&&(W.hours+=12):Z===12&&(W.hours=0),delete W.afternoon}}(B),B}}return function(k,b,u){u.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(c=k.parseTwoDigitYear);var m=b.prototype,g=m.parse;m.parse=function(C){var A=C.date,S=C.utc,V=C.args;this.$u=S;var N=V[1];if(typeof N=="string"){var T=V[2]===!0,B=V[3]===!0,w=T||B,I=V[2];B&&(I=V[2]),i=this.$locale(),!T&&I&&(i=u.Ls[I]),this.$d=function(K,D,W){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*K);var H=y(D)(K),Z=H.year,_=H.month,j=H.day,q=H.hours,L=H.minutes,E=H.seconds,F=H.milliseconds,M=H.zone,R=new Date,Y=j||(Z||_?1:R.getDate()),O=Z||R.getFullYear(),U=0;Z&&!_||(U=_>0?_-1:R.getMonth());var G=q||0,Q=L||0,J=E||0,z=F||0;return M?new Date(Date.UTC(O,U,Y,G,Q,J,z+60*M.offset*1e3)):W?new Date(Date.UTC(O,U,Y,G,Q,J,z)):new Date(O,U,Y,G,Q,J,z)}catch{return new Date("")}}(A,N,S),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),w&&A!=this.format(N)&&(this.$d=new Date("")),i={}}else if(N instanceof Array)for(var P=N.length,$=1;$<=P;$+=1){V[1]=N[$-1];var x=u.apply(this,V);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}$===P&&(this.$d=new Date(""))}else g.call(this,C)}}})})(ks);var bd=ks.exports;const kd=We(bd);var Ss={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.en.ordinal=function(i){var c=["th","st","nd","rd"],f=i%100;return"["+i+(c[(f-20)%10]||c[f]||c[0])+"]"},r.format=function(i){var c=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var p=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return f.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return f.ordinal(c.week(),"W");case"w":case"ww":return p.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return p.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return p.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(d)}}})})(Ss);var Sd=Ss.exports;const Cd=We(Sd);var Cs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o,l){var r=o.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,h,v,y,k){var b=d.name?d:d.$locale(),u=s(b[h]),m=s(b[v]),g=u||m.map(function(A){return A.slice(0,y)});if(!k)return g;var C=b.weekStart;return g.map(function(A,S){return g[(S+(C||0))%7]})},c=function(){return l.Ls[l.locale()]},f=function(d,h){return d.formats[h]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,k,b){return k||b.slice(1)})}(d.formats[h.toUpperCase()])},p=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):i(d,"months")},monthsShort:function(h){return h?h.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return f(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},l.localeData=function(){var d=c();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(h){return f(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(d){return i(c(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return i(c(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return i(c(),"weekdaysMin","weekdays",2,d)}}})})(Cs);var wd=Cs.exports;const Nd=We(wd);var ws={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){var a="week",o="year";return function(l,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=s(this).startOf(o).add(1,o).date(f),d=s(this).endOf(a);if(p.isBefore(d))return 1}var h=s(this).startOf(o).date(f).startOf(a).subtract(1,"millisecond"),v=this.diff(h,a,!0);return v<0?s(this).startOf("week").week():Math.ceil(v)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(ws);var Bd=ws.exports;const Ad=We(Bd);var Ns={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),s=this.year();return r===1&&l===11?s+1:l===0&&r>=52?s-1:s}}})})(Ns);var Vd=Ns.exports;const Td=We(Vd);var Bs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(Bs);var $d=Bs.exports;const Ed=We($d);var As={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(As);var xd=As.exports;const Dd=We(xd);var Vs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(Vs);var Id=Vs.exports;const qd=We(Id);Fe.extend(Nd);Fe.extend(Cd);Fe.extend(kd);Fe.extend(Ad);Fe.extend(Td);Fe.extend(Ed);Fe.extend(Dd);Fe.extend(qd);const le={format(e,n){return Fe(e).format(n)},parser(e,n){return Fe(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const o=e*(1e3*60*60*24);return a=new Date(a.getTime()+o),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),s=l.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),s=Math.round((l.valueOf()-r.valueOf())/864e5);let i=l.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let s=l.getDay();if(o===0){const c=r-s*864e5,f=r+(6-s)*864e5,p=this.date2Str(new Date(c)),d=this.date2Str(new Date(f));return[p,d]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,f=r+(7-s)*i,p=this.date2Str(new Date(c)),d=this.date2Str(new Date(f));return[p,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=le.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=le.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s}},rr=new Date().getFullYear(),nl={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"},gn=(e,n,a)=>{let o;if(Ue(n)?o=n:typeof n=="string"&&ye(n)>0?o=le.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},Vo=(e,n,a)=>{Ue(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),le.format(new Date(o),a)};let To={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(rr-10,0,1),validator:Ue},maxDate:{type:Date,default:()=>new Date(rr+10,11,31),validator:Ue},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:Md,scope:Pd}=X("date-picker"),Ld=Md({components:{[bt.name]:bt},props:{...To},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Pd),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},l=t.ref(!1);t.watch(()=>e.visible,u=>{l.value=u});function r(u,m){return new Date(u,m,0).getDate()}const s=(u,m)=>{const g=e[`${u}Date`],C=g.getFullYear();let A=1,S=1,V=0,N=0;u==="max"&&(A=12,S=r(m.getFullYear(),m.getMonth()+1),V=23,N=59);const T=N;return m.getFullYear()===C&&(A=g.getMonth()+1,m.getMonth()+1===A&&(S=g.getDate(),m.getDate()===S&&(V=g.getHours(),m.getHours()===V&&(N=g.getMinutes())))),{[`${u}Year`]:C,[`${u}Month`]:A,[`${u}Date`]:S,[`${u}Hour`]:V,[`${u}Minute`]:N,[`${u}Seconds`]:T}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:u,maxDate:m,maxMonth:g,maxHour:C,maxMinute:A,maxSeconds:S}=s("max",h.value),{minYear:V,minDate:N,minMonth:T,minHour:B,minMinute:w,minSeconds:I}=s("min",h.value);let P=[{type:"year",range:[V,u]},{type:"month",range:[T,g]},{type:"day",range:[N,m]},{type:"hour",range:[B,C]},{type:"minute",range:[w,A]},{type:"seconds",range:[I,S]}];switch(e.type){case"date":P=P.slice(0,3);break;case"datetime":P=P.slice(0,5);break;case"time":P=P.slice(3,6);break;case"year-month":P=P.slice(0,2);break;case"month-day":P=P.slice(1,3);break;case"datehour":P=P.slice(0,4);break;case"hour-minute":P=P.slice(3,5);break}return P}),c=(u,m,g)=>{if(!(m>u))return null;const C=[];for(;u<=m;)e.isShowChinese?C.push({text:u+o[g],value:u}):C.push({text:`${u}`,value:u}),g==="minute"?u+=e.minuteStep:u++;return C},f=t.computed(()=>{let u=[];return i.value.forEach(m=>{let g=c(m.range[0],m.range[1],m.type);g&&u.push(g)}),u}),p=(u,m)=>u==="year"?m.getFullYear():u==="month"?m.getMonth()+1:u==="day"?m.getDate():u==="hour"?m.getHours():u==="minute"?m.getMinutes():u==="seconds"?m.getSeconds():0,d=t.ref(),h=t.ref(null);t.watchEffect(()=>{let u,m=e.modelValue;if(typeof m=="string"?m.length==0?u=new Date:e.valueFormat?u=gn(e,e.modelValue,e.valueFormat):u=gn(e,m,nl[e.type]):Ue(m)?u=m:u=new Date,!!u&&(!h.value||u.getTime()!==h.value.getTime())){h.value=u;let g=[];i.value.forEach(C=>{let A=p(C.type,u);g.push(A)}),d.value=g}});const v=u=>{if(e.type==="date"){let m=u;h.value=new Date(m[0],m[1]-1,Math.min(m[2],r(m[0],m[1])))}else if(e.type==="datetime"){let m=u;h.value=new Date(m[0],m[1]-1,Math.min(m[2],r(m[0],m[1])),m[3],m[4])}else if(e.type==="time"){let m=u,g=h.value??new Date,C=new Date(g.getFullYear(),g.getMonth(),g.getDate(),m[0],m[1],m[2]);h.value=C}else if(e.type==="year-month"){let m=u,g=new Date(m[0],m[1]-1);h.value=g}else if(e.type==="month-day"){let m=u,g=h.value??new Date,C=new Date(g.getFullYear(),m[0]-1,m[1]);h.value=C}else if(e.type==="datehour"){let m=u;h.value=new Date(m[0],m[1]-1,Math.min(m[2],r(m[0],m[1])),m[3])}else if(e.type==="hour-minute"){let m=u,g=h.value??new Date,C=new Date(g.getFullYear(),g.getMonth(),g.getDate(),m[0],m[1]);h.value=C}d.value=u};return{columns:f,dateIndexs:d,show:l,onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:u=>{v(u),l.value=!1;let m=h.value??new Date;if(e.valueFormat){let g=Vo(e,m,e.valueFormat);n("update:modelValue",g)}else n("update:modelValue",m);n("update:visible",!1),n("confirm",u)},onClear:()=>{n("clear")}}}});function zd(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Rn=ne(Ld,[["render",zd]]),Fd={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Rd(e){let n=e.format;if(!n){let a=e.type??"date";n=nl[a]}return n}function Od(e,n,a,o,l,r,s=!1){return{props:{...me,...ge,...To,...Fd},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const f=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:d}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),v=h(i,["placeholder"]),y=t.ref(!1),b=xe(i,"modelValue",q=>q==null?null:typeof q=="string"?q.length==0?null:i.valueFormat?gn(i,q,i.valueFormat)??q:gn(i,q,nl[i.type])??q:Ue(q)?q:null),u=t.computed(()=>{if(!b.value)return"";const q=Rd(i);return Vo(i,b.value,q)}),m="fox-input-item",g=t.computed(()=>({[m]:!0,[`${m}__disabled`]:f.value})),C=Be(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const q={};return C.value&&(q["text-align"]=C.value),q}),S=t.ref(!1),V=()=>{S.value=!0},N=()=>{S.value=!1};c.expose({showPicker:V,hidePicker:N});const T=q=>{S.value=q},B=q=>{if(b.value=q,i.valueFormat){let L=Vo(i,q,i.valueFormat);d("update:modelValue",L,{}),d("change",L,{})}else d("update:modelValue",q,{}),d("change",q,{})},w=q=>{let E=q.target.value;y.value=!0,d("focus",E,q)},I=q=>{setTimeout(()=>{y.value=!1},0);let E=q.target.value;i.maxLength&&E.length>Number(i.maxLength)&&(E=E.slice(0,Number(i.maxLength))),d("blur",E,q)},P=t.computed(()=>({[`${m}__append`]:!0})),$=t.computed(()=>ye(i.unit)>0),x=t.computed(()=>ye(i.unit)>0&&!y.value),K=t.computed(()=>({hidden:!x.value})),D=q=>{b.value="",d("update:modelValue","",q),d("change","",q),d("clear",""),N()},W=t.computed(()=>i.clearable&&!f.value&&!p.value),H=t.computed(()=>{let q=ye(b.value)>0;return i.clearable&&q&&y.value}),Z=q=>{H.value?D(q):V()},_=t.computed(()=>H.value&&W.value?o:l),j=t.computed(()=>({action:!0}));return()=>{const q={class:g.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:v.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:V,onFocus:w,onBlur:I};s&&(q.disabled=!0);const L=[],E=t.h("input",q);L.push(E);const F=[],M={class:["action-icon"]},R=t.h(_.value,M),Y={class:j.value,onClick:Z},O=t.h("view",Y,{default:()=>[R]});if(F.push(O),$.value){const ce=t.h("view",{class:K.value},[i.unit]);F.push(ce)}const U={class:P.value},G=t.h("view",U,{default:()=>F});L.push(G);const Q={default:()=>L};Q.label=c.slots.default,Q.prepend=c.slots.prepend,Q.append=c.slots.append,Q.fixedPreTip=c.slots.fixedPreTip,Q.fixedTip=c.slots.fixedTip;const J=ve(i,To);J.valueFormat=null,J.disabled=!1,J.readonly=f.value||p.value,J.visible=S.value,J["onUpdate:visible"]=T,J.modelValue=b.value,J["onUpdate:modelValue"]=B,J.onClear=D;const z={};if(c.slots.top){const ce=c.slots.top();z.top=()=>ce}if(c.slots.bottom){const ce=c.slots.bottom();z.default=()=>ce}const ee=t.h(r,J,z);Q.hide=()=>[ee];const te=ve(i,ge,me);return t.h(a,{...te,prop:`${i.prop}_item`},Q)}}}}const{create:Kd,componentName:Ud,scope:Hd}=X("date-item"),ol=Kd(Od(Ud,Hd,Se,oe.CircleClose,oe.Date,Rn,!1)),jd=39,Wd=64,{create:Yd,scope:Xd}=X("calendar-pane"),Qd=Yd({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:le.getDay(0)},endDate:{type:String,default:le.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=re.useFoxI18n(Xd),r=o(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(l("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),f=t.ref(null),p=t.ref(null),d=t.ref(null),h=t.ref(0),v=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),y=t.computed(()=>a.btn),k=t.computed(()=>a["top-info"]),b=t.computed(()=>a["bottom-info"]),u=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),m=M=>M.split("-"),g=M=>le.isEqual(u.currDate[0],M),C=M=>le.isEqual(u.currDate[1],M),A=M=>u.currDate?.length>0?u.currDate?.some(R=>le.isEqual(R,M)):!1,S=(M,R)=>R.curData[0]+"-"+R.curData[1]+"-"+le.getNumTwoBit(+M.day),V=(M,R)=>{const Y=S(M,R),{type:O}=e;return M.type=="curr"?le.isEqual(u.currDate,Y)||(O=="range"||O=="week")&&(g(Y)||C(Y))||O=="multiple"&&A(Y)?`${u.dayPrefix}--active`:u.propStartDate&&le.compareDate(Y,u.propStartDate)||u.propEndDate&&le.compareDate(u.propEndDate,Y)?`${u.dayPrefix}--disabled`:(O=="range"||O=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&le.compareDate(u.currDate[0],Y)&&le.compareDate(Y,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},N=()=>{const{type:M}=e;if(M=="range"&&u.chooseData.length==2||M!="range"){let R=u.chooseData.slice(0);M=="week"&&(R={weekDate:[B(u.chooseData[0]),B(u.chooseData[1])]}),n("choose",R),e.poppable&&n("update")}},T=(M,R,Y=!1)=>{if(V(M,R)!=`${u.dayPrefix}--disabled`){const{type:O}=e;let[U,G]=R.curData,Q=[...R.curData];if(Q[2]=le.getNumTwoBit(Number(M.day)),Q[3]=`${Q[0]}-${Q[1]}-${Q[2]}`,Q[4]=le.getWhatDay(+Q[0],+Q[1],+Q[2]),O=="multiple")if(u.currDate?.length>0){let J;u.currDate?.forEach((z,ee)=>{z==Q[3]&&(J=ee)}),Y?u.chooseData.push([...Q]):J!==void 0?(u.currDate.splice(J,1),u.chooseData.splice(J,1)):(u.currDate.push(Q[3]),u.chooseData.push([...Q]))}else u.currDate=[Q[3]],u.chooseData=[[...Q]];else if(O=="range"){let J=Object.values(u.currDate).length;J==2||J==0?u.currDate=[Q[3]]:le.compareDate(u.currDate[0],Q[3])?Array.isArray(u.currDate)&&u.currDate.push(Q[3]):Array.isArray(u.currDate)&&u.currDate.unshift(Q[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...Q]]:le.compareDate(u.chooseData[0][3],Q[3])?u.chooseData=[...u.chooseData,[...Q]]:u.chooseData=[[...Q],...u.chooseData]}else if(O=="week"){let J=le.getWeekDate(U,G,M.day,e.firstDayOfWeek);u.propStartDate&&le.compareDate(J[0],u.propStartDate)&&J.splice(0,1,u.propStartDate),u.propEndDate&&le.compareDate(u.propEndDate,J[1])&&J.splice(1,1,u.propEndDate),u.currDate=J,u.chooseData=[le.formatResultDate(J[0]),le.formatResultDate(J[1])]}else u.currDate=Q[3],u.chooseData=[...Q];if(!Y){let J=u.chooseData;O=="week"&&(J={weekDate:[B(u.chooseData[0]),B(u.chooseData[1])]}),n("select",J),(e.isAutoBackFill||!e.poppable)&&N()}}},B=M=>{let[R,Y,O]=M;return{date:M,monthWeekNum:le.getMonthWeek(R,Y,O,e.firstDayOfWeek),yearWeekNum:le.getYearWeek(R,Y,O,e.firstDayOfWeek)}},w=M=>{const R=M=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let Y=parseInt(R.curData[0]),O=parseInt(R.curData[1].toString().replace(/^0/,""));switch(M){case"prev":O==1&&(Y-=1),O=O==1?12:--O;break;case"next":O==12&&(Y+=1),O=O==12?1:++O;break}return[Y+"",le.getNumTwoBit(O),le.getMonthDays(String(Y),String(O))+""]},I=(M,R,Y)=>{let{year:O,month:U}=Y;return R=="prev"&&M>=7&&(M-=7),Array.from(Array(M),(G,Q)=>({day:String(Q+1),type:R,year:O,month:U}))},P=(M,R,Y,O)=>{M=M-e.firstDayOfWeek;let{year:U,month:G}=Y;return R=="prev"&&M>=7&&(M-=7),Array.from(Array(O),(J,z)=>({day:String(z+1),type:R,year:U,month:G})).slice(O-M)},$=(M,R)=>{const Y=le.getMonthPreDay(+M[0],+M[1]);let O=Number(M[1])-1,U=Number(M[0]);O<=0&&(O=12,U+=1);const G=le.getMonthDays(String(M[0]),String(M[1])),Q=le.getMonthDays(U+"",O+""),J={year:M[0],month:M[1]},z={curData:M,title:l("monthTitle",{year:J.year,month:J.month}),monthData:[...P(Y,"prev",{month:String(O),year:String(U)},Q),...I(G,"curr",J)],cssHeight:0,cssScrollHeight:0},ee=z.monthData.length>35?6:5;z.cssHeight=jd+Wd*ee;let te=0;u.monthsData.length>0&&(te=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),z.cssScrollHeight=te,R=="next"?(!u.endData||!le.compareDate(`${u.endData[0]}-${u.endData[1]}-${le.getMonthDays(u.endData[0],u.endData[1])}`,`${M[0]}-${M[1]}-${M[2]}`))&&u.monthsData.push(z):!u.startData||!le.compareDate(`${M[0]}-${M[1]}-${M[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(z):u.unLoadPrev=!0},x=()=>{let M=e.startDate?e.startDate:le.getDay(0),R=e.endDate?e.endDate:le.getDay(365);u.propStartDate=M,u.propEndDate=R,u.startData=m(M),u.endData=m(R),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const Y={year:Number(u.startData[0]),month:Number(u.startData[1])},O={year:Number(u.endData[0]),month:Number(u.endData[1])};let U=O.month-Y.month;O.year-Y.year>0&&(U=U+12*(O.year-Y.year)),U<=0&&(U=1),$(u.startData,"next");let G=1;do $(w("next"),"next");while(G++<U);if(u.monthsNum=U,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(M&&le.compareDate(u.currDate[0],M)&&u.currDate.splice(0,1,M),R&&le.compareDate(R,u.currDate[1])&&u.currDate.splice(1,1,R),u.defaultData=[...m(u.currDate[0]),...m(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let Q=[],J={};u.currDate.forEach(z=>{M&&!le.compareDate(z,M)&&R&&!le.compareDate(R,z)&&(Object.hasOwnProperty.call(J,z)||(Q.push(z),J[z]=z))}),u.currDate=[...Q],u.defaultData=[...m(Q[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[Q,J,z]=m(u.currDate[0]),ee=le.getWeekDate(Q,J,z,e.firstDayOfWeek);u.currDate=ee,M&&le.compareDate(u.currDate[0],M)&&u.currDate.splice(0,1,M),R&&le.compareDate(R,u.currDate[1])&&u.currDate.splice(1,1,R),u.defaultData=[...m(u.currDate[0]),...m(u.currDate[1])]}}else u.currDate&&(M&&le.compareDate(u.currDate,M)?u.currDate=M:R&&!le.compareDate(u.currDate,R)&&(u.currDate=R),u.defaultData=[...m(u.currDate)])};$e({scrollToDate:M=>{le.compareDate(M,u.propStartDate)?M=u.propStartDate:le.compareDate(M,u.propEndDate)||(M=u.propEndDate);let R=m(M);u.monthsData.forEach((Y,O)=>{if(Y.title==l("monthTitle",{year:R[0],month:R[1]})&&c.value){let U=u.monthsData[O].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let G=0,Q=setInterval(()=>{if(G++,c.value){let J=U/10;c.value.scrollTop=c.value.scrollTop+J}G>=10&&(clearInterval(Q),c.value&&(c.value.scrollTop=u.monthsData[O].cssScrollHeight))},40)}else c.value.scrollTop=u.monthsData[O].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let M=0,R=0;u.defaultData.length>0&&u.monthsData.forEach((U,G)=>{U.title==l("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(M=G),(e.type=="range"||e.type=="week")&&U.title==l("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(R=G)}),H(u.monthsNum,M),u.currentIndex=M,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(T({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),T({day:u.defaultData[5],type:"curr"},u.monthsData[R],!0)):e.type=="week"?T({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(U=>{let G=m(U),Q=u.currentIndex;u.monthsData.forEach((J,z)=>{J.title==l("monthTitle",{year:G[0],month:G[1]})&&(Q=z)}),T({day:G[2],type:"curr"},u.monthsData[Q],!0)}):T({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let Y=u.monthsData[u.monthsData.length-1],O=Y.cssHeight+Y.cssScrollHeight;Ye(()=>{c?.value&&f?.value&&d?.value&&(h.value=c.value.clientHeight,f.value.style.height=`${O}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(O/(u.monthsNum+1))}});const H=(M,R)=>{M>=3?R>0&&R<M?u.defaultRange=[R-1,R+3]:R==0?u.defaultRange=[R,R+4]:R==M&&(u.defaultRange=[R-2,R+2]):u.defaultRange=[0,M+2];let Y=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=Y},Z=(M,R)=>(e.type=="range"||e.type=="week")&&M.type=="curr"&&V(M,R)=="fox-calendar__day--active",_=(M,R)=>Z(M,R)&&g(S(M,R)),j=(M,R)=>u.currDate.length>=2&&C(S(M,R))?Z(M,R):!1,q=()=>{if(u.currDate.length>=2)return le.isEqual(u.currDate[0],u.currDate[1])},L=M=>{const R=`${M.year}-${M.month}-${Number(M.day)<10?"0"+M.day:M.day}`;return le.isEqual(R,le.date2Str(new Date))},E=M=>{if(u.monthsData.length<=1)return;const R=M.target.scrollTop;let Y=Math.floor(R/u.avgHeight);if(Y==0)R>=u.monthsData[Y+1].cssScrollHeight&&(Y+=1);else if(Y>0&&Y<u.monthsNum-1)R>=u.monthsData[Y+1].cssScrollHeight&&(Y+=1),R<u.monthsData[Y].cssScrollHeight&&(Y-=1);else{const O=Math.round(R+h.value);O<u.monthsData[Y].cssScrollHeight+u.monthsData[Y].cssHeight&&R>u.monthsData[Y-1].cssScrollHeight&&(Y-=1),Y+1<=u.monthsNum&&O>=u.monthsData[Y+1].cssScrollHeight+u.monthsData[Y+1].cssHeight&&(Y+=1),Y>=1&&R<u.monthsData[Y-1].cssScrollHeight&&(Y-=1)}u.currentIndex!==Y&&(u.currentIndex=Y,H(u.monthsNum,Y)),u.yearMonthTitle=u.monthsData[Y].title},F=()=>{u.chooseData.splice(0),u.monthsData.splice(0),x()};return x(),t.watch(()=>e.defaultValue,M=>{M&&e.poppable&&F()}),{weeks:i,compConthsData:v,showTopBtn:y,topInfo:k,bottomInfo:b,rangeTip:q,mothsViewScroll:E,getClass:V,isStartTip:_,isEndTip:j,chooseDay:T,isCurrDay:L,confirm:N,months:c,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:f,weeksPanel:p,viewArea:d}}}),Gd={class:"fox-calendar__header"},Zd={key:0,class:"fox-calendar__header-title"},Jd={key:1,class:"fox-calendar__header-slot"},_d={key:2,class:"fox-calendar__header-subtitle"},ef={class:"fox-calendar__weekdays",ref:"weeksPanel"},tf={class:"fox-calendar__panel",ref:"monthsPanel"},nf={class:"fox-calendar__month-title"},of={class:"fox-calendar__days"},lf=["onClick"],af={class:"fox-calendar__day-value"},rf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},sf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},cf={key:2,class:"fox-calendar__day-tips--curr"},uf={key:4,class:"fox-calendar__day-tip"},df={key:0,class:"fox-calendar__footer"};function ff(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Gd,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Zd,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Jd,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",_d,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",ef,[(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",tf,[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",nf,t.toDisplayString(s.title),1),t.createElementVNode("view",of,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:p=>e.chooseDay(c,s)},[t.createElementVNode("view",af,[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",rf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",sf,[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",cf,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",uf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,lf))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",df,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const sr=ne(Qd,[["render",ff]]),mf=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),tn={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:pf}=X("calendar"),hf=pf({components:{[sr.name]:sr,[de.name]:de},props:{...tn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const o=t.computed(()=>a.btn),l=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),s=t.computed(()=>a["bottom-info"]),i=t.ref(null),c=k=>{i.value?.scrollToDate(k)},f=()=>{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:f});const p=()=>{n("update:visible",!1)},d=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{d()},update:p,close:d,select:k=>{n("select",k)},choose:k=>{d(),n("choose",k)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function gf(e,n,a,o,l,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const On=ne(hf,[["render",gf]]),ir={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}},ro=(e,n)=>{let a;return Ue(e)?a=e:typeof e=="string"&&ye(e)>0?a=le.parser(e,n):a=new Date,a},ct=(e,n,a)=>(Ue(n)||(n=new Date),le.format(n,a)),ut=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=le.date2Str(e),r=le.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function yf(e,n,a,o,{CloseIcon:l,MarkIcon:r},s=!1){return{props:{...me,...ge,...tn,...ir},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const f=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:d}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),v=h(i,["placeholder"]),y=t.ref(!1),k=t.computed(()=>i.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),u=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},m=(E,F="one",M="YYYY-MM-DD")=>{if(mf(E)){u();return}if(k.value&&Array.isArray(E)&&E.length==2){let R,Y;typeof E[0]=="string"?(R=ro(E[0],M),Y=ro(E[1],M)):(R=E[0],Y=E[1]);let O=ut(R),U=ut(Y);(b.startDate===null||b.startDate.getTime()!==R.getTime()||b.endDate?.getTime()!==Y.getTime())&&(b.startDate=R,b.startArray=O,b.endDate=Y,b.endArray=U)}else{let R;typeof E=="string"?R=ro(E,M):R=E;let Y=ut(R);(b.startDate===null||b.startDate.getTime()!==R.getTime())&&(b.startDate=R,b.startArray=Y)}};m(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,E=>{m(E,i.type,i.valueFormat)});const g=t.computed(()=>{if(b.startDate===null)return"";if(k.value){let E=ct(i,b.startDate,i.format),F=ct(i,b.endDate,i.format);return`${E} ${i.rangeSeparator} ${F}`}else{let E=ct(i,b.startDate,i.format);return i.showWeek&&(E=`${E} ${b.startArray[4]}`),E}}),C=t.computed(()=>{if(b.startDate===null)return null;if(k.value){let E=le.date2Str(b.startDate),F=le.date2Str(b.endDate??new Date);return[E,F]}else return le.date2Str(b.startDate)}),A="fox-input-item",S=t.computed(()=>({[A]:!0,[`${A}__disabled`]:f.value})),V=Be(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const E={};return V.value&&(E["text-align"]=V.value),E}),T=t.ref(!1),B=()=>{p.value||f.value||(T.value=!0)},w=E=>{T.value=E},I=E=>{if(E){if(k.value&&Array.isArray(E)){let F=E[0],M=fe(F[0]),R=fe(F[1]),Y=fe(F[2]),O=new Date(M,R-1,Y),U=E[1];M=fe(U[0]),R=fe(U[1]),Y=fe(U[2]);let G=new Date(M,R-1,Y);if(b.startDate=O,b.startArray=ut(O),b.endDate=G,b.endArray=ut(G),i.valueFormat){let Q=ct(i,O,i.valueFormat),J=ct(i,G,i.valueFormat);d("update:modelValue",[Q,J],{})}else d("update:modelValue",[O,G],{})}else{let F=E,M=fe(F[0]),R=fe(F[1]),Y=fe(F[2]),O=new Date(M,R-1,Y);if(b.startDate=O,b.startArray=ut(O),i.valueFormat){let U=ct(i,O,i.valueFormat);d("update:modelValue",U,{})}else d("update:modelValue",O,{})}d("change",E,{})}},P=E=>{let M=E.target.value;y.value=!0,d("focus",M,E)},$=E=>{setTimeout(()=>{y.value=!1},0);let M=E.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),d("blur",M,E)},x=t.computed(()=>({[`${A}__append`]:!0})),K=t.computed(()=>ye(i.unit)>0),D=t.computed(()=>ye(i.unit)>0&&!y.value),W=t.computed(()=>({hidden:!D.value})),H=E=>{u(),d("update:modelValue",null,E),d("change","",E),d("clear","")},Z=t.computed(()=>i.clearable&&!f.value&&!p.value),_=t.computed(()=>{let E=ye(g.value)>0;return i.clearable&&E&&y.value}),j=E=>{_.value?H(E):B()},q=t.computed(()=>_.value&&Z.value?l:r),L=t.computed(()=>({action:!0}));return()=>{const E={class:S.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:v.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:B,onFocus:P,onBlur:$};s&&(E.disabled=!0);const F=[],M=t.h("input",E);F.push(M);const R=[],Y={class:["action-icon"]},O=t.h(q.value,Y),U={class:L.value,onClick:j},G=t.h("view",U,{default:()=>[O]});if(R.push(G),K.value){const De=t.h("view",{class:W.value},[i.unit]);R.push(De)}const Q={class:x.value},J=t.h("view",Q,{default:()=>R});F.push(J);const z={default:()=>F};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 ee=ve(i,tn);ee.visible=T.value,ee["onUpdate:visible"]=w,ee["default-value"]=C.value,ee.onChoose=I;const te={};if(c.slots.btn){const De=c.slots.btn();te.btn=()=>De}c.slots.day&&(te.day=c.slots.day),c.slots.topInfo&&(te.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(te.bottomInfo=c.slots.bottomInfo);const ae=t.h(a,ee,te);z.hide=()=>[ae];const ce=Nt(i,tn,ir);return t.h(o,{...ce,prop:`${i.prop}_item`},z)}}}}const{componentName:vf,create:bf,scope:kf}=X("calendar-item"),ll=bf(yf(vf,kf,On,Se,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),Sf={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function Cf(e,{CheckNormal:n,Checked:a}){return{props:{...Sf},setup(o,{emit:l,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===o.label),c=t.computed(()=>o.disabled?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),f=t.computed(()=>s.position),p=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const k=ie(o.iconSize),b=o.checkedIcon??a;return t.h(b,{width:k,height:k,class:c.value})}}else{if(r.icon)return r.icon();{const k=ie(o.iconSize),b=o.icon??n;return t.h(b,{width:k,height:k,class:c.value})}}},d=()=>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?.()),v=()=>{i.value||o.disabled||o.readonly||s.updateValue(o.label)},y=f.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${y?`${e}--reverse`:""}`,onClick:v},[o.shape=="button"?h():y?[d(),p()]:[p(),d()]])}}}const{componentName:wf,create:Nf}=X("radio"),Kn=Nf(Cf(wf,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),{componentName:cr,create:Bf}=X("radio-group"),Un=Bf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{emit:n,slots:a}){const o=l=>n("update:modelValue",l);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:o}),t.watch(()=>e.modelValue,l=>n("change",l)),()=>{const l={};return e.textAlign&&(l["text-align"]=e.textAlign),t.h("view",{class:`${cr} ${cr}--${e.direction}`,style:l},a.default?.())}}});function ur(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(nn(e,r)===a)return l}else if(o==="item"){if(qe(a,r))return l}else if(Mt(e,r)===a)return l}return-1}function nn(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 Af(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Vf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Tf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Ze(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function $f(){const e=t.getCurrentInstance();return new Tf(e.proxy)}function Ef(e){return{text:e,value:e}}const dr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},xf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},Df={source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}};function If(e,n,a,o,l){return{props:{...me,...ge,...dr,...xf,...Df},emits:["change","update:modelValue"],setup(r,s){const i=Te(t.computed(()=>r.readonly)),c=we(t.computed(()=>r.disabled)),f=Be(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),d=$f(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,m])=>{if(u){const g=await d.load("radio",u,m);if(g.length>0)if(typeof g[0]=="string"){const S=g.map(V=>Ef(V));h.value=S}else h.value=g}},{immediate:!0});let v=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([u,m])=>{v.value=ur(r,m,u,r.valueType)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;if(v.value===-1)return null;const u=h.value[v.value];return Mt(r,u)}),k=u=>{let m=null,g=null;if(h.value.length>0){let C=ur(r,h.value,u,"value");v.value=C,C>=0&&(g=h.value[C],r.valueType==="text"?m=nn(r,g):r.valueType==="item"?m=g:m=Mt(r,g))}else m=u;p("update:modelValue",m),p("change",m,g)},b=()=>{let u=null,m=null;if(h.value.length>0&&v.value!==-1){let g=h.value[v.value];r.valueType==="text"?u=nn(r,g):r.valueType==="item"?u=g:u=Mt(r,g)}p("update:modelValue",u),p("change",u,m)};if($e({clear(){v.value!==-1&&(v.value=-1,b())}}),r.source){const u=()=>{const m=[],g=ve(r,dr);return h.value.forEach((C,A)=>{const S=Mt(r,C),V=Af(r,C);let N={...g,label:S,disabled:V};const T=Vf(r,C,A);N={...N,...T},c.value&&(N.disabled=!0),i.value&&(N.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 I=s.slots.text(C);B.default=()=>[I]}else{const I=nn(r,C);B.default=()=>I}let w=t.h(l,N,B);m.push(w)}),m};return()=>{const m=u(),g={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:f.value,modelValue:y,"onUpdate:modelValue":k},C=t.h(o,g,{default:()=>m}),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 S=ve(r,ge,me);return t.h(a,{...S,prop:`${r.prop}_item`},A)}}else return()=>{const u=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:f.value,modelValue:y,"update:modelValue":k},{default:()=>u})}}}}const{componentName:qf,create:Mf,scope:Pf}=X("radio-item"),al=Mf(If(qf,Pf,Se,Un,Kn)),Lf=(e,{CheckNormal:n,Checked:a,Indeterminate:o})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(l,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,g=>{c.partialSelect=g});const f=t.computed(()=>!!i),p=t.computed(()=>f.value?i.value.value.includes(l.label):!!l.modelValue),d=t.computed(()=>f.value?i.position:l.textPosition),h=t.computed(()=>l.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":p.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let v="";const y=(g,C)=>{v="click",r("update:modelValue",g),r("change",g,C)};t.watch(()=>l.modelValue,g=>{v=="click"?v="":r("change",g)});const k=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const g=ie(l.iconSize),C=l.indeterminateIcon??o;return t.h(C,{width:g,height:g,class:h.value})}}else if(p.value){if(s.checkedIcon)return s.checkedIcon();{const g=ie(l.iconSize),C=l.checkedIcon??a;return t.h(C,{width:g,height:g,class:h.value})}}else{if(s.icon)return s.icon();{const g=ie(l.iconSize),C=l.icon??n;return t.h(C,{width:g,height:g,class:h.value})}}},b=()=>t.h("view",{class:`${e}__label ${l.disabled?`${e}__label--disabled`:""}`},s.default?.()),u=()=>t.h("view",{class:`${e}__button ${p.value&&`${e}__button--active`} ${l.disabled?`${e}__button--disabled`:""}`},s.default?.()),m=g=>{if(!(l.disabled||l.readonly)){if(p.value&&c.partialSelect){c.partialSelect=!1,y(p.value,s.default?.()[0].children);return}if(y(!p.value,s.default?.()[0].children),f.value){const C=i.value.value,A=i.max.value,{label:S}=l,V=C.indexOf(S);V>-1?C.splice(V,1):V<=-1&&(C.length<A||!A)&&C.push(S),i.updateValue(C)}}};return t.onMounted(()=>{f.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{f.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${l.shape} ${d.value==="left"?`${e}--reverse`:""}`,onClick:m},[l.shape=="button"?u():[k(),b()]])}}),{componentName:zf,create:Ff}=X("checkbox"),Hn=Ff(Lf(zf,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),{create:Rf,componentName:fr}=X("checkbox-group"),jn=Rf({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n,emit:a}){const o=t.reactive({children:[]}),l=f=>{f.proxy&&o.children.push(f.proxy)},r=f=>{f.proxy&&(o.children=o.children.filter(p=>p!==f.proxy))},s=f=>{a("update:modelValue",f),a("change",f)},i=f=>{const p=[];f&&o.children.forEach(d=>{d?.disabled||p.push(d?.label)}),a("update:modelValue",p)},c=()=>{const f=o.children.filter(p=>p?.disabled?!1:!e.modelValue.includes(p.label)).map(p=>p.label);a("update:modelValue",f)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:l,unlink:r}),t.watch(()=>e.modelValue,f=>{a("change",f)}),$e({toggleAll:i,toggleReverse:c}),()=>{const f={};return e.textAlign&&(f["text-align"]=e.textAlign),t.h("view",{class:`${fr} ${fr}--${e.direction}`,style:f},n.default?.())}}});function mr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if($o(e,r)===a)return l}else if(o==="item"){if(qe(a,r))return l}else if(on(e,r)===a)return l}return-1}function $o(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function on(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Of(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Kf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Uf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Ze(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Hf(){const e=t.getCurrentInstance();return new Uf(e.proxy)}function jf(e){return{text:e,value:e}}const Wf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},pr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},Yf={source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}};function Xf(e,n,a,o,l){return{props:{...me,...ge,...Wf,...pr,...Yf},emits:["change","update:modelValue"],setup(r,s){const i=we(t.computed(()=>r.disabled)),c=we(t.computed(()=>r.readonly)),f=Be(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),d=Hf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,m])=>{if(u){const g=await d.load("checkbox",u,m);if(g.length>0)if(typeof g[0]=="string"){const S=g.map(V=>jf(V));h.value=S}else h.value=g}},{immediate:!0});const v=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([u,m])=>{const g=[];Array.isArray(u)&&u.forEach(C=>{let A=mr(r,m,C,r.valueType);A!==-1&&g.push(A)}),!qe(g,v.value)&&(v.value=g)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;let u=[];return v.value.forEach(m=>{let g=h.value[m];u.push(on(r,g))}),u}),k=u=>{let m=[],g=[];if(h.value.length>0){const C=[];Array.isArray(u)&&u.forEach(A=>{let S=mr(r,h.value,A,"value");S!==-1&&C.push(S);const V=h.value[S];g.push(V),r.valueType==="text"?m.push($o(r,V)):r.valueType==="item"?m.push(V):m.push(on(r,V))}),v.value=C}else m=u;p("update:modelValue",m),p("change",m,g)},b=t.ref();if($e({toggleAll:u=>{b.value.toggleAll(u)},toggleReverse:()=>{b.value.toggleReverse()}}),r.source){const u=()=>{const m=[],g=ve(r,pr);return h.value.forEach((C,A)=>{const S=on(r,C),V=Of(r,C);let N={...g,label:S,disabled:V};const T=Kf(r,C,A);N={...N,...T},i.value&&(N.disabled=!0),c.value&&(N.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 I=s.slots.text(C);B.default=()=>[I]}else{const I=$o(r,C);B.default=()=>I}let w=t.h(l,N,B);m.push(w)}),m};return()=>{const m=u(),g={class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:y.value,"onUpdate:modelValue":k},C=t.h(o,g,{default:()=>m}),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 S=ve(r,ge,me);return t.h(a,{...S,prop:`${r.prop}_item`},A)}}else return()=>{const u=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:f.value,modelValue:y,"onUpdate:modelValue":k},{default:()=>u})}}}}const{componentName:Qf,create:Gf,scope:Zf}=X("checkbox-item"),rl=Gf(Xf(Qf,Zf,Se,jn,Hn)),Eo={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:Jf,create:_f}=X("switch"),em=_f({components:{Loading1:oe.Loading1},props:{...Eo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=Jf;return{[i]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-disable`]:e.disable,[`${i}-base`]:!0}}),l=t.computed(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disable||e.loading)return;r="click";const c=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":n("change",i)}),{classes:o,style:l,isActive:a,onClick:s}}}),tm={class:"fox-switch-button"};function nm(e,n,a,o,l,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",tm,[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 Wn=ne(em,[["render",nm]]);function om(e,n,a,o){return{props:{...me,...ge,...Eo},emits:["change","update:modelValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=e,p=xe(l,"modelValue"),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const v={...ve(l,Eo),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d},y=[],k=t.h(o,v);y.push(k);const b={default:()=>y};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const u=ve(l,ge,me);return u["content-class"]=f,t.h(a,{...u,prop:`${l.prop}_item`},b)}}}}const{componentName:lm,create:am,scope:rm}=X("switch-item"),sl=am(om(lm,rm,Se,Wn));function sm(e,n,a,o){return{props:{...me,...ge,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const{emitEvent:s}=Ne({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"]},l.prop??r.attrs.name),{toLocaleRefs:i}=re.useFoxI18n(n),c=i(l,["placeholder"]),f=we(t.computed(()=>l.disabled)),p=Te(t.computed(()=>l.readonly)),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,I=>{d.value=I,s("change",I)});const h=t.computed(()=>({[`${e}`]:!0})),v=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:f.value,[`${e}__placeholder`]:!f.value&&ue(d.value)})),y=Be(t.computed(()=>l.textAlign),"textAlign"),k=t.computed(()=>{const I={};return y.value&&(I["text-align"]=y.value),I}),b=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),u=t.computed(()=>ue(d.value)?c.placeholder.value:d.value),m=t.computed(()=>!ue(l.desc)||r.slots.sub),g=t.computed(()=>({[`${e}__sub`]:!0})),C=t.computed(()=>{const I={};return y.value&&(I["text-align"]=y.value),I}),A=()=>{s("focus",d.value)},S=()=>{s("blur",d.value)},V=t.computed(()=>({[`${e}__append`]:!0})),N=t.computed(()=>ye(l.unit)>0),T=I=>{f.value==!0||p.value==!0||s("click")},B=t.computed(()=>l.icon??a),w=t.computed(()=>({action:!0}));return()=>{const I=[];if(typeof r.slots.content=="function"){const q=r.slots.content();I.push(q)}else{const q=[];if(b.value){const F={tabIndex:0,class:v.value,style:k.value,onFocus:A,onBlur:S,onClick:T};let M=null;r.slots.main?M=t.h("view",F,[r.slots.main(u.value)]):M=t.h("view",F,[u.value]),q.push(M)}if(m.value){const F={tabIndex:0,class:g.value,style:C.value,onFocus:A,onBlur:S,onClick:T};let M=null;r.slots.sub?M=t.h("view",F,[r.slots.sub(l.desc)]):M=t.h("view",F,[l.desc]),q.push(M)}const L={class:h.value},E=t.h("view",L,q);I.push(E)}const P=[],$=ie(l.iconSize);let x=r.slots.icon;if(!x){const q={width:$,height:$,class:["action-icon"]};x=t.h(B.value,q)}const K={class:w.value,onClick:T},D=t.h("view",K,{default:()=>[x]});if(P.push(D),N.value){const q=t.h("view",{},[l.unit]);P.push(q)}const W={class:V.value},H=t.h("view",W,{default:()=>P});I.push(H);const Z={default:()=>I};Z.label=r.slots.default,Z.prepend=r.slots.prepend,Z.append=r.slots.append,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const _=ve(l,ge,me);return t.h(o,{..._,prop:`${l.prop}_item`},Z)}}}}const{componentName:im,create:cm,scope:um}=X("link-item"),il=cm(sm(im,um,oe.ArrowRight,Se)),xo={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:dm,componentName:fm}=X("rate"),mm=dm({props:{...xo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[fm]:!0})),r=v=>{n("update:modelValue",v),n("change",v)},s=(v,y)=>{if(e.disabled||e.readonly)return;let k=0;y===1&&e.modelValue===y||(k=y,e.allowHalf&&v==2&&(k-=.5)),r(k)},i=(v,y,k)=>{let b=0;for(let u=y.value.length-1;u>=0;u--){const m=y.value[u];if(v>m.offsetLeft){k?b=u+(v>m.offsetLeft+m.clientWidth/2?1:.5):b=u+1;break}}return b},c=Je(),f={onTouchStart(v){!e.touchable||e.readonly||c.start(v)},onTouchMove(v){e.touchable&&(c.move(v),c.isHorizontal()&&o.value&&(v.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),d=t.computed(()=>e.customIcon??oe.StarFillN);return{classes:l,...f,onClick:s,toPxDesc:he,renderIcon:(v,y)=>t.h(v,y),rateRefs:o,refRandomId:p,slots:a,customIcon:d}}}),pm=["id"],hm={class:"fox-rate-item__icon--full"},gm={key:0,class:"fox-rate-item__icon--half"},ym={key:1,class:"fox-rate-item__icon--half"};function vm(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:t.normalizeStyle(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",hm,[(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",gm,[(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",ym,[(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,pm))),128))],34)}const kt=ne(mm,[["render",vm]]);function bm(e,n,a,o){return{props:{...me,...ge,...xo},emits:["change","update:modelValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=e,p=xe(l,"modelValue"),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const v={...ve(l,xo),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d},y=[],k=t.h(o,v);y.push(k);const b={default:()=>y};if(r.slots.default){const g=r.slots.default();b.label=()=>g}const u=ve(l,ge,me);return u["content-class"]=f,t.h(a,u,b)}}}}const{componentName:km,create:Sm,scope:Cm}=X("rate-item"),cl=Sm(bm(km,Cm,Se,kt)),wm=/scroll|auto|overlay/i,Ts=window;function Nm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Do(e,n=Ts){let a=e;for(;a&&a!==n&&Nm(a);){const{overflowY:o}=window.getComputedStyle(a);if(wm.test(o))return a;a=a.parentNode}return n}function $s(e,n=Ts){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=Do(e.value,n))}),a}const Es=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Bm={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Am(e,n,a){return{props:{...Bm},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["pullText","loadText","loadMoreText"]),c=t.ref(),f=$s(c),p=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),h=m=>m?m.offsetTop+h(m.offsetParent):0,v=()=>{let m=0,g=0,C="down";if(f.value==window){const A=Es();c.value&&(m=h(c.value)+c.value.offsetHeight-A-window.innerHeight),g=A}else{const{scrollHeight:A,clientHeight:S,scrollTop:V}=f.value;m=A-S-V,g=V}return p.beforeScrollTop>g?C="up":C="down",p.beforeScrollTop=g,l("scroll-change",g),m<=o.threshold&&C=="down"},y=()=>{Ye(()=>{if(!v()||!o.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},k=()=>{f.value&&f.value.addEventListener("scroll",y,o.useCapture)},b=()=>{f.value&&f.value.removeEventListener("scroll",y,o.useCapture)};t.onMounted(()=>{k(),o.immediate&&y()}),t.onUnmounted(()=>{b()});const u=t.ref(!1);return t.onActivated(()=>{u.value&&(u.value=!1,k())}),t.onDeactivated(()=>{u.value=!0,b()}),t.watch(()=>o.modelValue,m=>{m||(p.isInfiniting=!1)}),()=>{const m={class:"fox-infinite__container"},g=t.h("view",m,[r?.default?.()]),C=[];if(p.isInfiniting){let N=r?.loading?.()??null;if(!N){let w=r?.loadingIcon?.()??null;if(!w){const $={class:["fox-infinite__bottom-box__img"]};w=t.h(a,$)}const I={class:"fox-infinite__bottom-box__text"},P=t.h("view",I,[i.loadText.value]);N=[w,P]}const T={class:"fox-infinite__bottom-box"},B=t.h("view",T,N);C.push(B)}else if(!o.hasMore){let N=r?.finished?.()??null;if(!N){const T={class:"fox-infinite__bottom-tips"};N=t.h("view",T,[i.loadMoreText.value]),C.push(N)}}const A={class:"fox-infinite__bottom"},S=t.h("view",A,C),V={class:d.value,ref:c};return t.h("view",V,[g,S])}}}}const{componentName:Vm,create:Tm,scope:$m}=X("infinite-loading"),Yn=Tm(Am(Vm,$m,oe.Loading)),{componentName:Em,create:xm}=X("button"),Dm=xm({components:{Loading:oe.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:o,size:l,shape:r,disabled:s,loading:i,color:c,plain:f,block:p}=t.toRefs(e),d=y=>{!i.value&&!s.value&&n("click",y)},h=t.computed(()=>{const y=Em;return{[y]:!0,[`${y}--${o.value}`]:o.value,[`${y}--${l.value}`]:l.value,[`${y}--${r.value}`]:r.value,[`${y}--plain`]:f.value,[`${y}--block`]:p.value,[`${y}--disabled`]:s.value,[`${y}--loading`]:i.value}}),v=t.computed(()=>{const y={};return c?.value&&(f.value?(y.color=c.value,y.background="#fff",c.value?.includes("gradient")||(y.borderColor=c.value)):(y.color="#fff",y.background=c.value)),y});return{handleClick:d,classes:h,getStyle:v}}}),Im={class:"fox-button__wrap"};function qm(e,n,a,o,l,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",Im,[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=ne(Dm,[["render",qm]]),Mm={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Pm=(e,n,a)=>({props:{...Mm},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["placeholder"]),c=t.reactive({active:!1}),f=t.computed(()=>({background:o.background})),p=t.computed(()=>({background:o.inputBackground})),d=T=>{let w=T.target.value;o.maxLength&&w.length>Number(o.maxLength)&&(w=w.slice(0,Number(o.maxLength))),l("update:modelValue",w,T),l("change",w,T)},h=t.ref({}),v=T=>{let w=T.target.value;c.active=!0,h.value=o.focusStyle,l("focus",w,T)},y=T=>{setTimeout(()=>{c.active=!1},0);let w=T.target.value;o.maxLength&&w.length>Number(o.maxLength)&&(w=w.slice(0,Number(o.maxLength))),h.value={},l("blur",w,T)},k=T=>{l("update:modelValue","",T),l("change","",T),l("clear","")},b=t.computed(()=>String(o.modelValue).length>0),u=t.computed(()=>{const T={};return b.value||(T.display="none"),T}),m=()=>{l("search",o.modelValue)},g=T=>{l("keyup-input",T),T.key.toLocaleUpperCase()==="ENTER"&&m()},C=T=>{l("click-input",T)},A=T=>{l("click-left-icon",o.modelValue,T)},S=t.computed(()=>({textAlign:o.inputAlign})),V=t.ref(null);t.onMounted(()=>{o.autofocus&&V.value.focus()});const N=()=>{const T=[];if(r.leftin){const $={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:A},x=t.h("view",$,[r.leftin()]);T.push(x)}const B={ref:V,class:[`${e}__input-inner`],style:S.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:C,onInput:d,onFocus:v,onBlur:y,onkeyup:g},w=t.h("input",B);T.push(w);const I=[];if(o.clearable){const $={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:u.value,onClick:k},x=r?.clear?.()??o.clearIcon??a,K=t.h("view",$,[t.h(x)]);I.push(K)}if(r.rightin){const $={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},x=t.h("view",$,[r.rightin()]);I.push(x)}if(I.length>0){const $={class:`${e}__input-inner-right`},x=t.h("view",$,I);T.push(x)}const P={class:[`${e}__search-input`,`${o.shape}`],style:{...p.value,...h.value}};return t.h("view",P,T)};return()=>{const T=[];if(o.label){const I={class:`${e}__search-label`},P=t.h("span",I,[o.label]);T.push(P)}if(r.leftout){const I={class:[`${e}__search-icon`,`${e}__left-search-icon`]},P=t.h("view",I,[r.leftout()]);T.push(P)}const B=N();if(T.push(B),r.rightout){const I={class:[`${e}__search-icon`,`${e}__right-search-icon`]},P=t.h("view",I,[r.rightout()]);T.push(P)}const w={class:`${e}`,style:f.value};return t.h("view",w,T)}}}),{componentName:Lm,create:zm,scope:Fm}=X("searchbar"),Xn=zm(Pm(Lm,Fm,oe.CircleClose)),ln={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Rm(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(an(e,r)===a)return l}else if(o==="item"){if(qe(a,r))return l}else if(xs(e,r)===a)return l}return-1}function an(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function hr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function xs(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Om(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Km(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Um=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let f=a;typeof i=="function"&&(f=f.filter(i));let p=(o-1)*l,d=p+l;d>f.length&&(d=f.length);const h=f.slice(p,d);return{totalSize:f.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=Ze(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ae(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function Hm(){const e=t.getCurrentInstance();return new Um(e.proxy)}function jm(e,n,a,o,l,r,s,i,c,f,p){return{props:{...ln},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{emit:h,slots:v}){const{toLocaleRefs:y}=re.useFoxI18n(n),k=y(d,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),b=Hm(),u=t.ref([]),m=t.ref(0),g=t.ref(""),C=t.shallowRef(null),A=t.computed(()=>{const O={};return d.params&&Object.assign(O,d.params),ue(g.value)||(O[`${d.searchKey}`]=g.value),C.value&&Object.assign(O,C.value),O});let S=!0;const V=async(O,U,G)=>{try{if(T.value===!1)return;let Q=null;ue(g.value)||(Q=z=>{const ee=an(d,z);if(typeof ee=="string"&&ee.includes(g.value))return!0;const te=hr(d,z);return!!(typeof te=="string"&&te.includes(g.value))});const J=await b.load("actionsheet",O,U,G,A.value,S,Q??void 0);S=!1,Array.isArray(J)?(u.value=J,m.value=1,T.value=!1):!Array.isArray(J.page)||J.page.length===0?(console.warn("[FoxUI] can not load more data"),T.value=!1):(Reflect.apply([].push,u.value,J.page),m.value=Math.ceil(u.value.length/d.pageSize),(J.totalSize&&u.value.length>=J.totalSize||G<J.page.length)&&(T.value=!1)),N.value=!1}catch(Q){console.error("[FoxUI] ActionSheet load more data fail",Q),T.value=!0,m.value=0,u.value=[]}setTimeout(()=>{h("loaded-data")},250)},N=t.ref(!1),T=t.ref(!0),B=async()=>{if(!d.source){N.value=!1;return}await V(d.source,m.value+1,d.pageSize)};t.watch(()=>g.value,(O,U)=>{ue(O)&&!ue(U)&&B()}),t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([O,U,G])=>{d.source&&B()},{immediate:!0});const w=t.computed(()=>!d.multiple&&d.isAutoBackFill),I=t.ref([]);let P=null;const $=t.ref(d.visible);t.watch(()=>d.visible,O=>{$.value!==O&&($.value=O),O?P=[...I.value]:P=null});const x=(O,U)=>{const G=[];return Array.isArray(O)||(O=[O]),O.forEach(Q=>{let J=Rm(d,U,Q,d.valueType);J!==-1&&G.push(J)}),qe(G,I.value)?!1:(I.value=G,!0)};t.watch([()=>d.modelValue,()=>u.value],([O,U],[G,Q])=>{if(x(O,U)){const z=K();D(z)}},{deep:!0});const K=()=>{const O=[],U=[],G=[];for(let ee of I.value){const te=u.value[ee];U.push(te);const ae=an(d,te);if(G.push(ae),d.valueType==="item")O.push(te);else if(d.valueType==="text")O.push(ae);else{const ce=xs(d,te);O.push(ce)}}let Q=null,J=null,z=null;return d.multiple?(Q=O,J=G,z=U):(Q=O[0]??null,J=G[0]??null,z=U[0]??null),{value:Q,text:J,item:z}},D=O=>{h("update:modelValue",O.value),h("update:text",O.text),h("change",O.value,O.item,O.text)},W=()=>{P&&(I.value=P)},H=O=>{const U=I.value.indexOf(O);d.multiple?U===-1?I.value.push(O):I.value.splice(U,1):U===-1?I.value=[O]:I.value=[],(w.value||!d.poppable&&!d.showFooter)&&j()},Z=O=>{$.value=O,h("update:visible",O)},_=()=>{const O=()=>{W(),Z(!1)},U=d.beforeMethod??d.beforeClose;if(typeof U=="function"){const G=U("close");gt(G)?G.then(Q=>{Q!==!1&&O()}).catch(()=>{O()}):G!==!1&&O()}else O()},j=()=>{const O=K(),U=()=>{D(O),Z(!1)},G=d.beforeMethod??d.beforeClose;if(typeof G=="function"){const Q=G("confirm",O.value,O.item,O.text);gt(Q)?Q.then(J=>{J!==!1&&U()}).catch(()=>{U()}):Q!==!1&&U()}else U()},q=()=>{T.value=!0,m.value=0,u.value=[],d.source&&B()},L=()=>{let O=k.title.value??"";v.title&&(O=v.title());const U=t.h("view",{class:["fox-actionsheet__header-title"]},[O]),G=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:_});return t.h("view",{class:["fox-actionsheet__header"]},[U,G])},E=()=>{let O=null;if(v.search)O=v.search();else{const U={onSearch:q,placeholder:k.seachPlaceholder.value,disabled:d.disabled,modelValue:g.value,"onUpdate:modelValue":G=>{g.value=G}};O=t.h(r,U,{leftin:()=>t.h(f)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[O])},F=(O,U,G,Q,J)=>{if(v.optionLabel)return v.optionLabel({text:O,checked:U,disabled:G,subText:Q,item:J});const z=[],ee=t.h("view",{class:"fox-actionsheet__list-item-text"},[O]);if(z.push(ee),Q){const te=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[Q]);z.push(te)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},z)},M=(O,U,G,Q)=>{if(v.optionIcon)return v.optionIcon({checked:O,disabled:U,iconSize:G,item:Q});if(O){if(v.checkedIcon)return v.checkedIcon({disabled:U,item:Q});{const J=d.checkedIcon??i;return t.h(J,{width:G,height:G,class:["fox-actionsheet__list-item-icon"]})}}else{if(v.icon)return v.icon({disabled:U,item:Q});{const J=d.icon??s;return t.h(J,{width:G,height:G,class:["fox-actionsheet__list-item-icon"]})}}},R=()=>{const O=[];for(let U=0;U<u.value.length;U++){const G=u.value[U],Q=an(d,G),J=hr(d,G),z=["fox-actionsheet__list-item"],ee={};let te=Om(d,G),ae=d.iconSize?ie(d.iconSize):null;const ce=Km(d,G,U);ce&&(te=te||ce.disabled,ce.class&&z.push(ce.class),ce.style&&Object.assign(ee,ce.style)),te=!!(d.disabled||te);const Ee=I.value.includes(U);te&&z.push("is-disabled"),Ee&&z.push("is-checked");const De={class:z,style:ee,key:`${U}`,onClick:()=>{te||H(U)}};let _e=[];if(v.option)_e.push(v.option({item:G,checked:Ee,disabled:te}));else{const Fs=F(Q,Ee,te,J,G);_e.push(Fs);const Rs=M(Ee,te,ae,G);_e.push(Rs)}const Zn=t.h("view",De,_e);O.push(Zn)}return O},Y=()=>{let O=[];if(v.buttons)O=v.buttons();else{const G=t.h(l,{type:"primary",block:"block",onClick:j,disabled:d.disabled},{default:()=>k.confirmText.value});O.push(G)}return t.h("view",{class:"fox-actionsheet__footer"},[O])};return $e({search:async(O=null,U=!0)=>{C.value=O&&t.toRaw(O),t.triggerRef(C),U&&(T.value=!0,m.value=0,u.value=[]),t.nextTick(()=>{B()})},clear:()=>{T.value=!0,m.value=0,u.value=[]},confirm:()=>{j()},cancel:()=>{_()}}),()=>{const O=[];if(d.showHeader){const ae=L();O.push(ae)}if(d.showSearchbar){const ae=E();O.push(ae)}let U=null;if(v.content)U=v.content();else{const ae=R(),ce={hasMore:T.value,loadText:k.loadText.value,loadMoreText:k.loadMoreText.value,modelValue:N.value,"onUpdate:modelValue":Ee=>{N.value=Ee},onLoadMore:B};U=t.h(o,ce,{default:()=>ae})}const G={};d.optionsHeight&&(G.height=d.optionsHeight);const Q={"fox-actionsheet__list":!0};d.poppable||(Q["fox-actionsheet__list--inner"]=!0);const J=t.h("view",{class:Q,style:G},[U]);if(O.push(J),d.showFooter&&!w.value){const ae=Y();O.push(ae)}const z=t.h("view",{class:"fox-actionsheet"},O);if(!d.poppable)return z;const ee=["fox-actionsheet__popup"];d.popClass&&ee.push(d.popClass);const te={popClass:ee.join(" "),visible:$.value,closeable:!1,"onUpdate:visible":Z,position:d.position,round:"round",onClickOverlay:_,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(a,te,{default:()=>z})}}}}const{componentName:Wm,create:Ym,scope:Xm}=X("actionsheet-pane"),Qn=Ym(jm(Wm,Xm,de,Yn,Me,Xn,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2)),gr={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 Qm(e,n,a,o,l,r,s){return{props:{...me,...ge,...gr,...ln},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const f=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:d}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),v=h(i,["placeholder"]),y=t.ref(!1),k=xe(i,"modelValue"),b=t.ref(""),u=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),m="fox-input-item",g=t.computed(()=>({[m]:!0,[`${m}__disabled`]:f.value})),C=Be(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const E={};return C.value&&(E["text-align"]=C.value),E}),S=t.ref(!1),V=()=>{S.value=!0},N=E=>{S.value=E},T=E=>{k.value=E,d("update:modelValue",E)},B=(E,F)=>{d("change",E,F)},w=E=>{let M=E.target.value;y.value=!0,d("focus",M,E)},I=E=>{setTimeout(()=>{y.value=!1},0);let M=E.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),d("blur",M,E)},P=E=>{b.value=E,d("update:text",E)},$=t.computed(()=>({[`${m}__append`]:!0})),x=t.computed(()=>ye(i.unit)>0),K=t.computed(()=>ye(i.unit)>0&&!y.value),D=t.computed(()=>({hidden:!K.value})),W=E=>{k.value="",d("update:modelValue","",E),d("change","",E),d("clear","")},H=t.computed(()=>i.clearable&&!f.value&&!p.value),Z=t.computed(()=>ye(k.value)>0&&y.value),_=E=>{Z.value?W(E):V()},j=t.computed(()=>Z.value&&H.value?o:l),q=t.computed(()=>({action:!0})),L=t.ref(null);return $e({search:E=>{L.value&&L.value.search(E)},clear:()=>{L.value&&L.value.clear},confirm:E=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()}}),()=>{const E={class:g.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:v.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:V,onFocus:w,onBlur:I};s&&(E.disabled=!0);const F=[],M=t.h("input",E);F.push(M);const R=[],Y={class:["action-icon"]},O=t.h(j.value,Y),U={class:q.value,onClick:_},G=t.h("view",U,{default:()=>[O]});if(R.push(G),x.value){const De=t.h("view",{class:D.value},[i.unit]);R.push(De)}const Q={class:$.value},J=t.h("view",Q,{default:()=>R});F.push(J);const z={default:()=>F};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 ee=ve(i,ln);ee.ref=L,ee.class=i.actionsheetProps,ee.disabled=f.value||p.value,ee.visible=S.value,ee["onUpdate:visible"]=N,ee.modelValue=k.value,ee["onUpdate:modelValue"]=T,ee.text=b.value,ee["onUpdate:text"]=P,ee.onChange=B,ee.poppable=!0;const te={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},ae=t.h(r,ee,te);z.hide=()=>[ae];const ce=Nt(i,gr,ln);return t.h(a,{...ce,prop:`${i.prop}_item`},z)}}}}const{componentName:Gm,create:Zm,scope:Jm}=X("actionsheet-item"),ul=Zm(Qm(Gm,Jm,Se,oe.CircleClose,oe.ArrowRight,Qn)),Io={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:_m,create:ep}=X("input-number"),tp=ep({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Io},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const v=_m;return{[v]:!0,[`${v}--disabled`]:e.disabled}}),o=v=>Number(v).toFixed(Number(e.decimalPlaces)),l=v=>{const y=v.target;n("update:modelValue",y.valueAsNumber,v)},r=(v,y)=>{let k=o(v);n("update:modelValue",k,y),n("change",k,y)},s=(v=Number(e.modelValue))=>v<Number(e.max)&&!e.disabled,i=(v=Number(e.modelValue))=>v>Number(e.min)&&!e.disabled,c=v=>{if(n("reduce",v),i()){let y=Number(e.modelValue)-Number(e.step);r(y,v)}else n("overlimit",v,"reduce")},f=v=>{if(n("add",v),s()){let y=Number(e.modelValue)+Number(e.step);r(y,v)}else n("overlimit",v,"add")},p=v=>{e.disabled||e.readonly||n("focus",v)},d=v=>{if(e.disabled||e.readonly)return;let k=v.target.valueAsNumber;k<Number(e.min)?k=Number(e.min):k>Number(e.max)&&(k=Number(e.max)),r(k,v),n("blur",v)},h=v=>{let y=Number(v);return y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),y};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const v=h(e.modelValue);v!==Number(e.modelValue)&&r(v,{})}),{classes:a,change:l,blur:d,focus:p,add:f,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:he}}}),np=["min","max","disabled","readonly","value"];function op(e,n,a,o,l,r){const s=t.resolveComponent("Minus"),i=t.resolveComponent("Plus");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...c)=>e.reduce&&e.reduce(...c))},[t.renderSlot(e.$slots,"left-icon",{},()=>[t.createVNode(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth),height:e.toPxDesc(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...c)=>e.change&&e.change(...c)),onBlur:n[2]||(n[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:n[3]||(n[3]=(...c)=>e.focus&&e.focus(...c))},null,44,np),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 Ge=ne(tp,[["render",op]]);function lp(e,n,a,o){return{props:{...me,...ge,...Io},emits:["change","update:modelValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=e,p=xe(l,"modelValue"),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const h={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},y={...ve(l,Io),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d},k=t.h(o,y,h),b=[];b.push(k);const u={default:()=>b};u.label=r.slots.default,u.fixedPreTip=r.slots.fixedPreTip,u.fixedTip=r.slots.fixedTip;const m=ve(l,ge,me);return m["content-class"]=f,t.h(a,{...m,prop:`${l.prop}_item`},u)}}}}const{componentName:ap,create:rp,scope:sp}=X("inputnumber-item"),dl=rp(lp(ap,sp,Se,Ge)),ip={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function cp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function yr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function vr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function up(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function so(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function br(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function kr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function io(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let dp=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[o]);const l=Ze(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function fp(){const e=t.getCurrentInstance();return new dp(e.proxy)}function mp(e,n,a,o){return{props:{...ip},emits:["update:modelValue","change","loaded-data"],setup(l,{slots:r,emit:s}){const i=e,c=fp(),f=t.ref([]),p=t.computed(()=>f.value.filter(q=>up(l,q)!==!1)),d=t.ref(-1),h=()=>{const q=l.modelValue,L=p.value.findIndex(E=>yr(l,E)===q);d.value!==L&&(d.value=L,l.scroll&&_(L,!1))};t.watch([()=>l.modelValue,p],()=>{h()});const v=q=>d.value===q,y=q=>{if(q<0&&q>=p.value.length)return!1;const L=p.value[q],F=(io(l,L,q)??{}).status??so(l,L);return v(q)||F},k=t.computed(()=>{const q={[i]:!0};return l.mode?q[`is-${l.mode}`]=!0:l.direction&&(q[`is-${l.direction}`]=!0),l.scroll&&(q["is-scroll"]=!0),q}),b=t.computed(()=>({})),u=(q,L,E,F,M)=>{const R={[`${i}__step`]:!0};return M&&(R[`${M}`]=!0),R[`${m.value}`]=!0,F&&(R["is-doit"]=!0),q===d.value?R["is-active"]=!0:L==="done"?R["is-done"]=!0:L==="error"?R["is-error"]=!0:L==="half"?R["is-half"]=!0:E?R["is-disabled"]=!0:R["is-normal"]=!0,R},m=t.computed(()=>{if(l.mode==="simple")return"start";let q=l.align;return q||(l.direction==="vertical"?q="start":q="center"),q}),g=(q,L={})=>{const E={...L};return m.value==="start"&&q===p.value.length-1?E.flex="0 0 auto":l.step?l.direction==="vertical"?E.height=l.step:E.width=l.step:E.flex="1 1 100%",E},C=(q,L)=>{let E={};if(L<p.value.length-1){const F=L+1;y(L)&&y(F)?l.direction==="vertical"?E.height="100%":E.width="100%":E.opacity="0"}return E},A=q=>p.value.length-1===q,S=(q,L)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&L>d.value||d.value===L)return;const E=d.value,F=L;d.value=L,l.scroll&&_(L,!1);const M=yr(l,q);s("update:modelValue",M);const R={fromIndex:E,currentIndex:F,item:q,items:p.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",M,R)},V=t.ref(!0),N=async(q,L)=>{try{const E=await c.load("stesbar",q,L);Array.isArray(E)&&(f.value=E),V.value=!1}catch(E){console.error("[FoxUI] Load StepsBar Data Fail",E),f.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([q,L])=>{q&&N(q,L)},{immediate:!0});const T=(q,L,E,F,M)=>{let R=null;if(r.icon)R=r.icon({item:q,index:L,status:F});else if(F==="done"){const O={};l.iconSize&&(O.width=l.iconSize,O.height=l.iconSize);const U=l.icon??a;R=t.h(U,O)}else{const O=E??`${L+1}`;R=t.h("span",{},[O])}const Y={class:"fox-steps-bar__icon",onClick:()=>{M||S(q,L)}};return t.h("view",Y,[R])},B=(q,L,E)=>{const F=t.h("i",{class:"fox-steps-bar__line-inner",style:C(q,L)});return t.h("view",{class:"fox-steps-bar__line"},[F])},w=()=>{let q=null;if(r.markIcon)q=r.markIcon();else{const E={};l.iconSize&&(E.width=l.markIconSize,E.height=l.markIconSize);const F=l.markIcon??o;q=t.h(F,E)}return t.h("view",{class:"fox-steps-bar__mark"},[q])},I=(q,L,E,F,M)=>{const R=[];if(!A(L)){const U=B(q,L);R.push(U)}const Y=T(q,L,E,F,M);R.push(Y);const O={class:"fox-steps-bar__head"};return t.h("view",O,R)},P=(q,L,E,F)=>{let M=null;r.main?M=r.main({item:q,index:L,status:E}):M=cp(l,q);const R={class:"fox-steps-bar__main",onClick:()=>{F||S(q,L)}};return t.h("view",R,[M])},$=(q,L,E)=>{let F=null;if(r.sub){F=r.sub({item:q,index:L,status:E});const M={class:"fox-steps-bar__sub"};return t.h("view",M,[F])}return null},x=(q,L)=>{const E=io(l,q,L)??{},F=E.status??so(l,q);let M=vr(l,q);E.disabled===!0&&(M=!0),l.disabled===!0&&(M=!0);const R=E.label??kr(l,q),Y=[],O=T(q,L,R,F,M);O&&Y.push(O);const U=P(q,L,F,M);if(U&&Y.push(U),!A(L)){const te=B(q,L);te&&Y.push(te)}const G=t.h("view",{class:"fox-steps-bar__head"},Y),Q=E.class,J=E.style??{};let z=br(l,q);E.doit===!0&&(z=!0);const ee={ref:Z(L),class:u(L,F,M,z,Q),style:g(L,J)};return t.h("view",ee,[G])},K=(q,L)=>{const E=io(l,q,L)??{},F=E.status??so(l,q);let M=vr(l,q);E.disabled===!0&&(M=!0),l.disabled===!0&&(M=!0);const R=E.label??kr(l,q),Y=[],O=l.layout;for(let z of O)if(z==="head"){const ee=I(q,L,R,F,M);Y.push(ee)}else if(z==="main"){const ee=P(q,L,F,M);Y.push(ee)}else if(z==="sub"){const ee=$(q,L,F);Y.push(ee)}else if(z==="mark"){const ee=w();Y.push(ee)}const U=E.class,G=E.style??{};let Q=br(l,q);E.doit===!0&&(Q=!0);const J={ref:Z(L),class:u(L,F,M,Q,U),style:g(L,G)};return t.h("view",J,Y)},D=t.ref(),W=t.ref([]),H=(q,L)=>{W.value[L]=q},Z=q=>L=>{H(L,q)},_=(q,L)=>{const E=D.value,F=W.value;if(!E||!F||!F[q])return;const M=F[q];let R=0;l.direction==="vertical"?R=M.offsetTop-(E.offsetHeight-M.offsetHeight)/2:R=M.offsetLeft-(E.offsetWidth-M.offsetWidth)/2,j(E,R,L?0:.3,l.direction)},j=(q,L,E,F)=>{let M=0;const R=F==="horizontal"?q.scrollLeft:q.scrollTop,Y=E===0?1:Math.round(E*1e3/16);function O(){F==="horizontal"?q.scrollLeft+=(L-R)/Y:q.scrollTop+=(L-R)/Y,++M<Y&&Re(O)}O()};return()=>{const q=[];if(l.mode==="simple")for(let E=0;E<p.value.length;E++){const F=p.value[E],M=x(F,E);q.push(M)}else for(let E=0;E<p.value.length;E++){const F=p.value[E],M=K(F,E);q.push(M)}const L={ref:D,class:k.value,style:b.value};return t.h("view",L,q)}}}}const{componentName:pp,create:hp,scope:gp}=X("steps-bar"),fl=hp(mp(pp,gp,oe.Checklist,oe.ArrowRight));function yp(e){e.stopPropagation()}class vp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=Jo()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=_o(),o=(l,r,s,i)=>{this.updateMove({x:l,y:r})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),yp(l),o(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{o(a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function bp(e,n){return new vp(e,n)}const kp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]}},Sp=(e,n,a,o=!1)=>({props:{...kp},emits:["click"],setup(l,{slots:r,emit:s}){const i=t.reactive({top:l.top,right:l.right,bottom:l.bottom,left:l.left}),c=t.computed(()=>{const m=[`${e}`];return l.customClass&&m.push(l.customClass),m}),f=t.computed(()=>{const m={};return ue(i.top)||(m.top=i.top),ue(i.right)||(m.right=i.right),ue(i.bottom)||(m.bottom=i.bottom),ue(i.left)||(m.left=i.left),ue(l.width)||(m.width=l.width),ue(l.height)||(m.height=l.height),ue(l.color)||(m.color=l.color),ue(l.background)||(m.background=l.background),ue(l.borderRadius)||(m["border-radius"]=l.borderRadius),m}),p=t.computed(()=>({[`${e}__icon`]:!0})),d=()=>{s("click")},h=t.ref(null),v=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},y={x:0,y:0},u=bp(m=>{if(!h.value)return;const g=h.value;v(),i.left=g.offsetLeft,i.top=g.offsetTop,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`,g.style.right=null,g.style.bottom=null,y.x=i.left,y.y=i.top},m=>{if(!h.value)return;const g=h.value;v(),i.left=y.x+m.x,i.top=y.y+m.y,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`});return t.onMounted(()=>{if(l.draggable&&h.value){const m=[h.value];u.open(m)}}),t.onBeforeUnmount(()=>{l.draggable&&h.value&&u.close()}),()=>{let m=[];const g=typeof r.default=="function"?r.default():[];if(g&&g.length>0)m=g;else{const A=t.h(a,{class:p.value});m.push(A)}const C={ref:A=>{h.value=A},class:c.value,style:f.value,onClick:d};return t.h("view",C,m)}}}),{componentName:Cp,create:wp,scope:Np}=X("floating-button"),ml=wp(Sp(Cp,Np,oe.Uploader,!1)),Bp={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1}};function Ap(e,n,a){return{props:{...Bp},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const d={[`${e}`]:!0};return o.disabled?d[`${e}--disabled`]=!0:d[`${e}--${o.type}`]=!0,d}),s=xe(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),f=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),p=()=>{l("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const b={class:c.value},u=t.h("span",b,[i.value]);d.push(u)}const h={class:f.value},v=o.icon??a,y=t.h(v,h);return d.push(y),o.textPosition==="right"&&d.reverse(),t.h("view",{class:r.value,onClick:p},d)}}}}const{componentName:Vp,create:Tp,scope:$p}=X("more-button"),pl=Tp(Ap(Vp,$p,oe.RectUp)),Ep={width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},xp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Dp(e,n,a){return{props:{...Ep},setup(o,{attrs:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["confirmText","cancelText"]),c=e,f=t.ref(!0),p=C=>{f.value=C},d=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=()=>{d("confirm")},v=()=>{d("cancel")},y=()=>{d("close")},k=(C,A)=>xp(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),b=()=>{const C=[];if(o.icon){const S={class:[`${c}__header-icon`]},V=k(o.icon,S);C.push(V)}if(o.title){const S=t.h("view",{class:`${c}__header-title`},[o.title]);C.push(S)}if(o.showClose&&o.closeIcon){const S={class:[`${c}__header-close-icon`],onClick:y},V=k(o.closeIcon,S);C.push(V)}const A={class:[`${c}__header`]};return t.h("view",A,C)},u=(C,A)=>{const S=[];if(A){const N={class:`${c}__group-title`},T=t.h("view",N,[A]);S.push(T)}if(C){const N=[];Array.isArray(C)||(C=[C]);for(let T of C){const B={class:`${c}__group-row`,innerHTML:T},w=t.h("view",B);N.push(w)}if(N.length>0){const T={class:`${c}__group-rows`},B=t.h("view",T,N);S.push(B)}}if(S.length===0)return null;const V={class:`${c}__group`};return t.h("view",V,S)},m=()=>{const C=[];if(typeof o.message=="string")C.push(o.message);else if(Array.isArray(o.message))for(let S of o.message)if(typeof S=="string"){const V=u(S);C.push(V)}else{const V=u(S.content,S.title);C.push(V)}else if(typeof o.message=="function"){const S=o.message();C.push(S)}else{const S=o.message;C.push(S)}const A={class:`${c}__body`};return t.h("view",A,C)},g=()=>{const C=[];if(o.showCancelButton){const S={class:[`${c}__footer-button`],style:{},onClick:v};o.cancelButtonClass&&S.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(S.style,o.cancleButtonStyle);const V=t.h("button",S,[o.cancelButtonText??i.cancelText.value]);C.push(V)}if(o.showConfirmButton){const S={class:[`${c}__footer-button`],style:{},onClick:h};o.confirmButtonClass&&S.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(S.style,o.confirmButtonStyle);const V=t.h("button",S,[o.confirmButtonText??i.confirmText.value]);C.push(V)}if(C.length===0)return null;const A={class:`${c}__footer`};return t.h("view",A,C)};return()=>{const C=[],A=b();A&&C.push(A);const S=m();S&&C.push(S);const V=g();V&&C.push(V);const N={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},T=t.h("view",N,C),B=[`${c}__popup`];o.popClass&&B.push(o.popClass);const w={};o.width&&(w.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(w.height=typeof o.height=="number"?`${o.height}px`:o.height);const I={popClass:B.join(" "),style:w,visible:f.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":p,position:o.position,round:"round",onClickOverlay:y,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,I,{default:()=>T})}}}}const{componentName:Ip,create:qp,scope:Mp}=X("messagebox"),Pp=qp(Dp(Ip,Mp,de)),Lp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%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",zp="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",Fp="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",Rp="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",Op=new qn,Kp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Up=e=>{let n=document.body,a=e.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):a&&(n=e.teleport));const o=document.createElement("view"),l=`messagebox-${Op.get()}`;o.id=l,o.classList.add("fox-messagebox__root"),e.zIndex&&(o.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${l}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(Pp,e);n.appendChild(o),t.render(r,o)},ot={show:(e,n,a,o)=>{const l={...Kp};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(l,n):(n&&(l.message=n),a&&typeof a=="object"?Object.assign(l,a):(typeof a=="string"&&(l.title=a),o&&typeof o=="object"?Object.assign(l,o):typeof o=="string"&&(l.type=o)));const r=l.type??"info";return l.icon||(r==="success"?l.icon=Fp:r==="warning"?l.icon=Rp:r==="error"?l.icon=Lp:l.icon=zp),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=oe.Close),new Promise((s,i)=>{const c=l.callback;l.callback=f=>{if(typeof c=="function")try{c(f)}catch(p){console.error(p)}s({action:f})},Up(l)})},alert:(e,n,a)=>ot.show("alert",e,n,a),confirm:(e,n,a)=>ot.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=ot.alert,e.config.globalProperties.$confirm=ot.confirm}},Hp=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let l=!0,r=!0;for(let i in n)i==="bubbles"?l=!!n[i]:i==="cancelable"?r=!!n[i]:o[i]=n[i];o.initEvent(e,l,r),(a??document).dispatchEvent(o)},jp=new qn,Wp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Yp=e=>`${e}-${jp.get()}`,Xp=Symbol.for("InnerPageScopeKey"),Qp=Symbol.for("PageWrapperKey"),Gp="FoxLeave",Zp="FoxLeaveEnd",Jp={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 _p(e,n,a,o){return{props:{...ze,...Jp},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(Xp,!0);const c={};t.provide(Qp,c);const f=S=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),p=()=>{f()},d=e,h=S=>{v.value=S,i("update:visible",S)},v=t.ref(!1),y=(S,V)=>Wp(S)?(V.src=S,t.h("img",V)):typeof S=="string"?(Array.isArray(V.class)?V.class.push(S):V.class&&typeof V.class=="object"?V[`${S}`]=!0:typeof V.class=="string"?V.class=`${V.class}, ${S}`:V.class=S,t.h(l.tag,V)):t.h(S,V),k=()=>{if(!l.showHeader)return null;const S=[];if(s.header){const N=s.header();S.push(N)}else if(l.title){const N=t.h("view",{class:`${d}__header-title`},[l.title]);S.push(N)}if(S.length===0)return null;const V={class:[`${d}__header`]};return t.h("view",V,S)},b=()=>{if(!l.showClose)return null;const S={class:[`${d}__close-icon`],onClick:p},V=l.closeIcon??o;return y(V,S)};let u=null;const m=S=>{Hp(Zp,{},u)},g=Yp(e),C=()=>{h(!0)},A=()=>{if(!u)return;const S=u.querySelector(".fox-overlay");S&&(S.classList.add("overlay-fade-leave-active"),S.classList.add("overlay-fade-leave-to"));const V=u.querySelector(".fox-popup");V&&(V.classList.add(`fox-popup-slide-${l.position}-leave-active`),V.classList.add(`fox-popup-slide-${l.position}-leave-to`),V.addEventListener("animationend",m,{once:!0}),V.addEventListener("transitionend",m,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{u=document.querySelector(`.${g}`),u?.addEventListener(Gp,A,{once:!0}),C()}),()=>{const S=[],V=k();V&&S.push(V);const N=b();N&&S.push(N);const T=s.default?s.default():[];Reflect.apply([].push,S,T);const B={[`${d}`]:!0};l.mode&&(B[`${d}--${l.mode}`]=!0);const w={class:B},I=t.h("view",w,S),P=[`${d}__popup`,g];l.popClass&&P.push(l.popClass),l.position&&P.push(`${d}__popup--${l.position}`);const $={};l.width&&($.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&($.height=typeof l.height=="number"?`${l.height}px`:l.height);const K={...ve(l,ze),popClass:P.join(" "),style:$,visible:v.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},D=t.h(a,K,{default:()=>I});return t.h("div",{class:[`${d}__root`,g]},[D])}}}}const{componentName:eh,create:th,scope:nh}=X("popup-wrapper"),hl=th(_p(eh,nh,de,oe.Close));function oh(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(l)},500)}const lh={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function ah(e,n,a,o=!1){return{props:{...lh},emits:["click"],setup(l,r){const s=t.ref(null),i=t.computed(()=>{const g={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(g[`${e}--${l.type??"default"}`]=!0),l.size&&(g[`${e}--${l.size}`]=!0),g}),c=t.computed(()=>{const g={},C=l.textColor??l.color;return C&&(g.color=C),g}),f=(g,C)=>{let A=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const S=l.highlightFilter;if(g.indexOf(S)!==-1){const N=g.replace(new RegExp(S,"g"),`<span>${S}</span>`);C.innerHTML=N,C.class["is-highlight"]=!0,A=t.h(l.tag,C)}}else if(typeof l.highlightFilter=="function"){const S=l.highlightFilter(g);S&&(C.innerHTML=S,C.class["is-highlight"]=!0,A=t.h(l.tag,C))}return A},p=g=>{r.emit("click",g)};let d="";const h=()=>{const g=s.value;if(!g)return;const C=g.clientWidth;oh(g,A=>{const S=g.innerHTML??"";ue(S)||A<C||(d?a?.show(g,S,{type:"text",id:d,showArrow:l.showArrow},!0):d=a?.show(g,S,{type:"text",showArrow:l.showArrow},!0)??"")})},v=()=>{d&&a?.hide(d)};let y=null;const k=g=>{y||(y=setTimeout(()=>{h(),y=null},l.showAfter??0))},b=g=>{y&&(clearTimeout(y),y=null),setTimeout(()=>{v()},l.hideAfter??0)},u=()=>{const g=s.value;g&&(g.addEventListener("mouseover",k),g.addEventListener("mouseleave",b))},m=()=>{const g=s.value;g&&(g.removeEventListener("mouseover",k),g.removeEventListener("mouseleave",b))};return t.onMounted(()=>{!pe(l.showOverflowTooltip)||!a||u()}),t.onBeforeUnmount(()=>{!pe(l.showOverflowTooltip)||!a||m()}),()=>{const g={onClick:p,class:i.value,style:c.value,ref:s};let C=null;if(pe(l.numberFormat)&&typeof r.slots.default=="function"){const N=r.slots.default();if(Array.isArray(N)&&N.length===1){const T=N[0].type.toString();if(T==="Symbol(Text)"||T==="Symbol(v-txt)"){const B=fe(l.digits),w=fe(l.decimalLength),I=pe(l.autoPadding);let P=`${N[0].children}`,$=P.split("").reverse().join("");$=yn($,w,I,B,l.separator),P=$.split("").reverse().join(""),l.highlightFilter!==void 0&&(C=f(P,g)),C||(g.innerHTML=P,C=t.h(l.tag,g))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const N=r.slots.default();if(Array.isArray(N)&&N.length===1){const T=N[0].type.toString();if(T==="Symbol(Text)"||T==="Symbol(v-txt)"){const B=`${N[0].children}`;C=f(B,g),C||(g.innerHTML=B,C=t.h(l.tag,g))}}}C||(C=t.h(l.tag,g,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return C;let S=null;if(l.icon){const N={[`${e}__mark-wrap`]:!0};l.type&&(N[`${e}__mark-wrap--${l.type}`]=!0);const T={},B=l.color;B&&(T.color=B);const w={class:N,style:T};S=t.h("view",w,t.h(l.icon))}else if(r.slots.mark){const N={[`${e}__mark-wrap`]:!0};l.type&&(N[`${e}__mark-wrap--${l.type}`]=!0);const T={},B=l.color;B&&(T.color=B);const w={class:N,style:T};S=t.h("view",w,{default:r.slots.mark})}else{const N={[`${e}__mark`]:!0};l.type&&(N[`${e}__mark--${l.type??"default"}`]=!0);const T={},B=l.color;B&&(T["background-color"]=B);const w={class:N,style:T};S=t.h("view",w)}const V={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",V,[S,C])}}}}const{componentName:rh,create:sh,scope:ih}=X("text"),gl=sh(ah(rh,ih,Bt,!1));function ch(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let f=0;c&&f<r.length;f++){let p=r[f],d=c.find(h=>h[o]===p);if(!d)break;s.push(d[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let f=n[c],p=r[c];const d=f.find(h=>h[o]===p);if(!d)break;s.push(d[a])}else{let c=n;for(let f=0;c&&f<r.length;f++){let p=r[f],d=c.find(h=>h[o]===p);if(!d)break;s.push(d[a]),c=d[l]}}return s}class uh{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Ze(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function dh(){const e=t.getCurrentInstance();return new uh(e.proxy)}const fh={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 mh(e,n,a=!1){return{props:{...fh},setup(o,{attrs:l,slots:r}){const s=dh(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([p,d])=>{i.value=await s.load(o.sourceType,p,d)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let p=ch(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return p.length==0?o.emptyText??"":p.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${p[0]}`:p[0]:p.join(o.separator)}),f=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const p={...l};return r.default?r.default({text:c.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===c.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},c.value):t.h(f,p,{default:()=>c.value}):t.h(f,p,c.value)}}}}const{componentName:ph,create:hh,scope:gh}=X("mapping"),yl=hh(mh(ph,gh,!1));function yh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return Qr(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:r2,create:vh,scope:s2}=X("domain-provider"),vl=vh(yh()),bh={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function kh(e,n){return{inheritAttrs:!1,props:bh,setup(a,{slots:o}){if(it&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(h,v)=>{if(p===null){r.set(h,{visible:null,callback:v});return}l.has(h)&&p.unobserve(h),l.set(h,{visible:null,callback:v}),p.observe(h)},i=h=>{if(p===null){r.delete(h);return}l.has(h)&&(l.delete(h),p.unobserve(h))};let c=a.initialVisibleObserverSize;Ui({acquire:()=>{const h=c>0;return c--,h},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let p=null;const d=(h,v,y)=>{p=new IntersectionObserver(k=>{for(let b of k){let u=!1;b.intersectionRatio>0&&(u=!0);const m=l.get(b.target);if(m)try{if(a.loadPolicy==="lazy"&&!u&&m.visible!==null)return;m.visible=u,m.callback(u)}catch(g){console.error(g)}}},{root:h,rootMargin:v,threshold:y}),r.forEach((k,b)=>{l.set(b,k),p?.observe(b)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([h,v])=>{if(v||!h||p)return;let y=null;typeof h=="string"?y=document.querySelector(h):y=h,y&&d(y,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:i2,create:Sh,scope:c2}=X("rolling-provider"),bl=Sh(kh()),{componentName:Ch,create:wh}=X("cell"),Nh=wh({components:{Right:oe.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.computed(()=>{const r=Ch;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:he(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),Bh={key:0,class:"fox-cell__icon"},Ah={key:1,class:"fox-cell__title"},Vh={class:"title"},Th={class:"fox-cell__title-desc"};function $h(e,n,a,o,l,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",Bh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Ah,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Vh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Th,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 kl=ne(Nh,[["render",$h]]),{componentName:Eh,create:xh}=X("cell-group"),Dh=xh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Eh]:!0}))}}}),Ih={key:1,class:"fox-cell-group__title"},qh={key:3,class:"fox-cell-group__desc"},Mh={class:"fox-cell-group__wrap"};function Ph(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",Ih,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.$slots.desc?t.renderSlot(e.$slots,"desc",{key:2}):e.desc?(t.openBlock(),t.createElementBlock("view",qh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Mh,[t.renderSlot(e.$slots,"default")])],2)}const Sl=ne(Dh,[["render",Ph]]),{componentName:Lh,create:zh}=X("image"),Fh=zh({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:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const v=Lh;return{[v]:!0,[`${v}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const v={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(y=>{y.forEach(k=>{k.isIntersecting&&(r.value=!0,l.value.disconnect())})},v),s.value&&l.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let v={};return e.width&&(v.width=he(e.width)),e.height&&(v.height=he(e.height)),e.radius!==void 0&&e.radius!==null&&(v.overflow="hidden",v.borderRadius=he(e.radius)),v}),f=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,v=>{a.isError=!1,a.loading=!0});const p=()=>{a.loading=!1,n("load")},d=()=>{a.isError=!0,a.loading=!1,n("error")},h=v=>{n("click",v)};return{...t.toRefs(a),imageClick:h,classes:o,styles:f,stylebox:c,error:d,load:p,show:r,imgRef:s}}}),Rh=["src","date-src","alt"],Oh={key:0,class:"fox-img-loading"},Kh={key:1,class:"fox-img-error"};function Uh(e,n,a,o,l,r){const s=t.resolveComponent("Image"),i=t.resolveComponent("ImageError");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:n[2]||(n[2]=(...c)=>e.imageClick&&e.imageClick(...c))},[t.createElementVNode("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...c)=>e.load&&e.load(...c)),onError:n[1]||(n[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,Rh),e.loading?(t.openBlock(),t.createElementBlock("div",Oh,[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",Kh,[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 Cl=ne(Fh,[["render",Uh]]),{create:Hh}=X("layout"),wl=Hh({}),{componentName:jh,create:Wh}=X("col"),Yh=Wh({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=jh,a=t.inject("gutter"),o=t.computed(()=>({[n]:!0,[`${n}-gutter`]:a,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),l=t.computed(()=>({paddingLeft:a/2+"px",paddingRight:a/2+"px"}));return{classes:o,style:l}}});function Xh(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Nl=ne(Yh,[["render",Xh]]),{componentName:Qh,create:Gh}=X("row"),Zh=Gh({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=Qh;t.provide("gutter",e.gutter);const a=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
|
|
5
|
+
*/function sn(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Ce(e),n=Ce(n),[e,n]=Po(Ce(e),Ce(n)),a==1&&(o==1?e=Jn(e):n=Jn(n));let l=Vr(e,n);return a?a==2?"-"+Ce(l):e.length<l.length?Ce(l.substring(1)):"-"+Ce(Jn(l)):Ce(l)}function Jn(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return Vr(n,r)}function Ce(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Po(e,n){let a=e.split("."),o=n.split("."),l=a[0].length,r=o[0].length;return l>r?o[0]=new Array(Math.abs(l-r)+1).join("0")+(o[0]?o[0]:""):a[0]=new Array(Math.abs(l-r)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,r=o[1]?o[1].length:0,(l||r)&&(l>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function Vr(e,n){[e,n]=Po(e,n);let a="",o=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let r=parseInt(e[l])+parseInt(n[l])+o;a=r%10+a,o=Math.floor(r/10)}return o?o.toString()+a:a}var be=(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))(be||{});function zt(e,n=0,a=be.HALF_EVEN){if(a===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let l=e.split("."),r=l[0],s=l[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+s,c=zt(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,Ia(l[1],r,o,a)?(o?"-":"")+_n(r):(o?"-":"")+r;if(l[1]){if(l[1].length<n)return(o?"-":"")+r+"."+l[1]+new Array(n-l[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");s=l[1].substring(0,n);let i=l[1].substring(n);return i&&Ia(i,s,o,a)&&(s=_n(s),s.length>n)?(o?"-":"")+_n(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function Ia(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===be.DOWN||!a&&o===be.FLOOR||a&&o===be.CEILING)return!1;if(o===be.UP||a&&o===be.FLOOR||!a&&o===be.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(o){case be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function _n(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,o="";for(let l=a;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function uo(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=Vt(e),n=Vt(n);let o=0,l=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(l=n.length-n.indexOf(".")-1);let r=o+l;if(e=Vt(e.replace(".","")),n=Vt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let s=n.length,i=0,c=[],f=s-1,p="";for(let d=0;d<s;d++)c[d]=e.length-1;for(let d=0;d<2*e.length;d++){let h=0;for(let k=n.length-1;k>=f&&k>=0;k--)c[k]>-1&&c[k]<e.length&&(h+=parseInt(e[c[k]--])*parseInt(n[k]));h+=i,i=Math.floor(h/10),p=h%10+p,f--}return p=Vt(Ks(p,r)),a==1&&(p="-"+p),p}function Ks(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Vt(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 fo(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var l=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ce(n.replace(".","")),l>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ce(e+new Array(l+1).join("0"));else if(l>f)e=e.replace(".",""),e=Ce(e+new Array(l-f+1).join("0"));else if(l<f){e=e.replace(".","");let p=e.length-f+l;e=Ce(e.substring(0,p)+"."+e.substring(p))}else l==f&&(e=Ce(e.replace(".","")))}let r=0,s=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let f=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(f+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=f,i="0."+new Array(f).join("0")}for(a=a+2;r<=a;){let f=0;for(;parseInt(c)>=parseInt(n);)c=sn(c,"-"+n),f++;i+=f,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+Ce(zt(i,a-2))}function mo(e,n){return e=e.toString(),n=n.toString(),n=po(n),sn(e,n)}function po(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function qa(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ma(e),Ma(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=mo(e,uo(n,zt(fo(e,n),0,be.FLOOR)));return a+o}function Ma(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Pa(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=Po(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class se{value;static RoundingModes=be;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,o]=n.split(/[eE]/);a=Ce(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(o=parseInt(o)+a.indexOf("."),a=a.replace(".","")):o=parseInt(o)+a.length,a.length<o?n=l+a+new Array(o-a.length+1).join("0"):a.length>=o&&o>0?n=l+Ce(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=se.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=se.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<a?(a=i,i=0):i-=a,s=n.substring(i,i+a)+(i<r-a&&i>=0?o:"")+s;return(l?"-":"")+s+n.substring(r)}getPrettyValue(n,a){return se.getPrettyValue(this.value,n,a)}static round(n,a=0,o=be.HALF_EVEN){if(n=se.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return zt(n,a,o)}round(n=0,a=be.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new se(zt(this.value,n,a))}static floor(n){return n=se.validate(n),n.indexOf(".")===-1?n:se.round(n,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new se(this.value):new se(this.value).round(0,be.FLOOR)}static ceil(n){return n=se.validate(n),n.indexOf(".")===-1?n:se.round(n,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new se(this.value):new se(this.value).round(0,be.CEILING)}static add(n,a){return n=se.validate(n),a=se.validate(a),sn(n,a)}add(n){return new se(sn(this.value,n.getValue()))}static subtract(n,a){return n=se.validate(n),a=se.validate(a),mo(n,a)}subtract(n){return new se(mo(this.value,n.getValue()))}static multiply(n,a){return n=se.validate(n),a=se.validate(a),uo(n,a)}multiply(n){return new se(uo(this.value,n.getValue()))}static divide(n,a,o){return n=se.validate(n),a=se.validate(a),fo(n,a,o)}divide(n,a){return new se(fo(this.value,n.getValue(),a))}static modulus(n,a){return n=se.validate(n),a=se.validate(a),qa(n,a)}modulus(n){return new se(qa(this.value,n.getValue()))}static compareTo(n,a){return n=se.validate(n),a=se.validate(a),Pa(n,a)}compareTo(n){return Pa(this.value,n.getValue())}static negate(n){return n=se.validate(n),po(n)}negate(){return new se(po(this.value))}}function Tr(e,n){return se.multiply(`${e}`,`${n}`)}function Lo(e,n,a=8){return se.divide(`${e}`,`${n}`,a)}function ho(e,n){return e=`${e}`,n=`${n}`,se.compareTo(e,n)}function $r(e){return se.negate(e)}function yn(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",f=r.indexOf(".");f!=-1&&(i=r.substring(0,f),c=r.substring(f+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let p;if(o>0){let d="",h=i.split("").reverse();for(let k=0;k<h.length;k++)d+=h[k]+((k+1)%o==0&&k+1!=h.length?l:"");c.length==0?p=`${s}${d.split("").reverse().join("")}`:p=`${s}${d.split("").reverse().join("")}.${c}`}else c.length==0?p=`${s}${i}`:p=`${s}${i}.${c}`;return p}function Er(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const it=typeof window<"u",Re=Xe;function xr(e){return e==null}const vn=Array.isArray,Us=e=>bn(e)==="[object Map]",Hs=e=>bn(e)==="[object Set]",Ue=e=>e instanceof Date,cn=e=>typeof e=="function",Dr=e=>typeof e=="string",js=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",gt=e=>Ae(e)&&cn(e.then)&&cn(e.catch),Ir=Object.prototype.toString,bn=e=>Ir.call(e),go=e=>bn(e)==="[object Object]",qr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ws(e){return e.__esModule||qr&&e[Symbol.toStringTag]==="Module"}const Ys=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function lt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(l===!0&&c&&typeof c=="object"){let f;Array.isArray(c)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},n[s]=lt(l,f,c)}else c!==void 0&&(n[s]=c)}}return n}function yo(e,n,a=!1){if(!a)lt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!go(s))continue;r=yo(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!go(s))continue;r=yo(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const eo=Ys?Promise.resolve():null;function Xs(e,...n){eo!==null?n&&n.length>0?eo.then(()=>{e(n)}):eo.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 fe(e){return typeof e=="number"?e:Number(e)}const Qs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function at(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Qs[a]||"object"}function kn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Mr(e){return e&&typeof e=="object"&&"setInterval"in e}function Pr(e){let n=!!e&&"length"in e&&e.length,a=at(e);return a==="function"||Mr(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Lr(e,n){let a=+n.length,o=0,l=e.length;for(;o<a;o++)e[l++]=n[o];return e.length=l,e}function Gs(e,n=[]){let a=n;return e!=null&&(Pr(Object(e))?Lr(a,typeof e=="string"?[e]:e):a.push(e)),a}function qe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=at(e),o=at(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],c=e[i],f=n[i];if(!qe(c,f))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],s=n[l];if(!qe(r,s))return!1}return!0}return!1}function zr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Fr(e){return ue(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ue(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Rr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function Or(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function La(e,n,a){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(a,"")}function vo(e,n=!0,a=!0){n?e=La(e,".",/\./g):e=e.replace(/\./g,""),a?e=La(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function Zs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(qe(e,a))return!0}):n.indexOf(e)}function Js(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(qe(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ye(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ve(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function Nt(e,...n){const a=[];n.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const o={};for(const l in e)a.includes(l)||(o[l]=e[l]);return o}const Kr=(e,n,a)=>{const o=Object.assign({},e),l=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{l.hasOwnProperty(r)?typeof l[r]=="string"&&(o[r]=n[l[r]]):n[r]&&(o[r]=n[r])}),o):e};function bo(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const et=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Oe=(e,n,a)=>Math.min(Math.max(e,n),a),ke=Symbol.for("BroadcastKey");class zo{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,o){this.parent=n,this.proxy=a,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(o=>n===o);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...o){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let l=!1;!n.name||n.name==="*"?l=!0:!n.name||n.name==="+"?(l=!1,n.name="*"):zr(n.name)&&this.name&&n.name.test(this.name)?l=!0:typeof n.name=="function"?l=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(l=!0);const r=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...o]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[a]=="function"){const c=Reflect.apply(i[a],i,[...o]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(n,a){this.callbacks.set(n,a)}}function Sn(e,n,a,o){const l=new zo(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function _s(e,n,a){const o=a;if(o[ke])return o[ke];const l=t.inject(ke,null),r=new zo(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[ke]=r,t.provide(ke,r),t.onUnmounted(()=>{r.destroy(),o[ke]=void 0}),r}function qt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ke]??t.inject(ke,null):t.inject(ke,null)}const nt=e=>e.default??e;class ei{error(n,a){const o=a,l=qt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=qt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=qt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=qt(o),s=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let Ur=new ei;function ti(e){Ur=e}function ni(e,n){nt(tt).setValidator(e,n)}function oi(e){nt(tt).deleteValidator(e)}let Hr=["blur","clear"];function li(e){Hr=e}function jr(){return Hr}let Wr=["focus","change"];function ai(e){Wr=e}function Yr(){return Wr}function ri(e){nt(tt).messages(e)}function Tt(...e){const n=[];return e.forEach(a=>{a.forEach(o=>{const l=n.findIndex(r=>r.type===o.type);l!==-1&&n.splice(l,1),n.push(o)})}),n}function Zt(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 Xr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,o){this.parent=n,this.descriptor=a,this.proxy=o,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const a=Zt(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=Zt(o);const l=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=Ur;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,a,o=!1){o?nt(tt).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?nt(tt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return nt(tt).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const a=Tt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Zt(n):this.rules=Zt([n]);const o=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=Tt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),s={[`${o}`]:r},i=nt(tt),c=new i(l),f=this.proxy??s;return c.validate(s,{context:f}).then(d=>{if(d.pass)this.success();else{let h="error";Array.isArray(d.errors)&&d.errors.length>0&&(h=d.errors[0].message??h,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(h)}return d}).catch(d=>{const h=d.message??`${d}`;return this.error(h),d})}}return Promise.resolve({pass:!0})}}function Cn(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(r){return r[l]}}}return new Xr(n,a,e)}const za=Symbol("EventEmitterKey");class si{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let o=this.register.get(n);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===a);l!==-1&&o.splice(l,1)}}on(n,a){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(a)}emit(n,...a){const o=this.register.get(n);o&&o.forEach(l=>{try{Reflect.apply(l,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function yt(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function un(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function ii(e,n){const a=yt((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function ci(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Fo(e,n,a,o=0,l=!0){let r=n,s=0;if(l){const c=e();if(s++,c||s>a)return}const i=()=>{const c=e();s++,!(c||s>a)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const Ie=Symbol("DomainKey"),dt=Symbol("DataItemsKey");class wn{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,a=[]){for(const o in n){const l=n[o];a.length>0&&a.indexOf(l)!==-1||(this._props[o]=l)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const l=o._props[n];a.push(l)}o=o._parent}return a}}const ui=new wn;function pt(){return ui}function He(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ie]??t.inject(Ie,null):t.inject(Ie,null)}const to=Symbol("OriginalDateKey");function Ro(e,n,a=[],o){const l=t.getCurrentInstance(),r=l?.proxy;let s=t.inject(Ie,null);s===null&&(s=pt());const i=e||n.prop||n.name,c=new wn(i);c.parent=s;const f=b=>{r[to]||h(b),c.set("modelValue",b)},p=()=>c.getForSelf("modelValue")??null,d=()=>r[to]??null,h=b=>{const y={};lt(!0,y,t.toRaw(b)),r[to]=y};t.isReactive(n)||typeof n=="function"?t.watch(n,b=>{c.merge(b,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&h(n.modelValue),r[Ie]=c,t.provide(Ie,c);let k=null,v=null;if(l!==null){const b=t.inject(ke,null);k=Sn(r,b,i,o),c.broadcast=k,r[ke]=k,t.provide(ke,k),r.broadcast=(u,m,...g)=>Reflect.apply(k.emit,k,[u,m,...g]);const y=t.inject(Ke,null);v=Cn(r,y,{componentName:""}),c.validateSchema=v,r[Ke]=v,t.provide(Ke,v),r[dt]=new Map,r.validate=(u=!0)=>{const m=[];let g=null;const C={deep:!1};if(u===!0)g={name:"*"};else if(Array.isArray(u)&&u.length>0){const A=u;g={name:S=>S?A.indexOf(S)!==-1:!1}}else if(u!=null&&typeof u=="object"){const A=u;if(C.ignoreHidden=A.ignoreHidden,Array.isArray(A.include)&&A.include.length>0){const S=A.include;g={name:V=>V?S.indexOf(V)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const S=A.exclude;g={name:V=>V?S.indexOf(V)===-1:!1}}else g={name:"*"}}if(g){const A=k?.emitToChildren(g,"validate",C);A&&Reflect.apply([].push,m,A)}return m.length==1?m[0]:m.length>1?Promise.all(m).then(A=>{let S=[];return A.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(S=[...S,...V.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,m=!0,g=!1)=>{if(g===!0){Reflect.ownKeys(u).forEach(A=>{let S=String(A);const N=Zr(c,S,{componentName:"",fieldName:S,pureDataValidate:!0},k,v);r[dt].set(S,N);const T=u[S];T&&N.validateSchema.setRule(T)});return}if(m){const C=Reflect.ownKeys(u),A={name:S=>C.includes(S)};k?.emitToChildren(A,"setNameValidateRules",u,!1)}},r.clearValidate=(u=!0)=>{let m=null;if(u===!0)m={name:"*"};else if(Array.isArray(u)&&u.length>0){const g=u;m={name:C=>C?g.indexOf(C)!==-1:!1}}else if(u!=null&&typeof u=="object"){const g=u;if(Array.isArray(g.include)&&g.include.length>0){const C=g.include;m={name:A=>A?C.indexOf(A)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const C=g.exclude;m={name:A=>A?C.indexOf(A)===-1:!1}}else m={name:"*"}}m&&k?.emitToChildren(m,"clearValidate",!1)},r.resetFields=u=>{const m=p();if(!m)return;const g={};if(lt(!0,g,d()??{}),Array.isArray(u))u.forEach(C=>{m[C]=g[C]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(A=>{m[A]=g[A]});else if(u&&Array.isArray(u.exclude)){let C=u.exclude??[];Reflect.ownKeys(g).forEach(A=>{C.includes(A)||(m[A]=g[A])})}else Object.assign(m,g);r.clearValidate(u)},r.setModelValue=(u,m)=>{!m||m===i?f(u):k?.emitToChildren({name:m},"setModelValue",u)},r.getModelValue=()=>p()}return t.onUnmounted(()=>{c.destroy(),r[Ie]=void 0,r[dt]&&(r[dt].clear(),r[dt]=void 0),k!==null&&(k.destroy(),r[ke]=void 0),v!==null&&(v.destroy(),r[Ke]=void 0)}),c}function Qr(e,n,a=[]){const l=t.getCurrentInstance()?.proxy;let r=t.inject(Ie,null);r===null&&(r=pt());const s=e||n.prop||n.name,i=new wn(s);return i.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{i.merge(c,a)},{immediate:!0}):i.merge(n,a),l[Ie]=i,t.provide(Ie,i),t.onUnmounted(()=>{i.destroy(),l[Ie]=void 0}),i}function Gr(e,n,a){const l=He(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Ne(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(ke,null),i=Sn(l,s,r,a);l[ke]=i,t.provide(ke,i),l.broadcast=(v,b,...y)=>Reflect.apply(i.emit,i,[v,b,...y]);const c=t.inject(Ke,null);e.fieldName=e.fieldName??r;const f=Cn(l,c,e);l[Ke]=f,t.provide(Ke,f),Gr(l,f,r),l.validate=(v=null)=>{const b=[];let y=!1,u=!1;if(Array.isArray(v)&&v.indexOf(r)!==-1)u=!0,y=!0;else if(v&&typeof v=="object"){const m=v;m.ignoreHidden===!0&&kn(l.$el)?u=!1:(Array.isArray(m.include)&&m.include.indexOf(r)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(r),u=!0),y=m.deep??!1}else typeof v=="boolean"&&(y=v),u=!0;if(u){const m=f?.validate();b.push(m)}if(y){let m=null;const g={deep:!1};if(v===!0)m={name:"*"};else if(Array.isArray(v)&&v.length>0){const C=v;m={name:A=>A?C.indexOf(A)!==-1:!1}}else if(v!=null&&typeof v=="object"){const C=v;if(g.ignoreHidden=C.ignoreHidden,Array.isArray(C.include)&&C.include.length>0){const A=C.include;m={name:S=>S?A.indexOf(S)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const A=C.exclude;m={name:S=>S?A.indexOf(S)===-1:!1}}else m={name:"*"}}if(m){const C=i.emitToChildren(m,"validate",g);Reflect.apply([].push,b,C)}}return b.length==1?b[0]:b.length>1?Promise.all(b).then(m=>{let g=[];return m.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(g=[...g,...C.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=v=>f?.setRule(v),l.setNameValidateRules=(v,b=!1)=>{const y=v[r];if(y&&f?.setRule(y),b){const u={name:m=>Reflect.ownKeys(v).includes(m)};i.emitToChildren(u,"setNameValidateRules",v,!1)}},l.clearValidate=(v=null)=>{(!Array.isArray(v)||v.indexOf(n??"")!==-1)&&f?.clear();let b=null;if(v===!0)b={name:"*"};else if(Array.isArray(v)&&v.length>0){const y=v;b={name:u=>u?y.indexOf(u)!==-1:!1}}else if(v!=null&&typeof v=="object"){const y=v;if(Array.isArray(y.include)&&y.include.length>0){const u=y.include;b={name:m=>m?u.indexOf(m)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const u=y.exclude;b={name:m=>m?u.indexOf(m)===-1:!1}}else b={name:"*"}}b&&i.emitToChildren(b,"clearValidate",!1)};const p=new si(l);l[za]=p;const d=yt((v="validate")=>{v==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:jr()).forEach(v=>{p.on(v,b=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Yr()).forEach(v=>{p.on(v,b=>{d("reset")})}),t.onUnmounted(()=>{i.destroy(),l[ke]=void 0,f.destroy(),l[Ke]=void 0,p.destroy(),l[za]=void 0}),{broadcast:i,validateSchema:f,emitEvent:(v,...b)=>{Reflect.apply(p.emit,p,[v,...b])},onEvent:(v,b)=>{Reflect.apply(p.on,p,[b])},offEvent:(v,b)=>{Reflect.apply(p.off,p,[b])}}}function Zr(e,n,a,o,l){const r={},s=n??"",i={getValue(){const p=e.getForSelf("modelValue");return p?p[s]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,s):!1}};a.fieldName=s,a.validateHandler={getValue(p){return i.getValue()}};const c=Cn({},l,a);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let h=!1,k=!1;if(Array.isArray(p)&&p.indexOf(s)!==-1)k=!0,h=!0;else if(p&&typeof p=="object"){const v=p;Array.isArray(v.include)&&v.include.indexOf(s)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(s),k=!0,h=v.deep??!1}else typeof p=="boolean"&&(h=p),k=!0;if(k){const v=c?.validate();d.push(v)}if(h){let v=null;const b={deep:!1};if(p===!0)v={name:"*"};else if(Array.isArray(p)&&p.length>0){const y=p;v={name:u=>u?y.indexOf(u)!==-1:!1}}else if(p!=null&&typeof p=="object"){const y=p;if(Array.isArray(y.include)&&y.include.length>0){const u=y.include;v={name:m=>m?u.indexOf(m)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const u=y.exclude;v={name:m=>m?u.indexOf(m)===-1:!1}}else v={name:"*"}}if(v){const y=f.emitToChildren(v,"validate",b);Reflect.apply([].push,d,y)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(v=>{let b=[];return v.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(b=[...b,...y.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=p=>{const d=p[s];d&&c?.setRule(d)};const f=Sn(null,o,s,r);return{broadcast:f,validateSchema:c}}const he=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 a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(it){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*n;const o=Number(e);return isNaN(o)?0:o}const Qe="PageStateKey";function Le(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=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 ko(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=ie(a.headerHeight??n.headerHeight??-1),e.headerPadding=Le(a.headerPadding??n.headerPadding),e.footerHeight=ie(a.footerHeight??n.footerHeight??-1),e.footerPadding=Le(a.footerPadding??n.footerPadding),e.contentPadding=Le(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=ie(c,r):e.height=ie(r)-ie(s,r)-ie(i,r),e.width=ie(a.width??n.width??0,l)}}function Jr(e,n={}){const a={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});l&&(o.safeAreaTop=ie(l.top),o.safeAreaBottom=ie(l.bottom),o.safeAreaLeft=ie(l.left),o.safeAreaRight=ie(l.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;ko(o,r,n,!0,s,i,c,f);const p=t.reactive(o),d=e.getForParent(Qe);d&&(o.height=dn(e,d),o.width=fn(e,d),t.watch([()=>dn(e,d),()=>fn(e,d)],([k,v])=>{p.height=k,p.width=v}));const h=!d;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([k,v,b=-1,y=-1,u=0,m=0])=>{ko(p,v,n,h,b,y,u,m)}),e.set(Qe,p),p}function Nn(e){return e.get(Qe)}function Bn(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function An(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function dn(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Bn(e,n),o=An(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function fn(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function di(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function fi(e){return!!e.getForParent(Qe)}var mn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(mn||{});function no(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Be(e,n,a=1,o){const l=He();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(no(c,o))return c}const s=e.value;return no(s,o)?s:null}):t.computed(()=>{const r=e.value;return no(r,o)?r:l?.get(n)})}function Te(e){return Be(e,"readonly",0,function(a){return pe(a)})}function we(e){return Be(e,"disabled",0,function(a){return pe(a)})}function xe(e,n="modelValue",a){const o=t.toRef(e,n);let l=o.value;typeof a=="function"&&(l=a(o.value));const r=t.ref(l);return t.watch(o,s=>{if(typeof a=="function"){const i=a(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const _r=new Map,pn=new Map;let So=null;function mi(e){So=e}function es(e,n,a){if(a){let o=pn.get(a);o||(o=new Map,pn.set(a,o)),o.set(e,n)}else _r.set(e,n)}function Je(e,n,a){!a&&So&&(a=So(e)??void 0);let o=null;if(a){let l=pn.get(a);l&&(o=l.get(n))}return o||(o=_r.get(n)),o}function pi(e,n){for(let a in e){const o=e[a];es(a,o,n)}}function hi(e){pn.delete(e)}function gi(){return{top:0,left:0,bottom:0,right:0}}function yi(e=0,n=0){if(it){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ie(e,o)-ie(n,o)};return{rootWidth:a,rootHeight:o,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:-1,footerHeight:-1}}}class vi{packages;_version;get version(){return this._version}constructor(n,a){this.packages=n,this._version=a}install(n,a){a?.install!==!1&&this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=pt();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=un(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=f,this.initPageLayout(i,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=lt({},gi(),n.safeAreaInset),s=yi(o,l),i=lt({},s.pageLayout,n.pageLayout);a=a??pt(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(n){mi(n)}setAPI(n,a,o){es(n,a,o)}getAPI(n,a,o){return Je(n,a,o)}batchSetAPI(n,a){pi(n,a)}clearScopeAPI(n){hi(n)}getRootDomain(){return pt()}}function X(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const bi=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(Dr(o)?a=document.querySelector(o):a=e.teleport);const l=document.createElement("view"),r=n.name?n.name+"-":"",s=e.id||new Date().getTime();l.id=r+s;let i={};cn(n.wrapper)?i=n.wrapper(a,l):i=n.wrapper;const c=t.createApp(i,e),f=n.components;return f&&f.forEach(p=>{c.use(p)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},ts=(e,n)=>e?t.h(e,n):"";function $e(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const me={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ge={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},ns={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}},os={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}},ls=[];for(const e in os)ls.push(e);const ki=Symbol.for("InnerPageScopeKey"),Si={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}},Ci=(e,n)=>({inheritAttrs:!0,props:{...me,...ns,...Si},setup(a,{slots:o}){const l=Ro(a.name,a),r=t.inject(ki,!1);if(l){const p=Jr(l,a);$e({getPageContentHeight:()=>dn(l,p),getPageContentWidth:()=>fn(l,p),getPageHeaderHeight:()=>Bn(l,p),getPageFooterHeight:()=>An(l,p)}),p&&r&&(p.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),f=(p,d=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(p,!0,d)};return t.watch([()=>a.rules,()=>a.pureDataRules],([p,d],[h,k])=>{if(p&&h){const v=t.toRaw(h),b=t.toRaw(p),y=b?Reflect.ownKeys(b):[];(v?Reflect.ownKeys(v):[]).forEach(m=>{y.includes(m)||(b[m]=[])}),f(b)}if(d&&k){const v=t.toRaw(k),b=t.toRaw(d),y=b?Reflect.ownKeys(b):[];(v?Reflect.ownKeys(v):[]).forEach(m=>{y.includes(m)||(b[m]=[])}),f(b,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const p=t.toRaw(a.rules);f(p)}if(a.pureDataRules){const p=t.toRaw(a.pureDataRules);f(p,!0)}}),()=>{const p={class:s.value,style:i.value};return t.h("div",p,[o?.default?.()])}}}),{componentName:wi,create:Ni,scope:n2}=X("page"),Oo=Ni(Ci(wi));function Ko(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Vn(e){const n=t.unref(e),a=window.getComputedStyle(n,null),o=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-s}}const Bi=Symbol.for("InnerPageScopeKey"),Ai=(e,n,a,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,r){const s=He(),i=s?Nn(s):null,c=t.inject(Bi,!1),f=e,p=t.computed(()=>{const w={[f]:!0,[`${f}--border`]:l.border,[`${f}--fixed`]:l.fixed};return c||(w[`${f}--safe-area-inset-top`]=l.safeAreaInsetTop),w}),d=t.computed(()=>({[`${f}__inner`]:!0,[`${f}__inner--${l.align}`]:!0})),h=l.height!==null&&l.height!==void 0?ie(l.height):null,k=t.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const q=Le(l.padding??i.headerPadding);return Object.assign(w,q),h&&(i.headerHeight=h),i.headerHeight>0&&(w.height=i.headerHeight),w.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,w.safeAreaTop>0&&(w.top=w.safeAreaTop+(q.top??0),w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)),w}if(h&&(w.height=h),l.padding){const q=Le(l.padding);Object.assign(w,q)}return w}),v=t.ref(null),b=()=>{if(i&&v.value&&!kn(v.value)){if(!o){const w=Ko(v.value);i.headerAllHeight=w.height}return i.headerMounted=!0,!0}return!1};let y=null;t.onMounted(()=>{i&&(Fo(b,50,5,50,!0),window.ResizeObserver&&v.value&&(y=new window.ResizeObserver(()=>{b()}),y.observe(v.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,y&&(y.disconnect(),y=null))});const u=t.computed(()=>{const w={};return k.value.height!==null&&k.value.height!==void 0&&(w.height=`${k.value.height}px`),k.value.top!==null&&k.value.top!==void 0&&(w.paddingTop=`${k.value.top}px`),k.value.left!==null&&k.value.left!==void 0&&(w.paddingLeft=`${k.value.left}px`),k.value.right!==null&&k.value.right!==void 0&&(w.paddingRight=`${k.value.right}px`),k.value.bottom!==null&&k.value.bottom!==void 0&&(w.paddingBottom=`${k.value.bottom}px`),w}),m=t.computed(()=>!(k.value.height!==null&&k.value.height!==void 0&&k.value.height<=0));function g(){r.emit("back")}function C(){r.emit("click-title")}function A(){r.emit("click-right")}function S(){r.emit("click-right-text")}const V=()=>{if(!l.leftShow)return null;const w=[];if(r.slots.left)w.push(r.slots.left());else{if(r.slots.leftIcon){const q=t.h("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);w.push(q)}else if(l.leftIcon){const q=t.h("view",{class:"left-icon",onClick:g},[t.h(l.leftIcon)]);w.push(q)}if(l.leftText){const q=t.h("view",{class:"left-text",onClick:g},[l.leftText]);w.push(q)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__left"},w)},N=()=>{if(!l.rightShow)return null;const w=[];if(r.slots.right)w.push(r.slots.right());else{if(l.rightText){const q=t.h("view",{class:"right-text",onClick:S},[l.rightText]);w.push(q)}if(r.slots.rightIcon){const q=t.h("view",{class:"right-icon",onClick:A},[r.slots.rightIcon()]);w.push(q)}else if(l.rightIcon){const q=t.h("view",{class:"right-icon",onClick:A},[t.h(l.rightIcon)]);w.push(q)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__right"},w)},T=()=>{if(!l.titleShow)return null;const w=[],q=r.slots.default?r.slots.default():null;if(q)w.push(q);else{if(l.title){const P=t.h("view",{class:"title-text"},[l.title]);w.push(P)}if(r.slots.titleIcon){const P=t.h("view",{class:"title-icon",onClick:C},[r.slots.titleIcon()]);w.push(P)}else if(l.titleIcon){const P=t.h("view",{class:"title-icon",onClick:C},[t.h(l.titleIcon)]);w.push(P)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__title"},w)},B=()=>{const w=[],q=r.slots.bottom?r.slots.bottom():null;return q&&w.push(q),w.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},w)};return()=>{if(!m.value)return null;const w=[];if(r.slots.all)w.push(r.slots.all());else{const P=[],$=V();$&&P.push($);const E=T();E&&P.push(E);const K=N();if(K&&P.push(K),P.length>0){const W=t.h("view",{class:d.value},P);w.push(W)}const D=B();D&&w.push(D)}if(w.length===0)return null;const q={class:p.value,style:u.value,ref:v};return t.h("view",q,w)}}}),{componentName:Vi,create:Ti,scope:$i}=X("header-bar"),Uo=Ti(Ai(Vi,$i,oe.Left,!1)),Ei=Symbol.for("InnerPageScopeKey");function xi(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,l){const r=He(),s=r?Nn(r):null,i=t.inject(Ei,!1),c=e,f=t.computed(()=>{const y={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(y[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),y}),p=o.height!==null&&o.height!==void 0?ie(o.height):null,d=t.computed(()=>{const y={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const u=Le(o.padding??s.footerPadding);return Object.assign(y,u),p&&(s.footerHeight=p),s.footerHeight>0&&(y.height=s.footerHeight),y.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,y.safeAreaBottom>0&&(y.bottom=y.safeAreaBottom+(u.bottom??0),y.height&&y.height>0&&(y.height=y.height+y.safeAreaBottom)),y}if(p&&(y.height=p),o.padding){const u=Le(o.padding);Object.assign(y,u)}return y}),h=t.ref(null),k=()=>{if(s&&h.value&&!kn(h.value)){if(!a){const y=Ko(h.value);s.footerAllHeight=y.height}return s.footerMounted=!0,!0}return!1};let v=null;t.onMounted(()=>{s&&(Fo(k,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{k()}),v.observe(h.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,v&&(v.disconnect(),v=null))});const b=t.computed(()=>{const y={};return d.value.height!==null&&d.value.height!==void 0&&(y.height=he(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(y.paddingTop=he(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(y.paddingLeft=he(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(y.paddingRight=he(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(y.paddingBottom=he(d.value.bottom)),y});return()=>{const y=l.slots.default?l.slots.default():[],u={ref:h,class:f.value,style:b.value};return t.h("view",u,y)}}}}const{componentName:Di,create:Ii,scope:qi}=X("footer-bar"),Ho=Ii(xi(Di,qi,!1));function Mi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=He(),l=t.computed(()=>({[e]:!0})),r=o?Nn(o):null,s=t.computed(()=>{const f={};if(o&&r){if(a.padding){const u=Le(a.padding);Object.assign(r.contentPadding,u)}const p=Bn(o,r),d=An(o,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",p),console.debug("[content]footer height:",d),console.debug("[content]padding:",r.contentPadding),f.height=h;let k=(r&&r.contentPadding&&r.contentPadding.top)??-1;(k>=0||p>0)&&(k=k<0?0:k,f.paddingTop=`${p+k}px`);let v=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(v>=0||d>0)&&(v=v<0?0:v,f.paddingBottom=`${d+v}px`);const b=(r&&r.contentPadding&&r.contentPadding.left)??-1;b>=0&&(f.paddingLeft=`${b}px`);const y=(r&&r.contentPadding&&r.contentPadding.right)??-1;return y>=0&&(f.paddingRight=`${y}px`),f}if(a.padding){const p=Le(a.padding);p.left&&(f.paddingLeft=`${p.left}px`),p.top&&(f.paddingTop=`${p.top}px`),p.right&&(f.paddingRight=`${p.right}px`),p.bottom&&(f.paddingBottom=`${p.bottom}px`)}return f}),i=t.ref(null),c=yt(()=>{if(r&&i.value){const f=Vn(i.value);r.contentInnerHeight=f.height,r.contentInnerWidth=f.width}},0);return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>s.value,()=>l.value],([])=>{c()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:Pi,create:Li,scope:o2}=X("content"),zi=Li(Mi(Pi));function Fi(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const ne=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},jo=ne(zi,[["render",Fi]]),vt="GroupStateKey",as=Symbol.for("GroupScopeKey");function Tn(){return t.inject(as,!1)}function $n(e=!0){t.provide(as,e)}function Ri(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];xr(l)||(e[o]=l)})}function Oi(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ri(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(vt,r),r}function oo(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(vt);if(!c)return;const f=e.get("groupLayout")??{};a===-1&&(a=f.column??1),o===-1&&(o=f.gutter??0),r||(r=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const p=ie(r),d=ie(s);i||(i=f.type??"grid");const h=()=>{const k=n===""||n===-1,v=ie(n);let b=fe(a);const y=ie(o);if(!k){let g=(v-(b-1)*y)/b;for(;d!==-1&&g>d;)b++,g=(v-(b-1)*y)/b;for(;p!==-1&&b>1&&g<p;)b--,g=(v-(b-1)*y)/b}let u=!1;const m=c.layout;m.value.width=n,m.value.column!==b&&(m.value.column=b,u=!0),m.value.gutter!==y&&(m.value.gutter=y,u=!0),m.value.type!==i&&(m.value.type=i,u=!0),u&&t.triggerRef(m)};if(l)h();else{const k=++c.passport;setTimeout(()=>{k===c.passport&&h()},50)}}function En(e,n=!1){let a;return n?a=e.getForParent(vt):a=e.get(vt),a.layout}function xn(e,n=!1){let a;return n?a=e.getForParent(vt):a=e.get(vt),a.order}function Fa(e,n=1){if(n==="stretch")return-1;const a=fe(n);return a===-1?100:100*a/e}function Dn(e,n,a=1,o=0,l){const r={};let s=0;l?s=ie(l):s=Fa(n.column,a),s>0&&(r.width=`${s}%`);const i=Fa(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 In(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,f=c+(n.column-c);return e.index=e.index+(f-c),{"grid-column":`${c+1} / -1`}}let l=fe(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=fe(o)%n.column;let s=(e.index+r)%n.column,i=s+l;return i>n.column?(s=0,i=s+l,e.index=e.index+(n.column-s)+l):e.index=e.index+r+l,r>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const rs=Symbol("RollingStateKey");function Ki(e){t.provide(rs,e)}function Ui(){return t.inject(rs,null)}function Co(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function Hi(e){let n=Co(e);if(console.info("1.---------- get expand height",n),n<=0){const a=e.cloneNode(!0),o=e.offsetWidth;a.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=Co(a),console.info("2.---------- get expand height",n),document.body.removeChild(a)}return n}function ji(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const Wi={...me,...ns,...os};function Yi(e,n,a){return{props:Wi,emits:["update:collapse"],setup(o,l){const r=Ro(o.name,o,ls),s=Oi(r,{type:o.type}),i=Tn();$n(!0);const c=o.rollingDisplay?Ui():null,f=t.ref(null),p=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),d=t.computed(()=>i&&r?En(r,!0).value:null),h=t.getCurrentInstance(),k=(U,G=!1)=>{const Q=h?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(U,!0,G)};t.watch([()=>o.rules,()=>o.pureDataRules],([U,G],[Q,J])=>{if(U&&Q){const z=t.toRaw(Q),ee=t.toRaw(U),te=ee?Reflect.ownKeys(ee):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{te.includes(ce)||(ee[ce]=[])}),k(ee)}if(G&&J){const z=t.toRaw(J),ee=t.toRaw(G),te=ee?Reflect.ownKeys(ee):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{te.includes(ce)||(ee[ce]=[])}),k(ee,!0)}},{deep:!0});const v=e,b=t.computed(()=>{const U={};if(U.height=E.value,o.width)o.width!=="auto"&&(U.width=he(o.width));else{const G=i?xn(r,!0):null;if(d.value&&G){if(d.value.type==="grid"){const Q=In(G,d.value,o.span,o.offset);Object.assign(U,Q)}else if(d.value.type==="flow"){const Q=Dn(G,d.value,o.span,o.offset,o.width);Object.assign(U,Q)}}}return U}),y=t.computed(()=>{const U=s.layout.value.type;return U==="grid"||U==="flow"?{[`${v}--${U}`]:!0,[`${v}--${U}-justify-${o.justify}`]:!0,[`${v}--${U}-align-${o.align}`]:!0,[`${v}--gutter`]:!0}:{[`${v}--${U}`]:!0,[`${v}--gutter`]:!0}}),u=t.computed(()=>{if(s.layout.value.type==="grid"){let G="";if(o.columnWidth)G=`repeat(auto-fill, ${o.columnWidth})`;else{const Q=ji(N.value,s.layout.value.column,s.layout.value.gutter);G=`repeat(${s.layout.value.column}, ${Q})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":G}}}),m=t.toRef(o,"gutter"),g=t.toRef(o,"column"),C=t.computed(()=>i||p.value?!0:pe(o.isWrap)),A=[],S=U=>{A.push(U)},V=()=>{let U=A.length;A.splice(0,U)},N=t.ref(-1),T=U=>{const G=Vn(U).width;G>0&&G!==N.value&&(N.value=G)};oo(r,N.value,g.value,m.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([N,g,m],([U,G,Q])=>{s.order.index=0,oo(r,U,G,Q,!1,o.minItemWidth,o.maxItemWidth,o.type)});const B=t.computed(()=>K.value?o.expandText??"":o.collapseText??""),w=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!K.value,"is-collapse":K.value})),P=t.ref(),$=t.ref(),E=t.computed(()=>D.value||he(o.height)||""),K=t.ref(!1),D=t.ref(""),W=t.ref(!1);let H=-1;const Z=(U,G=!0)=>{const Q=P.value;if(Q&&K.value!==U){if(H=H<=0?Hi(Q):H,W.value=!0,G)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",U||(D.value="",W.value=!1)},U){let J=0;o.collapseHeight?J=o.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(J=$.value.offsetHeight),D.value=`${H}px`,t.nextTick(()=>{D.value=`${J}px`})}else D.value=`${H}px`;else if(U){let J=0;o.collapseHeight?J=o.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(J=$.value.offsetHeight),D.value=`${J}px`}else W.value=!1,D.value=`${H}px`;K.value=U,l.emit("update:collapse",U)}};t.watch(()=>o.collapse,U=>{Z(U)});const _=()=>{j()},j=U=>{U=U??!K.value,Z(U)};$e({toggleCollapse:j,doLayout:()=>{A[0]&&(T(A[0]),oo(r,N.value,g.value,m.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let L=null,x=!0;const F=U=>{if(o.rules){const G=t.toRaw(o.rules);k(G)}if(o.pureDataRules){const G=t.toRaw(o.pureDataRules);k(G,!0)}if(it&&(U&&Z(pe(o.collapse),!1),o.autoLayout&&Array.isArray(A)&&A.length>0)){const G=A[0];T(G),window.ResizeObserver&&(L=new window.ResizeObserver(()=>{T(G)}),L.observe(G))}},M=()=>{L?.disconnect(),L=null},R=!p.value||c?.acquire();R&&(f.value=p.value?!0:null),t.onMounted(()=>{if(R&&(F(x),x=!1),p.value&&c){let U=null,G=c.initialHeight;c.observe(P.value,Q=>{if(Q!==f.value)if(Q)f.value=!0,K.value||(D.value=""),U=setTimeout(()=>{U=null,f.value!==!1&&(F(x),x=!1)},100);else{if(U!==null&&clearTimeout(U),f.value=!1,!K.value)if(x)D.value=c.initialHeight;else{let J=Co(P.value);J<=0?D.value=G:(D.value=`${J}px`,G=D.value)}x||M()}})}}),t.onUnmounted(()=>{L?.disconnect(),c&&c.unobserve(P.value)});const Y=(U="right")=>{const G=[];if(B.value){const ee={class:w.value},te=t.h("span",ee,[B.value]);G.push(te)}const Q={class:q.value},J=o.collapseIcon??a,z=t.h(J,Q);return G.push(z),G.length>0?t.h("div",{class:{[`${v}__header-collapse`]:!0,[`is-${U}`]:!0},onClick:_},G):null},O=(U,G,Q,J)=>{const z={...y.value};return G===0&&(z[`${v}__first`]=!0),Q>=J-1&&(z[`${v}__last`]=!0),t.h("div",{ref:S,key:`${G}`,class:z,style:u.value},U)};return()=>{if(p.value&&f.value!==!0){const z=o.tag||"div";return t.h(z,{ref:P,prop:o.name,class:{[`${v}`]:!0,"is-collapse":W.value},style:b.value},[])}s.order.index=0;const U=[];let G=0;if(l.slots.header){const z={key:`${G++}`,ref:$,class:{[`${v}__header`]:!0,[`${v}__first`]:!0}},ee=t.h("div",z,[l.slots.header()]);U.push(ee)}else{const z=[],ee=o.collapsePosition==="left";if(ee&&o.showCollapse){const te=Y("left");te&&z.push(te)}if(o.title||l.slots.title){if(o.showMark){const te={class:{[`${v}__header-mark`]:!0}};o.markColor&&(te.style={background:o.markColor});const ae=t.h("div",te);z.push(ae)}if(l.slots.title){const te=t.h("div",{class:{[`${v}__header-title`]:!0}},[l.slots.title()]);z.push(te)}else if(o.title){const te=t.h("div",{class:{[`${v}__header-title`]:!0}},[o.title]);z.push(te)}}if(l.slots.toolbar&&z.push(l.slots.toolbar()),!ee&&o.showCollapse){const te=Y("right");te&&z.push(te)}if(z.length>0){const te={key:`${G++}`,ref:$,class:{[`${v}__header`]:!0,[`${v}__first`]:!0}},ae=t.h("div",te,z);U.push(ae)}}V();const Q=l.slots.default?l.slots.default():[],J=s.layout.value.type;if(J==="grid"){const z=O(Q,G++,0,Q.length);U.push(z)}else if(J==="flow"){const z=O(Q,G++,0,Q.length);U.push(z)}else for(let z=0;z<Q.length;z++){const ee=Q[z],te=O([ee],G++,z,Q.length);U.push(te)}if(C.value){const z=o.tag||"div";return t.h(z,{ref:P,prop:o.name,class:{[`${v}`]:!0,"is-collapse":W.value},style:b.value},[U])}else return U}}}}const{componentName:Xi,create:Qi,scope:Gi}=X("group"),Wo=Qi(Yi(Xi,Gi,oe.RectUp));function Zi(e){return e===window}const Ji=/matrix\((.+)\)/,ss=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Zi(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,s=0,i=0,c=0;for(l=n;l!==document;){s+=l.scrollTop,r+=l.scrollLeft;const{transform:f}=window.getComputedStyle(l);if(f){const p=Ji.exec(f);if(p){let h=p[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}l=l.parentNode}return a-=r,o-=s,a+=i,o+=c,{x:a,y:o}};class _i{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class ec{monitorRegister=new WeakMap;watch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new _i,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(a),o=o.parentNode}}unwatch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const Ra=new ec,is={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:tc,create:nc}=X("price"),oc=nc({props:{...is},setup(e){const n=t.computed(()=>({[tc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ye(e.price)==0?"":yn(e.price,e.decimalLength,!0,fe(e.digits),e.separator)),l=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),lc=["innerHTML"],ac=["innerHTML"];function rc(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,lc)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ac)):t.createCommentVNode("",!0)],2)}const Ge=ne(oc,[["render",rc]]),{componentName:lo,create:sc}=X("hint-text"),ic=sc({components:{Price:Ge},props:{...is,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),l=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),f=(w,q,P,$,E,K)=>{const D=document.documentElement.clientWidth||document.body.clientWidth,W=document.documentElement.clientHeight||document.body.clientHeight,H=w.split("-");let Z=[];H[0]==="top"?Z=["top","bottom","right","left"]:H[0]==="bottom"?Z=["bottom","top","right","left"]:H[0]==="left"?Z=["left","top","bottom","right"]:H[0]==="right"&&(Z=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},j=[];for(let I=0;I<Z.length;I++){const L=Z[I];if(j[0]=L,H[1]&&(j[1]=H[1]),L==="top"){const x=q.y-K-e.arrowSize-e.offset;if(x>=0){_.top=x;let F=0;H[1]==="start"?F=q.x:H[1]==="end"?F=q.x+P-E:F=q.x+P/2-E/2;const M=D-F-E;M<0?(F+=M,d.value=-M):d.value=0,_.left=F<0?0:F;break}}else if(L==="bottom"){const x=q.y+$+e.arrowSize+e.offset;if(x+K<=W){_.top=x;let F=0;H[1]==="start"?F=q.x:H[1]==="end"?F=q.x+P-E:F=q.x+P/2-E/2;const M=D-F-E;M<0?(F+=M,d.value=-M):d.value=0,_.left=F<0?0:F;break}}else if(L==="left"){const x=q.x-E-e.arrowSize-e.offset;if(x>=0){_.left=x;let F=0;H[1]==="start"?F=q.y:H[1]==="end"?F=q.y+$-K:F=q.y+$/2-K/2,_.top=F<0?0:F;break}}else if(L==="right"){const x=q.x+P+e.arrowSize+e.offset;if(x+E<=D){_.left=x;let F=0;H[1]==="start"?F=q.y:H[1]==="end"?F=q.y+$-K:F=q.y+$/2-K/2,_.top=F<0?0:F;break}}}return{bestPlacement:j.join("-"),bestInsetRect:_}},p=(w,q,P=10)=>{if(!it||q===!1||!w)return;o.value=ss(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const $=c.value.offsetHeight,E=c.value.offsetWidth,{bestPlacement:K,bestInsetRect:D}=f(e.placement,o.value,l.value,r.value,E,$);s.value=K,a.value=D,i.value=!0},d=t.ref(0),h=yt(()=>{p(e.message,e.visible)},10),k=t.ref(e.visible);t.watch(()=>e.visible,w=>{k.value=w});const v=t.computed(()=>k.value&&b.value),b=t.ref(!0),y=yt(w=>{const q=w[0];q&&(b.value=q.isIntersecting)},10),u=new IntersectionObserver(y);t.watch([()=>e.message,()=>e.visible],([w,q])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Ra.watch(e.reference,h),u.observe(e.reference)}),t.onBeforeMount(()=>{Ra.unwatch(e.reference,h),u.unobserve(e.reference),u.disconnect()});const m=t.computed(()=>{const w={[lo]:!0};return s.value.startsWith("top")?w["is-top"]=!0:s.value.startsWith("right")?w["is-right"]=!0:s.value.startsWith("bottom")?w["is-bottom"]=!0:s.value.startsWith("right")&&(w["is-right"]=!0),e.size==="small"?w["is-small"]=!0:e.size==="large"&&(w["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(w[`${e.customClass}`]=!0),w}),g=t.computed(()=>{const w={};a.value.top!==null&&(w.top=`${a.value.top}px`),a.value.right!==null&&(w.right=`${a.value.right}px`),a.value.bottom!==null&&(w.bottom=`${a.value.bottom}px`),a.value.left!==null&&(w.left=`${a.value.left}px`),e.autoFit&&(w["min-width"]=`${l.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return w["max-width"]=`${q}px`,i.value&&(w.opacity="1"),e.transition||(w.transition="none"),e.zIndex&&(w["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(w,e.customStyle),w}),C=t.computed(()=>{const w=[`${lo}__content`];return e.customTextClass&&w.push(e.customTextClass),w}),A=t.computed(()=>{const w={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(w,e.customTextStyle),w}),S=t.computed(()=>({[`${lo}__arrow`]:!0})),V=t.computed(()=>{const w={};return e.showArrow?(w.width=`${e.arrowSize}px`,w.height=`${e.arrowSize}px`,s.value==="top"?(w.left="50%",w.bottom=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="top-start"?(w.left=`${e.arrowOffset+d.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(w.right=`${e.arrowOffset-d.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="right"?(w.left=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="right-start"?(w.left=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="right-end"?(w.left=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(w.left="50%",w.top=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(w.left=`${e.arrowOffset+d.value}px`,w.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(w.right=`${e.arrowOffset-d.value}px`,w.top=`-${e.arrowSize}px`):s.value==="left"?(w.right=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="left-start"?(w.right=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="left-end"&&(w.right=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`),w):{display:"none"}}),N=t.computed(()=>v.value&&e.closeOnClick),T=t.computed(()=>{const w={};return e.zIndex&&(w["z-index"]=`${e.zIndex}`),w});return{show:v,tipRef:c,classes:m,styles:g,textClasses:C,textStyles:A,arrowClasses:S,arrowStyles:V,overlayShow:N,overlayStyle:T,onClickOverlay:()=>{k.value=!1,n.emit("update:visible",!1)}}}}),cc=["innerHTML"];function uc(e,n,a,o,l,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,cc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const cs=ne(ic,[["render",uc]]);class qn{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 wo={},dc=new qn,ht=new Map,hn=e=>{if(e){const n=document.getElementById(e);ht.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of ht.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}ht.clear()}},fc=e=>{e.unmount=hn;const n=document.getElementById(e.id);if(n){const a=ht.get(e.id);a?e={...wo,...a,...e}:e={...wo,...e},e.transition=!1;const o=t.createVNode(cs,e);return t.render(o,n),e.id}},mc=e=>{e.unmount=hn;let n=e.id??`hinttext_${dc.get()}`;e={...wo,...e},e.id=n,ht.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(cs,e);return t.render(o,a),document.body.appendChild(a),n},pc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Bt={show(e,n,a={},o=!0){pc(n);const l=a.id;return l&&ht.has(l)?fc({...a,message:n,reference:e}):(o&&hn(),mc({...a,message:n,reference:e}))},hide(e){hn(e)},install(e){e.config.globalProperties.$hintText=Bt}};function hc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...me,...ge},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Ne({componentName:e,validate:!1},s);const i=He(),c=Tn();$n(!1);const f=t.computed(()=>c&&i?En(i,!1).value:null),p=e,d=t.ref(null),h=t.computed(()=>{const z={[p]:!0,[`${p}__gutter`]:f.value&&f.value.type!=="flow",[`${p}__stretch`]:l.span==="stretch",[`${p}__input--border`]:pe(l.hasBorder)};if(z[l.errorMarkClass]=!!K.value,z[l.warnMarkClass]=!!$.value,z[l.infoMarkClass]=!!q.value,typeof d.value=="function"){const ee=d.value(s);z[ee]=!0}else if(typeof d.value=="string"){const ee=d.value;z[ee]=!0}return z}),k=t.ref(null),v=t.computed(()=>{const z={};if(l.width)l.width!=="auto"&&(z.width=he(l.width));else{const ee=c&&i?xn(i,!1):null;if(f.value&&ee){if(f.value.type==="grid"){const te=In(ee,f.value,l.span,l.offset);Object.assign(z,te)}else if(f.value.type==="flow"){const te=Dn(ee,f.value,l.span,l.offset,l.width);Object.assign(z,te)}}}if(typeof k.value=="function"){const ee=k.value(s);ee&&Object.assign(z,ee)}else if(k.value&&typeof k.value=="object"){const ee=k.value;Object.assign(z,ee)}return z}),b=t.ref(null),y=t.computed({get:()=>b.value??pe(l.isRequired),set:z=>{b.value=z}}),u=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",m=Be(t.toRef(l,"labelPosition"),"labelPosition",mn.Near),g=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),C=t.computed(()=>({[`${p}__main`]:!0,[`${p}__main--${g.value}`]:!0})),A=t.computed(()=>({label:!0,[`label--${g.value}`]:!0})),S=Be(t.toRef(l,"labelWidth"),"labelWidth",mn.Near),V=t.computed(()=>S&&S.value?{width:he(S.value)}:{}),N=t.computed(()=>({"label--string":!0,"label--required":y.value})),T=t.computed(()=>({content:!0,[l.contentClass]:!0})),B=t.computed(()=>({...l.contentStyle})),w=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(z){y.value=z},setErrorTip(z){w.errorTip=z},setErrorIcon(z){w.errorIcon=z},setWarnTip(z){w.warnTip=z},setWarnIcon(z){w.warnIcon=z},setInfoTip(z){w.infoTip=z},setInfoIcon(z){w.infoIcon=z},setCustomClassName(z){d.value=z},setCustomStyle(z){k.value=z}});const q=t.computed(()=>l.infoTip||w.infoTip),P=t.computed(()=>l.infoIcon||w.infoIcon),$=t.computed(()=>l.warnTip||w.warnTip),E=t.computed(()=>l.warnIcon||w.warnIcon),K=t.computed(()=>l.errorTip||w.errorTip),D=t.computed(()=>l.errorIcon||w.errorIcon),W=t.computed(()=>K.value?"error":$.value?"warn":q.value?"info":""),H=()=>W.value.length>0,Z=t.computed(()=>W.value==="error"?K.value:W.value==="warn"?$.value:W.value==="info"?q.value:""),_=t.computed(()=>W.value==="error"?D.value:W.value==="warn"?E.value:W.value==="info"?P.value:null),j=t.computed(()=>{const z={[`${p}__tip`]:!0,[`${p}__tip--${W.value}`]:!0,[`${p}--animate`]:!0};return W.value==="error"&&l.errorClass?z[`${l.errorClass}`]=!0:W.value==="warn"&&l.warnClass?z[`${l.warnClass}`]=!0:W.value==="info"&&l.infoClass&&(z[`${l.infoClass}`]=!0),z}),I=t.computed(()=>{const z={};return m&&m.value==="top"||!u()?z["padding-left"]="0px":S&&S.value&&(z["padding-left"]=he(S.value)),z}),L=t.ref();let x="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([z,ee,te,ae])=>{L.value&&(z&&!ue(ee)?x?a.show(L.value,ee,{...ae,id:x,type:te},!0):x=a.show(L.value,ee,{...ae,type:te},!0):a.hide(x))});let F=null;const M=()=>{F||!L.value||(F=new IntersectionObserver(z=>{let ee=!1;for(let te of z)if(te.intersectionRatio>0){ee=!0,ee&&r.emit("appear",te);break}ee||r.emit("disappear")}),F.observe(L.value))},R=()=>{!F||!L.value||(F.unobserve(L.value),F=null)};t.watch(()=>pe(l.appearListen),z=>{z?M():R()}),t.onMounted(()=>{pe(l.appearListen)&&M()}),t.onUnmounted(R);const Y=()=>{if(!u())return null;const z=[],ee=r.slots?.label?.()??l.label,te={class:N.value},ae=t.h("div",te,[ee]);if(z.push(ae),r.slots.fixedPreTip){const Ee=r.slots.fixedPreTip();z.push(Ee)}const ce={class:A.value,style:V.value};return t.h("div",ce,z)},O=()=>{const z=[];if(r.slots.prepend){const te=r.slots.prepend();z.push(te)}if(r.slots.default){const te=r.slots.default();z.push(te)}if(r.slots.append){const te=r.slots.append();z.push(te)}if(r.slots.fixedTip){const te={class:[`${p}__fixed-tip`]},ae=t.h("div",te,[r.slots.fixedTip()]);z.push(ae)}const ee={ref:L,class:T.value,style:B.value};return t.h("div",ee,z)},U=()=>{const z=_.value;return z?typeof z=="function"?t.h("div",{class:"fox-item__tip--icon"},[z()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(z)]):null},G=()=>{const z=Z.value;return z?typeof z=="function"?t.h("div",{class:"fox-item__tip--text"},[z()]):t.h("div",{class:"fox-item__tip--text"},[z]):null},Q=()=>{if(!H())return null;const z=[],ee=U();ee&&z.push(ee);const te=G();te&&z.push(te);const ae={class:j.value,style:I.value};return t.h("div",ae,z)},J=()=>r.slots?.hide?.()??null;return()=>{const z=[],ee=[],te=Y();te&&ee.push(te);const ae=O();ae&&ee.push(ae);const ce={class:C.value},Ee=t.h("div",ce,ee);z.push(Ee);const De=Q();De&&z.push(De);const Ye=J();Ye&&z.push(Ye);const Zn={class:h.value,style:v.value,prop:l.prop};return t.h("div",Zn,z)}}}}const{componentName:gc,create:yc,scope:vc}=X("item"),Se=yc(hc(gc,vc,Bt,!1));function bc(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=He(),i=Tn();$n(!1);const c=t.computed(()=>{const f={};if(a.width)a.width!=="auto"&&(f.width=he(a.width));else if(i&&s){const p=En(s,!1),d=xn(s,!1);if(p.value&&d){if(p.value.type==="grid"){const h=In(d,p.value,a.span,a.offset);Object.assign(f,h)}else if(p.value.type==="flow"){const h=Dn(d,p.value,a.span,a.offset,a.width);Object.assign(f,h)}}}return f});return()=>{const f=[];if(o.slots.default){const d=o.slots.default();if(a.divide)for(let h=0;h<d.length;h++){if(h>0){const k=t.h("div",{class:{[`${l}__divide`]:!0}});f.push(k)}f.push(d[h])}else Reflect.apply([].push,f,d)}const p={class:r.value,style:c.value};return t.h("div",p,f)}}}}const{componentName:kc,create:Sc,scope:l2}=X("row-item"),Yo=Sc(bc(kc));function Cc(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(a,o){const l=He(),r=Tn();$n(!1);const s=t.computed(()=>r&&l?En(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),f=t.computed(()=>{const p={};if(a.width)a.width!=="auto"&&(p.width=he(a.width));else{const d=r&&l?xn(l,!1):null;if(s.value&&d){if(s.value.type==="grid"){const h=In(d,s.value,a.span,a.offset);Object.assign(p,h)}else if(s.value.type==="flow"){const h=Dn(d,s.value,a.span,a.offset,a.width);Object.assign(p,h)}}}return p});return()=>{const p={class:c.value,style:f.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",p,o.slots.default()):t.h("div",p)}}}}const{componentName:wc,create:Nc,scope:a2}=X("slot-item"),Xo=Nc(Cc(wc)),Oa={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 Bc(e,n,a,o){return{props:{...me,...ge,...Oa},emits:["change","update:modelValue","blur","focus","clear"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),{toLocaleRefs:f}=re.useFoxI18n(n),p=f(l,["placeholder"]),d=t.ref(!1),h=xe(l,"modelValue"),k=e,v=t.computed(()=>({[k]:!0,[`${k}--disabled`]:s.value,[`${k}--readonly`]:i.value})),b=Be(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>{const E={};return b.value&&(E["text-align"]=b.value),E}),u=E=>{let D=E.target.value;l.type==="digit"&&(D=vo(D,!0)),l.type==="number"&&(D=vo(D,!1)),l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),h.value=D,c("update:modelValue",D,E),c("change",D,E)};let m=xe(l,"hintText"),g=t.ref(!1);const C=E=>{let D=E.target.value;d.value=!0,ue(m.value)||(g.value=!0),c("focus",D,E)},A=E=>{setTimeout(()=>{g.value&&(g.value=!1),d.value=!1},0);let D=E.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),c("blur",D,E)},S=t.computed(()=>({[`${k}__append`]:!0})),V=t.computed(()=>{const E={};return r.slots.append&&!N.value&&!P.value&&(E.display="none"),E}),N=t.computed(()=>ye(l.unit)>0),T=t.computed(()=>!P.value),B=t.computed(()=>({[`${k}__unit`]:!0,hidden:!T.value})),w=E=>{h.value="",c("update:modelValue","",E),c("change","",E),c("clear","")},q=t.computed(()=>pe(l.clearable)&&!s.value&&!i.value),P=t.computed(()=>{let E=ye(h.value)>0;return pe(l.clearable)&&E&&d.value}),$=t.computed(()=>({action:!0,hidden:!P.value}));return()=>{const E={class:v.value,style:y.value,type:l.type,maxlength:l.maxLength,placeholder:p.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:u,onFocus:C,onBlur:A},K=[],D=t.h("input",E);K.push(D);const W=[];if(q.value){const x={class:["action-icon"]},F=t.h(o,x),M={class:$.value,onClick:w},R=t.h("view",M,{default:()=>[F]});W.push(R)}if(N.value){const x=t.h("view",{class:B.value},[l.unit]);W.push(x)}const H={class:S.value,style:V.value},Z=t.h("view",H,{default:()=>W});K.push(Z);const _={default:()=>K};_.label=r.slots.default,_.prepend=r.slots.prepend,_.append=r.slots.append,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const I={...Nt(l,Oa),hintText:m.value,hintVisible:g.value,prop:`${l.prop}_item`};return t.h(a,I,_)}}}}const{componentName:Ac,create:Vc,scope:Tc}=X("input-item"),Qo=Vc(Bc(Ac,Tc,Se,oe.CircleClose));function Ka(e,n=0){let a=`${e}`,o=a.indexOf(".");if(o==-1)return a;let l=o;for(let r=a.length-1;r>=o;r--)if(a.charAt(r)!="0"){l=r;break}return l-o<n?l=o+n+1:l!=o&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function Ua(e,n,a=20){if(typeof n=="string"&&(n=fe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Tr(`${e}`,`${n}`);return Ka(o)}else{let o=Lo(`${e}`,$r(`${n}`),20);return Ka(o)}}function $c(e,n=-1,a=!1,o=3,l=","){return yn(e,n,a,o,l)}function Ha(e,n,a,o,l=!0){if(e=="")return"";if(e=Er(e),n=fe(n),n==1)return e;if(o)e=Ua(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(fe(a)+2,"0"):e=Lo(e,1,fe(a)));else{let r=-1*n;e=Ua(e,r)}return e}function ja(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=pe(n.minInclude),l=ho(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=pe(n.maxInclude),l=ho(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Wa={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 Ec(e,n,a,o){return{props:{...me,...ge,...Wa},emits:["change","update:modelValue","blur","focus","clear"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=t.ref(!1),p=xe(l,"modelValue"),d=t.ref("");t.watch([()=>p.value,()=>l.rates,()=>l.precision],([H,Z,_])=>{if(ue(H)){d.value="";return}const j=Ha(H,Z,_,!1);d.value!==j&&(d.value=j)},{immediate:!0});const h=t.computed(()=>{let H="";return f.value&&(H=d.value),H}),{t:k}=re.useFoxI18n(n),v=t.computed(()=>{let H=l.placeholder??"";return!f.value&&!ue(d.value)?H=$c(d.value,l.decimalLength,l.autoPadding,l.digits,l.separator):H=ue(H)?k(["placeholder"]):H,H}),b=e,y=t.computed(()=>({[b]:!0,[`${b}--disabled`]:s.value,[`${b}__placeholder`]:d.value.length>0})),u=Be(t.computed(()=>l.textAlign),"textAlign"),m=t.computed(()=>{const H={};return u.value&&(H["text-align"]=u.value),H}),g=t.ref(""),C=t.computed(()=>{let H=g.value;return ue(H)&&(H=l.errorTip??""),H}),A=t.ref(""),S=t.ref(!1),V=H=>{let _=H.target.value;if(ue(_)){d.value="",p.value="",c("update:modelValue","",H),c("change","",H),pe(l.showTip)&&S.value&&(S.value=!1);return}if(_.length>=2){let j=_;if(j.charAt(0)=="-"&&(j=j.substring(1)),j.length>=2&&j.charAt(0)=="0"&&j.charAt(1)!="."){t.triggerRef(d);return}}if(_!="-"){if(!Fr(_)){t.triggerRef(d);return}if(l.integerLength!=-1&&Rr(_)>Number(l.integerLength)){t.triggerRef(d);return}if(l.decimalLength&&l.decimalLength!=-1&&Or(_)>Number(l.decimalLength)){t.triggerRef(d);return}let j=ja(_,l);if(j.maxValid===!1){g.value=j.message,t.triggerRef(d);return}}else if(l.min!=null&&fe(l.min)>=0){t.triggerRef(d);return}A.value=_,pe(l.showTip)&&(S.value=_.length>0),d.value=_,p.value=Ha(_,l.rates,l.precision,!0),c("update:modelValue",p.value,H),c("change",p.value,H)},N=H=>{if(f.value=!0,pe(l.showTip)){let Z=d.value;ue(Z)&&(Z=l.hintText),ue(Z)||(A.value=Z,S.value=!0)}g.value="",c("focus",p.value,H)},T=H=>{if(setTimeout(()=>{f.value=!1,pe(l.showTip)&&S.value===!0&&(S.value=!1)},0),!ue(d.value)){let Z=ja(d.value,l);if(Z.minValid===!1||Z.maxValid===!1){g.value=Z.message;return}}c("update:modelValue",p.value,H),c("blur",p.value,H)},B=t.computed(()=>({[`${b}__append`]:!0})),w=t.computed(()=>{const H={};return r.slots.append&&!q.value&&!D.value&&(H.display="none"),H}),q=t.computed(()=>ye(l.unit)>0),P=t.computed(()=>!D.value),$=t.computed(()=>({[`${b}__unit`]:!0,hidden:!P.value})),E=H=>{p.value="",c("update:modelValue","",H),c("change","",H),c("clear","")},K=t.computed(()=>pe(l.clearable)&&!s.value&&!i.value),D=t.computed(()=>{let H=ye(p.value)>0;return pe(l.clearable)&&H&&f.value}),W=t.computed(()=>({action:!0,hidden:!D.value}));return()=>{let H={class:y.value,style:m.value,type:"digit",maxlength:l.maxLength,placeholder:v.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:V,onFocus:N,onBlur:T},Z=[],_=t.h("input",H);Z.push(_);let j=[];if(K.value){const Y={class:["action-icon"]},O=t.h(o,Y),U={class:W.value,onClick:E},G=t.h("view",U,{default:()=>[O]});j.push(G)}if(q.value){const Y=t.h("view",{class:$.value},[l.unit]);j.push(Y)}const I={class:B.value,style:w.value},L=t.h("view",I,{default:()=>j});Z.push(L);const x={default:()=>Z};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;let M={...Nt(l,Wa),errorTip:C.value,hintText:A.value,hintVisible:S.value,hintType:"number",prop:`${l.prop}_item`};return t.h(a,M,x)}}}}const{componentName:xc,create:Dc,scope:Ic}=X("money-item"),Go=Dc(Ec(xc,Ic,Se,oe.CircleClose)),No={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:qc,create:Mc,scope:Pc}=X("textarea"),Lc=Mc({props:{...No},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=re.useFoxI18n(Pc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=qc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=l.value;h.style.height="auto";let k=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:v,minHeight:b}=e.autosize;v!==void 0&&(k=Math.min(k,v)),b!==void 0&&(k=Math.max(k,b))}k&&(h.style.height=k+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,k)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,k),n("change",h,k)};return{...o,textareaRef:l,classes:r,styles:s,change:h=>{const k=h.target;c(k.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let v=h.target.value;c(v,h),n("blur",{value:v,event:h})}}}}),zc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Fc={key:0,class:"fox-textarea__limit"};function Rc(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...s)=>e.change&&e.change(...s)),onBlur:n[1]||(n[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[2]||(n[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,zc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Fc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Mn=ne(Lc,[["render",Rc]]);function Oc(e,n,a,o){return{props:{...me,...ge,...No},emits:["update:modelValue","change","blur","focus"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=xe(l,"modelValue"),p=b=>{f.value=b,c("update:modelValue",b,{}),c("change",b,{})};let d=xe(l,"hintText"),h=t.ref(!1);const k=b=>{ue(d.value)||(h.value=!0),c("focus",f.value,b)},v=b=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",f.value,b)};return()=>{const y={...ve(l,No),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":p,onFocus:k,onBlur:v},u=[],m=t.h(o,y);u.push(m);const g={default:()=>u};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 C=ve(l,ge,me);return t.h(a,{...C,prop:`${l.prop}_item`},g)}}}}const{componentName:Kc,create:Uc,scope:Hc}=X("textarea-item"),Zo=Uc(Oc(Kc,Hc,Se,Mn));function jc(e){return e===window}const Ve=e=>{const n=t.unref(e);if(jc(n)){const a=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};let Wc=2e3;const Yc=()=>Wc++,ze={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},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,Array],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:{}}},Xc=(e,n)=>({components:n,props:{...ze},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:o}){const l=t.reactive({zIndex:0,showSlot:!0,closed:a.closeable}),r=t.computed(()=>{const b=e,y=[b,`${b}--${a.position}`];return a.round&&y.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&y.push(`${b}--${a.position}--safebottom`),typeof a.popClass=="string"?y.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(u=>{y.push(u)}),y}),s=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),i=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{o("update:visible",!0),a.zIndex?l.zIndex=a.zIndex:l.zIndex=Yc(),a.destroyOnClose&&(l.showSlot=!0),o("open")},f=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},p=b=>{o("click-pop",b)},d=b=>{b.stopPropagation(),o("click-close-icon",b),o("update:visible",!1)},h=b=>{o("click-overlay",b),a.closeOnClickOverlay&&o("update:visible",!1)},k=b=>{o("opend",b)},v=b=>{o("closed",b)};return t.watch(()=>a.visible,b=>{a.visible?c():f()}),t.watch(()=>a.closeable,b=>{l.closed=b}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:p,onClickCloseIcon:d,onClickOverlay:h,onOpened:k,onClosed:v}}});let $t=0;const Ya="fox-overflow-hidden",Xa=()=>it?document.body:{classList:[]},Qc=e=>[()=>{if(e())try{!$t&&Xa().classList.add(Ya),$t++}catch{}},()=>{if(e()&&$t)try{$t--,!$t&&Xa().classList.remove(Ya)}catch{}}],Gc={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:Jc}=X("overlay"),_c=Jc({props:{...Gc},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=Qc(()=>e.lockScroll),l=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?a():o()}),{classes:l,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function eu(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const rt=ne(_c,[["render",eu]]),{componentName:tu,create:nu}=X("popup"),ou=nu(Xc(tu,{FoxOverLay:rt,Close:oe.Close}));function lu(e,n,a,o,l,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const de=ne(ou,[["render",lu]]),Qa=10;function us(e,n){return e>n&&e>Qa?"horizontal":n>e&&n>Qa?"vertical":""}function Jo(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function _o(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const f=s.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const c=s;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=us(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const f=s.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const c=s;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function _e(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),f=t.ref(0),p=t.ref(""),d=()=>p.value==="vertical",h=()=>p.value==="horizontal",k=()=>{s.value=0,i.value=0,c.value=0,f.value=0,p.value="",a.value=0};return{move:y=>{if(y.touches){const g=y.touches[0];s.value=g.clientX-e.value,i.value=g.clientY-n.value,l.value=g.clientX,r.value=g.clientY}else{const m=y;s.value=m.clientX-e.value,i.value=m.clientY-n.value,l.value=m.clientX,r.value=m.clientY}c.value=Math.abs(s.value),f.value=Math.abs(i.value),o.value=Date.now()-a.value,p.value||(p.value=us(c.value,f.value))},start:y=>{if(k(),y.touches){const g=y.touches[0];e.value=g.clientX,n.value=g.clientY}else{const m=y;e.value=m.clientX,n.value=m.clientY}a.value=Date.now()},reset:k,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:f,direction:p,isVertical:d,isHorizontal:h}}const ds={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}},Bo={...ze,...ds,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 fs=36;function au(){return fs}function ru(e){fs=e}function Pe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ao(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function su(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ga(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let iu=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function cu(){const e=t.getCurrentInstance();return new iu(e.proxy)}function Za(e,n,a){const o=Pe(e,n),l=Pe(e,a);if(o!==l)return!1;const r=st(e,n),s=st(e,a);return r===s}function uu(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=n[s];let f=a[s].findIndex(p=>{if(r==="text")return Pe(e,p)===i;if(r==="value"){let d=st(e,p);return d==null&&(d=Pe(e,p)),d===i}else if(r==="item")return Za(e,p,i)});if(f==-1)break;l.push(f)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let f=s.findIndex(d=>{if(r==="text")return Pe(e,d)===c;if(r==="value"){let h=st(e,d);return h==null&&(h=Pe(e,d)),h===c}else if(r==="item")return Za(e,d,c)});if(f==-1)break;l.push(f);const p=Ao(e,s[f]);if(!Array.isArray(p))break;s=p}}return l}function Ja(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const f=i[c],p=Pe(e,f);if(l.texts.push(p),l.items.push(f),r==="text")l.values.push(p);else if(r==="value"){let d=st(e,f);d==null&&(d=p),l.values.push(d)}else l.values.push(f)}else{let s=a[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const f=s[c],p=Object.assign({},f);p.children=null;const d=Pe(e,f);if(l.texts.push(d),l.items.push(p),r==="text")l.values.push(d);else if(r==="value"){let h=st(e,f);h==null&&(h=d),l.values.push(h)}else l.values.push(p);if(!Array.isArray(f.children))break;s=f.children}}return l}function _a(e){return{text:e,value:e}}const du=15,fu=300,mu=200,{create:pu}=X("picker-column");function hu(e){e.stopPropagation()}function gu(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&hu(e)}const yu=pu({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},...ds},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${fe(e.visibleItemCount)*+e.itemHeight}px`})),l=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=N=>N>=d.currIndex+8||N<=d.currIndex-8,i=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),c=N=>`transform: rotate3d(1, 0, 0, ${-d.rotation*N}deg) translate3d(0px, 0px, 104px)`,f=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),p=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=t.toRef(e,"source"),k=N=>Pe(e,N),v=N=>st(e,N),b=_e(),y=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},u=(N,T=!1,B=!1)=>{if(d.currIndex=N,T){const w=()=>{d.moving=!1,n("update:modelValue",N),n("change",N)};B?d.transitionEndTrigger=w:w()}},m=(N,T,B)=>{let w=N+d.startDistance;if(T==="end"){const q=-(h.value.length-1)*e.itemHeight;w<q&&(w=q,(!B||B<=0)&&(B=e.swipeDuration)),w>0&&(w=0,(!B||B<=0)&&(B=e.swipeDuration));let P=Math.abs(Math.round(-w/e.itemHeight));const $=-P*e.itemHeight,E=`${(P+1)*d.rotation}deg`,K=B?B>0:!1;u(P,!0,K),g($,T,B,E)}else{let q=(-w/e.itemHeight+1)*d.rotation;const P=(h.value.length+1)*d.rotation,$=0;if(q=Math.min(Math.max(q,$),P),e.threeDimensional&&(q<$||q>P))return;g(w,null,void 0,`${q}deg`)}},g=(N=0,T,B=mu,w)=>{T==="end"?d.scrollTime=B:d.scrollTime=0,d.deg=w,d.scrollDistance=N},C=(N,T)=>(N=Math.abs(N/T)/.003*(N<0?-1:1),N),A=N=>{e.readonly||(d.startDistance=d.scrollDistance,b.start(N),d.transitionEndTrigger=null)},S=N=>{e.readonly||(d.moving=!0,b.move(N),b.isVertical()&&(d.moving=!0,gu(N,!0)),m(b.deltaY.value,"",0))},V=()=>{if(e.readonly)return;const N=b.deltaY.value,T=b.duration.value;if(T<fu&&Math.abs(N)>du){const w=C(N,T);m(w,"end",e.swipeDuration)}else m(N,"end",0)};return t.watch(()=>e.modelValue,N=>{if(d.currIndex!==N){d.currIndex=N;const T=-N*e.itemHeight;m(T)}}),t.onMounted(()=>{const N=-e.modelValue*e.itemHeight;m(N)}),{classes:a,styles:o,contentClasses:l,source:h,itemText:k,itemValue:v,...t.toRefs(d),roller:p,getItemText:Pe,onTouchStart:A,onTouchMove:S,onTouchEnd:V,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:f,stopMomentum:y}}}),vu={key:1,class:"fox-picker__item-tile"};function bu(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",vu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const er=ne(yu,[["render",bu]]),{create:ku,componentName:Su,scope:Cu}=X("picker"),wu=ku({components:{[er.name]:er,[de.name]:de},props:{...Bo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=re.useFoxI18n(Cu),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(au());t.watch(()=>e.visible,B=>{B&&s.value<=0&&setTimeout(()=>{if(r.value){const w=Ve(r.value);s.value=w.height,ru(s.value)}},50)});const i=t.computed(()=>({[Su]:!0})),c=cu(),f=t.ref("singleColumn");let p=t.ref([]);t.watch([()=>e.source,()=>e.params],async([B,w])=>{if(B){let q=await c.load("picker",B,w);if(q.length>0){let P=q[0];if(Array.isArray(P)){if(typeof P[0]=="string"){let $=q,E=[];$.forEach(K=>{let D=K.map(W=>_a(W));E.push(D)}),p.value=E}else p.value=q;f.value="multipleColumn"}else if(typeof P=="string"){let $=q,E=[],K=$.map(D=>_a(D));E.push(K),p.value=E,f.value="singleColumn"}else{const $=Ao(e,P);Array.isArray($)?(f.value="cascade",p.value=[q]):(f.value="singleColumn",p.value=[q])}}else p.value=[]}},{immediate:!0});const d=t.ref([]),h=t.ref(e.modelValue),k=t.ref([]),v=t.ref([]);t.watch([()=>e.modelValue,()=>p.value],([B,w])=>{let q=uu(e,B,w,f.value);if(!qe(q,v.value)){v.value=q;let P=Ja(e,q,w,f.value);P&&(d.value=P.texts,n("update:text",d.value))}});const b=t.ref(e.visible);t.watch(()=>e.visible,B=>{b.value=B});const y=B=>{let w=Ga(e,B);return Ae(w)?w.defaultIndex??0:0},u=B=>{if(e.readonly===!0)return!0;let w=Ga(e,B);return Ae(w)?w.readonly??!1:!1},m=(B,w)=>{let q=v.value;q[B]=w;for(let $=0;$<B;$++)q[$]==null&&(q[$]=y($));if(f.value==="cascade")for(let $=B+1;$<C.value.length;$++){let E=y($);$<q.length?q[$]=E:q.push(E)}else for(let $=q.length;$<C.value.length;$++){let E=y($);q.push(E)}v.value=q;let P=Ja(e,q,p.value,f.value);P&&(d.value=P.texts,h.value=P.values,k.value=P.items)},g=B=>B<v.value.length?v.value[B]:y(B),C=t.computed(()=>{if(p.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return p.value;let B=[],w=0,q=p.value[0],P=0;for(;;){let $=q.map(D=>{let W=Object.assign({},D);return su(e,W,null),W});B.push($),w>=v.value.length?P=0:P=v.value[w],(P<0||P>=q.length)&&(P=0);let E=q[P];const K=Ao(e,E);if(!Array.isArray(K))break;q=K,w++}return B}),A=t.computed(()=>fe(+e.visibleItemCount-1)/2*s.value);return{...l,pickerLineRef:r,classes:i,columns:C,dataType:f,show:b,itemHeight:s,top:A,isReadonly:u,getIndex:g,change:(B,w)=>{m(B,w)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let B=p.value.length-1;for(;B>=0&&!(v.value[B]===null||v.value[B]===void 0);B--);if(B>=0&&m(B,0),f.value==="singleColumn"){let w=h.value.length>0?h.value[0]:"",q=k.value.length>0?k.value[0]:null;e.readonly||(n("update:modelValue",w),n("update:text",d.value),n("change",w,q)),n("confirm",w)}else e.readonly||(n("update:modelValue",h.value),n("update:text",d.value),n("change",h.value,k.value)),n("confirm",h.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}f.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),Nu={class:"fox-picker__bar"},Bu={class:"fox-picker__title"},Au={class:"fox-picker__bar__action"},Vu={class:"fox-picker__column"};function Tu(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",Nu,[t.createElementVNode("view",Bu,t.toDisplayString(e.title),1),t.createElementVNode("view",Au,[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",Vu,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(f),"column-index":f,modelValue:e.getIndex(f),"onUpdate:modelValue":p=>e.change(f,p),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const bt=ne(wu,[["render",Tu]]);function $u(e,n,a,o,l,r,s=!0){return{props:{...me,...ge,...Bo,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const f=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:d}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),k=h(i,["placeholder"]),v=t.ref(!1),b=xe(i,"modelValue"),y=t.ref([]),u=t.computed(()=>Array.isArray(y.value)?y.value.join(i.separator):y.value),m="fox-input-item",g=t.computed(()=>({[m]:!0,[`${m}__disabled`]:f.value})),C=Be(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const L={};return C.value&&(L["text-align"]=C.value),L}),S=t.ref(!1),V=()=>{S.value=!0},N=L=>{S.value=L},T=L=>{b.value=L,d("update:modelValue",L)},B=(L,x)=>{d("change",L,x)},w=L=>{let F=L.target.value;v.value=!0,d("focus",F,L)},q=L=>{setTimeout(()=>{v.value=!1},0);let F=L.target.value;i.maxLength&&F.length>Number(i.maxLength)&&(F=F.slice(0,Number(i.maxLength))),d("blur",F,L)},P=L=>{y.value=L,Array.isArray(L)&&L.length===0?d("update:text",L[0]):d("update:text",L)},$=t.computed(()=>({[`${m}__append`]:!0})),E=t.computed(()=>ye(i.unit)>0),K=t.computed(()=>ye(i.unit)>0&&!v.value),D=t.computed(()=>({hidden:!K.value})),W=L=>{b.value="",d("update:modelValue","",L),d("change","",L),d("clear","")},H=t.computed(()=>i.clearable&&!f.value&&!p.value),Z=t.computed(()=>ye(b.value)>0&&v.value),_=L=>{Z.value?W(L):V()},j=t.computed(()=>Z.value&&H.value?o:l),I=t.computed(()=>({action:!0}));return()=>{const L={class:g.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:V,onFocus:w,onBlur:q};s&&(L.disabled=!0);const x=[],F=t.h("input",L);x.push(F);const M=[],R={class:["action-icon"]},Y=t.h(j.value,R),O={class:I.value,onClick:_},U=t.h("view",O,{default:()=>[Y]});if(M.push(U),E.value){const ce=t.h("view",{class:D.value},[i.unit]);M.push(ce)}const G={class:$.value},Q=t.h("view",G,{default:()=>M});x.push(Q);const J={default:()=>x};J.label=c.slots.default,J.prepend=c.slots.prepend,J.append=c.slots.append,J.fixedPreTip=c.slots.fixedPreTip,J.fixedTip=c.slots.fixedTip;const z=ve(i,Bo);z.disabled=!1,z.readonly=f.value||p.value,z.visible=S.value,z["onUpdate:visible"]=N,z.modelValue=b.value,z["onUpdate:modelValue"]=T,z.text=y.value,z["onUpdate:text"]=P,z.onChange=B;const ee=t.h(r,z);J.hide=()=>[ee];const te=ve(i,ge,me);return t.h(a,te,J)}}}}const{componentName:Eu,create:xu,scope:Du}=X("picker-item"),el=xu($u(Eu,Du,Se,oe.CircleClose,oe.ArrowRight,bt,!1)),en=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:f,...p}=o,d={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:f,_parent:n};return d.children&&d.children.length&&(d.children=en(d.children,d,a)),d}),ms=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&ms(o.children,n)},Iu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},qu=(e,n)=>{const a={...Iu,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(f=>{f={...f};const{[l]:p,[r]:d}=f,h=c[d]=c[d]||[];!i.length&&d===o&&(i=h),h.push(f),f.children=c[p]||(c[p]=[])}),s&&Object.keys(c).forEach(f=>{c[f].length>1&&c[f].sort((p,d)=>p[s]-d[s])}),c=null,i},Mu={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},tr=(e,n)=>n[e.textKey],Et=(e,n)=>n[e.valueKey],Pu=(e,n)=>n[e.visibleKey],nr=(e,n)=>n[e.disabledKey],Lu=(e,n)=>{const a=n[e.doitKey];return pe(a)},zu=(e,n)=>{const a=n[e.numKey];return a==null?null:fe(n[a])},or=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Fu(e,n,a,o=!1){return{props:{...Mu},emits:["update:modelValue","change","click"],setup(l,{slots:r,emit:s}){const i=t.computed(()=>{const j={};return j[`${e}`]=!0,j}),c=t.computed(()=>{const j={};return j[`${e}__titles`]=!0,j[`${l.direction}`]=!0,l.align==="left"&&(j.left=!0),l.scroll===!0&&(j.scrollable=!0),l.shape&&(j[`${l.shape}`]=!0),j}),f=t.computed(()=>({})),p=t.computed(()=>{if(!l.gutter)return 0;const j=ie(l.gutter);return j<=0?0:j}),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,j=>{d.value!==j&&(d.value=j,D(!1))});const h=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),k=t.computed(()=>{const j={};return b.value||(j.display="none"),j}),v=t.ref(),b=t.ref(!1),y=()=>{const j=!b.value;u(j)},u=j=>{const I=j;I?(b.value=I,setTimeout(()=>{h.value["fox-tabs-bar__popup--show"]=!0,h.value["fox-tabs-bar__popup--hide"]=!1},0)):(h.value["fox-tabs-bar__popup--show"]=!1,h.value["fox-tabs-bar__popup--hide"]=!0,v.value?v.value.addEventListener("transitionend",()=>{b.value=!1},{once:!0}):setTimeout(()=>{b.value=!1},0))},m=t.ref(),g=t.ref([]),C=(j,I)=>{g.value[I]=j},A=j=>I=>{C(I,j)},S=(j,I)=>{const L=m.value,x=g.value;if(!L||!x||!x[j])return;const F=x[j];let M=0;l.direction==="vertical"?M=F.offsetTop-(L.offsetHeight-F.offsetHeight)/2:M=F.offsetLeft-(L.offsetWidth-F.offsetWidth)/2,V(L,M,I?0:.3,l.direction)},V=(j,I,L,x)=>{let F=0;const M=x==="horizontal"?j.scrollLeft:j.scrollTop,R=L===0?1:Math.round(L*1e3/16);function Y(){x==="horizontal"?j.scrollLeft+=(I-M)/R:j.scrollTop+=(I-M)/R,++F<R&&Re(Y)}Y()},N=(j,I)=>{const L=Et(l,j),x={};return x[`${e}__titles-item`]=!0,x.disabled=nr(l,j),x.active=L===d.value,l.shape&&(x[`${l.shape}`]=!0),l.ellipsis&&(x.ellipsis=!0),I&&(I.class&&(x[`${I.class}`]=!0),I.disabled===!0&&(x.disabled=I.disabled)),x},T=(j,I)=>{const L={};if(p.value>0){const x=Math.abs(p.value/2);l.direction==="vertical"?(L["margin-top"]=`${x}px`,L["margin-bottom"]=`${x}px`):(L["margin-left"]=`${x}px`,L["margin-right"]=`${x}px`)}return I&&I.style&&Object.assign(L,I.style),L},B=(j,I)=>`${Et(l,j)??I}`,w=(j,I)=>{const L=Et(l,j),x={};x[`${e}__popup-item`]=!0,x.disabled=nr(l,j),x.active=L===d.value,l.shape&&(x[`${l.shape}`]=!0);const F=or(l,j,I);return F&&F.disabled===!0&&(x.disabled=F.disabled),x},q=t.computed(()=>(l.data??[]).filter(I=>Pu(l,I)!==!1)),P=(j,I)=>{const L=Et(l,j);if(s("click",j,I),d.value==L)return;const x=()=>{d.value=L,l.scroll&&S(I,!1),s("update:modelValue",L),s("change",j,I)};if(typeof l.beforeChange=="function"){const F=l.beforeChange(j,I);gt(F)?F.then(M=>{M!==!1&&x()}).catch(()=>{x()}):F!==!1&&x()}else x()},$=(j,I)=>function(){P(j,I)},E=(j,I)=>{P(j,I),u(!1)},K=(j,I)=>function(){E(j,I)},D=j=>{if(!Array.isArray(l.data)||!l.scroll)return;const I=l.data.findIndex(L=>Et(l,L)===d.value);I!==-1&&S(I,j)};t.watch(()=>l.data,()=>{setTimeout(D,0)}),t.onMounted(()=>{D(!0)});const W=(j,I)=>{if(r.item)return r.item({item:j,index:I});const L=or(l,j,I),x=[];if(r.text){const Y=r.text({item:j,index:I});x.push(Y)}else{const Y=[];if(L?.doit===!0||Lu(l,j)){const Q={class:[`${e}__titles-item-tip`,"doit"]},J=t.h("view",Q);Y.push(J)}const O=L?.num??zu(l,j);if(O){let Q="";const J=fe(O);J>=100?Q="99+":Q=`${J}`;const z={class:[`${e}__titles-item-tip`,"num"]},ee=t.h("view",z,[Q]);Y.push(ee)}const U={class:`${e}__titles-item-text`};Y.push(tr(l,j));const G=t.h("view",U,Y);x.push(G)}const F={class:`${e}__titles-item-line`},M=t.h("view",F);x.push(M);const R={ref:A(I),class:N(j,L),style:T(j,L),key:B(j,I),onClick:$(j,I)};return t.h("view",R,x)},H=()=>{const j=r.default?r.default():[];if(j.length===0)for(let L=0;L<q.value.length;L++){const x=q.value[L],F=W(x,L);j.push(F)}const I={ref:m,class:c.value,style:f.value};return t.h("view",I,j)},Z=()=>{let j=null;r.navigation?j=r.navigation():j=t.h(a);const I={class:`${e}__navigation`,onClick:y};return t.h("view",I,[j])},_=()=>{const j=[];for(let L=0;L<q.value.length;L++){const x=q.value[L];let F=null;r.popupItem?F=r.popupItem({item:x,index:L}):F=tr(l,x);const M={class:w(x,L),key:B(x,L),onClick:K(x,L)},R=t.h("view",M,[F]);j.push(R)}const I={class:h.value,style:k.value};return t.h("view",I,j)};return()=>{const j=[],I=H();if(j.push(I),l.showQuickNavigation){const x=Z();j.push(x);const F=_();j.push(F)}const L={class:i.value};return t.h("view",L,j)}}}}const{create:Ru,componentName:Ou,scope:Ku}=X("tabs-bar"),Pn=Ru(Fu(Ou,Ku,oe.MoreH,!1)),ps=Symbol("TabsStatesKey"),Uu={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Hu(e,n,a=!1){return{props:{...Uu},emits:["update:modelValue","change"],setup(o,{emit:l,slots:r}){const s=t.shallowRef([]),i={current:t.ref(o.modelValue??""),direction:t.ref(o.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:b=>{const y={name:b};i.current.value===b&&(y.loaded=!0),s.value.push(y),t.triggerRef(s)},remove:b=>{const y=s.value.findIndex(u=>u.name===b);y!==-1&&s.value.splice(y,1)},isLoaded:b=>{if(!o.lazy)return!0;const y=s.value.findIndex(u=>u.name===b);return y!==-1?i.current.value?s.value[y].loaded??!1:y===0:!1}};t.provide(ps,i);const c=b=>{const y=s.value.findIndex(u=>u.name===b);y!==-1&&(s.value[y].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([b,y])=>{i.current.value!==b&&(i.current.value=b??"",c(b??"")),i.direction.value!==y&&(i.direction.value=y)});const f=t.ref(null),p=t.ref(null),d=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let h=!0;const k=t.computed(()=>{const b={},y=s.value.length;if(y<=0)return b;const u=s.value.findIndex(m=>m.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(b.height=`${y*i.tabHeight.value}px`,u!==-1&&(b.transform=`translate(0, -${u*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(b.width=`${y*i.tabWidth.value}px`,u!==-1&&(b.transform=`translate(-${u*i.tabWidth.value}px, 0)`)),h&&(h=!1,b.transition="transform 0s ease"),b});let v=null;return t.onMounted(()=>{if(!f.value)return;const b=()=>{const y=Vn(f.value);i.tabWidth.value=y.width,i.tabHeight.value=y.height};window.ResizeObserver&&(v=new window.ResizeObserver(b),v.observe(f.value)),b()}),t.onBeforeUnmount(()=>{v&&(v.disconnect(),v=null)}),()=>{const b={class:`${e}__panes`,style:k.value,ref:p},y=t.h("view",b,[r?.default?.()]),u={class:d.value,ref:f};return t.h("view",u,[y])}}}}const{create:ju,componentName:Wu,scope:Yu}=X("tabs-container"),Ln=ju(Hu(Wu,Yu,!1)),Xu={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Qu(e,n,a){return{props:{...Xu},setup(o,{emit:l,slots:r}){const s=t.inject(ps);t.onMounted(()=>{s.add(o.paneKey)}),t.onBeforeUnmount(()=>{s.remove(o.paneKey)});const i=t.computed(()=>{const f={};return s.direction.value==="vertical"&&s.tabHeight.value>0?f.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(f.width=`${s.tabWidth.value}px`),f}),c=t.computed(()=>o.loaded!=null?pe(o.loaded):s.isLoaded(o.paneKey));return()=>{let f=[];if(c.value)f=r?.default?.()??[];else if(r.empty)f=r.empty();else{const d={class:`${e}__empty-icon`},h=o.emptyIcon??a,k=t.h(h,d),v={class:`${e}__empty-text`},b=o.emptyText??"Loading",y=t.h("view",v,[b]),u={class:`${e}__empty`},m=t.h("view",u,[k,y]);f.push(m)}const p={class:`${e}`,style:i.value};return t.h("view",p,f)}}}}const{create:Gu,componentName:Zu,scope:Ju}=X("tabs-pane"),zn=Gu(Qu(Zu,Ju,oe.Loading));class lr{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=en(n,null,this.config)}updateChildren(n,a){a?a.children=en(n,a,this.config):this.nodes=en(n,null,this.config)}getNodeByValue(n){let a;return ms(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:_u,scope:ed}=X("cascader-pane"),td=_u({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:Pn,TabsContainer:Ln,TabsPane:zn},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(ed),o=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),l=t.ref(0),r=t.ref(!1),s=t.ref(e.modelValue),i=t.ref(new lr([],{})),c=t.ref([]),f=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),p=t.computed(()=>r.value==!0||c.value.length==0?[{text:"Loading",value:0}]:c.value.map((m,g)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:g}))),d=new Map;let h;const k=async()=>{d.clear(),c.value=[],l.value=0,r.value=!1,h=null;let{options:m}=e;o.value.convertConfig&&(m=qu(m,o.value.convertConfig)),i.value=new lr(m,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),f.value&&!i.value.nodes.length&&await b({root:!0,loading:!0,text:"",value:""}),c.value=[{nodes:i.value.nodes,selectedNode:null}],v()},v=async()=>{const m=s.value;if(m===void 0||!i.value.nodes.length)return;if(m.length===0){l.value=0,c.value=[{nodes:i.value.nodes,selectedNode:null}];return}let g=m;if(f.value&&Array.isArray(m)&&m.length){g=[];let C=i.value.nodes.find(A=>A.value===m[0]);if(C){g=[C.value],r.value=!0;const A=await m.slice(1).reduce(async(S,V)=>{const N=await S;await b(N);const T=N?.children?.find(B=>B.value===V);return T&&g.push(V),Promise.resolve(T)},Promise.resolve(C));await b(A),r.value=!1}}g.length&&m===e.modelValue&&i.value.getPathNodesByValue(g).map((A,S)=>{l.value=S,u.handleNode(A,!0)})},b=async m=>{if(!m)return;if(!o.value.lazyLoad){m.leaf=!0;return}if(i.value.isLeaf(m,f.value)||i.value.hasChildren(m,f.value))return;m.loading=!0;const g=m.root?null:m;let C=d.get(m);C||(C=new Promise(S=>{o.value.lazyLoad?.(m,S)}),d.set(m,C));const A=await C;Array.isArray(A)&&A.length>0?i.value.updateChildren(A,g):m.leaf=!0,m.loading=!1,d.delete(m)},y=m=>{const g=m.map(C=>C.value);s.value=g,n("change",g,m),n("update:modelValue",g,m)},u={async handleNode(m,g){const{disabled:C,loading:A}=m;if(!(!g&&C||!c.value[l.value])){if(i.value.isLeaf(m,f.value)){if(m.leaf=!0,c.value[l.value].selectedNode=m,c.value=c.value.slice(0,m.level+1),!g){const S=c.value.map(V=>V.selectedNode);y(S),n("pathChange",S)}return}if(i.value.hasChildren(m,f.value)){const S=m.level+1;if(c.value[l.value].selectedNode=m,c.value=c.value.slice(0,S),c.value.push({nodes:m.children||[],selectedNode:null}),l.value=S,!g){const V=c.value.map(N=>N.selectedNode);n("pathChange",V)}return}h=m,!A&&(await b(m),h===m&&(c.value[l.value].selectedNode=m,u.handleNode(m,g)))}},handleTabChange(m,g){h=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,g){return m.selectedNode&&m.selectedNode.value===g.value}};return t.watch([o,()=>e.options],()=>{k()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{m!==s.value&&(s.value=m,v())}),t.watch(()=>e.visible,m=>{m&&Array.isArray(s.value)&&s.value.length>0&&v()}),{panes:c,panesTitles:p,initLoading:r,tabsCursor:l,...u}}}),nd={class:"fox-cascader"},od={role:"menu",class:"fox-cascader__pane"},ld=["aria-checked","aria-disabled","onClick"],ad={class:"fox-cascader__item__title"},rd=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function sd(e,n,a,o,l,r){const s=t.resolveComponent("TabsBar"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),f=t.resolveComponent("TabsPane"),p=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",nd,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(p,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=d=>e.tabsCursor=d)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,h)=>(t.openBlock(),t.createBlock(f,{"pane-key":h,key:h},{default:t.withCtx(()=>[t.createElementVNode("view",od,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,k=>(t.openBlock(),t.createElementBlock("view",{key:k.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,k),disabled:k.disabled}]),"aria-checked":e.isSelected(d,k),"aria-disabled":k.disabled||void 0,role:"menuitemradio",onClick:v=>e.handleNode(k,!1)},[t.createElementVNode("view",ad,t.toDisplayString(k.text),1),k.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(c,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,ld))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(f,{key:1,"pane-key":0},{default:t.withCtx(()=>[rd]),_:1}))]),_:1},8,["modelValue"])])}const id=ne(td,[["render",sd]]),{create:cd}=X("cascader"),ud=cd({components:{FoxCascaderPane:id,FoxPopup:de},props:{...ze,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue),o=t.computed({get(){return e.visible},set(s){n("update:visible",s)}}),l=(s,i)=>{a.value=s,o.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==a.value&&(a.value=s)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),dd=["innerHTML"];function fd(e,n,a,o,l,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,dd)):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 Fn=ne(ud,[["render",fd]]);function Ft(e,n){const a=e.textKey??"text";return n[a]??""}function Rt(e,n){const a=e.valueKey??"value";return n[a]}function hs(e,n){const a=e.childrenKey??"children";return n[a]}function Jt(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=Ft(e,l),s=Rt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function gs(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Ft(e,n[s])===r){const c=Rt(e,n[s])??"",f={[e.textKey]:r,[e.valueKey]:c};l.push(f);const p=hs(e,n[s]);Array.isArray(p)&&gs(e,p,a,o+1,l);return}}function ys(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Rt(e,n[s])===r){const c=Ft(e,n[s])??"",f={[e.textKey]:c,[e.valueKey]:r};l.push(f);const p=hs(e,n[s]);Array.isArray(p)&&ys(e,p,a,o+1,l);return}}function ao(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++){const l=Ft(e,n[o]),r=Ft(e,a[o]);if(l!==r)return!1;const s=Rt(e,n[o]),i=Rt(e,a[o]);if(s!==i)return!1}return!0}let md=class{proxy;constructor(n){this.proxy=n}async load(n,a){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=Je(this.proxy,o);return l===null?(console.error(`${o} component not found api function`),[]):(Ae(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await l(n,a))}};function pd(){const e=t.getCurrentInstance();return new md(e.proxy)}const ar={modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function hd(e,n,a,o,l,r,s=!1){return{props:{...me,...ge,...ar},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes"],setup(i,c){const f=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:d}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),k=h(i,["placeholder"]),v=t.ref(!1),b=pd(),y=t.ref([]);t.watch([()=>i.source,()=>i.params],async([F,M])=>{F&&(y.value=await b.load(F,M))},{immediate:!0});const u=t.ref([]),m=t.computed(()=>Array.isArray(u.value)?u.value.join(" "):u.value),g=t.ref([]),C=t.ref([]);t.watch([()=>i.modelValue],async([F])=>{if(i.lazy===!0){C.value.length==0&&(u.value=Array.isArray(F)?F:[],g.value=Array.isArray(F)?F:[]);return}if(i.valueType==="item"){let M=F;if(!ao(i,M,C.value)){C.value=M;let R=Jt(i,M);u.value=R.texts,g.value=R.values}}else if(i.valueType==="text"){let M=F,R=[];if(gs(i,y.value,M,0,R),!ao(i,R,C.value)){C.value=R;let Y=Jt(i,R);M.value=Y.texts,g.value=Y.values}}else{let M=[];if(ys(i,y.value,F,0,M),!ao(i,M,C.value)){C.value=M;let R=Jt(i,M);u.value=R.texts,g.value=R.values}}},{immediate:!0});const A="fox-input-item",S=t.computed(()=>({[A]:!0,[`${A}__disabled`]:f.value})),V=Be(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const F={};return V.value&&(F["text-align"]=V.value),F}),T=t.ref(!1),B=()=>{f.value===!0||p.value===!0||(T.value=!0)},w=F=>{T.value=F},q=(F,M)=>{let R=M.map(O=>{if(O==null)return O;let U={...O};return Reflect.deleteProperty(U,"text"),U[i.textKey]=O.text??"",Reflect.deleteProperty(U,"value"),U[i.valueKey]=O.value??"",U});C.value=R;let Y=Jt(i,R);u.value=Y.texts,g.value=Y.values,i.valueType==="text"?(d("change",u.value,R),d("update:modelValue",u.value)):i.valueType==="item"?(d("change",R,R),d("update:modelValue",R)):(d("change",g.value,R),d("update:modelValue",g.value)),d("update:pathNodes",R)},P=F=>{let M=F.map(R=>{if(R==null)return R;let Y={...R};return Reflect.deleteProperty(Y,"text"),Y[i.textKey]=R.text??"",Reflect.deleteProperty(Y,"value"),Y[i.valueKey]=R.value??"",Y});d("pathChange",M)},$=F=>{v.value=!0,d("focus",g.value,F)},E=F=>{setTimeout(()=>{v.value=!1},0),d("blur",g.value,F)},K=t.computed(()=>({[`${A}__append`]:!0})),D=t.computed(()=>ye(i.unit)>0),W=t.computed(()=>ye(i.unit)>0&&!v.value),H=t.computed(()=>({hidden:!W.value})),Z=F=>{C.value=[],u.value=[],g.value=[],d("update:modelValue",[]),d("change",[],F),d("clear",[]),d("update:pathNodes",[])},_=t.computed(()=>i.clearable&&!f.value&&!p.value),j=t.computed(()=>{let F=g.value&&g.value.length>0;return i.clearable&&F&&v.value}),I=F=>{j.value?Z(F):B()},L=t.computed(()=>j.value&&_.value?o:l),x=t.computed(()=>({action:!0}));return()=>{const F={class:S.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:B,onFocus:$,onBlur:E};s&&(F.disabled=!0);const M=[],R=t.h("input",F);M.push(R);const Y=[],O={class:["action-icon"]},U=t.h(L.value,O),G={class:x.value,onClick:I},Q=t.h("view",G,{default:()=>[U]});if(Y.push(Q),D.value){const De=t.h("view",{class:H.value},[i.unit]);Y.push(De)}const J={class:K.value},z=t.h("view",J,{default:()=>Y});M.push(z);const ee={default:()=>M};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;let te={};te.visible=T.value,te["onUpdate:visible"]=w,te.modelValue=g.value,te.onChange=q,te.onPathChange=P,te.options=y.value,te.title=i.title,te.lazy=i.lazy,te.lazyLoad=i.lazyLoad,te.valueKey=i.valueKey,te.textKey=i.textKey,te.childrenKey=i.childrenKey,te.convertConfig=i.convertConfig;const ae=t.h(r,te);ee.hide=()=>[ae];const ce=Nt(i,ar);return t.h(a,{...ce,prop:`${i.prop}_item`},ee)}}}}const{componentName:gd,create:yd,scope:vd}=X("cascader-item"),tl=yd(hd(gd,vd,Se,oe.CircleClose,oe.ArrowRight,Fn,!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 vs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",f="day",p="week",d="month",h="quarter",k="year",v="date",b="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(P,$,E){var K=String(P);return!K||K.length>=$?P:""+Array($+1-K.length).join(E)+P},C={s:g,z:function(P){var $=-P.utcOffset(),E=Math.abs($),K=Math.floor(E/60),D=E%60;return($<=0?"+":"-")+g(K,2,"0")+":"+g(D,2,"0")},m:function P($,E){if($.date()<E.date())return-P(E,$);var K=12*(E.year()-$.year())+(E.month()-$.month()),D=$.clone().add(K,d),W=E-D<0,H=$.clone().add(K+(W?-1:1),d);return+(-(K+(E-D)/(W?D-H:H-D))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:d,y:k,w:p,d:f,D:v,h:c,m:i,s,ms:r,Q:h}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},A="en",S={};S[A]=m;var V=function(P){return P instanceof w},N=function P($,E,K){var D;if(!$)return A;if(typeof $=="string"){var W=$.toLowerCase();S[W]&&(D=W),E&&(S[W]=E,D=W);var H=$.split("-");if(!D&&H.length>1)return P(H[0])}else{var Z=$.name;S[Z]=$,D=Z}return!K&&D&&(A=D),D||!K&&A},T=function(P,$){if(V(P))return P.clone();var E=typeof $=="object"?$:{};return E.date=P,E.args=arguments,new w(E)},B=C;B.l=N,B.i=V,B.w=function(P,$){return T(P,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var w=function(){function P(E){this.$L=N(E.locale,null,!0),this.parse(E)}var $=P.prototype;return $.parse=function(E){this.$d=function(K){var D=K.date,W=K.utc;if(D===null)return new Date(NaN);if(B.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var H=D.match(y);if(H){var Z=H[2]-1||0,_=(H[7]||"0").substring(0,3);return W?new Date(Date.UTC(H[1],Z,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)):new Date(H[1],Z,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)}}return new Date(D)}(E),this.$x=E.x||{},this.init()},$.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},$.$utils=function(){return B},$.isValid=function(){return this.$d.toString()!==b},$.isSame=function(E,K){var D=T(E);return this.startOf(K)<=D&&D<=this.endOf(K)},$.isAfter=function(E,K){return T(E)<this.startOf(K)},$.isBefore=function(E,K){return this.endOf(K)<T(E)},$.$g=function(E,K,D){return B.u(E)?this[K]:this.set(D,E)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(E,K){var D=this,W=!!B.u(K)||K,H=B.p(E),Z=function(R,Y){var O=B.w(D.$u?Date.UTC(D.$y,Y,R):new Date(D.$y,Y,R),D);return W?O:O.endOf(f)},_=function(R,Y){return B.w(D.toDate()[R].apply(D.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(Y)),D)},j=this.$W,I=this.$M,L=this.$D,x="set"+(this.$u?"UTC":"");switch(H){case k:return W?Z(1,0):Z(31,11);case d:return W?Z(1,I):Z(0,I+1);case p:var F=this.$locale().weekStart||0,M=(j<F?j+7:j)-F;return Z(W?L-M:L+(6-M),I);case f:case v:return _(x+"Hours",0);case c:return _(x+"Minutes",1);case i:return _(x+"Seconds",2);case s:return _(x+"Milliseconds",3);default:return this.clone()}},$.endOf=function(E){return this.startOf(E,!1)},$.$set=function(E,K){var D,W=B.p(E),H="set"+(this.$u?"UTC":""),Z=(D={},D[f]=H+"Date",D[v]=H+"Date",D[d]=H+"Month",D[k]=H+"FullYear",D[c]=H+"Hours",D[i]=H+"Minutes",D[s]=H+"Seconds",D[r]=H+"Milliseconds",D)[W],_=W===f?this.$D+(K-this.$W):K;if(W===d||W===k){var j=this.clone().set(v,1);j.$d[Z](_),j.init(),this.$d=j.set(v,Math.min(this.$D,j.daysInMonth())).$d}else Z&&this.$d[Z](_);return this.init(),this},$.set=function(E,K){return this.clone().$set(E,K)},$.get=function(E){return this[B.p(E)]()},$.add=function(E,K){var D,W=this;E=Number(E);var H=B.p(K),Z=function(I){var L=T(W);return B.w(L.date(L.date()+Math.round(I*E)),W)};if(H===d)return this.set(d,this.$M+E);if(H===k)return this.set(k,this.$y+E);if(H===f)return Z(1);if(H===p)return Z(7);var _=(D={},D[i]=o,D[c]=l,D[s]=a,D)[H]||1,j=this.$d.getTime()+E*_;return B.w(j,this)},$.subtract=function(E,K){return this.add(-1*E,K)},$.format=function(E){var K=this,D=this.$locale();if(!this.isValid())return D.invalidDate||b;var W=E||"YYYY-MM-DDTHH:mm:ssZ",H=B.z(this),Z=this.$H,_=this.$m,j=this.$M,I=D.weekdays,L=D.months,x=function(Y,O,U,G){return Y&&(Y[O]||Y(K,W))||U[O].slice(0,G)},F=function(Y){return B.s(Z%12||12,Y,"0")},M=D.meridiem||function(Y,O,U){var G=Y<12?"AM":"PM";return U?G.toLowerCase():G},R={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:B.s(j+1,2,"0"),MMM:x(D.monthsShort,j,L,3),MMMM:x(L,j),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:x(D.weekdaysMin,this.$W,I,2),ddd:x(D.weekdaysShort,this.$W,I,3),dddd:I[this.$W],H:String(Z),HH:B.s(Z,2,"0"),h:F(1),hh:F(2),a:M(Z,_,!0),A:M(Z,_,!1),m:String(_),mm:B.s(_,2,"0"),s:String(this.$s),ss:B.s(this.$s,2,"0"),SSS:B.s(this.$ms,3,"0"),Z:H};return W.replace(u,function(Y,O){return O||R[Y]||H.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(E,K,D){var W,H=B.p(K),Z=T(E),_=(Z.utcOffset()-this.utcOffset())*o,j=this-Z,I=B.m(this,Z);return I=(W={},W[k]=I/12,W[d]=I,W[h]=I/3,W[p]=(j-_)/6048e5,W[f]=(j-_)/864e5,W[c]=j/l,W[i]=j/o,W[s]=j/a,W)[H]||j,D?I:B.a(I)},$.daysInMonth=function(){return this.endOf(d).$D},$.$locale=function(){return S[this.$L]},$.locale=function(E,K){if(!E)return this.$L;var D=this.clone(),W=N(E,K,!0);return W&&(D.$L=W),D},$.clone=function(){return B.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},P}(),q=w.prototype;return T.prototype=q,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",f],["$M",d],["$y",k],["$D",v]].forEach(function(P){q[P[1]]=function($){return this.$g($,P[0],P[1])}}),T.extend=function(P,$){return P.$i||(P($,w,T),P.$i=!0),T},T.locale=N,T.isDayjs=V,T.unix=function(P){return T(1e3*P)},T.en=S[A],T.Ls=S,T.p={},T})})(vs);var bd=vs.exports;const Fe=We(bd);var bs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(b){return(b=+b)+(b>68?1900:2e3)},f=function(b){return function(y){this[b]=+y}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var u=y.match(/([+-]|\d\d)/g),m=60*u[1]+(+u[2]||0);return m===0?0:u[0]==="+"?-m:m}(b)}],d=function(b){var y=i[b];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(b,y){var u,m=i.meridiem;if(m){for(var g=1;g<=24;g+=1)if(b.indexOf(m(g,0,y))>-1){u=g>12;break}}else u=b===(y?"pm":"PM");return u},k={A:[s,function(b){this.afternoon=h(b,!1)}],a:[s,function(b){this.afternoon=h(b,!0)}],S:[/\d/,function(b){this.milliseconds=100*+b}],SS:[l,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[r,f("seconds")],ss:[r,f("seconds")],m:[r,f("minutes")],mm:[r,f("minutes")],H:[r,f("hours")],h:[r,f("hours")],HH:[r,f("hours")],hh:[r,f("hours")],D:[r,f("day")],DD:[l,f("day")],Do:[s,function(b){var y=i.ordinal,u=b.match(/\d+/);if(this.day=u[0],y)for(var m=1;m<=31;m+=1)y(m).replace(/\[|\]/g,"")===b&&(this.day=m)}],M:[r,f("month")],MM:[l,f("month")],MMM:[s,function(b){var y=d("months"),u=(d("monthsShort")||y.map(function(m){return m.slice(0,3)})).indexOf(b)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[s,function(b){var y=d("months").indexOf(b)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,f("year")],YY:[l,function(b){this.year=c(b)}],YYYY:[/\d{4}/,f("year")],Z:p,ZZ:p};function v(b){var y,u;y=b,u=i&&i.formats;for(var m=(b=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(T,B,w){var q=w&&w.toUpperCase();return B||u[w]||a[w]||u[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,$,E){return $||E.slice(1)})})).match(o),g=m.length,C=0;C<g;C+=1){var A=m[C],S=k[A],V=S&&S[0],N=S&&S[1];m[C]=N?{regex:V,parser:N}:A.replace(/^\[|\]$/g,"")}return function(T){for(var B={},w=0,q=0;w<g;w+=1){var P=m[w];if(typeof P=="string")q+=P.length;else{var $=P.regex,E=P.parser,K=T.slice(q),D=$.exec(K)[0];E.call(B,D),T=T.replace(D,"")}}return function(W){var H=W.afternoon;if(H!==void 0){var Z=W.hours;H?Z<12&&(W.hours+=12):Z===12&&(W.hours=0),delete W.afternoon}}(B),B}}return function(b,y,u){u.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(c=b.parseTwoDigitYear);var m=y.prototype,g=m.parse;m.parse=function(C){var A=C.date,S=C.utc,V=C.args;this.$u=S;var N=V[1];if(typeof N=="string"){var T=V[2]===!0,B=V[3]===!0,w=T||B,q=V[2];B&&(q=V[2]),i=this.$locale(),!T&&q&&(i=u.Ls[q]),this.$d=function(K,D,W){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*K);var H=v(D)(K),Z=H.year,_=H.month,j=H.day,I=H.hours,L=H.minutes,x=H.seconds,F=H.milliseconds,M=H.zone,R=new Date,Y=j||(Z||_?1:R.getDate()),O=Z||R.getFullYear(),U=0;Z&&!_||(U=_>0?_-1:R.getMonth());var G=I||0,Q=L||0,J=x||0,z=F||0;return M?new Date(Date.UTC(O,U,Y,G,Q,J,z+60*M.offset*1e3)):W?new Date(Date.UTC(O,U,Y,G,Q,J,z)):new Date(O,U,Y,G,Q,J,z)}catch{return new Date("")}}(A,N,S),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),w&&A!=this.format(N)&&(this.$d=new Date("")),i={}}else if(N instanceof Array)for(var P=N.length,$=1;$<=P;$+=1){V[1]=N[$-1];var E=u.apply(this,V);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}$===P&&(this.$d=new Date(""))}else g.call(this,C)}}})})(bs);var kd=bs.exports;const Sd=We(kd);var ks={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.en.ordinal=function(i){var c=["th","st","nd","rd"],f=i%100;return"["+i+(c[(f-20)%10]||c[f]||c[0])+"]"},r.format=function(i){var c=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var p=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return f.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return f.ordinal(c.week(),"W");case"w":case"ww":return p.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return p.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return p.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(d)}}})})(ks);var Cd=ks.exports;const wd=We(Cd);var Ss={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o,l){var r=o.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,h,k,v,b){var y=d.name?d:d.$locale(),u=s(y[h]),m=s(y[k]),g=u||m.map(function(A){return A.slice(0,v)});if(!b)return g;var C=y.weekStart;return g.map(function(A,S){return g[(S+(C||0))%7]})},c=function(){return l.Ls[l.locale()]},f=function(d,h){return d.formats[h]||function(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,b,y){return b||y.slice(1)})}(d.formats[h.toUpperCase()])},p=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):i(d,"months")},monthsShort:function(h){return h?h.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return f(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},l.localeData=function(){var d=c();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(h){return f(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(d){return i(c(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return i(c(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return i(c(),"weekdaysMin","weekdays",2,d)}}})})(Ss);var Nd=Ss.exports;const Bd=We(Nd);var Cs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){var a="week",o="year";return function(l,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=s(this).startOf(o).add(1,o).date(f),d=s(this).endOf(a);if(p.isBefore(d))return 1}var h=s(this).startOf(o).date(f).startOf(a).subtract(1,"millisecond"),k=this.diff(h,a,!0);return k<0?s(this).startOf("week").week():Math.ceil(k)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Cs);var Ad=Cs.exports;const Vd=We(Ad);var ws={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),s=this.year();return r===1&&l===11?s+1:l===0&&r>=52?s-1:s}}})})(ws);var Td=ws.exports;const $d=We(Td);var Ns={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(Ns);var Ed=Ns.exports;const xd=We(Ed);var Bs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(Bs);var Dd=Bs.exports;const Id=We(Dd);var As={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(As);var qd=As.exports;const Md=We(qd);Fe.extend(Bd);Fe.extend(wd);Fe.extend(Sd);Fe.extend(Vd);Fe.extend($d);Fe.extend(xd);Fe.extend(Id);Fe.extend(Md);const le={format(e,n){return Fe(e).format(n)},parser(e,n){return Fe(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const o=e*(1e3*60*60*24);return a=new Date(a.getTime()+o),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),s=l.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),s=Math.round((l.valueOf()-r.valueOf())/864e5);let i=l.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let s=l.getDay();if(o===0){const c=r-s*864e5,f=r+(6-s)*864e5,p=this.date2Str(new Date(c)),d=this.date2Str(new Date(f));return[p,d]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,f=r+(7-s)*i,p=this.date2Str(new Date(c)),d=this.date2Str(new Date(f));return[p,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=le.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=le.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s}},rr=new Date().getFullYear(),nl={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"},gn=(e,n,a)=>{let o;if(Ue(n)?o=n:typeof n=="string"&&ye(n)>0?o=le.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},Vo=(e,n,a)=>{Ue(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),le.format(new Date(o),a)};let To={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(rr-10,0,1),validator:Ue},maxDate:{type:Date,default:()=>new Date(rr+10,11,31),validator:Ue},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:Pd,scope:Ld}=X("date-picker"),zd=Pd({components:{[bt.name]:bt},props:{...To},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Ld),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},l=t.ref(!1);t.watch(()=>e.visible,u=>{l.value=u});function r(u,m){return new Date(u,m,0).getDate()}const s=(u,m)=>{const g=e[`${u}Date`],C=g.getFullYear();let A=1,S=1,V=0,N=0;u==="max"&&(A=12,S=r(m.getFullYear(),m.getMonth()+1),V=23,N=59);const T=N;return m.getFullYear()===C&&(A=g.getMonth()+1,m.getMonth()+1===A&&(S=g.getDate(),m.getDate()===S&&(V=g.getHours(),m.getHours()===V&&(N=g.getMinutes())))),{[`${u}Year`]:C,[`${u}Month`]:A,[`${u}Date`]:S,[`${u}Hour`]:V,[`${u}Minute`]:N,[`${u}Seconds`]:T}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:u,maxDate:m,maxMonth:g,maxHour:C,maxMinute:A,maxSeconds:S}=s("max",h.value),{minYear:V,minDate:N,minMonth:T,minHour:B,minMinute:w,minSeconds:q}=s("min",h.value);let P=[{type:"year",range:[V,u]},{type:"month",range:[T,g]},{type:"day",range:[N,m]},{type:"hour",range:[B,C]},{type:"minute",range:[w,A]},{type:"seconds",range:[q,S]}];switch(e.type){case"date":P=P.slice(0,3);break;case"datetime":P=P.slice(0,5);break;case"time":P=P.slice(3,6);break;case"year-month":P=P.slice(0,2);break;case"month-day":P=P.slice(1,3);break;case"datehour":P=P.slice(0,4);break;case"hour-minute":P=P.slice(3,5);break}return P}),c=(u,m,g)=>{if(!(m>u))return null;const C=[];for(;u<=m;)e.isShowChinese?C.push({text:u+o[g],value:u}):C.push({text:`${u}`,value:u}),g==="minute"?u+=e.minuteStep:u++;return C},f=t.computed(()=>{let u=[];return i.value.forEach(m=>{let g=c(m.range[0],m.range[1],m.type);g&&u.push(g)}),u}),p=(u,m)=>u==="year"?m.getFullYear():u==="month"?m.getMonth()+1:u==="day"?m.getDate():u==="hour"?m.getHours():u==="minute"?m.getMinutes():u==="seconds"?m.getSeconds():0,d=t.ref(),h=t.ref(null);t.watchEffect(()=>{let u,m=e.modelValue;if(typeof m=="string"?m.length==0?u=new Date:e.valueFormat?u=gn(e,e.modelValue,e.valueFormat):u=gn(e,m,nl[e.type]):Ue(m)?u=m:u=new Date,!!u&&(!h.value||u.getTime()!==h.value.getTime())){h.value=u;let g=[];i.value.forEach(C=>{let A=p(C.type,u);g.push(A)}),d.value=g}});const k=u=>{if(e.type==="date"){let m=u;h.value=new Date(m[0],m[1]-1,Math.min(m[2],r(m[0],m[1])))}else if(e.type==="datetime"){let m=u;h.value=new Date(m[0],m[1]-1,Math.min(m[2],r(m[0],m[1])),m[3],m[4])}else if(e.type==="time"){let m=u,g=h.value??new Date,C=new Date(g.getFullYear(),g.getMonth(),g.getDate(),m[0],m[1],m[2]);h.value=C}else if(e.type==="year-month"){let m=u,g=new Date(m[0],m[1]-1);h.value=g}else if(e.type==="month-day"){let m=u,g=h.value??new Date,C=new Date(g.getFullYear(),m[0]-1,m[1]);h.value=C}else if(e.type==="datehour"){let m=u;h.value=new Date(m[0],m[1]-1,Math.min(m[2],r(m[0],m[1])),m[3])}else if(e.type==="hour-minute"){let m=u,g=h.value??new Date,C=new Date(g.getFullYear(),g.getMonth(),g.getDate(),m[0],m[1]);h.value=C}d.value=u};return{columns:f,dateIndexs:d,show:l,onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:u=>{k(u),l.value=!1;let m=h.value??new Date;if(e.valueFormat){let g=Vo(e,m,e.valueFormat);n("update:modelValue",g)}else n("update:modelValue",m);n("update:visible",!1),n("confirm",u)},onClear:()=>{n("clear")}}}});function Fd(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Rn=ne(zd,[["render",Fd]]),Rd={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Od(e){let n=e.format;if(!n){let a=e.type??"date";n=nl[a]}return n}function Kd(e,n,a,o,l,r,s=!1){return{props:{...me,...ge,...To,...Rd},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const f=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:d}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),k=h(i,["placeholder"]),v=t.ref(!1),y=xe(i,"modelValue",I=>I==null?null:typeof I=="string"?I.length==0?null:i.valueFormat?gn(i,I,i.valueFormat)??I:gn(i,I,nl[i.type])??I:Ue(I)?I:null),u=t.computed(()=>{if(!y.value)return"";const I=Od(i);return Vo(i,y.value,I)}),m="fox-input-item",g=t.computed(()=>({[m]:!0,[`${m}__disabled`]:f.value})),C=Be(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const I={};return C.value&&(I["text-align"]=C.value),I}),S=t.ref(!1),V=()=>{S.value=!0},N=()=>{S.value=!1};c.expose({showPicker:V,hidePicker:N});const T=I=>{S.value=I},B=I=>{if(y.value=I,i.valueFormat){let L=Vo(i,I,i.valueFormat);d("update:modelValue",L,{}),d("change",L,{})}else d("update:modelValue",I,{}),d("change",I,{})},w=I=>{let x=I.target.value;v.value=!0,d("focus",x,I)},q=I=>{setTimeout(()=>{v.value=!1},0);let x=I.target.value;i.maxLength&&x.length>Number(i.maxLength)&&(x=x.slice(0,Number(i.maxLength))),d("blur",x,I)},P=t.computed(()=>({[`${m}__append`]:!0})),$=t.computed(()=>ye(i.unit)>0),E=t.computed(()=>ye(i.unit)>0&&!v.value),K=t.computed(()=>({hidden:!E.value})),D=I=>{y.value="",d("update:modelValue","",I),d("change","",I),d("clear",""),N()},W=t.computed(()=>i.clearable&&!f.value&&!p.value),H=t.computed(()=>{let I=ye(y.value)>0;return i.clearable&&I&&v.value}),Z=I=>{H.value?D(I):V()},_=t.computed(()=>H.value&&W.value?o:l),j=t.computed(()=>({action:!0}));return()=>{const I={class:g.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:V,onFocus:w,onBlur:q};s&&(I.disabled=!0);const L=[],x=t.h("input",I);L.push(x);const F=[],M={class:["action-icon"]},R=t.h(_.value,M),Y={class:j.value,onClick:Z},O=t.h("view",Y,{default:()=>[R]});if(F.push(O),$.value){const ce=t.h("view",{class:K.value},[i.unit]);F.push(ce)}const U={class:P.value},G=t.h("view",U,{default:()=>F});L.push(G);const Q={default:()=>L};Q.label=c.slots.default,Q.prepend=c.slots.prepend,Q.append=c.slots.append,Q.fixedPreTip=c.slots.fixedPreTip,Q.fixedTip=c.slots.fixedTip;const J=ve(i,To);J.valueFormat=null,J.disabled=!1,J.readonly=f.value||p.value,J.visible=S.value,J["onUpdate:visible"]=T,J.modelValue=y.value,J["onUpdate:modelValue"]=B,J.onClear=D;const z={};if(c.slots.top){const ce=c.slots.top();z.top=()=>ce}if(c.slots.bottom){const ce=c.slots.bottom();z.default=()=>ce}const ee=t.h(r,J,z);Q.hide=()=>[ee];const te=ve(i,ge,me);return t.h(a,{...te,prop:`${i.prop}_item`},Q)}}}}const{create:Ud,componentName:Hd,scope:jd}=X("date-item"),ol=Ud(Kd(Hd,jd,Se,oe.CircleClose,oe.Date,Rn,!1)),Wd=39,Yd=64,{create:Xd,scope:Qd}=X("calendar-pane"),Gd=Xd({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:le.getDay(0)},endDate:{type:String,default:le.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=re.useFoxI18n(Qd),r=o(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(l("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),f=t.ref(null),p=t.ref(null),d=t.ref(null),h=t.ref(0),k=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),v=t.computed(()=>a.btn),b=t.computed(()=>a["top-info"]),y=t.computed(()=>a["bottom-info"]),u=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),m=M=>M.split("-"),g=M=>le.isEqual(u.currDate[0],M),C=M=>le.isEqual(u.currDate[1],M),A=M=>u.currDate?.length>0?u.currDate?.some(R=>le.isEqual(R,M)):!1,S=(M,R)=>R.curData[0]+"-"+R.curData[1]+"-"+le.getNumTwoBit(+M.day),V=(M,R)=>{const Y=S(M,R),{type:O}=e;return M.type=="curr"?le.isEqual(u.currDate,Y)||(O=="range"||O=="week")&&(g(Y)||C(Y))||O=="multiple"&&A(Y)?`${u.dayPrefix}--active`:u.propStartDate&&le.compareDate(Y,u.propStartDate)||u.propEndDate&&le.compareDate(u.propEndDate,Y)?`${u.dayPrefix}--disabled`:(O=="range"||O=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&le.compareDate(u.currDate[0],Y)&&le.compareDate(Y,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},N=()=>{const{type:M}=e;if(M=="range"&&u.chooseData.length==2||M!="range"){let R=u.chooseData.slice(0);M=="week"&&(R={weekDate:[B(u.chooseData[0]),B(u.chooseData[1])]}),n("choose",R),e.poppable&&n("update")}},T=(M,R,Y=!1)=>{if(V(M,R)!=`${u.dayPrefix}--disabled`){const{type:O}=e;let[U,G]=R.curData,Q=[...R.curData];if(Q[2]=le.getNumTwoBit(Number(M.day)),Q[3]=`${Q[0]}-${Q[1]}-${Q[2]}`,Q[4]=le.getWhatDay(+Q[0],+Q[1],+Q[2]),O=="multiple")if(u.currDate?.length>0){let J;u.currDate?.forEach((z,ee)=>{z==Q[3]&&(J=ee)}),Y?u.chooseData.push([...Q]):J!==void 0?(u.currDate.splice(J,1),u.chooseData.splice(J,1)):(u.currDate.push(Q[3]),u.chooseData.push([...Q]))}else u.currDate=[Q[3]],u.chooseData=[[...Q]];else if(O=="range"){let J=Object.values(u.currDate).length;J==2||J==0?u.currDate=[Q[3]]:le.compareDate(u.currDate[0],Q[3])?Array.isArray(u.currDate)&&u.currDate.push(Q[3]):Array.isArray(u.currDate)&&u.currDate.unshift(Q[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...Q]]:le.compareDate(u.chooseData[0][3],Q[3])?u.chooseData=[...u.chooseData,[...Q]]:u.chooseData=[[...Q],...u.chooseData]}else if(O=="week"){let J=le.getWeekDate(U,G,M.day,e.firstDayOfWeek);u.propStartDate&&le.compareDate(J[0],u.propStartDate)&&J.splice(0,1,u.propStartDate),u.propEndDate&&le.compareDate(u.propEndDate,J[1])&&J.splice(1,1,u.propEndDate),u.currDate=J,u.chooseData=[le.formatResultDate(J[0]),le.formatResultDate(J[1])]}else u.currDate=Q[3],u.chooseData=[...Q];if(!Y){let J=u.chooseData;O=="week"&&(J={weekDate:[B(u.chooseData[0]),B(u.chooseData[1])]}),n("select",J),(e.isAutoBackFill||!e.poppable)&&N()}}},B=M=>{let[R,Y,O]=M;return{date:M,monthWeekNum:le.getMonthWeek(R,Y,O,e.firstDayOfWeek),yearWeekNum:le.getYearWeek(R,Y,O,e.firstDayOfWeek)}},w=M=>{const R=M=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let Y=parseInt(R.curData[0]),O=parseInt(R.curData[1].toString().replace(/^0/,""));switch(M){case"prev":O==1&&(Y-=1),O=O==1?12:--O;break;case"next":O==12&&(Y+=1),O=O==12?1:++O;break}return[Y+"",le.getNumTwoBit(O),le.getMonthDays(String(Y),String(O))+""]},q=(M,R,Y)=>{let{year:O,month:U}=Y;return R=="prev"&&M>=7&&(M-=7),Array.from(Array(M),(G,Q)=>({day:String(Q+1),type:R,year:O,month:U}))},P=(M,R,Y,O)=>{M=M-e.firstDayOfWeek;let{year:U,month:G}=Y;return R=="prev"&&M>=7&&(M-=7),Array.from(Array(O),(J,z)=>({day:String(z+1),type:R,year:U,month:G})).slice(O-M)},$=(M,R)=>{const Y=le.getMonthPreDay(+M[0],+M[1]);let O=Number(M[1])-1,U=Number(M[0]);O<=0&&(O=12,U+=1);const G=le.getMonthDays(String(M[0]),String(M[1])),Q=le.getMonthDays(U+"",O+""),J={year:M[0],month:M[1]},z={curData:M,title:l("monthTitle",{year:J.year,month:J.month}),monthData:[...P(Y,"prev",{month:String(O),year:String(U)},Q),...q(G,"curr",J)],cssHeight:0,cssScrollHeight:0},ee=z.monthData.length>35?6:5;z.cssHeight=Wd+Yd*ee;let te=0;u.monthsData.length>0&&(te=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),z.cssScrollHeight=te,R=="next"?(!u.endData||!le.compareDate(`${u.endData[0]}-${u.endData[1]}-${le.getMonthDays(u.endData[0],u.endData[1])}`,`${M[0]}-${M[1]}-${M[2]}`))&&u.monthsData.push(z):!u.startData||!le.compareDate(`${M[0]}-${M[1]}-${M[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(z):u.unLoadPrev=!0},E=()=>{let M=e.startDate?e.startDate:le.getDay(0),R=e.endDate?e.endDate:le.getDay(365);u.propStartDate=M,u.propEndDate=R,u.startData=m(M),u.endData=m(R),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const Y={year:Number(u.startData[0]),month:Number(u.startData[1])},O={year:Number(u.endData[0]),month:Number(u.endData[1])};let U=O.month-Y.month;O.year-Y.year>0&&(U=U+12*(O.year-Y.year)),U<=0&&(U=1),$(u.startData,"next");let G=1;do $(w("next"),"next");while(G++<U);if(u.monthsNum=U,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(M&&le.compareDate(u.currDate[0],M)&&u.currDate.splice(0,1,M),R&&le.compareDate(R,u.currDate[1])&&u.currDate.splice(1,1,R),u.defaultData=[...m(u.currDate[0]),...m(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let Q=[],J={};u.currDate.forEach(z=>{M&&!le.compareDate(z,M)&&R&&!le.compareDate(R,z)&&(Object.hasOwnProperty.call(J,z)||(Q.push(z),J[z]=z))}),u.currDate=[...Q],u.defaultData=[...m(Q[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[Q,J,z]=m(u.currDate[0]),ee=le.getWeekDate(Q,J,z,e.firstDayOfWeek);u.currDate=ee,M&&le.compareDate(u.currDate[0],M)&&u.currDate.splice(0,1,M),R&&le.compareDate(R,u.currDate[1])&&u.currDate.splice(1,1,R),u.defaultData=[...m(u.currDate[0]),...m(u.currDate[1])]}}else u.currDate&&(M&&le.compareDate(u.currDate,M)?u.currDate=M:R&&!le.compareDate(u.currDate,R)&&(u.currDate=R),u.defaultData=[...m(u.currDate)])};$e({scrollToDate:M=>{le.compareDate(M,u.propStartDate)?M=u.propStartDate:le.compareDate(M,u.propEndDate)||(M=u.propEndDate);let R=m(M);u.monthsData.forEach((Y,O)=>{if(Y.title==l("monthTitle",{year:R[0],month:R[1]})&&c.value){let U=u.monthsData[O].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let G=0,Q=setInterval(()=>{if(G++,c.value){let J=U/10;c.value.scrollTop=c.value.scrollTop+J}G>=10&&(clearInterval(Q),c.value&&(c.value.scrollTop=u.monthsData[O].cssScrollHeight))},40)}else c.value.scrollTop=u.monthsData[O].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let M=0,R=0;u.defaultData.length>0&&u.monthsData.forEach((U,G)=>{U.title==l("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(M=G),(e.type=="range"||e.type=="week")&&U.title==l("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(R=G)}),H(u.monthsNum,M),u.currentIndex=M,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(T({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),T({day:u.defaultData[5],type:"curr"},u.monthsData[R],!0)):e.type=="week"?T({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(U=>{let G=m(U),Q=u.currentIndex;u.monthsData.forEach((J,z)=>{J.title==l("monthTitle",{year:G[0],month:G[1]})&&(Q=z)}),T({day:G[2],type:"curr"},u.monthsData[Q],!0)}):T({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let Y=u.monthsData[u.monthsData.length-1],O=Y.cssHeight+Y.cssScrollHeight;Xe(()=>{c?.value&&f?.value&&d?.value&&(h.value=c.value.clientHeight,f.value.style.height=`${O}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(O/(u.monthsNum+1))}});const H=(M,R)=>{M>=3?R>0&&R<M?u.defaultRange=[R-1,R+3]:R==0?u.defaultRange=[R,R+4]:R==M&&(u.defaultRange=[R-2,R+2]):u.defaultRange=[0,M+2];let Y=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=Y},Z=(M,R)=>(e.type=="range"||e.type=="week")&&M.type=="curr"&&V(M,R)=="fox-calendar__day--active",_=(M,R)=>Z(M,R)&&g(S(M,R)),j=(M,R)=>u.currDate.length>=2&&C(S(M,R))?Z(M,R):!1,I=()=>{if(u.currDate.length>=2)return le.isEqual(u.currDate[0],u.currDate[1])},L=M=>{const R=`${M.year}-${M.month}-${Number(M.day)<10?"0"+M.day:M.day}`;return le.isEqual(R,le.date2Str(new Date))},x=M=>{if(u.monthsData.length<=1)return;const R=M.target.scrollTop;let Y=Math.floor(R/u.avgHeight);if(Y==0)R>=u.monthsData[Y+1].cssScrollHeight&&(Y+=1);else if(Y>0&&Y<u.monthsNum-1)R>=u.monthsData[Y+1].cssScrollHeight&&(Y+=1),R<u.monthsData[Y].cssScrollHeight&&(Y-=1);else{const O=Math.round(R+h.value);O<u.monthsData[Y].cssScrollHeight+u.monthsData[Y].cssHeight&&R>u.monthsData[Y-1].cssScrollHeight&&(Y-=1),Y+1<=u.monthsNum&&O>=u.monthsData[Y+1].cssScrollHeight+u.monthsData[Y+1].cssHeight&&(Y+=1),Y>=1&&R<u.monthsData[Y-1].cssScrollHeight&&(Y-=1)}u.currentIndex!==Y&&(u.currentIndex=Y,H(u.monthsNum,Y)),u.yearMonthTitle=u.monthsData[Y].title},F=()=>{u.chooseData.splice(0),u.monthsData.splice(0),E()};return E(),t.watch(()=>e.defaultValue,M=>{M&&e.poppable&&F()}),{weeks:i,compConthsData:k,showTopBtn:v,topInfo:b,bottomInfo:y,rangeTip:I,mothsViewScroll:x,getClass:V,isStartTip:_,isEndTip:j,chooseDay:T,isCurrDay:L,confirm:N,months:c,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:f,weeksPanel:p,viewArea:d}}}),Zd={class:"fox-calendar__header"},Jd={key:0,class:"fox-calendar__header-title"},_d={key:1,class:"fox-calendar__header-slot"},ef={key:2,class:"fox-calendar__header-subtitle"},tf={class:"fox-calendar__weekdays",ref:"weeksPanel"},nf={class:"fox-calendar__panel",ref:"monthsPanel"},of={class:"fox-calendar__month-title"},lf={class:"fox-calendar__days"},af=["onClick"],rf={class:"fox-calendar__day-value"},sf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},cf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},uf={key:2,class:"fox-calendar__day-tips--curr"},df={key:4,class:"fox-calendar__day-tip"},ff={key:0,class:"fox-calendar__footer"};function mf(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Zd,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Jd,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",_d,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",ef,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",tf,[(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",nf,[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",of,t.toDisplayString(s.title),1),t.createElementVNode("view",lf,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:p=>e.chooseDay(c,s)},[t.createElementVNode("view",rf,[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",sf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",cf,[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",uf,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",df,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,af))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",ff,[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 sr=ne(Gd,[["render",mf]]),pf=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),tn={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:hf}=X("calendar"),gf=hf({components:{[sr.name]:sr,[de.name]:de},props:{...tn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const o=t.computed(()=>a.btn),l=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),s=t.computed(()=>a["bottom-info"]),i=t.ref(null),c=b=>{i.value?.scrollToDate(b)},f=()=>{i.value?.initPosition()};t.watch(()=>e.visible,b=>{b&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),$e({scrollToDate:c,initPosition:f});const p=()=>{n("update:visible",!1)},d=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{d()},update:p,close:d,select:b=>{n("select",b)},choose:b=>{d(),n("choose",b)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function yf(e,n,a,o,l,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const On=ne(gf,[["render",yf]]),ir={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}},ro=(e,n)=>{let a;return Ue(e)?a=e:typeof e=="string"&&ye(e)>0?a=le.parser(e,n):a=new Date,a},ct=(e,n,a)=>(Ue(n)||(n=new Date),le.format(n,a)),ut=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=le.date2Str(e),r=le.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function vf(e,n,a,o,{CloseIcon:l,MarkIcon:r},s=!1){return{props:{...me,...ge,...tn,...ir},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const f=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:d}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),k=h(i,["placeholder"]),v=t.ref(!1),b=t.computed(()=>i.type==="range"),y=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),u=()=>{y.startDate!==null&&(y.startDate=null,y.endDate=null,y.startArray=[],y.endArray=[])},m=(x,F="one",M="YYYY-MM-DD")=>{if(pf(x)){u();return}if(b.value&&Array.isArray(x)&&x.length==2){let R,Y;typeof x[0]=="string"?(R=ro(x[0],M),Y=ro(x[1],M)):(R=x[0],Y=x[1]);let O=ut(R),U=ut(Y);(y.startDate===null||y.startDate.getTime()!==R.getTime()||y.endDate?.getTime()!==Y.getTime())&&(y.startDate=R,y.startArray=O,y.endDate=Y,y.endArray=U)}else{let R;typeof x=="string"?R=ro(x,M):R=x;let Y=ut(R);(y.startDate===null||y.startDate.getTime()!==R.getTime())&&(y.startDate=R,y.startArray=Y)}};m(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,x=>{m(x,i.type,i.valueFormat)});const g=t.computed(()=>{if(y.startDate===null)return"";if(b.value){let x=ct(i,y.startDate,i.format),F=ct(i,y.endDate,i.format);return`${x} ${i.rangeSeparator} ${F}`}else{let x=ct(i,y.startDate,i.format);return i.showWeek&&(x=`${x} ${y.startArray[4]}`),x}}),C=t.computed(()=>{if(y.startDate===null)return null;if(b.value){let x=le.date2Str(y.startDate),F=le.date2Str(y.endDate??new Date);return[x,F]}else return le.date2Str(y.startDate)}),A="fox-input-item",S=t.computed(()=>({[A]:!0,[`${A}__disabled`]:f.value})),V=Be(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const x={};return V.value&&(x["text-align"]=V.value),x}),T=t.ref(!1),B=()=>{p.value||f.value||(T.value=!0)},w=x=>{T.value=x},q=x=>{if(x){if(b.value&&Array.isArray(x)){let F=x[0],M=fe(F[0]),R=fe(F[1]),Y=fe(F[2]),O=new Date(M,R-1,Y),U=x[1];M=fe(U[0]),R=fe(U[1]),Y=fe(U[2]);let G=new Date(M,R-1,Y);if(y.startDate=O,y.startArray=ut(O),y.endDate=G,y.endArray=ut(G),i.valueFormat){let Q=ct(i,O,i.valueFormat),J=ct(i,G,i.valueFormat);d("update:modelValue",[Q,J],{})}else d("update:modelValue",[O,G],{})}else{let F=x,M=fe(F[0]),R=fe(F[1]),Y=fe(F[2]),O=new Date(M,R-1,Y);if(y.startDate=O,y.startArray=ut(O),i.valueFormat){let U=ct(i,O,i.valueFormat);d("update:modelValue",U,{})}else d("update:modelValue",O,{})}d("change",x,{})}},P=x=>{let M=x.target.value;v.value=!0,d("focus",M,x)},$=x=>{setTimeout(()=>{v.value=!1},0);let M=x.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),d("blur",M,x)},E=t.computed(()=>({[`${A}__append`]:!0})),K=t.computed(()=>ye(i.unit)>0),D=t.computed(()=>ye(i.unit)>0&&!v.value),W=t.computed(()=>({hidden:!D.value})),H=x=>{u(),d("update:modelValue",null,x),d("change","",x),d("clear","")},Z=t.computed(()=>i.clearable&&!f.value&&!p.value),_=t.computed(()=>{let x=ye(g.value)>0;return i.clearable&&x&&v.value}),j=x=>{_.value?H(x):B()},I=t.computed(()=>_.value&&Z.value?l:r),L=t.computed(()=>({action:!0}));return()=>{const x={class:S.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:B,onFocus:P,onBlur:$};s&&(x.disabled=!0);const F=[],M=t.h("input",x);F.push(M);const R=[],Y={class:["action-icon"]},O=t.h(I.value,Y),U={class:L.value,onClick:j},G=t.h("view",U,{default:()=>[O]});if(R.push(G),K.value){const De=t.h("view",{class:W.value},[i.unit]);R.push(De)}const Q={class:E.value},J=t.h("view",Q,{default:()=>R});F.push(J);const z={default:()=>F};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 ee=ve(i,tn);ee.visible=T.value,ee["onUpdate:visible"]=w,ee["default-value"]=C.value,ee.onChoose=q;const te={};if(c.slots.btn){const De=c.slots.btn();te.btn=()=>De}c.slots.day&&(te.day=c.slots.day),c.slots.topInfo&&(te.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(te.bottomInfo=c.slots.bottomInfo);const ae=t.h(a,ee,te);z.hide=()=>[ae];const ce=Nt(i,tn,ir);return t.h(o,{...ce,prop:`${i.prop}_item`},z)}}}}const{componentName:bf,create:kf,scope:Sf}=X("calendar-item"),ll=kf(vf(bf,Sf,On,Se,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),Cf={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 wf(e,{CheckNormal:n,Checked:a}){return{props:{...Cf},setup(o,{emit:l,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===o.label),c=t.computed(()=>o.disabled?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),f=t.computed(()=>s.position),p=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const b=ie(o.iconSize),y=o.checkedIcon??a;return t.h(y,{width:b,height:b,class:c.value})}}else{if(r.icon)return r.icon();{const b=ie(o.iconSize),y=o.icon??n;return t.h(y,{width:b,height:b,class:c.value})}}},d=()=>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?.()),k=()=>{i.value||o.disabled||o.readonly||s.updateValue(o.label)},v=f.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${v?`${e}--reverse`:""}`,onClick:k},[o.shape=="button"?h():v?[d(),p()]:[p(),d()]])}}}const{componentName:Nf,create:Bf}=X("radio"),Kn=Bf(wf(Nf,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),{componentName:cr,create:Af}=X("radio-group"),Un=Af({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{emit:n,slots:a}){const o=l=>n("update:modelValue",l);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:o}),t.watch(()=>e.modelValue,l=>n("change",l)),()=>{const l={};return e.textAlign&&(l["text-align"]=e.textAlign),t.h("view",{class:`${cr} ${cr}--${e.direction}`,style:l},a.default?.())}}});function ur(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(nn(e,r)===a)return l}else if(o==="item"){if(qe(a,r))return l}else if(Mt(e,r)===a)return l}return-1}function nn(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 Vf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Tf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let $f=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Ef(){const e=t.getCurrentInstance();return new $f(e.proxy)}function xf(e){return{text:e,value:e}}const dr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Df={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},If={source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}};function qf(e,n,a,o,l){return{props:{...me,...ge,...dr,...Df,...If},emits:["change","update:modelValue"],setup(r,s){const i=Te(t.computed(()=>r.readonly)),c=we(t.computed(()=>r.disabled)),f=Be(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),d=Ef(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,m])=>{if(u){const g=await d.load("radio",u,m);if(g.length>0)if(typeof g[0]=="string"){const S=g.map(V=>xf(V));h.value=S}else h.value=g}},{immediate:!0});let k=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([u,m])=>{k.value=ur(r,m,u,r.valueType)},{deep:!0});const v=t.computed(()=>{if(!r.source)return r.modelValue;if(k.value===-1)return null;const u=h.value[k.value];return Mt(r,u)}),b=u=>{let m=null,g=null;if(h.value.length>0){let C=ur(r,h.value,u,"value");k.value=C,C>=0&&(g=h.value[C],r.valueType==="text"?m=nn(r,g):r.valueType==="item"?m=g:m=Mt(r,g))}else m=u;p("update:modelValue",m),p("change",m,g)},y=()=>{let u=null,m=null;if(h.value.length>0&&k.value!==-1){let g=h.value[k.value];r.valueType==="text"?u=nn(r,g):r.valueType==="item"?u=g:u=Mt(r,g)}p("update:modelValue",u),p("change",u,m)};if($e({clear(){k.value!==-1&&(k.value=-1,y())}}),r.source){const u=()=>{const m=[],g=ve(r,dr);return h.value.forEach((C,A)=>{const S=Mt(r,C),V=Vf(r,C);let N={...g,label:S,disabled:V};const T=Tf(r,C,A);N={...N,...T},c.value&&(N.disabled=!0),i.value&&(N.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 q=s.slots.text(C);B.default=()=>[q]}else{const q=nn(r,C);B.default=()=>q}let w=t.h(l,N,B);m.push(w)}),m};return()=>{const m=u(),g={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:f.value,modelValue:v,"onUpdate:modelValue":b},C=t.h(o,g,{default:()=>m}),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 S=ve(r,ge,me);return t.h(a,{...S,prop:`${r.prop}_item`},A)}}else return()=>{const u=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:f.value,modelValue:v,"update:modelValue":b},{default:()=>u})}}}}const{componentName:Mf,create:Pf,scope:Lf}=X("radio-item"),al=Pf(qf(Mf,Lf,Se,Un,Kn)),zf=(e,{CheckNormal:n,Checked:a,Indeterminate:o})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(l,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,g=>{c.partialSelect=g});const f=t.computed(()=>!!i),p=t.computed(()=>f.value?i.value.value.includes(l.label):!!l.modelValue),d=t.computed(()=>f.value?i.position:l.textPosition),h=t.computed(()=>l.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":p.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let k="";const v=(g,C)=>{k="click",r("update:modelValue",g),r("change",g,C)};t.watch(()=>l.modelValue,g=>{k=="click"?k="":r("change",g)});const b=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const g=ie(l.iconSize),C=l.indeterminateIcon??o;return t.h(C,{width:g,height:g,class:h.value})}}else if(p.value){if(s.checkedIcon)return s.checkedIcon();{const g=ie(l.iconSize),C=l.checkedIcon??a;return t.h(C,{width:g,height:g,class:h.value})}}else{if(s.icon)return s.icon();{const g=ie(l.iconSize),C=l.icon??n;return t.h(C,{width:g,height:g,class:h.value})}}},y=()=>t.h("view",{class:`${e}__label ${l.disabled?`${e}__label--disabled`:""}`},s.default?.()),u=()=>t.h("view",{class:`${e}__button ${p.value&&`${e}__button--active`} ${l.disabled?`${e}__button--disabled`:""}`},s.default?.()),m=g=>{if(!(l.disabled||l.readonly)){if(p.value&&c.partialSelect){c.partialSelect=!1,v(p.value,s.default?.()[0].children);return}if(v(!p.value,s.default?.()[0].children),f.value){const C=i.value.value,A=i.max.value,{label:S}=l,V=C.indexOf(S);V>-1?C.splice(V,1):V<=-1&&(C.length<A||!A)&&C.push(S),i.updateValue(C)}}};return t.onMounted(()=>{f.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{f.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${l.shape} ${d.value==="left"?`${e}--reverse`:""}`,onClick:m},[l.shape=="button"?u():[b(),y()]])}}),{componentName:Ff,create:Rf}=X("checkbox"),Hn=Rf(zf(Ff,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),{create:Of,componentName:fr}=X("checkbox-group"),jn=Of({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n,emit:a}){const o=t.reactive({children:[]}),l=f=>{f.proxy&&o.children.push(f.proxy)},r=f=>{f.proxy&&(o.children=o.children.filter(p=>p!==f.proxy))},s=f=>{a("update:modelValue",f),a("change",f)},i=f=>{const p=[];f&&o.children.forEach(d=>{d?.disabled||p.push(d?.label)}),a("update:modelValue",p)},c=()=>{const f=o.children.filter(p=>p?.disabled?!1:!e.modelValue.includes(p.label)).map(p=>p.label);a("update:modelValue",f)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:l,unlink:r}),t.watch(()=>e.modelValue,f=>{a("change",f)}),$e({toggleAll:i,toggleReverse:c}),()=>{const f={};return e.textAlign&&(f["text-align"]=e.textAlign),t.h("view",{class:`${fr} ${fr}--${e.direction}`,style:f},n.default?.())}}});function mr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if($o(e,r)===a)return l}else if(o==="item"){if(qe(a,r))return l}else if(on(e,r)===a)return l}return-1}function $o(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function on(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Kf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Uf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Hf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function jf(){const e=t.getCurrentInstance();return new Hf(e.proxy)}function Wf(e){return{text:e,value:e}}const Yf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},pr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},Xf={source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}};function Qf(e,n,a,o,l){return{props:{...me,...ge,...Yf,...pr,...Xf},emits:["change","update:modelValue"],setup(r,s){const i=we(t.computed(()=>r.disabled)),c=we(t.computed(()=>r.readonly)),f=Be(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),d=jf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,m])=>{if(u){const g=await d.load("checkbox",u,m);if(g.length>0)if(typeof g[0]=="string"){const S=g.map(V=>Wf(V));h.value=S}else h.value=g}},{immediate:!0});const k=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([u,m])=>{const g=[];Array.isArray(u)&&u.forEach(C=>{let A=mr(r,m,C,r.valueType);A!==-1&&g.push(A)}),!qe(g,k.value)&&(k.value=g)},{deep:!0});const v=t.computed(()=>{if(!r.source)return r.modelValue;let u=[];return k.value.forEach(m=>{let g=h.value[m];u.push(on(r,g))}),u}),b=u=>{let m=[],g=[];if(h.value.length>0){const C=[];Array.isArray(u)&&u.forEach(A=>{let S=mr(r,h.value,A,"value");S!==-1&&C.push(S);const V=h.value[S];g.push(V),r.valueType==="text"?m.push($o(r,V)):r.valueType==="item"?m.push(V):m.push(on(r,V))}),k.value=C}else m=u;p("update:modelValue",m),p("change",m,g)},y=t.ref();if($e({toggleAll:u=>{y.value.toggleAll(u)},toggleReverse:()=>{y.value.toggleReverse()}}),r.source){const u=()=>{const m=[],g=ve(r,pr);return h.value.forEach((C,A)=>{const S=on(r,C),V=Kf(r,C);let N={...g,label:S,disabled:V};const T=Uf(r,C,A);N={...N,...T},i.value&&(N.disabled=!0),c.value&&(N.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 q=s.slots.text(C);B.default=()=>[q]}else{const q=$o(r,C);B.default=()=>q}let w=t.h(l,N,B);m.push(w)}),m};return()=>{const m=u(),g={class:`${e}`,ref:y,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:v.value,"onUpdate:modelValue":b},C=t.h(o,g,{default:()=>m}),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 S=ve(r,ge,me);return t.h(a,{...S,prop:`${r.prop}_item`},A)}}else return()=>{const u=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:y,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:f.value,modelValue:v,"onUpdate:modelValue":b},{default:()=>u})}}}}const{componentName:Gf,create:Zf,scope:Jf}=X("checkbox-item"),rl=Zf(Qf(Gf,Jf,Se,jn,Hn)),Eo={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:_f,create:em}=X("switch"),tm=em({components:{Loading1:oe.Loading1},props:{...Eo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=_f;return{[i]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-disable`]:e.disable,[`${i}-base`]:!0}}),l=t.computed(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disable||e.loading)return;r="click";const c=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":n("change",i)}),{classes:o,style:l,isActive:a,onClick:s}}}),nm={class:"fox-switch-button"};function om(e,n,a,o,l,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",nm,[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 Wn=ne(tm,[["render",om]]);function lm(e,n,a,o){return{props:{...me,...ge,...Eo},emits:["change","update:modelValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=e,p=xe(l,"modelValue"),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const k={...ve(l,Eo),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d},v=[],b=t.h(o,k);v.push(b);const y={default:()=>v};y.label=r.slots.default,y.fixedPreTip=r.slots.fixedPreTip,y.fixedTip=r.slots.fixedTip;const u=ve(l,ge,me);return u["content-class"]=f,t.h(a,{...u,prop:`${l.prop}_item`},y)}}}}const{componentName:am,create:rm,scope:sm}=X("switch-item"),sl=rm(lm(am,sm,Se,Wn));function im(e,n,a,o){return{props:{...me,...ge,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const{emitEvent:s}=Ne({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"]},l.prop??r.attrs.name),{toLocaleRefs:i}=re.useFoxI18n(n),c=i(l,["placeholder"]),f=we(t.computed(()=>l.disabled)),p=Te(t.computed(()=>l.readonly)),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,q=>{d.value=q,s("change",q)});const h=t.computed(()=>({[`${e}`]:!0})),k=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:f.value,[`${e}__placeholder`]:!f.value&&ue(d.value)})),v=Be(t.computed(()=>l.textAlign),"textAlign"),b=t.computed(()=>{const q={};return v.value&&(q["text-align"]=v.value),q}),y=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),u=t.computed(()=>ue(d.value)?c.placeholder.value:d.value),m=t.computed(()=>!ue(l.desc)||r.slots.sub),g=t.computed(()=>({[`${e}__sub`]:!0})),C=t.computed(()=>{const q={};return v.value&&(q["text-align"]=v.value),q}),A=()=>{s("focus",d.value)},S=()=>{s("blur",d.value)},V=t.computed(()=>({[`${e}__append`]:!0})),N=t.computed(()=>ye(l.unit)>0),T=q=>{f.value==!0||p.value==!0||s("click")},B=t.computed(()=>l.icon??a),w=t.computed(()=>({action:!0}));return()=>{const q=[];if(typeof r.slots.content=="function"){const I=r.slots.content();q.push(I)}else{const I=[];if(y.value){const F={tabIndex:0,class:k.value,style:b.value,onFocus:A,onBlur:S};let M=null;r.slots.main?M=t.h("view",F,[r.slots.main(u.value)]):M=t.h("view",F,[u.value]),I.push(M)}if(m.value){const F={tabIndex:0,class:g.value,style:C.value,onFocus:A,onBlur:S};let M=null;r.slots.sub?M=t.h("view",F,[r.slots.sub(l.desc)]):M=t.h("view",F,[l.desc]),I.push(M)}const L={class:h.value,onClick:T},x=t.h("view",L,I);q.push(x)}const P=[],$=ie(l.iconSize);let E=r.slots.icon;if(!E){const I={width:$,height:$,class:["action-icon"]};E=t.h(B.value,I)}const K={class:w.value,onClick:T},D=t.h("view",K,{default:()=>[E]});if(P.push(D),N.value){const I=t.h("view",{},[l.unit]);P.push(I)}const W={class:V.value},H=t.h("view",W,{default:()=>P});q.push(H);const Z={default:()=>q};Z.label=r.slots.default,Z.prepend=r.slots.prepend,Z.append=r.slots.append,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const _=ve(l,ge,me);return t.h(o,{..._,prop:`${l.prop}_item`},Z)}}}}const{componentName:cm,create:um,scope:dm}=X("link-item"),il=um(im(cm,dm,oe.ArrowRight,Se)),xo={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:fm,componentName:mm}=X("rate"),pm=fm({props:{...xo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[mm]:!0})),r=k=>{n("update:modelValue",k),n("change",k)},s=(k,v)=>{if(e.disabled||e.readonly)return;let b=0;v===1&&e.modelValue===v||(b=v,e.allowHalf&&k==2&&(b-=.5)),r(b)},i=(k,v,b)=>{let y=0;for(let u=v.value.length-1;u>=0;u--){const m=v.value[u];if(k>m.offsetLeft){b?y=u+(k>m.offsetLeft+m.clientWidth/2?1:.5):y=u+1;break}}return y},c=_e(),f={onTouchStart(k){!e.touchable||e.readonly||c.start(k)},onTouchMove(k){e.touchable&&(c.move(k),c.isHorizontal()&&o.value&&(k.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),d=t.computed(()=>e.customIcon??oe.StarFillN);return{classes:l,...f,onClick:s,toPxDesc:he,renderIcon:(k,v)=>t.h(k,v),rateRefs:o,refRandomId:p,slots:a,customIcon:d}}}),hm=["id"],gm={class:"fox-rate-item__icon--full"},ym={key:0,class:"fox-rate-item__icon--half"},vm={key:1,class:"fox-rate-item__icon--half"};function bm(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:t.normalizeStyle(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",gm,[(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",ym,[(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",vm,[(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,hm))),128))],34)}const kt=ne(pm,[["render",bm]]);function km(e,n,a,o){return{props:{...me,...ge,...xo},emits:["change","update:modelValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=e,p=xe(l,"modelValue"),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const k={...ve(l,xo),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d},v=[],b=t.h(o,k);v.push(b);const y={default:()=>v};if(r.slots.default){const g=r.slots.default();y.label=()=>g}const u=ve(l,ge,me);return u["content-class"]=f,t.h(a,u,y)}}}}const{componentName:Sm,create:Cm,scope:wm}=X("rate-item"),cl=Cm(km(Sm,wm,Se,kt)),Nm=/scroll|auto|overlay/i,Vs=window;function Bm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Do(e,n=Vs){let a=e;for(;a&&a!==n&&Bm(a);){const{overflowY:o}=window.getComputedStyle(a);if(Nm.test(o))return a;a=a.parentNode}return n}function Ts(e,n=Vs){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=Do(e.value,n))}),a}const $s=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Am={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Vm(e,n,a){return{props:{...Am},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["pullText","loadText","loadMoreText"]),c=t.ref(),f=Ts(c),p=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),h=m=>m?m.offsetTop+h(m.offsetParent):0,k=()=>{let m=0,g=0,C="down";if(f.value==window){const A=$s();c.value&&(m=h(c.value)+c.value.offsetHeight-A-window.innerHeight),g=A}else{const{scrollHeight:A,clientHeight:S,scrollTop:V}=f.value;m=A-S-V,g=V}return p.beforeScrollTop>g?C="up":C="down",p.beforeScrollTop=g,l("scroll-change",g),m<=o.threshold&&C=="down"},v=()=>{Xe(()=>{if(!k()||!o.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},b=()=>{f.value&&f.value.addEventListener("scroll",v,o.useCapture)},y=()=>{f.value&&f.value.removeEventListener("scroll",v,o.useCapture)};t.onMounted(()=>{b(),o.immediate&&v()}),t.onUnmounted(()=>{y()});const u=t.ref(!1);return t.onActivated(()=>{u.value&&(u.value=!1,b())}),t.onDeactivated(()=>{u.value=!0,y()}),t.watch(()=>o.modelValue,m=>{m||(p.isInfiniting=!1)}),()=>{const m={class:"fox-infinite__container"},g=t.h("view",m,[r?.default?.()]),C=[];if(p.isInfiniting){let N=r?.loading?.()??null;if(!N){let w=r?.loadingIcon?.()??null;if(!w){const $={class:["fox-infinite__bottom-box__img"]};w=t.h(a,$)}const q={class:"fox-infinite__bottom-box__text"},P=t.h("view",q,[i.loadText.value]);N=[w,P]}const T={class:"fox-infinite__bottom-box"},B=t.h("view",T,N);C.push(B)}else if(!o.hasMore){let N=r?.finished?.()??null;if(!N){const T={class:"fox-infinite__bottom-tips"};N=t.h("view",T,[i.loadMoreText.value]),C.push(N)}}const A={class:"fox-infinite__bottom"},S=t.h("view",A,C),V={class:d.value,ref:c};return t.h("view",V,[g,S])}}}}const{componentName:Tm,create:$m,scope:Em}=X("infinite-loading"),Yn=$m(Vm(Tm,Em,oe.Loading)),{componentName:xm,create:Dm}=X("button"),Im=Dm({components:{Loading:oe.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:o,size:l,shape:r,disabled:s,loading:i,color:c,plain:f,block:p}=t.toRefs(e),d=v=>{!i.value&&!s.value&&n("click",v)},h=t.computed(()=>{const v=xm;return{[v]:!0,[`${v}--${o.value}`]:o.value,[`${v}--${l.value}`]:l.value,[`${v}--${r.value}`]:r.value,[`${v}--plain`]:f.value,[`${v}--block`]:p.value,[`${v}--disabled`]:s.value,[`${v}--loading`]:i.value}}),k=t.computed(()=>{const v={};return c?.value&&(f.value?(v.color=c.value,v.background="#fff",c.value?.includes("gradient")||(v.borderColor=c.value)):(v.color="#fff",v.background=c.value)),v});return{handleClick:d,classes:h,getStyle:k}}}),qm={class:"fox-button__wrap"};function Mm(e,n,a,o,l,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",qm,[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=ne(Im,[["render",Mm]]),Pm={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Lm=(e,n,a)=>({props:{...Pm},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["placeholder"]),c=t.reactive({active:!1}),f=t.computed(()=>({background:o.background})),p=t.computed(()=>({background:o.inputBackground})),d=T=>{let w=T.target.value;o.maxLength&&w.length>Number(o.maxLength)&&(w=w.slice(0,Number(o.maxLength))),l("update:modelValue",w,T),l("change",w,T)},h=t.ref({}),k=T=>{let w=T.target.value;c.active=!0,h.value=o.focusStyle,l("focus",w,T)},v=T=>{setTimeout(()=>{c.active=!1},0);let w=T.target.value;o.maxLength&&w.length>Number(o.maxLength)&&(w=w.slice(0,Number(o.maxLength))),h.value={},l("blur",w,T)},b=T=>{l("update:modelValue","",T),l("change","",T),l("clear","")},y=t.computed(()=>String(o.modelValue).length>0),u=t.computed(()=>{const T={};return y.value||(T.display="none"),T}),m=()=>{l("search",o.modelValue)},g=T=>{l("keyup-input",T),T.key.toLocaleUpperCase()==="ENTER"&&m()},C=T=>{l("click-input",T)},A=T=>{l("click-left-icon",o.modelValue,T)},S=t.computed(()=>({textAlign:o.inputAlign})),V=t.ref(null);t.onMounted(()=>{o.autofocus&&V.value.focus()});const N=()=>{const T=[];if(r.leftin){const $={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:A},E=t.h("view",$,[r.leftin()]);T.push(E)}const B={ref:V,class:[`${e}__input-inner`],style:S.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:C,onInput:d,onFocus:k,onBlur:v,onkeyup:g},w=t.h("input",B);T.push(w);const q=[];if(o.clearable){const $={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:u.value,onClick:b},E=r?.clear?.()??o.clearIcon??a,K=t.h("view",$,[t.h(E)]);q.push(K)}if(r.rightin){const $={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},E=t.h("view",$,[r.rightin()]);q.push(E)}if(q.length>0){const $={class:`${e}__input-inner-right`},E=t.h("view",$,q);T.push(E)}const P={class:[`${e}__search-input`,`${o.shape}`],style:{...p.value,...h.value}};return t.h("view",P,T)};return()=>{const T=[];if(o.label){const q={class:`${e}__search-label`},P=t.h("span",q,[o.label]);T.push(P)}if(r.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},P=t.h("view",q,[r.leftout()]);T.push(P)}const B=N();if(T.push(B),r.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},P=t.h("view",q,[r.rightout()]);T.push(P)}const w={class:`${e}`,style:f.value};return t.h("view",w,T)}}}),{componentName:zm,create:Fm,scope:Rm}=X("searchbar"),Xn=Fm(Lm(zm,Rm,oe.CircleClose)),ln={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Om(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(an(e,r)===a)return l}else if(o==="item"){if(qe(a,r))return l}else if(Es(e,r)===a)return l}return-1}function an(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function hr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Es(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Km(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Um(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Hm=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let f=a;typeof i=="function"&&(f=f.filter(i));let p=(o-1)*l,d=p+l;d>f.length&&(d=f.length);const h=f.slice(p,d);return{totalSize:f.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=Je(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ae(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function jm(){const e=t.getCurrentInstance();return new Hm(e.proxy)}function Wm(e,n,a,o,l,r,s,i,c,f,p){return{props:{...ln},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{emit:h,slots:k}){const{toLocaleRefs:v}=re.useFoxI18n(n),b=v(d,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),y=jm(),u=t.ref([]),m=t.ref(0),g=t.ref(""),C=t.shallowRef(null),A=t.computed(()=>{const O={};return d.params&&Object.assign(O,d.params),ue(g.value)||(O[`${d.searchKey}`]=g.value),C.value&&Object.assign(O,C.value),O});let S=!0;const V=async(O,U,G)=>{try{if(T.value===!1)return;let Q=null;ue(g.value)||(Q=z=>{const ee=an(d,z);if(typeof ee=="string"&&ee.includes(g.value))return!0;const te=hr(d,z);return!!(typeof te=="string"&&te.includes(g.value))});const J=await y.load("actionsheet",O,U,G,A.value,S,Q??void 0);S=!1,Array.isArray(J)?(u.value=J,m.value=1,T.value=!1):!Array.isArray(J.page)||J.page.length===0?(console.warn("[FoxUI] can not load more data"),T.value=!1):(Reflect.apply([].push,u.value,J.page),m.value=Math.ceil(u.value.length/d.pageSize),(J.totalSize&&u.value.length>=J.totalSize||G<J.page.length)&&(T.value=!1)),N.value=!1}catch(Q){console.error("[FoxUI] ActionSheet load more data fail",Q),T.value=!0,m.value=0,u.value=[]}setTimeout(()=>{h("loaded-data")},250)},N=t.ref(!1),T=t.ref(!0),B=async()=>{if(!d.source){N.value=!1;return}await V(d.source,m.value+1,d.pageSize)};t.watch(()=>g.value,(O,U)=>{ue(O)&&!ue(U)&&B()});const w=()=>{T.value=!0,m.value=0,u.value=[],d.source&&B()};t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([O,U,G])=>{d.source&&w()},{immediate:!0});const q=t.computed(()=>!d.multiple&&d.isAutoBackFill),P=t.ref([]);let $=null;const E=t.ref(d.visible);t.watch(()=>d.visible,O=>{E.value!==O&&(E.value=O),O?$=[...P.value]:$=null});const K=(O,U)=>{const G=[];return Array.isArray(O)||(O=[O]),O.forEach(Q=>{let J=Om(d,U,Q,d.valueType);J!==-1&&G.push(J)}),qe(G,P.value)?!1:(P.value=G,!0)};t.watch([()=>d.modelValue,()=>u.value],([O,U],[G,Q])=>{if(K(O,U)){const z=D();W(z)}},{deep:!0});const D=()=>{const O=[],U=[],G=[];for(let ee of P.value){const te=u.value[ee];U.push(te);const ae=an(d,te);if(G.push(ae),d.valueType==="item")O.push(te);else if(d.valueType==="text")O.push(ae);else{const ce=Es(d,te);O.push(ce)}}let Q=null,J=null,z=null;return d.multiple?(Q=O,J=G,z=U):(Q=O[0]??null,J=G[0]??null,z=U[0]??null),{value:Q,text:J,item:z}},W=O=>{h("update:modelValue",O.value),h("update:text",O.text),h("change",O.value,O.item,O.text)},H=()=>{$&&(P.value=$)},Z=O=>{const U=P.value.indexOf(O);d.multiple?U===-1?P.value.push(O):P.value.splice(U,1):U===-1?P.value=[O]:P.value=[],(q.value||!d.poppable&&!d.showFooter)&&I()},_=O=>{E.value=O,h("update:visible",O)},j=()=>{const O=()=>{H(),_(!1)},U=d.beforeMethod??d.beforeClose;if(typeof U=="function"){const G=U("close");gt(G)?G.then(Q=>{Q!==!1&&O()}).catch(()=>{O()}):G!==!1&&O()}else O()},I=()=>{const O=D(),U=()=>{W(O),_(!1)},G=d.beforeMethod??d.beforeClose;if(typeof G=="function"){const Q=G("confirm",O.value,O.item,O.text);gt(Q)?Q.then(J=>{J!==!1&&U()}).catch(()=>{U()}):Q!==!1&&U()}else U()},L=()=>{let O=b.title.value??"";k.title&&(O=k.title());const U=t.h("view",{class:["fox-actionsheet__header-title"]},[O]),G=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:j});return t.h("view",{class:["fox-actionsheet__header"]},[U,G])},x=()=>{let O=null;if(k.search)O=k.search();else{const U={onSearch:w,placeholder:b.seachPlaceholder.value,disabled:d.disabled,modelValue:g.value,"onUpdate:modelValue":G=>{g.value=G}};O=t.h(r,U,{leftin:()=>t.h(f)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[O])},F=(O,U,G,Q,J)=>{if(k.optionLabel)return k.optionLabel({text:O,checked:U,disabled:G,subText:Q,item:J});const z=[],ee=t.h("view",{class:"fox-actionsheet__list-item-text"},[O]);if(z.push(ee),Q){const te=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[Q]);z.push(te)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},z)},M=(O,U,G,Q)=>{if(k.optionIcon)return k.optionIcon({checked:O,disabled:U,iconSize:G,item:Q});if(O){if(k.checkedIcon)return k.checkedIcon({disabled:U,item:Q});{const J=d.checkedIcon??i;return t.h(J,{width:G,height:G,class:["fox-actionsheet__list-item-icon"]})}}else{if(k.icon)return k.icon({disabled:U,item:Q});{const J=d.icon??s;return t.h(J,{width:G,height:G,class:["fox-actionsheet__list-item-icon"]})}}},R=()=>{const O=[];for(let U=0;U<u.value.length;U++){const G=u.value[U],Q=an(d,G),J=hr(d,G),z=["fox-actionsheet__list-item"],ee={};let te=Km(d,G),ae=d.iconSize?ie(d.iconSize):null;const ce=Um(d,G,U);ce&&(te=te||ce.disabled,ce.class&&z.push(ce.class),ce.style&&Object.assign(ee,ce.style)),te=!!(d.disabled||te);const Ee=P.value.includes(U);te&&z.push("is-disabled"),Ee&&z.push("is-checked");const De={class:z,style:ee,key:`${U}`,onClick:()=>{te||Z(U)}};let Ye=[];if(k.option)Ye.push(k.option({item:G,checked:Ee,disabled:te}));else{const zs=F(Q,Ee,te,J,G);Ye.push(zs);const Fs=M(Ee,te,ae,G);Ye.push(Fs),d.textPosition==="right"&&Ye.reverse()}const Zn=t.h("view",De,Ye);O.push(Zn)}return O},Y=()=>{let O=[];if(k.buttons)O=k.buttons();else{const G=t.h(l,{type:"primary",block:"block",onClick:I,disabled:d.disabled},{default:()=>b.confirmText.value});O.push(G)}return t.h("view",{class:"fox-actionsheet__footer"},[O])};return $e({search:async(O=null,U=!0)=>{C.value=O&&t.toRaw(O),t.triggerRef(C),U&&(T.value=!0,m.value=0,u.value=[]),t.nextTick(()=>{B()})},clear:()=>{T.value=!0,m.value=0,u.value=[]},confirm:()=>{I()},cancel:()=>{j()}}),()=>{const O=[];if(d.showHeader){const ae=L();O.push(ae)}if(d.showSearchbar){const ae=x();O.push(ae)}let U=null;if(k.content)U=k.content();else{const ae=R(),ce={hasMore:T.value,loadText:b.loadText.value,loadMoreText:b.loadMoreText.value,modelValue:N.value,"onUpdate:modelValue":Ee=>{N.value=Ee},onLoadMore:B};U=t.h(o,ce,{default:()=>ae})}const G={};d.optionsHeight&&(G.height=d.optionsHeight);const Q={"fox-actionsheet__list":!0};d.poppable||(Q["fox-actionsheet__list--inner"]=!0);const J=t.h("view",{class:Q,style:G},[U]);if(O.push(J),d.showFooter&&!q.value){const ae=Y();O.push(ae)}const z=t.h("view",{class:"fox-actionsheet"},O);if(!d.poppable)return z;const ee=["fox-actionsheet__popup"];d.popClass&&ee.push(d.popClass);const te={popClass:ee.join(" "),visible:E.value,closeable:!1,"onUpdate:visible":_,position:d.position,round:"round",onClickOverlay:j,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(a,te,{default:()=>z})}}}}const{componentName:Ym,create:Xm,scope:Qm}=X("actionsheet-pane"),Qn=Xm(Wm(Ym,Qm,de,Yn,Me,Xn,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2)),gr={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 Gm(e,n,a,o,l,r,s){return{props:{...me,...ge,...gr,...ln},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const f=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:d}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!p.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),k=h(i,["placeholder"]),v=t.ref(!1),b=xe(i,"modelValue"),y=t.ref(""),u=t.computed(()=>Array.isArray(y.value)?y.value.join(i.separator):y.value),m="fox-input-item",g=t.computed(()=>({[m]:!0,[`${m}__disabled`]:f.value})),C=Be(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const x={};return C.value&&(x["text-align"]=C.value),x}),S=t.ref(!1),V=()=>{S.value=!0},N=x=>{S.value=x},T=x=>{b.value=x,d("update:modelValue",x)},B=(x,F)=>{d("change",x,F)},w=x=>{let M=x.target.value;v.value=!0,d("focus",M,x)},q=x=>{setTimeout(()=>{v.value=!1},0);let M=x.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),d("blur",M,x)},P=x=>{y.value=x,d("update:text",x)},$=t.computed(()=>({[`${m}__append`]:!0})),E=t.computed(()=>ye(i.unit)>0),K=t.computed(()=>ye(i.unit)>0&&!v.value),D=t.computed(()=>({hidden:!K.value})),W=x=>{b.value="",d("update:modelValue","",x),d("change","",x),d("clear","")},H=t.computed(()=>i.clearable&&!f.value&&!p.value),Z=t.computed(()=>ye(b.value)>0&&v.value),_=x=>{Z.value?W(x):V()},j=t.computed(()=>Z.value&&H.value?o:l),I=t.computed(()=>({action:!0})),L=t.ref(null);return $e({search:x=>{L.value&&L.value.search(x)},clear:()=>{L.value&&L.value.clear},confirm:x=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()}}),()=>{const x={class:g.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:V,onFocus:w,onBlur:q};s&&(x.disabled=!0);const F=[],M=t.h("input",x);F.push(M);const R=[],Y={class:["action-icon"]},O=t.h(j.value,Y),U={class:I.value,onClick:_},G=t.h("view",U,{default:()=>[O]});if(R.push(G),E.value){const De=t.h("view",{class:D.value},[i.unit]);R.push(De)}const Q={class:$.value},J=t.h("view",Q,{default:()=>R});F.push(J);const z={default:()=>F};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 ee=ve(i,ln);ee.ref=L,ee.class=i.actionsheetProps,ee.disabled=f.value||p.value,ee.visible=S.value,ee["onUpdate:visible"]=N,ee.modelValue=b.value,ee["onUpdate:modelValue"]=T,ee.text=y.value,ee["onUpdate:text"]=P,ee.onChange=B,ee.poppable=!0,ee["text-position"]=i.textPosition;const te={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},ae=t.h(r,ee,te);z.hide=()=>[ae];const ce=Nt(i,gr,ln);return t.h(a,{...ce,prop:`${i.prop}_item`},z)}}}}const{componentName:Zm,create:Jm,scope:_m}=X("actionsheet-item"),ul=Jm(Gm(Zm,_m,Se,oe.CircleClose,oe.ArrowRight,Qn)),Io={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:ep,create:tp}=X("input-number"),np=tp({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Io},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const k=ep;return{[k]:!0,[`${k}--disabled`]:e.disabled}}),o=k=>Number(k).toFixed(Number(e.decimalPlaces)),l=k=>{const v=k.target;n("update:modelValue",v.valueAsNumber,k)},r=(k,v)=>{let b=o(k);n("update:modelValue",b,v),n("change",b,v)},s=(k=Number(e.modelValue))=>k<Number(e.max)&&!e.disabled,i=(k=Number(e.modelValue))=>k>Number(e.min)&&!e.disabled,c=k=>{if(n("reduce",k),i()){let v=Number(e.modelValue)-Number(e.step);r(v,k)}else n("overlimit",k,"reduce")},f=k=>{if(n("add",k),s()){let v=Number(e.modelValue)+Number(e.step);r(v,k)}else n("overlimit",k,"add")},p=k=>{e.disabled||e.readonly||n("focus",k)},d=k=>{if(e.disabled||e.readonly)return;let b=k.target.valueAsNumber;b<Number(e.min)?b=Number(e.min):b>Number(e.max)&&(b=Number(e.max)),r(b,k),n("blur",k)},h=k=>{let v=Number(k);return v<Number(e.min)?v=Number(e.min):v>Number(e.max)&&(v=Number(e.max)),v};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const k=h(e.modelValue);k!==Number(e.modelValue)&&r(k,{})}),{classes:a,change:l,blur:d,focus:p,add:f,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:he}}}),op=["min","max","disabled","readonly","value"];function lp(e,n,a,o,l,r){const s=t.resolveComponent("Minus"),i=t.resolveComponent("Plus");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...c)=>e.reduce&&e.reduce(...c))},[t.renderSlot(e.$slots,"left-icon",{},()=>[t.createVNode(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth),height:e.toPxDesc(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...c)=>e.change&&e.change(...c)),onBlur:n[2]||(n[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:n[3]||(n[3]=(...c)=>e.focus&&e.focus(...c))},null,44,op),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=ne(np,[["render",lp]]);function ap(e,n,a,o){return{props:{...me,...ge,...Io},emits:["change","update:modelValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=e,p=xe(l,"modelValue"),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const h={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},v={...ve(l,Io),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d},b=t.h(o,v,h),y=[];y.push(b);const u={default:()=>y};u.label=r.slots.default,u.fixedPreTip=r.slots.fixedPreTip,u.fixedTip=r.slots.fixedTip;const m=ve(l,ge,me);return m["content-class"]=f,t.h(a,{...m,prop:`${l.prop}_item`},u)}}}}const{componentName:rp,create:sp,scope:ip}=X("inputnumber-item"),dl=sp(ap(rp,ip,Se,Ze)),cp={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function up(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function yr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function vr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function dp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function so(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function br(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function kr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function io(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let fp=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[o]);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function mp(){const e=t.getCurrentInstance();return new fp(e.proxy)}function pp(e,n,a,o){return{props:{...cp},emits:["update:modelValue","change","loaded-data"],setup(l,{slots:r,emit:s}){const i=e,c=mp(),f=t.ref([]),p=t.computed(()=>f.value.filter(I=>dp(l,I)!==!1)),d=t.ref(-1),h=()=>{const I=l.modelValue,L=p.value.findIndex(x=>yr(l,x)===I);d.value!==L&&(d.value=L,l.scroll&&_(L,!1))};t.watch([()=>l.modelValue,p],()=>{h()});const k=I=>d.value===I,v=I=>{if(I<0&&I>=p.value.length)return!1;const L=p.value[I],F=(io(l,L,I)??{}).status??so(l,L);return k(I)||F},b=t.computed(()=>{const I={[i]:!0};return l.mode?I[`is-${l.mode}`]=!0:l.direction&&(I[`is-${l.direction}`]=!0),l.scroll&&(I["is-scroll"]=!0),I}),y=t.computed(()=>({})),u=(I,L,x,F,M)=>{const R={[`${i}__step`]:!0};return M&&(R[`${M}`]=!0),R[`${m.value}`]=!0,F&&(R["is-doit"]=!0),I===d.value?R["is-active"]=!0:L==="done"?R["is-done"]=!0:L==="error"?R["is-error"]=!0:L==="half"?R["is-half"]=!0:x?R["is-disabled"]=!0:R["is-normal"]=!0,R},m=t.computed(()=>{if(l.mode==="simple")return"start";let I=l.align;return I||(l.direction==="vertical"?I="start":I="center"),I}),g=(I,L={})=>{const x={...L};return m.value==="start"&&I===p.value.length-1?x.flex="0 0 auto":l.step?l.direction==="vertical"?x.height=l.step:x.width=l.step:x.flex="1 1 100%",x},C=(I,L)=>{let x={};if(L<p.value.length-1){const F=L+1;v(L)&&v(F)?l.direction==="vertical"?x.height="100%":x.width="100%":x.opacity="0"}return x},A=I=>p.value.length-1===I,S=(I,L)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&L>d.value||d.value===L)return;const x=d.value,F=L;d.value=L,l.scroll&&_(L,!1);const M=yr(l,I);s("update:modelValue",M);const R={fromIndex:x,currentIndex:F,item:I,items:p.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",M,R)},V=t.ref(!0),N=async(I,L)=>{try{const x=await c.load("stesbar",I,L);Array.isArray(x)&&(f.value=x),V.value=!1}catch(x){console.error("[FoxUI] Load StepsBar Data Fail",x),f.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([I,L])=>{I&&N(I,L)},{immediate:!0});const T=(I,L,x,F,M)=>{let R=null;if(r.icon)R=r.icon({item:I,index:L,status:F});else if(F==="done"){const O={};l.iconSize&&(O.width=l.iconSize,O.height=l.iconSize);const U=l.icon??a;R=t.h(U,O)}else{const O=x??`${L+1}`;R=t.h("span",{},[O])}const Y={class:"fox-steps-bar__icon",onClick:()=>{M||S(I,L)}};return t.h("view",Y,[R])},B=(I,L,x)=>{const F=t.h("i",{class:"fox-steps-bar__line-inner",style:C(I,L)});return t.h("view",{class:"fox-steps-bar__line"},[F])},w=()=>{let I=null;if(r.markIcon)I=r.markIcon();else{const x={};l.iconSize&&(x.width=l.markIconSize,x.height=l.markIconSize);const F=l.markIcon??o;I=t.h(F,x)}return t.h("view",{class:"fox-steps-bar__mark"},[I])},q=(I,L,x,F,M)=>{const R=[];if(!A(L)){const U=B(I,L);R.push(U)}const Y=T(I,L,x,F,M);R.push(Y);const O={class:"fox-steps-bar__head"};return t.h("view",O,R)},P=(I,L,x,F)=>{let M=null;r.main?M=r.main({item:I,index:L,status:x}):M=up(l,I);const R={class:"fox-steps-bar__main",onClick:()=>{F||S(I,L)}};return t.h("view",R,[M])},$=(I,L,x)=>{let F=null;if(r.sub){F=r.sub({item:I,index:L,status:x});const M={class:"fox-steps-bar__sub"};return t.h("view",M,[F])}return null},E=(I,L)=>{const x=io(l,I,L)??{},F=x.status??so(l,I);let M=vr(l,I);x.disabled===!0&&(M=!0),l.disabled===!0&&(M=!0);const R=x.label??kr(l,I),Y=[],O=T(I,L,R,F,M);O&&Y.push(O);const U=P(I,L,F,M);if(U&&Y.push(U),!A(L)){const te=B(I,L);te&&Y.push(te)}const G=t.h("view",{class:"fox-steps-bar__head"},Y),Q=x.class,J=x.style??{};let z=br(l,I);x.doit===!0&&(z=!0);const ee={ref:Z(L),class:u(L,F,M,z,Q),style:g(L,J)};return t.h("view",ee,[G])},K=(I,L)=>{const x=io(l,I,L)??{},F=x.status??so(l,I);let M=vr(l,I);x.disabled===!0&&(M=!0),l.disabled===!0&&(M=!0);const R=x.label??kr(l,I),Y=[],O=l.layout;for(let z of O)if(z==="head"){const ee=q(I,L,R,F,M);Y.push(ee)}else if(z==="main"){const ee=P(I,L,F,M);Y.push(ee)}else if(z==="sub"){const ee=$(I,L,F);Y.push(ee)}else if(z==="mark"){const ee=w();Y.push(ee)}const U=x.class,G=x.style??{};let Q=br(l,I);x.doit===!0&&(Q=!0);const J={ref:Z(L),class:u(L,F,M,Q,U),style:g(L,G)};return t.h("view",J,Y)},D=t.ref(),W=t.ref([]),H=(I,L)=>{W.value[L]=I},Z=I=>L=>{H(L,I)},_=(I,L)=>{const x=D.value,F=W.value;if(!x||!F||!F[I])return;const M=F[I];let R=0;l.direction==="vertical"?R=M.offsetTop-(x.offsetHeight-M.offsetHeight)/2:R=M.offsetLeft-(x.offsetWidth-M.offsetWidth)/2,j(x,R,L?0:.3,l.direction)},j=(I,L,x,F)=>{let M=0;const R=F==="horizontal"?I.scrollLeft:I.scrollTop,Y=x===0?1:Math.round(x*1e3/16);function O(){F==="horizontal"?I.scrollLeft+=(L-R)/Y:I.scrollTop+=(L-R)/Y,++M<Y&&Re(O)}O()};return()=>{const I=[];if(l.mode==="simple")for(let x=0;x<p.value.length;x++){const F=p.value[x],M=E(F,x);I.push(M)}else for(let x=0;x<p.value.length;x++){const F=p.value[x],M=K(F,x);I.push(M)}const L={ref:D,class:b.value,style:y.value};return t.h("view",L,I)}}}}const{componentName:hp,create:gp,scope:yp}=X("steps-bar"),fl=gp(pp(hp,yp,oe.Checklist,oe.ArrowRight));function vp(e){e.stopPropagation()}class bp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=Jo()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=_o(),o=(l,r,s,i)=>{this.updateMove({x:l,y:r})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),vp(l),o(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{o(a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function kp(e,n){return new bp(e,n)}const Sp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]}},Cp=(e,n,a,o=!1)=>({props:{...Sp},emits:["click"],setup(l,{slots:r,emit:s}){const i=t.reactive({top:l.top,right:l.right,bottom:l.bottom,left:l.left}),c=t.computed(()=>{const m=[`${e}`];return l.customClass&&m.push(l.customClass),m}),f=t.computed(()=>{const m={};return ue(i.top)||(m.top=i.top),ue(i.right)||(m.right=i.right),ue(i.bottom)||(m.bottom=i.bottom),ue(i.left)||(m.left=i.left),ue(l.width)||(m.width=l.width),ue(l.height)||(m.height=l.height),ue(l.color)||(m.color=l.color),ue(l.background)||(m.background=l.background),ue(l.borderRadius)||(m["border-radius"]=l.borderRadius),m}),p=t.computed(()=>({[`${e}__icon`]:!0})),d=()=>{s("click")},h=t.ref(null),k=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},v={x:0,y:0},u=kp(m=>{if(!h.value)return;const g=h.value;k(),i.left=g.offsetLeft,i.top=g.offsetTop,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`,g.style.right=null,g.style.bottom=null,v.x=i.left,v.y=i.top},m=>{if(!h.value)return;const g=h.value;k(),i.left=v.x+m.x,i.top=v.y+m.y,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`});return t.onMounted(()=>{if(l.draggable&&h.value){const m=[h.value];u.open(m)}}),t.onBeforeUnmount(()=>{l.draggable&&h.value&&u.close()}),()=>{let m=[];const g=typeof r.default=="function"?r.default():[];if(g&&g.length>0)m=g;else{const A=t.h(a,{class:p.value});m.push(A)}const C={ref:A=>{h.value=A},class:c.value,style:f.value,onClick:d};return t.h("view",C,m)}}}),{componentName:wp,create:Np,scope:Bp}=X("floating-button"),ml=Np(Cp(wp,Bp,oe.Uploader,!1)),Ap={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1}};function Vp(e,n,a){return{props:{...Ap},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const d={[`${e}`]:!0};return o.disabled?d[`${e}--disabled`]=!0:d[`${e}--${o.type}`]=!0,d}),s=xe(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),f=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),p=()=>{l("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const y={class:c.value},u=t.h("span",y,[i.value]);d.push(u)}const h={class:f.value},k=o.icon??a,v=t.h(k,h);return d.push(v),o.textPosition==="right"&&d.reverse(),t.h("view",{class:r.value,onClick:p},d)}}}}const{componentName:Tp,create:$p,scope:Ep}=X("more-button"),pl=$p(Vp(Tp,Ep,oe.RectUp)),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}},Dp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Ip(e,n,a){return{props:{...xp},setup(o,{attrs:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["confirmText","cancelText"]),c=e,f=t.ref(!0),p=C=>{f.value=C},d=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=()=>{d("confirm")},k=()=>{d("cancel")},v=()=>{d("close")},b=(C,A)=>Dp(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),y=()=>{const C=[];if(o.icon){const S={class:[`${c}__header-icon`]},V=b(o.icon,S);C.push(V)}if(o.title){const S=t.h("view",{class:`${c}__header-title`},[o.title]);C.push(S)}if(o.showClose&&o.closeIcon){const S={class:[`${c}__header-close-icon`],onClick:v},V=b(o.closeIcon,S);C.push(V)}const A={class:[`${c}__header`]};return t.h("view",A,C)},u=(C,A)=>{const S=[];if(A){const N={class:`${c}__group-title`},T=t.h("view",N,[A]);S.push(T)}if(C){const N=[];Array.isArray(C)||(C=[C]);for(let T of C){const B={class:`${c}__group-row`,innerHTML:T},w=t.h("view",B);N.push(w)}if(N.length>0){const T={class:`${c}__group-rows`},B=t.h("view",T,N);S.push(B)}}if(S.length===0)return null;const V={class:`${c}__group`};return t.h("view",V,S)},m=()=>{const C=[];if(typeof o.message=="string")C.push(o.message);else if(Array.isArray(o.message))for(let S of o.message)if(typeof S=="string"){const V=u(S);C.push(V)}else{const V=u(S.content,S.title);C.push(V)}else if(typeof o.message=="function"){const S=o.message();C.push(S)}else{const S=o.message;C.push(S)}const A={class:`${c}__body`};return t.h("view",A,C)},g=()=>{const C=[];if(o.showCancelButton){const S={class:[`${c}__footer-button`],style:{},onClick:k};o.cancelButtonClass&&S.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(S.style,o.cancleButtonStyle);const V=t.h("button",S,[o.cancelButtonText??i.cancelText.value]);C.push(V)}if(o.showConfirmButton){const S={class:[`${c}__footer-button`],style:{},onClick:h};o.confirmButtonClass&&S.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(S.style,o.confirmButtonStyle);const V=t.h("button",S,[o.confirmButtonText??i.confirmText.value]);C.push(V)}if(C.length===0)return null;const A={class:`${c}__footer`};return t.h("view",A,C)};return()=>{const C=[],A=y();A&&C.push(A);const S=m();S&&C.push(S);const V=g();V&&C.push(V);const N={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},T=t.h("view",N,C),B=[`${c}__popup`];o.popClass&&B.push(o.popClass);const w={};o.width&&(w.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(w.height=typeof o.height=="number"?`${o.height}px`:o.height);const q={popClass:B.join(" "),style:w,visible:f.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":p,position:o.position,round:"round",onClickOverlay:v,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,q,{default:()=>T})}}}}const{componentName:qp,create:Mp,scope:Pp}=X("messagebox"),Lp=Mp(Ip(qp,Pp,de)),zp="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",Fp="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",Rp="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",Op="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",Kp=new qn,Up={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Hp=e=>{let n=document.body,a=e.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):a&&(n=e.teleport));const o=document.createElement("view"),l=`messagebox-${Kp.get()}`;o.id=l,o.classList.add("fox-messagebox__root"),e.zIndex&&(o.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${l}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(Lp,e);n.appendChild(o),t.render(r,o)},ot={show:(e,n,a,o)=>{const l={...Up};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(l,n):(n&&(l.message=n),a&&typeof a=="object"?Object.assign(l,a):(typeof a=="string"&&(l.title=a),o&&typeof o=="object"?Object.assign(l,o):typeof o=="string"&&(l.type=o)));const r=l.type??"info";return l.icon||(r==="success"?l.icon=Rp:r==="warning"?l.icon=Op:r==="error"?l.icon=zp:l.icon=Fp),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=oe.Close),new Promise((s,i)=>{const c=l.callback;l.callback=f=>{if(typeof c=="function")try{c(f)}catch(p){console.error(p)}s({action:f})},Hp(l)})},alert:(e,n,a)=>ot.show("alert",e,n,a),confirm:(e,n,a)=>ot.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=ot.alert,e.config.globalProperties.$confirm=ot.confirm}},jp=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let l=!0,r=!0;for(let i in n)i==="bubbles"?l=!!n[i]:i==="cancelable"?r=!!n[i]:o[i]=n[i];o.initEvent(e,l,r),(a??document).dispatchEvent(o)},Wp=new qn,Yp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Xp=e=>`${e}-${Wp.get()}`,Qp=Symbol.for("InnerPageScopeKey"),Gp=Symbol.for("PageWrapperKey"),Zp="FoxLeave",Jp="FoxLeaveEnd",_p={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 eh(e,n,a,o){return{props:{...ze,..._p},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(Qp,!0);const c={};t.provide(Gp,c);const f=S=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),p=()=>{f()},d=e,h=S=>{k.value=S,i("update:visible",S)},k=t.ref(!1),v=(S,V)=>Yp(S)?(V.src=S,t.h("img",V)):typeof S=="string"?(Array.isArray(V.class)?V.class.push(S):V.class&&typeof V.class=="object"?V[`${S}`]=!0:typeof V.class=="string"?V.class=`${V.class}, ${S}`:V.class=S,t.h(l.tag,V)):t.h(S,V),b=()=>{if(!l.showHeader)return null;const S=[];if(s.header){const N=s.header();S.push(N)}else if(l.title){const N=t.h("view",{class:`${d}__header-title`},[l.title]);S.push(N)}if(S.length===0)return null;const V={class:[`${d}__header`]};return t.h("view",V,S)},y=()=>{if(!l.showClose)return null;const S={class:[`${d}__close-icon`],onClick:p},V=l.closeIcon??o;return v(V,S)};let u=null;const m=S=>{jp(Jp,{},u)},g=Xp(e),C=()=>{h(!0)},A=()=>{if(!u)return;const S=u.querySelector(".fox-overlay");S&&(S.classList.add("overlay-fade-leave-active"),S.classList.add("overlay-fade-leave-to"));const V=u.querySelector(".fox-popup");V&&(V.classList.add(`fox-popup-slide-${l.position}-leave-active`),V.classList.add(`fox-popup-slide-${l.position}-leave-to`),V.addEventListener("animationend",m,{once:!0}),V.addEventListener("transitionend",m,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{u=document.querySelector(`.${g}`),u?.addEventListener(Zp,A,{once:!0}),C()}),()=>{const S=[],V=b();V&&S.push(V);const N=y();N&&S.push(N);const T=s.default?s.default():[];Reflect.apply([].push,S,T);const B={[`${d}`]:!0};l.mode&&(B[`${d}--${l.mode}`]=!0);const w={class:B},q=t.h("view",w,S),P=[`${d}__popup`,g];l.popClass&&P.push(l.popClass),l.position&&P.push(`${d}__popup--${l.position}`);const $={};l.width&&($.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&($.height=typeof l.height=="number"?`${l.height}px`:l.height);const K={...ve(l,ze),popClass:P.join(" "),style:$,visible:k.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},D=t.h(a,K,{default:()=>q});return t.h("div",{class:[`${d}__root`,g]},[D])}}}}const{componentName:th,create:nh,scope:oh}=X("popup-wrapper"),hl=nh(eh(th,oh,de,oe.Close)),lh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function ah(e,n,a,o){return{props:{...lh},emits:["update:visible"],setup(l,{emit:r,slots:s}){const i=c=>{r("update:visible",c)};return()=>{const c=[`${e}__popup`];l.popClass&&c.push(l.popClass);const f={popClass:c,style:l.popStyle??{},position:"top",zIndex:l.zIndex,closeOnClickOverlay:l.closeOnClickOverlay,teleportDisable:!0,visible:l.visible,"onUpdate:visible":i},p=t.h(a,f,s),d={class:`${e}`};return t.h("view",d,[p])}}}}const{componentName:rh,create:sh,scope:ih}=X("dropdown"),gl=sh(ah(rh,ih,de));function ch(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(l)},500)}const uh={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function dh(e,n,a,o=!1){return{props:{...uh},emits:["click"],setup(l,r){const s=t.ref(null),i=t.computed(()=>{const g={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(g[`${e}--${l.type??"default"}`]=!0),l.size&&(g[`${e}--${l.size}`]=!0),g}),c=t.computed(()=>{const g={},C=l.textColor??l.color;return C&&(g.color=C),g}),f=(g,C)=>{let A=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const S=l.highlightFilter;if(g.indexOf(S)!==-1){const N=g.replace(new RegExp(S,"g"),`<span>${S}</span>`);C.innerHTML=N,C.class["is-highlight"]=!0,A=t.h(l.tag,C)}}else if(typeof l.highlightFilter=="function"){const S=l.highlightFilter(g);S&&(C.innerHTML=S,C.class["is-highlight"]=!0,A=t.h(l.tag,C))}return A},p=g=>{r.emit("click",g)};let d="";const h=()=>{const g=s.value;if(!g)return;const C=g.clientWidth;ch(g,A=>{const S=g.innerHTML??"";ue(S)||A<C||(d?a?.show(g,S,{type:"text",id:d,showArrow:l.showArrow},!0):d=a?.show(g,S,{type:"text",showArrow:l.showArrow},!0)??"")})},k=()=>{d&&a?.hide(d)};let v=null;const b=g=>{v||(v=setTimeout(()=>{h(),v=null},l.showAfter??0))},y=g=>{v&&(clearTimeout(v),v=null),setTimeout(()=>{k()},l.hideAfter??0)},u=()=>{const g=s.value;g&&(g.addEventListener("mouseover",b),g.addEventListener("mouseleave",y))},m=()=>{const g=s.value;g&&(g.removeEventListener("mouseover",b),g.removeEventListener("mouseleave",y))};return t.onMounted(()=>{!pe(l.showOverflowTooltip)||!a||u()}),t.onBeforeUnmount(()=>{!pe(l.showOverflowTooltip)||!a||m()}),()=>{const g={onClick:p,class:i.value,style:c.value,ref:s};let C=null;if(pe(l.numberFormat)&&typeof r.slots.default=="function"){const N=r.slots.default();if(Array.isArray(N)&&N.length===1){const T=N[0].type.toString();if(T==="Symbol(Text)"||T==="Symbol(v-txt)"){const B=fe(l.digits),w=fe(l.decimalLength),q=pe(l.autoPadding);let P=`${N[0].children}`,$=P.split("").reverse().join("");$=yn($,w,q,B,l.separator),P=$.split("").reverse().join(""),l.highlightFilter!==void 0&&(C=f(P,g)),C||(g.innerHTML=P,C=t.h(l.tag,g))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const N=r.slots.default();if(Array.isArray(N)&&N.length===1){const T=N[0].type.toString();if(T==="Symbol(Text)"||T==="Symbol(v-txt)"){const B=`${N[0].children}`;C=f(B,g),C||(g.innerHTML=B,C=t.h(l.tag,g))}}}C||(C=t.h(l.tag,g,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return C;let S=null;if(l.icon){const N={[`${e}__mark-wrap`]:!0};l.type&&(N[`${e}__mark-wrap--${l.type}`]=!0);const T={},B=l.color;B&&(T.color=B);const w={class:N,style:T};S=t.h("view",w,t.h(l.icon))}else if(r.slots.mark){const N={[`${e}__mark-wrap`]:!0};l.type&&(N[`${e}__mark-wrap--${l.type}`]=!0);const T={},B=l.color;B&&(T.color=B);const w={class:N,style:T};S=t.h("view",w,{default:r.slots.mark})}else{const N={[`${e}__mark`]:!0};l.type&&(N[`${e}__mark--${l.type??"default"}`]=!0);const T={},B=l.color;B&&(T["background-color"]=B);const w={class:N,style:T};S=t.h("view",w)}const V={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",V,[S,C])}}}}const{componentName:fh,create:mh,scope:ph}=X("text"),yl=mh(dh(fh,ph,Bt,!1));function hh(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let f=0;c&&f<r.length;f++){let p=r[f],d=c.find(h=>h[o]===p);if(!d)break;s.push(d[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let f=n[c],p=r[c];const d=f.find(h=>h[o]===p);if(!d)break;s.push(d[a])}else{let c=n;for(let f=0;c&&f<r.length;f++){let p=r[f],d=c.find(h=>h[o]===p);if(!d)break;s.push(d[a]),c=d[l]}}return s}class gh{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function yh(){const e=t.getCurrentInstance();return new gh(e.proxy)}const vh={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 bh(e,n,a=!1){return{props:{...vh},setup(o,{attrs:l,slots:r}){const s=yh(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([p,d])=>{i.value=await s.load(o.sourceType,p,d)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let p=hh(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return p.length==0?o.emptyText??"":p.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${p[0]}`:p[0]:p.join(o.separator)}),f=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const p={...l};return r.default?r.default({text:c.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===c.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},c.value):t.h(f,p,{default:()=>c.value}):t.h(f,p,c.value)}}}}const{componentName:kh,create:Sh,scope:Ch}=X("mapping"),vl=Sh(bh(kh,Ch,!1));function wh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return Qr(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:f2,create:Nh,scope:m2}=X("domain-provider"),bl=Nh(wh()),Bh={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Ah(e,n){return{inheritAttrs:!1,props:Bh,setup(a,{slots:o}){if(it&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(h,k)=>{if(p===null){r.set(h,{visible:null,callback:k});return}l.has(h)&&p.unobserve(h),l.set(h,{visible:null,callback:k}),p.observe(h)},i=h=>{if(p===null){r.delete(h);return}l.has(h)&&(l.delete(h),p.unobserve(h))};let c=a.initialVisibleObserverSize;Ki({acquire:()=>{const h=c>0;return c--,h},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let p=null;const d=(h,k,v)=>{p=new IntersectionObserver(b=>{for(let y of b){let u=!1;y.intersectionRatio>0&&(u=!0);const m=l.get(y.target);if(m)try{if(a.loadPolicy==="lazy"&&!u&&m.visible!==null)return;m.visible=u,m.callback(u)}catch(g){console.error(g)}}},{root:h,rootMargin:k,threshold:v}),r.forEach((b,y)=>{l.set(y,b),p?.observe(y)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([h,k])=>{if(k||!h||p)return;let v=null;typeof h=="string"?v=document.querySelector(h):v=h,v&&d(v,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:p2,create:Vh,scope:h2}=X("rolling-provider"),kl=Vh(Ah()),{componentName:Th,create:$h}=X("cell"),Eh=$h({components:{Right:oe.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.computed(()=>{const r=Th;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:he(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),xh={key:0,class:"fox-cell__icon"},Dh={key:1,class:"fox-cell__title"},Ih={class:"title"},qh={class:"fox-cell__title-desc"};function Mh(e,n,a,o,l,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",xh,[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 Sl=ne(Eh,[["render",Mh]]),{componentName:Ph,create:Lh}=X("cell-group"),zh=Lh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Ph]:!0}))}}}),Fh={key:1,class:"fox-cell-group__title"},Rh={key:3,class:"fox-cell-group__desc"},Oh={class:"fox-cell-group__wrap"};function Kh(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",Fh,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",Rh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Oh,[t.renderSlot(e.$slots,"default")])],2)}const Cl=ne(zh,[["render",Kh]]),{componentName:Uh,create:Hh}=X("image"),jh=Hh({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:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const k=Uh;return{[k]:!0,[`${k}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const k={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(v=>{v.forEach(b=>{b.isIntersecting&&(r.value=!0,l.value.disconnect())})},k),s.value&&l.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let k={};return e.width&&(k.width=he(e.width)),e.height&&(k.height=he(e.height)),e.radius!==void 0&&e.radius!==null&&(k.overflow="hidden",k.borderRadius=he(e.radius)),k}),f=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,k=>{a.isError=!1,a.loading=!0});const p=()=>{a.loading=!1,n("load")},d=()=>{a.isError=!0,a.loading=!1,n("error")},h=k=>{n("click",k)};return{...t.toRefs(a),imageClick:h,classes:o,styles:f,stylebox:c,error:d,load:p,show:r,imgRef:s}}}),Wh=["src","date-src","alt"],Yh={key:0,class:"fox-img-loading"},Xh={key:1,class:"fox-img-error"};function Qh(e,n,a,o,l,r){const s=t.resolveComponent("Image"),i=t.resolveComponent("ImageError");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:n[2]||(n[2]=(...c)=>e.imageClick&&e.imageClick(...c))},[t.createElementVNode("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...c)=>e.load&&e.load(...c)),onError:n[1]||(n[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,Wh),e.loading?(t.openBlock(),t.createElementBlock("div",Yh,[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",Xh,[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 wl=ne(jh,[["render",Qh]]),{create:Gh}=X("layout"),Nl=Gh({}),{componentName:Zh,create:Jh}=X("col"),_h=Jh({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Zh,a=t.inject("gutter"),o=t.computed(()=>({[n]:!0,[`${n}-gutter`]:a,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),l=t.computed(()=>({paddingLeft:a/2+"px",paddingRight:a/2+"px"}));return{classes:o,style:l}}});function eg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Bl=ne(_h,[["render",eg]]),{componentName:tg,create:ng}=X("row"),og=ng({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=tg;t.provide("gutter",e.gutter);const a=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
|
|
6
6
|
${a("",e.type)}
|
|
7
7
|
${a("justify",e.justify)}
|
|
8
8
|
${a("align",e.align)}
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
${n}
|
|
11
11
|
`:`
|
|
12
12
|
${n}
|
|
13
|
-
`)}}});function Jh(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Bl=ne(Zh,[["render",Jh]]),{create:_h}=X("sticky"),eg=_h({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),i=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const f=e.container;if(!a.value&&!f)return;const p=Ve(a),d=o.value,h=Ve(d),v=Ve(f);l.height=p.height;const y=()=>{let b=!1;if(e.position==="top")b=f?r.value>p.top&&v.bottom>0:r.value>p.top;else{const u=document.documentElement.clientHeight;b=f?v.bottom>0&&u-r.value-h.height>v.top:u-r.value<p.bottom}return b},k=()=>{if(f)if(e.position==="top"){const b=v.bottom-r.value-h.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,u=v.bottom-(b-r.value);return u<0?u:0}return 0};l.transform=k(),l.fixed=y()};return t.watch(()=>l.fixed,f=>{n("change",f)}),t.onMounted(()=>{c(),Do(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Do(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function tg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Ot=ne(eg,[["render",tg]]),{componentName:ng,create:og}=X("divider"),lg=og({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=ng;let l={[o]:!0},r={};return e.direction==="horizontal"?r={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:r={...l,[`${o}-vertical`]:e.direction==="vertical"},r})}}});function ag(e,n,a,o,l,r){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}const Al=ne(lg,[["render",ag]]);function rg(e,n){const a=[],o=l=>{Array.isArray(l)&&l.forEach(r=>{if(t.isVNode(r)){if(n){if(r.type&&r.type.name===n){a.push(r);return}}else a.push(r);r.component?.subTree&&o(r.component.subTree.children),r.children&&o(r.children)}})};return o(e),a}function sg(e,n,a){const o=rg(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function ig(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),sg(o,a,n))},r=i=>{a.splice(a.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:l,remove:r,internalChildren:a},i)),{internalChildren:a})}const{componentName:Sr}=X("grid"),Ds=Symbol("grid"),cg={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}},ug={props:cg,setup(e,{slots:n}){ig(Ds,`${Sr}-item`)({props:e});const a=t.computed(()=>{const l=Sr;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=he(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:dg}=X("grid"),Vl=dg(ug);function fg(e){const n=t.inject(e,null);if(n){const a=t.getCurrentInstance(),{add:o,remove:l,internalChildren:r}=n;o(a),t.onUnmounted(()=>l(a));const s=t.computed(()=>r.indexOf(a));return{parent:n,index:s}}return{parent:null,index:t.ref(-1)}}const{create:mg,componentName:Cr}=X("grid-item"),pg=mg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=fg(Ds);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Cr]:!0})),s=t.computed(()=>{const f={flexBasis:`${100/+l.columnNum}%`};return l.square?f.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(f.paddingRight=he(l.gutter),o.value>=l.columnNum&&(f.marginTop=he(l.gutter))),f}),i=t.computed(()=>{const f=`${Cr}__content`;return{[`${f}`]:!0,[`${f}--border`]:l.border,[`${f}--surround`]:l.border&&l.gutter,[`${f}--center`]:l.center,[`${f}--square`]:l.square,[`${f}--reverse`]:l.reverse,[`${f}--${l.direction}`]:!!l.direction,[`${f}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:f=>{n("click",f)}}}}),hg={class:"fox-grid-item__text"};function gg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",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 Tl=ne(pg,[["render",gg]]),{componentName:yg,create:vg}=X("navbar"),bg=vg({components:{Left:oe.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let f=t.ref();const p=t.computed(()=>{const b=yg;return{[b]:!0,[`${b}--border`]:a.value,[`${b}--fixed`]:o.value,[`${b}--safe-area-inset-top`]:l.value}}),d=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{f.value=c?.value?.getBoundingClientRect().height,i.value.style.height=f.value+"px"})});function h(){n("on-click-back")}function v(){n("on-click-title")}function y(){n("on-click-icon")}function k(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:p,styles:d,handleLeft:h,handleCenter:v,handleCenterIcon:y,handleRight:k}}}),kg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Sg={key:1,class:"fox-navbar__text"},Cg={class:"fox-navbar__title"},wg={key:0,class:"fox-navbar__text"},Ng={key:1,class:"fox-navbar__text"},Bg={class:"fox-navbar__title"},Ag={key:0,class:"fox-navbar__text"};function Vg(e,n,a,o,l,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",kg,[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",Cg,[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",wg,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",Ng,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Bg,[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",Ag,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const $l=ne(bg,[["render",Vg]]),Tg=(e,n,a)=>({components:a,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(o,{emit:l}){const{toLocaleRefs:r}=re.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(d=!o.visible)=>{l("update:visible",d)},selected:(d,h)=>{l("selected",{item:d,event:h}),c.value=d.id},current:c}}}),{componentName:$g,create:Eg,scope:xg}=X("fixednav"),Dg=Eg(Tg($g,xg,{[rt.name]:rt,Left:oe.Left})),Ig={class:"fox-fixednav__list"},qg=["onClick"],Mg=["src"],Pg={class:"span"},Lg={key:0,class:"b"},zg={class:"text"};function Fg(e,n,a,o,l,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Left");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",Ig,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:p=>e.selected(c,p),key:c.id||f},[t.createElementVNode("img",{src:c.icon},null,8,Mg),t.createElementVNode("view",Pg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Lg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,qg))),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",zg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const El=ne(Dg,[["render",Fg]]),{componentName:Rg,create:Og}=X("menu"),Kg=Og({components:{ArrowUp2:oe.ArrowUp2,ArrowDown2:oe.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),s=()=>{const b=t.reactive([]),u=t.reactive([]);return{children:b,linkChildren:g=>{const C=S=>{S.proxy&&(u.push(S),b.push(S.proxy))},A=S=>{if(S.proxy){let V=u.indexOf(S);V>-1&&u.splice(V,1);let N=b.indexOf(S.proxy);V>-1&&b.splice(N,1)}};t.provide("menuParent",Object.assign({removeLink:A,link:C,children:b,internalChildren:u},g))}}},{children:i,linkChildren:c}=s(),f=t.computed(()=>i.some(b=>b.state.showWrapper)),p=t.computed(()=>({[Rg]:!0,"scroll-fixed":r.value})),d=()=>{if(o.value){const b=Ve(o);e.direction==="down"?l.value=b.bottom:l.value=window.innerHeight-b.top}};c({props:e,offset:l});const h=b=>{i.forEach((u,m)=>{m===b?(d(),u.toggle()):u.state.showPopup&&u.toggle(!1,{immediate:!0})})},v=b=>Math.max(0,"scrollTop"in b?b.scrollTop:b.pageYOffset),y=()=>{const{scrollFixed:b}=e,u=v(window);r.value=u>(typeof b=="boolean"?30:Number(b))},k=b=>{let u="";const{titleClass:m}=e;return b&&(u+="active"),m&&(u+=` ${m}`),u};return t.onMounted(()=>{const{scrollFixed:b}=e;b&&window.addEventListener("scroll",y)}),t.onUnmounted(()=>{const{scrollFixed:b}=e;b&&window.removeEventListener("scroll",y)}),{toggleItem:h,children:i,opened:f,classes:p,barRef:o,getClasses:k}}}),Ug=["onClick"],Hg={class:"fox-menu__title-text"},jg={class:"fox-menu__title-icon"};function Wg(e,n,a,o,l,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:p=>!c.disabled&&e.toggleItem(f),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",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 xl=ne(Kg,[["render",Wg]]),{componentName:Yg,create:Xg}=X("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:{[de.name]:de,Check:oe.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),l=()=>{const v=t.inject("menuParent",null);if(v){const y=t.getCurrentInstance(),{link:k,removeLink:b}=v;return k(y),t.onUnmounted(()=>{b(y)}),{parent:v}}},{parent:r}=l(),s=t.computed(()=>({[Yg]:!0})),i=t.computed(()=>{const v={height:r.offset.value+"px"};return r.props.direction==="down"?v:{...v,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const v=e.options?.find(y=>y.value===e.modelValue);return v?v.text:""},state:o,parent:r,toggle:(v=!o.showPopup,y={})=>{v!==o.showPopup&&(o.showPopup=v,o.isShowPlaceholderElement=v,v&&(o.showWrapper=!0,n("open")))},onClick:v=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,v.value!==e.modelValue&&(n("update:modelValue",v.value),n("change",v.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,a,o,l,r){const s=t.resolveComponent("Check"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:n[0]||(n[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",Gg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:p=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps(e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,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 Dl=ne(Qg,[["render",Jg]]),{create:_g}=X("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 a(l){o.value!==l&&(o.value=l,n.emit("update:modelValue",l),n.emit("change",l,o.children[l]))}const o=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:a});return t.provide("parent",o),t.watch(()=>e.modelValue,l=>{o.value=l}),{changeIndex:a}}});function ty(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}const Il=ne(ey,[["render",ty]]),{create:ny}=X("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 a=t.inject("parent"),o=t.reactive({size:a.size,inactiveColor:a.inactiveColor,activeColor:a.activeColor,value:a.value,index:0}),l=t.getCurrentInstance();l!==null&&(f=>{if(f.proxy){let p=a.children.length;o.index=p;let d=Object.assign(f.proxy,{index:p});a.children.push(d)}})(l);const r=t.computed(()=>o.index===o.value);function s(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const i=t.computed(()=>a?a.value:null);return t.watch(i,c=>{o.value=c}),{state:o,active:r,change:s}}}),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 uy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",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 ql=ne(oy,[["render",uy]]),{componentName:dy,create:fy}=X("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 a=t.ref(null),o=t.reactive({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),l=t.computed(()=>({[dy]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(u,m)=>{const g="data-";return u.getAttribute(g+m)},c=u=>{t.nextTick(()=>{!o.listGroup.includes(u)&&u!=null&&o.listGroup.push(u)})},f=()=>{let u=0;o.listHeight.push(u);for(let m=0;m<o.listGroup.length;m++){let g=o.listGroup[m];u+=Math.floor(g.clientHeight),o.listHeight.push(u)}},p=u=>{!u&&u!==0||(u<0&&(u=0),u>o.listHeight.length-2&&(u=o.listHeight.length-2),o.codeIndex=u,a.value.scrollTo(0,o.listHeight[u]))},d=u=>{o.scrollStart=!0;let m=i(u.target,"index"),g=u.touches[0];o.touchState.y1=g.pageY,o.anchorIndex=+m,o.codeIndex=+m,p(+m)},h=u=>{let m=u.touches[0];o.touchState.y2=m.pageY;let g=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+g,p(o.codeIndex)},v=()=>{o.scrollStart=!1},y=(u,m)=>{n.emit("click-item",u,m),o.currentData=m,o.currentKey=u},k=u=>{n.emit("click-index",u)},b=u=>{let g=u.target.scrollTop;const C=o.listHeight;o.scrollY=g;for(let A=0;A<C.length-1;A++){let S=C[A],V=C[A+1];if(o.scrollY>=S&&o.scrollY<V){o.currentIndex=A,o.diff=V-o.scrollY;return}}o.currentIndex=C.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",b)}),$e({scrollTo:p}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(f)}),t.watch(()=>o.diff,u=>{const m=o.listHeight;let g=u>0&&u<e.titleHeight?u-e.titleHeight:0;o.scrollY+s.value===m[m.length-1]&&g!==0&&(g=0),o.fixedTop!==g&&(o.fixedTop=g)}),t.watch(()=>o.currentIndex,u=>{n.emit("change",u)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:a,touchStart:d,touchMove:h,touchEnd:v,handleClickItem:y,handleClickIndex:k}}}),py={class:"fox-elevator__list__item__code"},hy=["onClick"],gy=["innerHTML"],yy={class:"fox-elevator__fixed-title"},vy={class:"fox-elevator__bars__inner"},by=["data-index","onClick"];function ky(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",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",vy,[(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 Kt=ne(my,[["render",ky]]),{componentName:u2,create:Sy,scope:Cy}=X("pagination"),wy=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:a}=re.useFoxI18n(Cy),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:v,itemsPerPage:y}=t.toRefs(e),k=+h.value||Math.ceil(+v.value/+y.value);return Math.max(1,k)}),f=(h,v)=>{h>c.value||h<1||(h!=l.value&&n("update:modelValue",h),v&&n("change",h))},p=(h,v,y=!1)=>({number:h,text:v,active:y}),d=t.computed(()=>{if(r.value=="simple")return;let h=[];const v=c.value,y=+s.value;let k=1,b=v;const u=v>y;u&&(k=Math.max(l.value-Math.floor(y/2),1),b=k+y-1,b>v&&(b=v,k=b-y+1));for(var m=k;m<=b;m++){const g=p(m,m,l.value==m);h.push(g)}if(u&&y>0&&i.value){if(k>1){const g=p(k-1,"...");h.unshift(g)}if(b<v){const g=p(b+1,"...");h.push(g)}}return h});return t.watchEffect(()=>{f(l.value,!1)}),{...o,modelValue:l,select:f,countRef:c,mode:r,pages:d,forceEllipses:i}}}),Ny={class:"fox-pagination"},By={key:0,class:"fox-pagination-contain"},Ay=["onClick"],Vy={key:1,class:"fox-pagination-contain"},Ty={class:"fox-pagination-simple"};function $y(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Ny,[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",By,[(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,Ay))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Vy,[t.createElementVNode("view",Ty,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const Ml=ne(wy,[["render",$y]]),Ey=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let h=await o(l,a);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=Je();let f="";const p=(h,v)=>{let y=h;switch(e.direction=="horizontal"?(f=h>0?"right":"left",y=Math.abs(y)/r.value.width*100):(f=v>0?"bottom":"top",y=v,y=Math.abs(y)/r.value?.height*100),y>85&&(y=85),f){case"left":case"top":n.isEnd()&&(y=0,i.moving=!1);break;case"right":case"bottom":y=-y,n.isBegin()&&(y=0,i.moving=!1);break}i.offset=y};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,p(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,f){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class xy{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Dy}=X("tabs"),Iy=Dy({components:{[Ot.name]:Ot,JoySmile:oe.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=B=>{B.forEach((w,I)=>{let P=w.type;if(P=P.name||P,P=="fox-tab-pane"){let $=new xy;if(w.props?.title||w.props?.["pane-key"]||w.props?.paneKey){let x=at(w.props?.["pane-key"]),K=x=="number"||x=="string"?String(w.props?.["pane-key"]):null,D=at(w.props?.paneKey),W=D=="number"||D=="string"?String(w.props?.paneKey):null;$.title=w.props?.title,$.paneKey=K||W||String(I),$.disabled=w.props?.disabled}r.value.push($)}else{if(w.children==" ")return;Array.isArray(w.children)&&s(w.children)}})},i=t.ref(e.modelValue||0),c=B=>{let w=r.value.findIndex(I=>I.paneKey==B);r.value.length==0||w==-1||(i.value=w)},f=t.computed(()=>e.titleScroll&&e.direction==="vertical"),p=t.ref(),d=t.ref([]),h=B=>{const w=p.value,I=d.value;if(!w||!I||!I[i.value])return;const P=I[i.value];let $=0;e.direction==="vertical"?$=P.offsetTop-w.offsetTop+10-(w.offsetHeight-P.offsetHeight)/2:$=P.offsetLeft-(w.offsetWidth-P.offsetWidth)/2,v(w,$,B?0:.3,e.direction)},v=(B,w,I,P)=>{let $=0;const x=P==="horizontal"?B.scrollLeft:B.scrollTop,K=I===0?1:Math.round(I*1e3/16);function D(){P==="horizontal"?B.scrollLeft+=(w-x)/K:B.scrollTop+=(w-x)/K,++$<K&&Re(D)}D()},y=(B=a.default?.())=>{r.value=[],B=B?.filter(w=>typeof w.children!="string"),B&&B.length&&s(B),c(e.modelValue),t.nextTick(()=>{h()})},k=B=>{l=B.fixed};t.watch(()=>a.default?.(),B=>{y(B)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,B=>{if(c(B),h(),l){let w=Ve(o.value).top+b(),I=Math.ceil(w-e.top);window.scrollTo({top:I,behavior:"smooth"})}}),t.onMounted(y),t.onActivated(y);const u={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,u.updateValue(r.value[i.value])},prev:()=>{i.value-=1,u.updateValue(r.value[i.value])},updateValue:B=>{n("update:modelValue",B.paneKey),n("change",B)},tabChange:(B,w)=>{n("click",B),!(B.disabled||i.value==w)&&(i.value=w,u.updateValue(B))},setTabItemRef:(B,w)=>{d.value[w]=B}},{tabsContentRef:m,touchState:g,touchMethods:C}=Ey(e,u),A=t.computed(()=>{let B=i.value*100;g.moving&&(B+=g.offset);let w={transform:e.direction=="horizontal"?`translate3d(-${B}%, 0, 0)`:`translate3d( 0,-${B}%, 0)`,transitionDuration:g.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(w={}),w}),S=t.computed(()=>({background:e.background})),V=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),N=t.computed(()=>{if(!e.titleGutter)return{};const B=he(e.titleGutter);return e.direction==="vertical"?{marginTop:B,marginBottom:B}:{marginLeft:B,marginRight:B}}),T=t.computed(()=>a.fixedTitle);return{navRef:p,tabsContentRef:m,titles:r,contentStyle:A,tabsNavStyle:S,titleStyle:N,tabsActiveStyle:V,container:o,getScrollY:f,onStickyScroll:k,...u,...C,hasFixedTitle:T}}}),qy=["onClick"],My={key:0,class:"fox-tabs__titles-fixed-item"},Py=["onClick"],Ly={key:0,class:"fox-tabs__titles-fixed-item"};function zy(e,n,a,o,l,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,f),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,qy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",My,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,f),key:c.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,f)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Py))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Ly,[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 Pl=ne(Iy,[["render",zy]]),{create:Fy}=X("tab-pane"),Ry=Fy({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=t.inject("tabsOpiton"),o=t.computed(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:o}}});function Oy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const Ll=ne(Ry,[["render",Oy]]),{componentName:wr,create:Ky}=X("indicator"),Uy=Ky({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:a}=t.toRefs(e);return{classes:t.computed(()=>{const l=wr;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:wr,padZero:et}}});function Hy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,s=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[s===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(s)||s),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const zl=ne(Uy,[["render",Hy]]),{componentName:jy,create:Wy}=X("side-navbar"),Yy=Wy({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=t.ref(null),a=t.reactive({count:1,observer:null}),o=t.computed(()=>({[jy]:!0})),l=(s,i=1)=>{for(let c=0;c<s.length;c++){let f=s[c];f?.children?.[0]&&(f.children[0].style.paddingLeft=+e.offset*i+"px",f.className.includes("fox-side-navbar-item")||l(Array.from(f.children[1].children),++a.count))}a.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),l(s))};return t.onMounted(()=>{r(),a.observer=new MutationObserver(function(){a.count=1,r()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(a),list:n,classes:o}}}),Xy={class:"fox-side-navbar__content"},Qy={class:"fox-side-navbar__content__list",ref:"list"};function Gy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Xy,[t.createElementVNode("view",Qy,[t.renderSlot(e.$slots,"default")],512)])],2)}const Fl=ne(Yy,[["render",Gy]]),{componentName:Zy,create:Jy}=X("side-navbar-item"),_y=Jy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[Zy]:!0})),handleClick:()=>{n.emit("click")}})}),ev=["ikey"],tv={class:"fox-side-navbar-item__title"};function nv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",tv,t.toDisplayString(e.title),1)],10,ev)}const Rl=ne(_y,[["render",nv]]),{componentName:ov,create:lv}=X("sub-side-navbar"),av=lv({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:oe.ArrowDown2,ArrowUp2:oe.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[ov]:!0})),l=t.computed(()=>({height:a.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),a.direction=a.direction?"":"up"};return t.onMounted(()=>{a.direction=e.open?"":"up"}),{...t.toRefs(a),classes:o,style:l,handleClick:r}}}),rv=["ikey"],sv={class:"fox-sub-side-navbar__title__text"},iv={class:"fox-sub-side-navbar__title__icon"};function cv(e,n,a,o,l,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",sv,t.toDisplayString(e.title),1),t.createElementVNode("span",iv,[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,rv)}const Ol=ne(av,[["render",cv]]),{componentName:uv,create:dv}=X("range"),fv=dv({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const a=t.ref(0);let o,l;const r=t.ref(),s=t.ref(),i=Je(),c=t.computed(()=>{const{marks:$,max:x,min:K}=e;return Object.keys($).map(parseFloat).sort((H,Z)=>H-Z).filter(H=>H>=K&&H<=x)}),f=t.computed(()=>Number(e.max)-Number(e.min)),p=t.computed(()=>{const $=uv;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),d=t.computed(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),v=t.computed(()=>({borderColor:e.buttonColor})),y=$=>!!e.range&&Array.isArray($),k=()=>{const{modelValue:$,min:x}=e;return y($)?`${($[1]-$[0])*100/f.value}%`:`${($-Number(x))*100/f.value}%`},b=()=>{const{modelValue:$,min:x}=e;return y($)?`${($[0]-Number(x))*100/f.value}%`:"0%"},u=t.computed(()=>e.vertical?{height:k(),top:b(),background:e.activeColor,transition:s.value?"none":void 0}:{width:k(),left:b(),background:e.activeColor,transition:s.value?"none":void 0}),m=$=>{const x="fox-range-mark",{modelValue:K,max:D,min:W}=e;let H=Number(W),Z=Number(D);if(e.range){const[j,q]=K;H=j,Z=q}else Z=K;let _=$<=Z&&$>=H;return{[`${x}-text`]:!0,[`${x}-text-active`]:_}},g=$=>{const{min:x,vertical:K}=e;let D={left:`${($-Number(x))/f.value*100}%`};return K&&(D={top:`${($-Number(x))/f.value*100}%`}),D},C=$=>{const{modelValue:x,max:K,min:D}=e;let W=Number(D),H=Number(K);if(e.range){const[j,q]=x;W=j,H=q}return{background:$<=H&&$>=W?e.activeColor:e.inactiveColor}},A=$=>{const{min:x,max:K,step:D}=e;return $=Math.max(+x,Math.min($,+K)),Math.round($/+D)*+D},S=($,x)=>JSON.stringify($)===JSON.stringify(x),V=$=>$[0]>$[1]?$.slice(0).reverse():$,N=($,x)=>{y($)?$=V($).map(A):$=A($),S($,e.modelValue)||n("update:modelValue",$),x&&!S($,o)&&n("change",$)},T=$=>{if(e.disabled)return;const{min:x,modelValue:K}=e,D=Ve(r);let W=$.clientX-D.left,H=D.width;e.vertical&&(W=$.clientY-D.top,H=D.height);const Z=Number(x)+W/H*f.value;if(y(K)){const[_,j]=K,q=(_+j)/2;Z<=q?N([Z,j],!0):N([_,Z],!0)}else N(Z,!0)},B=$=>{e.disabled||(i.start($),l=e.modelValue,y(l)?o=l.map(A):o=A(l),s.value="start")},w=$=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move($),s.value="draging";const x=Ve(r);let K=i.deltaX.value,D=x.width,W=K/D*f.value;e.vertical&&(K=i.deltaY.value,D=x.height,W=K/D*f.value),y(o)?l[a.value]=o[a.value]+W:l=o+W,N(l),$.stopPropagation(),$.preventDefault()},I=()=>{e.disabled||(s.value==="draging"&&(N(l,!0),n("drag-end")),s.value="")},P=$=>vn(e.modelValue)&&typeof $=="number"?e.modelValue[$]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:h,buttonStyle:v,onClick:T,onTouchStart:B,onTouchMove:w,onTouchEnd:I,...t.toRefs(e),barStyle:u,curValue:P,buttonIndex:a,containerClasses:d,markClassName:m,marksStyle:g,marksList:c,tickStyle:C}}}),mv={key:0,class:"fox-range-min"},pv={key:0,class:"fox-range-mark"},hv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],gv={key:0,class:"number"},yv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],vv={key:0,class:"number"},bv={key:1,class:"fox-range-max"};function kv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",mv,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",pv,[(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",gv,t.toDisplayString(e.curValue(s)),1))],4))],42,hv)),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",vv,t.toDisplayString(e.curValue()),1))],4))],40,yv))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",bv,t.toDisplayString(+e.max),1))],2)}const Ut=ne(fv,[["render",kv]]),{create:Sv,scope:Cv}=X("short-password"),wv=Sv({components:{[de.name]:de,Tips:oe.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:a}=re.useFoxI18n(Cv),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>f(Number(e.length))),s=t.ref(e.visible),i=d=>{d.stopPropagation(),n("focus")};t.watch(()=>e.visible,d=>{s.value=d}),t.watch(()=>e.modelValue,d=>{l.value=d,String(d).length===r.value&&n("complete",d)});const c=()=>{n("update:visible",!1),n("close")},f=d=>Math.min(Math.max(4,d),6);return{comLen:r,realInput:l,onTouchStart:i,range:f,close:c,onTips:()=>{n("tips")},show:s,...o}}}),Nv={class:"fox-short-password-title"},Bv={class:"fox-short-password-subtitle"},Av={class:"fox-short-password-wrapper"},Vv={key:0,class:"fox-short-password__item-icon"},Tv={class:"fox-short-password__message"},$v={class:"fox-short-password--error"},Ev={key:0,class:"fox-short-password--forget"};function xv(e,n,a,o,l,r){const s=t.resolveComponent("Tips"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",Nv,t.toDisplayString(e.title),1),t.createElementVNode("view",Bv,t.toDisplayString(e.desc),1),t.createElementVNode("div",Av,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:f},[String(e.realInput).length>f?(t.openBlock(),t.createElementBlock("view",Vv)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",Tv,[t.createElementVNode("view",$v,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Ev,[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 Kl=ne(wv,[["render",xv]]);class Dv{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Iv=class{options;constructor(n){this.options=n}upload(){const n=this.options,a=new XMLHttpRequest;if(a.timeout=n.timeout,a.upload){a.upload.addEventListener("progress",o=>{n.onProgress?.(o,n)},!1),a.onreadystatechange=()=>{a.readyState===4&&(a.status==n.xhrState?n.onSuccess?.(a.responseText,n):n.onFailure?.(a.responseText,n))},a.withCredentials=n.withCredentials,a.open(n.method,n.url,!0);for(const[o,l]of Object.entries(n.headers))a.setRequestHeader(o,l);n.onStart?.(n),n.beforeXhrUpload?n.beforeXhrUpload(a,n):a.send(n.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class qv{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Is=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);gt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:Mv}=X("progress"),Pv=Mv({components:{Checked:oe.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,a=t.ref(e.strokeWidth+"px"),o=t.ref(),l=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:a,percentage:r,bgStyle:s,textStyle:i,progressOuter:o,insideText:l,slotDefault:n}}}),Lv={class:"fox-progress"},zv={key:0,class:"fox-progress-text"};function Fv(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Lv,[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",zv,[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 Ht=ne(Pv,[["render",Fv]]),{componentName:Rv,create:Ov,scope:Kv}=X("uploader"),Uv=Ov({components:{[Ht.name]:Ht,Photograph:oe.Photograph,Failure:oe.Failure,Loading:oe.Loading,Del:oe.Del,Link:oe.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Kv),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[Rv]:!0})),s=()=>{let m={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(m.capture="camera"),t.h("input",m)},i=m=>{m.value=""},c=m=>{n("file-item-click",{fileItem:m})},f=(m,g)=>{const C=new Dv;C.url=e.url,C.formData=m.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=m.formData.get(e.name)}catch{}C.onStart=S=>{m.status="ready",m.message=a("readyUpload"),p(g),n("start",S)},C.onProgress=(S,V)=>{m.status="uploading",m.message=a("uploading"),m.percentage=(S.loaded/S.total*100).toFixed(0),n("progress",{event:S,option:V,percentage:m.percentage})},C.onSuccess=(S,V)=>{m.status="success",m.message=a("success"),n("success",{responseText:S,option:V,fileItem:m}),n("update:fileList",o)},C.onFailure=(S,V)=>{m.status="error",m.message=a("error"),n("failure",{responseText:S,option:V,fileItem:m})};let A=new Iv(C);e.autoUpload?A.upload():l.push(new Promise((S,V)=>{S(A)}))},p=(m=-1)=>{m>-1?l.splice(m,1):(l=[],o.splice(0,o.length))},d=()=>{Promise.all(l).then(m=>{m.forEach(g=>g.upload())})},h=m=>{m.forEach((g,C)=>{const A=new FormData;for(const[V,N]of Object.entries(e.data))A.append(V,N);A.append(e.name,g);const S=t.reactive(new qv);if(S.name=g.name,S.status="ready",S.type=g.type,S.formData=A,S.message=a("waitingUpload"),f(S,C),e.isPreview&&g.type.includes("image")){const V=new FileReader;V.onload=N=>{S.url=N.target.result,o.push(S)},V.readAsDataURL(g)}else o.push(S)})},v=m=>{const g=e.maximum*1,C=e.maximize*1,A=new Array;m=m.filter(V=>V.size>C?(A.push(V),!1):!0),A.length&&n("oversize",A);let S=m.length+o.length;return S>g&&m.splice(m.length-(S-g)),m},y=(m,g)=>{o.splice(g,1),n("delete",{file:m,fileList:o,index:g})},k=(m,g)=>{p(g),Is(e.beforeDelete,{args:[m,o],done:()=>y(m,g)})},b=m=>{if(e.disabled)return;const g=m.target;let{files:C}=g;e.beforeUpload?e.beforeUpload(C).then(A=>u(A)):u(C),n("change",{fileList:o,event:m}),e.clearInput&&i(g)},u=m=>{const g=v(new Array().slice.call(m));h(g)};return{onChange:b,onDelete:k,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:p,submit:d,renderInput:s}}}),Hv={key:0,class:"fox-uploader__slot"},jv={key:0,class:"fox-uploader__preview-img"},Wv={key:0,class:"fox-uploader__preview__progress"},Yv={class:"fox-uploader__preview__progress__msg"},Xv=["onClick"],Qv=["onClick","src"],Gv={key:3,class:"fox-uploader__preview-img__file"},Zv=["onClick"],Jv={class:"file__name_tips"},_v={class:"tips"},e0={key:1,class:"fox-uploader__preview-list"},t0=["onClick"],n0={class:"file__name_tips"};function o0(e,n,a,o,l,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),f=t.resolveComponent("Del"),p=t.resolveComponent("fox-progress"),d=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",Hv,[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,v)=>(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",jv,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",Wv,[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",Yv,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:y=>e.onDelete(h,v)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,Xv)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:y=>e.fileItemClick(h),src:h.url},null,8,Qv)):(t.openBlock(),t.createElementBlock("view",Gv,[t.createElementVNode("view",{onClick:y=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",Jv,t.toDisplayString(h.name),1)],8,Zv)])),t.createElementVNode("view",_v,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",e0,[t.createElementVNode("view",{onClick:y=>e.fileItemClick(h),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[h.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",n0,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(f,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:y=>e.onDelete(h,v)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,t0),h.status=="uploading"?(t.openBlock(),t.createBlock(p,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(d,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Ul=ne(Uv,[["render",o0]]),l0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9S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Q0E5BuECYAJqCZAGPl+pxMQPoeSZwUy6ck7sUlBtziJ59P/urj33+ZlFIDa8wHAOcAhujftQYwY5xPSOb5FEQX/WPcI3LumqQQPwEMeg8LrD2sq0DnpdajvkFLIW4AvPJcjx/WJ50x5oX/Gs75qiiKpb9XSg2NMc+r5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:r0,scope:s0}=X("number-keyboard"),i0=r0({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:a}=re.useFoxI18n(s0),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:u}=e;let m={id:"lock",type:"lock"},g=Array.isArray(u)?u:[u];return g.length===1&&(m={id:g[0],type:"custom"}),[...c(),m,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const u=[];for(let m=1;m<=9;m++)u.push({id:m,type:"number"});return e.randomKeys?u.sort(()=>Math.random()>.5?1:-1):u}function f(){const u=c(),{customKey:m}=e;let g=Array.isArray(m)?m:[m];return g.length>2&&(g=[g[0],g[1]]),g.length==2&&e.title&&e.type!="rightColumn"&&(g=[g[0]]),g.length===1?e.title&&e.type!="rightColumn"?u.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):u.push({id:0,type:"number"},{id:g[0],type:"custom"}):g.length===2&&u.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:g[1],type:"custom"}),u}const p=t.computed(()=>e.type=="rightColumn"||e.title!=""?f():i()),d=()=>{e.visible&&n("blur")},h=u=>{const m=s.value;m&&!m.contains(u.target)&&d()};t.watch(()=>e.visible,u=>{r.value=u,u?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function v(u,m){m.stopPropagation(),l.value=u.id,(u.type=="number"||u.type=="custom")&&(n("input",u.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+u.id)),u.type=="lock"&&b(),u.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function y(u){u.stopPropagation()}function k(u){u.preventDefault(),l.value=void 0}function b(){n("update:visible",!1),n("close")}return{...o,delImg:l0,lockImg:a0,clickKeyIndex:l,defaultKey:i,closeBoard:b,onTouchEnd:k,onTouchMove:y,onTouchstart:v,keysList:p,genCustomKeys:f,getBasicKeys:c,root:s,show:r}}}),c0={ref:"root"},u0={class:"fox-number-keyboard"},d0={key:0,class:"fox-number-keyboard__header"},f0={class:"fox-number-keyboard__title"},m0={class:"fox-number-keyboard__body"},p0={class:"fox-number-keyboard__keys"},h0=["onTouchstart"],g0=["src"],y0=["src"],v0={key:0,class:"fox-number-keyboard__sidebar"},b0={class:"fox-key__wrapper"},k0=["src"];function S0(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",c0,[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",u0,[e.title?(t.openBlock(),t.createElementBlock("div",d0,[t.createElementVNode("h3",f0,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",m0,[t.createElementVNode("div",p0,[(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,g0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,y0)):t.createCommentVNode("",!0)],42,h0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",v0,[t.createElementVNode("div",b0,[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,k0)],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 Hl=ne(i0,[["render",S0]]),{componentName:C0,create:w0}=X("swipe"),N0=w0({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const a=t.computed(()=>({[C0]:!0})),o=m=>m.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,f="",p="";const d=t.reactive({offset:0,moving:!1}),h=(m="")=>{c=!0,m&&(d.offset=m==="left"?-i.value:r.value),n("open",{name:e.name,position:f||m})},v=()=>{d.offset=0,c=!1,n("close",{name:e.name,position:f})},y=t.computed(()=>({transform:`translate3d(${d.offset}px, 0, 0)`})),k=m=>{f=m>0?"right":"left";let g=m;switch(f){case"left":c&&p===f?g=-i.value:g=Math.abs(m)>i.value?-i.value:m;break;case"right":c&&p===f?g=r.value:g=Math.abs(m)>r.value?r.value:m;break}d.offset=g},b=Je();return{classes:a,touchStyle:y,...{onTouchStart(m){e.disabled||b.start(m)},onTouchMove(m){e.disabled||(b.move(m),b.isHorizontal()&&(d.moving=!0,k(b.deltaX.value),e.touchMovePreventDefault&&m.preventDefault(),e.touchMoveStopPropagation&&m.stopPropagation()))},onTouchEnd(){if(d.moving)switch(d.moving=!1,p=f,f){case"left":Math.abs(d.offset)<=i.value/2?v():(d.offset=-i.value,h());break;case"right":Math.abs(d.offset)<=r.value/2?v():(d.offset=r.value,h());break}}},leftRef:l,rightRef:s,open:h,close:v}}}),B0={class:"fox-swipe__left",ref:"leftRef"},A0={class:"fox-swipe__content"},V0={class:"fox-swipe__right",ref:"rightRef"};function T0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",B0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",A0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",V0,[t.renderSlot(e.$slots,"right")],512)],38)}const jt=ne(N0,[["render",T0]]),{componentName:$0,create:E0}=X("action-sheet"),x0=E0({components:{[de.name]:de,Loading:oe.Loading},props:{...ze,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const a=!!t.useSlots().default,o=t.computed(()=>({[$0]:!0}));return{slotDefault:a,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,f)=>{!c.disable&&!c.loading&&(n("choose",c,f),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),D0={key:0,class:"fox-action-sheet__title"},I0={key:1},q0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},M0={key:1,class:"fox-action-sheet__menu"},P0=["onClick"],L0={key:1},z0={class:"fox-action-sheet__subdesc"};function F0(e,n,a,o,l,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",D0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",I0,[e.description?(t.openBlock(),t.createElementBlock("view",q0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",M0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:f,onClick:p=>e.chooseItem(c,f)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",L0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",z0,t.toDisplayString(c[e.optionSubTag]),1)],14,P0))),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 jl=ne(x0,[["render",F0]]),{componentName:R0,create:O0}=X("backtop"),Wl=O0({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:a}){const o=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),l=t.computed(()=>({[R0]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function i(y=0){o.scrollEl instanceof Window?window.scrollTo(0,y):o.scrollEl.scrollTop=y}function c(){let y=Ye(function k(){var b=e.duration-Math.max(0,o.startTime-+new Date+e.duration),u=b*-o.scrollTop/e.duration+o.scrollTop;i(u),y=Ye(k),(b==e.duration||u==0)&&Ar(y)})}function f(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function p(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function d(y){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",y)}function h(){v.value?o.scrollEl=v.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),f()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),h()}),t.onUnmounted(()=>{p()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,p()});const v=t.computed(()=>{if(typeof a.content=="function"){const y=a.content();return Array.isArray(y)?y[0]:y}return null});return()=>{const y=[];v.value&&y.push(v.value);const k=[];if(typeof a.default=="function")k.push(a.default());else{const u=t.h(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(u)}const b=t.h("div",{class:l.value,style:r.value,onClick:d},k);return y.push(b),y}}}),{componentName:K0,create:U0}=X("drag"),H0=U0({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),l=t.computed(()=>({[K0]:!0}));function r(){const d=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=d.clientWidth,o.screenHeight=d.clientHeight}function s(d){o.boundary.left?+d.style.left.split("px")[0]>o.boundary.left?(d.style.left=+d.style.left.split("px")[0]-10+"px",Re(()=>{s(d)})):d.style.left=`${o.boundary.left}px`:+d.style.left.split("px")[0]>10?(d.style.left=+d.style.left.split("px")[0]-10+"px",Re(()=>{s(d)})):d.style.left="0px"}function i(d,h){h-parseInt(d.style.left.split("px")[0])>10?(d.style.left=parseInt(d.style.left.split("px")[0])+10+"px",Re(()=>{i(d,h)})):d.style.left=h+"px"}function c(d){d.preventDefault();const h=d.currentTarget;if(d.targetTouches.length===1){const v=d.targetTouches[0];o.nx=v.clientX-o.position.x,o.ny=v.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const y=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>y?o.xPum=y:o.xPum<=o.boundary.left&&(o.xPum=o.boundary.left),o.yPum<o.boundary.top?o.yPum=o.boundary.top:o.yPum>o.screenHeight-o.elHeight-o.boundary.bottom&&(o.yPum=o.screenHeight-o.elHeight-o.boundary.bottom),e.direction!="y"&&(h.style.left=o.xPum+"px"),e.direction!="x"&&(h.style.top=o.yPum+"px")}}function f(d){const h=d.currentTarget;let y=d.changedTouches[0].clientX;const k=o.screenWidth-o.elWidth-o.boundary.right;y>k?y=k:y<o.boundary.left?y=o.boundary.left:y=y<o.screenWidth/2?o.boundary.left:k,e.direction!="y"&&e.attract&&(y<o.screenWidth/2?Re(()=>{s(h)}):Re(()=>{i(h,k)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function p(d){const h=d.currentTarget,v=d.touches[0],y=d.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=v.clientX,o.position.y=v.clientY,o.nx=y.clientX-o.position.x,o.ny=y.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}return t.onMounted(()=>{r(),o.boundary=e.boundary}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1)}),t.onDeactivated(()=>{o.keepAlive=!0;const d=a;d.value.removeEventListener("touchstart",p),d.value.removeEventListener("touchmove",c),d.value.removeEventListener("touchend",f)}),{classes:l,myDrag:a,touchStart:p,touchMove:c,touchEnd:f}}});function j0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=s=>e.touchStart(s)),onTouchmove:n[1]||(n[1]=s=>e.touchMove(s)),onTouchend:n[2]||(n[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const Yl=ne(H0,[["render",j0]]),W0={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}},Y0=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function X0(e,n,a,o,l){return{props:{...ze,...W0},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:f}=re.useFoxI18n(n),p=f(r,["confirmText","cancelText"]),d=e,h=t.ref(r.visible);t.watch(()=>r.visible,S=>{h.value!==S&&(h.value=S,S&&c("opened"))});const v=S=>{h.value=S,c("update:visible",S),c("update",S)},y=S=>{if(c(S),!(S==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const V=r.beforeClose(S);gt(V)?V.then(N=>{N&&(v(!1),c("closed",S))}):V===!0&&(v(!1),c("closed",S))}else v(!1),c("closed",S)},k=()=>{y("confirm")},b=()=>{y("cancel")},u=()=>{y("close")},m=(S,V)=>Y0(S)?(V.src=S,t.h("img",V)):typeof S=="string"?(Array.isArray(V.class)?V.class.push(S):V.class&&typeof V.class=="object"?V[`${S}`]=!0:typeof V.class=="string"?V.class=`${V.class}, ${S}`:V.class=S,t.h(r.tag,V)):t.h(S,V),g=()=>{const S=[];if(i.header){const N=i.header();S.push(N)}else{if(r.title){const N=t.h("view",{class:`${d}__header-title`},[r.title]);S.push(N)}if(r.showClose){const N={class:[`${d}__header-close-icon`],onClick:u},T=r.closeIcon??l,B=m(T,N);S.push(B)}}if(S.length===0)return null;const V={class:[`${d}__header`]};return t.h("view",V,S)},C=()=>{const S=[];if(i.default)S.push(i.default());else{const N={class:[`${d}__content`]};if(r.textAlign&&N.class.push(r.textAlign),typeof r.content=="string"){N.innerHTML=r.content;const T=t.h("view",N);S.push(T)}else if(typeof r.content=="function"){const T=t.h("view",N,[r.content()]);S.push(T)}else{const T=t.h("view",N,[r.content]);S.push(T)}}if(S.length===0)return null;const V={class:[`${d}__body`]};return t.h("view",V,S)},A=()=>{if(!r.showFooter)return null;const S=[];if(i.footer)S.push(i.footer());else if(r.plain){if(r.showCancelButton){const N={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},onClick:b};r.cancelButtonClass&&N.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(N.style,r.cancleButtonStyle);const T=t.h("view",N,[r.cancelButtonText??p.cancelText.value]);S.push(T)}if(r.showConfirmButton){const N={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},onClick:k};r.confirmButtonClass&&N.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(N.style,r.confirmButtonStyle);const T=t.h("view",N,[r.confirmButtonText??p.confirmText.value]);S.push(T)}}else{if(r.showCancelButton){const N={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:b};r.cancelButtonClass&&N.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(N.style,r.cancleButtonStyle);const T=t.h(o,N,{default:()=>[r.cancelButtonText??p.cancelText.value]});S.push(T)}if(r.showConfirmButton){const N={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};r.confirmButtonClass&&N.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(N.style,r.confirmButtonStyle);const T=t.h(o,N,{default:()=>[r.confirmButtonText??p.confirmText.value]});S.push(T)}}if(S.length===0)return null;const V={class:[`${d}__footer`,`${d}__footer--${r.footerDirection}`]};return t.h("view",V,S)};return()=>{const S=[],V=g();V&&S.push(V);const N=C();N&&S.push(N);const T=A();T&&S.push(T);const B={class:{[`${d}`]:!0,[`${d}--plain`]:r.plain}},w=t.h("view",B,S),I=[`${d}__popup`];r.popClass&&I.push(r.popClass);const P={};r.width&&(P.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(P.height=typeof r.height=="number"?`${r.height}px`:r.height);const x={...ve(r,ze),popClass:I.join(" "),style:P,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":v,position:r.position,onClickOverlay:u,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,x,{default:()=>w})}}}}const{componentName:Q0,create:G0,scope:Z0}=X("dialog"),qs=G0(X0(Q0,Z0,de,Me,oe.Close));class J0{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 _0{options=new J0;constructor(n){let a=Object.assign(this.options,n),o=document.body,l=a.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=a.teleport);const r=document.createElement("view"),s=`dialog-${a.id}`;r.id=s;const i={setup(){return a.onUpdate=f=>{if(f===!1){const p=document.querySelector(`#${s}`);p&&p.parentNode?.removeChild(p)}},a?.onOpened&&a?.onOpened(),()=>t.h(qs,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Wt=function(e){return new _0(e)};Wt.install=e=>{e.use(qs),e.config.globalProperties.$dialog=Wt};const eb={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}},tb=(e,n,a)=>({props:{...eb},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=_o(),f=t.ref(),p=$s(f),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),v=t.computed(()=>{switch(d.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),y=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),k=t.computed(()=>{const V={};return o.headHeight!=50&&(V.height=he(o.headHeight)),V}),b=V=>{const N=+(o.pullDistance||o.headHeight);let T=V;return V>N&&(V<N*2?T=(V+N)/2:T=N+V/4),Math.round(T)},u=(V,N)=>{const T=+(o.pullDistance||o.headHeight);d.distance=V,N?d.status="loading":V===0?d.status="normal":V<T?d.status="pulling":d.status="loosing",l("change",{status:d.status,distance:V})},m=()=>d.status!=="loading"&&d.status!=="complete",g=()=>p.value==window?Es()==0:p.value&&p.value.scrollTop==0,C=V=>{m()&&(g()?(c.start(V),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},A=V=>{m()&&d.moving&&(c.move(V),c.isVertical()&&c.state.deltaY>0&&d.isPullRefresh&&(V.cancelable&&V.preventDefault(),u(b(c.state.deltaY))))},S=()=>{d.moving=!1,d.isPullRefresh&&m()&&c.state.deltaY&&(d.status==="loosing"?(u(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):u(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,V=>{V?u(+o.headHeight,!0):u(0)}),()=>{const V=[];let N=null;if(d.status==="loading"){if(N=r?.loading?.()??null,!N){const K={class:["fox-pull-refresh-container-topbox-icon"]};N=t.h(a,K)}}else d.status==="pulling"?N=r?.pulling?.()??null:d.status==="loosing"&&(N=r?.loosing?.()??null);N&&V.push(N);const T={class:["fox-pull-refresh-container-topbox-text"]},B=t.h("dive",T,[v.value]);V.push(B);const w={class:["fox-pull-refresh-container-topbox"],style:k.value},I=t.h("div",w,V),P={class:"fox-pull-refresh-container",style:y.value},$=t.h("div",P,[I,r?.default?.()]),x={ref:f,class:h.value};return Jo()?Object.assign(x,{onTouchstart:C,onTouchmove:A,onTouchend:S}):Object.assign(x,{onMousedown:C,onMousemove:A,onMouseup:S}),t.h("div",x,[$])}}}),{componentName:nb,create:ob,scope:lb}=X("pull-refresh"),Xl=ob(tb(nb,lb,oe.Loading)),{create:ab}=X("notify"),rb=ab({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 a=()=>{e.onClick&&e.onClick()};let o=null;const l=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,f=>{s.value=e.visible;const p=e.duration;f&&p&&(o=setTimeout(()=>{r()},p))},{immediate:!0});return{onAfterLeave:()=>{l(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:s}}});function sb(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const Ql=ne(rb,[["render",sb]]),qo={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let ft=[],Pt=[];const Ms=e=>{if(e){const n=document.getElementById(e);Pt=Pt.filter(a=>a.id!==e),ft=ft.filter(a=>a!==e),n&&document.body.removeChild(n)}else ft.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Pt=[],ft=[]},ib=e=>{const n=document.getElementById(e.id);if(n){const a=Pt.find(l=>l.id===e.id);a?e={...qo,...a,...e}:e={...qo,...e};const o=t.createVNode(Ql,e);return t.render(o,n),o.component.data}},xt=e=>{e.unmount=Ms;let n;if(e.id){if(n=e.id,ft.find(r=>r===e.id))return ib(e)}else n=new Date().getTime()+"";e={...qo,...e},e.id=n,ft.push(e.id),Pt.push(e);const a=document.createElement("view");a.id="notify-"+e.id;const o={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(a)},e.duration)}),()=>t.h(Ql,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Dt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Gl={text(e,n={}){return Dt(e),xt({...n,msg:e})},primary(e,n={}){return Dt(e),xt({...n,msg:e,type:"primary"})},success(e,n={}){return Dt(e),xt({...n,msg:e,type:"success"})},danger(e,n={}){return Dt(e),xt({...n,msg:e,type:"danger"})},warn(e,n={}){return Dt(e),xt({...n,msg:e,type:"warning"})},hide(){Ms()},install(e){e.use(Ql)}},{create:cb}=X("toast"),ub=cb({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,v=>{v&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const v=ie(e.iconSize);return t.h(e.icon,{width:v,height:v,color:e.iconColor})},p=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:f,hasIcon:c,toastBodyClass:p,toastIconWrapperClass:d,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),db={key:1,class:"fox-toast-title"},fb=["innerHTML"];function mb(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",db,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,fb)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Zl=ne(ub,[["render",mb]]),Mo={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 mt=[],Lt=[];const Ps=e=>{if(e){const n=document.getElementById(e);Lt=Lt.filter(a=>a.id!==e),mt=mt.filter(a=>a!==e),n&&document.body.removeChild(n)}else mt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Lt=[],mt=[]},pb=e=>{const n=document.getElementById(e.id);if(n){const a=Lt.find(l=>l.id===e.id);a?e={...Mo,...a,...e}:e={...Mo,...e};const o=t.createVNode(Zl,e);return t.render(o,n),At}},It=e=>{e.unmount=Ps;let n;if(e.id){if(n=e.id,mt.find(l=>l===e.id))return pb(e)}else n=new Date().getTime()+"";e={...Mo,...e},e.id=n,mt.push(e.id),Lt.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Zl,e);return t.render(o,a),document.body.appendChild(a),At},_t=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},At={text(e,n={}){return _t(e),It({...n,type:"text",msg:e})},success(e,n={}){return _t(e),It({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){return _t(e),It({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return _t(e),It({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return It({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){Ps(e)},install(e){e.use(Zl),e.config.globalProperties.$toast=At}},{componentName:f2,create:hb}=X("audio"),gb=hb({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:oe.Service,[Ut.name]:Ut},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var k=["webkitVisibilityState","visibilitychange"];try{for(let b=0;b<k.length;b++)document.addEventListener(k[b],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(b){b.message}});const r=k=>{const b=o.value;e.autoplay&&b&&b.paused&&b.play(),l.second=b.duration,l.duration=y(b.duration),n("can-play",k)},s=k=>{l.currentTime=parseInt(k.target.currentTime)},i=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const k=o.value;l.playing?(k.pause(),l.handPlaying=!1):(k.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},f=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},p=k=>{l.currentDuration=y(k),l.percent=k/l.second*100},d=()=>{l.playing=!1,n("ended")},h=k=>{const b=o.value;b.currentTime=l.second*k/100,n("changeProgress",b.currentTime)},v=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},y=k=>{if(!k)return"00:00:00";let b=parseInt(k),u=Math.floor(b/3600),m=Math.floor((b-u*3600)/60),g=b-u*3600-m*60,C="";return C+=("0"+u.toString()).slice(-2)+":",C+=("0"+m.toString()).slice(-2)+":",C+=("0"+g.toString()).slice(-2),C};return t.watch(()=>l.currentTime,k=>{p(k)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:v,forward:f,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:f,changeStatus:c,progressChange:h,audioEnd:d,onTimeupdate:s,handleMute:v,onCanplay:r,slots:a}}}),yb={class:"fox-audio"},vb={key:0,class:"fox-audio__progress"},bb={class:"fox-audio__time"},kb={class:"fox-audio__bar"},Sb=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),Cb={class:"fox-audio__time"},wb={key:1,class:"fox-audio__icon"},Nb=["controls","src","preload","autoplay","loop","muted"];function Bb(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",yb,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",vb,[t.createElementVNode("div",bb,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",kb,[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(()=>[Sb]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Cb,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",wb,[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,Nb)])}const Jl=ne(gb,[["render",Bb]]),{componentName:m2,create:Ab,scope:Vb}=X("audio-operate"),Tb=Ab({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Vb),o=t.inject("audioParent"),l=t.reactive(o),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(l),customSlot:r,t:a}}}),$b={class:"fox-audio-operate"};function Eb(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",$b,[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 _l=ne(Tb,[["render",Eb]]),{componentName:xb,create:Db}=X("avatar"),Ib=Db({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:o,color:l}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),f=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const y=s?.avatarGroupRef?.value?.children;y&&v(y)});const p=t.computed(()=>({[xb]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),d=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${l.value}`,marginLeft:f.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(f.maxIndex-f.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),v=y=>{f.maxIndex=y.length;for(let k=0;k<y.length;k++)y[k]&&y[k].classList&&y[k].classList[0]=="fox-avatar"&&y[k].setAttribute("data-index",k+1);f.index=i?.value?.dataset?.index,f.index==f.maxIndex&&f.index!=s?.props?.maxCount&&(f.showMax=!0)};return{classes:p,styles:d,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(f)}}});function qb(e,n,a,o,l,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const Yt=ne(Ib,[["render",qb]]),{componentName:Mb,create:Pb}=X("avatar-group"),Lb=Pb({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:a}){t.toRefs(e);const o=t.ref(null),l=t.ref(0),r=t.computed(()=>({[Mb]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function zb(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const ea=ne(Lb,[["render",zb]]);var rn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(rn||{});function Fb(e,n,a){let o=0,l=e.length-1,r=null;for(;o<=l;){r=Math.floor((o+l)/2);const s=e[r],i=a(s,n);if(i===1)return r;i===2?o=r+1:i===3&&(l=r-1)}return r}const{componentName:Rb,create:Ob}=X("list"),Nr=document.documentElement.clientHeight||document.body.clientHeight||667,Kb=Ob({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Nr},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(null),l=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=t.computed(()=>Math.min(e.containerHeight,Nr)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),f=t.computed(()=>({[Rb]:!0})),p=t.computed(()=>r.list.slice(r.start,c.value)),d=()=>{if(l.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let u=0;u<r.list.length;++u)r.cachePositions[u]={index:u,height:e.height,top:u*e.height,bottom:(u+1)*(e.height+e.margin),dValue:0}},v=()=>{let u=l.value.childNodes;u=Array.from(u).filter(V=>V.nodeType===1);const m=u[0];u.forEach((V,N)=>{if(!V)return;const T=Ve(V),{height:B}=T,I=r.cachePositions[N+r.start].height-B;I&&(r.cachePositions[N+r.start].bottom-=I,r.cachePositions[N+r.start].height=B,r.cachePositions[N+r.start].dValue=I)});let g=0;m&&(g=r.start);const C=r.cachePositions.length;let A=r.cachePositions[g].dValue;r.cachePositions[g].dValue=0;for(let V=g+1;V<C;++V){const N=r.cachePositions[V];r.cachePositions[V].top=r.cachePositions[V-1].bottom,r.cachePositions[V].bottom=r.cachePositions[V].bottom-A,N.dValue!==0&&(A+=N.dValue,N.dValue=0)}const S=r.cachePositions[C-1].bottom;r.phantomHeight=S},y=(u=0)=>{let m=Fb(r.cachePositions,u,(C,A)=>{const S=C.bottom;return S===A?rn.eq:S<A?rn.lt:rn.gt});return r.cachePositions[m].bottom<u&&(m+=1),m},k=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},b=()=>{const u=a.value?.scrollTop,{originStartIndex:m}=r,g=y(u);g!==m&&(r.originStartIndex=g,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(u>r.scrollTop?"scroll-up":"scroll-down",u),r.scrollTop=u};return t.watch(()=>e.listData,u=>{if(r.list=u.slice(),r.list.length===u.length)h(),v();else{k();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&v()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:d,visibleData:p,classes:f,getContainerHeight:s,handleScrollEvent:b}}});function Ub(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const ta=ne(Kb,[["render",Ub]]),{componentName:Hb,create:jb}=X("circleprogress"),Wb=jb({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const a=!!t.useSlots().default,o=Math.random().toString(36).slice(-8),l=t.computed(()=>({[Hb]:!0})),r=t.computed(()=>{const p=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${p} 0 90 a 45 45 0 1, ${p} 0 -90`}),s=t.computed(()=>Ae(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let p=283,d=p*Number(e.progress)/100;return{stroke:Ae(e.color)?`url(#${o})`:e.color,strokeDasharray:`${d}px ${p}px`}}),c=t.computed(()=>({stroke:e.pathColor})),f=t.computed(()=>{if(!Ae(e.color))return;let p=e.color;const d=Object.keys(p).sort((v,y)=>parseFloat(v)-parseFloat(y));let h=[];return d.map((v,y)=>{let k={key:"",value:""};k.key=v,k.value=p[v],h.push(k)}),h});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:f,slotDefault:a,refRandomId:o}}}),Yb={viewBox:"0 0 100 100"},Xb=["id"],Qb=["offset","stop-color"],Gb=["d","stroke-width"],Zb=["d","stroke","stroke-linecap","stroke-width"],Jb={class:"fox-circleprogress-text"},_b={key:0};function ek(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",Yb,[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,Qb))),128))],8,Xb)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Gb),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,Zb)])),t.createElementVNode("div",Jb,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",_b,t.toDisplayString(e.progress)+"%",1))])],6)}const na=ne(Wb,[["render",ek]]),{componentName:tk,create:nk}=X("noticebar"),ok=nk({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:oe.Notice,CircleClose:oe.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[tk]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),f=t.computed(()=>{let V={};return e.color&&(V.color=e.color),e.background&&(V.background=e.background),e.direction=="vertical"&&(V.height=`${e.height}px`),V}),p=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),d=t.computed(()=>{let V={};if(e.complexAm)V={transform:`translateY(${r.distance}px)`};else if(r.animate){let N=~~(e.height/e.speed/4);V={transition:`all ${N==0?~~(e.height/e.speed):N}s`,"margin-top":`-${e.height}px`}}return V});t.watch(()=>e.text,V=>{h()}),t.watch(()=>e.list,V=>{r.scrollList=[...V]});const h=V=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const N=o.value.getBoundingClientRect().width,T=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?T>N:e.scrollable,r.isCanScroll?(r.wrapWidth=N,r.offsetWidth=T,r.duration=T/e.speed,r.animationClass="play"):r.animationClass=""},0)},v=V=>{n("click",V)},y=V=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",V)},k=V=>{r.firstRound=!1,n("across-end",V),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},b=()=>{u(),r.timer=setInterval(u,~~(e.height/e.speed/4*1e3)+e.standTime)},u=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},m=()=>{r.timer=setInterval(()=>{let V=100;for(let N=0;N<V;N++)g(N,!(N<V-1))},e.standTime+100*e.speed)},g=(V,N)=>{setTimeout(()=>{r.distance-=e.height/100,N&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},V*e.speed)},C=V=>{n("click",V)},A=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?S(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?m():b()},e.standTime)):h(e.text)}),t.watch(()=>a.default?a.default():[],V=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),S(V))});const S=V=>{V&&V.length>0&&(r.scrollList=V[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:f,contentStyle:p,horseLampStyle:d,wrap:o,content:l,handleClick:v,onClickIcon:y,onAnimationEnd:k,go:C,handleClickIcon:A,slots:a,toPxDesc:he,wrapContentClass:c}}}),lk={class:"fox-noticebar__page-lefticon"},ak={ref:"wrap",class:"fox-noticebar__page-wrap"},rk={class:"showNotica"},sk=["onClick"];function ik(e,n,a,o,l,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:n[3]||(n[3]=(...f)=>e.handleClick&&e.handleClick(...f))},[t.createElementVNode("view",lk,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",ak,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...f)=>e.onAnimationEnd&&e.onAnimationEnd(...f)),"on:webkitAnimationEnd":n[1]||(n[1]=(...f)=>e.onAnimationEnd&&e.onAnimationEnd(...f))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...f)=>e.onClickIcon&&e.onClickIcon(...f),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",rk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(f,p)=>(t.openBlock(),t.createBlock(c,{key:p,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:f},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(f,p)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:p,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:d=>e.go(f)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(f),1)])],12,sk))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=f=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const oa=ne(ok,[["render",ik]]),ck="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19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XMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:p2,create:fk,scope:mk}=X("empty"),pk={empty:ck,error:uk,network:dk},hk=fk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=re.useFoxI18n(mk),a=n(e,["description"]),{image:o,imageSize:l}=t.toRefs(e),r=t.computed(()=>l.value?typeof l.value=="number"?`width:${l.value}px;height:${l.value}px`:`width:${l.value};height:${l.value}`:""),i=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:pk[o.value];return{...a,imageUrl:i,imgStyle:r}}}),gk={class:"fox-empty"},yk=["src"],vk={key:1,class:"fox-empty-description"};function bk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",gk,[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,yk)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",vk,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const la=ne(hk,[["render",bk]]),{create:kk,scope:Sk}=X("video"),Ck=kk({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Sk),o=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),l=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,S=>{S.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,S=>{o.state.isMuted=S?S.muted:!1},{immediate:!0});const s=()=>{o.videoElm=l.value,e.options.autoplay&&setTimeout(()=>{o.videoElm.play()},200),e.options.touchPlay&&(o.showTouchMask=!0),e.options.playsinline&&(o.videoElm.setAttribute("playsinline",e.options.playsinline),o.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),o.videoElm.setAttribute("x5-video-player-type","h5-page"),o.videoElm.setAttribute("x5-video-player-fullscreen",!1)),y(),o.showToolbox?i():(o.videoElm.addEventListener("play",()=>{o.state.playing=!0,n("play",o.videoElm)}),o.videoElm.addEventListener("pause",()=>{o.state.playing=!1,n("pause",o.videoElm)}),o.videoElm.addEventListener("ended",h),o.videoElm.addEventListener("timeupdate",un(d,1e3)))},i=()=>{const S=l.value,V=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=S,o.progressBar.progressElm=V,o.progressBar.pos=V.getBoundingClientRect(),o.videoSet.progress.width=Math.round(V.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return o.state.playing=!0,!1;if(o.state.playing=!o.state.playing,o.videoElm)if(o.state.playing)try{setTimeout(()=>{o.videoElm.play()},200),o.videoElm.addEventListener("progress",()=>{p()}),o.videoElm.addEventListener("timeupdate",un(d,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{v()}else o.videoElm.pause(),n("pause",o.videoElm)},f=S=>{var V=Math.floor(S/3600);V<10&&(V="0"+V);var N=Math.floor(S%3600/60);N<10&&(N="0"+N);var T=Math.round(S%3600%60);T<10&&(T="0"+T);var B="";return V!=0?B=V+":"+N+":"+T:B=N+":"+T,B},p=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},d=()=>{const S=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*S),o.videoSet.totalTime=f(o.videoElm.duration),o.videoSet.displayTime=f(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},h=()=>{o.state.playing=!1,o.state.isEnd=!0,o.videoSet.displayTime="00:00",o.videoSet.progress.current=0,o.videoElm.currentTime=0,n("playend",o.videoElm)},v=()=>{o.state.isError=!0},y=()=>{o.state.vol=e.options.volume},k=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},b=()=>{},u=S=>{let N=S.targetTouches[0].pageX-o.progressBar.pos.left;N<=0&&(N=0),N>=o.videoSet.progress.width&&(N=o.videoSet.progress.width),o.videoSet.progress.current=N;let T=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&g(T,o.videoElm.duration)},m=S=>{let N=S.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=N;let T=N/o.videoSet.progress.width;o.videoElm.duration&&g(T,o.videoElm.duration)},g=(S,V)=>{o.videoElm.currentTime=Math.floor(S*V)},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:l,...t.toRefs(e),...t.toRefs(o),handleError:v,isDisabled:r,play:c,handleMuted:k,touchSlidSrart:b,touchSlidMove:u,touchSlidEnd:m,retry:C,fullScreen:A,t:a}}}),wk={class:"fox-video",ref:"videocon"},Nk=["muted","autoplay","loop","poster","controls","preload"],Bk=["src","type"],Ak={class:"fox-video-controller__now"},Vk={class:"fox-video-controller__progress"},Tk={class:"fox-video-controller__progress-value",ref:"progressBar"},$k=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),Ek=[$k],xk={class:"fox-video-controller__played",ref:"playedBar"},Dk={class:"fox-video-controller__total"},Ik={class:"fox-video-error"},qk={class:"fox-video-error-tip"};function Mk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",wk,[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,Bk)],40,Nk),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",Ak,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",Vk,[t.createElementVNode("div",Tk,[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"]))},Ek,36),t.createElementVNode("div",xk,null,512)],512)]),t.createElementVNode("div",Dk,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",Ik,[t.createElementVNode("p",qk,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 St=ne(Ck,[["render",Mk]]),{create:Pk,componentName:Lk}=X("steps"),aa=Pk({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:a}){const o=t.reactive({children:[]}),l=t.computed(()=>{const i=Lk;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&o.children.push(i)},s=i=>{n("click-step",i)};return t.provide("parent",{relation:r,state:o,props:e,onEmit:s}),()=>t.h("view",{class:l.value},a.default?.())}}),{create:zk,componentName:Fk}=X("step"),Rk=zk({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),n=t.inject("parent");n.relation(e);const a=t.reactive({dot:n.props.progressDot}),o=t.computed(()=>n.state.children.indexOf(e)+1),l=()=>{const c=o.value;return c<+n.props.current?"finish":c===+n.props.current?"process":"wait"},r=t.computed(()=>l()),s=t.computed(()=>{const c=Fk;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),Ok={class:"fox-step-head"},Kk=t.createElementVNode("view",{class:"fox-step-line"},null,-1),Uk={class:"fox-step-icon-inner"},Hk={key:1,class:"fox-step-inner"},jk={class:"fox-step-main"},Wk={class:"fox-step-title"},Yk={key:0},Xk={key:0,class:"fox-step-content"},Qk=["innerHTML"];function Gk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",Ok,[Kk,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",Uk,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",Hk,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",jk,[t.createElementVNode("view",Wk,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Yk,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",Xk,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,Qk)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ra=ne(Rk,[["render",Gk]]),{create:Zk,componentName:co}=X("swiper"),Jk=Zk({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=Je(),s=t.computed(()=>({[co]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const D=co;return{[`${D}-inner`]:!0,[`${D}-vertical`]:i.value}}),f=t.computed(()=>{const D=co;return{[`${D}-pagination`]:!0,[`${D}-pagination-vertical`]:i.value}}),p=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),d=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>l.children.length),v=t.computed(()=>l[i.value?"height":"width"]),y=t.computed(()=>h.value*v.value),k=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-v.value*h.value:0),b=t.computed(()=>(l.active+h.value)%h.value),u=()=>{let D=0;D=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${D}px)`,[i.value?"height":"width"]:`${v.value*h.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},m=D=>{let W=[];const H=l.childrenVNode.length;let Z=a?.default?.();if(Z=Z.filter(_=>_.children&&Array.isArray(_.children)),Z.forEach(_=>{W=W.concat(_.children)}),!H)l.childrenVNode=W.slice(),D.proxy&&l.children.push(D.proxy);else if(H>W.length)l.children=l.children.filter(_=>D.proxy!==_);else if(H<W.length){for(let _=0;_<H;_++)if(W[_].key!==l.childrenVNode[_].key){D.proxy&&l.children.splice(_,0,D.proxy),D.vnode&&l.childrenVNode.splice(_,0,D.vnode);break}H!==W.length&&(D.proxy&&l.children.push(D.proxy),D.vnode&&l.childrenVNode.push(D.vnode))}else l.childrenVNode=W.slice(),D.proxy&&l.children.push(D.proxy)},g=(D,W=0)=>{let H=D*v.value;e.loop||(H=Math.min(H,-k.value));let Z=W-H;return e.loop||(Z=Oe(Z,k.value,0)),Z},C=D=>{const{active:W}=l;return D?e.loop?Oe(W+D,-1,h.value):Oe(W+D,0,h.value-1):W},A=({pace:D=0,offset:W=0,isEmit:H=!1})=>{if(h.value<=1)return;const{active:Z}=l,_=C(D),j=g(_,W);if(e.loop){if(l.children[0]&&j!==k.value){const q=j<k.value;l.children[0].setOffset(q?y.value:0)}if(l.children[h.value-1]&&j!==0){const q=j>0;l.children[h.value-1].setOffset(q?-y.value:0)}}l.active=_,l.offset=j,H&&Z!==l.active&&n("change",b.value),u()},S=()=>{l.moving=!0,l.active<=-1&&A({pace:h.value}),l.active>=h.value&&A({pace:-h.value})},V=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},N=D=>{S(),r.reset(),Ye(()=>{Ye(()=>{l.moving=!1,A({pace:D,isEmit:!0})})})},T=()=>{N(-1)},B=()=>{N(1)},w=D=>{S(),r.reset(),Ye(()=>{l.moving=!1;let W;e.loop&&h.value===D?W=l.active===0?0:D:W=D%h.value,A({pace:W-l.active,isEmit:!0})})},I=()=>{e.autoPlay<=0||h.value<=1||(V(),l.autoplayTimer=setTimeout(()=>{B(),I()},Number(e.autoPlay)))},P=(D=+e.initPage)=>{V(),l.rect=o.value.getBoundingClientRect(),D=Math.min(h.value-1,D),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=D,l.offset=g(l.active),l.moving=!0,u(),I()},$=D=>{e.isPreventDefault&&D.preventDefault(),e.isStopPropagation&&D.stopPropagation(),e.touchable&&(r.start(D),l.touchTime=Date.now(),V(),S())},x=D=>{e.touchable&&l.moving&&(r.move(D),d.value&&A({offset:p.value}))},K=D=>{if(!e.touchable||!l.moving)return;const W=p.value/(Date.now()-l.touchTime);if((Math.abs(W)>.3||Math.abs(p.value)>+(v.value/2).toFixed(2))&&d.value){let Z=0;const _=i.value?r.offsetY.value:r.offsetX.value;e.loop?Z=_>0?p.value>0?-1:1:0:Z=-Math[p.value>0?"ceil":"floor"](p.value/v.value),A({pace:Z,isEmit:!0})}else p.value&&A({pace:0});l.moving=!1,u(),I()};return t.provide("parent",{props:e,size:v,relation:m}),$e({prev:T,next:B,to:w}),t.onDeactivated(()=>{V()}),t.onBeforeUnmount(()=>{V()}),t.watch(()=>e.initPage,D=>{t.nextTick(()=>{P(Number(D))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{P()})}),t.watch(()=>e.autoPlay,D=>{D>0?I():V()}),{state:l,classes:s,classesInner:c,classesPagination:f,container:o,activePagination:b,onTouchStart:$,onTouchMove:x,onTouchEnd:K}}});function _k(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const Ct=ne(Jk,[["render",_k]]),{create:eS,componentName:tS}=X("swiper-item"),nS=eS({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[tS]:!0})),r=t.computed(()=>{const i={},c=a?.props.direction;return a?.size.value&&(i[c==="horizontal"?"width":"height"]=`${a?.size.value}px`),o.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${o.offset}px)`),i}),s=i=>{o.offset=i};return t.onUnmounted(()=>{a.relation(t.getCurrentInstance(),"unmount")}),$e({setOffset:s}),{style:r,classes:l}}});function oS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const wt=ne(nS,[["render",oS]]),Ls={show:{type:Boolean,default:!1},initNo:{type:Number,default:0},showIndex:{type:Boolean,default:!0},minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3}},{create:lS}=X("image-preview-item"),aS=lS({props:{...Ls,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[St.name]:St,[wt.name]:wt},setup(e,{emit:n}){const a=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),o=Je(),l=t.computed(()=>{const{rootWidth:T,rootHeight:B}=e,w=B/T;return a.imageRatio>w}),r=t.computed(()=>{const T=e.image;if(T&&T.src){const{scale:B,moveX:w,moveY:I,moving:P,zooming:$}=a,x={transitionDuration:$||P?"0s":".3s"};if(B!==1){const K=w/B,D=I/B;x.transform=`scale(${B}, ${B}) translate(${K}px, ${D}px)`}return x}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:T,rootHeight:B}=e,w=l.value?B/a.imageRatio:T;return Math.max(0,(a.scale*w-T)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:T,rootHeight:B}=e,w=l.value?B:T*a.imageRatio;return Math.max(0,(a.scale*w-B)/2)}return 0}),c=T=>{const{naturalWidth:B,naturalHeight:w}=T.target;a.imageRatio=w/B},f=()=>{p(1),a.moveX=0,a.moveY=0},p=T=>{T=Oe(T,+e.minZoom,+e.maxZoom+1),T!==a.scale&&(a.scale=T,n("scale",{scale:T,index:e.initNo}))},d=()=>{const T=a.scale>1?1:2;p(T),a.moveX=0,a.moveY=0},h=T=>Math.sqrt((T[0].clientX-T[1].clientX)**2+(T[0].clientY-T[1].clientY)**2);let v,y,k,b,u,m,g;const C=T=>{const{touches:B}=T,{offsetX:w}=o;o.start(T),g=B.length,v=a.moveX,y=a.moveY,m=Date.now(),a.moving=g===1&&a.scale!==1,a.zooming=g===2&&!w.value,a.zooming&&(k=a.scale,b=h(T.touches))},A=T=>{const{touches:B}=T;if(o.move(T),(a.moving||a.zooming)&&bo(T,!0),a.moving){const{deltaX:w,deltaY:I}=o,P=w.value+v,$=I.value+y;a.moveX=Oe(P,-s.value,s.value),a.moveY=Oe($,-i.value,i.value)}if(a.zooming&&B.length===2){const w=h(B),I=k*w/b;p(I)}},S=()=>{if(g==1&&e.video&&e.video.source||g>1)return;const{offsetX:T,offsetY:B}=o,w=Date.now()-m,I=250,P=5;T.value<P&&B.value<P&&w<I&&(u?(clearTimeout(u),u=null,d()):u=setTimeout(()=>{e.contentClose&&n("close"),u=null},I))},V=T=>{let B=!1;(a.moving||a.zooming)&&(B=!0,a.moving&&v===a.moveX&&y===a.moveY&&(B=!1),T.touches.length||(a.zooming&&(a.moveX=Oe(a.moveX,-s.value,s.value),a.moveY=Oe(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,v=0,y=0,k=1,a.scale<1&&f(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),bo(T,B),S(),o.reset()},N=()=>{n("close")};return t.watch(()=>e.initNo,f),t.watch(()=>e.show,T=>{T||f()}),{...t.toRefs(a),onTouchStart:C,onTouchMove:A,onTouchEnd:V,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:N}}}),rS=["src"];function sS(e,n,a,o,l,r){const s=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onClick:e.closeSwiper},{default:t.withCtx(()=>[t.createElementVNode("view",{style:t.normalizeStyle(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[2]||(n[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[4]||(n[4]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,rS)):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 iS=ne(aS,[["render",sS]]),{create:cS}=X("image-preview"),uS=cS({props:{...Ls,images:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},contentClose:{type:Boolean,default:!0},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},autoplay:{type:[Number,String],default:0},teleport:{type:[String,Element],default:"body"},teleportDisable:{ype:Boolean,default:!1},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},beforeClose:Function,isLoop:{type:Boolean,default:!0}},emits:["close","change"],components:{ImagePreviewItem:iS,CircleClose:oe.CircleClose,[de.name]:de,[Ct.name]:Ct},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),l=t.computed(()=>{const p="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${p}-right`:`${p}-left`}`}),r=t.computed(()=>vn(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=p=>{p!==o.active&&(o.active=p,n("change",o.active))},i=()=>{Is(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},f=()=>{if(a.value){const p=Ve(a.value);o.rootHeight=p.height,o.rootWidth=p.width}};return t.watch(()=>e.show,p=>{o.showPop=p,p&&(s(e.initNo),f())}),t.watch(()=>e.initNo,p=>{p!=o.active&&s(p)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:i,mergeImages:r,setActive:s,iconClasses:l}}}),dS={class:"fox-image-preview",ref:"swipeRef"},fS={key:0,class:"fox-image-preview-index"};function mS(e,n,a,o,l,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",dS,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(p,d)=>(t.openBlock(),t.createBlock(s,{key:d,video:d<e.videos.length?p:{},image:d>=e.videos.length?p:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",fS,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:n[0]||(n[0]=(...p)=>e.onClose&&e.onClose(...p))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const zs=ne(uS,[["render",mS]]);class pS{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 hS{options=new pS;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=ki(a,{name:"image-preview",components:[de,St,Ct,wt,rt],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(zs,a))}})})}}const Gn=e=>new hS(e);Gn.install=e=>{e.use(zs)};function gS(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:h2,create:yS}=X("countup"),vS=yS({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref([]),l=N=>{N&&o.value.push(N)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:f}=t.reactive(e);t.watch(()=>e.customChangeNum,(N,T)=>{d(),b(0)}),t.watch(()=>e.machinePrizeLevel,(N,T)=>{r.prizeLevelTrun=N}),t.watch(()=>e.initNum,(N,T)=>{r.current=N,r.valFlag=!1,p()}),t.watch(()=>e.endNum,(N,T)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||c?f!="machine"&&b():(k(),setTimeout(()=>{r.valFlag=!0},300)))},d=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(N,T,B)=>{const w=(N.toString().split(".")[1]||"").length,I=(T.toString().split(".")[1]||"").length,P=Math.pow(10,Math.max(w,I));return B=="-"?Number((N*P-T*P).toFixed(0))/P:Number((N*P+T*P).toFixed(0))/P},v=N=>{let{num_total_len:T,pointNum:B,initDigit1:w,initDigit2:I,sortFlag:P}=r,$=P=="add"||P=="equal"?String(I)[N-(T-B)]:10-Number(String(I)[N-(T-B)]),x=P=="add"||P=="equal"?String(w)[N]:10-Number(String(w)[N]),K=N>T-B-1?-$*100+"%":N<=String(w).length-1?-x*100+"%":0;return K=="-1000%"&&(K=0),K},y=N=>{let{num_total_len:T,pointNum:B,initDigit1:w,initDigit2:I,sortFlag:P}=r,$=String(I)[N-(T-B)];return N>T-B-1?$||0:N<=String(w).length-1?String(w)[N]:0},k=()=>{let{endNum:N,initNum:T,speed:B,toFixed:w}=e,I=setInterval(()=>{if(T>N)if(r.current<=N||r.current<=B)r.current=N.toFixed(w),clearInterval(I),n("scroll-end"),r.valFlag=!1;else{let P=parseFloat(String(r.current))-parseFloat(String(B));r.current=P.toFixed(w)}else if(r.current>=N)r.current=N.toFixed(w),clearInterval(I),n("scroll-end"),r.valFlag=!1;else{let P=parseFloat(String(r.current))+parseFloat(String(B));r.current=P.toFixed(w)}},e.during)},b=N=>{let{initNum:T,endNum:B,toFixed:w,customBgImg:I}=e;I&&(T=e.customChangeNum);let P,$,x,K;T!=0?(w!=0&&(T=Number(T.toFixed(w))),String(T).indexOf(".")>-1?(P=String(T).split(".")[0].length,$=String(T).split(".")[1].length):(P=String(T).length,$=0)):(P=1,$=0),B!=0?(w!=0&&(B=Number(B.toFixed(w))),String(B).indexOf(".")>-1?(x=String(B).split(".")[0].length,K=String(B).split(".")[1].length):(x=String(B).length,K=0)):(x=1,K=0);let D=P>=x?P:x,W=$>=K?$:K;r.num_total_len=D+W,r.pointNum=W,T>B?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(T,B,"-"),r.numberVal=Number(String(T))):T<B?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(B,T,"-"),r.numberVal=Number(String(B))):r.sortFlag="equal";var H=1;for(let _=0;_<r.pointNum;_++)H*=10;var Z=r.numberVal*H;if(r.relNum=Z,w!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(Z).length),String(T).indexOf(".")>-1){let _=String(T).split(".");r.initDigit1=Number(_[0]),r.initDigit2=Number(_[1])}else r.initDigit1=T,r.initDigit2=0;i&&!I?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let _=o.value[r.num_total_len-1];u(_)}):N!==0&&C()},u=N=>{d();var T=1;r.pointNum!=0&&(T=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{m(N),r.totalCount=h(r.totalCount,T,"-"),r.totalCount<=0&&(d(),n("scroll-end"),r.valFlag=!1)},e.during)},m=N=>{let T=N.getAttribute("turn-number"),B;if(r.sortFlag=="add"?B=parseInt(String(T))+1:B=parseInt(String(T))-1>=0?parseInt(String(T))-1:9,N.setAttribute("turn-number",String(B)),(N.style.transition=="none 0s ease 0s"||B==1||!N.style.transition)&&(N.style.transition=`all linear ${e.during}ms`),B==10||r.sortFlag=="reduce"&&B==0){var w=null;N.style.top=`-${r.sortFlag=="add"?B*100:(10-B)*100}%`,N.setAttribute("turn-number","0"),w=setTimeout(()=>{w&&clearTimeout(w),N.style.transition="none",N.style.top="0",g(N,B)},.975*e.during)}else N.style.top=`-${r.sortFlag=="add"?B*100:(10-B)*100}%`;N.style.top=="-100%"&&r.sortFlag=="reduce"&&m(N.previousSibling)},g=(N,T)=>{setTimeout(()=>{T==10&&N.previousSibling&&m(N.previousSibling)},200)},C=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},A=()=>{for(r.notPrize=[];r.notPrize.length<3;){var N=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(N)==-1&&r.notPrize.push(N)}};gS({machineLuck:()=>{const N=e.machineTurnMore<0?0:e.machineTurnMore;let T=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&A();for(let B=0;B<e.machineNum;B++)setTimeout(()=>{let w=T*(B+1+parseFloat(String(N)));r.prizeYPrev.length!=0&&(r.prizeY[B]=r.prizeYPrev[B]);let I=r.prizeYPrev[B]?r.prizeYPrev[B]:0,P=w+I+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(T-I);r.prizeLevelTrun<0&&(P+=e.numHeight*r.notPrize[B]),V(B,P,I)},500*B)}});const V=(N,T,B)=>{let w=setInterval(()=>{if(B<=T)B+=10,r.prizeY[N]=parseFloat(String(B));else if(clearInterval(w),w=null,r.finshMachine+=1,r.prizeY[N]=T,r.finshMachine==e.machineNum){let I=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach($=>{let x=$;for(;x>I;)x-=I;r.prizeYPrev.push(x)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{p()})}),t.onUnmounted(()=>{d(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:v,turnNumber:y}}}),bS={class:"fox-countup"},kS=["turn-number"];function SS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",bS,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+f,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,kS))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.current),1)],64))],64))])}const sa=ne(vS,[["render",SS]]),CS=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:wS,create:NS}=X("countdown"),BS=NS({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:a}){const o=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),l=t.computed(()=>({[wS]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-CS(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const v=Date.now()-o.diffTime,y=Math.max(o.handleEndTime-v,0);o.restTime=y,y||(o.counting=!1,d(),n("on-end")),y>0&&i()}}))},c=(v,y)=>{const k=v;let b={d:0,h:0,m:0,s:0,ms:0};const u=1e3,m=60*u,g=60*m,C=24*g;return k>0&&(b.d=k>=u?Math.floor(k/C):0,b.h=Math.floor(k%C/g),b.m=Math.floor(k%g/m),b.s=Math.floor(k%m/u),b.ms=Math.floor(k%u)),y=="custom"?b:f({...b})},f=v=>{let{d:y,h:k,m:b,s:u,ms:m}=v,g=e.format;if(g.includes("DD")?g=g.replace("DD",et(y)):k+=Number(y)*24,g.includes("HH")?g=g.replace("HH",et(k)):b+=Number(k)*60,g.includes("mm")?g=g.replace("mm",et(b)):u+=Number(b)*60,g.includes("ss")?g=g.replace("ss",et(u)):m+=Number(u)*1e3,g.includes("S")){const C=et(m,3).toString();g.includes("SSS")?g=g.replace("SSS",C):g.includes("SS")?g=g.replace("SS",C.slice(0,2)):g.includes("S")&&(g=g.replace("SS",C.slice(0,1)))}return g},p=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},d=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(d(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,v=>{let y=c(v,"custom");n("update:modelValue",y),n("input",y)}),t.watch(()=>e.paused,(v,y)=>{y?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&d()}),t.watch(()=>e.endTime,v=>{s()}),t.watch(()=>e.startTime,v=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:p,pause:d,renderTime:r,reset:h}}}),AS=["innerHTML"];function VS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,AS))],2)}const ia=ne(BS,[["render",VS]]),{create:TS}=X("badge"),$S=TS({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const n=t.reactive({}),a=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),o=t.computed(()=>{if(e.dot)return;const l=e.value,r=e.max;return typeof l=="number"&&typeof r=="number"&&r<l?`${r}+`:l});return{state:n,stl:a,content:o}}}),ES={class:"fox-badge"},xS=["textContent"];function DS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",ES,[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,xS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const ca=ne($S,[["render",DS]]),{componentName:IS,create:qS}=X("tag"),MS=qS({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:oe.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=IS;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 PS(e,n,a,o,l,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Xt=ne(MS,[["render",PS]]),{create:LS}=X("popover"),zS=LS({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 a=t.ref(),o=t.ref(),l=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const m="fox-popover-arrow",g=e.location,C=g.split("-")[0];return`${m} ${m}-${C} ${m}--${g}`}),c=t.computed(()=>{const m={},{bgColor:g,arrowOffset:C,location:A}=e,S=A.split("-")[0],V=A.split("-")[1],N=16;return g&&(m[`border${f(S)}Color`]=g),e.arrowOffset!=0&&(["bottom","top"].includes(S)&&(V||(m.left=`calc(50% + ${C}px)`),V=="start"&&(m.left=`${N+C}px`),V=="end"&&(m.right=`${N-C}px`)),["left","right"].includes(S)&&(V||(m.top=`calc(50% - ${C}px)`),V=="start"&&(m.top=`${N-C}px`),V=="end"&&(m.bottom=`${N+C}px`))),m}),f=m=>(m=m.toLowerCase(),m=m.replace(/\b\w+\b/g,g=>g.substring(0,1).toUpperCase()+g.substring(1)),m),p=t.computed(()=>{let m={};if(!r.value||!s.value)return{};const g=s.value.width,C=s.value.height,{width:A,height:S,left:V,top:N}=r.value,{location:T,offset:B}=e,w=T.split("-")[0],I=T.split("-")[1];let P=0,$=0;if(vn(B)&&B.length==2&&(P+=Number(B[1]),$+=Number(B[0])),A){if(["bottom","top"].includes(w)){const x=w=="bottom"?S+P:-(C+P);m.top=`${N+x}px`,I||(m.left=`${-(g-A)/2+V+$}px`),I=="start"&&(m.left=`${V+$}px`),I=="end"&&(m.left=`${r.value.right+$}px`)}if(["left","right"].includes(w)){const x=w=="left"?-(g+P):A+P;m.left=`${V+x}px`,I||(m.top=`${N-C/2+S/2-4+$}px`),I=="start"&&(m.top=`${N+$}px`),I=="end"&&(m.top=`${N+S+$}px`)}}return m}),d=t.computed(()=>{const m={};return e.bgColor&&(m.background=e.bgColor),m}),h=()=>{let m=Ve(a.value);e.targetId&&(m=Ve(document.querySelector(`#${e.targetId}`))),r.value=m,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,m=>{l.value=m,m?(window.addEventListener("touchstart",u,!0),h()):window.removeEventListener("touchstart",u,!0)});const v=m=>{n("update",m),n("update:visible",m)},y=()=>{v(!e.visible),n("open")},k=()=>{n("update:visible",!1),n("close")},b=(m,g)=>{!m.disabled&&n("choose",m,g),e.closeOnClickAction&&k()},u=m=>{const g=a.value,C=o.value;let A=g&&!g.contains(m.target);if(e.targetId){const S=document.querySelector(`#${e.targetId}`);A=S&&!S.contains(m.target)}A&&C&&!C.contains(m.target)&&e.closeOnClickOutside&&k()};return{showPopup:l,openPopover:y,popoverArrow:i,closePopover:k,chooseItem:b,popoverRef:a,popoverContentRef:o,getRootPosition:p,customStyle:d,popoverArrowStyle:c,renderIcon:ts}}}),FS={ref:"popoverContentRef",class:"fox-popover-content-group"},RS=["onClick"],OS={class:"fox-popover-menu-item-name"};function KS(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",FS,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(f=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",OS,t.toDisplayString(i.name),1)],10,RS))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Qt=ne(zS,[["render",KS]]),US=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:a,round:o,avatarSize:l}=t.toRefs(n),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${a.value}`]:a.value}});return{avatarShape:a,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:o.value}),getStyle:()=>l.value?{width:l.value,height:l.value}:{width:"50px",height:"50px"}}}}),{create:HS}=X("skeleton"),jS=HS(US({[Yt.name]:Yt})),WS={key:0},YS={key:1,class:"fox-skeleton"},XS={key:0,class:"fox-skeleton-animation"},QS={class:"fox-skeleton-content"};function GS(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",YS,[e.animated?(t.openBlock(),t.createElementBlock("view",XS)):t.createCommentVNode("",!0),t.createElementVNode("view",QS,[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",WS,[t.renderSlot(e.$slots,"default")]))}const ua=ne(jS,[["render",GS]]),{create:ZS,componentName:JS}=X("collapse"),_S=ZS({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(e.modelValue||(e.accordion?"":[])),l=t.computed(()=>({[JS]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,f,p=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,f,p)},s=c=>{if(e.accordion)o.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(o.value))if(o.value.includes(c)){const f=o.value.filter(p=>p!==c);r(f,c,!1)}else{const f=o.value.concat([c]);r(f,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:a,classes:l}}});function e1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const da=ne(_S,[["render",e1]]),{create:t1,componentName:n1}=X("collapse-item"),o1=t1({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:oe.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),a=t.ref(null),o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const h=n1;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>l?l.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},f=()=>{s.value&&(i.value="auto")},p=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},d=()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?p():d()}),{classes:r,renderIcon:ts,wrapperRef:n,contentRef:a,open:p,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:f}}}),l1={class:"fox-collapse-item__title-main"},a1={class:"fox-collapse-item__title-main-value"},r1=["innerHTML"],s1={key:2,class:"fox-collapse-item__title-label"},i1={key:0,class:"fox-collapse-item__title-sub"},c1=["innerHTML"],u1={key:0,class:"fox-collapse__item-extraWrapper"},d1={class:"fox-collapse__item-extraWrapper__extraRender"},f1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function m1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",l1,[t.createElementVNode("view",a1,[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,r1)),e.label?(t.openBlock(),t.createElementBlock("view",s1,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",i1,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,c1)),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",u1,[t.createElementVNode("div",d1,[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",f1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const fa=ne(o1,[["render",m1]]),p1=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:h1,create:g1,scope:y1}=X("table"),v1=g1({components:{RenderColumn:p1,DownArrow:oe.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:o}=re.useFoxI18n(y1),l=t.reactive({curData:e.data}),r=t.computed(()=>({[h1]:!0})),s=v=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${v.align?v.align:""}`]:!0}),i=v=>v.stylehead?v.stylehead:"",c=v=>v.stylecolumn?v.stylecolumn:"",f=v=>e.columns.filter(y=>y.key===v)[0],p=v=>{const y=e.columns.filter(k=>k.key===v);return y[0].stylecolumn?y[0].stylecolumn:""},d=v=>{v.sorter&&(n("sorter",v),l.curData=typeof v.sorter=="function"?l.curData.sort(v.sorter):v.sorter==="default"?l.curData.sort():l.curData)},h=()=>e.columns.map(v=>[v.key,v.render]);return t.watch(()=>e.data,v=>{l.curData=v.slice()}),{...t.toRefs(l),classes:r,cellClasses:s,getColumnItem:f,getColumnItemStyle:p,handleSorterClick:d,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),b1={class:"fox-table__main__head"},k1={class:"fox-table__main__head__tr"},S1=["onClick"],C1={class:"fox-table__main__body"},w1={key:1},N1={key:0,class:"fox-table__nodata"},B1={key:0,class:"fox-table__nodata__text"},A1={key:1,class:"fox-table__summary"},V1=["innerHTML"];function T1(e,n,a,o,l,r){const s=t.resolveComponent("DownArrow"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",b1,[t.createElementVNode("view",k1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:f=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,S1))),128))])]),t.createElementVNode("view",C1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([f,p])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(f))]),key:f,style:t.normalizeStyle(e.getColumnItemStyle(f))},[typeof c[f]=="function"||typeof p=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[p,c[f]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",w1,t.toDisplayString(c[f]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",N1,[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",B1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",A1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,V1)])):t.createCommentVNode("",!0)],2)}const ma=ne(v1,[["render",T1]]),{componentName:$1,create:E1}=X("ellipsis"),x1=E1({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const a=t.ref(null);let o=null,l=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[$1]:!0}));t.watch(()=>e.content,(k,b)=>{k!=b&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const k=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(k).forEach(m=>{o.style.setProperty(m,k.getPropertyValue(m))}),o.style.position="fixed",o.style.left="999999px",o.style.top="999999px",o.style.zIndex="-1000",o.style.height="auto",o.style.minHeight="auto",o.style.maxHeight="auto",o.style.textOverflow="clip",o.style.whiteSpace="normal",o.style.webkitLineClamp="unset",o.style.display="block";const u=h(k.lineHeight==="normal"?e.lineHeight:k.lineHeight);l=Math.floor(u*(Number(e.rows)+.5)+h(k.paddingTop)+h(k.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),f()},f=()=>{if(o.offsetHeight<=l)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const k=e.content.length,b=Math.floor((0+k)/2),u=e.direction==="middle"?d([0,b],[b,k]):p(0,k);r.value=u,document.body.removeChild(o)}},p=(k,b)=>{const u=s.expanded?e.collapseText:e.expandText,m=e.content.length;if(b-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(b,m)};const g=Math.round((k+b)/2);return e.direction==="end"?o.innerText=e.content.slice(0,g)+e.symbol+u:o.innerText=u+e.symbol+e.content.slice(g,m),o.offsetHeight<=l?e.direction==="end"?p(g,b):p(k,g):e.direction==="end"?p(k,g):p(g,b)},d=(k,b)=>{const u=s.expanded?e.collapseText:e.expandText,m=e.content.length;if(k[1]-k[0]<=1&&b[1]-b[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(b[1],m)};const g=Math.floor((k[0]+k[1])/2),C=Math.ceil((b[0]+b[1])/2);return o.innerText=e.content.slice(0,g)+e.symbol+u+e.symbol+e.content.slice(C,m),o.offsetHeight<=l?d([g,k[1]],[b[0],C]):d([k[0],g],[C,b[1]])},h=k=>{if(!k)return 0;const b=k.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0},v=k=>{k==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},y=()=>{n("click")};return{...t.toRefs(s),root:a,ellipsis:r,classes:i,clickHandle:v,handleClick:y}}}),D1={key:0},I1={key:1},q1={key:2};function M1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",D1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",I1,[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",q1,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=t.withModifiers(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const pa=ne(x1,[["render",M1]]),{componentName:P1,create:L1}=X("animate"),z1=L1({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:o,action:l}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${P1}-${a.value}`]:l.value==="initial"||r.clicked?a.value:!1,loop:o.value}));const i=c=>{r.clicked=!0,o.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),F1={class:"fox-animate"};function R1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",F1,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const ha=ne(z1,[["render",R1]]),{componentName:O1,create:K1}=X("watermark"),U1=K1({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.reactive({base64Url:""}),{zIndex:o,gapX:l,gapY:r,width:s,height:i,rotate:c,image:f,imageWidth:p,imageHeight:d,content:h,fontStyle:v,fontWeight:y,fontColor:k,fontSize:b,fontFamily:u}=e,m=()=>{const C=document.createElement("canvas"),A=window.devicePixelRatio,S=C.getContext("2d"),V=`${(l+s)*A}px`,N=`${(r+i)*A}px`,T=s*A,B=i*A;if(C.setAttribute("width",V),C.setAttribute("height",N),S){if(f){S.translate(T/2,B/2),S.rotate(Math.PI/180*Number(c));const w=new Image;w.crossOrigin="anonymous",w.referrerPolicy="no-referrer",w.src=f,w.onload=()=>{S.drawImage(w,-p*A/2,-d*A/2,p*A,d*A),S.restore(),a.base64Url=C.toDataURL()}}else if(h){S.textBaseline="middle",S.textAlign="center",S.translate(T/2,B/2),S.rotate(Math.PI/180*Number(c));const w=Number(b)*A;S.font=`${v} normal ${y} ${w}px/${B}px ${u}`,S.fillStyle=k,S.fillText(h,0,0),S.restore(),a.base64Url=C.toDataURL()}}else throw new Error("当前环境不支持Canvas")};m(),t.watch(()=>[o,l,r,s,i,c,f,p,d,h,v,y,k,b,u],()=>{m()});const g=t.computed(()=>{const C=O1;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:g}}});function H1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const ga=ne(U1,[["render",H1]]);function j1(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:W1,create:Y1}=X("trend-arrow"),X1=Y1({components:{TriangleUp:oe.TriangleUp,TriangleDown:oe.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),a=t.computed(()=>({[W1]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const f=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${j1(Number(f),s)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:f}=e;return{color:f===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function Q1(e,n,a,o,l,r){const s=t.resolveComponent("TriangleUp"),i=t.resolveComponent("TriangleDown");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?t.renderSlot(e.$slots,"up-icon",{key:1},()=>[t.createVNode(s,{color:e.riseColor},null,8,["color"])]):t.createCommentVNode("",!0),Number(e.rate)!==0&&!e.rateTrend?t.renderSlot(e.$slots,"down-icon",{key:2},()=>[t.createVNode(i,{color:e.dropColor},null,8,["color"])]):t.createCommentVNode("",!0),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const ya=ne(X1,[["render",Q1]]),{create:G1}=X("tour"),Z1=G1({components:{[Qt.name]:Qt,Close:oe.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),l=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:p,maskWidth:d,maskHeight:h}=e,{width:v,height:y,left:k,top:b}=o.value,u=[k+v/2,b+y/2],m=Number(d||v),g=Number(h||y);return{width:`${m+ +p[1]*2}px`,height:`${g+ +p[0]*2}px`,top:`${u[1]-g/2-+p[0]}px`,left:`${u[0]-m/2-+p[1]}px`}}),s=p=>{p=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,t.nextTick(()=>{a.showPopup=!0,i()}),n("change",a.active)},i=()=>{const p=document.querySelector(`#${e.steps[a.active].target}`),d=Ve(p);o.value=d},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},f=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,i()}),t.watch(()=>e.modelValue,p=>{p&&i(),a.active=0,a.showTour=p,a.showPopup=p}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:s,close:c,handleClickMask:f}}}),J1={key:0,class:"fox-tour-content"},_1={key:0,class:"fox-tour-content-top"},eC={class:"fox-tour-content-inner"},tC={class:"fox-tour-content-bottom"},nC={class:"fox-tour-content-bottom-init"},oC={class:"fox-tour-content-bottom-operate"},lC={key:1,class:"fox-tour-content fox-tour-content-tile"},aC={class:"fox-tour-content-inner"};function rC(e,n,a,o,l,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=p=>e.showPopup=p),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",J1,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",_1,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...p)=>e.close&&e.close(...p))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",eC,t.toDisplayString(c.content),1),t.createElementVNode("div",tC,[t.createElementVNode("div",nC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",oC,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:n[2]||(n[2]=p=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...p)=>e.close&&e.close(...p))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=p=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",lC,[t.createElementVNode("div",aC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const va=ne(Z1,[["render",rC]]),{componentName:g2,create:sC,scope:iC}=X("address"),cC=sC({components:{Location:oe.Location,Location2:oe.Location2,Check:oe.Check,Close:oe.Close,Left:oe.Left,[de.name]:de,[Kt.name]:Kt},inheritAttrs:!1,props:{...ze,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(iC),o=t.ref(null),l=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),f=t.ref(["province","city","country","town"]),p=t.ref(null),d=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}}),v=x=>{if(!Array.isArray(x))throw new TypeError("params muse be array.");if(!x.length)return[];x.forEach(D=>{if(!D.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const K=[];return x=x.sort((D,W)=>D.title.localeCompare(W.title)),x.forEach(D=>{const W=K.findIndex(H=>H.title===D.title);W<=-1?K.push({title:D.title,list:[].concat(D)}):K[W].list.push(D)}),K};let y=t.ref([]),k=t.reactive({});const b=t.ref("self"),u=t.ref(20),m=()=>{const x=e.modelValue,K=x.length;if(K>0){if(i.value=K-1,h.value.length==0){i.value=0;return}for(let D=0;D<K;D++){let W=[];switch(D){case 0:W=e.province;break;case 1:W=e.city;break;case 2:W=e.country;break;default:W=e.town}y.value[D]=W.filter(H=>H.id==x[D])[0]}C()}},g=(x,K)=>x&&x.name||i.value<K&&x?x.name:e.columnsPlaceholder[K]||a("select"),C=()=>{V(),t.nextTick(()=>{const x=l.value&&l.value.getElementsByClassName("active")[0];if(x){const K=x.offsetLeft;u.value=K||20}})},A=x=>{const K=i.value;c.value=i.value;const D={custom:f.value[K]};y.value[K]=x;for(let W=K+2;W<4;W++)y.value.splice(W,1);K<3?(i.value=K+1,C(),D.next=f.value[i.value],D.value=x,n("change",D)):(B(),n("update:modelValue"))},S=(x,K)=>{c.value=i.value,g(x,K)&&(i.value=K,C())},V=()=>{const x=p.value,K=c.value,D=d.value[i.value];x?.scrollTop&&(d.value[K]=x?.scrollTop),t.nextTick(()=>{x?.scrollTo({top:D,behavior:"auto"})})},N=x=>{const K=e.existAddress;let D={};K.forEach(W=>{W&&W.selectedAddress&&(D=W),W.selectedAddress=!1}),x.selectedAddress=!0,k=x,n("selected",D,x,K),B()},T=()=>{y.value=[],i.value=0,C()},B=(x="self")=>{b.value=x=="cross"?"cross":"self",r.value=!1},w=()=>{b.value="mask"},I=()=>{const x={addressIdStr:"",addressStr:"",province:y.value[0],city:y.value[1],country:y.value[2],town:y.value[3]},K={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(D=>{const W=y.value[D];x.addressIdStr+=`${D?"_":""}${W&&W.id||0}`,x.addressStr+=W&&W.name||""}),K.data=x):K.data=k,T(),b.value=="self"?n("close",K):n("close-mask",{closeWay:b}),n("update:visible",!1)},P=()=>{const x=s.value;s.value=x=="exist"?"custom":"exist",T(),n("switch-module",{type:s.value})},$=(x,K)=>{A(K)};return t.watch(()=>e.visible,x=>{r.value=x}),t.watch(()=>r.value,x=>{x&&m()}),{showPopup:r,privateType:s,tabIndex:i,tabName:f,selectedRegion:y,switchModule:P,closeWay:b,close:I,getTabName:g,nextAreaList:A,regionLine:o,tabRegion:l,lineDistance:u,changeRegionTab:S,selectedExist:N,clickOverlay:w,handClose:B,handleElevatorItem:$,initCustomSelected:m,...t.toRefs(e),t:a,regionList:h,transformData:v,scrollDom:p}}}),uC={class:"fox-address"},dC={class:"fox-address__header"},fC={class:"fox-address__header__title"},mC={key:0,class:"fox-address__custom"},pC={class:"fox-address__region",ref:"tabRegion"},hC=["onClick"],gC={key:0,class:"active fox-address__region-item"},yC={key:0,class:"fox-address__detail"},vC={class:"fox-address__detail-list",ref:"scrollDom"},bC=["onClick"],kC={key:1,class:"fox-address__elevator-group"},SC={key:1,class:"fox-address__exist"},CC={class:"fox-address__exist-group"},wC={class:"fox-address__exist-group-list"},NC=["onClick"],BC={class:"fox-address__exist-item-info"},AC={key:0,class:"fox-address__exist-item-info-name"},VC={key:1,class:"fox-address__exist-item-info-phone"},TC={class:"fox-address__exist-item-info-bottom"},$C={class:"fox-address__exist-choose-btn"};function EC(e,n,a,o,l,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),f=t.resolveComponent("fox-elevator"),p=t.resolveComponent("Location2"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{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",uC,[t.createElementVNode("view",dC,[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",fC,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",mC,[t.createElementVNode("view",pC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,v)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",v==e.tabIndex?"active":""]),key:v,onClick:y=>e.changeRegionTab(h,v)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,v)),1)],10,hC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",gC,[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",yC,[t.createElementVNode("ul",vC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,v)=>(t.openBlock(),t.createElementBlock("li",{key:v,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:y=>e.nextAreaList(h)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==h.id?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(h.name),1)])],10,bC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",kC,[t.createVNode(f,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",SC,[t.createElementVNode("div",CC,[t.createElementVNode("ul",wC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,v)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:v,onClick:y=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(p,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",BC,[h.name?(t.openBlock(),t.createElementBlock("div",AC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",VC,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",TC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,NC))),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",$C,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 ba=ne(cC,[["render",EC]]),{componentName:xC,create:DC}=X("barrage"),IC=DC({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),a=!!t.useSlots().default,o=t.computed(()=>({[xC]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),f=t.ref(e.top),p=t.ref(0),d=e.speeds,h=t.ref(0);t.onMounted(()=>{v(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(k(),p.value=0,y("hidden")):document.visibilityState==="visible"&&v()})}),t.onUnmounted(()=>{i.value=[],k()});const v=()=>{h.value=l.value.offsetWidth,a&&y("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${h.value}px`),u()},300)},y=g=>{let A=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const S=[];A&&Array.from(A).forEach(V=>{g=="init"?(V.style.opacity="0",S.push(V)):(V.classList="",V.style={})}),g=="init"&&(i.value=S)},k=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,g=>{e.danmu.length>0&&(i.value=[...g])});const b=g=>{const C=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,g):i.value.splice(C,0,g)},u=()=>{k(),s=setTimeout(()=>{m()},e.frequency)},m=()=>{const g=e.loop?p.value%i.value.length:p.value;let C=document.createElement("view");a&&typeof i.value[g]=="object"?(C=i.value[g],C?.classList?.add("fox-barrage__item")):(C.innerHTML=i.value[g],C.classList.add("fox-barrage__item"),r.value.appendChild(C)),t.nextTick(()=>{const A=C.offsetHeight;if(C?.classList?.add("move"),C.style.animationDuration=`${d}ms`,C.style.top=g%c.value*(A+f.value)+20+"px",C.style.opacity="1",!a){const S=C.offsetWidth;C.style.width=S+20+"px"}C.addEventListener("animationend",()=>{a?C.classList.remove("move"):r.value.removeChild(C)}),!(!e.loop&&p.value>=i.value.length-1)&&(p.value++,p.value>=i.value.length&&(p.value=0),C.removeEventListener("animationend",()=>{}),u())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:b}}});function qC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("div",{ref:"dmContainer",class:t.normalizeClass(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["slotBody","slotBody"+e.classTime])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)],2)}const ka=ne(IC,[["render",qC]]),{componentName:MC,create:PC,scope:LC}=X("signature"),zC=PC({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:a}=re.useFoxI18n(LC),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[MC]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let m=document.createElement("canvas");return!!(m.getContext&&m.getContext("2d"))},f=()=>{l.value.addEventListener(i.events[0],p,!1)},p=m=>{m.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],d,!1),l.value.addEventListener(i.events[2],h,!1),l.value.addEventListener(i.events[3],v,!1)},d=m=>{m.preventDefault();let g=i.isSupportTouch?m.touches[0]:m;n("signing",g);let C=l.value.getBoundingClientRect(),A=g.clientX-C.left,S=g.clientY-C.top;i.ctx.lineTo(A,S),i.ctx.stroke()},h=m=>{m.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],d,!1),l.value.removeEventListener(i.events[2],h,!1)},v=m=>{m.preventDefault(),l.value.removeEventListener(i.events[1],d,!1),l.value.removeEventListener(i.events[2],h,!1)},y=()=>{l.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},k=()=>{u(l.value)},b=m=>{if(!m)return!0;var g=document.createElement("canvas");return g.width=m.width,g.height=m.height,m?.toDataURL()==g.toDataURL()},u=m=>{let g;switch(e.type){case"png":g=m.toDataURL("image/png");break;case"jpg":g=m.toDataURL("image/jpeg",.8);break}const C=b(m)?"请绘制签名":m,A=b(m)?"":g;n("confirm",C,A)};return t.onMounted(()=>{c()&&(i.ctx=l.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,f())}),{...o,...t.toRefs(i),canvas:l,wrap:r,isCanvasSupported:c,confirm:k,clear:y,classes:s}}}),FC={class:"fox-signature-inner",ref:"wrap"},RC=["height","width"],OC={key:0,class:"fox-signature-unsopport"};function KC(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",FC,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,RC),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",OC,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 Sa=ne(zC,[["render",KC]]),{componentName:UC,create:HC,scope:jC}=X("time-select"),WC=HC({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:a}=re.useFoxI18n(jC),o=t.computed(()=>({[UC]:!0})),l=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{n.emit("update:visible",!1),n.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:o,popStyle:l,props:e,close:i,t:a}}}),YC={class:"fox-time-select__title"},XC={class:"fox-time-select__title__fixed"},QC={key:0},GC={class:"fox-time-select__content"},ZC={class:"fox-time-select__content__pannel"},JC={class:"fox-time-select__content__detail"};function _C(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{position:"bottom",closeable:"",round:"",teleportDisable:e.teleportDisable,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",YC,[t.createElementVNode("view",XC,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",QC,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",GC,[t.createElementVNode("view",ZC,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",JC,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Ca=ne(WC,[["render",_C]]),{componentName:ew,create:tw}=X("time-pannel"),nw=tw({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.reactive({currentKey:a}),l=t.computed(()=>({[ew]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function ow(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const wa=ne(nw,[["render",ow]]),{componentName:lw,create:aw}=X("time-detail"),rw=aw({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.inject("currentTime"),l=t.reactive({currentKey:a,currentTime:o}),r=t.computed(()=>({[lw]:!0})),s=f=>{let p=l.currentTime.find(d=>d.key==l.currentKey);if(p)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":p.list.filter(d=>d===f).length>0}},i=t.computed(()=>e.times.find(f=>f.key==l.currentKey).list),c=f=>{n.emit("select",f)};return{classes:r,...t.toRefs(l),getClass:s,renderData:i,handleTime:c}}}),sw={class:"fox-time-detail__detail fox-time-detail__detail--moring"},iw={class:"fox-time-detail__detail__list"},cw=["onClick"];function uw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",sw,[t.createElementVNode("view",iw,[(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,cw))),128))])])],2)}const Na=ne(rw,[["render",uw]]),{componentName:y2,create:dw,scope:fw}=X("sku-header"),mw=dw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Qe.name]:Qe},setup(e,{emit:n,slots:a}){const{t:o}=re.useFoxI18n(fw);return{getSlots:r=>a[r],t:o}}}),pw={class:"fox-sku-header"},hw=["src"],gw={class:"fox-sku-header-right"},yw={key:3,class:"fox-sku-header-right-extra"};function vw(e,n,a,o,l,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",pw,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,hw),t.createElementVNode("view",gw,[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",yw,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const bw=ne(mw,[["render",vw]]),{componentName:v2,create:kw}=X("sku-select"),Sw=kw({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const a=t.ref([]);return t.watch(()=>e.sku,l=>{a.value=[].slice.call(l)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(a.value=[].slice.call(e.sku))}),{skuInfo:a,changeSaleChild:(l,r,s,i)=>{l.checkFlag||l.disable||n("selectSku",{sku:l,skuIndex:r,parentSku:s,parentIndex:i})}}}}),Cw={class:"fox-sku-select"},ww={class:"fox-sku-select-item-title"},Nw={class:"fox-sku-select-item-skus"},Bw=["onClick"];function Aw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Cw,[(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",ww,t.toDisplayString(s.name),1),t.createElementVNode("view",Nw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:p=>e.changeSaleChild(c,f,s,i),key:c.name},t.toDisplayString(c.name),11,Bw))),128))])]))),128))])}const Vw=ne(Sw,[["render",Aw]]),{componentName:b2,create:Tw}=X("sku-stepper"),$w=Tw({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:{[Ge.name]:Ge},setup(e,{emit:n}){const a=t.ref(e.stepperMin);return t.onMounted(()=>{a.value=e.stepperMin}),{goodsCount:a,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,f)=>{n("overLimit",{action:f,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&at(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),Ew={class:"fox-sku-stepper"},xw={class:"fox-sku-stepper-title"},Dw=["innerHTML"],Iw={class:"fox-sku-stepper-count"};function qw(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Ew,[t.createElementVNode("view",xw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,Dw),t.createElementVNode("view",Iw,[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 Mw=ne($w,[["render",qw]]),{componentName:k2,create:Pw}=X("sku-operate"),Lw=Pw({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"立即购买"},addCartText:{type:String,default:"加入购物车"},confirmText:{type:String,default:"确定"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:n,slots:a}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{n("clickBtnOperate",s)},getSlots:s=>a[s]}}}),zw={key:0,class:"fox-sku-operate"},Fw={key:0,class:"fox-sku-operate-desc"},Rw={key:1,class:"fox-sku-operate-btn"},Ow=["onClick"];function Kw(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",zw,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",Fw,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",Rw,[(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,Ow))),128))]))])):t.createCommentVNode("",!0)}const Uw=ne(Lw,[["render",Kw]]),{componentName:S2,create:Hw,scope:jw}=X("sku"),Ww=Hw({props:{...ze,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","select-sku","change-stepper","click-btn-operate","click-close-icon","click-overlay","close","reduce","add","over-limit"],components:{SkuHeader:bw,SkuSelect:Vw,SkuStepper:Mw,SkuOperate:Uw,[de.name]:de},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=re.useFoxI18n(jw),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,b=>{r.value=b}),t.watch(()=>r.value,b=>{b==!1&&k()}),t.onMounted(()=>{});const i=b=>a[b],c=b=>{n("select-sku",b)},f=b=>{s.value=b,n("change-stepper",b)},p=b=>{n("add",b)},d=b=>{n("reduce",b)},h=b=>{n("over-limit",b)},v=b=>{n("click-btn-operate",{type:b,value:s.value})},y=b=>{b=="icon"&&n("click-close-icon"),b=="overlay"&&n("click-overlay"),b=="close"&&n("close"),r.value=!1},k=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:y,selectSku:c,changeStepper:f,stepperOverLimit:h,clickBtnOperate:v,add:p,reduce:d,getSlots:i,...l}}}),Yw={class:"fox-sku"},Xw={class:"fox-sku-content"};function Qw(e,n,a,o,l,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),f=t.resolveComponent("sku-operate"),p=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(p,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=d=>e.showPopup=d),onClickCloseIcon:n[1]||(n[1]=d=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=d=>e.closePopup("overlay")),onClose:n[3]||(n[3]=d=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",Yw,[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",Xw,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(f,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const Ba=ne(Ww,[["render",Qw]]),{create:Gw}=X("card"),Zw=Gw({components:{[Qe.name]:Qe,[Xt.name]:Xt},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:n,slots:a}){return{isHaveSlot:l=>a[l]}}}),Jw={class:"fox-card"},_w={class:"fox-card__left"},eN=["src"],tN={class:"fox-card__right"},nN={class:"fox-card__right__title"},oN={key:0,class:"fox-card__right__price"},lN={class:"fox-card__right__other"},aN={class:"fox-card__right__shop"},rN={class:"fox-card__right__shop__name"};function sN(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",Jw,[t.createElementVNode("div",_w,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,eN)]),t.createElementVNode("div",tN,[t.createElementVNode("div",nN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",oN,[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",lN,[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",aN,[t.createElementVNode("div",rN,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Aa=ne(Zw,[["render",sN]]),{create:iN,scope:cN}=X("ecard"),uN=iN({components:{[Ge.name]:Ge},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(cN),o=t.ref(null),l=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,v)=>{o.value=v,s.value=e.cardAmountMin,l.value=h.price,n("change",h),n("update:modelValue",h.price)},f=h=>{let y=h.target.value.replace(/[^\d]/g,"");r.value=y,l.value=y,Number(y)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(y)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},p=()=>{o.value="input",s.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},d=h=>{s.value=h,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:d,change:f,inputClick:p,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),dN={class:"fox-ecard"},fN={class:"fox-ecard__title"},mN={class:"fox-ecard__list"},pN=["onClick"],hN={class:"fox-ecard__list__input--con"},gN=["placeholder"],yN={class:"fox-ecard__list__step"};function vN(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",dN,[t.createElementVNode("view",fN,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",mN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:f=>e.handleClick(i,c)},t.toDisplayString(i.price),11,pN))),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",hN,[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,gN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",yN,[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 Va=ne(uN,[["render",vN]]),{create:bN,scope:kN}=X("address-list-item"),SN=bN({components:{Del:oe.Del,Edit:oe.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(kN);return{delClick:s=>{n("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{n("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{n("clickItem",s,e.item),s.stopPropagation()},t:a}}}),CN={class:"fox-address-list-item__info"},wN={class:"fox-address-list-item__info-contact"},NN={class:"fox-address-list-item__info-contact-name"},BN={class:"fox-address-list-item__info-contact-tel"},AN={key:0,class:"fox-address-list-item__info-contact-default"},VN={class:"fox-address-list-item__info-handle"},TN={class:"fox-address-list-item__addr"};function $N(e,n,a,o,l,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:n[0]||(n[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",CN,[t.createElementVNode("div",wN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",NN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",BN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",AN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",VN,[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",TN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Br=ne(SN,[["render",$N]]),{create:EN}=X("address-list-general"),xN=EN({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:Br,[Me.name]:Me,[jt.name]:jt},setup(e,{emit:n}){const a=()=>t.h(Br,{item:e.item,onDelIcon(A){s(A)},onEditIcon(A){i(A)},onClickItem(A){c(A)}});let o=null;const l=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=>{l.value||(n("clickItem",A,e.item),A.stopPropagation())},f=A=>{n("longDel",A,e.item),A.stopPropagation()},p=A=>{o=0,r.value=!0,n("longDown",A,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:f,holddownstart:A=>{o=setTimeout(()=>{p(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:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),DN={key:0,class:"fox-address-list-general"},IN={class:"fox-address-list-swipe"};function qN(e,n,a,o,l,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(i,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[t.createTextVNode("删除")]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",IN,[(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",DN,[(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 MN=ne(xN,[["render",qN]]),{componentName:PN,create:LN,scope:zN}=X("address-list"),FN=LN({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:MN,[Me.name]:Me},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(zN),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[PN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(k=>Kr(l,k,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(k,b)=>{n("delIcon",k,b),k.stopPropagation()},c=(k,b)=>{n("editIcon",k,b),k.stopPropagation()},f=(k,b)=>{n("clickItem",k,b),k.stopPropagation()},p=(k,b)=>{n("longCopy",k,b),k.stopPropagation()},d=(k,b)=>{n("longSet",k,b),k.stopPropagation()},h=(k,b)=>{n("longDel",k,b),k.stopPropagation()},v=(k,b)=>{n("swipeDel",k,b),k.stopPropagation()},y=k=>{n("add",k),k.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:f,clickLongCopy:p,clickLongSet:d,clickLongDel:h,clickSwipeDel:v,addAddress:y,dataArray:o,t:a}}});function RN(e,n,a,o,l,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,f)=>(t.openBlock(),t.createBlock(s,{key:f,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:n[0]||(n[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const Ta=ne(FN,[["render",RN]]),{componentName:C2,create:ON}=X("category"),KN=ON({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:n,slots:a}){const o=t.ref(0),l=t.ref(!1);return{getChildList:s=>{o.value=s,n("change",s)},checkIndex:o,categoryLeft:l}}}),UN={class:"fox-category"},HN={class:"fox-category__cateList"},jN={key:0},WN=["onClick"];function YN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",UN,[t.createElementVNode("div",HN,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",jN,[(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,WN)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const $a=ne(KN,[["render",YN]]),{componentName:w2,create:XN}=X("category-pane"),QN=XN({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),GN={class:"fox-category-pane"},ZN={key:0,class:"fox-category-pane__cateListRight"},JN={class:"fox-category-pane__childTitle"},_N={key:0,class:"fox-category-pane__childItemList"},eB=["onClick"],tB=["src"],nB={class:"fox-category-pane__skuImg"},oB={key:1,class:"fox-category-pane__cateListRight"},lB={class:"fox-category-pane__childTitle"},aB={key:0,class:"fox-category-pane__childItemList"},rB=["onClick"],sB={class:"fox-category-pane__skuName"},iB={key:2,class:"fox-category-pane__selfItemList"},cB=["onClick"];function uB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",GN,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",ZN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",JN,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",_N,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:f,onClick:p=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,tB),t.createElementVNode("div",nB,t.toDisplayString(c?.catName),1)],8,eB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",oB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",lB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",aB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:f,onClick:p=>e.onChange(c)},[t.createElementVNode("div",sB,t.toDisplayString(c?.catName),1)],8,rB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",iB,[(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,cB))),128))])):t.createCommentVNode("",!0)])}const Ea=ne(QN,[["render",uB]]),{componentName:N2,create:dB}=X("comment-header"),fB=dB({components:{[kt.name]:kt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),mB={class:"fox-comment-header__user"},pB={class:"fox-comment-header__user-avter"},hB=["src"],gB={class:"fox-comment-header__user-score"},yB={key:0,class:"fox-comment-header__time"};function vB(e,n,a,o,l,r){const s=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:n[1]||(n[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",mB,[t.createElementVNode("view",pB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,hB)):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",gB,[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",yB,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 bB=ne(fB,[["render",vB]]),{componentName:B2,create:kB}=X("comment-images"),SB=kB({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:oe.Right},emits:["click","clickImages"],setup(e,{emit:n}){const a=t.ref(!1),o=t.ref(1),l=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),l.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),l.value=e.videos.concat(e.images)}),{isShowImage:a,initIndex:o,showImages:(s,i)=>{const{videos:c,images:f}=e,p=s=="img"?i-c.length:i;n("clickImages",{type:s,index:p,value:s=="img"?f[p]:c[p]})},totalImages:l}}}),CB=["onClick"],wB=["src"],NB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),BB=["onClick"],AB=["src"],VB={key:0,class:"fox-comment-images__mask"};function TB(e,n,a,o,l,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:f=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,wB),NB],8,CB))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:f=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,AB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",VB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,BB)):t.createCommentVNode("",!0)],64))),128))],2)}const $B=ne(SB,[["render",TB]]),{componentName:A2,create:EB,scope:xB}=X("comment-bottom"),DB=EB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:oe.Fabulous,Comment:oe.Comment,MoreX:oe.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(xB),o=t.ref(!1),l=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&l.value.push(c)})}),{showPopver:o,operate:i=>{i=="more"&&(o.value=!o.value),n("clickOperate",i)},mergeOp:l,handleClick:()=>{n("handleClick")},t:a}}}),IB={class:"fox-comment-bottom"},qB={key:0},MB={class:"fox-comment-bottom__cpx"},PB=["onClick"];function LB(e,n,a,o,l,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",IB,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...f)=>e.handleClick&&e.handleClick(...f)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",qB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",MB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(f,p)=>(t.openBlock(),t.createElementBlock("view",{key:p,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${f}`]),onClick:d=>e.operate(f)},[f!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[f]),1),f=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),f=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=d=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,PB))),128))])])}const zB=ne(DB,[["render",LB]]),{componentName:FB,create:RB,scope:OB}=X("comment"),KB=RB({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:bB,CommentImages:$B,CommentBottom:zB,Right:oe.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(OB),o=t.computed(()=>({[FB]:!0})),l=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:o,conEllipsis:l,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:a}}}),UB=["innerHTML"],HB={class:"fox-comment__follow-title"},jB={class:"fox-comment__follow-com"},WB={key:0,class:"fox-comment__follow-img"};function YB(e,n,a,o,l,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),f=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...p)=>e.handleClick&&e.handleClick(...p)),innerHTML:e.info.content},null,12,UB),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...p)=>e.handleClick&&e.handleClick(...p))},[t.createElementVNode("view",HB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",jB,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",WB,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(f,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const xa=ne(KB,[["render",YB]]),XB=[Oo,Uo,Ho,jo,Wo,Se,Yo,Xo,Qo,Go,Zo,Mn,el,tl,ol,ll,Kn,Un,al,Hn,jn,rl,sl,Bt,il,cl,Qn,ul,dl,Pn,Ln,zn,fl,ml,pl,ot,hl,gl,yl,vl,bl,Me,kl,Sl,rt,de,Cl,wl,Nl,Bl,Ot,Al,Vl,Tl,$l,El,xl,Dl,Il,ql,Kt,Ml,Pl,Ll,zl,Fl,Rl,Ol,Ut,Xn,Fn,On,Rn,Ge,kt,bt,Kl,Ul,Hl,jt,jl,Wl,Yl,Wt,Yn,Xl,Gl,Wn,At,Jl,_l,Yt,ea,ta,Ht,na,oa,la,St,aa,ra,Ct,wt,Qe,Gn,sa,ia,ca,Xt,Qt,ua,da,fa,ma,pa,ha,ga,ya,va,ba,ka,Sa,Ca,wa,Na,Ba,Aa,Va,Ta,$a,Ea,xa],QB=new bi(XB,"4.0.0");exports.ActionSheet=jl;exports.ActionsheetItem=ul;exports.ActionsheetPane=Qn;exports.Address=ba;exports.AddressList=Ta;exports.Animate=ha;exports.Audio=Jl;exports.AudioOperate=_l;exports.Avatar=Yt;exports.AvatarGroup=ea;exports.BackTop=Wl;exports.Badge=ca;exports.Barrage=ka;exports.Broadcast=zo;exports.BroadcastKey=ke;exports.Button=Me;exports.Calendar=On;exports.CalendarItem=ll;exports.Card=Aa;exports.Cascader=Fn;exports.CascaderItem=tl;exports.Category=$a;exports.CategoryPane=Ea;exports.Cell=kl;exports.CellGroup=Sl;exports.Checkbox=Hn;exports.CheckboxGroup=jn;exports.CheckboxItem=rl;exports.CircleProgress=na;exports.Col=Nl;exports.Collapse=da;exports.CollapseItem=fa;exports.Comment=xa;exports.Content=jo;exports.CountDown=ia;exports.CountUp=sa;exports.DataItemsKey=dt;exports.DateItem=ol;exports.DatePicker=Rn;exports.DateUtils=le;exports.Dialog=Wt;exports.Divider=Al;exports.Domain=wn;exports.DomainKey=Ie;exports.DomainProvider=vl;exports.Drag=Yl;exports.Ecard=Va;exports.Elevator=Kt;exports.Ellipsis=pa;exports.Empty=la;exports.FixedNav=El;exports.FloatingButton=ml;exports.FooterBar=Ho;exports.FoxActionSheet=jl;exports.FoxActionsheetItem=ul;exports.FoxActionsheetPane=Qn;exports.FoxAddress=ba;exports.FoxAddressList=Ta;exports.FoxAnimate=ha;exports.FoxAudio=Jl;exports.FoxAudioOperate=_l;exports.FoxAvatar=Yt;exports.FoxAvatarGroup=ea;exports.FoxBackTop=Wl;exports.FoxBadge=ca;exports.FoxBarrage=ka;exports.FoxButton=Me;exports.FoxCalendar=On;exports.FoxCalendarItem=ll;exports.FoxCard=Aa;exports.FoxCascader=Fn;exports.FoxCascaderItem=tl;exports.FoxCategory=$a;exports.FoxCategoryPane=Ea;exports.FoxCell=kl;exports.FoxCellGroup=Sl;exports.FoxCheckbox=Hn;exports.FoxCheckboxGroup=jn;exports.FoxCheckboxItem=rl;exports.FoxCircleProgress=na;exports.FoxCol=Nl;exports.FoxCollapse=da;exports.FoxCollapseItem=fa;exports.FoxComment=xa;exports.FoxContent=jo;exports.FoxCountDown=ia;exports.FoxCountUp=sa;exports.FoxDateItem=ol;exports.FoxDatePicker=Rn;exports.FoxDialog=Wt;exports.FoxDivider=Al;exports.FoxDomainProvider=vl;exports.FoxDrag=Yl;exports.FoxEcard=Va;exports.FoxElevator=Kt;exports.FoxEllipsis=pa;exports.FoxEmpty=la;exports.FoxFixedNav=El;exports.FoxFloatingButton=ml;exports.FoxFooterBar=Ho;exports.FoxGrid=Vl;exports.FoxGridItem=Tl;exports.FoxGroup=Wo;exports.FoxHeaderBar=Uo;exports.FoxHintText=Bt;exports.FoxImage=Cl;exports.FoxImagePreview=Gn;exports.FoxIndicator=zl;exports.FoxInfiniteLoading=Yn;exports.FoxInputItem=Qo;exports.FoxInputNumber=Ge;exports.FoxInputnumberItem=dl;exports.FoxItem=Se;exports.FoxLayout=wl;exports.FoxLinkItem=il;exports.FoxList=ta;exports.FoxMapping=yl;exports.FoxMenu=xl;exports.FoxMenuItem=Dl;exports.FoxMessageBox=ot;exports.FoxMoneyItem=Go;exports.FoxMoreButton=pl;exports.FoxNavbar=$l;exports.FoxNoticeBar=oa;exports.FoxNotify=Gl;exports.FoxNumberKeyboard=Hl;exports.FoxOverLay=rt;exports.FoxPage=Oo;exports.FoxPagination=Ml;exports.FoxPicker=bt;exports.FoxPickerItem=el;exports.FoxPopover=Qt;exports.FoxPopup=de;exports.FoxPopupWrapper=hl;exports.FoxPrice=Qe;exports.FoxProgress=Ht;exports.FoxPullRefresh=Xl;exports.FoxRadio=Kn;exports.FoxRadioGroup=Un;exports.FoxRadioItem=al;exports.FoxRange=Ut;exports.FoxRate=kt;exports.FoxRateItem=cl;exports.FoxRollingProvider=bl;exports.FoxRow=Bl;exports.FoxRowItem=Yo;exports.FoxSearchBar=Xn;exports.FoxShortPassword=Kl;exports.FoxSideNavBar=Fl;exports.FoxSideNavBarItem=Rl;exports.FoxSignature=Sa;exports.FoxSkeleton=ua;exports.FoxSku=Ba;exports.FoxSlotItem=Xo;exports.FoxStep=ra;exports.FoxSteps=aa;exports.FoxStepsBar=fl;exports.FoxSticky=Ot;exports.FoxSubSideNavBar=Ol;exports.FoxSwipe=jt;exports.FoxSwiper=Ct;exports.FoxSwiperItem=wt;exports.FoxSwitch=Wn;exports.FoxSwitchItem=sl;exports.FoxTabPane=Ll;exports.FoxTabbar=Il;exports.FoxTabbarItem=ql;exports.FoxTable=ma;exports.FoxTabs=Pl;exports.FoxTabsBar=Pn;exports.FoxTabsContainer=Ln;exports.FoxTabsPane=zn;exports.FoxTag=Xt;exports.FoxText=gl;exports.FoxTextarea=Mn;exports.FoxTextareaItem=Zo;exports.FoxTimeDetail=Na;exports.FoxTimePannel=wa;exports.FoxTimeSelect=Ca;exports.FoxToast=At;exports.FoxTour=va;exports.FoxTrendArrow=ya;exports.FoxUploader=Ul;exports.FoxVideo=St;exports.FoxWaterMark=ga;exports.Grid=Vl;exports.GridItem=Tl;exports.Group=Wo;exports.HeaderBar=Uo;exports.HintText=Bt;exports.Image=Cl;exports.ImagePreview=Gn;exports.Indicator=zl;exports.InfiniteLoading=Yn;exports.InputItem=Qo;exports.InputNumber=Ge;exports.InputnumberItem=dl;exports.Item=Se;exports.Layout=wl;exports.LinkItem=il;exports.List=ta;exports.Mapping=yl;exports.Menu=xl;exports.MenuItem=Dl;exports.MessageBox=ot;exports.MoneyItem=Go;exports.MoreButton=pl;exports.Navbar=$l;exports.NoticeBar=oa;exports.Notify=Gl;exports.NumberKeyboard=Hl;exports.OverLay=rt;exports.Page=Oo;exports.Pagination=Ml;exports.Picker=bt;exports.PickerItem=el;exports.Popover=Qt;exports.Popup=de;exports.PopupWrapper=hl;exports.Price=Qe;exports.PriorityPolicy=mn;exports.Progress=Ht;exports.PullRefresh=Xl;exports.Radio=Kn;exports.RadioGroup=Un;exports.RadioItem=al;exports.Range=Ut;exports.Rate=kt;exports.RateItem=cl;exports.RollingProvider=bl;exports.Row=Bl;exports.RowItem=Yo;exports.SearchBar=Xn;exports.ShortPassword=Kl;exports.SideNavBar=Fl;exports.SideNavBarItem=Rl;exports.Signature=Sa;exports.Skeleton=ua;exports.Sku=Ba;exports.SlotItem=Xo;exports.Step=ra;exports.Steps=aa;exports.StepsBar=fl;exports.Sticky=Ot;exports.SubSideNavBar=Ol;exports.Swipe=jt;exports.Swiper=Ct;exports.SwiperItem=wt;exports.Switch=Wn;exports.SwitchItem=sl;exports.TabPane=Ll;exports.Tabbar=Il;exports.TabbarItem=ql;exports.Table=ma;exports.Tabs=Pl;exports.TabsBar=Pn;exports.TabsContainer=Ln;exports.TabsPane=zn;exports.Tag=Xt;exports.Text=gl;exports.Textarea=Mn;exports.TextareaItem=Zo;exports.TimeDetail=Na;exports.TimePannel=wa;exports.TimeSelect=Ca;exports.Toast=At;exports.Tour=va;exports.TrendArrow=ya;exports.UniqueID=qn;exports.Uploader=Ul;exports.ValidateSchema=Xr;exports.ValidateSchemaKey=Ke;exports.Video=St;exports.WaterMark=ga;exports.cancelRaf=Ar;exports.clamp=Oe;exports.clearNonNumber=vo;exports.clone=yo;exports.compareTo=ho;exports.createBroadcast=Sn;exports.createValidateSchema=Cn;exports.debounce=yt;exports.debounceRef=ci;exports.decimalLength=Or;exports.default=QB;exports.defineBroadcast=ei;exports.defineConfigDomain=Qr;exports.defineDataItem=Zr;exports.defineDomain=Ro;exports.defineItem=Ne;exports.definePageState=Jr;exports.deleteGlobalValidator=li;exports.disabledProperty=we;exports.divide=Lo;exports.excludeProps=Nt;exports.extend=lt;exports.floatData=Kr;exports.getGlobalValidateCheckEvents=jr;exports.getGlobalValidateResetEvents=Yr;exports.getPageContentAreaHeight=dn;exports.getPageContentAreaWidth=fn;exports.getPageFooterAreaHeight=An;exports.getPageHeaderAreaHeight=Bn;exports.getRootDomain=pt;exports.hasSymbol=qr;exports.includeProps=ve;exports.indexOf=Js;exports.installRules=Gr;exports.integerLength=Rr;exports.isArray=vn;exports.isArrayLike=Pr;exports.isBrowser=it;exports.isDate=Ue;exports.isESModule=Ys;exports.isEmptyString=ue;exports.isEqual=qe;exports.isFunction=cn;exports.isHidden=kn;exports.isInnerPage=fi;exports.isMap=Hs;exports.isNil=xr;exports.isNumberString=Fr;exports.isObject=Ae;exports.isPlainObject=go;exports.isPromise=gt;exports.isRegExp=zr;exports.isSet=js;exports.isString=Dr;exports.isSubPage=mi;exports.isSymbol=Ws;exports.isTouch=Jo;exports.isWindow=Mr;exports.lastIndexOf=_s;exports.makeArray=Zs;exports.merge=Lr;exports.multiply=Tr;exports.negate=$r;exports.nextTick=Qs;exports.numberFormat=yn;exports.objectToString=Ir;exports.once=ui;exports.padZero=et;exports.preventDefault=bo;exports.property=Be;exports.raf=Re;exports.readonlyProperty=Te;exports.setGlobalValidateCheckEvents=ai;exports.setGlobalValidateHandler=ni;exports.setGlobalValidateMessages=si;exports.setGlobalValidateResetEvents=ri;exports.setGlobalValidator=oi;exports.throttle=un;exports.toBoolean=pe;exports.toNumber=fe;exports.toPadding=Le;exports.toPx=ie;exports.toPxDesc=he;exports.toTypeString=bn;exports.toValue=xe;exports.tryTimes=Fo;exports.typeOf=at;exports.unNumberFormat=Er;exports.updatePageState=ko;exports.useBroadcast=qt;exports.useDomain=He;exports.useExpose=$e;exports.useInnerSize=Ko;exports.usePageState=Nn;exports.usePosition=ss;exports.useRawTouch=_o;exports.useRect=Ve;exports.useSize=Vn;exports.useTouch=Je;exports.valueLength=ye;
|
|
13
|
+
`)}}});function lg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Al=ne(og,[["render",lg]]),{create:ag}=X("sticky"),rg=ag({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),i=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const f=e.container;if(!a.value&&!f)return;const p=Ve(a),d=o.value,h=Ve(d),k=Ve(f);l.height=p.height;const v=()=>{let y=!1;if(e.position==="top")y=f?r.value>p.top&&k.bottom>0:r.value>p.top;else{const u=document.documentElement.clientHeight;y=f?k.bottom>0&&u-r.value-h.height>k.top:u-r.value<p.bottom}return y},b=()=>{if(f)if(e.position==="top"){const y=k.bottom-r.value-h.height;return y<0?y:0}else{const y=document.documentElement.clientHeight,u=k.bottom-(y-r.value);return u<0?u:0}return 0};l.transform=b(),l.fixed=v()};return t.watch(()=>l.fixed,f=>{n("change",f)}),t.onMounted(()=>{c(),Do(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Do(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function sg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Ot=ne(rg,[["render",sg]]),{componentName:ig,create:cg}=X("divider"),ug=cg({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=ig;let l={[o]:!0},r={};return e.direction==="horizontal"?r={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:r={...l,[`${o}-vertical`]:e.direction==="vertical"},r})}}});function dg(e,n,a,o,l,r){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}const Vl=ne(ug,[["render",dg]]);function fg(e,n){const a=[],o=l=>{Array.isArray(l)&&l.forEach(r=>{if(t.isVNode(r)){if(n){if(r.type&&r.type.name===n){a.push(r);return}}else a.push(r);r.component?.subTree&&o(r.component.subTree.children),r.children&&o(r.children)}})};return o(e),a}function mg(e,n,a){const o=fg(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function pg(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),mg(o,a,n))},r=i=>{a.splice(a.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:l,remove:r,internalChildren:a},i)),{internalChildren:a})}const{componentName:Sr}=X("grid"),xs=Symbol("grid"),hg={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}},gg={props:hg,setup(e,{slots:n}){pg(xs,`${Sr}-item`)({props:e});const a=t.computed(()=>{const l=Sr;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=he(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:yg}=X("grid"),Tl=yg(gg);function vg(e){const n=t.inject(e,null);if(n){const a=t.getCurrentInstance(),{add:o,remove:l,internalChildren:r}=n;o(a),t.onUnmounted(()=>l(a));const s=t.computed(()=>r.indexOf(a));return{parent:n,index:s}}return{parent:null,index:t.ref(-1)}}const{create:bg,componentName:Cr}=X("grid-item"),kg=bg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=vg(xs);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Cr]:!0})),s=t.computed(()=>{const f={flexBasis:`${100/+l.columnNum}%`};return l.square?f.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(f.paddingRight=he(l.gutter),o.value>=l.columnNum&&(f.marginTop=he(l.gutter))),f}),i=t.computed(()=>{const f=`${Cr}__content`;return{[`${f}`]:!0,[`${f}--border`]:l.border,[`${f}--surround`]:l.border&&l.gutter,[`${f}--center`]:l.center,[`${f}--square`]:l.square,[`${f}--reverse`]:l.reverse,[`${f}--${l.direction}`]:!!l.direction,[`${f}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:f=>{n("click",f)}}}}),Sg={class:"fox-grid-item__text"};function Cg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",Sg,[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 $l=ne(kg,[["render",Cg]]),{componentName:wg,create:Ng}=X("navbar"),Bg=Ng({components:{Left:oe.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let f=t.ref();const p=t.computed(()=>{const y=wg;return{[y]:!0,[`${y}--border`]:a.value,[`${y}--fixed`]:o.value,[`${y}--safe-area-inset-top`]:l.value}}),d=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{f.value=c?.value?.getBoundingClientRect().height,i.value.style.height=f.value+"px"})});function h(){n("on-click-back")}function k(){n("on-click-title")}function v(){n("on-click-icon")}function b(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:p,styles:d,handleLeft:h,handleCenter:k,handleCenterIcon:v,handleRight:b}}}),Ag={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Vg={key:1,class:"fox-navbar__text"},Tg={class:"fox-navbar__title"},$g={key:0,class:"fox-navbar__text"},Eg={key:1,class:"fox-navbar__text"},xg={class:"fox-navbar__title"},Dg={key:0,class:"fox-navbar__text"};function Ig(e,n,a,o,l,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Ag,[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",Vg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Tg,[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",$g,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",Eg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",xg,[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",Dg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const El=ne(Bg,[["render",Ig]]),qg=(e,n,a)=>({components:a,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(o,{emit:l}){const{toLocaleRefs:r}=re.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(d=!o.visible)=>{l("update:visible",d)},selected:(d,h)=>{l("selected",{item:d,event:h}),c.value=d.id},current:c}}}),{componentName:Mg,create:Pg,scope:Lg}=X("fixednav"),zg=Pg(qg(Mg,Lg,{[rt.name]:rt,Left:oe.Left})),Fg={class:"fox-fixednav__list"},Rg=["onClick"],Og=["src"],Kg={class:"span"},Ug={key:0,class:"b"},Hg={class:"text"};function jg(e,n,a,o,l,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Left");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",Fg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:p=>e.selected(c,p),key:c.id||f},[t.createElementVNode("img",{src:c.icon},null,8,Og),t.createElementVNode("view",Kg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Ug,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Rg))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",Hg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const xl=ne(zg,[["render",jg]]),{componentName:Wg,create:Yg}=X("menu"),Xg=Yg({components:{ArrowUp2:oe.ArrowUp2,ArrowDown2:oe.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),s=()=>{const y=t.reactive([]),u=t.reactive([]);return{children:y,linkChildren:g=>{const C=S=>{S.proxy&&(u.push(S),y.push(S.proxy))},A=S=>{if(S.proxy){let V=u.indexOf(S);V>-1&&u.splice(V,1);let N=y.indexOf(S.proxy);V>-1&&y.splice(N,1)}};t.provide("menuParent",Object.assign({removeLink:A,link:C,children:y,internalChildren:u},g))}}},{children:i,linkChildren:c}=s(),f=t.computed(()=>i.some(y=>y.state.showWrapper)),p=t.computed(()=>({[Wg]:!0,"scroll-fixed":r.value})),d=()=>{if(o.value){const y=Ve(o);e.direction==="down"?l.value=y.bottom:l.value=window.innerHeight-y.top}};c({props:e,offset:l});const h=y=>{i.forEach((u,m)=>{m===y?(d(),u.toggle()):u.state.showPopup&&u.toggle(!1,{immediate:!0})})},k=y=>Math.max(0,"scrollTop"in y?y.scrollTop:y.pageYOffset),v=()=>{const{scrollFixed:y}=e,u=k(window);r.value=u>(typeof y=="boolean"?30:Number(y))},b=y=>{let u="";const{titleClass:m}=e;return y&&(u+="active"),m&&(u+=` ${m}`),u};return t.onMounted(()=>{const{scrollFixed:y}=e;y&&window.addEventListener("scroll",v)}),t.onUnmounted(()=>{const{scrollFixed:y}=e;y&&window.removeEventListener("scroll",v)}),{toggleItem:h,children:i,opened:f,classes:p,barRef:o,getClasses:b}}}),Qg=["onClick"],Gg={class:"fox-menu__title-text"},Zg={class:"fox-menu__title-icon"};function Jg(e,n,a,o,l,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:p=>!c.disabled&&e.toggleItem(f),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",Gg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Zg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Qg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Dl=ne(Xg,[["render",Jg]]),{componentName:_g,create:ey}=X("menu-item"),ty=ey({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[de.name]:de,Check:oe.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),l=()=>{const k=t.inject("menuParent",null);if(k){const v=t.getCurrentInstance(),{link:b,removeLink:y}=k;return b(v),t.onUnmounted(()=>{y(v)}),{parent:k}}},{parent:r}=l(),s=t.computed(()=>({[_g]:!0})),i=t.computed(()=>{const k={height:r.offset.value+"px"};return r.props.direction==="down"?k:{...k,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const k=e.options?.find(v=>v.value===e.modelValue);return k?k.text:""},state:o,parent:r,toggle:(k=!o.showPopup,v={})=>{k!==o.showPopup&&(o.showPopup=k,o.isShowPlaceholderElement=k,k&&(o.showWrapper=!0,n("open")))},onClick:k=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,k.value!==e.modelValue&&(n("update:modelValue",k.value),n("change",k.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),ny={class:"fox-menu-item__content fox-menu-item__overflow"},oy=["onClick"];function ly(e,n,a,o,l,r){const s=t.resolveComponent("Check"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:n[0]||(n[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",ny,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:p=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps(e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,oy))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}const Il=ne(ty,[["render",ly]]),{create:ay}=X("tabbar"),ry=ay({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function a(l){o.value!==l&&(o.value=l,n.emit("update:modelValue",l),n.emit("change",l,o.children[l]))}const o=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:a});return t.provide("parent",o),t.watch(()=>e.modelValue,l=>{o.value=l}),{changeIndex:a}}});function sy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}const ql=ne(ry,[["render",sy]]),{create:iy}=X("tabbar-item"),cy=iy({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,n){const a=t.inject("parent"),o=t.reactive({size:a.size,inactiveColor:a.inactiveColor,activeColor:a.activeColor,value:a.value,index:0}),l=t.getCurrentInstance();l!==null&&(f=>{if(f.proxy){let p=a.children.length;o.index=p;let d=Object.assign(f.proxy,{index:p});a.children.push(d)}})(l);const r=t.computed(()=>o.index===o.value);function s(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const i=t.computed(()=>a?a.value:null);return t.watch(i,c=>{o.value=c}),{state:o,active:r,change:s}}}),uy={class:"fox-tabbar-item_icon-box"},dy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},fy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},my={key:1,class:"fox-tabbar-item_icon-box_dot"},py={key:2},hy={key:0};function gy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",uy,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",dy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",fy,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",my)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",py,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):t.createCommentVNode("",!0),!e.icon&&e.activeImg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:t.normalizeStyle({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?(t.openBlock(),t.createElementBlock("view",hy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Ml=ne(cy,[["render",gy]]),{componentName:yy,create:vy}=X("elevator"),by=vy({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const a=t.ref(null),o=t.reactive({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),l=t.computed(()=>({[yy]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(u,m)=>u.getAttribute("data-"+m),c=u=>{t.nextTick(()=>{!o.listGroup.includes(u)&&u!=null&&o.listGroup.push(u)})},f=()=>{let u=0;o.listHeight.push(u);for(let m=0;m<o.listGroup.length;m++){let g=o.listGroup[m];u+=Math.floor(g.clientHeight),o.listHeight.push(u)}},p=u=>{!u&&u!==0||(u<0&&(u=0),u>o.listHeight.length-2&&(u=o.listHeight.length-2),o.codeIndex=u,a.value.scrollTo(0,o.listHeight[u]))},d=u=>{o.scrollStart=!0;let m=i(u.target,"index"),g=u.touches[0];o.touchState.y1=g.pageY,o.anchorIndex=+m,o.codeIndex=+m,p(+m)},h=u=>{let m=u.touches[0];o.touchState.y2=m.pageY;let g=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+g,p(o.codeIndex)},k=()=>{o.scrollStart=!1},v=(u,m)=>{n.emit("click-item",u,m),o.currentData=m,o.currentKey=u},b=u=>{n.emit("click-index",u)},y=u=>{let g=u.target.scrollTop;const C=o.listHeight;o.scrollY=g;for(let A=0;A<C.length-1;A++){let S=C[A],V=C[A+1];if(o.scrollY>=S&&o.scrollY<V){o.currentIndex=A,o.diff=V-o.scrollY;return}}o.currentIndex=C.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",y)}),$e({scrollTo:p}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(f)}),t.watch(()=>o.diff,u=>{const m=o.listHeight;let g=u>0&&u<e.titleHeight?u-e.titleHeight:0;o.scrollY+s.value===m[m.length-1]&&g!==0&&(g=0),o.fixedTop!==g&&(o.fixedTop=g)}),t.watch(()=>o.currentIndex,u=>{n.emit("change",u)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:a,touchStart:d,touchMove:h,touchEnd:k,handleClickItem:v,handleClickIndex:b}}}),ky={class:"fox-elevator__list__item__code"},Sy=["onClick"],Cy=["innerHTML"],wy={class:"fox-elevator__fixed-title"},Ny={class:"fox-elevator__bars__inner"},By=["data-index","onClick"];function Ay(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",ky,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,Cy))],10,Sy))),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",wy,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",Ny,[(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 Kt=ne(by,[["render",Ay]]),{componentName:g2,create:Vy,scope:Ty}=X("pagination"),$y=Vy({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:a}=re.useFoxI18n(Ty),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:k,itemsPerPage:v}=t.toRefs(e),b=+h.value||Math.ceil(+k.value/+v.value);return Math.max(1,b)}),f=(h,k)=>{h>c.value||h<1||(h!=l.value&&n("update:modelValue",h),k&&n("change",h))},p=(h,k,v=!1)=>({number:h,text:k,active:v}),d=t.computed(()=>{if(r.value=="simple")return;let h=[];const k=c.value,v=+s.value;let b=1,y=k;const u=k>v;u&&(b=Math.max(l.value-Math.floor(v/2),1),y=b+v-1,y>k&&(y=k,b=y-v+1));for(var m=b;m<=y;m++){const g=p(m,m,l.value==m);h.push(g)}if(u&&v>0&&i.value){if(b>1){const g=p(b-1,"...");h.unshift(g)}if(y<k){const g=p(y+1,"...");h.push(g)}}return h});return t.watchEffect(()=>{f(l.value,!1)}),{...o,modelValue:l,select:f,countRef:c,mode:r,pages:d,forceEllipses:i}}}),Ey={class:"fox-pagination"},xy={key:0,class:"fox-pagination-contain"},Dy=["onClick"],Iy={key:1,class:"fox-pagination-contain"},qy={class:"fox-pagination-simple"};function My(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Ey,[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",xy,[(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,Dy))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Iy,[t.createElementVNode("view",qy,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 Pl=ne($y,[["render",My]]),Py=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let h=await o(l,a);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=_e();let f="";const p=(h,k)=>{let v=h;switch(e.direction=="horizontal"?(f=h>0?"right":"left",v=Math.abs(v)/r.value.width*100):(f=k>0?"bottom":"top",v=k,v=Math.abs(v)/r.value?.height*100),v>85&&(v=85),f){case"left":case"top":n.isEnd()&&(v=0,i.moving=!1);break;case"right":case"bottom":v=-v,n.isBegin()&&(v=0,i.moving=!1);break}i.offset=v};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,p(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,f){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class Ly{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:zy}=X("tabs"),Fy=zy({components:{[Ot.name]:Ot,JoySmile:oe.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=B=>{B.forEach((w,q)=>{let P=w.type;if(P=P.name||P,P=="fox-tab-pane"){let $=new Ly;if(w.props?.title||w.props?.["pane-key"]||w.props?.paneKey){let E=at(w.props?.["pane-key"]),K=E=="number"||E=="string"?String(w.props?.["pane-key"]):null,D=at(w.props?.paneKey),W=D=="number"||D=="string"?String(w.props?.paneKey):null;$.title=w.props?.title,$.paneKey=K||W||String(q),$.disabled=w.props?.disabled}r.value.push($)}else{if(w.children==" ")return;Array.isArray(w.children)&&s(w.children)}})},i=t.ref(e.modelValue||0),c=B=>{let w=r.value.findIndex(q=>q.paneKey==B);r.value.length==0||w==-1||(i.value=w)},f=t.computed(()=>e.titleScroll&&e.direction==="vertical"),p=t.ref(),d=t.ref([]),h=B=>{const w=p.value,q=d.value;if(!w||!q||!q[i.value])return;const P=q[i.value];let $=0;e.direction==="vertical"?$=P.offsetTop-w.offsetTop+10-(w.offsetHeight-P.offsetHeight)/2:$=P.offsetLeft-(w.offsetWidth-P.offsetWidth)/2,k(w,$,B?0:.3,e.direction)},k=(B,w,q,P)=>{let $=0;const E=P==="horizontal"?B.scrollLeft:B.scrollTop,K=q===0?1:Math.round(q*1e3/16);function D(){P==="horizontal"?B.scrollLeft+=(w-E)/K:B.scrollTop+=(w-E)/K,++$<K&&Re(D)}D()},v=(B=a.default?.())=>{r.value=[],B=B?.filter(w=>typeof w.children!="string"),B&&B.length&&s(B),c(e.modelValue),t.nextTick(()=>{h()})},b=B=>{l=B.fixed};t.watch(()=>a.default?.(),B=>{v(B)});const y=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,B=>{if(c(B),h(),l){let w=Ve(o.value).top+y(),q=Math.ceil(w-e.top);window.scrollTo({top:q,behavior:"smooth"})}}),t.onMounted(v),t.onActivated(v);const u={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,u.updateValue(r.value[i.value])},prev:()=>{i.value-=1,u.updateValue(r.value[i.value])},updateValue:B=>{n("update:modelValue",B.paneKey),n("change",B)},tabChange:(B,w)=>{n("click",B),!(B.disabled||i.value==w)&&(i.value=w,u.updateValue(B))},setTabItemRef:(B,w)=>{d.value[w]=B}},{tabsContentRef:m,touchState:g,touchMethods:C}=Py(e,u),A=t.computed(()=>{let B=i.value*100;g.moving&&(B+=g.offset);let w={transform:e.direction=="horizontal"?`translate3d(-${B}%, 0, 0)`:`translate3d( 0,-${B}%, 0)`,transitionDuration:g.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(w={}),w}),S=t.computed(()=>({background:e.background})),V=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),N=t.computed(()=>{if(!e.titleGutter)return{};const B=he(e.titleGutter);return e.direction==="vertical"?{marginTop:B,marginBottom:B}:{marginLeft:B,marginRight:B}}),T=t.computed(()=>a.fixedTitle);return{navRef:p,tabsContentRef:m,titles:r,contentStyle:A,tabsNavStyle:S,titleStyle:N,tabsActiveStyle:V,container:o,getScrollY:f,onStickyScroll:b,...u,...C,hasFixedTitle:T}}}),Ry=["onClick"],Oy={key:0,class:"fox-tabs__titles-fixed-item"},Ky=["onClick"],Uy={key:0,class:"fox-tabs__titles-fixed-item"};function Hy(e,n,a,o,l,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,f),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Ry))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Oy,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,f),key:c.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,f)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Ky))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Uy,[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 Ll=ne(Fy,[["render",Hy]]),{create:jy}=X("tab-pane"),Wy=jy({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=t.inject("tabsOpiton"),o=t.computed(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:o}}});function Yy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const zl=ne(Wy,[["render",Yy]]),{componentName:wr,create:Xy}=X("indicator"),Qy=Xy({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:a}=t.toRefs(e);return{classes:t.computed(()=>{const l=wr;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:wr,padZero:et}}});function Gy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,s=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[s===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(s)||s),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const Fl=ne(Qy,[["render",Gy]]),{componentName:Zy,create:Jy}=X("side-navbar"),_y=Jy({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=t.ref(null),a=t.reactive({count:1,observer:null}),o=t.computed(()=>({[Zy]:!0})),l=(s,i=1)=>{for(let c=0;c<s.length;c++){let f=s[c];f?.children?.[0]&&(f.children[0].style.paddingLeft=+e.offset*i+"px",f.className.includes("fox-side-navbar-item")||l(Array.from(f.children[1].children),++a.count))}a.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),l(s))};return t.onMounted(()=>{r(),a.observer=new MutationObserver(function(){a.count=1,r()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(a),list:n,classes:o}}}),ev={class:"fox-side-navbar__content"},tv={class:"fox-side-navbar__content__list",ref:"list"};function nv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",ev,[t.createElementVNode("view",tv,[t.renderSlot(e.$slots,"default")],512)])],2)}const Rl=ne(_y,[["render",nv]]),{componentName:ov,create:lv}=X("side-navbar-item"),av=lv({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[ov]:!0})),handleClick:()=>{n.emit("click")}})}),rv=["ikey"],sv={class:"fox-side-navbar-item__title"};function iv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",sv,t.toDisplayString(e.title),1)],10,rv)}const Ol=ne(av,[["render",iv]]),{componentName:cv,create:uv}=X("sub-side-navbar"),dv=uv({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:oe.ArrowDown2,ArrowUp2:oe.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[cv]:!0})),l=t.computed(()=>({height:a.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),a.direction=a.direction?"":"up"};return t.onMounted(()=>{a.direction=e.open?"":"up"}),{...t.toRefs(a),classes:o,style:l,handleClick:r}}}),fv=["ikey"],mv={class:"fox-sub-side-navbar__title__text"},pv={class:"fox-sub-side-navbar__title__icon"};function hv(e,n,a,o,l,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",mv,t.toDisplayString(e.title),1),t.createElementVNode("span",pv,[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,fv)}const Kl=ne(dv,[["render",hv]]),{componentName:gv,create:yv}=X("range"),vv=yv({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const a=t.ref(0);let o,l;const r=t.ref(),s=t.ref(),i=_e(),c=t.computed(()=>{const{marks:$,max:E,min:K}=e;return Object.keys($).map(parseFloat).sort((H,Z)=>H-Z).filter(H=>H>=K&&H<=E)}),f=t.computed(()=>Number(e.max)-Number(e.min)),p=t.computed(()=>{const $=gv;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),d=t.computed(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),k=t.computed(()=>({borderColor:e.buttonColor})),v=$=>!!e.range&&Array.isArray($),b=()=>{const{modelValue:$,min:E}=e;return v($)?`${($[1]-$[0])*100/f.value}%`:`${($-Number(E))*100/f.value}%`},y=()=>{const{modelValue:$,min:E}=e;return v($)?`${($[0]-Number(E))*100/f.value}%`:"0%"},u=t.computed(()=>e.vertical?{height:b(),top:y(),background:e.activeColor,transition:s.value?"none":void 0}:{width:b(),left:y(),background:e.activeColor,transition:s.value?"none":void 0}),m=$=>{const E="fox-range-mark",{modelValue:K,max:D,min:W}=e;let H=Number(W),Z=Number(D);if(e.range){const[j,I]=K;H=j,Z=I}else Z=K;let _=$<=Z&&$>=H;return{[`${E}-text`]:!0,[`${E}-text-active`]:_}},g=$=>{const{min:E,vertical:K}=e;let D={left:`${($-Number(E))/f.value*100}%`};return K&&(D={top:`${($-Number(E))/f.value*100}%`}),D},C=$=>{const{modelValue:E,max:K,min:D}=e;let W=Number(D),H=Number(K);if(e.range){const[j,I]=E;W=j,H=I}return{background:$<=H&&$>=W?e.activeColor:e.inactiveColor}},A=$=>{const{min:E,max:K,step:D}=e;return $=Math.max(+E,Math.min($,+K)),Math.round($/+D)*+D},S=($,E)=>JSON.stringify($)===JSON.stringify(E),V=$=>$[0]>$[1]?$.slice(0).reverse():$,N=($,E)=>{v($)?$=V($).map(A):$=A($),S($,e.modelValue)||n("update:modelValue",$),E&&!S($,o)&&n("change",$)},T=$=>{if(e.disabled)return;const{min:E,modelValue:K}=e,D=Ve(r);let W=$.clientX-D.left,H=D.width;e.vertical&&(W=$.clientY-D.top,H=D.height);const Z=Number(E)+W/H*f.value;if(v(K)){const[_,j]=K,I=(_+j)/2;Z<=I?N([Z,j],!0):N([_,Z],!0)}else N(Z,!0)},B=$=>{e.disabled||(i.start($),l=e.modelValue,v(l)?o=l.map(A):o=A(l),s.value="start")},w=$=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move($),s.value="draging";const E=Ve(r);let K=i.deltaX.value,D=E.width,W=K/D*f.value;e.vertical&&(K=i.deltaY.value,D=E.height,W=K/D*f.value),v(o)?l[a.value]=o[a.value]+W:l=o+W,N(l),$.stopPropagation(),$.preventDefault()},q=()=>{e.disabled||(s.value==="draging"&&(N(l,!0),n("drag-end")),s.value="")},P=$=>vn(e.modelValue)&&typeof $=="number"?e.modelValue[$]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:h,buttonStyle:k,onClick:T,onTouchStart:B,onTouchMove:w,onTouchEnd:q,...t.toRefs(e),barStyle:u,curValue:P,buttonIndex:a,containerClasses:d,markClassName:m,marksStyle:g,marksList:c,tickStyle:C}}}),bv={key:0,class:"fox-range-min"},kv={key:0,class:"fox-range-mark"},Sv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Cv={key:0,class:"number"},wv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Nv={key:0,class:"number"},Bv={key:1,class:"fox-range-max"};function Av(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",bv,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",kv,[(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",Cv,t.toDisplayString(e.curValue(s)),1))],4))],42,Sv)),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",Nv,t.toDisplayString(e.curValue()),1))],4))],40,wv))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Bv,t.toDisplayString(+e.max),1))],2)}const Ut=ne(vv,[["render",Av]]),{create:Vv,scope:Tv}=X("short-password"),$v=Vv({components:{[de.name]:de,Tips:oe.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:a}=re.useFoxI18n(Tv),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>f(Number(e.length))),s=t.ref(e.visible),i=d=>{d.stopPropagation(),n("focus")};t.watch(()=>e.visible,d=>{s.value=d}),t.watch(()=>e.modelValue,d=>{l.value=d,String(d).length===r.value&&n("complete",d)});const c=()=>{n("update:visible",!1),n("close")},f=d=>Math.min(Math.max(4,d),6);return{comLen:r,realInput:l,onTouchStart:i,range:f,close:c,onTips:()=>{n("tips")},show:s,...o}}}),Ev={class:"fox-short-password-title"},xv={class:"fox-short-password-subtitle"},Dv={class:"fox-short-password-wrapper"},Iv={key:0,class:"fox-short-password__item-icon"},qv={class:"fox-short-password__message"},Mv={class:"fox-short-password--error"},Pv={key:0,class:"fox-short-password--forget"};function Lv(e,n,a,o,l,r){const s=t.resolveComponent("Tips"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",Ev,t.toDisplayString(e.title),1),t.createElementVNode("view",xv,t.toDisplayString(e.desc),1),t.createElementVNode("div",Dv,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:f},[String(e.realInput).length>f?(t.openBlock(),t.createElementBlock("view",Iv)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",qv,[t.createElementVNode("view",Mv,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Pv,[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 Ul=ne($v,[["render",Lv]]);class zv{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Fv=class{options;constructor(n){this.options=n}upload(){const n=this.options,a=new XMLHttpRequest;if(a.timeout=n.timeout,a.upload){a.upload.addEventListener("progress",o=>{n.onProgress?.(o,n)},!1),a.onreadystatechange=()=>{a.readyState===4&&(a.status==n.xhrState?n.onSuccess?.(a.responseText,n):n.onFailure?.(a.responseText,n))},a.withCredentials=n.withCredentials,a.open(n.method,n.url,!0);for(const[o,l]of Object.entries(n.headers))a.setRequestHeader(o,l);n.onStart?.(n),n.beforeXhrUpload?n.beforeXhrUpload(a,n):a.send(n.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class Rv{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Ds=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);gt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:Ov}=X("progress"),Kv=Ov({components:{Checked:oe.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,a=t.ref(e.strokeWidth+"px"),o=t.ref(),l=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:a,percentage:r,bgStyle:s,textStyle:i,progressOuter:o,insideText:l,slotDefault:n}}}),Uv={class:"fox-progress"},Hv={key:0,class:"fox-progress-text"};function jv(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Uv,[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",Hv,[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 Ht=ne(Kv,[["render",jv]]),{componentName:Wv,create:Yv,scope:Xv}=X("uploader"),Qv=Yv({components:{[Ht.name]:Ht,Photograph:oe.Photograph,Failure:oe.Failure,Loading:oe.Loading,Del:oe.Del,Link:oe.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Xv),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[Wv]:!0})),s=()=>{let m={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(m.capture="camera"),t.h("input",m)},i=m=>{m.value=""},c=m=>{n("file-item-click",{fileItem:m})},f=(m,g)=>{const C=new zv;C.url=e.url,C.formData=m.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=m.formData.get(e.name)}catch{}C.onStart=S=>{m.status="ready",m.message=a("readyUpload"),p(g),n("start",S)},C.onProgress=(S,V)=>{m.status="uploading",m.message=a("uploading"),m.percentage=(S.loaded/S.total*100).toFixed(0),n("progress",{event:S,option:V,percentage:m.percentage})},C.onSuccess=(S,V)=>{m.status="success",m.message=a("success"),n("success",{responseText:S,option:V,fileItem:m}),n("update:fileList",o)},C.onFailure=(S,V)=>{m.status="error",m.message=a("error"),n("failure",{responseText:S,option:V,fileItem:m})};let A=new Fv(C);e.autoUpload?A.upload():l.push(new Promise((S,V)=>{S(A)}))},p=(m=-1)=>{m>-1?l.splice(m,1):(l=[],o.splice(0,o.length))},d=()=>{Promise.all(l).then(m=>{m.forEach(g=>g.upload())})},h=m=>{m.forEach((g,C)=>{const A=new FormData;for(const[V,N]of Object.entries(e.data))A.append(V,N);A.append(e.name,g);const S=t.reactive(new Rv);if(S.name=g.name,S.status="ready",S.type=g.type,S.formData=A,S.message=a("waitingUpload"),f(S,C),e.isPreview&&g.type.includes("image")){const V=new FileReader;V.onload=N=>{S.url=N.target.result,o.push(S)},V.readAsDataURL(g)}else o.push(S)})},k=m=>{const g=e.maximum*1,C=e.maximize*1,A=new Array;m=m.filter(V=>V.size>C?(A.push(V),!1):!0),A.length&&n("oversize",A);let S=m.length+o.length;return S>g&&m.splice(m.length-(S-g)),m},v=(m,g)=>{o.splice(g,1),n("delete",{file:m,fileList:o,index:g})},b=(m,g)=>{p(g),Ds(e.beforeDelete,{args:[m,o],done:()=>v(m,g)})},y=m=>{if(e.disabled)return;const g=m.target;let{files:C}=g;e.beforeUpload?e.beforeUpload(C).then(A=>u(A)):u(C),n("change",{fileList:o,event:m}),e.clearInput&&i(g)},u=m=>{const g=k(new Array().slice.call(m));h(g)};return{onChange:y,onDelete:b,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:p,submit:d,renderInput:s}}}),Gv={key:0,class:"fox-uploader__slot"},Zv={key:0,class:"fox-uploader__preview-img"},Jv={key:0,class:"fox-uploader__preview__progress"},_v={class:"fox-uploader__preview__progress__msg"},e0=["onClick"],t0=["onClick","src"],n0={key:3,class:"fox-uploader__preview-img__file"},o0=["onClick"],l0={class:"file__name_tips"},a0={class:"tips"},r0={key:1,class:"fox-uploader__preview-list"},s0=["onClick"],i0={class:"file__name_tips"};function c0(e,n,a,o,l,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),f=t.resolveComponent("Del"),p=t.resolveComponent("fox-progress"),d=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",Gv,[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,k)=>(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",Zv,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",Jv,[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",_v,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:v=>e.onDelete(h,k)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,e0)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:v=>e.fileItemClick(h),src:h.url},null,8,t0)):(t.openBlock(),t.createElementBlock("view",n0,[t.createElementVNode("view",{onClick:v=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",l0,t.toDisplayString(h.name),1)],8,o0)])),t.createElementVNode("view",a0,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",r0,[t.createElementVNode("view",{onClick:v=>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",i0,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(f,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:v=>e.onDelete(h,k)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,s0),h.status=="uploading"?(t.openBlock(),t.createBlock(p,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(d,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Hl=ne(Qv,[["render",c0]]),u0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozOUNBQTQ0M0Y3RTMxMUVBQjIzNEJCQkYxNDZGQjg5O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5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:f0,scope:m0}=X("number-keyboard"),p0=f0({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:a}=re.useFoxI18n(m0),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:u}=e;let m={id:"lock",type:"lock"},g=Array.isArray(u)?u:[u];return g.length===1&&(m={id:g[0],type:"custom"}),[...c(),m,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const u=[];for(let m=1;m<=9;m++)u.push({id:m,type:"number"});return e.randomKeys?u.sort(()=>Math.random()>.5?1:-1):u}function f(){const u=c(),{customKey:m}=e;let g=Array.isArray(m)?m:[m];return g.length>2&&(g=[g[0],g[1]]),g.length==2&&e.title&&e.type!="rightColumn"&&(g=[g[0]]),g.length===1?e.title&&e.type!="rightColumn"?u.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):u.push({id:0,type:"number"},{id:g[0],type:"custom"}):g.length===2&&u.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:g[1],type:"custom"}),u}const p=t.computed(()=>e.type=="rightColumn"||e.title!=""?f():i()),d=()=>{e.visible&&n("blur")},h=u=>{const m=s.value;m&&!m.contains(u.target)&&d()};t.watch(()=>e.visible,u=>{r.value=u,u?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function k(u,m){m.stopPropagation(),l.value=u.id,(u.type=="number"||u.type=="custom")&&(n("input",u.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+u.id)),u.type=="lock"&&y(),u.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function v(u){u.stopPropagation()}function b(u){u.preventDefault(),l.value=void 0}function y(){n("update:visible",!1),n("close")}return{...o,delImg:u0,lockImg:d0,clickKeyIndex:l,defaultKey:i,closeBoard:y,onTouchEnd:b,onTouchMove:v,onTouchstart:k,keysList:p,genCustomKeys:f,getBasicKeys:c,root:s,show:r}}}),h0={ref:"root"},g0={class:"fox-number-keyboard"},y0={key:0,class:"fox-number-keyboard__header"},v0={class:"fox-number-keyboard__title"},b0={class:"fox-number-keyboard__body"},k0={class:"fox-number-keyboard__keys"},S0=["onTouchstart"],C0=["src"],w0=["src"],N0={key:0,class:"fox-number-keyboard__sidebar"},B0={class:"fox-key__wrapper"},A0=["src"];function V0(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",h0,[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",g0,[e.title?(t.openBlock(),t.createElementBlock("div",y0,[t.createElementVNode("h3",v0,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",b0,[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,C0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,w0)):t.createCommentVNode("",!0)],42,S0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",N0,[t.createElementVNode("div",B0,[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,A0)],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 jl=ne(p0,[["render",V0]]),{componentName:T0,create:$0}=X("swipe"),E0=$0({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const a=t.computed(()=>({[T0]:!0})),o=m=>m.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,f="",p="";const d=t.reactive({offset:0,moving:!1}),h=(m="")=>{c=!0,m&&(d.offset=m==="left"?-i.value:r.value),n("open",{name:e.name,position:f||m})},k=()=>{d.offset=0,c=!1,n("close",{name:e.name,position:f})},v=t.computed(()=>({transform:`translate3d(${d.offset}px, 0, 0)`})),b=m=>{f=m>0?"right":"left";let g=m;switch(f){case"left":c&&p===f?g=-i.value:g=Math.abs(m)>i.value?-i.value:m;break;case"right":c&&p===f?g=r.value:g=Math.abs(m)>r.value?r.value:m;break}d.offset=g},y=_e();return{classes:a,touchStyle:v,...{onTouchStart(m){e.disabled||y.start(m)},onTouchMove(m){e.disabled||(y.move(m),y.isHorizontal()&&(d.moving=!0,b(y.deltaX.value),e.touchMovePreventDefault&&m.preventDefault(),e.touchMoveStopPropagation&&m.stopPropagation()))},onTouchEnd(){if(d.moving)switch(d.moving=!1,p=f,f){case"left":Math.abs(d.offset)<=i.value/2?k():(d.offset=-i.value,h());break;case"right":Math.abs(d.offset)<=r.value/2?k():(d.offset=r.value,h());break}}},leftRef:l,rightRef:s,open:h,close:k}}}),x0={class:"fox-swipe__left",ref:"leftRef"},D0={class:"fox-swipe__content"},I0={class:"fox-swipe__right",ref:"rightRef"};function q0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",x0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",D0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",I0,[t.renderSlot(e.$slots,"right")],512)],38)}const jt=ne(E0,[["render",q0]]),{componentName:M0,create:P0}=X("action-sheet"),L0=P0({components:{[de.name]:de,Loading:oe.Loading},props:{...ze,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const a=!!t.useSlots().default,o=t.computed(()=>({[M0]:!0}));return{slotDefault:a,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,f)=>{!c.disable&&!c.loading&&(n("choose",c,f),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),z0={key:0,class:"fox-action-sheet__title"},F0={key:1},R0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},O0={key:1,class:"fox-action-sheet__menu"},K0=["onClick"],U0={key:1},H0={class:"fox-action-sheet__subdesc"};function j0(e,n,a,o,l,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",z0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",F0,[e.description?(t.openBlock(),t.createElementBlock("view",R0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",O0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:f,onClick:p=>e.chooseItem(c,f)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",U0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",H0,t.toDisplayString(c[e.optionSubTag]),1)],14,K0))),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 Wl=ne(L0,[["render",j0]]),{componentName:W0,create:Y0}=X("backtop"),Yl=Y0({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:a}){const o=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),l=t.computed(()=>({[W0]:!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(v=0){o.scrollEl instanceof Window?window.scrollTo(0,v):o.scrollEl.scrollTop=v}function c(){let v=Xe(function b(){var y=e.duration-Math.max(0,o.startTime-+new Date+e.duration),u=y*-o.scrollTop/e.duration+o.scrollTop;i(u),v=Xe(b),(y==e.duration||u==0)&&Ar(v)})}function f(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function p(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function d(v){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",v)}function h(){k.value?o.scrollEl=k.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),f()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),h()}),t.onUnmounted(()=>{p()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,p()});const k=t.computed(()=>{if(typeof a.content=="function"){const v=a.content();return Array.isArray(v)?v[0]:v}return null});return()=>{const v=[];k.value&&v.push(k.value);const b=[];if(typeof a.default=="function")b.push(a.default());else{const u=t.h(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});b.push(u)}const y=t.h("div",{class:l.value,style:r.value,onClick:d},b);return v.push(y),v}}}),{componentName:X0,create:Q0}=X("drag"),G0=Q0({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),l=t.computed(()=>({[X0]:!0}));function r(){const d=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=d.clientWidth,o.screenHeight=d.clientHeight}function s(d){o.boundary.left?+d.style.left.split("px")[0]>o.boundary.left?(d.style.left=+d.style.left.split("px")[0]-10+"px",Re(()=>{s(d)})):d.style.left=`${o.boundary.left}px`:+d.style.left.split("px")[0]>10?(d.style.left=+d.style.left.split("px")[0]-10+"px",Re(()=>{s(d)})):d.style.left="0px"}function i(d,h){h-parseInt(d.style.left.split("px")[0])>10?(d.style.left=parseInt(d.style.left.split("px")[0])+10+"px",Re(()=>{i(d,h)})):d.style.left=h+"px"}function c(d){d.preventDefault();const h=d.currentTarget;if(d.targetTouches.length===1){const k=d.targetTouches[0];o.nx=k.clientX-o.position.x,o.ny=k.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const v=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>v?o.xPum=v:o.xPum<=o.boundary.left&&(o.xPum=o.boundary.left),o.yPum<o.boundary.top?o.yPum=o.boundary.top:o.yPum>o.screenHeight-o.elHeight-o.boundary.bottom&&(o.yPum=o.screenHeight-o.elHeight-o.boundary.bottom),e.direction!="y"&&(h.style.left=o.xPum+"px"),e.direction!="x"&&(h.style.top=o.yPum+"px")}}function f(d){const h=d.currentTarget;let v=d.changedTouches[0].clientX;const b=o.screenWidth-o.elWidth-o.boundary.right;v>b?v=b:v<o.boundary.left?v=o.boundary.left:v=v<o.screenWidth/2?o.boundary.left:b,e.direction!="y"&&e.attract&&(v<o.screenWidth/2?Re(()=>{s(h)}):Re(()=>{i(h,b)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function p(d){const h=d.currentTarget,k=d.touches[0],v=d.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=k.clientX,o.position.y=k.clientY,o.nx=v.clientX-o.position.x,o.ny=v.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 d=a;d.value.removeEventListener("touchstart",p),d.value.removeEventListener("touchmove",c),d.value.removeEventListener("touchend",f)}),{classes:l,myDrag:a,touchStart:p,touchMove:c,touchEnd:f}}});function Z0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=s=>e.touchStart(s)),onTouchmove:n[1]||(n[1]=s=>e.touchMove(s)),onTouchend:n[2]||(n[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const Xl=ne(G0,[["render",Z0]]),J0={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}},_0=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function eb(e,n,a,o,l){return{props:{...ze,...J0},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:f}=re.useFoxI18n(n),p=f(r,["confirmText","cancelText"]),d=e,h=t.ref(r.visible);t.watch(()=>r.visible,S=>{h.value!==S&&(h.value=S,S&&c("opened"))});const k=S=>{h.value=S,c("update:visible",S),c("update",S)},v=S=>{if(c(S),!(S==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const V=r.beforeClose(S);gt(V)?V.then(N=>{N&&(k(!1),c("closed",S))}):V===!0&&(k(!1),c("closed",S))}else k(!1),c("closed",S)},b=()=>{v("confirm")},y=()=>{v("cancel")},u=()=>{v("close")},m=(S,V)=>_0(S)?(V.src=S,t.h("img",V)):typeof S=="string"?(Array.isArray(V.class)?V.class.push(S):V.class&&typeof V.class=="object"?V[`${S}`]=!0:typeof V.class=="string"?V.class=`${V.class}, ${S}`:V.class=S,t.h(r.tag,V)):t.h(S,V),g=()=>{const S=[];if(i.header){const N=i.header();S.push(N)}else{if(r.title){const N=t.h("view",{class:`${d}__header-title`},[r.title]);S.push(N)}if(r.showClose){const N={class:[`${d}__header-close-icon`],onClick:u},T=r.closeIcon??l,B=m(T,N);S.push(B)}}if(S.length===0)return null;const V={class:[`${d}__header`]};return t.h("view",V,S)},C=()=>{const S=[];if(i.default)S.push(i.default());else{const N={class:[`${d}__content`]};if(r.textAlign&&N.class.push(r.textAlign),typeof r.content=="string"){N.innerHTML=r.content;const T=t.h("view",N);S.push(T)}else if(typeof r.content=="function"){const T=t.h("view",N,[r.content()]);S.push(T)}else{const T=t.h("view",N,[r.content]);S.push(T)}}if(S.length===0)return null;const V={class:[`${d}__body`]};return t.h("view",V,S)},A=()=>{if(!r.showFooter)return null;const S=[];if(i.footer)S.push(i.footer());else if(r.plain){if(r.showCancelButton){const N={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},onClick:y};r.cancelButtonClass&&N.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(N.style,r.cancleButtonStyle);const T=t.h("view",N,[r.cancelButtonText??p.cancelText.value]);S.push(T)}if(r.showConfirmButton){const N={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},onClick:b};r.confirmButtonClass&&N.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(N.style,r.confirmButtonStyle);const T=t.h("view",N,[r.confirmButtonText??p.confirmText.value]);S.push(T)}}else{if(r.showCancelButton){const N={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:y};r.cancelButtonClass&&N.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(N.style,r.cancleButtonStyle);const T=t.h(o,N,{default:()=>[r.cancelButtonText??p.cancelText.value]});S.push(T)}if(r.showConfirmButton){const N={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:b};r.confirmButtonClass&&N.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(N.style,r.confirmButtonStyle);const T=t.h(o,N,{default:()=>[r.confirmButtonText??p.confirmText.value]});S.push(T)}}if(S.length===0)return null;const V={class:[`${d}__footer`,`${d}__footer--${r.footerDirection}`]};return t.h("view",V,S)};return()=>{const S=[],V=g();V&&S.push(V);const N=C();N&&S.push(N);const T=A();T&&S.push(T);const B={class:{[`${d}`]:!0,[`${d}--plain`]:r.plain}},w=t.h("view",B,S),q=[`${d}__popup`];r.popClass&&q.push(r.popClass);const P={};r.width&&(P.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(P.height=typeof r.height=="number"?`${r.height}px`:r.height);const E={...ve(r,ze),popClass:q.join(" "),style:P,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":k,position:r.position,onClickOverlay:u,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,E,{default:()=>w})}}}}const{componentName:tb,create:nb,scope:ob}=X("dialog"),Is=nb(eb(tb,ob,de,Me,oe.Close));class lb{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 ab{options=new lb;constructor(n){let a=Object.assign(this.options,n),o=document.body,l=a.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=a.teleport);const r=document.createElement("view"),s=`dialog-${a.id}`;r.id=s;const i={setup(){return a.onUpdate=f=>{if(f===!1){const p=document.querySelector(`#${s}`);p&&p.parentNode?.removeChild(p)}},a?.onOpened&&a?.onOpened(),()=>t.h(Is,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Wt=function(e){return new ab(e)};Wt.install=e=>{e.use(Is),e.config.globalProperties.$dialog=Wt};const rb={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}},sb=(e,n,a)=>({props:{...rb},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=_o(),f=t.ref(),p=Ts(f),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),k=t.computed(()=>{switch(d.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),v=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),b=t.computed(()=>{const V={};return o.headHeight!=50&&(V.height=he(o.headHeight)),V}),y=V=>{const N=+(o.pullDistance||o.headHeight);let T=V;return V>N&&(V<N*2?T=(V+N)/2:T=N+V/4),Math.round(T)},u=(V,N)=>{const T=+(o.pullDistance||o.headHeight);d.distance=V,N?d.status="loading":V===0?d.status="normal":V<T?d.status="pulling":d.status="loosing",l("change",{status:d.status,distance:V})},m=()=>d.status!=="loading"&&d.status!=="complete",g=()=>p.value==window?$s()==0:p.value&&p.value.scrollTop==0,C=V=>{m()&&(g()?(c.start(V),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},A=V=>{m()&&d.moving&&(c.move(V),c.isVertical()&&c.state.deltaY>0&&d.isPullRefresh&&(V.cancelable&&V.preventDefault(),u(y(c.state.deltaY))))},S=()=>{d.moving=!1,d.isPullRefresh&&m()&&c.state.deltaY&&(d.status==="loosing"?(u(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):u(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,V=>{V?u(+o.headHeight,!0):u(0)}),()=>{const V=[];let N=null;if(d.status==="loading"){if(N=r?.loading?.()??null,!N){const K={class:["fox-pull-refresh-container-topbox-icon"]};N=t.h(a,K)}}else d.status==="pulling"?N=r?.pulling?.()??null:d.status==="loosing"&&(N=r?.loosing?.()??null);N&&V.push(N);const T={class:["fox-pull-refresh-container-topbox-text"]},B=t.h("dive",T,[k.value]);V.push(B);const w={class:["fox-pull-refresh-container-topbox"],style:b.value},q=t.h("div",w,V),P={class:"fox-pull-refresh-container",style:v.value},$=t.h("div",P,[q,r?.default?.()]),E={ref:f,class:h.value};return Jo()?Object.assign(E,{onTouchstart:C,onTouchmove:A,onTouchend:S}):Object.assign(E,{onMousedown:C,onMousemove:A,onMouseup:S}),t.h("div",E,[$])}}}),{componentName:ib,create:cb,scope:ub}=X("pull-refresh"),Ql=cb(sb(ib,ub,oe.Loading)),{create:db}=X("notify"),fb=db({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 a=()=>{e.onClick&&e.onClick()};let o=null;const l=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,f=>{s.value=e.visible;const p=e.duration;f&&p&&(o=setTimeout(()=>{r()},p))},{immediate:!0});return{onAfterLeave:()=>{l(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:s}}});function mb(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const Gl=ne(fb,[["render",mb]]),qo={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let ft=[],Pt=[];const qs=e=>{if(e){const n=document.getElementById(e);Pt=Pt.filter(a=>a.id!==e),ft=ft.filter(a=>a!==e),n&&document.body.removeChild(n)}else ft.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Pt=[],ft=[]},pb=e=>{const n=document.getElementById(e.id);if(n){const a=Pt.find(l=>l.id===e.id);a?e={...qo,...a,...e}:e={...qo,...e};const o=t.createVNode(Gl,e);return t.render(o,n),o.component.data}},xt=e=>{e.unmount=qs;let n;if(e.id){if(n=e.id,ft.find(r=>r===e.id))return pb(e)}else n=new Date().getTime()+"";e={...qo,...e},e.id=n,ft.push(e.id),Pt.push(e);const a=document.createElement("view");a.id="notify-"+e.id;const o={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(a)},e.duration)}),()=>t.h(Gl,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Dt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Zl={text(e,n={}){return Dt(e),xt({...n,msg:e})},primary(e,n={}){return Dt(e),xt({...n,msg:e,type:"primary"})},success(e,n={}){return Dt(e),xt({...n,msg:e,type:"success"})},danger(e,n={}){return Dt(e),xt({...n,msg:e,type:"danger"})},warn(e,n={}){return Dt(e),xt({...n,msg:e,type:"warning"})},hide(){qs()},install(e){e.use(Gl)}},{create:hb}=X("toast"),gb=hb({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,k=>{k&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const k=ie(e.iconSize);return t.h(e.icon,{width:k,height:k,color:e.iconColor})},p=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:f,hasIcon:c,toastBodyClass:p,toastIconWrapperClass:d,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),yb={key:1,class:"fox-toast-title"},vb=["innerHTML"];function bb(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",yb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,vb)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Jl=ne(gb,[["render",bb]]),Mo={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 mt=[],Lt=[];const Ms=e=>{if(e){const n=document.getElementById(e);Lt=Lt.filter(a=>a.id!==e),mt=mt.filter(a=>a!==e),n&&document.body.removeChild(n)}else mt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Lt=[],mt=[]},kb=e=>{const n=document.getElementById(e.id);if(n){const a=Lt.find(l=>l.id===e.id);a?e={...Mo,...a,...e}:e={...Mo,...e};const o=t.createVNode(Jl,e);return t.render(o,n),At}},It=e=>{e.unmount=Ms;let n;if(e.id){if(n=e.id,mt.find(l=>l===e.id))return kb(e)}else n=new Date().getTime()+"";e={...Mo,...e},e.id=n,mt.push(e.id),Lt.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Jl,e);return t.render(o,a),document.body.appendChild(a),At},_t=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},At={text(e,n={}){return _t(e),It({...n,type:"text",msg:e})},success(e,n={}){return _t(e),It({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){return _t(e),It({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return _t(e),It({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return It({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){Ms(e)},install(e){e.use(Jl),e.config.globalProperties.$toast=At}},{componentName:v2,create:Sb}=X("audio"),Cb=Sb({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:oe.Service,[Ut.name]:Ut},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var b=["webkitVisibilityState","visibilitychange"];try{for(let y=0;y<b.length;y++)document.addEventListener(b[y],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(y){y.message}});const r=b=>{const y=o.value;e.autoplay&&y&&y.paused&&y.play(),l.second=y.duration,l.duration=v(y.duration),n("can-play",b)},s=b=>{l.currentTime=parseInt(b.target.currentTime)},i=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const b=o.value;l.playing?(b.pause(),l.handPlaying=!1):(b.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},f=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},p=b=>{l.currentDuration=v(b),l.percent=b/l.second*100},d=()=>{l.playing=!1,n("ended")},h=b=>{const y=o.value;y.currentTime=l.second*b/100,n("changeProgress",y.currentTime)},k=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},v=b=>{if(!b)return"00:00:00";let y=parseInt(b),u=Math.floor(y/3600),m=Math.floor((y-u*3600)/60),g=y-u*3600-m*60,C="";return C+=("0"+u.toString()).slice(-2)+":",C+=("0"+m.toString()).slice(-2)+":",C+=("0"+g.toString()).slice(-2),C};return t.watch(()=>l.currentTime,b=>{p(b)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:k,forward:f,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:f,changeStatus:c,progressChange:h,audioEnd:d,onTimeupdate:s,handleMute:k,onCanplay:r,slots:a}}}),wb={class:"fox-audio"},Nb={key:0,class:"fox-audio__progress"},Bb={class:"fox-audio__time"},Ab={class:"fox-audio__bar"},Vb=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),Tb={class:"fox-audio__time"},$b={key:1,class:"fox-audio__icon"},Eb=["controls","src","preload","autoplay","loop","muted"];function xb(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",wb,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",Nb,[t.createElementVNode("div",Bb,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Ab,[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(()=>[Vb]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Tb,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",$b,[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,Eb)])}const _l=ne(Cb,[["render",xb]]),{componentName:b2,create:Db,scope:Ib}=X("audio-operate"),qb=Db({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Ib),o=t.inject("audioParent"),l=t.reactive(o),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(l),customSlot:r,t:a}}}),Mb={class:"fox-audio-operate"};function Pb(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Mb,[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 ea=ne(qb,[["render",Pb]]),{componentName:Lb,create:zb}=X("avatar"),Fb=zb({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:o,color:l}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),f=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const v=s?.avatarGroupRef?.value?.children;v&&k(v)});const p=t.computed(()=>({[Lb]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),d=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${l.value}`,marginLeft:f.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(f.maxIndex-f.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),k=v=>{f.maxIndex=v.length;for(let b=0;b<v.length;b++)v[b]&&v[b].classList&&v[b].classList[0]=="fox-avatar"&&v[b].setAttribute("data-index",b+1);f.index=i?.value?.dataset?.index,f.index==f.maxIndex&&f.index!=s?.props?.maxCount&&(f.showMax=!0)};return{classes:p,styles:d,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(f)}}});function Rb(e,n,a,o,l,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const Yt=ne(Fb,[["render",Rb]]),{componentName:Ob,create:Kb}=X("avatar-group"),Ub=Kb({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:a}){t.toRefs(e);const o=t.ref(null),l=t.ref(0),r=t.computed(()=>({[Ob]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function Hb(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const ta=ne(Ub,[["render",Hb]]);var rn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(rn||{});function jb(e,n,a){let o=0,l=e.length-1,r=null;for(;o<=l;){r=Math.floor((o+l)/2);const s=e[r],i=a(s,n);if(i===1)return r;i===2?o=r+1:i===3&&(l=r-1)}return r}const{componentName:Wb,create:Yb}=X("list"),Nr=document.documentElement.clientHeight||document.body.clientHeight||667,Xb=Yb({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Nr},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(null),l=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=t.computed(()=>Math.min(e.containerHeight,Nr)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),f=t.computed(()=>({[Wb]:!0})),p=t.computed(()=>r.list.slice(r.start,c.value)),d=()=>{if(l.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let u=0;u<r.list.length;++u)r.cachePositions[u]={index:u,height:e.height,top:u*e.height,bottom:(u+1)*(e.height+e.margin),dValue:0}},k=()=>{let u=l.value.childNodes;u=Array.from(u).filter(V=>V.nodeType===1);const m=u[0];u.forEach((V,N)=>{if(!V)return;const T=Ve(V),{height:B}=T,q=r.cachePositions[N+r.start].height-B;q&&(r.cachePositions[N+r.start].bottom-=q,r.cachePositions[N+r.start].height=B,r.cachePositions[N+r.start].dValue=q)});let g=0;m&&(g=r.start);const C=r.cachePositions.length;let A=r.cachePositions[g].dValue;r.cachePositions[g].dValue=0;for(let V=g+1;V<C;++V){const N=r.cachePositions[V];r.cachePositions[V].top=r.cachePositions[V-1].bottom,r.cachePositions[V].bottom=r.cachePositions[V].bottom-A,N.dValue!==0&&(A+=N.dValue,N.dValue=0)}const S=r.cachePositions[C-1].bottom;r.phantomHeight=S},v=(u=0)=>{let m=jb(r.cachePositions,u,(C,A)=>{const S=C.bottom;return S===A?rn.eq:S<A?rn.lt:rn.gt});return r.cachePositions[m].bottom<u&&(m+=1),m},b=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},y=()=>{const u=a.value?.scrollTop,{originStartIndex:m}=r,g=v(u);g!==m&&(r.originStartIndex=g,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(u>r.scrollTop?"scroll-up":"scroll-down",u),r.scrollTop=u};return t.watch(()=>e.listData,u=>{if(r.list=u.slice(),r.list.length===u.length)h(),k();else{b();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&k()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:d,visibleData:p,classes:f,getContainerHeight:s,handleScrollEvent:y}}});function Qb(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const na=ne(Xb,[["render",Qb]]),{componentName:Gb,create:Zb}=X("circleprogress"),Jb=Zb({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const a=!!t.useSlots().default,o=Math.random().toString(36).slice(-8),l=t.computed(()=>({[Gb]:!0})),r=t.computed(()=>{const p=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${p} 0 90 a 45 45 0 1, ${p} 0 -90`}),s=t.computed(()=>Ae(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let p=283,d=p*Number(e.progress)/100;return{stroke:Ae(e.color)?`url(#${o})`:e.color,strokeDasharray:`${d}px ${p}px`}}),c=t.computed(()=>({stroke:e.pathColor})),f=t.computed(()=>{if(!Ae(e.color))return;let p=e.color;const d=Object.keys(p).sort((k,v)=>parseFloat(k)-parseFloat(v));let h=[];return d.map((k,v)=>{let b={key:"",value:""};b.key=k,b.value=p[k],h.push(b)}),h});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:f,slotDefault:a,refRandomId:o}}}),_b={viewBox:"0 0 100 100"},ek=["id"],tk=["offset","stop-color"],nk=["d","stroke-width"],ok=["d","stroke","stroke-linecap","stroke-width"],lk={class:"fox-circleprogress-text"},ak={key:0};function rk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",_b,[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,tk))),128))],8,ek)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,nk),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,ok)])),t.createElementVNode("div",lk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ak,t.toDisplayString(e.progress)+"%",1))])],6)}const oa=ne(Jb,[["render",rk]]),{componentName:sk,create:ik}=X("noticebar"),ck=ik({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},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:oe.Notice,CircleClose:oe.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[sk]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),f=t.computed(()=>{let V={};return e.color&&(V.color=e.color),e.background&&(V.background=e.background),e.direction=="vertical"&&(V.height=`${e.height}px`),V}),p=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),d=t.computed(()=>{let V={};if(e.complexAm)V={transform:`translateY(${r.distance}px)`};else if(r.animate){let N=~~(e.height/e.speed/4);V={transition:`all ${N==0?~~(e.height/e.speed):N}s`,"margin-top":`-${e.height}px`}}return V});t.watch(()=>e.text,V=>{h()}),t.watch(()=>e.list,V=>{r.scrollList=[...V]});const h=V=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const N=o.value.getBoundingClientRect().width,T=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?T>N:e.scrollable,r.isCanScroll?(r.wrapWidth=N,r.offsetWidth=T,r.duration=T/e.speed,r.animationClass="play"):r.animationClass=""},0)},k=V=>{n("click",V)},v=V=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",V)},b=V=>{r.firstRound=!1,n("across-end",V),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},y=()=>{u(),r.timer=setInterval(u,~~(e.height/e.speed/4*1e3)+e.standTime)},u=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},m=()=>{r.timer=setInterval(()=>{let V=100;for(let N=0;N<V;N++)g(N,!(N<V-1))},e.standTime+100*e.speed)},g=(V,N)=>{setTimeout(()=>{r.distance-=e.height/100,N&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},V*e.speed)},C=V=>{n("click",V)},A=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?S(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?m():y()},e.standTime)):h(e.text)}),t.watch(()=>a.default?a.default():[],V=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),S(V))});const S=V=>{V&&V.length>0&&(r.scrollList=V[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:f,contentStyle:p,horseLampStyle:d,wrap:o,content:l,handleClick:k,onClickIcon:v,onAnimationEnd:b,go:C,handleClickIcon:A,slots:a,toPxDesc:he,wrapContentClass:c}}}),uk={key:0,class:"fox-noticebar__page-lefticon"},dk={ref:"wrap",class:"fox-noticebar__page-wrap"},fk={class:"showNotica"},mk=["onClick"];function pk(e,n,a,o,l,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:n[3]||(n[3]=(...f)=>e.handleClick&&e.handleClick(...f))},[e.showLeftIcon?(t.openBlock(),t.createElementBlock("view",uk,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("view",dk,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...f)=>e.onAnimationEnd&&e.onAnimationEnd(...f)),"on:webkitAnimationEnd":n[1]||(n[1]=(...f)=>e.onAnimationEnd&&e.onAnimationEnd(...f))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...f)=>e.onClickIcon&&e.onClickIcon(...f),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",fk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(f,p)=>(t.openBlock(),t.createBlock(c,{key:p,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:f},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(f,p)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:p,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:d=>e.go(f)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(f),1)])],12,mk))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=f=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const la=ne(ck,[["render",pk]]),hk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT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ONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:k2,create:vk,scope:bk}=X("empty"),kk={empty:hk,error:gk,network:yk},Sk=vk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=re.useFoxI18n(bk),a=n(e,["description"]),{image:o,imageSize:l}=t.toRefs(e),r=t.computed(()=>l.value?typeof l.value=="number"?`width:${l.value}px;height:${l.value}px`:`width:${l.value};height:${l.value}`:""),i=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:kk[o.value];return{...a,imageUrl:i,imgStyle:r}}}),Ck={class:"fox-empty"},wk=["src"],Nk={key:1,class:"fox-empty-description"};function Bk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Ck,[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,wk)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",Nk,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const aa=ne(Sk,[["render",Bk]]),{create:Ak,scope:Vk}=X("video"),Tk=Ak({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Vk),o=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),l=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,S=>{S.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,S=>{o.state.isMuted=S?S.muted:!1},{immediate:!0});const s=()=>{o.videoElm=l.value,e.options.autoplay&&setTimeout(()=>{o.videoElm.play()},200),e.options.touchPlay&&(o.showTouchMask=!0),e.options.playsinline&&(o.videoElm.setAttribute("playsinline",e.options.playsinline),o.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),o.videoElm.setAttribute("x5-video-player-type","h5-page"),o.videoElm.setAttribute("x5-video-player-fullscreen",!1)),v(),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",un(d,1e3)))},i=()=>{const S=l.value,V=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=S,o.progressBar.progressElm=V,o.progressBar.pos=V.getBoundingClientRect(),o.videoSet.progress.width=Math.round(V.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return o.state.playing=!0,!1;if(o.state.playing=!o.state.playing,o.videoElm)if(o.state.playing)try{setTimeout(()=>{o.videoElm.play()},200),o.videoElm.addEventListener("progress",()=>{p()}),o.videoElm.addEventListener("timeupdate",un(d,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{k()}else o.videoElm.pause(),n("pause",o.videoElm)},f=S=>{var V=Math.floor(S/3600);V<10&&(V="0"+V);var N=Math.floor(S%3600/60);N<10&&(N="0"+N);var T=Math.round(S%3600%60);T<10&&(T="0"+T);var B="";return V!=0?B=V+":"+N+":"+T:B=N+":"+T,B},p=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},d=()=>{const S=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*S),o.videoSet.totalTime=f(o.videoElm.duration),o.videoSet.displayTime=f(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},h=()=>{o.state.playing=!1,o.state.isEnd=!0,o.videoSet.displayTime="00:00",o.videoSet.progress.current=0,o.videoElm.currentTime=0,n("playend",o.videoElm)},k=()=>{o.state.isError=!0},v=()=>{o.state.vol=e.options.volume},b=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},y=()=>{},u=S=>{let N=S.targetTouches[0].pageX-o.progressBar.pos.left;N<=0&&(N=0),N>=o.videoSet.progress.width&&(N=o.videoSet.progress.width),o.videoSet.progress.current=N;let T=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&g(T,o.videoElm.duration)},m=S=>{let N=S.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=N;let T=N/o.videoSet.progress.width;o.videoElm.duration&&g(T,o.videoElm.duration)},g=(S,V)=>{o.videoElm.currentTime=Math.floor(S*V)},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:l,...t.toRefs(e),...t.toRefs(o),handleError:k,isDisabled:r,play:c,handleMuted:b,touchSlidSrart:y,touchSlidMove:u,touchSlidEnd:m,retry:C,fullScreen:A,t:a}}}),$k={class:"fox-video",ref:"videocon"},Ek=["muted","autoplay","loop","poster","controls","preload"],xk=["src","type"],Dk={class:"fox-video-controller__now"},Ik={class:"fox-video-controller__progress"},qk={class:"fox-video-controller__progress-value",ref:"progressBar"},Mk=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),Pk=[Mk],Lk={class:"fox-video-controller__played",ref:"playedBar"},zk={class:"fox-video-controller__total"},Fk={class:"fox-video-error"},Rk={class:"fox-video-error-tip"};function Ok(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",$k,[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,xk)],40,Ek),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",Dk,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",Ik,[t.createElementVNode("div",qk,[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"]))},Pk,36),t.createElementVNode("div",Lk,null,512)],512)]),t.createElementVNode("div",zk,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",Fk,[t.createElementVNode("p",Rk,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 St=ne(Tk,[["render",Ok]]),{create:Kk,componentName:Uk}=X("steps"),ra=Kk({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:a}){const o=t.reactive({children:[]}),l=t.computed(()=>{const i=Uk;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&o.children.push(i)},s=i=>{n("click-step",i)};return t.provide("parent",{relation:r,state:o,props:e,onEmit:s}),()=>t.h("view",{class:l.value},a.default?.())}}),{create:Hk,componentName:jk}=X("step"),Wk=Hk({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),n=t.inject("parent");n.relation(e);const a=t.reactive({dot:n.props.progressDot}),o=t.computed(()=>n.state.children.indexOf(e)+1),l=()=>{const c=o.value;return c<+n.props.current?"finish":c===+n.props.current?"process":"wait"},r=t.computed(()=>l()),s=t.computed(()=>{const c=jk;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),Yk={class:"fox-step-head"},Xk=t.createElementVNode("view",{class:"fox-step-line"},null,-1),Qk={class:"fox-step-icon-inner"},Gk={key:1,class:"fox-step-inner"},Zk={class:"fox-step-main"},Jk={class:"fox-step-title"},_k={key:0},eS={key:0,class:"fox-step-content"},tS=["innerHTML"];function nS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",Yk,[Xk,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",Qk,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",Gk,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",Zk,[t.createElementVNode("view",Jk,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",_k,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",eS,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,tS)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const sa=ne(Wk,[["render",nS]]),{create:oS,componentName:co}=X("swiper"),lS=oS({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=_e(),s=t.computed(()=>({[co]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const D=co;return{[`${D}-inner`]:!0,[`${D}-vertical`]:i.value}}),f=t.computed(()=>{const D=co;return{[`${D}-pagination`]:!0,[`${D}-pagination-vertical`]:i.value}}),p=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),d=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>l.children.length),k=t.computed(()=>l[i.value?"height":"width"]),v=t.computed(()=>h.value*k.value),b=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-k.value*h.value:0),y=t.computed(()=>(l.active+h.value)%h.value),u=()=>{let D=0;D=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${D}px)`,[i.value?"height":"width"]:`${k.value*h.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},m=D=>{let W=[];const H=l.childrenVNode.length;let Z=a?.default?.();if(Z=Z.filter(_=>_.children&&Array.isArray(_.children)),Z.forEach(_=>{W=W.concat(_.children)}),!H)l.childrenVNode=W.slice(),D.proxy&&l.children.push(D.proxy);else if(H>W.length)l.children=l.children.filter(_=>D.proxy!==_);else if(H<W.length){for(let _=0;_<H;_++)if(W[_].key!==l.childrenVNode[_].key){D.proxy&&l.children.splice(_,0,D.proxy),D.vnode&&l.childrenVNode.splice(_,0,D.vnode);break}H!==W.length&&(D.proxy&&l.children.push(D.proxy),D.vnode&&l.childrenVNode.push(D.vnode))}else l.childrenVNode=W.slice(),D.proxy&&l.children.push(D.proxy)},g=(D,W=0)=>{let H=D*k.value;e.loop||(H=Math.min(H,-b.value));let Z=W-H;return e.loop||(Z=Oe(Z,b.value,0)),Z},C=D=>{const{active:W}=l;return D?e.loop?Oe(W+D,-1,h.value):Oe(W+D,0,h.value-1):W},A=({pace:D=0,offset:W=0,isEmit:H=!1})=>{if(h.value<=1)return;const{active:Z}=l,_=C(D),j=g(_,W);if(e.loop){if(l.children[0]&&j!==b.value){const I=j<b.value;l.children[0].setOffset(I?v.value:0)}if(l.children[h.value-1]&&j!==0){const I=j>0;l.children[h.value-1].setOffset(I?-v.value:0)}}l.active=_,l.offset=j,H&&Z!==l.active&&n("change",y.value),u()},S=()=>{l.moving=!0,l.active<=-1&&A({pace:h.value}),l.active>=h.value&&A({pace:-h.value})},V=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},N=D=>{S(),r.reset(),Xe(()=>{Xe(()=>{l.moving=!1,A({pace:D,isEmit:!0})})})},T=()=>{N(-1)},B=()=>{N(1)},w=D=>{S(),r.reset(),Xe(()=>{l.moving=!1;let W;e.loop&&h.value===D?W=l.active===0?0:D:W=D%h.value,A({pace:W-l.active,isEmit:!0})})},q=()=>{e.autoPlay<=0||h.value<=1||(V(),l.autoplayTimer=setTimeout(()=>{B(),q()},Number(e.autoPlay)))},P=(D=+e.initPage)=>{V(),l.rect=o.value.getBoundingClientRect(),D=Math.min(h.value-1,D),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=D,l.offset=g(l.active),l.moving=!0,u(),q()},$=D=>{e.isPreventDefault&&D.preventDefault(),e.isStopPropagation&&D.stopPropagation(),e.touchable&&(r.start(D),l.touchTime=Date.now(),V(),S())},E=D=>{e.touchable&&l.moving&&(r.move(D),d.value&&A({offset:p.value}))},K=D=>{if(!e.touchable||!l.moving)return;const W=p.value/(Date.now()-l.touchTime);if((Math.abs(W)>.3||Math.abs(p.value)>+(k.value/2).toFixed(2))&&d.value){let Z=0;const _=i.value?r.offsetY.value:r.offsetX.value;e.loop?Z=_>0?p.value>0?-1:1:0:Z=-Math[p.value>0?"ceil":"floor"](p.value/k.value),A({pace:Z,isEmit:!0})}else p.value&&A({pace:0});l.moving=!1,u(),q()};return t.provide("parent",{props:e,size:k,relation:m}),$e({prev:T,next:B,to:w}),t.onDeactivated(()=>{V()}),t.onBeforeUnmount(()=>{V()}),t.watch(()=>e.initPage,D=>{t.nextTick(()=>{P(Number(D))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{P()})}),t.watch(()=>e.autoPlay,D=>{D>0?q():V()}),{state:l,classes:s,classesInner:c,classesPagination:f,container:o,activePagination:y,onTouchStart:$,onTouchMove:E,onTouchEnd:K}}});function aS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const Ct=ne(lS,[["render",aS]]),{create:rS,componentName:sS}=X("swiper-item"),iS=rS({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[sS]:!0})),r=t.computed(()=>{const i={},c=a?.props.direction;return a?.size.value&&(i[c==="horizontal"?"width":"height"]=`${a?.size.value}px`),o.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${o.offset}px)`),i}),s=i=>{o.offset=i};return t.onUnmounted(()=>{a.relation(t.getCurrentInstance(),"unmount")}),$e({setOffset:s}),{style:r,classes:l}}});function cS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const wt=ne(iS,[["render",cS]]),Ps={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:uS}=X("image-preview-item"),dS=uS({props:{...Ps,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:{[St.name]:St,[wt.name]:wt},setup(e,{emit:n}){const a=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),o=_e(),l=t.computed(()=>{const{rootWidth:T,rootHeight:B}=e,w=B/T;return a.imageRatio>w}),r=t.computed(()=>{const T=e.image;if(T&&T.src){const{scale:B,moveX:w,moveY:q,moving:P,zooming:$}=a,E={transitionDuration:$||P?"0s":".3s"};if(B!==1){const K=w/B,D=q/B;E.transform=`scale(${B}, ${B}) translate(${K}px, ${D}px)`}return E}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:T,rootHeight:B}=e,w=l.value?B/a.imageRatio:T;return Math.max(0,(a.scale*w-T)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:T,rootHeight:B}=e,w=l.value?B:T*a.imageRatio;return Math.max(0,(a.scale*w-B)/2)}return 0}),c=T=>{const{naturalWidth:B,naturalHeight:w}=T.target;a.imageRatio=w/B},f=()=>{p(1),a.moveX=0,a.moveY=0},p=T=>{T=Oe(T,+e.minZoom,+e.maxZoom+1),T!==a.scale&&(a.scale=T,n("scale",{scale:T,index:e.initNo}))},d=()=>{const T=a.scale>1?1:2;p(T),a.moveX=0,a.moveY=0},h=T=>Math.sqrt((T[0].clientX-T[1].clientX)**2+(T[0].clientY-T[1].clientY)**2);let k,v,b,y,u,m,g;const C=T=>{const{touches:B}=T,{offsetX:w}=o;o.start(T),g=B.length,k=a.moveX,v=a.moveY,m=Date.now(),a.moving=g===1&&a.scale!==1,a.zooming=g===2&&!w.value,a.zooming&&(b=a.scale,y=h(T.touches))},A=T=>{const{touches:B}=T;if(o.move(T),(a.moving||a.zooming)&&bo(T,!0),a.moving){const{deltaX:w,deltaY:q}=o,P=w.value+k,$=q.value+v;a.moveX=Oe(P,-s.value,s.value),a.moveY=Oe($,-i.value,i.value)}if(a.zooming&&B.length===2){const w=h(B),q=b*w/y;p(q)}},S=()=>{if(g==1&&e.video&&e.video.source||g>1)return;const{offsetX:T,offsetY:B}=o,w=Date.now()-m,q=250,P=5;T.value<P&&B.value<P&&w<q&&(u?(clearTimeout(u),u=null,d()):u=setTimeout(()=>{e.contentClose&&n("close"),u=null},q))},V=T=>{let B=!1;(a.moving||a.zooming)&&(B=!0,a.moving&&k===a.moveX&&v===a.moveY&&(B=!1),T.touches.length||(a.zooming&&(a.moveX=Oe(a.moveX,-s.value,s.value),a.moveY=Oe(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,k=0,v=0,b=1,a.scale<1&&f(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),bo(T,B),S(),o.reset()},N=()=>{n("close")};return t.watch(()=>e.initNo,f),t.watch(()=>e.show,T=>{T||f()}),{...t.toRefs(a),onTouchStart:C,onTouchMove:A,onTouchEnd:V,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:N}}}),fS=["src"];function mS(e,n,a,o,l,r){const s=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onClick:e.closeSwiper},{default:t.withCtx(()=>[t.createElementVNode("view",{style:t.normalizeStyle(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[2]||(n[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[4]||(n[4]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,fS)):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 pS=ne(dS,[["render",mS]]),{create:hS}=X("image-preview"),gS=hS({props:{...Ps,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:pS,CircleClose:oe.CircleClose,[de.name]:de,[Ct.name]:Ct},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),l=t.computed(()=>{const p="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${p}-right`:`${p}-left`}`}),r=t.computed(()=>vn(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=p=>{p!==o.active&&(o.active=p,n("change",o.active))},i=()=>{Ds(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},f=()=>{if(a.value){const p=Ve(a.value);o.rootHeight=p.height,o.rootWidth=p.width}};return t.watch(()=>e.show,p=>{o.showPop=p,p&&(s(e.initNo),f())}),t.watch(()=>e.initNo,p=>{p!=o.active&&s(p)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:i,mergeImages:r,setActive:s,iconClasses:l}}}),yS={class:"fox-image-preview",ref:"swipeRef"},vS={key:0,class:"fox-image-preview-index"};function bS(e,n,a,o,l,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",yS,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(p,d)=>(t.openBlock(),t.createBlock(s,{key:d,video:d<e.videos.length?p:{},image:d>=e.videos.length?p:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",vS,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:n[0]||(n[0]=(...p)=>e.onClose&&e.onClose(...p))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Ls=ne(gS,[["render",bS]]);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 SS{options=new kS;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=bi(a,{name:"image-preview",components:[de,St,Ct,wt,rt],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(Ls,a))}})})}}const Gn=e=>new SS(e);Gn.install=e=>{e.use(Ls)};function CS(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:S2,create:wS}=X("countup"),NS=wS({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref([]),l=N=>{N&&o.value.push(N)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:f}=t.reactive(e);t.watch(()=>e.customChangeNum,(N,T)=>{d(),y(0)}),t.watch(()=>e.machinePrizeLevel,(N,T)=>{r.prizeLevelTrun=N}),t.watch(()=>e.initNum,(N,T)=>{r.current=N,r.valFlag=!1,p()}),t.watch(()=>e.endNum,(N,T)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||c?f!="machine"&&y():(b(),setTimeout(()=>{r.valFlag=!0},300)))},d=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(N,T,B)=>{const w=(N.toString().split(".")[1]||"").length,q=(T.toString().split(".")[1]||"").length,P=Math.pow(10,Math.max(w,q));return B=="-"?Number((N*P-T*P).toFixed(0))/P:Number((N*P+T*P).toFixed(0))/P},k=N=>{let{num_total_len:T,pointNum:B,initDigit1:w,initDigit2:q,sortFlag:P}=r,$=P=="add"||P=="equal"?String(q)[N-(T-B)]:10-Number(String(q)[N-(T-B)]),E=P=="add"||P=="equal"?String(w)[N]:10-Number(String(w)[N]),K=N>T-B-1?-$*100+"%":N<=String(w).length-1?-E*100+"%":0;return K=="-1000%"&&(K=0),K},v=N=>{let{num_total_len:T,pointNum:B,initDigit1:w,initDigit2:q,sortFlag:P}=r,$=String(q)[N-(T-B)];return N>T-B-1?$||0:N<=String(w).length-1?String(w)[N]:0},b=()=>{let{endNum:N,initNum:T,speed:B,toFixed:w}=e,q=setInterval(()=>{if(T>N)if(r.current<=N||r.current<=B)r.current=N.toFixed(w),clearInterval(q),n("scroll-end"),r.valFlag=!1;else{let P=parseFloat(String(r.current))-parseFloat(String(B));r.current=P.toFixed(w)}else if(r.current>=N)r.current=N.toFixed(w),clearInterval(q),n("scroll-end"),r.valFlag=!1;else{let P=parseFloat(String(r.current))+parseFloat(String(B));r.current=P.toFixed(w)}},e.during)},y=N=>{let{initNum:T,endNum:B,toFixed:w,customBgImg:q}=e;q&&(T=e.customChangeNum);let P,$,E,K;T!=0?(w!=0&&(T=Number(T.toFixed(w))),String(T).indexOf(".")>-1?(P=String(T).split(".")[0].length,$=String(T).split(".")[1].length):(P=String(T).length,$=0)):(P=1,$=0),B!=0?(w!=0&&(B=Number(B.toFixed(w))),String(B).indexOf(".")>-1?(E=String(B).split(".")[0].length,K=String(B).split(".")[1].length):(E=String(B).length,K=0)):(E=1,K=0);let D=P>=E?P:E,W=$>=K?$:K;r.num_total_len=D+W,r.pointNum=W,T>B?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(T,B,"-"),r.numberVal=Number(String(T))):T<B?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(B,T,"-"),r.numberVal=Number(String(B))):r.sortFlag="equal";var H=1;for(let _=0;_<r.pointNum;_++)H*=10;var Z=r.numberVal*H;if(r.relNum=Z,w!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(Z).length),String(T).indexOf(".")>-1){let _=String(T).split(".");r.initDigit1=Number(_[0]),r.initDigit2=Number(_[1])}else r.initDigit1=T,r.initDigit2=0;i&&!q?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let _=o.value[r.num_total_len-1];u(_)}):N!==0&&C()},u=N=>{d();var T=1;r.pointNum!=0&&(T=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{m(N),r.totalCount=h(r.totalCount,T,"-"),r.totalCount<=0&&(d(),n("scroll-end"),r.valFlag=!1)},e.during)},m=N=>{let T=N.getAttribute("turn-number"),B;if(r.sortFlag=="add"?B=parseInt(String(T))+1:B=parseInt(String(T))-1>=0?parseInt(String(T))-1:9,N.setAttribute("turn-number",String(B)),(N.style.transition=="none 0s ease 0s"||B==1||!N.style.transition)&&(N.style.transition=`all linear ${e.during}ms`),B==10||r.sortFlag=="reduce"&&B==0){var w=null;N.style.top=`-${r.sortFlag=="add"?B*100:(10-B)*100}%`,N.setAttribute("turn-number","0"),w=setTimeout(()=>{w&&clearTimeout(w),N.style.transition="none",N.style.top="0",g(N,B)},.975*e.during)}else N.style.top=`-${r.sortFlag=="add"?B*100:(10-B)*100}%`;N.style.top=="-100%"&&r.sortFlag=="reduce"&&m(N.previousSibling)},g=(N,T)=>{setTimeout(()=>{T==10&&N.previousSibling&&m(N.previousSibling)},200)},C=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},A=()=>{for(r.notPrize=[];r.notPrize.length<3;){var N=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(N)==-1&&r.notPrize.push(N)}};CS({machineLuck:()=>{const N=e.machineTurnMore<0?0:e.machineTurnMore;let T=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&A();for(let B=0;B<e.machineNum;B++)setTimeout(()=>{let w=T*(B+1+parseFloat(String(N)));r.prizeYPrev.length!=0&&(r.prizeY[B]=r.prizeYPrev[B]);let q=r.prizeYPrev[B]?r.prizeYPrev[B]:0,P=w+q+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(T-q);r.prizeLevelTrun<0&&(P+=e.numHeight*r.notPrize[B]),V(B,P,q)},500*B)}});const V=(N,T,B)=>{let w=setInterval(()=>{if(B<=T)B+=10,r.prizeY[N]=parseFloat(String(B));else if(clearInterval(w),w=null,r.finshMachine+=1,r.prizeY[N]=T,r.finshMachine==e.machineNum){let q=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach($=>{let E=$;for(;E>q;)E-=q;r.prizeYPrev.push(E)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{p()})}),t.onUnmounted(()=>{d(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:k,turnNumber:v}}}),BS={class:"fox-countup"},AS=["turn-number"];function VS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",BS,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+f,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,AS))),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 ia=ne(NS,[["render",VS]]),TS=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:$S,create:ES}=X("countdown"),xS=ES({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:a}){const o=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),l=t.computed(()=>({[$S]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-TS(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const k=Date.now()-o.diffTime,v=Math.max(o.handleEndTime-k,0);o.restTime=v,v||(o.counting=!1,d(),n("on-end")),v>0&&i()}}))},c=(k,v)=>{const b=k;let y={d:0,h:0,m:0,s:0,ms:0};const u=1e3,m=60*u,g=60*m,C=24*g;return b>0&&(y.d=b>=u?Math.floor(b/C):0,y.h=Math.floor(b%C/g),y.m=Math.floor(b%g/m),y.s=Math.floor(b%m/u),y.ms=Math.floor(b%u)),v=="custom"?y:f({...y})},f=k=>{let{d:v,h:b,m:y,s:u,ms:m}=k,g=e.format;if(g.includes("DD")?g=g.replace("DD",et(v)):b+=Number(v)*24,g.includes("HH")?g=g.replace("HH",et(b)):y+=Number(b)*60,g.includes("mm")?g=g.replace("mm",et(y)):u+=Number(y)*60,g.includes("ss")?g=g.replace("ss",et(u)):m+=Number(u)*1e3,g.includes("S")){const C=et(m,3).toString();g.includes("SSS")?g=g.replace("SSS",C):g.includes("SS")?g=g.replace("SS",C.slice(0,2)):g.includes("S")&&(g=g.replace("SS",C.slice(0,1)))}return g},p=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},d=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(d(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,k=>{let v=c(k,"custom");n("update:modelValue",v),n("input",v)}),t.watch(()=>e.paused,(k,v)=>{v?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&d()}),t.watch(()=>e.endTime,k=>{s()}),t.watch(()=>e.startTime,k=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:p,pause:d,renderTime:r,reset:h}}}),DS=["innerHTML"];function IS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,DS))],2)}const ca=ne(xS,[["render",IS]]),{create:qS}=X("badge"),MS=qS({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const n=t.reactive({}),a=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),o=t.computed(()=>{if(e.dot)return;const l=e.value,r=e.max;return typeof l=="number"&&typeof r=="number"&&r<l?`${r}+`:l});return{state:n,stl:a,content:o}}}),PS={class:"fox-badge"},LS=["textContent"];function zS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",PS,[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,LS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const ua=ne(MS,[["render",zS]]),{componentName:FS,create:RS}=X("tag"),OS=RS({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:oe.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=FS;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 KS(e,n,a,o,l,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Xt=ne(OS,[["render",KS]]),{create:US}=X("popover"),HS=US({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 a=t.ref(),o=t.ref(),l=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const m="fox-popover-arrow",g=e.location,C=g.split("-")[0];return`${m} ${m}-${C} ${m}--${g}`}),c=t.computed(()=>{const m={},{bgColor:g,arrowOffset:C,location:A}=e,S=A.split("-")[0],V=A.split("-")[1],N=16;return g&&(m[`border${f(S)}Color`]=g),e.arrowOffset!=0&&(["bottom","top"].includes(S)&&(V||(m.left=`calc(50% + ${C}px)`),V=="start"&&(m.left=`${N+C}px`),V=="end"&&(m.right=`${N-C}px`)),["left","right"].includes(S)&&(V||(m.top=`calc(50% - ${C}px)`),V=="start"&&(m.top=`${N-C}px`),V=="end"&&(m.bottom=`${N+C}px`))),m}),f=m=>(m=m.toLowerCase(),m=m.replace(/\b\w+\b/g,g=>g.substring(0,1).toUpperCase()+g.substring(1)),m),p=t.computed(()=>{let m={};if(!r.value||!s.value)return{};const g=s.value.width,C=s.value.height,{width:A,height:S,left:V,top:N}=r.value,{location:T,offset:B}=e,w=T.split("-")[0],q=T.split("-")[1];let P=0,$=0;if(vn(B)&&B.length==2&&(P+=Number(B[1]),$+=Number(B[0])),A){if(["bottom","top"].includes(w)){const E=w=="bottom"?S+P:-(C+P);m.top=`${N+E}px`,q||(m.left=`${-(g-A)/2+V+$}px`),q=="start"&&(m.left=`${V+$}px`),q=="end"&&(m.left=`${r.value.right+$}px`)}if(["left","right"].includes(w)){const E=w=="left"?-(g+P):A+P;m.left=`${V+E}px`,q||(m.top=`${N-C/2+S/2-4+$}px`),q=="start"&&(m.top=`${N+$}px`),q=="end"&&(m.top=`${N+S+$}px`)}}return m}),d=t.computed(()=>{const m={};return e.bgColor&&(m.background=e.bgColor),m}),h=()=>{let m=Ve(a.value);e.targetId&&(m=Ve(document.querySelector(`#${e.targetId}`))),r.value=m,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,m=>{l.value=m,m?(window.addEventListener("touchstart",u,!0),h()):window.removeEventListener("touchstart",u,!0)});const k=m=>{n("update",m),n("update:visible",m)},v=()=>{k(!e.visible),n("open")},b=()=>{n("update:visible",!1),n("close")},y=(m,g)=>{!m.disabled&&n("choose",m,g),e.closeOnClickAction&&b()},u=m=>{const g=a.value,C=o.value;let A=g&&!g.contains(m.target);if(e.targetId){const S=document.querySelector(`#${e.targetId}`);A=S&&!S.contains(m.target)}A&&C&&!C.contains(m.target)&&e.closeOnClickOutside&&b()};return{showPopup:l,openPopover:v,popoverArrow:i,closePopover:b,chooseItem:y,popoverRef:a,popoverContentRef:o,getRootPosition:p,customStyle:d,popoverArrowStyle:c,renderIcon:ts}}}),jS={ref:"popoverContentRef",class:"fox-popover-content-group"},WS=["onClick"],YS={class:"fox-popover-menu-item-name"};function XS(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",jS,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(f=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",YS,t.toDisplayString(i.name),1)],10,WS))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Qt=ne(HS,[["render",XS]]),QS=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:a,round:o,avatarSize:l}=t.toRefs(n),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${a.value}`]:a.value}});return{avatarShape:a,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:o.value}),getStyle:()=>l.value?{width:l.value,height:l.value}:{width:"50px",height:"50px"}}}}),{create:GS}=X("skeleton"),ZS=GS(QS({[Yt.name]:Yt})),JS={key:0},_S={key:1,class:"fox-skeleton"},e1={key:0,class:"fox-skeleton-animation"},t1={class:"fox-skeleton-content"};function n1(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",_S,[e.animated?(t.openBlock(),t.createElementBlock("view",e1)):t.createCommentVNode("",!0),t.createElementVNode("view",t1,[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",JS,[t.renderSlot(e.$slots,"default")]))}const da=ne(ZS,[["render",n1]]),{create:o1,componentName:l1}=X("collapse"),a1=o1({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(e.modelValue||(e.accordion?"":[])),l=t.computed(()=>({[l1]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,f,p=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,f,p)},s=c=>{if(e.accordion)o.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(o.value))if(o.value.includes(c)){const f=o.value.filter(p=>p!==c);r(f,c,!1)}else{const f=o.value.concat([c]);r(f,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:a,classes:l}}});function r1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const fa=ne(a1,[["render",r1]]),{create:s1,componentName:i1}=X("collapse-item"),c1=s1({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:oe.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),a=t.ref(null),o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const h=i1;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>l?l.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},f=()=>{s.value&&(i.value="auto")},p=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},d=()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?p():d()}),{classes:r,renderIcon:ts,wrapperRef:n,contentRef:a,open:p,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:f}}}),u1={class:"fox-collapse-item__title-main"},d1={class:"fox-collapse-item__title-main-value"},f1=["innerHTML"],m1={key:2,class:"fox-collapse-item__title-label"},p1={key:0,class:"fox-collapse-item__title-sub"},h1=["innerHTML"],g1={key:0,class:"fox-collapse__item-extraWrapper"},y1={class:"fox-collapse__item-extraWrapper__extraRender"},v1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function b1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",u1,[t.createElementVNode("view",d1,[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,f1)),e.label?(t.openBlock(),t.createElementBlock("view",m1,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",p1,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,h1)),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",g1,[t.createElementVNode("div",y1,[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",v1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const ma=ne(c1,[["render",b1]]),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:S1,create:C1,scope:w1}=X("table"),N1=C1({components:{RenderColumn:k1,DownArrow:oe.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:o}=re.useFoxI18n(w1),l=t.reactive({curData:e.data}),r=t.computed(()=>({[S1]:!0})),s=k=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${k.align?k.align:""}`]:!0}),i=k=>k.stylehead?k.stylehead:"",c=k=>k.stylecolumn?k.stylecolumn:"",f=k=>e.columns.filter(v=>v.key===k)[0],p=k=>{const v=e.columns.filter(b=>b.key===k);return v[0].stylecolumn?v[0].stylecolumn:""},d=k=>{k.sorter&&(n("sorter",k),l.curData=typeof k.sorter=="function"?l.curData.sort(k.sorter):k.sorter==="default"?l.curData.sort():l.curData)},h=()=>e.columns.map(k=>[k.key,k.render]);return t.watch(()=>e.data,k=>{l.curData=k.slice()}),{...t.toRefs(l),classes:r,cellClasses:s,getColumnItem:f,getColumnItemStyle:p,handleSorterClick:d,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),B1={class:"fox-table__main__head"},A1={class:"fox-table__main__head__tr"},V1=["onClick"],T1={class:"fox-table__main__body"},$1={key:1},E1={key:0,class:"fox-table__nodata"},x1={key:0,class:"fox-table__nodata__text"},D1={key:1,class:"fox-table__summary"},I1=["innerHTML"];function q1(e,n,a,o,l,r){const s=t.resolveComponent("DownArrow"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",B1,[t.createElementVNode("view",A1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:f=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,V1))),128))])]),t.createElementVNode("view",T1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([f,p])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(f))]),key:f,style:t.normalizeStyle(e.getColumnItemStyle(f))},[typeof c[f]=="function"||typeof p=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[p,c[f]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",$1,t.toDisplayString(c[f]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",E1,[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",x1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",D1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,I1)])):t.createCommentVNode("",!0)],2)}const pa=ne(N1,[["render",q1]]),{componentName:M1,create:P1}=X("ellipsis"),L1=P1({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const a=t.ref(null);let o=null,l=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[M1]:!0}));t.watch(()=>e.content,(b,y)=>{b!=y&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const b=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(b).forEach(m=>{o.style.setProperty(m,b.getPropertyValue(m))}),o.style.position="fixed",o.style.left="999999px",o.style.top="999999px",o.style.zIndex="-1000",o.style.height="auto",o.style.minHeight="auto",o.style.maxHeight="auto",o.style.textOverflow="clip",o.style.whiteSpace="normal",o.style.webkitLineClamp="unset",o.style.display="block";const u=h(b.lineHeight==="normal"?e.lineHeight:b.lineHeight);l=Math.floor(u*(Number(e.rows)+.5)+h(b.paddingTop)+h(b.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),f()},f=()=>{if(o.offsetHeight<=l)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const b=e.content.length,y=Math.floor((0+b)/2),u=e.direction==="middle"?d([0,y],[y,b]):p(0,b);r.value=u,document.body.removeChild(o)}},p=(b,y)=>{const u=s.expanded?e.collapseText:e.expandText,m=e.content.length;if(y-b<=1)return e.direction==="end"?{leading:e.content.slice(0,b)+e.symbol}:{tailing:e.symbol+e.content.slice(y,m)};const g=Math.round((b+y)/2);return e.direction==="end"?o.innerText=e.content.slice(0,g)+e.symbol+u:o.innerText=u+e.symbol+e.content.slice(g,m),o.offsetHeight<=l?e.direction==="end"?p(g,y):p(b,g):e.direction==="end"?p(b,g):p(g,y)},d=(b,y)=>{const u=s.expanded?e.collapseText:e.expandText,m=e.content.length;if(b[1]-b[0]<=1&&y[1]-y[0]<=1)return{leading:e.content.slice(0,b[0])+e.symbol,tailing:e.symbol+e.content.slice(y[1],m)};const g=Math.floor((b[0]+b[1])/2),C=Math.ceil((y[0]+y[1])/2);return o.innerText=e.content.slice(0,g)+e.symbol+u+e.symbol+e.content.slice(C,m),o.offsetHeight<=l?d([g,b[1]],[y[0],C]):d([b[0],g],[C,y[1]])},h=b=>{if(!b)return 0;const y=b.match(/^\d*(\.\d*)?/);return y?Number(y[0]):0},k=b=>{b==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},v=()=>{n("click")};return{...t.toRefs(s),root:a,ellipsis:r,classes:i,clickHandle:k,handleClick:v}}}),z1={key:0},F1={key:1},R1={key:2};function O1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",z1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",F1,[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",R1,[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 ha=ne(L1,[["render",O1]]),{componentName:K1,create:U1}=X("animate"),H1=U1({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:o,action:l}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${K1}-${a.value}`]:l.value==="initial"||r.clicked?a.value:!1,loop:o.value}));const i=c=>{r.clicked=!0,o.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),j1={class:"fox-animate"};function W1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",j1,[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 ga=ne(H1,[["render",W1]]),{componentName:Y1,create:X1}=X("watermark"),Q1=X1({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.reactive({base64Url:""}),{zIndex:o,gapX:l,gapY:r,width:s,height:i,rotate:c,image:f,imageWidth:p,imageHeight:d,content:h,fontStyle:k,fontWeight:v,fontColor:b,fontSize:y,fontFamily:u}=e,m=()=>{const C=document.createElement("canvas"),A=window.devicePixelRatio,S=C.getContext("2d"),V=`${(l+s)*A}px`,N=`${(r+i)*A}px`,T=s*A,B=i*A;if(C.setAttribute("width",V),C.setAttribute("height",N),S){if(f){S.translate(T/2,B/2),S.rotate(Math.PI/180*Number(c));const w=new Image;w.crossOrigin="anonymous",w.referrerPolicy="no-referrer",w.src=f,w.onload=()=>{S.drawImage(w,-p*A/2,-d*A/2,p*A,d*A),S.restore(),a.base64Url=C.toDataURL()}}else if(h){S.textBaseline="middle",S.textAlign="center",S.translate(T/2,B/2),S.rotate(Math.PI/180*Number(c));const w=Number(y)*A;S.font=`${k} normal ${v} ${w}px/${B}px ${u}`,S.fillStyle=b,S.fillText(h,0,0),S.restore(),a.base64Url=C.toDataURL()}}else throw new Error("当前环境不支持Canvas")};m(),t.watch(()=>[o,l,r,s,i,c,f,p,d,h,k,v,b,y,u],()=>{m()});const g=t.computed(()=>{const C=Y1;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:g}}});function G1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const ya=ne(Q1,[["render",G1]]);function Z1(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:J1,create:_1}=X("trend-arrow"),eC=_1({components:{TriangleUp:oe.TriangleUp,TriangleDown:oe.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),a=t.computed(()=>({[J1]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const f=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${Z1(Number(f),s)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:f}=e;return{color:f===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function tC(e,n,a,o,l,r){const s=t.resolveComponent("TriangleUp"),i=t.resolveComponent("TriangleDown");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?t.renderSlot(e.$slots,"up-icon",{key:1},()=>[t.createVNode(s,{color:e.riseColor},null,8,["color"])]):t.createCommentVNode("",!0),Number(e.rate)!==0&&!e.rateTrend?t.renderSlot(e.$slots,"down-icon",{key:2},()=>[t.createVNode(i,{color:e.dropColor},null,8,["color"])]):t.createCommentVNode("",!0),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const va=ne(eC,[["render",tC]]),{create:nC}=X("tour"),oC=nC({components:{[Qt.name]:Qt,Close:oe.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),l=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:p,maskWidth:d,maskHeight:h}=e,{width:k,height:v,left:b,top:y}=o.value,u=[b+k/2,y+v/2],m=Number(d||k),g=Number(h||v);return{width:`${m+ +p[1]*2}px`,height:`${g+ +p[0]*2}px`,top:`${u[1]-g/2-+p[0]}px`,left:`${u[0]-m/2-+p[1]}px`}}),s=p=>{p=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,t.nextTick(()=>{a.showPopup=!0,i()}),n("change",a.active)},i=()=>{const p=document.querySelector(`#${e.steps[a.active].target}`),d=Ve(p);o.value=d},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},f=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,i()}),t.watch(()=>e.modelValue,p=>{p&&i(),a.active=0,a.showTour=p,a.showPopup=p}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:s,close:c,handleClickMask:f}}}),lC={key:0,class:"fox-tour-content"},aC={key:0,class:"fox-tour-content-top"},rC={class:"fox-tour-content-inner"},sC={class:"fox-tour-content-bottom"},iC={class:"fox-tour-content-bottom-init"},cC={class:"fox-tour-content-bottom-operate"},uC={key:1,class:"fox-tour-content fox-tour-content-tile"},dC={class:"fox-tour-content-inner"};function fC(e,n,a,o,l,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=p=>e.showPopup=p),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",lC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",aC,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...p)=>e.close&&e.close(...p))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",rC,t.toDisplayString(c.content),1),t.createElementVNode("div",sC,[t.createElementVNode("div",iC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",cC,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:n[2]||(n[2]=p=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...p)=>e.close&&e.close(...p))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=p=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",uC,[t.createElementVNode("div",dC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const ba=ne(oC,[["render",fC]]),{componentName:C2,create:mC,scope:pC}=X("address"),hC=mC({components:{Location:oe.Location,Location2:oe.Location2,Check:oe.Check,Close:oe.Close,Left:oe.Left,[de.name]:de,[Kt.name]:Kt},inheritAttrs:!1,props:{...ze,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(pC),o=t.ref(null),l=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),f=t.ref(["province","city","country","town"]),p=t.ref(null),d=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}}),k=E=>{if(!Array.isArray(E))throw new TypeError("params muse be array.");if(!E.length)return[];E.forEach(D=>{if(!D.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const K=[];return E=E.sort((D,W)=>D.title.localeCompare(W.title)),E.forEach(D=>{const W=K.findIndex(H=>H.title===D.title);W<=-1?K.push({title:D.title,list:[].concat(D)}):K[W].list.push(D)}),K};let v=t.ref([]),b=t.reactive({});const y=t.ref("self"),u=t.ref(20),m=()=>{const E=e.modelValue,K=E.length;if(K>0){if(i.value=K-1,h.value.length==0){i.value=0;return}for(let D=0;D<K;D++){let W=[];switch(D){case 0:W=e.province;break;case 1:W=e.city;break;case 2:W=e.country;break;default:W=e.town}v.value[D]=W.filter(H=>H.id==E[D])[0]}C()}},g=(E,K)=>E&&E.name||i.value<K&&E?E.name:e.columnsPlaceholder[K]||a("select"),C=()=>{V(),t.nextTick(()=>{const E=l.value&&l.value.getElementsByClassName("active")[0];if(E){const K=E.offsetLeft;u.value=K||20}})},A=E=>{const K=i.value;c.value=i.value;const D={custom:f.value[K]};v.value[K]=E;for(let W=K+2;W<4;W++)v.value.splice(W,1);K<3?(i.value=K+1,C(),D.next=f.value[i.value],D.value=E,n("change",D)):(B(),n("update:modelValue"))},S=(E,K)=>{c.value=i.value,g(E,K)&&(i.value=K,C())},V=()=>{const E=p.value,K=c.value,D=d.value[i.value];E?.scrollTop&&(d.value[K]=E?.scrollTop),t.nextTick(()=>{E?.scrollTo({top:D,behavior:"auto"})})},N=E=>{const K=e.existAddress;let D={};K.forEach(W=>{W&&W.selectedAddress&&(D=W),W.selectedAddress=!1}),E.selectedAddress=!0,b=E,n("selected",D,E,K),B()},T=()=>{v.value=[],i.value=0,C()},B=(E="self")=>{y.value=E=="cross"?"cross":"self",r.value=!1},w=()=>{y.value="mask"},q=()=>{const E={addressIdStr:"",addressStr:"",province:v.value[0],city:v.value[1],country:v.value[2],town:v.value[3]},K={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(D=>{const W=v.value[D];E.addressIdStr+=`${D?"_":""}${W&&W.id||0}`,E.addressStr+=W&&W.name||""}),K.data=E):K.data=b,T(),y.value=="self"?n("close",K):n("close-mask",{closeWay:y}),n("update:visible",!1)},P=()=>{const E=s.value;s.value=E=="exist"?"custom":"exist",T(),n("switch-module",{type:s.value})},$=(E,K)=>{A(K)};return t.watch(()=>e.visible,E=>{r.value=E}),t.watch(()=>r.value,E=>{E&&m()}),{showPopup:r,privateType:s,tabIndex:i,tabName:f,selectedRegion:v,switchModule:P,closeWay:y,close:q,getTabName:g,nextAreaList:A,regionLine:o,tabRegion:l,lineDistance:u,changeRegionTab:S,selectedExist:N,clickOverlay:w,handClose:B,handleElevatorItem:$,initCustomSelected:m,...t.toRefs(e),t:a,regionList:h,transformData:k,scrollDom:p}}}),gC={class:"fox-address"},yC={class:"fox-address__header"},vC={class:"fox-address__header__title"},bC={key:0,class:"fox-address__custom"},kC={class:"fox-address__region",ref:"tabRegion"},SC=["onClick"],CC={key:0,class:"active fox-address__region-item"},wC={key:0,class:"fox-address__detail"},NC={class:"fox-address__detail-list",ref:"scrollDom"},BC=["onClick"],AC={key:1,class:"fox-address__elevator-group"},VC={key:1,class:"fox-address__exist"},TC={class:"fox-address__exist-group"},$C={class:"fox-address__exist-group-list"},EC=["onClick"],xC={class:"fox-address__exist-item-info"},DC={key:0,class:"fox-address__exist-item-info-name"},IC={key:1,class:"fox-address__exist-item-info-phone"},qC={class:"fox-address__exist-item-info-bottom"},MC={class:"fox-address__exist-choose-btn"};function PC(e,n,a,o,l,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),f=t.resolveComponent("fox-elevator"),p=t.resolveComponent("Location2"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{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",gC,[t.createElementVNode("view",yC,[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",vC,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",bC,[t.createElementVNode("view",kC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,k)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",k==e.tabIndex?"active":""]),key:k,onClick:v=>e.changeRegionTab(h,k)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,k)),1)],10,SC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",CC,[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",wC,[t.createElementVNode("ul",NC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,k)=>(t.openBlock(),t.createElementBlock("li",{key:k,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:v=>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,BC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",AC,[t.createVNode(f,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",VC,[t.createElementVNode("div",TC,[t.createElementVNode("ul",$C,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,k)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:k,onClick:v=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(p,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",xC,[h.name?(t.openBlock(),t.createElementBlock("div",DC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",IC,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",qC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,EC))),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",MC,t.toDisplayString(e.customAndExistTitle||e.t("chooseAnotherAddress")),1)])):t.createCommentVNode("",!0)])),t.renderSlot(e.$slots,"bottom")])]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","teleportDisable","teleport"])}const ka=ne(hC,[["render",PC]]),{componentName:LC,create:zC}=X("barrage"),FC=zC({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),a=!!t.useSlots().default,o=t.computed(()=>({[LC]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),f=t.ref(e.top),p=t.ref(0),d=e.speeds,h=t.ref(0);t.onMounted(()=>{k(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(b(),p.value=0,v("hidden")):document.visibilityState==="visible"&&k()})}),t.onUnmounted(()=>{i.value=[],b()});const k=()=>{h.value=l.value.offsetWidth,a&&v("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${h.value}px`),u()},300)},v=g=>{let A=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const S=[];A&&Array.from(A).forEach(V=>{g=="init"?(V.style.opacity="0",S.push(V)):(V.classList="",V.style={})}),g=="init"&&(i.value=S)},b=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,g=>{e.danmu.length>0&&(i.value=[...g])});const y=g=>{const C=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,g):i.value.splice(C,0,g)},u=()=>{b(),s=setTimeout(()=>{m()},e.frequency)},m=()=>{const g=e.loop?p.value%i.value.length:p.value;let C=document.createElement("view");a&&typeof i.value[g]=="object"?(C=i.value[g],C?.classList?.add("fox-barrage__item")):(C.innerHTML=i.value[g],C.classList.add("fox-barrage__item"),r.value.appendChild(C)),t.nextTick(()=>{const A=C.offsetHeight;if(C?.classList?.add("move"),C.style.animationDuration=`${d}ms`,C.style.top=g%c.value*(A+f.value)+20+"px",C.style.opacity="1",!a){const S=C.offsetWidth;C.style.width=S+20+"px"}C.addEventListener("animationend",()=>{a?C.classList.remove("move"):r.value.removeChild(C)}),!(!e.loop&&p.value>=i.value.length-1)&&(p.value++,p.value>=i.value.length&&(p.value=0),C.removeEventListener("animationend",()=>{}),u())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:y}}});function RC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("div",{ref:"dmContainer",class:t.normalizeClass(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["slotBody","slotBody"+e.classTime])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)],2)}const Sa=ne(FC,[["render",RC]]),{componentName:OC,create:KC,scope:UC}=X("signature"),HC=KC({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:a}=re.useFoxI18n(UC),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[OC]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let m=document.createElement("canvas");return!!(m.getContext&&m.getContext("2d"))},f=()=>{l.value.addEventListener(i.events[0],p,!1)},p=m=>{m.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],d,!1),l.value.addEventListener(i.events[2],h,!1),l.value.addEventListener(i.events[3],k,!1)},d=m=>{m.preventDefault();let g=i.isSupportTouch?m.touches[0]:m;n("signing",g);let C=l.value.getBoundingClientRect(),A=g.clientX-C.left,S=g.clientY-C.top;i.ctx.lineTo(A,S),i.ctx.stroke()},h=m=>{m.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],d,!1),l.value.removeEventListener(i.events[2],h,!1)},k=m=>{m.preventDefault(),l.value.removeEventListener(i.events[1],d,!1),l.value.removeEventListener(i.events[2],h,!1)},v=()=>{l.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},b=()=>{u(l.value)},y=m=>{if(!m)return!0;var g=document.createElement("canvas");return g.width=m.width,g.height=m.height,m?.toDataURL()==g.toDataURL()},u=m=>{let g;switch(e.type){case"png":g=m.toDataURL("image/png");break;case"jpg":g=m.toDataURL("image/jpeg",.8);break}const C=y(m)?"请绘制签名":m,A=y(m)?"":g;n("confirm",C,A)};return t.onMounted(()=>{c()&&(i.ctx=l.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,f())}),{...o,...t.toRefs(i),canvas:l,wrap:r,isCanvasSupported:c,confirm:b,clear:v,classes:s}}}),jC={class:"fox-signature-inner",ref:"wrap"},WC=["height","width"],YC={key:0,class:"fox-signature-unsopport"};function XC(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",jC,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,WC),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",YC,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(s,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const Ca=ne(HC,[["render",XC]]),{componentName:QC,create:GC,scope:ZC}=X("time-select"),JC=GC({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:a}=re.useFoxI18n(ZC),o=t.computed(()=>({[QC]:!0})),l=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{n.emit("update:visible",!1),n.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:o,popStyle:l,props:e,close:i,t:a}}}),_C={class:"fox-time-select__title"},ew={class:"fox-time-select__title__fixed"},tw={key:0},nw={class:"fox-time-select__content"},ow={class:"fox-time-select__content__pannel"},lw={class:"fox-time-select__content__detail"};function aw(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{position:"bottom",closeable:"",round:"",teleportDisable:e.teleportDisable,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",_C,[t.createElementVNode("view",ew,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",tw,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",nw,[t.createElementVNode("view",ow,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",lw,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const wa=ne(JC,[["render",aw]]),{componentName:rw,create:sw}=X("time-pannel"),iw=sw({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.reactive({currentKey:a}),l=t.computed(()=>({[rw]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function cw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const Na=ne(iw,[["render",cw]]),{componentName:uw,create:dw}=X("time-detail"),fw=dw({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.inject("currentTime"),l=t.reactive({currentKey:a,currentTime:o}),r=t.computed(()=>({[uw]:!0})),s=f=>{let p=l.currentTime.find(d=>d.key==l.currentKey);if(p)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":p.list.filter(d=>d===f).length>0}},i=t.computed(()=>e.times.find(f=>f.key==l.currentKey).list),c=f=>{n.emit("select",f)};return{classes:r,...t.toRefs(l),getClass:s,renderData:i,handleTime:c}}}),mw={class:"fox-time-detail__detail fox-time-detail__detail--moring"},pw={class:"fox-time-detail__detail__list"},hw=["onClick"];function gw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",mw,[t.createElementVNode("view",pw,[(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,hw))),128))])])],2)}const Ba=ne(fw,[["render",gw]]),{componentName:w2,create:yw,scope:vw}=X("sku-header"),bw=yw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ge.name]:Ge},setup(e,{emit:n,slots:a}){const{t:o}=re.useFoxI18n(vw);return{getSlots:r=>a[r],t:o}}}),kw={class:"fox-sku-header"},Sw=["src"],Cw={class:"fox-sku-header-right"},ww={key:3,class:"fox-sku-header-right-extra"};function Nw(e,n,a,o,l,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,Sw),t.createElementVNode("view",Cw,[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",ww,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const Bw=ne(bw,[["render",Nw]]),{componentName:N2,create:Aw}=X("sku-select"),Vw=Aw({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const a=t.ref([]);return t.watch(()=>e.sku,l=>{a.value=[].slice.call(l)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(a.value=[].slice.call(e.sku))}),{skuInfo:a,changeSaleChild:(l,r,s,i)=>{l.checkFlag||l.disable||n("selectSku",{sku:l,skuIndex:r,parentSku:s,parentIndex:i})}}}}),Tw={class:"fox-sku-select"},$w={class:"fox-sku-select-item-title"},Ew={class:"fox-sku-select-item-skus"},xw=["onClick"];function Dw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Tw,[(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",$w,t.toDisplayString(s.name),1),t.createElementVNode("view",Ew,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:p=>e.changeSaleChild(c,f,s,i),key:c.name},t.toDisplayString(c.name),11,xw))),128))])]))),128))])}const Iw=ne(Vw,[["render",Dw]]),{componentName:B2,create:qw}=X("sku-stepper"),Mw=qw({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 a=t.ref(e.stepperMin);return t.onMounted(()=>{a.value=e.stepperMin}),{goodsCount:a,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,f)=>{n("overLimit",{action:f,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&at(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),Pw={class:"fox-sku-stepper"},Lw={class:"fox-sku-stepper-title"},zw=["innerHTML"],Fw={class:"fox-sku-stepper-count"};function Rw(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Pw,[t.createElementVNode("view",Lw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,zw),t.createElementVNode("view",Fw,[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 Ow=ne(Mw,[["render",Rw]]),{componentName:A2,create:Kw}=X("sku-operate"),Uw=Kw({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"立即购买"},addCartText:{type:String,default:"加入购物车"},confirmText:{type:String,default:"确定"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:n,slots:a}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{n("clickBtnOperate",s)},getSlots:s=>a[s]}}}),Hw={key:0,class:"fox-sku-operate"},jw={key:0,class:"fox-sku-operate-desc"},Ww={key:1,class:"fox-sku-operate-btn"},Yw=["onClick"];function Xw(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",Hw,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",jw,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",Ww,[(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,Yw))),128))]))])):t.createCommentVNode("",!0)}const Qw=ne(Uw,[["render",Xw]]),{componentName:V2,create:Gw,scope:Zw}=X("sku"),Jw=Gw({props:{...ze,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","select-sku","change-stepper","click-btn-operate","click-close-icon","click-overlay","close","reduce","add","over-limit"],components:{SkuHeader:Bw,SkuSelect:Iw,SkuStepper:Ow,SkuOperate:Qw,[de.name]:de},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=re.useFoxI18n(Zw),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,y=>{r.value=y}),t.watch(()=>r.value,y=>{y==!1&&b()}),t.onMounted(()=>{});const i=y=>a[y],c=y=>{n("select-sku",y)},f=y=>{s.value=y,n("change-stepper",y)},p=y=>{n("add",y)},d=y=>{n("reduce",y)},h=y=>{n("over-limit",y)},k=y=>{n("click-btn-operate",{type:y,value:s.value})},v=y=>{y=="icon"&&n("click-close-icon"),y=="overlay"&&n("click-overlay"),y=="close"&&n("close"),r.value=!1},b=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:v,selectSku:c,changeStepper:f,stepperOverLimit:h,clickBtnOperate:k,add:p,reduce:d,getSlots:i,...l}}}),_w={class:"fox-sku"},eN={class:"fox-sku-content"};function tN(e,n,a,o,l,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),f=t.resolveComponent("sku-operate"),p=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(p,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=d=>e.showPopup=d),onClickCloseIcon:n[1]||(n[1]=d=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=d=>e.closePopup("overlay")),onClose:n[3]||(n[3]=d=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",_w,[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",eN,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(f,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const Aa=ne(Jw,[["render",tN]]),{create:nN}=X("card"),oN=nN({components:{[Ge.name]:Ge,[Xt.name]:Xt},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:n,slots:a}){return{isHaveSlot:l=>a[l]}}}),lN={class:"fox-card"},aN={class:"fox-card__left"},rN=["src"],sN={class:"fox-card__right"},iN={class:"fox-card__right__title"},cN={key:0,class:"fox-card__right__price"},uN={class:"fox-card__right__other"},dN={class:"fox-card__right__shop"},fN={class:"fox-card__right__shop__name"};function mN(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",lN,[t.createElementVNode("div",aN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,rN)]),t.createElementVNode("div",sN,[t.createElementVNode("div",iN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",cN,[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",uN,[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",dN,[t.createElementVNode("div",fN,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Va=ne(oN,[["render",mN]]),{create:pN,scope:hN}=X("ecard"),gN=pN({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:a}=re.useFoxI18n(hN),o=t.ref(null),l=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,k)=>{o.value=k,s.value=e.cardAmountMin,l.value=h.price,n("change",h),n("update:modelValue",h.price)},f=h=>{let v=h.target.value.replace(/[^\d]/g,"");r.value=v,l.value=v,Number(v)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(v)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},p=()=>{o.value="input",s.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},d=h=>{s.value=h,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:d,change:f,inputClick:p,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),yN={class:"fox-ecard"},vN={class:"fox-ecard__title"},bN={class:"fox-ecard__list"},kN=["onClick"],SN={class:"fox-ecard__list__input--con"},CN=["placeholder"],wN={class:"fox-ecard__list__step"};function NN(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",yN,[t.createElementVNode("view",vN,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",bN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:f=>e.handleClick(i,c)},t.toDisplayString(i.price),11,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",SN,[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,CN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",wN,[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 Ta=ne(gN,[["render",NN]]),{create:BN,scope:AN}=X("address-list-item"),VN=BN({components:{Del:oe.Del,Edit:oe.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(AN);return{delClick:s=>{n("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{n("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{n("clickItem",s,e.item),s.stopPropagation()},t:a}}}),TN={class:"fox-address-list-item__info"},$N={class:"fox-address-list-item__info-contact"},EN={class:"fox-address-list-item__info-contact-name"},xN={class:"fox-address-list-item__info-contact-tel"},DN={key:0,class:"fox-address-list-item__info-contact-default"},IN={class:"fox-address-list-item__info-handle"},qN={class:"fox-address-list-item__addr"};function MN(e,n,a,o,l,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:n[0]||(n[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",TN,[t.createElementVNode("div",$N,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",EN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",xN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",DN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",IN,[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",qN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Br=ne(VN,[["render",MN]]),{create:PN}=X("address-list-general"),LN=PN({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:Br,[Me.name]:Me,[jt.name]:jt},setup(e,{emit:n}){const a=()=>t.h(Br,{item:e.item,onDelIcon(A){s(A)},onEditIcon(A){i(A)},onClickItem(A){c(A)}});let o=null;const l=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=>{l.value||(n("clickItem",A,e.item),A.stopPropagation())},f=A=>{n("longDel",A,e.item),A.stopPropagation()},p=A=>{o=0,r.value=!0,n("longDown",A,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:f,holddownstart:A=>{o=setTimeout(()=>{p(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:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),zN={key:0,class:"fox-address-list-general"},FN={class:"fox-address-list-swipe"};function RN(e,n,a,o,l,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(i,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[t.createTextVNode("删除")]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",FN,[(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",zN,[(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 ON=ne(LN,[["render",RN]]),{componentName:KN,create:UN,scope:HN}=X("address-list"),jN=UN({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:ON,[Me.name]:Me},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(HN),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[KN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(b=>Kr(l,b,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(b,y)=>{n("delIcon",b,y),b.stopPropagation()},c=(b,y)=>{n("editIcon",b,y),b.stopPropagation()},f=(b,y)=>{n("clickItem",b,y),b.stopPropagation()},p=(b,y)=>{n("longCopy",b,y),b.stopPropagation()},d=(b,y)=>{n("longSet",b,y),b.stopPropagation()},h=(b,y)=>{n("longDel",b,y),b.stopPropagation()},k=(b,y)=>{n("swipeDel",b,y),b.stopPropagation()},v=b=>{n("add",b),b.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:f,clickLongCopy:p,clickLongSet:d,clickLongDel:h,clickSwipeDel:k,addAddress:v,dataArray:o,t:a}}});function WN(e,n,a,o,l,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,f)=>(t.openBlock(),t.createBlock(s,{key:f,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:n[0]||(n[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const $a=ne(jN,[["render",WN]]),{componentName:T2,create:YN}=X("category"),XN=YN({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:n,slots:a}){const o=t.ref(0),l=t.ref(!1);return{getChildList:s=>{o.value=s,n("change",s)},checkIndex:o,categoryLeft:l}}}),QN={class:"fox-category"},GN={class:"fox-category__cateList"},ZN={key:0},JN=["onClick"];function _N(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",QN,[t.createElementVNode("div",GN,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",ZN,[(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,JN)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Ea=ne(XN,[["render",_N]]),{componentName:$2,create:eB}=X("category-pane"),tB=eB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),nB={class:"fox-category-pane"},oB={key:0,class:"fox-category-pane__cateListRight"},lB={class:"fox-category-pane__childTitle"},aB={key:0,class:"fox-category-pane__childItemList"},rB=["onClick"],sB=["src"],iB={class:"fox-category-pane__skuImg"},cB={key:1,class:"fox-category-pane__cateListRight"},uB={class:"fox-category-pane__childTitle"},dB={key:0,class:"fox-category-pane__childItemList"},fB=["onClick"],mB={class:"fox-category-pane__skuName"},pB={key:2,class:"fox-category-pane__selfItemList"},hB=["onClick"];function gB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",nB,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",oB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",lB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",aB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:f,onClick:p=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,sB),t.createElementVNode("div",iB,t.toDisplayString(c?.catName),1)],8,rB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",cB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",uB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",dB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:f,onClick:p=>e.onChange(c)},[t.createElementVNode("div",mB,t.toDisplayString(c?.catName),1)],8,fB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",pB,[(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,hB))),128))])):t.createCommentVNode("",!0)])}const xa=ne(tB,[["render",gB]]),{componentName:E2,create:yB}=X("comment-header"),vB=yB({components:{[kt.name]:kt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),bB={class:"fox-comment-header__user"},kB={class:"fox-comment-header__user-avter"},SB=["src"],CB={class:"fox-comment-header__user-score"},wB={key:0,class:"fox-comment-header__time"};function NB(e,n,a,o,l,r){const s=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:n[1]||(n[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",bB,[t.createElementVNode("view",kB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,SB)):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",CB,[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",wB,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 BB=ne(vB,[["render",NB]]),{componentName:x2,create:AB}=X("comment-images"),VB=AB({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:oe.Right},emits:["click","clickImages"],setup(e,{emit:n}){const a=t.ref(!1),o=t.ref(1),l=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),l.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),l.value=e.videos.concat(e.images)}),{isShowImage:a,initIndex:o,showImages:(s,i)=>{const{videos:c,images:f}=e,p=s=="img"?i-c.length:i;n("clickImages",{type:s,index:p,value:s=="img"?f[p]:c[p]})},totalImages:l}}}),TB=["onClick"],$B=["src"],EB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),xB=["onClick"],DB=["src"],IB={key:0,class:"fox-comment-images__mask"};function qB(e,n,a,o,l,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:f=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,$B),EB],8,TB))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:f=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,DB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",IB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,xB)):t.createCommentVNode("",!0)],64))),128))],2)}const MB=ne(VB,[["render",qB]]),{componentName:D2,create:PB,scope:LB}=X("comment-bottom"),zB=PB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:oe.Fabulous,Comment:oe.Comment,MoreX:oe.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(LB),o=t.ref(!1),l=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&l.value.push(c)})}),{showPopver:o,operate:i=>{i=="more"&&(o.value=!o.value),n("clickOperate",i)},mergeOp:l,handleClick:()=>{n("handleClick")},t:a}}}),FB={class:"fox-comment-bottom"},RB={key:0},OB={class:"fox-comment-bottom__cpx"},KB=["onClick"];function UB(e,n,a,o,l,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",FB,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...f)=>e.handleClick&&e.handleClick(...f)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",RB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",OB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(f,p)=>(t.openBlock(),t.createElementBlock("view",{key:p,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${f}`]),onClick:d=>e.operate(f)},[f!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[f]),1),f=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),f=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=d=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,KB))),128))])])}const HB=ne(zB,[["render",UB]]),{componentName:jB,create:WB,scope:YB}=X("comment"),XB=WB({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:BB,CommentImages:MB,CommentBottom:HB,Right:oe.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(YB),o=t.computed(()=>({[jB]:!0})),l=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:o,conEllipsis:l,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:a}}}),QB=["innerHTML"],GB={class:"fox-comment__follow-title"},ZB={class:"fox-comment__follow-com"},JB={key:0,class:"fox-comment__follow-img"};function _B(e,n,a,o,l,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),f=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...p)=>e.handleClick&&e.handleClick(...p)),innerHTML:e.info.content},null,12,QB),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...p)=>e.handleClick&&e.handleClick(...p))},[t.createElementVNode("view",GB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",ZB,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",JB,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(f,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const Da=ne(XB,[["render",_B]]),e2=[Oo,Uo,Ho,jo,Wo,Se,Yo,Xo,Qo,Go,Zo,Mn,el,tl,ol,ll,Kn,Un,al,Hn,jn,rl,sl,Bt,il,cl,Qn,ul,dl,Pn,Ln,zn,fl,ml,pl,ot,hl,gl,yl,vl,bl,kl,Me,Sl,Cl,rt,de,wl,Nl,Bl,Al,Ot,Vl,Tl,$l,El,xl,Dl,Il,ql,Ml,Kt,Pl,Ll,zl,Fl,Rl,Ol,Kl,Ut,Xn,Fn,On,Rn,Ze,kt,bt,Ul,Hl,jl,jt,Wl,Yl,Xl,Wt,Yn,Ql,Zl,Wn,At,_l,ea,Yt,ta,na,Ht,oa,la,aa,St,ra,sa,Ct,wt,Ge,Gn,ia,ca,ua,Xt,Qt,da,fa,ma,pa,ha,ga,ya,va,ba,ka,Sa,Ca,wa,Na,Ba,Aa,Va,Ta,$a,Ea,xa,Da],t2=new vi(e2,"4.0.0");exports.ActionSheet=Wl;exports.ActionsheetItem=ul;exports.ActionsheetPane=Qn;exports.Address=ka;exports.AddressList=$a;exports.Animate=ga;exports.Audio=_l;exports.AudioOperate=ea;exports.Avatar=Yt;exports.AvatarGroup=ta;exports.BackTop=Yl;exports.Badge=ua;exports.Barrage=Sa;exports.Broadcast=zo;exports.BroadcastKey=ke;exports.Button=Me;exports.Calendar=On;exports.CalendarItem=ll;exports.Card=Va;exports.Cascader=Fn;exports.CascaderItem=tl;exports.Category=Ea;exports.CategoryPane=xa;exports.Cell=Sl;exports.CellGroup=Cl;exports.Checkbox=Hn;exports.CheckboxGroup=jn;exports.CheckboxItem=rl;exports.CircleProgress=oa;exports.Col=Bl;exports.Collapse=fa;exports.CollapseItem=ma;exports.Comment=Da;exports.Content=jo;exports.CountDown=ca;exports.CountUp=ia;exports.DataItemsKey=dt;exports.DateItem=ol;exports.DatePicker=Rn;exports.DateUtils=le;exports.Dialog=Wt;exports.Divider=Vl;exports.Domain=wn;exports.DomainKey=Ie;exports.DomainProvider=bl;exports.Drag=Xl;exports.Dropdown=gl;exports.Ecard=Ta;exports.Elevator=Kt;exports.Ellipsis=ha;exports.Empty=aa;exports.FixedNav=xl;exports.FloatingButton=ml;exports.FooterBar=Ho;exports.FoxActionSheet=Wl;exports.FoxActionsheetItem=ul;exports.FoxActionsheetPane=Qn;exports.FoxAddress=ka;exports.FoxAddressList=$a;exports.FoxAnimate=ga;exports.FoxAudio=_l;exports.FoxAudioOperate=ea;exports.FoxAvatar=Yt;exports.FoxAvatarGroup=ta;exports.FoxBackTop=Yl;exports.FoxBadge=ua;exports.FoxBarrage=Sa;exports.FoxButton=Me;exports.FoxCalendar=On;exports.FoxCalendarItem=ll;exports.FoxCard=Va;exports.FoxCascader=Fn;exports.FoxCascaderItem=tl;exports.FoxCategory=Ea;exports.FoxCategoryPane=xa;exports.FoxCell=Sl;exports.FoxCellGroup=Cl;exports.FoxCheckbox=Hn;exports.FoxCheckboxGroup=jn;exports.FoxCheckboxItem=rl;exports.FoxCircleProgress=oa;exports.FoxCol=Bl;exports.FoxCollapse=fa;exports.FoxCollapseItem=ma;exports.FoxComment=Da;exports.FoxContent=jo;exports.FoxCountDown=ca;exports.FoxCountUp=ia;exports.FoxDateItem=ol;exports.FoxDatePicker=Rn;exports.FoxDialog=Wt;exports.FoxDivider=Vl;exports.FoxDomainProvider=bl;exports.FoxDrag=Xl;exports.FoxDropdown=gl;exports.FoxEcard=Ta;exports.FoxElevator=Kt;exports.FoxEllipsis=ha;exports.FoxEmpty=aa;exports.FoxFixedNav=xl;exports.FoxFloatingButton=ml;exports.FoxFooterBar=Ho;exports.FoxGrid=Tl;exports.FoxGridItem=$l;exports.FoxGroup=Wo;exports.FoxHeaderBar=Uo;exports.FoxHintText=Bt;exports.FoxImage=wl;exports.FoxImagePreview=Gn;exports.FoxIndicator=Fl;exports.FoxInfiniteLoading=Yn;exports.FoxInputItem=Qo;exports.FoxInputNumber=Ze;exports.FoxInputnumberItem=dl;exports.FoxItem=Se;exports.FoxLayout=Nl;exports.FoxLinkItem=il;exports.FoxList=na;exports.FoxMapping=vl;exports.FoxMenu=Dl;exports.FoxMenuItem=Il;exports.FoxMessageBox=ot;exports.FoxMoneyItem=Go;exports.FoxMoreButton=pl;exports.FoxNavbar=El;exports.FoxNoticeBar=la;exports.FoxNotify=Zl;exports.FoxNumberKeyboard=jl;exports.FoxOverLay=rt;exports.FoxPage=Oo;exports.FoxPagination=Pl;exports.FoxPicker=bt;exports.FoxPickerItem=el;exports.FoxPopover=Qt;exports.FoxPopup=de;exports.FoxPopupWrapper=hl;exports.FoxPrice=Ge;exports.FoxProgress=Ht;exports.FoxPullRefresh=Ql;exports.FoxRadio=Kn;exports.FoxRadioGroup=Un;exports.FoxRadioItem=al;exports.FoxRange=Ut;exports.FoxRate=kt;exports.FoxRateItem=cl;exports.FoxRollingProvider=kl;exports.FoxRow=Al;exports.FoxRowItem=Yo;exports.FoxSearchBar=Xn;exports.FoxShortPassword=Ul;exports.FoxSideNavBar=Rl;exports.FoxSideNavBarItem=Ol;exports.FoxSignature=Ca;exports.FoxSkeleton=da;exports.FoxSku=Aa;exports.FoxSlotItem=Xo;exports.FoxStep=sa;exports.FoxSteps=ra;exports.FoxStepsBar=fl;exports.FoxSticky=Ot;exports.FoxSubSideNavBar=Kl;exports.FoxSwipe=jt;exports.FoxSwiper=Ct;exports.FoxSwiperItem=wt;exports.FoxSwitch=Wn;exports.FoxSwitchItem=sl;exports.FoxTabPane=zl;exports.FoxTabbar=ql;exports.FoxTabbarItem=Ml;exports.FoxTable=pa;exports.FoxTabs=Ll;exports.FoxTabsBar=Pn;exports.FoxTabsContainer=Ln;exports.FoxTabsPane=zn;exports.FoxTag=Xt;exports.FoxText=yl;exports.FoxTextarea=Mn;exports.FoxTextareaItem=Zo;exports.FoxTimeDetail=Ba;exports.FoxTimePannel=Na;exports.FoxTimeSelect=wa;exports.FoxToast=At;exports.FoxTour=ba;exports.FoxTrendArrow=va;exports.FoxUploader=Hl;exports.FoxVideo=St;exports.FoxWaterMark=ya;exports.Grid=Tl;exports.GridItem=$l;exports.Group=Wo;exports.HeaderBar=Uo;exports.HintText=Bt;exports.Image=wl;exports.ImagePreview=Gn;exports.Indicator=Fl;exports.InfiniteLoading=Yn;exports.InputItem=Qo;exports.InputNumber=Ze;exports.InputnumberItem=dl;exports.Item=Se;exports.Layout=Nl;exports.LinkItem=il;exports.List=na;exports.Mapping=vl;exports.Menu=Dl;exports.MenuItem=Il;exports.MessageBox=ot;exports.MoneyItem=Go;exports.MoreButton=pl;exports.Navbar=El;exports.NoticeBar=la;exports.Notify=Zl;exports.NumberKeyboard=jl;exports.OverLay=rt;exports.Page=Oo;exports.Pagination=Pl;exports.Picker=bt;exports.PickerItem=el;exports.Popover=Qt;exports.Popup=de;exports.PopupWrapper=hl;exports.Price=Ge;exports.PriorityPolicy=mn;exports.Progress=Ht;exports.PullRefresh=Ql;exports.Radio=Kn;exports.RadioGroup=Un;exports.RadioItem=al;exports.Range=Ut;exports.Rate=kt;exports.RateItem=cl;exports.RollingProvider=kl;exports.Row=Al;exports.RowItem=Yo;exports.SearchBar=Xn;exports.ShortPassword=Ul;exports.SideNavBar=Rl;exports.SideNavBarItem=Ol;exports.Signature=Ca;exports.Skeleton=da;exports.Sku=Aa;exports.SlotItem=Xo;exports.Step=sa;exports.Steps=ra;exports.StepsBar=fl;exports.Sticky=Ot;exports.SubSideNavBar=Kl;exports.Swipe=jt;exports.Swiper=Ct;exports.SwiperItem=wt;exports.Switch=Wn;exports.SwitchItem=sl;exports.TabPane=zl;exports.Tabbar=ql;exports.TabbarItem=Ml;exports.Table=pa;exports.Tabs=Ll;exports.TabsBar=Pn;exports.TabsContainer=Ln;exports.TabsPane=zn;exports.Tag=Xt;exports.Text=yl;exports.Textarea=Mn;exports.TextareaItem=Zo;exports.TimeDetail=Ba;exports.TimePannel=Na;exports.TimeSelect=wa;exports.Toast=At;exports.Tour=ba;exports.TrendArrow=va;exports.UniqueID=qn;exports.Uploader=Hl;exports.ValidateSchema=Xr;exports.ValidateSchemaKey=Ke;exports.Video=St;exports.WaterMark=ya;exports.cancelRaf=Ar;exports.clamp=Oe;exports.clearNonNumber=vo;exports.clone=yo;exports.compareTo=ho;exports.createBroadcast=Sn;exports.createValidateSchema=Cn;exports.debounce=yt;exports.debounceRef=ii;exports.decimalLength=Or;exports.default=t2;exports.defineBroadcast=_s;exports.defineConfigDomain=Qr;exports.defineDataItem=Zr;exports.defineDomain=Ro;exports.defineItem=Ne;exports.definePageState=Jr;exports.deleteGlobalValidator=oi;exports.disabledProperty=we;exports.divide=Lo;exports.excludeProps=Nt;exports.extend=lt;exports.floatData=Kr;exports.getGlobalValidateCheckEvents=jr;exports.getGlobalValidateResetEvents=Yr;exports.getPageContentAreaHeight=dn;exports.getPageContentAreaWidth=fn;exports.getPageFooterAreaHeight=An;exports.getPageHeaderAreaHeight=Bn;exports.getRootDomain=pt;exports.hasSymbol=qr;exports.includeProps=ve;exports.indexOf=Zs;exports.installRules=Gr;exports.integerLength=Rr;exports.isArray=vn;exports.isArrayLike=Pr;exports.isBrowser=it;exports.isDate=Ue;exports.isESModule=Ws;exports.isEmptyString=ue;exports.isEqual=qe;exports.isFunction=cn;exports.isHidden=kn;exports.isInnerPage=di;exports.isMap=Us;exports.isNil=xr;exports.isNumberString=Fr;exports.isObject=Ae;exports.isPlainObject=go;exports.isPromise=gt;exports.isRegExp=zr;exports.isSet=Hs;exports.isString=Dr;exports.isSubPage=fi;exports.isSymbol=js;exports.isTouch=Jo;exports.isWindow=Mr;exports.lastIndexOf=Js;exports.makeArray=Gs;exports.merge=Lr;exports.multiply=Tr;exports.negate=$r;exports.nextTick=Xs;exports.numberFormat=yn;exports.objectToString=Ir;exports.once=ci;exports.padZero=et;exports.preventDefault=bo;exports.property=Be;exports.raf=Re;exports.readonlyProperty=Te;exports.setGlobalValidateCheckEvents=li;exports.setGlobalValidateHandler=ti;exports.setGlobalValidateMessages=ri;exports.setGlobalValidateResetEvents=ai;exports.setGlobalValidator=ni;exports.throttle=un;exports.toBoolean=pe;exports.toNumber=fe;exports.toPadding=Le;exports.toPx=ie;exports.toPxDesc=he;exports.toTypeString=bn;exports.toValue=xe;exports.tryTimes=Fo;exports.typeOf=at;exports.unNumberFormat=Er;exports.updatePageState=ko;exports.useBroadcast=qt;exports.useDomain=He;exports.useExpose=$e;exports.useInnerSize=Vn;exports.usePageState=Nn;exports.usePosition=ss;exports.useRawTouch=_o;exports.useRect=Ve;exports.useSize=Ko;exports.useTouch=_e;exports.valueLength=ye;
|